-
-
Notifications
You must be signed in to change notification settings - Fork 939
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
Changing 5M communication to new Rest-Api #7642
base: main
Are you sure you want to change the base?
Conversation
@iherbak |
@SoftFever Hi, the new API added to the Flashforge 5M series using a Printer Id and an Activation key pair to guarantee the request is for the specified machine. For this purpose i added new UI elements for the user, and also added the Translations for the new "Printer ID". The previous version was a serial based and the new one is eliminates the large file transferring issues. It was not clear to me how the profiles are used in code and added the fields for all the configs to avoid parsing errors. Please advise, |
Unfortunately, while this would be great addition, the current implementation isn't functional for most users. I'm not sure why, but most 5M (Pro) have open port 8899. I have yet so see 8898 (like you have) in the wild. It might be due to FW differences, but I'm unsure. The original FlashForge DLL implements Anyway, there is still additional barrier before the auth goes through. Compiled your changes, but replaced the port with 8899 and
TCP dump
As you can see, the server ACKs the request, but won't do anything else. Basic curl CLI that should replicates Orca's behavior doesn't change the outcome, it's still without response.
I'm curious what FW version are you running? |
I'm on the latest 2.7.6. Unfortunatelly i don't know which firmware version is the first that started the support of the new communication way. |
Indeed, 2.7.6 is latest, sorry for the typo. Switched to LAN only mode to test it out and yep it works!
Curl response is also success
Couldn't get the IGMP working, but I can see the device joining 225.0.0.9 group. It just ignores my messages. So far, I managed to salvage these URLs:
And earliest FW supporting Rest API is I think it would make sense to keep both behaviors in Orca, because it requires switching the printer to LAN mode only. Previous approach allows both LAN and external connections. All the user has to do is input the printer IP and click on print. |
Nevermind! @CopeTypes is already doing the reversing on https://github.com/CopeTypes/ff-5mp-api |
Ok i see it. I also reverse engineered and added the bare minimum to make it work. I have no time and enough know-how in c++ to add a full UI integrated into Orca, however i saw all the api endpoints as well. I have A POC that capable of using the IGMP group written in c++ in case anybody interested. |
Please follow the instructions written on the auto release page here
https://github.com/iherbak/OrcaSlicer/releases/tag/Latest
Y0uwin ***@***.***> (időpont: 2024. dec. 15., V, 1:22) ezt
írta:
… Hello iherbak, i preapologize as i am very new to both github and
flashforge printing
using the orca Slicer 2.2 and addint my device i was able to connect to my
printer
however using the 2.3 dev im unable to
image.png (view on web)
<https://github.com/user-attachments/assets/88e43f70-c50a-453f-a3b6-3744263b4aa0>
im unsure as to what i might be messing up so any additional information
would be greatly appreciated
ive tried removing the serial number and adding it to the printer ID
have the serial number for both serial and printer ID
ive had them blank
Ive tried manually adding the port8898 and still wont connect
—
Reply to this email directly, view it on GitHub
<#7642 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABH6KN3FYDCYK7K74RWWUCL2FTDUXAVCNFSM6AAAAABS4OLIXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBTGM4DOMJVGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
again sorry if im being a bother but for the device tab and refusing to connect would i need to install a fork to be able to view the camera through here or is it in the works? |
Description
The communication is changed from serial to http based.
Two new user inputs ares added to the printer config dialog.
Those are required for proper calls.
Serial number (Sorozatszám) and Printer ID (Nyomtató ID) are thw two fields in question.
Ran the same github actions on my fork to build the changes. Also using this version myself since i created it.