Perceived incorrect response to display pan set max_dbm

  • 1
  • Question
  • Updated 2 years ago
  • Answered
radio Flex 6500
software 1.6.21

command sent        C29|display pan set 0x40000000 max_dbm=-20.13

response received  R29|0|

Expected response R29|0|-29.13

Why would the logic to process the change to max_dbm return a 0 status code but no new value?

The same phenomenon occurs for min_dbm as well.

The result of not having a string reply value is SetHighDbmReply(int seq, int resp_val, String s) fails with an "invalid reply string".

Thanks!
Photo of Walt - KZ1F

Walt - KZ1F

  • 3040 Posts
  • 642 Reply Likes

Posted 2 years ago

  • 1
Photo of Walt - KZ1F

Walt - KZ1F

  • 3040 Posts
  • 642 Reply Likes
I looked at wireshark display of the data sent by ssdr and the data sent by XPSSDR. The only difference I can see is the total packet size. The actual cmd and line termination are identical. So really there are two issues:
1) why is the there a 0 response code but no data sent?
2) the answer to the first will point me to what I need to change such that the cmd reply is correctly formatted.
Photo of Walt - KZ1F

Walt - KZ1F

  • 3040 Posts
  • 642 Reply Likes
---resolved---

The methods for setXXXDbmReply only have a value associated with the response if the return code is NOT equal to 0. When I saw the new value was being set independent of a response, which does come anyway, I assumed it was erroneous code to set the new value before verifying the change was valid so I commented out the setting of the new value in the initial setXXXDbm.

Tim, this can be marked as answered.