SuperPCFan
New Member
I want to use a RPi4 with Raspbian GNU/Linux 10 (buster) as bluetooth HID device.
The bluetooth pairing works fine as long as I not load my Java app. At the startup my Java app uses the BlueCove lib to start a "btspp" server with the HID service (1124). I got no exception from Java and no error from the sddb at setup. With "sdptool" a can see the HID service running at the sddb.
But when I try to pair my RPi4 with a client PC after startup of my app the connection is refused right after the beginning. I added the system log (btlog.txt) of the pairing process which shows the errors but I do not understand the error ids and I cannot find a error id description.
I assume there is a mistake in the HID service attributes settings my app defines but after reviewing specs and examples I cannot find a obvious problem. I added my Java bluetooth class with the attribute constants and the HID descriptors.
Has someone a hint?
The bluetooth pairing works fine as long as I not load my Java app. At the startup my Java app uses the BlueCove lib to start a "btspp" server with the HID service (1124). I got no exception from Java and no error from the sddb at setup. With "sdptool" a can see the HID service running at the sddb.
But when I try to pair my RPi4 with a client PC after startup of my app the connection is refused right after the beginning. I added the system log (btlog.txt) of the pairing process which shows the errors but I do not understand the error ids and I cannot find a error id description.
I assume there is a mistake in the HID service attributes settings my app defines but after reviewing specs and examples I cannot find a obvious problem. I added my Java bluetooth class with the attribute constants and the HID descriptors.
Has someone a hint?