7i84 doesn't fault LInxuCNC when SSerial is interrupted
- Sirfrimfram
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
23 Dec 2025 00:12 #340405
by Sirfrimfram
7i84 doesn't fault LInxuCNC when SSerial is interrupted was created 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.
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.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17565
- Thank you received: 5136
23 Dec 2025 00:43 #340406
by PCW
Replied by PCW on topic 7i84 doesn't fault LInxuCNC when SSerial is interrupted
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
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.
- Sirfrimfram
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
23 Dec 2025 13:37 #340418
by Sirfrimfram
Replied by Sirfrimfram on topic 7i84 doesn't fault LInxuCNC when SSerial is interrupted
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.
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.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17565
- Thank you received: 5136
23 Dec 2025 15:57 #340424
by PCW
Replied by PCW on topic 7i84 doesn't fault LInxuCNC when SSerial is interrupted
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
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
The following user(s) said Thank You: Sirfrimfram
Please Log in or Create an account to join the conversation.
- Sirfrimfram
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
24 Dec 2025 13:54 #340463
by Sirfrimfram
Replied by Sirfrimfram on topic 7i84 doesn't fault LInxuCNC when SSerial is interrupted
Ah thanks that might be a better option!
The smart serial error was likely due to a bad cable connection which has been fixed, but my main concern was ensuring motion could stop if something happens to the smart serial connection.
The run pin didn't seem to clear. It makes sense that the 7i84 I/O pins stop updating but I didn't think the smart serial run pin changed either. I'll double check and post back, but it didn't look like the run pin went low when smart serial was interrupted.
Thanks again for the quick reply! Merry Christmas!
The smart serial error was likely due to a bad cable connection which has been fixed, but my main concern was ensuring motion could stop if something happens to the smart serial connection.
The run pin didn't seem to clear. It makes sense that the 7i84 I/O pins stop updating but I didn't think the smart serial run pin changed either. I'll double check and post back, but it didn't look like the run pin went low when smart serial was interrupted.
Thanks again for the quick reply! Merry Christmas!
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17565
- Thank you received: 5136
24 Dec 2025 19:34 #340473
by PCW
Replied by PCW on topic 7i84 doesn't fault LInxuCNC when SSerial is interrupted
I guess if you wanted to be really safe, you could loop back a free output
to an free input and put a watchdog signal on the output and use LinuxCNC's
watchdog component to trigger a fault if the output ceases to toggle.
to an free input and put a watchdog signal on the output and use LinuxCNC's
watchdog component to trigger a fault if the output ceases to toggle.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.074 seconds