How can I test the EZ-Serial platform’s CYSPP function?
By default, these modules have the EZ-Serial firmware. If not, use the PSoC Programmer to download the Ez-Serial hex file into the module.
Connect the module’s UART port to your PC. The UART pin is Rx=P1.4 and Tx=P1.5. The default baud rate is 115200.
Power on the module. After power on, the module prints the UART log as follows: @E,003B,BOOT,E=0101011A,S=03030035,P=0103,H=0B,C=01,A=00A0507436EE
Launch CySmart, and connect the CY5677 or CY5670 dongle to you PC. See this document to getting started with CySmart. Click Start Scan. The “Ez-Serial XX:XX:XX” will be detected. By default, the module is in BLE Peripheral mode.
Click Connect, and then select Discover All Attributes > Enable All Notifications. This enables CYSPP mode (UART to BLE throughput).
In EZ-Serial’s CYSPP profile’s details, the handle 0x0E is used for acknowledged throughput and 0x0F is the CCCD. The handle 0x011 is used for unacknowledged throughput and 0x12 is the CCCD. The handle 0x14 is used for Rx flow control and the 0x15 is the CCCD.
Send the data in UART terminal, the data will be displayed in CySmart’s 0x0E handler. Send the data in handle 0x0E by using the write command. The data will be displayed in the UART terminal.
Disable all notifications in CySmart or assert the EZ-Serial module’s CYSPP pin (set as HIGH) to exit CYSPP mode.