SPP client example using BLED112 dongle

by <a href="http://community.silabs.com/t5/Welcome-and-Announcements/Community-Ranking-System-and-Recognition-Program/m-p/140490#U140490"><font color="#000000"><font size="2">Legend Employee</font></font> </a> JaakkoV on ‎03-05-2017 10:10 AM



The example project included in this article shows how to use BLED112 dongle as SPP client, enabling transparent UART communication with an SPP server as described in the following knowledge base article:

SPP-over-BLE BGScript example for BGM111


Example usage



# run with "list" option -> list all dongles (check the COM port number)
./SPP_Client.exe list

# scan for any BLE devices (scanning will stop after 5 seconds)
./SPP_Client.exe COMx scan

# connect to a SPP server
./SPP_Client.exe COMx <BT address>


This program has been tested on Cygwin. It can be built simply by running make. The following screenshot shows example run. Left side is the Cygwin shell where the BLED112 client example is run. Right side is TeraTerm connected to BGM111 development kit, running the BGM111 SPP server example.