Talk:Manually using Bluetooth

From Openmoko

Revision as of 22:31, 31 December 2008 by Plaicy (Talk | contribs)

Jump to: navigation, search

Contents

Bluetooth keyboards which doesn't support HID

There exists several bluetooth keyboards which doesn't support the normal HID protocol. This means you can not simply use "hidd --connect 11:22:33:44:55:66". I've searched the net a bit and found this: http://www.handhelds.org/moin/moin.cgi/kbdd. The program kbdd seems like the thing to use. The source code is available. I'm not able to test this program myself as I do not have a Neo yet. EsbenDamgaard 22:10, 16 August 2007 (CEST)

I have tried it and it works ok for me, there is even an ipkg package for kbdd in Angstrom, see the details in http://n2.nabble.com/Non-HID-Bluetooth-keyboard.-Success%21-td1496389ef1958.html#a1496389 . --Glownan 10:56, 14 November 2008 (UTC)

Phone does not detect laptop

If running hcitool scan on the phone does not detect your laptop, check if ISCAN is enabled on the laptop by typing hciconfig and seeing the output.Like in the following output ISCAN is not enabled.

       hci0:   Type: USB
               BD Address: 00:19:7E:E5:C2:2F ACL MTU: 1017:8 SCO MTU: 64:8
               UP RUNNING PSCAN 
               RX bytes:1651 acl:0 sco:0 events:42 errors:0
               TX bytes:368 acl:0 sco:0 commands:31 errors:0

It is not enabled by default on Ubuntu Edgy systems.

If it is not then either type : hciconfig hci0 piscan

Also you can permanently fix this bug by doing the following steps on the laptop:

1. Add "discovto 0;" to the device section of hcid.conf file in /etc/bluetooth.

2. Remove all the files present in /var/lib/bluetooth

3. Restart Bluetooth

4. Check hciconfig and ISCAN will be enabled.Deepank 20:21, 22 August 2007

This does not work with 2007.2 / .08 image plus ipkg updates up until August 24?

After starting everything as described, I only get error messages:

root@fic-gta01:~$ hciconfig
Can't open HCI socket.: Address family not supported by protocol
root@fic-gta01:~$ modprobe gta01-pm-bt
FATAL: Module gta01_pm_bt not found.
root@fic-gta01:~$ modprobe hci_usb    
WARNING: Could not open '/lib/modules/2.6.21.5-moko10/kernel/net/bluetooth/bluetooth.ko': No such file or directory
FATAL: Could not open '/lib/modules/2.6.21.5-moko10/kernel/drivers/bluetooth/hci_usb.ko': No such file or directory

Can someone let me know if BT is supposed to work with 2007.2 / .08 plus updates?

This issue is SOLVED, in a way: kernel 2.6.21.6 seems to be required.

user:hhf423

Bluetooth keyboards which doesn't support HID: tested a keyboard

I've tested a "Freedom Universal Keyboard", model G912. Wiki says it should work but...

Doesn't connect on HID mode (connection reset by peer), while on SPP just gives wrong characters, and also keeps sending chars even when not typing.

Used kbdd too, this time on my desktop with usb dongle. Same thing as above, maybe this model is incompatible/needs special driver?

Kiantis - 31 Aug 2008

I configured the G912 (Freedom Universal Keyboard²) in SPP and directly read serial input. There you get for each typed key a byte. If the MSB is not set (0x80) the key is pressed. With python a managed to feed this keys to /dev/input/uinput. But in the moment I think the script is only usable by myself.--Plaicy 21:31, 31 December 2008 (UTC)
Personal tools

Bluetooth keyboards which doesn't support HID

There exists several bluetooth keyboards which doesn't support the normal HID protocol. This means you can not simply use "hidd --connect 11:22:33:44:55:66". I've searched the net a bit and found this: http://www.handhelds.org/moin/moin.cgi/kbdd. The program kbdd seems like the thing to use. The source code is available. I'm not able to test this program myself as I do not have a Neo yet. EsbenDamgaard 22:10, 16 August 2007 (CEST)

I have tried it and it works ok for me, there is even an ipkg package for kbdd in Angstrom, see the details in http://n2.nabble.com/Non-HID-Bluetooth-keyboard.-Success%21-td1496389ef1958.html#a1496389 . --Glownan 10:56, 14 November 2008 (UTC)

Phone does not detect laptop

If running hcitool scan on the phone does not detect your laptop, check if ISCAN is enabled on the laptop by typing hciconfig and seeing the output.Like in the following output ISCAN is not enabled.

       hci0:   Type: USB
               BD Address: 00:19:7E:E5:C2:2F ACL MTU: 1017:8 SCO MTU: 64:8
               UP RUNNING PSCAN 
               RX bytes:1651 acl:0 sco:0 events:42 errors:0
               TX bytes:368 acl:0 sco:0 commands:31 errors:0

It is not enabled by default on Ubuntu Edgy systems.

If it is not then either type : hciconfig hci0 piscan

Also you can permanently fix this bug by doing the following steps on the laptop:

1. Add "discovto 0;" to the device section of hcid.conf file in /etc/bluetooth.

2. Remove all the files present in /var/lib/bluetooth

3. Restart Bluetooth

4. Check hciconfig and ISCAN will be enabled.Deepank 20:21, 22 August 2007

This does not work with 2007.2 / .08 image plus ipkg updates up until August 24?

After starting everything as described, I only get error messages:

root@fic-gta01:~$ hciconfig
Can't open HCI socket.: Address family not supported by protocol
root@fic-gta01:~$ modprobe gta01-pm-bt
FATAL: Module gta01_pm_bt not found.
root@fic-gta01:~$ modprobe hci_usb    
WARNING: Could not open '/lib/modules/2.6.21.5-moko10/kernel/net/bluetooth/bluetooth.ko': No such file or directory
FATAL: Could not open '/lib/modules/2.6.21.5-moko10/kernel/drivers/bluetooth/hci_usb.ko': No such file or directory

Can someone let me know if BT is supposed to work with 2007.2 / .08 plus updates?

This issue is SOLVED, in a way: kernel 2.6.21.6 seems to be required.

user:hhf423

Bluetooth keyboards which doesn't support HID: tested a keyboard

I've tested a "Freedom Universal Keyboard", model G912. Wiki says it should work but...

Doesn't connect on HID mode (connection reset by peer), while on SPP just gives wrong characters, and also keeps sending chars even when not typing.

Used kbdd too, this time on my desktop with usb dongle. Same thing as above, maybe this model is incompatible/needs special driver?

Kiantis - 31 Aug 2008

I configured the G912 (Freedom Universal Keyboard²) in SPP and directly read serial input. There you get for each typed key a byte. If the MSB is not set (0x80) the key is pressed. With python a managed to feed this keys to /dev/input/uinput. But in the moment I think the script is only usable by myself.--Plaicy 21:31, 31 December 2008 (UTC)