Howdy
5 years 2 months ago #4716
by Wukong
Thanks guys.
Unfortunately, im pretty hazy on how to use terminal with ports, not really sure what im doing!
How would I open a terminal for reading the serial data?
Yup, i got radlog running, and uploading with the gc10 (my only geiger atm), that was nice and easy. Seems like the gc10 is configured ok.
I think id better have a bit more of a read about terminal and serial data.
Unfortunately, im pretty hazy on how to use terminal with ports, not really sure what im doing!
How would I open a terminal for reading the serial data?
Yup, i got radlog running, and uploading with the gc10 (my only geiger atm), that was nice and easy. Seems like the gc10 is configured ok.
I think id better have a bit more of a read about terminal and serial data.
Please Log in or Create an account to join the conversation.
5 years 2 months ago - 5 years 2 months ago #4717
by Wukong
Last edit: 5 years 2 months ago by Wukong.
Please Log in or Create an account to join the conversation.
5 years 2 months ago #4719
by Simomax
I'm pretty sure the GC10 only prints whole numbers with no decimals. Both of mine work that way and I don't know of a way to get it to print decimals. I suspect the data is OK from the GC10 and the issue is with PyRadmon.py.
Having a read of the old thread it looks to be an issue with the Pi opening the serial port. Unfortunately I know little about nix and even less of Python. Could do with ThibmoRozier's input if he is about these days?
Having a read of the old thread it looks to be an issue with the Pi opening the serial port. Unfortunately I know little about nix and even less of Python. Could do with ThibmoRozier's input if he is about these days?
Please Log in or Create an account to join the conversation.
5 years 2 months ago #4722
by Wukong
Yep, it outputs whole numbers
25
24
25
26
Etc
I actually might have got the baud rate wrong.
Changed it to 9600, now pyradmon really wants to go, but can't quite manage it:
Initializing geiger communication => geiger 1
Geiger sample => geiger 1: CPM = 19 2019-09-05 12:30:00.317059
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:01.425047
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:02.532857
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:03.640507
Average result => geiger 1: CPM = 18 2019-09-05 12:30:03.640507
Connecting to server => geiger 1
Sending average sample => geiger 1: 18 CPM
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:04.748539
Server response => geiger 1: HTTP/1.1 200 OK
Waiting 30 seconds => geiger 1
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:05.855546
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:06.962765
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:08.069434
Problem in getData procedure (disconnected USB device?) => geiger 1:
invalid literal for int() with base 10: '19\r\n20\r\n'
Exiting
25
24
25
26
Etc
I actually might have got the baud rate wrong.
Changed it to 9600, now pyradmon really wants to go, but can't quite manage it:
Initializing geiger communication => geiger 1
Geiger sample => geiger 1: CPM = 19 2019-09-05 12:30:00.317059
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:01.425047
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:02.532857
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:03.640507
Average result => geiger 1: CPM = 18 2019-09-05 12:30:03.640507
Connecting to server => geiger 1
Sending average sample => geiger 1: 18 CPM
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:04.748539
Server response => geiger 1: HTTP/1.1 200 OK
Waiting 30 seconds => geiger 1
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:05.855546
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:06.962765
Geiger sample => geiger 1: CPM = 18 2019-09-05 12:30:08.069434
Problem in getData procedure (disconnected USB device?) => geiger 1:
invalid literal for int() with base 10: '19\r\n20\r\n'
Exiting
Please Log in or Create an account to join the conversation.
5 years 2 months ago #4723
by Wukong
Ive come across similar errors in python before. Im not great with programming but i think It can't convert something into an integer. I rember those problems were easy deal with, but i have no idea where this problem is, or what "with base 10: '19\r\n20\r\n'" means.
Please Log in or Create an account to join the conversation.
Moderators: Gamma-Man
Time to create page: 0.163 seconds