开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Jumping base line


 

On Sat, Aug 15, 2020 at 11:09 PM, Erik Kaashoek wrote:
On Sat, Aug 15, 2020 at 03:30 PM, OneOfEleven wrote:
, I already started writing PC software for it.
Make sure you use the "scanraw" command i.s.o scan or sweep as scanraw can do unlimited points and sends data in binary, much faster
? ?Besides the faster speed and unlimited points, the tinySA 'scanraw ' command transfers corrected data - unlike the similar command on the NanoVNA which transfers raw data and requires you to externally apply calibration factors.? That's the major reason I've never used the 'scanraw' command on the NanoVNA.

? The binary format of the data returned by the tinySA 'scanraw' command is easy for C programmers to convert to actual dBm values.? Programmers using higher level languages like Python, will struggle doing the conversion until some examples start appearing on the web.

? From notes provided to me from Erik:

? ? ?Scanraw command outputs:
? ? ? ? ?byte 1: '{'
? ? ? ? ?byte 2: 'x'
? ? ? ? ?byte 3: LSB of 16?
? ? ? ? ?byte 4: MSB of 16?
? ? ? ? ?.. repeats bytes 2,3 and 4 for all points
? ? ? ? ?byte end: '}

? ? ? ? ?level in dBm? = ((byte3 + (byte4) * 256) )? / 32 - 128

? - Herb

Join [email protected] to automatically receive all group messages.