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

The setting is not forced if two identical commands with manual change in the meantime #1

Open
JardaG opened this issue Jun 3, 2020 · 4 comments

Comments

@JardaG
Copy link

JardaG commented Jun 3, 2020

I may have encountered one problem - it does not respect/force the execution of the same command again if it has been switched manually in the meantime.
Is it caused by dedicated serial realy controller?

@JardaG
Copy link
Author

JardaG commented Jun 4, 2020

Even in spite of the mask set in the command, it toggles manually set on/off states directly on the socket.

@marex
Copy link
Owner

marex commented Jun 14, 2020

You're right, I see that too. It's likely some yet-undecoded part of the serial protocol between the MIPS and the STM chip controlling the sockets. Do you have a chance to take a look into this ?

@JardaG
Copy link
Author

JardaG commented Jun 17, 2020

Maybe, but how? I have Saleae Logic Pro 16 available, so I can see what's going on inside, but I'm not sure I'll be able to find out anything from the captured data.

@marex
Copy link
Owner

marex commented Jun 28, 2020

There is a 3V3 TTL UART serial connection between the MIPS and STM chip inside the device, so you could use USB-to-TTL-UART adapter to connect to the STM chip and debug it on a PC (note that there is 240V inside the device, be very careful). The other option which might work would be to use strace or LD_PRELOAD on the binary from the device to figure out what it does in such situation.

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