-
Notifications
You must be signed in to change notification settings - Fork 41
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] M5C support - failed to decode mqtt message on current HEAD #137
Comments
In the source code of AnkerMake Studio there is an option to turn on MQTT tracing, see AnkerStudio/src/libslic3r/AppConfig.cpp#L132-L133. The config entry |
I still have some issues building AnkerStudio on Linux, seems one little issue, so I doubt I will be able to get you something before Christmas unfortunately. |
I have been having the same issue with my M5C. I dug into the code and logs to see if I could figure it out. I found a few things that might help. Overall, the communications looks similar but there are some differences. I laid out the data from my logs to see if it helps. And then some suggestions/findings at the end. AnkerMake Studio Log Example
Received Data in ankermake_m5_protocolMQTT Topic
MQTT PayloadExample payloads in different formats for easy decoding. With prefix:
Without prefix:
Indexed bytes to be referenced in converations:
Findings
|
I finally succeeded in decoding the packets for my M5C, so here are some of my observations (also from looking at the anker_plugin_network.dll):
|
That's helpful. I will use that info to see what I can find. I have been modifying the py file to test. So maybe I can figure something out. |
Finally managed to get at least Note that there are already some changes included for generating mqtt packets, but this is fully untested. |
@treitmayr I was able to get it running on my server as well! I got full progress while printing a Fortnite medallion for my son. |
Great job! I think you two are the first two to get the M5c working with it. |
Sounds good. Maybe a stupid question: I'm struggling at the first step to import the configuration. I do not have the login.json file. Do I need a other version of AnkerMake Studio? Thanks Bernd |
AnkerMake studio is not AnkerMake Slicer. Different software. |
Thanks! Unfortunately I still cannot upload gcode files (at least via Prusa Slicer) - the first file immediately displays as finished, and a second print just waits forever in the slicer's job list. Have not had the time to check why and how this is supposed to work in the first place. @jayknott, did you manage to print directly from your slicer? |
@treitmayr I haven't tried to progress any. I will probably try tonight. Has been a busy week. |
If either of you have working fixes for M5C, please feel free to PR them. |
@billyjbryant I will probably get the time to create a proper PR from my fork at https://github.com/treitmayr/ankermake-m5-protocol/tree/playground-m5c at the next weekend. Then I would also like to find out why sending a print job did not work for me. |
Added PR #145. Please check for the AnkerMake M5C and M5 (if possible). |
Just adding that I have an M5C that I would be able to test / debug with . |
Describe the bug
Cannot decode MQTT msessages with various payloads using commit bcf6855.
One of several messages that fail to decode:
[*] Trying connect to printer AnkerMake (EUPRAKM-012816-EJPZG) over pppp using ip
[E] Failed to decode mqtt message
Exception: Unsupported mqtt message format (expected 2, but found 1)
Message : 0x4d 0x41 0x89 0x00 0x05 0x01 0x01 0x05 0x46 0xc0 0x01 0x00 0xac 0xf0 0x9e 0x50 0x04 0x0a 0x00 0x00 0x00 0x00 0x00 0x00 0x91 0x19 0x86 0xc8 0x5c 0x38 0x6b 0x3e 0x53 0x8d 0x8b 0xc2 0xec 0xb8 0xb2 0xbb 0x83 0xcb 0xad 0x14 0x78 0x10 0x38 0xef 0xcc 0xfa 0xa1 0xbd 0x1d 0x86 0x2c 0x9a 0x26 0xaf 0x45 0xbf 0xfb 0x59 0x84 0xc5 0x11 0xd4 0x5d 0x56 0xdc 0x99 0xcc 0x43 0xc5 0x28 0x06 0x0a 0xdd 0xe7 0xac 0x85 0x54 0xfb 0x10 0x87 0x64 0xa8 0xae 0x67 0x6c 0x01 0xce 0xf1 0x31 0xd5 0xcb 0x40 0x52 0xb3 0x30 0x78 0x74 0x1e 0x3a 0xc6 0x2c 0xf0 0x19 0x20 0x24 0x1d 0x94 0xbe 0x15 0xc4 0x7e 0x22 0x47 0x97 0x67 0x1e 0x7d 0x42 0x0a 0x9c 0x36 0xd2 0x17 0x97 0xc3 0x02 0xc5 0xa3 0xd9 0x3e 0x3b 0xc3 0x14
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected MQTT messages to decode, MQTT/PPPP buttons to turn green and ability to upload gcode files
Screenshots
N/A
Desktop (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: