yashsingh1/xdaforums huggingface dataset:
[Nook Color Android Development] echolock:
Hmm, AFAIK PAN is usually used to access the internet on a device. I'm not sure that you can use it to access, for example, shares on the Windows device you're connecting to. It would depend on what the Windows bluetooth stack is allowing you to do and what this Android hack does exactly.

I'd double check your firewall settings on Windows 7 - you should probably set the PAN connection to be a "home" network and whatnot. There might also be properties saying what things can be accessed on your PC in the connection settings.
[Nook Color Android Development] xnym:
I just want to know is there any way i can change the IP address of the bnep0 interface?

I use iphone 4S to share internet connection to 2 android devices: 1) Archos 5IT with Donuts; 2) HD mini with unofficial CM7.

Archos 5IT works fine and the bnep0 got the IP address 172.20.10.2/28; however, the HD mini always got the IP address 192.168.43.1/24 and can't connect to the Internet. So, I think my problem is due to this. No matter I try commands "ifconfig bnep0 down" then "dhcpcd bnep0". The IP address still no change.

Where I can find any config file and/or script for changing the IP address?

Thanks!
[Nook Color Android Development] videorick:
AOKP Build 40

I am currently running AOKP Build 40 ICS on my NCand cannot get it to connect to my rooted EVO 3D (running 2.3). any ideas? the widget on the NC turns yellow and stays that way. it never toggles off. the only way to gwt it to turn grey is to reboot the NC. it never goes green or shows status. HELP.
[Nook Color Android Development] echolock:
If you're running ICS on your Nook it will have Android's native Bluetooth PAN assuming AOKP have that part of ICS working. Just ensure you're paired with your EVO, run something that can do bluetooth tethering on your EVO (like "wireless tether for root users") if you're not running CM/AOKP on it, go to the bluetooth settings and browse to your EVO's entry in the bluetooth devices section and there should be an option to connect to the internet through the EVO.

This widget is for when you want to connect a Gingerbread and below device to something that provides Bluetooth PAN - Honeycomb support for it is native (and quite slick, actually).
[Nook Color Android Development] Calla969:
What do you mean by "get the Droid ready for a PAN connection?
[Nook Color Android Development] sinanju:
Good question. Not having one of those, I can't tell you. It would be the same thing you'd have to do to tether a laptop to the phone. Perhaps run an app?
[Nook Color Android Development] sinanju:
Glad to hear it.
[Nook Color Android Development] sinanju:
Well, this is where I come in:

... and this is where I invoke pand --connect

...and this is where your phone decides it doesn't want a little nookie

I have the outline for connection status monitoring in my head, but haven't coded it yet -- day job in the way. In any event, the question is, why is your phone refusing the connection?
[Nook Color Android Development] Calla969:
I'm a retard. It works great. Thanks for this app!
[Nook Color Android Development] sinanju:
Any landing you can walk away from is a good one.
[Nook Color Android Development] nookierookie:
FYI, for iPhone users, bluetooth PAN doesn't require MyWi on iPhones. If you are running the newest version of iOS (4.3.x), bluetooth and wifi tethering is available in the "personal hotspot" settings in the settings app. From what I can tell, wifi is broadcast for a limited amount of time, but bluetooth is probably always available so long as personal hotspot is switched on.

I only note this because after having a jailbroken iphone for the LONGEST time (so that I could use mywi and provide internet to non-3g tablet-type devices), this iPhone is currently not jailbroken and doing the same thing. Woo.
[Nook Color Android Development] nookierookie:
Question: So it was noted earlier that Android doesn't like to recognize bluetooth as a legitimate network source -- Browser says there is no network connection, but connects anyways. That's fine, for what it is worth.

But Grooveshark (a music streaming app) switches over to Offline mode when connected to my phone through bluetooth using your widget. Making it unusable.

Any idea (anybody) how to convince Andy the Android that a bluetooth connection is just as legitimate as any other?
[Nook Color Android Development] rigy73:
I got it working, just reset my phone to factory default and my phone connected to internet but internet didn't work on nook because nook is not sending any data via bluetooth only receiving.

