A way to observe commands and responses

  • 1
  • Question
  • Updated 4 years ago
  • Answered
Is there some "switch" (e.g. a command line option) that would log the commands sent by the SSDR UI to the FlexLIb Api and vice versa?

I'm looking through the C# FlexLIb API and trying to understand how it is used by the SSDR UI. Without access to the source for the UI it's a bit of a mystery at times. It would be helpful to see a log of the activity.

I suppose I could recompile FlexLIb API and add logging into it but I'm guessing that it might already exist (in some undocumented dark corner).

Thanks
Photo of Doug - K3TZR

Doug - K3TZR

  • 120 Posts
  • 17 Reply Likes

Posted 4 years ago

  • 1
Photo of Andreas Junge

Andreas Junge, Elmer

  • 58 Posts
  • 8 Reply Likes
I think WireShark is your friend :-)

“Perry Rhodan fascist

Run the right filters and you will see all the traffic to and from the radio. 

73, Andreas, N6NU
Photo of Doug - K3TZR

Doug - K3TZR

  • 120 Posts
  • 17 Reply Likes
Andreas,

I agree, Wireshark can be useful. The right filters are the part I find difficult. I was hoping that there was some simpler approach buried in the code.

BTW, I didn't state the problem correctly, I actually want to see the traffic between the Radio (hardware) and FlexLib but you seem to have understood what I meant.

I gave Wireshark another try, here's a capture filter that I found useful:

host <ipAddress> and tcp and greater 70

The "greater 70" eliminates the ping packets making it easier to see the useful parts.

Thanks
(Edited)
Photo of Andreas Junge

Andreas Junge, Elmer

  • 58 Posts
  • 8 Reply Likes
There also is a "Follow conversation" feature, so you can see the flow of commands over multiple packets.

73, Andreas, N6NU
Photo of Steve - N5AC

Steve - N5AC, VP Engineering / CTO

  • 1057 Posts
  • 1097 Reply Likes
Official Response
Wireshark is the easiest way to do this.  Find one communication between the radio and SmartSDR (one TCP packet) and right click on that packet and say "follow TCP conversation."  This will bring up the complete communications of command, response and status information between the client and the radio.