|
Veethree D7 SDK
|
This is an example to establish Bluetooth serial communication between a D7 and a remote linux device such as on Ubuntu PC
To use RFCOMM, enable Bluetooth on the remote device and make the remote device discoverable.
Open the D7 shell, enable Bluetooth and create a pairing request to the remote device using commands given in Bluetooth Basics.
Once the devices are paired, follow the instructions given below in the same order.
Register a Serial Port Profile Service (SPP) by running the following command on both remote device and D7 shell-
On the D7 shell start an RFCOMM server and wait for incoming connections using:
Connect to the D7 by running the connect command on remote device shell:
Open a new shell on both the remote device and the D7 and start a serial terminal session using:
Use this session as a serial terminal and type in your messages.
Note: QML Bluetooth chat application included in examples/gui/qml-bluetooth-chat/ provides a GUI for RFCOMM server/client implementations.