GQ Electronics Technical Support Forum Active Users: / Visits Today:
Highest Active Users:
GQ Electronics Technical Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 GQ Electronics Forums
 3. GQ EMF EF Meter RF Spectrum Power Analyzer
 Getserial
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

OjosdePez

Argentina
1 Posts

Posted - 07/05/2025 :  09:25:07  Show Profile  Reply with Quote
<GETSERIAL>> Returns a 7 bytes string containing the last 6 of the 12 bytes of serial showed by menu. The last 6, but 7 bytes are returned by protocol. How this last added byte is calculated ? Kind of checksum, CRC or what ?

Dear
Reply #1

ullix

Germany
1202 Posts

Posted - 07/06/2025 :  01:48:34  Show Profile  Reply with Quote
This is what GQ's documentation "GQ-RFC1701 GQ EMF Communication Protocol" says:

# 13. get serial number
# Command: <GETSERIAL>>
# Return: serial number in 7 bytes.

But this is only half-way correct. What the device actually returns is e.g.:
5C 28 34 36 39 37 14 00 48 36 37 31

These are 12 bytes. You see that the 8th byte is a zero, which in C computer language signals the end of a string, therefore the first 7 bytes make up the proper serial value. The final 4 values - in this example 4; this segment could be up to 8 characters long - is named DSID and is an additional identifier, which is sometimes (always?) needed for upgrading device firmware.

Overall, it is inappropriate handling of strings in C!

If you want to know more details run GeigerLog (https://sourceforge.net/projects/geigerlog/) and / or look into its code; it is Open Source.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
GQ Electronics Technical Support Forum © Copyright since 2011 Go To Top Of Page
Generated in 0.07 sec. Snitz's Forums 2000