-
-
Notifications
You must be signed in to change notification settings - Fork 466
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
[FEATURE REQUEST] fastest baud rate, like 921600, 1000000, 2000000 bps #350
Comments
Hi about 921600 it is a space that mess up the list - I fixed it in FW and worked around in webUI so you just need to update latest webUI and it works About other speed - sorry I won't do that because these speeds are not well supported and corrupt the serial transfert - as mentionned here : #93 (comment) and confirmed here : #296 (comment) |
hahaha. I copied "921600 " and add "2000000 ", etc with same sapce, with the same issue ;) About other speed. it probably depends on uC and other factors. SKR-PRO is quite fast. |
yes space can be naughty ^_^ |
4000000 (4Mb/s ) works for me. It means it can read file list, folders from SD, commands like home, move, M117 etc. Unfortunately file upload doesn't work at all speeds but as I understand it is old issue with Marlin #321 |
SD Upload should work what ever the speed, as mentionned in links I shared ealier but some data may be corrupted and need some retry which is implemented. I do not have STM32f4 board, I guess you use the 2.0 version of marlin ? |
Yes, it is last Marlin 2.0-bugfix |
Well this branch is still under heavy development, code worked before on 2.0 and work with 1.1.9 |
It starts to write file. create file size 0 on SD then esp3d freezes. File size does not matter. nothing in console. |
I just tested this file on Marlin 1.1.9 and current ESP3D 2.1 git code at 250000 baud rate And upload is working as well as printing after upload - same code was working on 2.0 before -
I do not have a system with Marlin 2.0 right now but if ESP freeze it may be a power supply issue - when uploading esp use a lot of power and power need to be stable. |
Error 0 means webui cannot connect to webserver |
Also how did you solved your previous issue ? |
I made 8 tests at 250000: |
What is your signal strengh ? |
58% |
obviously there is some communication issue as no checksum is detected by printer |
[ESP420]plain |
you must flash to CPU Frequency: 160Mhz not 80Mhz - that may explain why Webserver is not always responding |
I've tried both frequencies with the same result. |
It may not be the complete solution but it is part of it 160 Mhz is a must How your esp is powered? |
OK. It is 160Mhz |
Upload to SD with OctoPrint works @ 4000000 |
Stm32 is 3,3v ? sorry I am not familiar with this board. |
Previous test with esp8266 I made at 250000 and 115200. I wanted to show that SKR-PRO could handle much higher speed. I think it is something similar to: |
It is because of Marlin issue I introduced the checksum, I am in thread your linked. I have no clue why ESP webserver does not respond during upload- neither freeze - I cannot reproduce with my hardware Upload is tricky only for medium / big files because ESP cannot do anything else when upload is ongoing, any action during upload will overload the ESP MCU and so data will be lost/corrupted but in your case ESP does not respond so it is not this issue, sorry I am dry on this |
You are not in async webserver, right ? to setup debug use nodemcu, external power should be more stable enable debug in config to SPIFFS but use only small file or it will fail due to SPIFFS slow down everything, clean often the log file the SD file upload is here : https://github.com/luc-github/ESP3D/blob/2.1/esp3d/syncwebserver.cpp#L1172 but if ESP crash you, won't be able to see anything as cannot log this output from ESP, need to duplicate GND and TX lines from ESP and connect them to PC using Serial/USB adapter to see the output in serial terminal / monitor If ESP crash - you can get the stack output and use the error decoder (https://github.com/me-no-dev/EspExceptionDecoder) to see what is happenning If it is com error you will see all com exchange in log.txt |
@rafaljot did you made some progress ? same behavior was reported with esp32 and custom Marlin Firmware |
I tried to upload 1KB file with hundred M117 commands inside ( br=115200 ) |
please use not async - the log show you are using it and it show also the transfer is ok , which means async loose data, that is why it is not recommended to use async with serial, async do not raise error when not answering or ignoring packet. |
I misunderstood you. I thought you suggested that I should turn on the asynchronous mode before debugging. I turned it on yesterday first time. So I repeated the test without async. Maybe it is hardware problem. Now I realized I tested with Octoprint and it works perfect but I used serial0 and USB cable , with ESP I use Serial6 and direct uC-uC tx/rx connection
|
Yes I see a reset in log - the only way to know what do the reset it is to duplicate GND line and esp tx line and connect to PC and you can disable log, when esp RESEST/Crash it will show threason and the error stack - dfecoding stack should explain what is the root cause / hardware / software or at least point out when it happen |
I get it. It does not freeze. It is terrible slow. 100 lines, 1KB gcode file takes him apx two minutes to upload. That's why I thought he was hanging out on bigger files. I added some extra logging, like
2291353-2292816= 1.5s per line
|
yes slow like hell - I know it is disapointing, I just support this feature by courtesy - I do not use it, it is useless for big files |
it should transfer many lines at once. Next observation is upload speed nearly doesn't depends on bout rate. I reduced some wait(ms) in code, removed purge_serial() and it is faster now but still slow 200KB in 19s |
It does not use M28/M29 protocol but write packets of 2048B to SD, same size of packet received, so it is faster
Yes baudrate it is not the bottleneck, the M28/M29 protocol is (said here #290, and #216)
Yes, but I put it for safety, to not catch wrong ack, you can also remove every checks, not wait for any ok to consider it is ok, and hope no error happen, it will be faster just not reliable ^_^, slow for slow I prefered to make it reliable. Anyway what ever the hack, it will still be super slow and almost useless due to protocol |
I guess issue can be closed now |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pls add fastest baud rate, like 921600, 1000000, 2000000 bps. Maybe 4000000 could works
There is 921600 in drop down but I can't chose it. It turns to red after selection.
Or could someone point me where to change it just for tests?
I tried to change InitBaudrate function in config.cpp
to enforce 2000000
I have stm32f4 SKR-PRO 1.1 and esp-01s
The text was updated successfully, but these errors were encountered: