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

Introduction

 

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.

 

BLED112_SPP_example.png

 

Attachments

 

 

Comments
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">Super Star</font></font> </a> finalfantacypro
on ‎07-11-2017 11:45 AM

Q1.PNG

Hello,

I add some services in my C code but the rest is the same, Here all the UUIDs are wrong which I can't find in the code. "compteur" is the right name. My SDK version is 2.4.0.1

Please help me

 

 

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 ‎08-14-2017 04:54 AM

 Hello @finalfantacypro

 

sorry for the late reply, just came back from summer vacation. Were you able to solve the problem on your own?

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">Super Star</font></font> </a> finalfantacypro
on ‎08-14-2017 07:52 AM

Hello,

Yes, thank you! It works now.