-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add support for Firmware v17b #30
Comments
Yes, it should. I used to run it on 17.b. Typically, it means there is a bad connection..? How do you have it wired up? |
Interesting. I will try to find an OPC w/fW 17.b and test myself. You're using the most up-to-date version of the library, I assume? What version of python are you using? Can you try running the following:
|
I use Python The above code display nothing in the console (empty |
Okay. Is the OPC starting up after about a minute even without sending a command? Have you run any other SPI devices off the RPi? It seems like one of the pins has a poor connection (MOSI, MISO, or CS). What does |
|
Sorry this has taken so long; I am finally back in the US. Can you tell me what the command |
I have excat the same issue with the difference that my OPC-N2 is running on firmeware version 18. Raspi and OPC are powered by the same PSU (max 3A). Looking forward for your answer. Greetings from Germany . |
Hi @gvoelker Have you tried doing the steps I outlined above? Try running this and let me know what you get: import spidev
|
Result of pip freeze: Result of lsmod: Result of the code: |
@gvoelker Can you make sure that MOSI and MISO are hooked up correctly and not switched? Also, try editing the script above to just print out the |
I checked over the the right wiring an made sure tht MOSI and MISO are hooked up correctly. After editing and running the script, the result was \x00. |
@gvoelker What version of Python are you using? |
i am using Version 2.7.3 |
@gvoelker can you pass
to find out what it is. |
It shouldn't be, but still worth a try! I've tested it on both 2.7 and 3.5 On Thu, Sep 22, 2016 at 2:34 PM Andrew Tolmie notifications@github.com
David H Hagan |
I am glad to tell you that almost everything is working fine at the moment. The soultion was to use two different PSUs. One for the Raspi and one for the OPC-N2. I don't know exactly why that error occurs. But it's woring fine now so thank you for your great support! |
@gvoelker Great! Glad you got it working. To change the sampling rate, you simply sample at whatever rate you would like. Essentially, the histogram will continue to increment until you read the histogram again. So if you want a 1 Hz measurement, read the histogram every second. If you want 0.1 Hz data, read the histogram every 10 seconds. For reference, the Alphasense software by default samples once every 1.4 seconds I believe. As for the second part, it sounds like you are using the new version of the library >1.0 which had some non back-compatible API changes. You can check the new docs for the version you are using, but |
Does anyone succeed in running py-opc on a OPC-N2 v.17b?
I got the error
Your firmware version could not be automatically detected.
, so far...The text was updated successfully, but these errors were encountered: