yashsingh1/xdaforums huggingface dataset:
[Nook Color Android Development] chisleu:
Yeah that is what I'm trying to fix. That and mapping the unused scancodes (extra buttons / ipad buttons) to codes/triggers.

It may end up requiring a service/etc to intercept them. I don't know enough now to make an educated statement on the matter.

I do know that not all codes are used, and the power/volume buttons act like keyboard buttons.

The hardkeys hack/app changed the volume on the BT keyboard to do back and menu buttons, so I expect that the software can be used to intercept the other keys as well.

EDIT: Appears the binary file is for alt/shift/etc modifiers on a key (to do special characters like accent et grave or whatever for french/etc.)

Apparently the kt file is what we use to change the scancodes into the keycodes for android. (to make 123 -> home or what have you.)
[Nook Color Android Development] Arbelzapf:
I think I also experience this on my apple keyboard from time to time. It drives me nuts. I keep the keyboard directly in front of the Nook and still experience random disconnects and the above glitches
[Nook Color Android Development] chisleu:
Yeah I just installed a bluetooth USB adaptor on my system to see if it was the keyboard itself. I'm thinking it's not.

Typing with it right now and it works flawlessly... definitely a cm7/bluez/etc issue.

The response time from typing to it being on the screen is much quicker on my desktop. and there are no weird laggy repeating going on. On the tablet it tends to get caught in repeats where it seems to lock up. android sees it as a long press and I cant reproduce it here.

Super happy for the headway being made into bluetooth but there is some ways to go for HID devices anyway.
[Nook Color Android Development] sangahm:
Any idea how to try and bluetooth pair to my blackberry phone using dial up networking and use its data plan? That way I could get out onto the internet from anywhere using the 3G from my phone.

I do this using ibluever (if0rce.com/ibluever/) with my itouch and it works great, so looking for similar functionality with the NC.
[Nook Color Android Development] Arbelzapf:
Works flawlessly on my computer as well. I'm pretty sure the keyboard itself is not the issue.

Oh and just to point it out: The capslock-key does not work, but double-shift does like on on-screen keyboards
[Nook Color Android Development] chisleu:
That is good to know. Unfortunately only a single shift is required to get it out of capslock mode. Makes hackery more difficult.

NOTE: If you are buying a keyboard

, you may want to stick to the android-specific tablets. They have menu/back/etc buttons on them which may be easier to get working.

I bought the zoom bluetooth keyboard and it's decent, but I think I would much rather have that "XOOM tablet keyboard. It is a little bigger, like a laptop keyboard, but the keys look very nice. A couple of searches, a menu/home/back all in nice positions. Interestingly, it has a capslock key.
[Nook Color Android Development] chisleu:
http://xdaforums.com/showthread.php?p=12076390
[Nook Color Android Development] lschroeder:
I went into a Verizon store and they let me play with the XOOM tablet keyboard and nc. It paired and connected fine. I experiment with home/back and they worked. Not sure about menu? Did not try capslock key.

I was impressed enough that when I got home I google it and found it for $59 with ship to store at Walmart. I went ahead and ordered it. The customer service person at Walmart said that there probably would not be a problem returning it, but could not actually say until there is one to be returned.

I hoping for the best. The reports here on the XOOM forums list repeat problems but thinking it is honeycomb software rather than the keyboard.
[Nook Color Android Development] chisleu:
Yes I expect that it will work well. The repeat problem is a bluetooth problem, definately (which is to say, it's not the keyboard.)

All the buttons working is dependant on which /system/usr/keylayout file you are using (many distributions include different files with different settings.)

I'm using a zoom model 9010 which is an ipad type keyboard. I expect the scancodes would be the same for all ipad keyboards, so I'm working on an ipad keyboard-compatable "driver" which is really just a replacement qwerty.kl file.

I have several keys working. One big catch is my qwerty.kl file includes modification for the hardware volume keys. The volume keys on the keyboard throw the same scancodes. Thus, the keyboard volume keys are a back and menu key as well.

I made the play button work as play/pause, but made the fwd/rev work as volume up/down with success.

At the top left I have [HOME][SEARCH][MENU][BACK] which works well for me.

Already modified the shift + [,.] to give [<>] so the only thing left is to try to pop some of these keys off the keyboard and physically rearrange them so the volume looks like volume and such. I may even paint the keyboard. :)

