Skip to content

s-heppner/python_gmc_300e_serial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_gmc_300e_serial

A python serial interface to a GMC 300E Plus Geiger Counter and other GQ Electronics Geiger Counters.

It is based on the specification of the Communication Protocol by GQ Electronics "GQ-RFC1201" and tries to implement Python wrapper functions for the commands presented there.

Currently, this is very limited, since I am too stupid to figure out how some of the responses are encoded.

How to Use

  • Install the package pip3 install -e .
  • Plug in the Geiger Counter
  • Check lsusb for the new device and remember the ID, e.g. 1a86
  • ls -l /dev/serial/by-id will print out something like this:
lrwxrwxrwx 1 root root 13 Jun 22 14:11 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0
  • Remember the ../../ttyUSB0 part and navigate to /dev
  • Change the owner of the serial interface to your python user: chown sebastian:sebastian /dev/ttyUSB0
  • Run the code:
import  pygmc300e

geiger_counter = pygmc300e.GMC300eGeigerCounter("/dev/ttyUSB0")
print(geiger_counter.version())
> GMC-300Re 4.54

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages