-
Notifications
You must be signed in to change notification settings - Fork 65
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
Files sent from Cura have the word "true" inside. #163
Comments
I discovered that the problem is in:
Becasue Cura send index = 0 sometimes. So I will implement some other manner of checking to receive a file. |
I just put a counter on the filename so I get filename+counter and I recevied 3 files, the last two with "true" inside. The first one is the real file. |
Here a raw and rudimentary but working code for the purpose. Only modified the function "handleUpload".
|
Thank you @Anyeos. Do you think you could send a pull request? |
I need to improve the code if not you will need to upload 3 times from the web to bypass the counter (that is some workaround for Cura). For now it is working as expected with Cura 4.8 only. I will improve it eventually but not today. |
Does this also continue to work with PrusaSlicer @Anyeos? |
Hello, all is working good for now with Cura, PrusaSlicer, etc. I improved the code a lot so it is working better. Can cancel, send file, print, cancel, print... it works good. The code is published on a fork that I made. If you have the time to study the code feel free to do so. I am very busy and cannot do a pull request or a patch. I implemented the network serial interface too so you can control your printer directly from a network as if connected directly to USB on computer. Ie.: you can use it on MatterControl too. |
That sounds interesting @Anyeos. Thanks for letting me know. |
Hello friend, I come here because I want to leave a link to my fork because nobody knows about it but I did a heavy job already. It is a waste if nobody knows or try it. But I found this chat so I will put it here. Here the fork: https://github.com/Anyeos/NeoWirelessPrinting Update: I did some changes some days ago but I didnt uploaded it yet. So expect some changes published in a near future. |
Hello @Anyeos, thanks for your work. How about sending pull requests so that your improvements can be upstreamed? |
Because it is a lot of code and there are no relation on filenames and on code structure. I developed a completely new approach starting from the web server that is asynchronous non blocking. The "Wifi manager" that I implemented does not exists, nobody created it, it is my own creation. The approach is using a minimal filesystem to serve the web files. My project have a complete web UI full async. So... to pull some code I need to write the code on your own files at first. 🤷 |
When I send a file from the served webpage directly, it uploads correctly and have all the bytes inside (on the SDCard). But when I upload directly from Cura, the file size on the SD Card is only 4 bytes long and have the words "true" inside. So, all the file content is truncated with the word "true".
I think it is something related with Cura sending some command that WirelessPrinting missunderstands or maybe it is a bug.
The text was updated successfully, but these errors were encountered: