-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when alarm goes off #5
Comments
Yep I get the error too. It's in I grabbed a screen shot while debugging with Visual Studio Code on Windows 11 Linux subsystem with a shared USB.
Here are the readings as a hex string before alarming the Radiacode 103. Inside the [] brackets Here are the readings during alarm. |
I "think" what is happening is the usb read is not handling multiple blocks of data when this happens. If you just print the message and return ret the next readings read works. There's a couple of other times this happens, but only when you move the radiation source close and far from the device to trigger alarm values. I find when this happens with other radiation meters it's because the devices take and extra second to perform their internal calculations.
|
The same issue. Any workaround? |
No I don't have a python workaround. |
my workaround is to wrap it in an exception handler and keep reading. I haven't tried to decode the alarms |
It seems if the dose rate alarms are configured then the device sends additional data that the webserver example is not designed to handle?
I get a couple of different errors when I activate the alarm
or sometimes I get
The text was updated successfully, but these errors were encountered: