Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1
206
Ver.1.0.0
Figure 12-2 Scan Module Device
Figure 12-3 Connect Module Device
After Telink module establishes BLE connection with the phone, in the phone App, users
can see two “Telink SPP”, one is “Module->Phone” used for sending data to the phone
from the module, another “Phone->Module” used for sending data to the module from the
phone. From the descriptors the data transfer directions are easy to know.
12.2.1 Module Sends Commands and Data
Data interconnection between the PC and the module is via the serial port. Users can
modify the parameters of the serial port (baud rate, odd-even check, stop bit, etc.) in the
module project as needed. The PC can transfer commands and data to the module, while
the module can only report corresponding events to the PC. If it is commands that are
transferred by the PC, the module will process the commands and report an event to the
PC according to the processing result; if it is data that are transferred by the PC, the
module will transfer the data to a remote device via BLE and report an event. Please see
section 12.1 for formats of commands, data and events.
and
show the demo of the module sending data to the phone. The part marked by “1” in
Figure 12-4
is the data sent by the module to the phone via command “Send Data” (cmd
ID:0xFF1C)
; the part marked by “2” is the event reported by the module, which indicates
the success of data transmission. Figure 12-5 shows the data received by the phone are
the same as the data sent by the module.