maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2007 / Maemo 3 / Bora (https://talk.maemo.org/forumdisplay.php?f=23)
-   -   Generic Bluetooth Keyboard (https://talk.maemo.org/showthread.php?t=4487)

skler 2007-02-02 14:18

Generic Bluetooth Keyboard
 
I try to connect a generic keyboard (http://cgi.ebay.it/ws/eBayISAPI.dll?...8567&rd=1&rd=1)
after setting generic 105-key pc on hardware keyboard in control panel
I search new bluetooth device when find KEYBOARD I select that and set passcode to "0000" default value for that keyboard (and check trusted device) then It try to pairing and write paring complete.

The details are this:
Device Name: KEYBOARD
Trusted device: checked
Device Type: Uncategorised
Supported profiles: SPP
Bluetooth addr: XXX

I can't click on disconnect, I don't know how connect the keyboard of course it don't work.

I forghet something? what's wrong?

skler 2007-02-02 14:31

Re: Generic Bluetooth Keyboard
 
other info...

# hcitool info MAC
Requesting information ...
BD Address: MAC
Device Name: KEYBOARD
LMP Version: 1.1 (0x1) LMP Subversion: 0x2c2
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xbc 0x06 0x07 0x00 0x00 0x00 0x00 0x00
<encryption> <slot offset> <timing accuracy> <role switch>
<sniff mode> <RSSI> <channel quality> <CVSD> <paging scheme>
<power control>

I connect with:
# hcitool cc MAC
# hcitool lq 00:0A:3A:31:F9:45
Link quality: 233

Bluetooth applet change color and have disconnect option active but the keyboard doesn't work :(

fanoush 2007-02-02 14:58

Re: Generic Bluetooth Keyboard
 
Quote:

Originally Posted by skler (Post 32995)
Supported profiles: SPP

This cryptic line means your (probably cheap) keyboard does not support HID bluetooth profile so you are out of luck with easy nice out of box experience on any system including N770 and N800. You need extra drivers - kbdd in case of n770 or n800. See http://fanoush.wz.cz/maemo/#kbdd If your keyboard is not one of those already supported you need to modify kbdd to add support for your keyboard (basically means to figure out keycodes the keyboard sends when keys are pressed and released).

Karel Jansens 2007-02-02 16:52

Re: Generic Bluetooth Keyboard
 
It looks like the Freedom Keyboard or one of its namesakes, which is not HID compliant. There are drivers for it for the 770 (search the forums; I'm just too lazy today :D ) but I don't know if they work for the N800.

It's a very nice keyboard though, especially for ten finger typists.

skler 2007-02-02 20:59

Re: Generic Bluetooth Keyboard
 
this file save device type informations:
# cat /var/lib/bluetooth/00\:19\:4F\:A4\:BB\:E2/classes
MAC DEVICE_TYPE_CODE

phone code: 0x522204
Uncategorised code: 0x001f00

If someone can write here the code of keyboard I will try to change it.

this file have features info: /var/lib/bluetooth/00:19:4F:A4:BB:E2/features
that are the same of hcitool info output.

probably I need to set this file too...
so I need keyboard class code and features

Robert Newman 2007-02-19 05:38

Re: Generic Bluetooth Keyboard
 
Anyone tried the Apple Bluetooth keyboard with the IT800? I do not know if it is HID compatible, or not...but the price is better than some keyboards.

GeeZuZz 2007-03-02 18:12

Re: Generic Bluetooth Keyboard
 
Have anyone got a Logitech DiNovo keyboard connected to N800? It is discovered and passkey is displayed (i think it's auto-assigned), but it just won't complete pairing. :(

It works fine on my Windows Mobile device.

TA-t3 2007-04-13 13:17

Re: Generic Bluetooth Keyboard
 
Quote:

Originally Posted by Karel Jansens (Post 33027)
It looks like the Freedom Keyboard or one of its namesakes, which is not HID compliant. [..].

I just noticed that there is a new Freedom keyboard out, "Freedom Uniiversal Keyboard". This one has both HID and SSP profiles. Unfortunately not yet available with the layout I prefer. Seems to still be cheaper than e.g. the Nokia keyboard though.

EDIT: ..and now I found that other thread that said that HID doesn't in fact seem to work that well, so it's back to kbdd for this one too.. so no joy, apparently. The search continues.

piku 2007-05-06 22:12

Re: Generic Bluetooth Keyboard
 
is there any reason why my Freedom keyboard drops characters or inserts extras when II use kbdd?

It's as error-prone as the on-screen keyboard and just as slow due to consttant editing of the text. :( i have t very cccarefuly press eachkey ttttto ensure it registers correctly otherwise this happens!

fanoush 2007-05-07 13:18

Re: Generic Bluetooth Keyboard
 
Yes, this is known problem and can happen also with HID keyboards. Unwanted key repeat is caused by key release event received too late so the autorepeat feature of linux kernel kicks in since it thinks key is still down. Can be related to high CPU usage on tablet or 'noisy' environment on bluetooth/wi-fi frequencies or maybe low batteries or maybe even specific keyboard model with poor bluetooth implementation. Can be also poor bluetooth implementation in linux kernel. Hwever completely lost keys should not happen, only key events received late.

This issue can be partially fixed by raising kbdd priority (in case of high CPU usage) or changing key repeat rate. Happened to me few times. Recently it seems to work fine but I'm not using the keyboard so much. Sadly there is nothing that can be done in kbdd to solve this.

spiderx 2007-05-10 20:05

Re: Generic Bluetooth Keyboard
 
How about disabling key repeat in kbdd? automatically sending a 'keyup' command after 'keydn' for all keys? surely something could be changed in kbdd. The source code is pretty easy to understand. Makes me wonder why the dev didn't write a 'debugprint' function.

fanoush 2007-05-11 09:03

Re: Generic Bluetooth Keyboard
 
Quote:

Originally Posted by spiderx (Post 47993)
How about disabling key repeat in kbdd?

There are other tools for that but yes it could be added to kbdd too (together with kitchen sink ;-) In initfs there is evrepeat that might do what you want. Try as root this
Code:

chroot /mnt/initfs evrepeat
This could be added to btkbd script if some variable with preferred repeat rate is set in btkbd.conf.
Quote:

Originally Posted by spiderx (Post 47993)
automatically sending a 'keyup' command after 'keydn' for all keys?

Ugly hack, it is easier to simply turn it off in linux kernel if you prefer no key repeat.
Quote:

Originally Posted by spiderx (Post 47993)
The source code is pretty easy to understand. Makes me wonder why the dev didn't write a 'debugprint' function.

Yes, it is pretty simple. It is so simple you can actually add features mentioned above if you feel kbdd is right place for them. Or even rewrite it from scratch with bluetooth specifically in mind (might be good idea). kbdd was not done by me, I just recompiled it for maemo and added one my keyboard and few done by others. So far I wanted to minimize other changes since in such case it would be better to really start from scratch.

There is -d option which does print sent/received key codes. Try to run kbdd executable to see help. You can also set DEBUG=yes in btkbd.conf to have the debug output enabled and redirected to /tmp/kbdd.log


All times are GMT. The time now is 10:09.

vBulletin® Version 3.8.8