Skip to content
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

Writing DQs with node-red-node-intel-gpio causes constant output of 1 #171

Open
rifelipe opened this issue Aug 2, 2021 · 2 comments
Open

Comments

@rifelipe
Copy link

rifelipe commented Aug 2, 2021

Dear colleagues,
As described on the IOT2000 Forum there is an issue regarding setting the digital outputs with node-red using the preinstalled nodes. The provided flow seems to be working fine upon start/reboot of the iot2040. As soon as a further "deploy" is done in node-red, the error can be triggered. In this case the digital outputs are then constantly set to 1 and never return to 0.
To reproduce, use the example Image V3.1.1 (available on SIOS) together with the flow provided in attachment.
flows (9).zip.
In node-red, The debug window shows changing values 0 and 1 every 2 seconds:
image
Wire e.g Digital Output 0 directly to Digital Input 0 on the I/O Shield, or use a secondary device with a DI.
When reading the Digital Input 0 in a loop using mraa, the value will be changing between 0 and 1 as intended (example code available in attachment.) read-di-test.zip
image
After re-deploying the flow in node-red, the value will remain at 1 constantly.
image

BR

@rifelipe
Copy link
Author

rifelipe commented Aug 2, 2021

Recommended customer to try with a different delay time and error appears to be gone for me at least... Waiting for customer feedback. Will leave the issue open until we get a response...

BR

@jan-kiszka
Copy link
Collaborator

Sounds like siemens/meta-iot2050#57 -> #166. Didn't make it into the last release IIRC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants