Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
liubenyuan
Posts: 6
Registered: ‎02-28-2013
My Device: Playbook, 9780
My Carrier: Vodafone

How to transfer data using the bluetooth interface

Currently I purchased a Xilinx demo board and a digilent PMODBT2 bluetooth module, I want send the sampled data using ADC on Xilinx board to my playbook through the bluetooth interface.  The data transfer starts once the pairing have been done. The PMODBT2 using Roving Networks® RN-42 chips which states that "Once connected, the device will be in data mode allowing data to flow in both directions as if the serial port were locally attached to the PC." So I guess the software on the BB side is similar to an simple Serial/RS232 code.

 

I google around and find no demos that illustrating the bluetooth data transfer using the NDK. Could anybody help me illustrating the working flow of such bluetooth transmission.

Please use plain text.
New Contributor
liubenyuan
Posts: 6
Registered: ‎02-28-2013
My Device: Playbook, 9780
My Carrier: Vodafone

Re: How to transfer data using the bluetooth interface

A demo code on bluetooth is required, and if possible, some reference on how to pair device and initiate data transfer.

 

Thanks in advance!

Please use plain text.
Developer
Developer
klz
Posts: 132
Registered: ‎08-24-2011
My Device: Z10 LE + Playbook
My Carrier: MTS Ukraine

Re: How to transfer data using the bluetooth interface

I suggest you need to use SPP. Here is an example that shows how to use SPP

 

https://github.com/blackberry/Cascades-Samples/tree/master/bluetoothsppchat

 

Thank you!
----------------------------
My Apps: Alchemy Game | Image Resizer | Jam! | Traffic Signs: USA | Radio Record
My Blog: http://bb10pro.com
Please use plain text.
Developer
dans
Posts: 20
Registered: ‎11-17-2010
My Device: Dev Alpha A
My Carrier: -

Re: How to transfer data using the bluetooth interface

I believe bluetooth support is only available on BB10 but not on the Playbook. The sample is for BB10.

Please use plain text.
New Contributor
liubenyuan
Posts: 6
Registered: ‎02-28-2013
My Device: Playbook, 9780
My Carrier: Vodafone

Re: How to transfer data using the bluetooth interface

The playbook indeed has an bluetooth and I can pair with my RN-42 device through the system menu.

 

It seem like I must work it out by myself

Please use plain text.
Developer
dans
Posts: 20
Registered: ‎11-17-2010
My Device: Dev Alpha A
My Carrier: -

Re: How to transfer data using the bluetooth interface

Yes the Playbook Tabelt OS has Bluetooth of course, but I believe there is no Bluetooth API for your App to use it.

Please use plain text.
New Contributor
liubenyuan
Posts: 6
Registered: ‎02-28-2013
My Device: Playbook, 9780
My Carrier: Vodafone

Re: How to transfer data using the bluetooth interface

I am wondering what if I upgrade the playbook OS using OS10 dev alpha. It is any possible that I can use the Bluetooth API? 

 

Regards

Please use plain text.