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

[BUG] General instability and unreliability printing from OrcaSlicer with ankerctl running in docker container #153

Open anselor opened 9 months ago

anselor commented 9 months ago

Your issue may already be reported! Please search on the issue tracker before creating one.

Describe the bug I'm running the latest main (0007f4ad856979bfe827253e17604db00766dace) in a docker container built from the Dockerfile provided and loaded the login.json manually. Previously ankerctl would freeze up and stop processing requests from OrcaSlicer. With the latest it it doesn't seem to ever successfully print a file.

To Reproduce Steps to reproduce the behavior:

  1. From latest source
  2. run:
    sudo docker build .
    sudo docker cp -L "login.json" ankerctl:/tmp
    sudo docker exec -it ankerctl /app/ankerctl.py -k config import /tmp/login.json
    sudo docker-compose up --build -d
  3. Try to slice and print from OrcaSlicer (Tried latest, 1.9.1 and from nightly) I see Orca trying to upload the file to ankerctl but nothing appears on the printer. The Device tab shows all greens for status and if I go preheat the printer I see the temperature and other values update.

I changed the docker-compose.yaml to set FLASK_HOST=0.0.0.0 to allow connections from other computers. Docker is running on a Synology DiskStation file server. Orca is configured to connect to the file server to control the printer.

Expected behavior I expect the gcode to be sent to the printer.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

anselor commented 8 months ago

Tried running outside of docker. Still can't print.

[*] Press CTRL+C to quit
[*] VideoQueue: Requesting start
[*] PPPPService: Requesting start
[*] Trying connect to printer AnkerMake M5 (USPRAKM-004084-UXJWF) over pppp using ip 10.0.0.8
[*] MqttQueue: Requesting start
[*] Connecting printer AnkerMake M5 (USPRAKM-004084-UXJWF) through make-mqtt.ankermake.com
[*] Established pppp connection
[*] PPPPService: Worker started
[*] VideoQueue: Worker started
[*] Connected to mqtt
[*] MqttQueue: Worker started
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] 10.0.0.5 - - [21/Mar/2024 15:21:51] "GET /api/version HTTP/1.1" 200 -
[*] FileTransferService: Requesting start
[*] FileTransferService: Worker started
[*] Going to upload 7825864 bytes as 'temperature_tower_PLA_Anker_M5_All-Metal_Hot_End.gcode'
[*] Requesting file transfer..
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]
[*] TOPIC [/phone/maker/AK7ZR40C37500127/notice]