Bluetooth bytran communication

Remote conntrol and data retrieval in the upcoming bytran 1.3 may be carried out over the classic Bluetooth connection using the Serial Port Profile (SPP) based on the RFCOMM protocol (serial port emulation) with a UUID: 00001101-0000-1000-8000-00805f9b34fb .  This functionality is available under all platforms with the exception of iOS and Windows desktop operating systems older than Windows 10.   Please note that bytran may still be controlled from a device running iOS as long as the bytran program is executed on a device which does not run iOS (i.e. communicating from an iPhone with bytran running on an Android phone).   This restriction is caused by the fact that the Qt development environment used to develop bytran currently does not support classic Bluetooth connectivity under iOS.

Bytran runs both the classis Bluetooth server and the client, this functionality uses components from the Qt Bluetooth chat example with the service UUID modified to the one indicated above.   As such the connection with bytran may be established from the remote device to be used to control bytran or else from within bytran for devices operating in a slave Bluetooth mode.   To test the bytran Bluetooth control functionality, Bluetooth serial terminal programs may be used.   Such programs are available under different operating sytems including Android and iOS.   It is important that the bluetooth teminal application to use for testing uses the Serial Port Protocol, otherwise it will not be able to connect to bytran.   One such program under Android is called Bluetooth Serial Terminal and may be used to test bytran's bluetooth remote control functionality as follows:

1)   Install the Bluetooth Serial Terminal application onto the Android phone to be used to control bytran remotely (see Figure 1 below).
2)   Install bytran on another device (excluding devices running iOS) such as a cell phone or a computer.
3)   Pair the device running the Bluetooth Serial Terminal application with the device running bytran.
4)   In the bytran application, navigate to the second page of the menu, select the "Connect" option, and choose "Bluetooth" (see Figure 2 below).
5)   In the Bluetooth Serial Teminal application select the device running bytran as active device to connect to under the "Devices" menu.
6)   Click the connect icon at the top of the Bluetooth Serial Terminal application.
6)   Send commands to bytran from the Bluetooth Serial Terminal application (see Figure 1 below) according to the bytran communication protocol to control bytran over bluetooth.

For slave bluetooth devices: Some devices such as the HC-06 Serial to Bluetooth transceiver module frequently used with microcontrollers and other electronics can only operate in a slave mode (i.e. they are not able to initiate a Bluetooth connection).   To enable bytran interaction with such slave Bluetooth hardware the Bluetooth connection may be initiated by bytran.   To connect to a slave bluetooth device open the bluetooth connection window (shown in Figure 3 below) by pressing the "Discover devices and Connect" button in the main Bluetooth window (shown in Figure 2).

Remote control of bytran over Bluetooth

Bluetooth setup in bytran for remote control and data retrieval over Bluetooth using Serial Port Profile (SPP) based on RFCOMM protocol. -|- 2018