7i84 doesn't fault LInxuCNC when SSerial is interrupted

More
23 Dec 2025 00:12 #340405 by Sirfrimfram
Hello,

I'm using a 7i96S with a 7i84U daughter board. Everything is working reasonably well except that when the smart serial fails Linuxcnc doesn't fault. I can manually restart the 7i84 by toggling the smart serial run pin but I was wondering if I missed something since linuxcnc continues to run with whatever the last values of the I/o pins on the 7i84.

Please Log in or Create an account to join the conversation.

More
23 Dec 2025 00:43 #340406 by PCW
LinuxCNC should report the error

If you need LinuxCNC to do a specific response to the error
you would need to set that up in the hal file
The following user(s) said Thank You: Sirfrimfram

Please Log in or Create an account to join the conversation.

More
23 Dec 2025 13:37 #340418 by Sirfrimfram
Hello PCW,

LinuxCNC does report an error as a popup, but I was wondering if there is a way to force a fault. There doesn't seem to be any pins that can easily be used.

The main way to do it that I see is checking the state of the hm2_7i96s.0.sserial.port-0.port_state pin and generating a misc fault if it is no longer in the run state (which appears to be 0x3).

Is there a cleaner way of doing that? The only 7i84 pins in HAL that show up are just I/O.

I've attached a txt file listing all of the mesa pins.




 
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Dec 2025 15:57 #340424 by PCW
You could also use some threshold (> 200?) on  the fault count pin

You should also find out why you are getting sserial faults, in general these should never happen

I also think it's actually a bug if run is not cleared when all communication is lost and LinuxCNC
gives up

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.093 seconds
Powered by Kunena Forum