I will post up my file when I'm done w/ pics.
[Nook Color Android Development] Arbelzapf:
Can you provide any help with getting a German keylayout on the apple keyboard? You seem to have gotten pretty far with the keychars and the individual button mappings which apparently go beyond what the keylayout.kl is capable of.

I haven't looked at the files again yet because my computer is currently broken, but I could certainly use some instructions as my experience with hex editors is pretty slim and you sounded like that was an important part of the process.

On a side note: Why does this have to be so damn complicated?

We definetely need a thread dedicated to providing working layouts for common keyboards once we got this sorted out
[Nook Color Android Development] chisleu:
It's really not that bad. An app could be built to edit it.

I can write a thread.

Yeah... So my Bluetooth keyboard

works from across the room

. over 10 feet from the NC.
[Nook Color Android Development] Arbelzapf:
I found out that for the apple mini keyboard, the keychar file must be named

Apple_Wireless_Keyboard.kcm.bin

Too bad that's all I can contribute so far. I tried editing the file in root explorer just for the hell of it, but the keyboard stopped working once it used the new file. So either I did something wrong (which definetely is an option), or I really need to wait until I get my hands on a computer I can hex-edit the file with. Well, at least that confirms that apple keyboards need the above filename.

Damn it, I thought I was so close...

Oh...and how did you get 10feet of range out of your nook?
[Nook Color Android Development] sangahm:
Nothing on that page says exactly what I'm looking for (using phone as tether point over BT - not wifi). I would think that there would need to be an app layer on the nook to redirect network requests over BT instead of wifi. That is why I provided the iPhone website that does this for that device.

I assume based on the lack of other replies that this does not exist.
[Nook Color Android Development] chisleu:
There isn't one, although 2.3.3 android does support that in the SDK. No one has written an app.

Use wifi tether for now.
[Nook Color Android Development] chisleu:
Yes, it is <device name in BT menu>.kcm.bin

Mine is Bluetooth_Keyboard.kcm.bin

It will default to the stock one (qwerty I think.)

That isn't the keylayout file, that is the file used to change what alt/shift/etc modifiers do when you press a key. The only thing I had to change in that file was the shift modifier for , and . so it gives < and >

No idea why it has such range with the keyboard. But I'm serious. It works over 10 feet away.
[Nook Color Android Development] Arbelzapf:
Well, I'd need to edit alot more it seems. almost all special characters and the umlauts need to be taken care of. I guess the text editor from root explorer screws up the file, because not even keys I left untouched worked, except for ESC which still worked as BACK, maybe some other system keys as well.

That said, I just made a lucky guess on how stuff needs to be changed, so I'll wait until I find a way to do it on the Nook itself or a computer to do it properly. I downloaded a Hex Editor on the market, but it didn't look very useful to me
[Nook Color Android Development] chisleu:
I am using HdX on windows 7.
[Nook Color Android Development] sinanju:
How you get your phone to feel receptive is something you'll have to figure out, but instructions for what to do on the Nook were posted just a few pages back:

http://xdaforums.com/showpost.php?p=12090324&postcount=240

That works out wonderfully for me using my WinMo 6.5 phone.

GScript is ugly and I'd like to get an environment going to write a little app to do those steps, but my day job has me pretty busy...
[Nook Color Android Development] sangahm:
Thank you so much, that looks very interesting. I missed that when I tried to catch up on the many back pages.

I'll take a look and see if I can decipher how to do it. I'm fairly technical, but android and nook are fairly new to me.
[Nook Color Android Development] sinanju:
I should note that I had to add a 5 second sleep after the pand command when I added the script to GScript... it seems the connection is still in progress even after the command returns.
[Nook Color Android Development] DDowns:
GPS baby!

You read my mind! This would SO rock!
[Nook Color Android Development] Bimboy:
It does rock. Paired with my BT GPS with no problem, installed the "Bluetooth GPS" app from the market, and it passes the NMEA strings to GPS programs with no issues at all. Works GREAT!
[Nook Color Android Development] sinanju:
I've done this and tried using my phone as a WiFi AP for Google Navigation data... Bluetooth and WiFi appear to be unstable running together on the Nook. However, using Bluetooth PAN with the phone combined with a Bluetooth connection to the GPS puck works great.
[Nook Color Android Development] anonim1:
Thanks for sharing, but this link only discusses bluetooth gps connectivity and wifi tethering. It does not reference DUN over Bluetooth.

