Reply
Posts: 2
Registered: ‎09-13-2017
Accepted Solution

cannot run spp_server.exe in the /host_example/spp_server/Debug

I am following Section 4.7 Running the host application on Windows of

 

BGAPI AND BGLIB SPP SERVER EXAMPLE
APPLICATION NOTE FOR BT121 AND DKBT

Friday, 08 July 2016
Document Revision: 1.00

 

I can flash the device  :

 

c:\Bluegiga\smart ready-1.1.2-184\example\bt121>..\..\bin\bgupdate.exe COM5 BT121_BGAPI_UART115k.bin
100%
8662ms
c:\Bluegiga\smart ready-1.1.2-184\example\bt121>

 

 

But when I try to run the executable I get :

 

c:\Bluegiga\smart ready-1.1.2-184\host_example\spp_server\Debug>spp_server.exe 5 115200
main() - failed to open port 5, ret: -1, errno: 0

 

Any ideas what I am doing wrong???????

 

Thanks in advance J

 

Posts: 7
Registered: ‎05-17-2017

Re: cannot run spp_server.exe in the /host_example/spp_server/Debug

You should write spp_server.exe COM5 115200 instead of spp_server.exe 5 115200.

 

BR Jonse

Posts: 2
Registered: ‎09-13-2017

Re: cannot run spp_server.exe in the /host_example/spp_server/Debug

Oh yeah!!!! Thanks very much BR, that worked.