I'm implementing a bluetooth application to act as a HID host and receive data from the HID keyboard. The scenario is:
1. Initially I setup two L2CAP connections to the HID keyboard on port(PSM) 0x11 and 0x13 to get data from the two connections by using RSocket. This works fine for both reading and writing data on these two connections.
2. If the connection is broken because of unknown reason, ex. out of radio range, then the application starts listening on the two sockets with the same port numbers(0x11 and 0x13) to wait for connection re-establish from HID keyboard.
My problem is when the two listening sockets are accepted and connections are established, it will goes two situations. First, get KErrDisconnected or second, read no data after issuing read reqeust on the sockets. I'm sure that the HID keyboard is OK because it has been tested in PC environment. I guess it might be the incomplete HID implementation of my application. So is it possible to implement fully functional HID profile on S60 1.x and 2.0, 2.1?