Hello all,
I have problems to connect a BTLE-Keyboard using HOGM.
I use a WL18xx on a AM335x Board with the BT-Stack AM335xBluetopiaLinuxProduction-4.0.3.0.1.0.
This is what I do:
- ./SS1BTPM & ./LinuxHOGM
- Initialize 1
- SetDevicePower 1
- RegisterEventCallback
- RegisterHOGMCallback
- RegisterAuthentication
- StartDeviceDiscovery 1 11
...
My Keyboard with ID FABADE98212C is recognized - PairWithRemoteDevice FABADE98212c 1
Attempting to Pair With Remote LE Device: FABADE98212c.
DEVM_PairWithRemoteDevice() Success: 0.
.....
HOGM>
LE Remote Device Pairing Status: FABADE98212C, FAILURE (0x8000001F)
After PairWithRemoteDevice() nothing happens.
There is no question for a Pincode or sth else.
After a Timeout of 30 sec the pairing status is Failed.
What is wrong with my approach?
Below some more information.
Regards,
Roland
HOGM>QueryRemoteDeviceProperties FABADE98212C 1
Attempting to Query FABADE98212C Device Properties: LE, ForceUpdate: FALSE.
DEVM_QueryRemoteDeviceProperties() Success: 0.
BD_ADDR: FABADE98212C
Address Type: Static
Device Name: Keyboard K780
LE Type: Dual Mode
Device Flags: 0xC0082001
Device Appearance: 961
LE RSSI: -51
LE Trans. Power: 4
LE Paired State : FALSE
LE Connect State: FALSE
LE Encrypt State: FALSE
GATT Services Known: FALSE
RSSI: 0
Friendly Name:
App. Info: : 00000000
Paired State : FALSE
Connect State: FALSE
Encrypt State: FALSE
Sniff State : FALSE
COD: 0x000000
SDP Serv. Known : FALSE
HOGM>QueryLocalDeviceProperties
DEVM_QueryLocalDeviceProperties() Success: 0.
BD_ADDR: 5C313EE3E22A
HCI Ver: 0x0007
HCI Rev: 0x0000
LMP Ver: 0x0007
LMP Sub Ver: 0xAC08
Device Man: 0x000D (Texas Instruments Inc.)
Device Flags: 0x80000000
BLE Address Type: Resolvable Random
BLE BD_ADDR: 77F1EA4476ED
COD: 0x1C0424
Device Name: otto
Disc. Mode: TRUE , 0x00000000
Conn. Mode: TRUE , 0x00000000
Pair. Mode: TRUE , 0x00000000
LE Scan Mode: FALSE, 0x00000000
LE Adv Mode: FALSE, 0x00000000
LE Slv Mode: Not in Slave Mode