I'm able to pair my Blackberry 9700 with the NC, but I'm not sure how to make the NC connect to the DUN service on the Blackberry. I'm able to do the same thing with a Windows 7 laptop, so I know the phone supports this capability.

Any ideas?

EDIT: Please disregard, I completely missed the posts describing how to accomplish this using the shell.
[Nook Color Android Development] Calla969:
I feel like I've seen this mentioned but can't find it now. I am trying to connect my NC to my Droid through Bluetooth. I keep getting the "paired but not connected ". I've tried shutting down by holding the power button a few times. Is there anything else I can try?
[Nook Color Android Development] anonim1:
I believe this is expected behavior. It's the same message I got after pairing my NC with a Bluetooth GPS. After installing a GPS app through the Market, I was able to "connect" to the device and receive GPS data. My guess is the message changes to "Connected" in the Bluetooth status menu (although I haven't confirmed because my receiver is in the car).
[Nook Color Android Development] anonim1:
I've paired my NC to the phone. Running the "pand" command, I see that a BT connection is attempted from the NC to the phone. However, it disconnects within a second, and the "ifconfig" command fails. If I run "netcfg", the only interface I see is "lo", the loopback interface (Wifi is disabled).

My guess is that my phone does not support Bluetooth Personal Area Network, it only supports Dial-Up Networking. Is there another command I can use on the NC to connect to this service instead of the PAN?
[Nook Color Android Development] nookierookie:
iPhone 4 Bluetooth Tether to Nook

Afad's technique worked to connect my NC to an iPhone 4 though the iOS 4.2 BT tethering function. Dolphin complains that there is no internet connection, then proceeds to connect.

I also made a gscript and also added a few 5 second sleep commands to slow it down and give the PAND, etc. commands a minute to gather their thoughts.

Though this is not incredibly useful at the current range, and there is no GPS-sharing app for iOS. I'm hoping eventual range improvements will make the more battery-friendly BT tethering more feasible.

Will probably just return to MyWi.

