-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Octoprint never connects to my printer when they are both powered by TPLink plugs #301
Comments
You need to set the plug that the printer is connected to for auto-connect, not the pi. Also, in the connection panel of OctoPrint make sure you have specifically selected your port and baudrate and select the option to save the settings. |
Alright, thanks for the info. When I tried to use it yesterday, I kept getting a new problem. Whenever the plug turns on from TPLinkSmartplug Editor, I get this error : Changing monitoring state from "Offline" to "Opening serial connection" But the USB0 and 115200baudrate work fine. Today I disabled the printer from turning on automatically from the plugin and instead did it manually from the button at the top, and it worked fine with those two saved settings. |
Try increasing the auto-connect delay. |
I changed it from 30 to 60 and still gives the same error. Since I only did it once, I noticed there is a lot more info at the top of the terminal, maybe some of it is useful. It is weird cause at one point it says it is operational : Changing monitoring state from "Offline" to "Opening serial connection" |
So yesterday I changed it from 60 seconds to 30, saved, and just did some normal printing. Turned it off as usual. Today I turned it on, and weirdly, it auto connected fine. But it never wants to shutdown for me after the specified time. So I enabled logging, restarted Octoprint (ofc it shuts down the plug then lol). I turn it back on, auto connect doesn't work and connecting gives that error above. I don't see any pattern to this, but it is weird how it somehow worked once for the autoconnect. And I assume there is no way to get a good log of it, or is there? |
enabling debug logging in the plugin's settings and restarting OctoPrint will help in getting to the bottom of what the plugin is doing, or trying to do. It will generate a separate plugins_tplinksmartplug_debug.log file that you can share here and I can try to deduce what's happening. I suspect that options enabled on one device are causing the other device to get triggered or vice versa. |
I am seeing an issue as well where my printer will not turn on when I send something from Cura connected to OctoPrint. Similar to what is happening here. I get the auto shutdown to happen just fine. But the turn on of the printer does not work, the auto connect works if I manually power the printer but that is due to OctoPrint I assume. Attached are my debug logs. |
When your printer is powered off does the screen stay on our have you already mitigated back powering issues from the pi? |
I have custom created a cable that mitigates the 5v back feed for my Creality. It is ONLY powered by the TP-Link plug. |
can you share screenshots from the OctoPrint Connection plugin in Cura where you've set the option to automatically power on using the plugin? |
With Cura, the plugin inside Cura controls powering on is what I was trying to say. Open Cura, and where you configured it's plugin for sending to OctoPrint there will be another option for automatically powering on using the selected plug. I'm not going to be at my computer for awhile to take a screenshot to show you, but can when I get home after work. |
I totally missed that. Sorry to have wasted your time. |
Describe the bug
Octoprint never connects to my printer when they are both powered by TPLink plugs. I can unplug my printer and plug it directly into the outlet, and everything will work fine with Octopi connecting automatically. But when I plug the printer into a plug, for some reason it will never automatically connect and never allow me to connect if I try manually (it will give an error).
Expected behavior
Raspberry Pi should turn on, printer should turn on after the delay, Pi should connect to printer after a delay, and then worst case scenario manual connect should work, but it will never work. Works fine when the printer isn't in the smart plug.
Desktop (please complete the following information):
Additional context
I can just plug the printer in without a TPLink smart plug and it will work fine. The plugs turn on fine. The only thing that doesn't work is the "connecting" to the printer part for some reason.
Error - State: Offline after error
No more candidates to test, and no working port/baudrate combination detected.
The text was updated successfully, but these errors were encountered: