Serial Port Profile is a Bluetooth classic profile. It is not available as a standard profile in BLE. Therefore, you'll have to create a custom BLE service and send the commands. Please refer to the Day020_BLE_UART project from the GitHub. This code example uses a custom BLE profile to demonstrate the UART-BLE bridge functionality. In order to emulate both peer devices as UART COM ports, this example essentially consists of two projects – Central and Peripheral. When appropriately interfaced to a PC, each of the peer devices can be used as a COM port using a terminal application (like TeraTerm). The data sent through the terminal application at one end, appears at the other end, as it does over wired UART communication.
Please let me know if this helps.
Thank you very much. It was very helpful.
If devices including classic BT other than PSoC4 + BLE can also be used, is there anything that does not require software development that can send and receive just by typing a command?