Skip to content
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

PPPP not working #156

Open
revil-O opened this issue Mar 15, 2024 · 5 comments
Open

PPPP not working #156

revil-O opened this issue Mar 15, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@revil-O
Copy link

revil-O commented Mar 15, 2024

Printer is found via ankerctl.py pppp lan-search @ 192.168.1.137

[] Trying connect to printer AnkerMake M5 (EUPRAKM--) over pppp using ip
[E] PPPPService: Failed to start worker: [Errno 61] Connection refused. Retrying in 1 second.
Traceback (most recent call last):
File "/Users/osc/ankermake-m5-protocol/web/lib/service.py", line 103, in _attempt_start
self.worker_start()
File "/Users/osc/ankermake-m5-protocol/web/service/pppp.py", line 52, in worker_start
msg = api.recv(timeout=(deadline - datetime.now()).total_seconds())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/osc/ankermake-m5-protocol/libflagship/ppppapi.py", line 351, in recv
data, self.addr = self.sock.recvfrom(4096)
^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionRefusedError: [Errno 61] Connection refused

Bildschirmfoto 2024-03-15 um 14 16 06

OS: MacOSX Sonoma 14.2.1
Python: 3.11
Ankermake M5 Fw: 3.2.17_3.0.94

PrusaSlicer is obviously uploading files ... but printing never starts

following information, repeated every 3 seconds , is shown:

[] Trying connect to printer AnkerMake M5 (EUPRAKM--) over pppp using ip
[*] TOPIC [/phone/maker/AK7Z**************/notice]

If you need additional informations, don't hesitate to ask me for.

Regards revil.O

@revil-O revil-O added the bug Something isn't working label Mar 15, 2024
@ngiaimo
Copy link

ngiaimo commented Mar 15, 2024

I am getting similar but I don't get an error just keeps saying trying to connect over pppp. The IP it gives is what I can see in my router as the assigned IP of the printer and my computer is on the same subnet.

@treitmayr
Copy link

treitmayr commented Mar 15, 2024

There usually seem to be two possible issues resulting in the above error:

  • The printer IP address is not configured. @revil-O it seems that this is your problem because the message "Trying connect to printer ... over pppp using ip" is missing the actual IP address. I fixed this by allowing to store a detected printer IP address and warning you if the IP address is not set yet, see PR Support storing detected printer IP addresses #150. But you could also try https://github.com/treitmayr/ankermake-m5-protocol/tree/m5c-integration which integrates my three recent PRs.
    or
  • The host's firewall does not allow network traffic to the printer. This was mostly observed for users running ankerctl on an MS Windows machine. There are already various tickets created due to this issue, but ankerctl itself cannot do anything about it. You have to reconfigure your firewall.

@anselor
Copy link

anselor commented Mar 15, 2024

I've attempted to integrate all of the recent pending PRs into a complete set of all known fixes/improvements here:
https://github.com/anselor/ankermake-m5-protocol/tree/exiles

I've built a docker container for it if you want to try it out.

Went ahead and pushed it onto dockerhub for easier access:

docker pull anselor/ankerctl:exile-latest

@revil-O
Copy link
Author

revil-O commented Mar 16, 2024

hi guys,

i fixed the issue by entering the ip address of my printer manually to default.json.

In Mac OS X the default.json config file is found @ $HOME/Library/Application\ Support/ankerctl/default.json

btw.

  • using pppp lan-search with the store - option gains no success.
  • the following mentioned new card is not shown in the webgui

https://github.com/Ankermgmt/ankermake-m5-protocol/pull/150#issue-2117160112

now everything's works like a charm !!!

Regards revilO

@ngiaimo
Copy link

ngiaimo commented Mar 18, 2024

Hey @treitmayr - Thanks! dopey me didn't notice my firewall got turned back on. I did turn that off and it finally started working but now I am seeing the following:
image

pppp keeps failing on and off. Will continue to check a few things on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants