I am looking to present the device (HTC Desire) to a PC as a Human Interface Device (HID).
The idea is to use "socket = btserver.accept()" to open up a pipe to the PC, and then I implement the HID protocol across the pipe. I have changed the UUID to reflect its a HID ("00001124-0000-1000-8000-00805F9B34FB") and the PC is recognising it as a HID. Good start. Using a breakpoint I have confirmed the "socket = btserver.accept()" is being reached. However when I click on "Next" on the PC (to start "Registering a HID device ot this system. Please Wait.") the PC reports "Registration Failed". Breakpoints after the "socket = btserver.accept()" show that the accept does not complete and instead timesout after the 120 seconds. Is this a valid approach, or does the HID need implemented in the Android / Linux operating system? If I am flogging a dead horse, what is the alternative approach? Does it invlove writing some drivers on a PC and opening up some sort of generic pipe between the PC and handset? Here's the relevant logcat trace:- 05-26 22:47:46.000: WARN/ActivityManager(75): Launch timeout has expired, giving up wake lock! 05-26 22:47:46.029: WARN/ActivityManager(75): Activity idle timeout for HistoryRecord{46525e78 com.paad.bluetoothtexting/.BluetoothTexting} 05-26 22:47:49.110: INFO//system/bin/btld(11841): ##### USerial_Ioctl: BT_Wake, 0x8003 #### 05-26 22:47:49.160: WARN/BTLD(11842): info:x0 05-26 22:47:49.160: INFO/BTL-IFS(11842): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 10 pbytes (hdl 14) 05-26 22:47:49.160: DEBUG/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_up() 05-26 22:47:49.160: INFO/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_up: dummy_handle = 272 05-26 22:47:49.160: DEBUG/ADAPTER(11855): adapter_get_device(00:1B:FB:CE:61:EF) 05-26 22:47:49.160: ERROR/BluetoothEventLoop.cpp(75): pollData[0] is revented, check next one 05-26 22:47:49.160: ERROR/BluetoothEventLoop.cpp(75): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/11855/ hci0/dev_00_1B_FB_CE_61_EF 05-26 22:47:49.210: WARN/BTLD(11842): ccb timer ticks: 2147483648 05-26 22:47:50.640: INFO/BTL-IFS(11842): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 11 pbytes (hdl 14) 05-26 22:47:50.640: DEBUG/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_down() 05-26 22:47:50.640: INFO/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_down device = 0xfbb0 handle = 272 reason = 19 05-26 22:47:50.640: ERROR/BluetoothEventLoop.cpp(75): pollData[0] is revented, check next one 05-26 22:47:50.640: ERROR/BluetoothEventLoop.cpp(75): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/11855/ hci0/dev_00_1B_FB_CE_61_EF 05-26 22:47:50.660: DEBUG/BluetoothA2dpService(75): Received intent Intent { act=android.bluetooth.device.action.ACL_DISCONNECT ED (has extras) } 05-26 22:47:51.217: INFO//system/bin/btld(11841): ##### USerial_Ioctl: BT_Sleep, 0x8004 #### Thanks in advance, Rab -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en