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
 2.GQ Geiger Muller Counter
 Firmware BUG: Bad save data with GMC-300Re 2.30
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jd

4 Posts

Posted - 12/20/2012 :  06:08:28  Show Profile  Reply with Quote
Using a GMC-300 with firmware version "GMC-300Re 2.30", here's some raw data extracted from the 64 KiB memory via the USB serial interface:


61F0:  55 AA 01 02  74 55 AA 01  02 2C 55 AA  01 02 79 55
6200:  01 02 1C FF  55 AA 01 02  35 55 AA 01  02 66 55 AA
6210:  01 02 56 55  AA 01 02 4E  55 AA 01 02  59 55 AA 01
6220:  02 38 55 AA  01 02 80 55  AA 01 02 4C  55 AA 01 02
6230:  70 55 AA 01  02 3C 55 AA  01 02 A1 55  AA 01 02 2B


With "55 AA 01" indicating a following 16-bit (two byte) value, this data would decode to the following readings in hexidecimal:
0x274, 0x22C, 0x279, 0x55,
0x1, 0x2, 0x1C, 0xFF,
0x235, 0x266,
0x256, 0x24E, 0x259,
0x238, 0x280, 0x24C,
0x270, 0x23C, 0x2A1, 0x22B

Notice the values that don't fit the trend.

Note too that the address 0x6200 occurs on a 0x100 byte boundary.

It seems as if an intended sequence of 55 AA 01 02 1C required two separate writes due to the boundary, but then was misaligned for the second write, losing the AA, and revealing an FF which would have been over-written by the 1C if the alignment had been correct.

At another memory location:

                                                    55 AA
5EF0:  01 02 21 55  AA 01 02 3C  55 AA 01 02  0C 55 AA 01
5F00:  1B FF 55 AA  01 02 7C 55  AA 01 02 4A  55 AA 01 02
5F10:  33


This decodes to readings of:
0x221, 0x23c, 0x20c,
0x1BFF, 0x27C, 0x24A,
0x233

Here again at a 0x100 byte boundary the same bad behavior appears, except this time data is lost and an erroneous reading of 0x1BFF (7167 in decimal) replaces the correct reading, unknown but probably 0x21B (539 in decimal). Due to the firmware bug, the device records a false value over 13 times higher than the likely correct value here.

This problematic behavior continues to repeat itself throughout the saved history data.

Does anyone know if there is currently a firmware version available that corrects this bug that causes potential data loss every 256 bytes?
Reply #1

ZLM

1261 Posts

Posted - 12/21/2012 :  21:46:34  Show Profile  Reply with Quote
It seems it happend when the CPM reading is super high( greater than 30600 CPM).

It works fine on regular reading.

This should be fixed.

Here is my raw data log:

Image Insert:

160.29 KB
Go to Top of Page
Reply #2

jd

4 Posts

Posted - 12/22/2012 :  03:55:40  Show Profile  Reply with Quote
quote:

Here is my raw data log:



I see the bug in your data too at address 00008100 where the decoded value jumps up to 53759 (0xd1ff) between values of 765 (0x02fd) and 805 (0x325).

The bug isn't limited to counts that exceed 255 and require multiple bytes. This off-by-one alignment bug also corrupts time stamps. Here's an example extracted from the same GMC-300:


98F0:  .. .. .. ..  .. .. .. .. 55 AA 00 0C  0C 14 01 24  
9900:  FF 55 AA 00  .. .. .. .. .. .. .. ..  .. .. .. ..


"55 AA 00" marks the time stamp and this data decodes to a date and time of 12-12-20 1:36:255.
We tend not to see 255 seconds in less than a minute.
Go to Top of Page
Reply #3

ZLM

1261 Posts

Posted - 12/24/2012 :  19:43:02  Show Profile  Reply with Quote
Contact support@gqelectronicsllc.com for the firmware update. It should be fixed in firmware Re.2.31
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.06 sec. Snitz's Forums 2000