-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
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
Meatpack::report_state on serial port init #20903
Meatpack::report_state on serial port init #20903
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks ok, but I'm not sure I could replicate the setup required to do functional tests...
It handshakes for me succesfully on both ports now, and I have it running through an octolapse fake print to confirm and everything seems to be in order. I can run through other functional tests if you need? |
When doing testing, I normally just cycle through options in different combos and run a print (usually the 20mm XYZ calibration cube) and see that it all works well... I doubt that's really required here other than verifying that your other serial ports work as expected.... |
I applied one small change here, which was to relocate the redirect ahead of the command processing so that the redirect only needs to be set once and will stick until the command returns. Also, the 'reset' command was causing the 'report' to get called twice, so that's fixed too. …Aaaand, added a |
Connection doesn´t work for me with latest changes octoprint terminal: |
What if you just set the port and baud rate manually? |
tried a few times without success |
Is the pi on serial 0 or -1 ? |
there is a difference between autodetection and manual: Changing monitoring state from "Offline" to "Opening serial connection" |
how can i check this? |
how do you have the controller connected to the pi? usb cable from the controller to the PI, or did you add wires between tx0/rx0 and the pi, the device name ttyACM0 would indicate the usb cable. |
connection is usb cable from the controller to the PI |
Tested and confirmed broken in the current bugfix-2.0.x using: Ender 3 Pro + SKR Mini E3 v2.0 mainboard I know the Ender 3 V2 was working as of 8 hours ago, I'm just going to roll a new firmware for that and test to see if thats broken too... |
Ender 3 V2 works ok still. SKR Mini E3 v2.0 does not work. Seems like the TX chain to the printer is broken. Wondering if this is something to do with before MEATPACK mode is enabled? Interestingly, if I disable the MeatPack plugin in OctoPrint, I can successfully connect to the printer.... Thinking this could be because the config is:
|
@thinkyhead - Would this work with -1 being the USB emulated serial port? Given that its an emulated port and iirc, baud rates don't really matter, hence in theory, Meatpack won't help in this case, is it still supposed to work? |
confirm |
Can confirm on SKRv1.4 that it worked for me on the previous version (49eaf45), but doesn't work now. using minicom, it seems like when I'm trying to contact on SERIAL_PORT_2, it's responding on SERIAL_PORT, and when I contact on SERIAL_PORT, I have no evidence it is responding on either. Because I'm presently using minicom on the same pi (and it seems that octoprint and minicom cannot monitor/use one port simultaneously) it's difficult to 100% verify a lack of response on the same port octoprint is using. Edit: Without plugin, everything works fine, as in other reports |
Co-authored-by: Scott Lahteine <[email protected]>
Co-authored-by: Scott Lahteine <[email protected]>
Co-authored-by: Scott Lahteine <[email protected]>
Co-authored-by: Scott Lahteine <[email protected]>
Co-authored-by: Scott Lahteine <[email protected]>
Co-authored-by: Scott Lahteine <[email protected]>
Description
Currently meatpack report_state only replies on serial_port. This effectively disables meatpack for all but the primary serial port.
This PR makes report_state reply to the initiating serial port.
Requirements
#define meatpack
octoprint running meatpack plugin.
Benefits
Any serial port can run meatpack.
Configurations
Related Issues
Was mentioned in Marlin Discord by cass-e