With a way to automatically pull the BT IDs off of paired devices, this could be thrown together into an app, no?
[Nook Color Android Development] anonim1:
Lucky you.. the PAN profile is supported on the iPhone (http://support.apple.com/kb/HT3647) but not the Blackberry (http://docs.blackberry.com/en/smartphone_users/deliverables/11298/Bluetooth_profiles_50_1026558_11.jsp). I guess I will have to wait to see if the devs can find a way to implement connecting to the DUN profile. Fingers crossed..
[Nook Color Android Development] ambogt:
How did you pair with your iphone? THat step alone is stumping me. I have them "paired" but not connected. When I click on "NookColor" on my iphone, it says "device not supported". What am I missing?
[Nook Color Android Development] anonim1:
http://xdaforums.com/showpost.php?p=12090324&postcount=240
[Nook Color Android Development] ambogt:
Thanks, this is exactly what I tried. DId you even read my post? lol

After they are "Paired but not connected", I even tried on th e Nook in Virtual Terminal the pand command, and it says "Failed to open control socket: Operation not permitted"
[Nook Color Android Development] anonim1:
Yes, I read your post. You'd only mentioned the "paired but not connected" message, so I'd assumed you had not run the pand command yet.

The "operation not permitted" is because you are attempting to issue a command that requires superuser permissions. Before the pand command, type su and press Enter to escalate your permissions. You should then be able to run the rest of the commands.
[Nook Color Android Development] jay0911:
anyway this could work on stock 1.1 rooted?
[Nook Color Android Development] ambogt:
Thanks for the tip! I did that and pand went through. Next step though now yields: error: SIOCGIFFLAGS (no such device). argh.
[Nook Color Android Development] Calla969:
I am trying to connect my NC to my Droid1 through Bluetooth and I can't get it to connect. It is "paired but not connected". I have searched around and everything I see seems to refer to tethering a data connection. Do I need to run some commands to get this to connect, or should it be working? Ive seen others saying that it works using the bluetooth gps app, but it says "service discovery failed" when I try to connect through the app. I'm a loss. Any help would be greatly appreciated.
[Nook Color Android Development] anonim1:
Yeah same here :confused:

In my case, it's because my Blackberry doesn't support the PAN profile, so the pand command completes successfully but doesn't actually establish a PAN connection with the phone.. as a result, no interface named bnep0 is created, and the ifconfig command fails with the "no such device" error.
[Nook Color Android Development] timekeeper:
No, you need the Bluetooth-enabled kernel and build that's CM7.
[Nook Color Android Development] chisleu:
Finally figured it out...

After installation of the RC4 CM7, I had to fix permissions and hardboot (I tried normal rebooting and that didn't work.)

Anytime I reboot/shutdown with the bluetooth off, when I turn it back on, the bluetooth won't come back on until I fix permissions and hardboot.

Hardbooting gives me the heeby jeebies. Going to examine the fix permissions log tonight.
[Nook Color Android Development] sinanju:
WiFi and Bluetooth simply not getting along...

... and, perhaps, that's the problem with the keyboards as well. I noticed that Google maps/navigation didn't function properly when using Bluetooth for GPS and WiFi for data. One or the other would cut out, then recover.

Disabling WiFi and using a Bluetooth connection to my phone for data made the issues go away. I can certainly live with that, but if the headset profile is ever made to work, it would be great if WiFi and Bluetooth could get along for Skype calls.
[Nook Color Android Development] chisleu:
maybe. I've not used them for any extended periods together, but I didn't have either cut out. I just used them for a minute to see if it "worked."
[Nook Color Android Development] quinxy:
How does GPS show up?

How does a paired GPS device show up in the Bluetooth manager of an Android? Does it show up as a serial port? Or does it show up as a GPS device? Trying to figure out how to interface with a COM/serial device and wondering if there's precedent for it working with the current releases (e.g., CM7) on Nook Color.

^ Quinxy
[Nook Color Android Development] chisleu:
http://xdaforums.com/showthread.php?p=12076390

I think I go into that a bit in the first post.
[Nook Color Android Development] quinxy:
I don't mean to seem stupid, but I've now read and re-read your post and I don't see it. You talk about how to can use an external GPS receiver or have the Nook spoof a GPS receiver, but I'm trying to find out how exactly the GPS device is seen by Android.

I want to know if GPS s just seen as a COM device, or if I can connect some device which exposes itself as a COM device to CM7 and then talk to it (does CM7 include the support).

Huge apologies if I've somehow missed that specific answer, I appreciate the help.

^ Quinxy
[Nook Color Android Development] chisleu:
it's a certain protocol standard. it's not like a BT comm port although it does pass data much like a comm port. The app you run on the nook provides aa mock GPS location it gets from the bluetooth connection following that weird protocol.
[Nook Color Android Development] quinxy:
Ah, ok, much appreciated. A few years ago I had an external GPS device and it just talked via USB via general COM port, so I wasn't sure. I'll go off searching elsewhere then. :)

^ Q
[Nook Color Android Development] khaytsus:
For bluetooth GPS download Bluetooth GPS Provider from market. Android doesn't support bluetooth gps directly.
[Nook Color Android Development] 34Ford:
I have yet to find the requirements needed and a set of instructions on how to enable the BT.

I have a Holux GPSlim 236 I would like to try.
[Nook Color Android Development] anonim1:
Instructions are scattered throughout the forums. I also have a GPSlim 236. Bluetooth GPS Provider from the Android Market can talk to your receiver. After enabling the "mock" feature, you can use other software (I use Copilot) for GPS Navigation with your Holux.
[Nook Color Android Development] quinxy:
If anyone needs it, I put together a walkthrough that should help even the greenest newbie get a working copy of the latest CyanogenMod 7 OS installed safely on an SD card; for those who don't know, it's a version of Android's cutting, but not bleeding, edge OS, Gingerbread 2.3.3. The instructions include getting Bluetooth enabled. From there anonnim1's advice needs to be taken, you'll need an app to sit in between your BT GPS device and your navigation software (technically the OS).

Walkthrough of installing CyanogenMod 7 w/ Bluetooth on your Nook Color.

^ Quinxy
[Nook Color Android Development] jinp6301:
So is it just me or are others having problems with typing on a bluetooth keyboard?

There is significant lag which causes the nook color to think that I am holding down on keys and pops the symbols up for that letter. I was ok once in a while but its very frustrating trying to type on a keyboard if I have to stop every 5 words.

Just in case someone asks, the keyboard was right next to the nook, so no range problems.
[Nook Color Android Development] quinxy:
Things are mostly good with my iGo Stowaway keyboard, but I have seen what you describe on a few occasions. Not every five words, more like once a paragraph or two. Are you overclocked? Obviously that might help if it's a CPU busy-ness related problem.

My greater annoyances are:

- in landscape the keyboard arrows work like it's in portrait, so up is right, etc. i'm still teaching my brain to go against the normal rules for this

- the virtual keyboard keeps popping up, i'll close it, type a bit on the real keyboard, but it invariably shows up again. not a huge deal, but wastes real estate i rather like having.

- related to the problem you describe, possibly, sometimes I'll hit shift and it seems to miss the following key up event, and thinks shift was still on. i have to hit shift again to clear it (this isn't a shift lock issue)
[Nook Color Android Development] chisleu:
Yep. It's the wifi and bluetooth interfering most likely.