Even when i try to send files to phone it say's sending failed, but receives any file i send without a problem. I don't think that's a problem in your app, ur app is fine but my nook's bluetooth is f**ed up.
[Nook Color Android Development] sinanju:
The problem may not be what it seems. I just tried Pandora over BT and, although I could log into my account and see my stations, I wasn't able to start any of them. I expect AT&T is blocking streaming port but not the control port (big assumption there about Pandora's implementation).

Perhaps Grooveshark is being blocked by your provider, not the vagueries of BT networking on the Nook.
[Nook Color Android Development] nookierookie:
Doubtful, as Fido never has blocked Groove Shark on the iphone or android wifi tethering off of that network.

Thanks though. It is worth looking into.
[Nook Color Android Development] sinanju:
Well, it's pretty clear that Pandora would work if I wanted to pay AT&T their $9/mo for the privilege. To answer your original question directly, I really have no idea what's involved in making the BT connection a first-class network interface... I haven't looked at it. That said, I'd also wonder why Grooveshark is relying on an OS flag to tell it to use the network rather than just going for it the way Pandora does.
[Nook Color Android Development] rchir:
I wonder if this is true for ATT customers. Our tethering funtion is disabled by default.
[Nook Color Android Development] Deaks2:
Great little app. I use it tethered to my iPhone 3GS.

