fargiolas / py-opc-ng Goto Github PK
View Code? Open in Web Editor NEWA python module to drive new generation Alphasense Optical Particle Counters. Supports OPC N3, N2, R1 and R2
License: GNU Lesser General Public License v3.0
A python module to drive new generation Alphasense Optical Particle Counters. Supports OPC N3, N2, R1 and R2
License: GNU Lesser General Public License v3.0
I have a OPC-N3 connected to Raspberry PI via USB to SPI cabling. I have three of these setups and can successfully connect to the OPC and read data 50% of the time.
Upon reboot or at random sampling windows i receive the following error:
ERROR:opcng:Error while reading bytes from the device: Received unexpected response 0x3F for command: 0x3F
Traceback (most recent call last):
File "test_opc.py", line 10, in
dev = opc.detect(spi)
File "/usr/local/lib/python3.7/dist-packages/opcng/init.py", line 680, in detect
info = o.info()
File "/usr/local/lib/python3.7/dist-packages/opcng/init.py", line 381, in info
buf = self._read_bytes(_OPC_CMD_READ_INFO_STRING, 60)
File "/usr/local/lib/python3.7/dist-packages/opcng/init.py", line 302, in _read_bytes
logger.error('Something failed while reading byte sequence, expected size: {}, received: {}'.format(sz, len(l)))
NameError: name 'l' is not defined
Any suggestions as to what may be causing this issue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.