-
Notifications
You must be signed in to change notification settings - Fork 36
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] pppp is not connecting to the printer #142
Comments
I'd like a solution where I can edit the code or something to fix it |
The code is in this repository, it is open source. You are more than welcome to edit and contribute back a PR to implement a fix if you find one. |
The master branch has a fix in place for a few issues that were introduced since the release of the M5C and the updated firmware |
I do not know how to code well |
I keep getting this |
i went over to the v1.1 branch and im still having problems |
That's the branch I'm on |
Do you also have the AnkerMake app or Slicer open? If any other service or app is utilizing the PPPP stream, it won't load on ankerctl. Can you look into the console logs of your browser or the server's logs and see what errors are being shown for the PPPP connection? |
Then why did you ask for a "solution where I can edit the code or something to fix it" ? |
Also ensure that both the ankerctl server and your printer are on the same network and can reach each other. You could test this by pinging your printer's IP from the machine that is running ankerctl, if you are using the docker container you'd need to enter the container in interactive mode to do this. |
|
Is that the only log line? There are no other errors? Can you run ankerctl with the |
I am seeing this same issue. In the dashboard MQTT and CTRL are green, PPPP is yellow. I can see the message stream with updates on temperature etc. while a print is running, but I can't send gcode because of PPPP. I'm using the Here's a section of the verbose log that is repeating over and over:
|
Btw I can debug Python no problem, if you gave me a few hints on where to look. As far as I can see, a PktLanSearch is sent through the socket, but nothing happens after that. It just keeps trying connect over and over. |
Packet capture shows me that ankerctl.py is sending |
I am seeing similar behavior. I am starting the server with the command Here is the output:
Note that the long hex string is different between the two lines. In the pppp.log file, I just see this
I am on commit |
This should just be a reporting issue, printing should still work with the M5C. |
Using commit
The
Finally, the command
|
@treitmayr Not sure if it's relevant, but I have the M5, not the M5C. My firmware is version 3.2.17_3.0.94 |
@martinmcu Sorry, I was obviously on the wrong track! Hopefully someone else can shed light on what happens in your case. |
I think I'm having the same issue here as well. I have an M5C and I'm using @treitmayr ankermake-m5-protocol-m5c-integration branch. I load up the web server, I log in with my details and it successfully pulls in my config just fine. It stores my IP which I can ping just fine. I have green on MQTT and HTTP but the PPPP is yellow.
C:\Users\court\Downloads\ankermake-m5-protocol-m5c-integration (1)\ankermake-m5-protocol-m5c-integration>python ankerctl.py pppp lan-search in my config this printer ip and p2p_duid matches what is shown with pppp lan-search Some extra logs with verbose: [D] PPPPService: Awaiting ready (RunState.Starting) and finally trying to send a print: C:\Users\court\Downloads\ankermake-m5-protocol-m5c-integration (1)\ankermake-m5-protocol-m5c-integration>python ankerctl.py -v --pppp-dump pppp.log pppp print-file bag_clip.gcode |
@rcourtman Could you try with the Windows Defender Firewall disabled to rule out that the packets are dropped by the firewall? If true, this might be the same or similar issue as #49. I tried this myself now, and initially disabling the firewall allowed the pppp connection to be established. Eventually I ended up adding two firewall rules (one incoming, one outgoing) which allow UDP traffic on all ports for the |
Boom! worked straight away! Thank you! will add the rules. |
Ugh, can't believe I didn't think to check the firewall. Disabling Defender solved the problem. 🤘🏽 Thank you! Also thank you for the research and building out this tooling. I'm so happy to use Orca to print direct to my M5. |
also had the same issue with the same resolution. I added python rules for private network and everything works now |
I'm having trouble connecting to PPPP
it says
trying to connect to printer over pppp using <your ip>
The text was updated successfully, but these errors were encountered: