SmartSDR v3.8.19 and the SmartSDR v3.8.19 Release Notes | SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes
Power Genius XL Utility v3.8.8 and the Power Genius XL Release Notes v3.8.8
Tuner Genius XL Utility v1.2.11 and the Tuner Genius XL Release Notes v1.2.11
Antenna Genius Utility v4.1.8
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
Client Disconnect
I am trying to gracefully disconnect my TeensyMaestro from the radio when it is a GUI Client. The idea is that it should not leave a connection open, causing SmartSDR to go into MultiFlex mode.
If I send this API command from a different client, it disconnects my TeensyMaestro just fine. If I issue it from within the TeensyMaestro, it has no effect. (C++ code)
fRig.send("client disconnect " + fRig.Client_Handle );
Client_Handle is the handle for the TeensyMaestro.
If I issue a plain client disconnect (i.e. disconnect everything) from my TeensyMaestro, it disconnects SmartSDR, but not itself.
Is there a sequence of commands that allows a client to disconnect itself?
Best Answer
-
Have you tried calling shutdown on your TCP socket?
That should be all it takes for the radio to forget about your client.
1
Answers
-
Thanks Mark! I have not tried that. I will give it a go tomorrow. I will need to dig into the Ethernet library for the Teensy board to see what functions are available.
This project is my first foray into any kind of TCP/IP programming, so everything I do is a new adventure!
0 -
Thanks Mark, that worked! Now if I forget and start my TeensyMaestro before starting SmartSDR, I can just power it back off and the connection will clear. Before, I had to select Disconnect and then go through the Disconnect screen and power off the TeensyMaestro anyway.
Now that I have this fixed, I will never start up in the wrong order again... 😄
0
Leave a Comment
Categories
- All Categories
- 289 Community Topics
- 2.1K New Ideas
- 530 The Flea Market
- 7.5K Software
- 6K SmartSDR for Windows
- 146 SmartSDR for Maestro and M models
- 357 SmartSDR for Mac
- 249 SmartSDR for iOS
- 229 SmartSDR CAT
- 171 DAX
- 352 SmartSDR API
- 8.7K Radios and Accessories
- 7K FLEX-6000 Signature Series
- 20 FLEX-8000 Signature Series
- 841 Maestro
- 43 FlexControl
- 847 FLEX Series (Legacy) Radios
- 793 Genius Products
- 415 Power Genius XL Amplifier
- 277 Tuner Genius XL
- 101 Antenna Genius
- 243 Shack Infrastructure
- 166 Networking
- 404 Remote Operation (SmartLink)
- 130 Contesting
- 630 Peripherals & Station Integration
- 125 Amateur Radio Interests
- 869 Third-Party Software