Ankermgmt / ankermake-m5-protocol

Ankermake M5 protocol specifications and libraries *NOT AFFILIATED WITH ANKER*
GNU General Public License v3.0
165 stars 39 forks source link

PPPP not working #156

Open revil-O opened 8 months ago

revil-O commented 8 months ago

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

ngiaimo commented 8 months ago

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 commented 8 months ago

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

anselor commented 8 months ago

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 commented 8 months ago

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.

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

now everything's works like a charm !!!

Regards revilO

ngiaimo commented 8 months ago

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.