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
 GMC 320 serial command line not consistent
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

toplard

United Kingdom
2 Posts

Posted - 09/30/2017 :  12:00:36  Show Profile  Reply with Quote
Dear All,

My GQ GMC320+v4.25 is working perfectly with GQ Data Logger, so the USB serial link must be wokring fine.

I want to use rrdtool to poll it periodically write to an RRD and graph it on a web server.

But... when I use the commands in the readme I get the following results which I cannot fathom. It works for some commands but not others - some respond, others not, others respond with garbage, so it makes no sense.

Setup is RPi, Fedora 25 Server armv7, 115200 8N1.

I get the same results under windows 10 using Putty.

See link for screen shot: https://photos.app.goo.gl/OiW5tMoMfBsDmLfx1

<GETVER>> OK
<HEARTBEAT1>> OK
<HEARTBEAT0>> OK
<POWEROFF>> OK
<FACTORYRESET>> OK
<REBOOT>> OK
<POWERON>> OK

Heartbeat returns garbage

<GETCPM>>
<GETVOLT>> returns a *
<SPIR[A2][A1][A0][L1][L0]>> returns garbage
<GETCFG>> returns garbage
<ECFG>>
<WCFG[A0][D0]>>
<key[D0]>>
<GETSERIAL>> returns garbage
<CFGUPDATE>>
<SETDATEYY[D0]>>
<SETDATEMM[D0]>>
<SETTIMEHH[D0]>>
<SETTIMEMM[D0]>>
<SETTIMESS[D0]>>
<SETDATETIME[YYMMDDHHMMSS]>>
<GETDATETIME>>
<GETTEMP>>
<GETGYRO>> returns garbage

* blanks = no response

Thoughts anyone?

Robin Smith

Edited by - toplard on 09/30/2017 12:02:05
Reply #1

ZLM

1261 Posts

Posted - 09/30/2017 :  21:02:09  Show Profile  Reply with Quote
Some commands return data in hexdecimal value. See details from GQ-RFC1201 protocol:
http://www.gqelectronicsllc.com/downloads/download.asp?DownloadID=62
Go to Top of Page
Reply #2

ullix

Germany
1171 Posts

Posted - 10/01/2017 :  02:31:40  Show Profile  Reply with Quote
An even better documentation is available on Phil Gillaspy's site as GQ-GMC-ICD.* documents ( https://sourceforge.net/projects/gqgmc/files/gqgmc/ )

My GeigerLog program's device interaction is largely based an his docu. If you understand Python, look into GeigerLog's source code for programming details (file gcommands.py). Note that some firmware bugs and firmware design don't make this straight forward; further complicated by differences in the 500 model. Explained in the GeigerLog manual.

All found here: https://sourceforge.net/projects/geigerlog/
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