Try turning off wifi and see if the problem mostly goes away.

DSP distracted everyone from bluetooth. I think attention will be back on bluetooth soon though.
[Nook Color Android Development] jinp6301:
turning off wifi fixed it. thanks a lot :)
[Nook Color Android Development] quinxy:
I found the solution! Buy and install the Null Keyboard! The problem you described was happening to me more so I thought surely there must be a null keyboard which might trap the events... and there was! It stops the virtual keyboard from popping up and stops the capturing of keypresses that seem to trigger the multiselect char boxes. And it lags less, since it isn't doing predictive!

^ Quinxy
[Nook Color Android Development] 34Ford:
Thank you gentleman. When I get brave I will try this out. Looking forward to playing around with the gps.
[Nook Color Android Development] herbert1:
You can look here (several different applications have been tested): http://androgeoid.com/2010/09/android-external-bluetooth-gps-apps-bluetooth-gps-for-android/

and here http://xdaforums.com/showthread.php?t=833094
[Nook Color Android Development] psiphi:
I found that having a charger plugged into the nook while using it can also cause problems... No sure if it interferes with BT antenna, but I know it changes the calibration of the screen as long as its plugged in...
[Nook Color Android Development] jinp6301:
So has there been any improvements on using a bt keyboard when having wifi/bluetooth on at the same time?

Its a pita to switch between using the keyboard and googling something :(

EDIT: oh missed the null keyboard suggestion. will try that out
[Nook Color Android Development] trypt:
What's up with wifi calling over BT headset. I paired my headset and my call went through but we couldn't hear each other.

I'm using cm7 stable built in voip, sipgate, Google voice. OC 1.1ghz
[Nook Color Android Development] sinanju:
It is actually a standard BT rfcomm port that is established, though you don't see it, and NMEA 0183 is spoken over that just like in the old days when there was a physical serial cable
[Nook Color Android Development] ndinfla:
Gps problems

Looking for some advice . I have set the nook up with bluetooth gps and i am running a globsat-368 device. I can see my location on google mapsfor a short time then no sat info. It seems that when i turn on the wifi to get the map going it boots me out of the bluetooth. When i check my connection it is scanning. It almost seems like it is scanning every 3 mins or so.

Any suggestions or work arounds?
[Nook Color Android Development] sinanju:
Right now, WiFi and Bluetooth simply don't get along.
[Nook Color Android Development] chisleu:
Is there an config for it? I still get long press popups.
[Nook Color Android Development] quinxy:
My experience seems to depend on CPU loading. If I'm using a light editor and the Nook Color is doing very little I have fewer problems. And if I have the Nook Color oriented vertically I get fewer problems (not sure where the antenna is). I've written this entire post and not had the thing pop up once, but a few minutes ago when I was in Gmail and before that in Quick Office it happened quite a few times (all while using Null Keyboard v2). Correction, it. Just happened once. I can hit "Esc" to get rid of the pop up but it is annoying. I adjusted the long press setting in Keyboards - Android (shouldn't matter since I'm using the null keyboard but since it is popping up, something must control it). See if changing the longpress time helps you.

Quinxy