[ERROR] Reading ZERO value from Geiger tube #1
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: steffen/GCLog#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Author: @snarkbe
I have connected a GQ GMC 320+ v5 on a RasPi 2 Model B v1.1 running Raspbian.
The device is detected on /dev/ttyUSB0 and listed in lsusb.
The file gclog.conf is correctly configured to use /dev/ttyUSB0. When I start GCLog v0.2.4 (installed from the deb package), I get the following error every 2 seconds in journalctl :
Apr 17 10:06:59 pihole gclog[754]: [ERROR] Reading ZERO value from Geiger tube.Any idea about the issue? Is there a way to troubleshoot the serial connection? The GC is working fine, and sending data to the GQ Windows software when connected to my PC.
Author: @snarkbe
BTW I did enable
device.type=gqin /etc/gclog.conf and disable the other 2.Author: @stelas
Sounds strange to me. This error means that although data is written but cannot be received.
Is there any other USB device connected to the Raspi? So gclog may read from the wrong one.
You plug in the Geiger counter, turn it on so that it shows readings and then start gclog, right?
Gets the Geiger counter date/time synchronized with your Raspi on gclog startup?
If you can rule this out:
Can you post the corresponding lines from
dmesgandlsusb?Please also provide the verbose output from gclog started with parameter
-d(remove passwords, user ids, etc.).Author: @snarkbe
I don't have any other USB device connected to the RasPi.
dmesg:
lsusb:
Here is the verbose output. I only plan to send data to GMCMap:
This works fine on the RasPi: https://github.com/chaim-zax/gq-gmc-control . It connects fine to the GQ GMC, I can run all the commands without problems:
Author: @stelas
Everything seems to be right, except your GMC firmware version is much newer than mine.
I slightly modified the send function (
fcc206bac0).Please test attached gclog binary for Raspi and let me know if it works...
Author: @snarkbe
Sorry, same error message with the updated gclog :
Apr 18 15:08:50 pihole gclog[10370]: [ERROR] Reading ZERO value from Geiger tube.The first error message in journalctl is logged exactly 60 seconds after I run the
gclogcommand.Author: @stelas
The default polling
intervalis set to 60 seconds ingclog.conf.Here comes another gclog binary. It's based on
b7f3683e72, but with a higher baud rate of 115200.Can you trace the made system calls:
strace -v -f -o trace.log ./gclog -d -c /etc/gclog.conf &Wait until two or three Geiger counter readings are made, then stop it:
killall gclogAnd upload the captured
trace.loghere.Author: @snarkbe
Increasing the baud rate was the solution apparently:
Apr 18 19:32:22 pihole gclog[11957]: CPM: 24 (= 1484/61), Timestamp: Thu Apr 18 17:31:22 2019Apr 18 19:33:23 pihole gclog[11957]: CPM: 29 (= 1727/59), Timestamp: Thu Apr 18 17:32:23 2019Do you still need the trace.log ? I have captured one.
It's correctly uploading CPM data to GMCMap.com! :-)
Thanks!
Author: @stelas
Great that it works!
Regarding to GQ's manual the baud rate is different in newer hardware revisions.
I'll add an option for that in the next GCLog release...
Author: @snarkbe
I have compiled and installed 2.0.5. Thanks for the new release.
The page at https://www.dateihal.de/cms/gclog has not yet been updated for it, but maybe it's normal.
Author: @stelas
Solved in v0.2.5 (
57de17c254). Package for Raspi is available here.