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

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an Image File
Check here to include your profile signature.
    

T O P I C    R E V I E W
OjosdePez Posted - 07/05/2025 : 09:25:07
<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 ?
1   L A T E S T    R E P L I E S    (Newest First)
ullix Posted - 07/06/2025 : 01:48:34
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.

GQ Electronics Technical Support Forum © Copyright since 2011 Go To Top Of Page
Generated in 0.06 sec. Snitz's Forums 2000