I’m getting multiple disconnects per job, often several per hour. My CP laptop talks to the RP3 via 2.4GHz WiFi. Any suggestions on how to reduce the freqency of disconnects? Does the Bluetooth link work for us? Maybe use a crossover cable rather than WiFi?
Have never seen Bluetooth used in this context. Suppose it’s possible with an HC-05 module tapped into the arduino serial lines, and you’d need a utility on the computer to bridge the Bluetooth to a virtual serial port that SPJS can connect to.
But Ethernet is definitely the first thing I’d recommend.
How much cpu are you chewing up on your laptop? I have found that massive cpu consumption on the laptop can cause a dropped Websocket
I’m really careful with CPU while the job is running. I think its under 20% and often closer to 10%. I minimize all but one of the CP widgits and disable graphics.
I would rather suspect the Pi’s WiFi… Running a Ping from within a screen or tmux session to your Router could bring some clarity if you have issues there.
Not sure if I understand but couldn’t you also preload into SPJS much more of the file? There is a buffer setting in there.
I do keep the SPJS buffer full. So the job can run a long time after a disconnect. I guess the real problem is that clicking reconnect doesn’t always work. When that happens, it costs me a lot of time setting up the job from scratch again.
I plan to try setting up a dedicated LAN for the laptop-RP3 link. Hoping that solves it.
Discovered something new on this… pretty sure some of these disconnects are related to static discharge. Twice today comms failed after touching the machine. Not sure if its taking out something on the RP3 or perhaps the XController.
i’ve definitely found similar stuff before. are you using dust collection? if so, it can cause HUGE amounts of static buildup… tens of thousands of volts in some cases. make sure you’ve got pipes and buckets and things grounded. see the longer discussion here including my very long post: https://discuss.inventables.com/t/testing-hypothesis-everything-going-great-until-it-just-stops/17535/20?u=frankgraffagnino