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

GPIO events triggered on modbus writes #59

Closed
yassiezar opened this issue Mar 21, 2022 · 1 comment
Closed

GPIO events triggered on modbus writes #59

yassiezar opened this issue Mar 21, 2022 · 1 comment

Comments

@yassiezar
Copy link

yassiezar commented Mar 21, 2022

I'm having a strange problem. We've connected 4 GPIOs as inputs to the Jetson board and configured interrupt event callbacks on each of them using a custom callback, as described in #25. We've also configured a modbus through 10.10.0.1:502 with libmodbus.

The problem we ran into is that when a modbus write is performed, it triggers the GPIO events as well. These events seems to be random - sometimes none are triggered, sometimes all of them are triggered or anything in between. As far as I can tell, the modbus and epoll libraries used to trigger the GPIO events are not related at all. However, there seems to be some interaction somewhere. Since modmus and libmodbus are also included in the problem, I realise this is probably out of the scope for this repo, but I was wondering if you had some insight into what the issue may be or where I should start looking?

I've also opened an issue on the NVidia repo (the same bug is observed with their Python library).

@pjueon
Copy link
Owner

pjueon commented Mar 23, 2022

Hmm.. Sorry, I have no idea. I don't even know what modbus is.
Like you mentioned, it is probably out of the scope for this project.
Maybe you could get some insight from the Nvidia's repo, but I'm not sure.

All I can say is that check if your issue is really caused by modbus or not.
Sorry I can't help you.

@pjueon pjueon closed this as completed Mar 23, 2022
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