- Posts: 18115
- Thank you received: 5334
7i76e Communication errors
- PCW
- Offline
- Moderator
-
Less
More
7 years 9 months ago #125306
by PCW
Replied by PCW on topic 7i76e Communication errors
My guess would be that you have a latency issue on the host PC causing the FPGA side watchdog to bite
I would check the status of the watchdog-has-bit pin
Also posting your hal/ini files may help pinpoint setup issues
I would check the status of the watchdog-has-bit pin
Also posting your hal/ini files may help pinpoint setup issues
Please Log in or Create an account to join the conversation.
- Nab
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
7 years 9 months ago #125310
by Nab
Replied by Nab on topic 7i76e Communication errors
Ahhhh I'm going to bet that is it. I'm running from an old laptop (I'm too almost ashamed to admit). While it is directly connected, I'm sure that the ethernet chipset is not very good and likely doesn't have good linux support, and bad power management interference, etc. I knew this would come back to bight me. I'll report back my results tonight.
Thanks!!
Thanks!!
Please Log in or Create an account to join the conversation.
- Nab
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
7 years 9 months ago #125398
by Nab
Replied by Nab on topic 7i76e Communication errors
SUCCESS!
For documentation purposes here was my problem:
I was using an older laptop machine which initially showed "workable" max jitter of 90,000ns without any tweaking or tuning and running normal test loads as described here . This was far from perfect, but enough to get some motors turning.
HOWEVER, I would occasionally see a spike to > 6,000,000ns. Being a new to linuxcnc I dismissed this as anomalies and when I didn't see any of these in a multi-hour test run I convinced myself that it wasn't a big deal and that I would look into it later.
So what was happening is exactly as PCW described. Those rare spikes of delay were actually very consistent when my computer would attempt to connect to the 7i76e board. That would cause the watchdog to flip and eventually loose the serial connection. The watchdog has_bit was true. In my case I could even flip this to false and it would run for a while then fail again.
I replaced the laptop with another machine that, after 5 minutes of tuning (I found this thread helpful), had 45,000ns of max latency with no spikes. The latency-plot tool was very helpful.
I know this was totally a noob problem, so thanks for the help. I chose to make a linuxcnc based machine because I wanted to actually know and understand the details of my machine and I am not disappointed.
For documentation purposes here was my problem:
I was using an older laptop machine which initially showed "workable" max jitter of 90,000ns without any tweaking or tuning and running normal test loads as described here . This was far from perfect, but enough to get some motors turning.
HOWEVER, I would occasionally see a spike to > 6,000,000ns. Being a new to linuxcnc I dismissed this as anomalies and when I didn't see any of these in a multi-hour test run I convinced myself that it wasn't a big deal and that I would look into it later.
So what was happening is exactly as PCW described. Those rare spikes of delay were actually very consistent when my computer would attempt to connect to the 7i76e board. That would cause the watchdog to flip and eventually loose the serial connection. The watchdog has_bit was true. In my case I could even flip this to false and it would run for a while then fail again.
I replaced the laptop with another machine that, after 5 minutes of tuning (I found this thread helpful), had 45,000ns of max latency with no spikes. The latency-plot tool was very helpful.
I know this was totally a noob problem, so thanks for the help. I chose to make a linuxcnc based machine because I wanted to actually know and understand the details of my machine and I am not disappointed.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
Less
More
- Posts: 18115
- Thank you received: 5334
7 years 9 months ago #125409
by PCW
Replied by PCW on topic 7i76e Communication errors
This also points out a LinuxCNC hostmot2 driver bug in LinuxCNC 2.7:
watchdog bites do not pop up a notifier
This has been fixed in version 2.8
watchdog bites do not pop up a notifier
This has been fixed in version 2.8
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.392 seconds