GAPPS work, however they seem to take a moment to figure out that the network connection is there. The engadget app does not seem to care :( Opera works fine from the get go.
[Nook Color Android Development] Contra1971:
how do I get it on my NC?

side load?
[Nook Color Android Development] sinanju:
Yes, for the moment. I'm working on status monitoring while you guys alpha test this cut. Once monitoring is working and stable, I'll drop it in the marketplace for free.
[Nook Color Android Development] sinanju:
Tethering is discouraged by default. I'm on AT&T and I neither have tethering on my plan nor did a tethering app come with my HTC Topaz. I was able to add the internet connection sharing app and as long as I don't abuse tethering, all is right with the world.
[Nook Color Android Development] sinanju:
New Version

Check the OP for a new version, now with connection status monitoring.
[Nook Color Android Development] Deaks2:
Nice added feature.

How are you guys pushing this over? I wanna make sure I did it right. For some reason after I pushed it over to /system/app I still had to install it, last time I didn't.
[Nook Color Android Development] painter_:
I just used ADB

adb install -r NCTether.apk
[Nook Color Android Development] sinanju:
You can click the link from your nook, then find the package in the download folder and install it from there.
[Nook Color Android Development] Contra1971:
when I try to open it from the download section, it says no application can be found to open this file (I an using Auto-nooter)
[Nook Color Android Development] sinanju:
Check your setting for Settings>Applications>Unknown Sources
[Nook Color Android Development] phunzoid:
pardon my ignorance, but can this be used to tether my iPhone's 3GS GPS capabilities to the NC?...if not, any advice on how i can? :confused:
[Nook Color Android Development] sinanju:
No. This is strictly for network access via Bluetooth PAN.
[Nook Color Android Development] lagomilo:
What version nook does this work with? I have a rooted 1.1 nook and I get and error saying "no bluetooth device" when I try to use the widget.

lago
[Nook Color Android Development] Ophbalance:
You would need to install CyanogenMOD 7 as your ROM/OS on the nook.
[Nook Color Android Development] lagomilo:
Thanks

That information was not listed. At least I could not find it. Sad, wish it could be turned on for 1.1 rooted stock.
[Nook Color Android Development] sinanju:
I did fail to mention it (now corrected), but I did say that you'd have to pair the Nook with your phone, first... something that isn't possible unless the OS supports Bluetooth.
[Nook Color Android Development] shumash:
I've got the NC paired with a WM 6 phone, but its says "paired but not connected". It was my understanding the Android lacked the necessary profile(s) to pand. How did you get this working if it won't do it automatically?
[Nook Color Android Development] anonim1:
Android supports pand. You can verify it by running the pand command through the terminal. It does not, however, support dund (though I wish it did).
[Nook Color Android Development] Deaks2:
Update: The Gmail GAPP is fully functional, except it can't load new mail in the inbox. Weird, considering I can send mail...
[Nook Color Android Development] sinanju:
As it should, until you actually connect to it with my Widget.

There is not yet formal support for PAN tethering. I'm running the pand command to set things up.
[Nook Color Android Development] sinanju:
Weird indeed. I'm having no trouble loading email with the stock mailer while tethered.
[Nook Color Android Development] painter_:
This has been working well for me, I really like the way you handled the monitoring feedback. I have one question, how do you end the connection? I have been killing wifi tether on my phone and the connection seem to go away. Is there a way to terminate the connection from the app?

Sorry I asked two questions.
[Nook Color Android Development] sinanju:
I did two things today. I fixed the green-before-dead issue on failed connections and I implemented. a proper toggle -- hit the widget when the connection is live and the connection will be closed.

I haven't uploaded it yet. Until then, you can shut off bluetooth on either end or stop the tethering app on the phone.
[Nook Color Android Development] Contra1971:
true, but thanks either way
[Nook Color Android Development] kevev:
I can't get gapps to work at all. Gmail will not sync, Talk will not connect, and Market will not download, even though it will show apps and search works. I am wondering if these apps are connecting to the Internet a slightly different way than the browser and youtube app do. Or maybe they are just verifying an internet connection differently. Sinanju, do you see the same issue or have any ideas? Thank You. :o)
[Nook Color Android Development] Deaks2:
Same issues here.
[Nook Color Android Development] sinanju:
I have no trouble with the stock mailer. Talk asks Android if it has a network connection and, because Bluetooth tethering is not properly supported, Android says "no" and, unlike the browser, goes no further. The same appears to be the case with the app download process with the market. Luckily, the browser pops up a warning when it is first started, but then forges ahead, anyway. The stock news and weather widgets work. Skype does not work. Tweetdeck mostly works except, oddly, thumbs-up on Facebook postings.

My primary use case, Google Maps and Navigation, works perfectly, so I'm pretty happy. Otherwise, it appears whether or not an app functions depends on whether or not it takes Android's word on the network being up or it just tries it.
[Nook Color Android Development] sinanju:
I've loaded a new version in the OP. Changes are described there.
[Nook Color Android Development] Divine_Madcat:
Count me as one of the unlucky ones right now. I am trying to use Wireless Tether (apk) in bluetooth mode. My nook is paired to me phone, and this app says it will connect to this phone. But when i hit the widget, the ligth goes yellow for a few, then just goes off again. My phone shows no signs of it even trying to connect.

BT is enabled and working on both phones (like i said, they paired), so i am not sure what the problem is...
[Nook Color Android Development] sinanju:
If BT is on and you have permitted superuser access, it should work. The app displays the BT address of the paired device. You can try firing up a terminal, su'ing, then type pand --connect insert-device-address-here See if it connects. If you get some sort of error, let me know and I can try to recreate it... and at least provide better feedback about errors.
[Nook Color Android Development] Divine_Madcat:
I have confirmed BT is on on both (they both popped up the same pairing dialog), and the widget is being granted SU.

I typed in the pand command, and absolutely nothing comes back. No error, no success, nadda. The Incredible does not show any devices connecting, and trying to use net access yields no results. I guess i will make sure to fix permissions on the nook, and give it a reboot again, and make sure all is as it should be.
[Nook Color Android Development] sinanju:
Interesting. In the code, once I have BT sorted out and the device discovered, I start a service to do the heavy lifting. In that service, I start a thread (let's call it #1) to get the PAN connection going, get an IP address and set up name service. After that, I start another thread (#2) which periodically asks pand what connections are running. Sadly, reading the result hangs if the connection collapses because pand doesn't return anything at all. So, #1 watches #2 to see if it gets hung... if it does, #1 kills the process in #2, turns out the LED and returns.

Unfortunately, as you report, there's no error for me to relay and based on the behavior I had to code to, as described, precludes me from even peaking... the thread that did so would just hang.
[Nook Color Android Development] sinanju:
"Divine_Madcat's Problem"

Just got this from snelda:

Additionally, I noticed today that pand does log ... at least informational messages.
[Nook Color Android Development] Divine_Madcat:
Thank you for the update! I will be sure to try restoring my system when i get home tonight (need it here at work, so i can't do it now), and see if it helps. Thank you again, both of you! :)
[Nook Color Android Development] sinanju:
Updated the OP... The official version is now in the Market.

I should mention that I put an ad on the application info screen. During normal operation, you'll never see it since all the functional stuff is in the widget. I did it for two reasons: Primarily, I wanted to see how the ad API worked. Secondarily, if the ad does generate any revenue, whatever passes the $25 cover charge I paid to sign up will be added to my annual donation to the Baypath Humane Society of Hopkinton, MA.

That said, there's no reason to go to that screen, so I imagine the revenue it will generate will be $0.

If the idea of an ad offends you, hang onto the .apk you've already downloaded.
[Nook Color Android Development] Contra1971:
sorry wrong spot
[Nook Color Android Development] Deaks2:
Have you managed to figure out what flag is needed to get the GAPPs and other network dependent apps (such as engadget) working while BT tethered?
[Nook Color Android Development] sinanju:
No, and unfortunately, I'm not going to be getting to it in the next few weeks. It isn't really a matter of flags -- its about Android itself and it's notion of network connections. At the moment, it's aware of WiFi and Mobile and that's it. I haven't had time to look into how that works in Android and estimate what it would take to extend it to Bluetooth PAN, and I won't until sometime in June, unless someone beats me to it.

The stock email, browser, weather/news apps/widgets as well as Google Maps and Navigation, Skype (for IM), and book sync with Kindle and Nook all work fine, which was close enough for me for the moment.
[Nook Color Android Development] thaniks:
What is the setup that is required in Windows 7? My phone is already paired.
[Nook Color Android Development] Deaks2:
Can you enable internet sharing via BT in Win7? If so, do that ;-)
[Nook Color Android Development] sinanju:
If you mean Windows Mobile 7, you have chosen unwisely. WM7 doesn't support tethering:

http://answers.microsoft.com/en-us/...e-7-as-a/07d91e88-23d5-401d-8ad2-439373e56e74
[Nook Color Android Development] dlinfiniti:
did this end up working for you?

i seem to be having the same issue connecting my wm 6.5 phone

it pairs fine, but when i do the "pand --connect" command, it doesnt return anything and the widget just turns yellow and turns off after a while
[Nook Color Android Development] sinanju:
What are you running on the WM6.5 phone? On mine, there's an app called Internet Sharing that enables tethering either by USB or Bluetooth. WM6.5 doesn't do tethering without an app to make it do it.

This is a runthrough of the app:

http://www.mobilityminded.com/7685/...phone-still-a-great-feature-in-windows-mobile
[Nook Color Android Development] dlinfiniti:
yeah thats what i'm trying to use

it works with my laptop but NC doesnt seem to see it at all

i've unpaired and re-paired and instantly entered the pand command like you suggested previously, and that hasnt really changed anything

i'm not sure why the terminal isnt returning any reply after the pand --connect command though, i'm currently running phiremod 6.2 fyi

let me know if you have any other ideas

thanks so much for your help and stuff
[Nook Color Android Development] sinanju:
Remove the pairing from both the phone and the Nook. >>Make sure WiFi is turned off on the Nook<< Start the tethering app on the phone. It will ask if you want to make the phone visible -- do so. Initiate the pairing process from the Nook. Once complete, make sure you can see the phone from the tethering app on the Nook. All should work.
[Nook Color Android Development] wpbear:
I can not get this to work.

I have a Droid Incredible with wifi tether activated with the bluetooth setting.

I have the NC and DInc paired and able to copy files in EStrong.

When I press the homepage widget it turns yellow for 2 seconds then back to grey.
[Nook Color Android Development] ahfo:
Sad, my phone doesn't support PAN, but it does support DUN

So I wish there is an app that can do this job,

and I finally found one that works well on another tablet,

here's the link

http://android.gval.biz/

I've try it on my NC many times, but it doesn't work, I don't know what's the problem, hopefully there is someone can figure this out.
[Nook Color Android Development] wpbear:
I have a Droid Incredible and I was using Wireless Tether App in BT mode so maybe this is my problem.

Suggestions?
[Nook Color Android Development] sinanju:
No DUN support is the problem. Won't be a top priority, I'm sorry to say. Next for me is to figure out how to make PAN a 1st class connection.
[Nook Color Android Development] sinanju:
Just back from vacation and can look at it tomorrow. Thanks for the 1 star present... very motivational. as suggested earlier in the thread, if you can't make the command line utilities work, there isn't much I can do for you -- the problem is on the phone side, not the Nook.
[Nook Color Android Development] wpbear:
I am not glass half full guy either but if you are driven by market stars then I think a low rating definetly should not unmotivate you to improve it.

In this case as an app user it didn't work. The app drawer launch does show my paired Droid Inc but when pushing the widget button on the homescreen it turns yellow for a couple seconds then back to grey.

The devices transfer files ok in Estrong via BT.

My Droid Inc is running the latest Verizon Stock ROM rooted and S-Off. Wireless tether works via Wifi also.
[Nook Color Android Development] sinanju:
And again I ask... do the command line tools work for you... if so, I have a problem I need to fix.

If not... and I bet not... there is a problem on the phone and not with the app.

The next step is for you to try a connection from the command line and report the results
[Nook Color Android Development] Jiggity Janx:
Just tethered successfully using Open Garden Wifi Tether (formerly Wireless Tether) from my DroidX on Verizon. Had several strikes working against me there, but you pulled through for me. I got it working after simple install and restarting each once. I will say that for some reason my DroidX BT icon wanted to turn blue instead of white with blue outline for a bit. When I stopped your service and restarted it went back to white and it worked from then on. Thanked here and gave 5 stars.
[Nook Color Android Development] aj.guyver:
Works well with 3gs-acer a500 pair, 3gs-milestone pair, milestone-acer a500 pair with minor bug that I have to kill NC bluetooth tether sometimes to reconnect, but this is really great apps!
[Nook Color Android Development] don_ernesto:
has anyone found a solution for this? i have the same problem pairing with my nokia. i read the snelda's response, but i dont have old nandroids

thanks!
[Nook Color Android Development] sinanju:
What state is the widget icon in when you have to kill it? Blank, yellow or green?

Because of the proximity issue with Bluetooth, I've noticed that if you move too far away the connection will appear to be stuck, but recover itself after several seconds if you move closer again.

If you can tell me what state its in and how you think you got there, I'll try to reproduce it. I'm considering an update and if there's a bug, I'd like to get it fixed. If wpbear ever responds, we might get him going, too...
[Nook Color Android Development] wpbear:
Sorry been busy. It may be a couple weeks before I mess with this again. Getting this working is competing three ways with work and also trying to get my wake on lan/wan working at my house.

Sent from my NC
[Nook Color Android Development] Ophbalance:
Is this working for others on the newer nightlies? I'm on 87 with the OC kernel from 5/23, and it force closes every time I try and run it.
[Nook Color Android Development] sinanju:
I'm running just that combo and using the connection to post this response. Try an uninstall / reinstall.
[Nook Color Android Development] aj.guyver:
It's more likely to happen while the indicator in yellow. But I still can't find the routine that killing the NC BT tether is needed! Thanks for your great works again!
[Nook Color Android Development] Ophbalance:
Ya... I tried a clear data/uninstall. I tried on of the older versions (pre-market). I tried restarting. I guess I need to figure out how to get to log cat and see what the actual error is.
[Nook Color Android Development] sinanju:
Perhaps there's an issue with the pairing? You could try redoing that. Is it the app that crashes or the widget... you don't really need to ever run the app.

Edit: Install the market version, turn on WiFi, generate the error. You should have the option to send a failure report. Let's see what the developer's console sends me.
[Nook Color Android Development] Ophbalance:
Not much to go by... I/am_crash( 1046): [5228,earlmagnus.nctether,572996,java.lang.NullPointerException,Unable to start receiver earlmagnus.nctether.NCWidget: java.lan.NullPointerException,NCWidget.java, 103]. I'll send the full report along as well... but at least it gives a line number.