Hi Daniel,
There's a description of the Wireless UART SDK example in chapter 5.17 (of the Bluetooth Low Energy Demo Applications User Guide, in the following path: <SDK_2.2.2_FRDM-KW36\docs\wireless\Bluetooth>), detailing the setup for this example, and providing a general description of its functionality, but, unfortunately, there's currently no flowchart for the process on one of the included documents.
However, in general, the flow of the program after the connection procedure (assuming that the IoT Toolbox app is working as a Central device, and the KW36 is the Peripheral) is as follows:
- On the App's end, the app interprets and parses the information input by the user, and writes the wireless UART characteristic.
- On the receiving end, the BleApp_GattServerCallback is triggered, and the funciton manages the gEvtAttributeWrittenWithoutResponse_c event, which will call the BleApp_ReceivedUartStream.
This function will take the received information, clean it up and format it for the UART in the receiving device. It will also allocate memory, and then write it to the Serial Manager's Tx Buffer for transmission to the other card or transmission.
- For transmitting from the KW36 to the App, the serial data is received through the KW36's UART, using the Serial Manager functions. This information is then flushed to the corresponding Wireless UART characteristic through the BleApp_FlushUartStream function, writing the characteristic in the process.
Please let me know if you need any more information.
Best regards,
Sebastian