10-17-2012 07:40 AM
Hi All,
Has anyone used Bluetooth SPP APIs in Blackberry SDK 10?
I used bt_spp_open for connection to remote SPP server (paired already manually) but the API is returning ENODATA always.
bt_device_init and bt_spp_init were succesfully called before the above API.
The parameters used for the bt_spp_open were:
1) mac address of the server,
2) services UUID which was "0x1101",
3) true for nonblocking mode
Target device OS version used: 10.0.9.388
Anyone having experience on using Bluetooth API in BB10. Please help..Thanks in advance.
Solved! Go to Solution.
10-18-2012 03:05 AM
Gentle Reminder!!!
Any one please help in resolving the SPP APIs,,,,
10-22-2012 06:19 AM
Its urgent...Can anyone provide any clue..
10-23-2012 01:28 AM - edited 10-23-2012 02:43 AM
I tried to use blackberry as SPP sever using bt_spp_open_server API which is also not behaving consisstamtly..sometimes it is returning -1 and sometimes positive value.
Please help....
10-29-2012 04:11 PM
10-30-2012 01:25 AM
Thanks for your reply...
Please update if you get any reply from RIM developers..
Also have you tried Bluetooth GATT APIs on SDK 10...
Thanks in advance for your efforts..
12-07-2012 10:11 AM
For service uuid you have to provide a unique UUID that identifies the partucular service your server is delivering. 0x1101 is not Service Id, but Service Type ID for SPP.
When you register server on a remote device (server) you use any unique 16-digits service uuid to pass in bt_spp_open_server. This is the same uuid that you have to pass in bt_spp_open on the client side
12-14-2012 06:36 AM
Thanks Drucker !!
bt_spp_open was succesfully inititalised by usung SPP UUID as "00001101-0000-1000-8000-00805F9B34FB".
I am now able to get the device data into Blackberry 10 Application.
12-14-2012 11:18 PM
You've got the idea. The only problem is your choice of UUID. Bluetooth organization defines UUID's for different service types, the one for SPP is 00001101-0000-1000-8000-00805F9B34FB whose short version is 0x1101 - there is 1-to-1 mapping between short (4 digits) and long (32 digits) versions of UUID. If you make a search ininternet, you'll find 00001101-0000-1000-8000-00805F9B34F widely metioned what makes it hardly unique.
As I said, you have to choose an UUID that uniquly identifies your particular service, not service type. For more detail see here http://developer.blackberry.com/native/reference/b
Ilya
01-23-2013 08:53 PM - edited 01-23-2013 08:53 PM
Might be worth checking out this sample,