sorry Orob, I have to bail for a few, my mom and dad just got rear-ended picking up food and the DB took off until some guy chased him down…so I need to go get them as SUV totaled…be back, but I cannot find my Webservice setup from the wiki, its empty. odd. be back, my son may of done it another way diff from wiki
i posted before I saw your pictures.
- your chains have waaay too much slack. when the sled goes to the right. Just because you have that much bungee does not mean you need to use it all.
- I hope everyone is ok.
thanks, so tighten the bungee up then, got it! thank you. My mom’s neck hurts, so my dad is taking her to the ER. The DB was high as a kite, ran from seen across ESPNs north campus (which no one there when not daytime). Some guy pumping gas (happened in front of station) chased him down. The guy goes back to car…Police came quick, and the idiot started revving engine to get past the cop SUV blocking him in. He would not stop or get out of car, so I guess the female officer pulled her gun. They found a small amount of drugs in the car, and a good sized amount on ESPN’s front property. Why I guess he ran to dump the drugs. No way he would get far, it’s like a half mile of just flat grass in front of that part of the campus. Needless to say, he was arrested. As we say when your from Bristol CT, “Bristol’s freaking finest!!” Anyhow, I am back my dad’s taken over. let me check out your other post.
can that slack be causing some of the issues you think? I saw someone setup like that, and thougth it was that long as that little gear would get jammed by that pulled. When I center it will see what I can do to tighten it up! Thanks Orob.
This is the code I think my son changed, or I thought he did but cannot find it now. Maybe because I have the ardiuno hooked up to the pi?
nano webcontrol.service
type the following:
[Unit]
Description=WebControl
After=network.target
[Service]
ExecStart=/home/pi/webcontrol/webcontrol
WorkingDirectory=/home/pi/webcontrol
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi
I think that “restart” where it says “always” he has set to “No”, but I could be wrong.
So Orob I found it!!! This is what I was trying to ask earlier. The one we used initially above has Restart=Always. Then I think we found one from a link (maybe from you) but this one had Restart=Never. Which is what I am using now. I just want to rule this out and confirm which it should be, I am probably barking up wrong tree, but just to rule it out as Restart=Always I think was from Github wiki writeup, but that may not have ever worked for us. I just was not sure if this restart has anything to do with disconnecting you know what I mean? If you check out the Github writeup, it’s the same code, but I think one uses “never” for Restart, the other uses “Always” when setting up Webcontrol to run as a service.
This file you are looking at is the service that runs in the background to get webcontrol to load. it is ok if it always restarts. Since it is a server, if it crashes the client on the other end of the network may not be able to restart it. That “always” vs “never” unfortunately will not likely affect the usb connection. This is the service I want you to disable. no need to change this file at all. the command is:
sudo systemctl stop webcontrol.service
sudo systemctl disable webcontrol.service
(notice the file name of the one you showed?) You don’t have to include the .service extension and I generally don’t because it saves a few seconds.
then go to the webcontrol location (from your file) here:
cd /home/pi/webcontrol/
python3 webcontrol
or just
./webcontrol
it should start out with some text something like this:
ok gotcha, so it really doesn’t matter which you use, never or always since it is always on in a way…and you start it with a fresh fire up of the pi…i.e it doesn’t disconnect I think you are trying to say… Ok let me do what you are asking, need to step out again…sorry my dad asked me to come over, I may need to take mom to hospital as he doesn’t see well at night, and they are trying to locate my niece to drive them. So sorry Orob, I will be back hopefully soon, maybe they find niece, if not first thing in morning will do what you ask above and report in…again sorry, I really appreciate all your help!
Geez , I step away for a couple of days and I come back to a police chase ending on ESPN’s front lawn.
First off, take care of the parents. Seriously.
Second, I too have a Pi 4 but haven’t had the USB comm error since switching to my new setup. My Pi has been as stable as my 3’s. Not sure what im doing differently.
Third, did you say your CPU loading was hitting 80+ % ? This could be a problem that may need to be remedied sooner rather that later. Its probably not the cause of the USB issue but definatelynsomething to keep an eye on.
Fourth, which USB port is the Arduino plugged into? If its plugged into the blue USB 3.0 ports then try to move it to one of the regular speed USB 2.0 ports.
Hey Jon, just got back from the hosp. Yeah it’s been a little crazy. There are good parts of Bristol, good people, then you get the not so good crowd. If someone on this forum was from Bristol, they would know just what I am talking about! When I was a really young, my mom was tagged from behind…parked at a light, and a teen that hit her doing 70 mph and never hit the brakes…snapped the 78 buick bucket seat clean off the floor…so her neck hurting, probably re-injured and old injury. I think she will be ok, but being older and having pain again in neck, my father wanted to have her checked out. Thank goodness she was driving forward as the witnesses said this clown was speeding big time when he came around corner before hitting her. Anyhow, back to the pi…I do have pi 4 8 Gb ram hooked up, BUT she is running at 70’s very often, and has hit 80’s for sure. Now I do have a fan that came in the Canakit hooked up to it, and have been wondering if that could be issue as also powering the Arduino through USB. Using the power supply with the kit, but maybe it is overload? I do not think I overclocked the Pi, which normally I do. Using the USB port on the top left if looking at that side of Pi. I assumed those were 2.0, but maybe I am wrong and their 3.0? The more I think about it since you brought it up, 3.0 is so common now maybe that is the lead side on the left huh? I will look at this in the morning. Do you recall which side you are using? I know their is different color on the male piece (half of the USB) that is different on one side versus the other, so there are 2 of each I assume…2.0 and 3.0. I think Orob is going to have me ultimately check if the internet is issue, by trying to run the code directly from the Webcontrol on the Pi (and taking interent out of equation), but honestly I need to read through what he sent…I was all over the place with parents calling me right as he sent all that great info over, but will try in the morning…I will be back in the AM, I am shot as you can imagine. Talk to you in a few hours my friends, and thanks for being so understanding with all the issues I keep encountering!
I would like to try and replicate your cut and see if i get the error. if you are up for it, you can send me the .nc file and i can try to see if i get the same error. i can DM you an email so you dont have to post it in a public forum.
absolutely, that would be great if you do not mind!! It’s a large cut, how do I get you the file or can you copy it if paste in the code?
ok DM, direct message, sorry didn’t catch what that meant for a second. Yes, please do, did you need my email?..or can you do it from the forum?
the .nc file is a text file. its the file that you upload to webcontrol. you just need to attach it to an email and send. im sending you the email address in a DM now.
perfect, thank you! heading out to check my email now…
just let me know when email. Then will attach the file. I am checking both the messages area and the email account hooked up with forum, so the email should show up in one of the 2.
Just so you and Orob are aware, I am researching that USB 2.0 vs 3.0. The 3.0 takes a bit of power, which sounds like it is a concern in general. Plus I have the fan going, PLUS the ardiuno is plugged into maybe a USB power hog. Still trying to figure out which side is 2.0 versus 3.0. Then I will start what Orob mentioned should do, and you can see how my side panel cuts.
well it is in the 2.0, I found specs of the Pi4. So that should not be the issue
Hi Orob! I am about ready to go do this now, want my son to see what I am doing so waiting for him. This will stop WC from firing up on it’s own each time I start the pi. Once I do this, is the goal to try and run the part directly from the Pi (as Webcontrol is auto-launched in Chromium on my screen)…and I have a keyboard, so although I use my laptop I can easily run Webcontrol directly from the Pi, close enough to stop a cut if emergency situation arises. …or is the thought to start Webcontrol on my own, then still use the laptop or tablet logged into Webcontrol to send the Gcode. Just curious of your thought process before I begin, as I need to take my son to baseball training in about 45 mins, which mean I will have to 2 part this…and knowing what the ultimate goal is of this test, will help me when I have to break my thought process and come back to machine 90 mins later… thanks!
The USB 3.0 ports are the blue one but it looks like you’ve figured that out already.
Maybe. The chip that handles both the 2.0 and 3.0 communicates with the SoC via a PCIe bus. This is a bit different from how the RPI 3b’s did it. This chip is known to be a bit buggy. If you are already plugged into the 2.0 port now, you can try swapping the USB cable to a 3.0 port (blue). My Arduino is plugged into a USB 3.0 port.
Also, how long has it been since you performed an apt update/upgrade?
Yes, I figured out which was which from a nice diagram I found. Really, buggy is no good, and there is talk I found how they are linked together somehow. Is it ok to run the arduino off a 3.0, if so willing to give that a try! Also I do have little metal flip clips (NO insulation) screwed into wood frame holding the USB cable…That is not a problem is it? I am going to move that pi closer that I have since I have to reset chains and all that. Do we want to do process of elimination or go all in and do as much as can, then try again eventually? These are things I think need try, in what order or all at once I will you and Orob decide:
-
Reset chains, bring to center…Reset as home (as this fail didn’t matter, as no router doing any cuts when USB disconnected)
-
Need to move the pi closer to the Arduino, choices of 6 inch, 1 foot, or 3 foot cables to try. I do have a set of fans like you have, but I think the pi case will be and will just mount on the back of frame to make it easy for now.
-
Run the code @Orob provided to me last night, disable Webcontrol as a service, then figure out what test from there when I can boot on my own. Do we try running code from the pi, either via SSH transfer of the G code or USB stick. …or Do we try running code from my computer still via the IP connection, only difference here I think is “I manually started Webcontrol”
-
Jon, you when have time will try to run my Gcode to see if fails on your end, which maybe could be a Estlcam or Solidworks (conversion to .dxf issue)
-
Does my Orbi mesh network have a dead spot where the pi is mounted in the garage, and the IP address is dropping maybe causing issues.
-
Do I flat out have a bad Pi4 (due to USB connection in on the board) or even Arduino, which last resort “I think have spare of each, but need to check”
Just so we have all this in one place before proceeding