Recently, I had chance to write some codes to test the new ElertricBlue java BT stack which is base on windows. Overall, this new java BT stack has good quality. I am able to transmit string and image over RFCOMM connection (serial port---btspp). However, as the codes being written, I found two bugs which has been comfirmed later by jsr support team.
1. The first bug has been found when I was calling getRecord() method using my own service and StreamConnetionNotifer. This function call throwed a IllegalArumenException indicates that StreamConnectionNotifier with scheme other than btspp. Therefore, in simple words, I was unable to update my new service record details such as service description.
2. The second bug also occurred with my new service record. In my application, I have created a connection URL as URL = “btspp://localhost:af7979de967411db8ef30030487 65314;name= RemotCam”. By Bluetooth Specification, the new service name should automatic be added in SDDP, and I can use my other BT device to find it. However, ElerticBlue did not add the new service name into SDDP, It physically named the new service as “service” in the SDDP. Therefore, if there is more than one new service has been created. All of them will be named as “service” when other devices are doing the service search.
This two bugs have been fixed by jsr support team now. If anyone have the same problem, please download the latest version of ElertricBlue from jsr offical website or contact me if you cant find them or need some help with j2se bt coding.
my email: phail_xn@hotmail.com
nathan
|