-
-
Notifications
You must be signed in to change notification settings - Fork 467
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] MKS Robin Nano 1.2 reboots on file upload to SD #611
Comments
Thank your for submiting, please be sure you followed template or your issue may be dismissed. if you deleted the template it is here |
as bot mentionned please fill information requested in template |
Ok, I just done that on first post. |
I do not see the exact version of the Robin Firmware - I have no clue of what is the problem without knowing on what the problem happen Additionnally using NodeMCU V3 is bad idea, you should stick to MKS WIFI module as upload use very high speed baude rate that does not support any EMI noise, which will corrupt communication, which will likely happen if you use another ESP board connected with wires |
EMI noise are not critical when using a baudrate at 115200 like commands use, but upload use about the Marlin Tab and Robin also a Marlin MKS issue - #610 (comment) |
Ok I see, can I lower that baudrate like changing that setting to other lower value and compile? |
in Marlin you need to change the speed in MKS code https://github.com/makerbase-mks/Mks-Robin-Nano-Marlin2.0-Firmware/blob/master/Marlin/src/lcd/extui/lib/mks_ui/wifiSerial.h#L33 The MKS wifi port is not managed by Configuration.h or Configuration_adv.h Also MKS WIFI use 6 pins - VCC / GND / RX / TX / and 2 flags pins for communications |
Yes I know the extra 2 pins, but connecting those everything strangely stops working that give me thinking what could be the behavior of ESP3D with the real MKS WIFI module since all the pins are wired. |
I do no not understand sorry
what do you mean ? |
For my test with the Nodemcu I just use the TX and RX pins apart the power (GND + 3.3V) since if I connect the D3 and D2 (supposed the extra 2 pins) nothing works. |
The 2 extra pins are necessary and defined: |
But ESP3D use them as well in this case? |
I just linked you esp3d FW code....of course, they are mandatory https://github.com/makerbase-mks/MKS-WIFI |
what is you |
I get this:
|
Ok so ESP3D settings are correct |
|
Upload works in exactly same way but using baud rate 1958400 instead of 115200, but rely more on pins GPIO0 and GPIO4 for notification and ack as it use several packets |
Ok going to recheck those pins them, I think I was using others since on the MKS schematic for the module they are IO1 and IO2 that I have to check on the nodemcu mapping. |
IO0 and IO2 do not refer to ESP8266 GPIO but MKS internal naming |
I can see that they map to D0 and D4 that you showed on: |
Solved, uploads are working without any problems.
Now only the Marlin Tab and Robin also a Marlin MKS issue - #610 (comment) is not working, all the rest is ok. Anyway, what is that tab suppose to do? Get some Marlin information only? |
What poilling command did you put ? |
@Legsmaniac you should do a github with your extra panels ans share them - they also could be promoted here https://github.com/luc-github/ESP3D/wiki#nice-things-done-using-esp3d |
@BaltasarParreira I thought about doing that as, like you, I have loadza bitza kit. I was going to make my own Arduino WiFi SD but then I saw an offer for a FlashAir real cheap so I got one. It was a neater and tidy option because to use yet another ESP meant more wiring, more power to supply it and another box to make for it or somewhere to locate it. I just bought an extension microSD to SD and printed a holder for it that slots into the V Rails. Nice n neat n tidy. |
@luc-github OK, I could do. Although three of them are just URL links to things - one for HomeAssistant, one for my camera and one for the WiFi SD, they're nothing technical really. The only one I have created using HTML (so far) is one for my LED lighting but again, it's nothing complicated and only good for anyone who might be using WLED like I am. |
@Legsmaniac my meaning is : you did nice job, be proud of it 😉 |
Awwww, shucks, thank you kind sir. 😊 |
#540 (comment) |
Sorry I just quick read in diagonal so I could say something wrong because of it and not made the total effort to full comprehend it. 1- If I move back to older version I can have the SD upload files working? Just say yes or no. |
1 - Yes |
Great, all working perfect now !!! I can now remote print without problems. Anything I can do to help, porting this (SD upload) or other things to the new version? |
if you want to work on #575 you are welcome - MKS is good candidate as it has all pins - so now it is 2 - in ESP3D 3.0 - that part should be not too hard as based on MKS module, most of the code will be same, but adding checksum and retry / error management to handle marlin code,
|
on 2.1 nothing is automatic you need to go to webUI preferences and enable each controls |
So stupid, dahhhhh. |
Ok more good news, feeling lucky with this morning success I decided to start from scratch since my ESP12S module arrived and I can do tests without using the Nodemcu. Like this I have a full MKS WIFI electronics. 1- Another success on compiling the latest Marlin 2.0 Bugfix Branch wit the MKS UI. I tested with the Nodemcu since it was still connected to the printer and using WIFI I can transfer files without the printer crashing or rebooting but for big files they sort arrive corrupted or something since I have an error on display saying "upload fail". Also I can't connect or do nothing with the ESP3D. He doesn't recognize the printer. Now I just finishing my MKS WIFI clone module and going to do further tests to see if if it was something related of using the Nodemcu before as it has more electronics than the real one. Here is my assembled clone version and I just hope they don't really use the SPI as they show on the chemotic but they don't refer them on the git page and I quote: "Hardware Uart Tx/Rx : for uart data transferring |
is your screen ok ? looks garbage due to communication issue decrease the upload transfer speed on esp3d and Marlin may solve the issue for you |
Yes screen is ok on normal operations, becomes like this when this type of upload file errors happens. My home made module is 100% ok if I go back to Marlin 2.0 UI instead of the MKS one and off course using your esp3d v2.x since 3.x doesn't support file upload on normal serial protocol yet. All the WIFI problems are really related on using MKS UI on the firmware, looks like they're adaptation to Marlin 2.0 is not 100% stable yet with this as in the older MKS and even the stock brand firmware works perfect. |
on my robin v2 screen is fine when wifi is working and uploading big files. |
Ok I can try that, you mean at the Configuration.h change this? By the way, what firmware you use and from what source? |
no, MKS protocol use its own way to configure the wifi port |
you need to dig in Marlin lcd mks code |
Ok I'll search for that. |
mks one from december |
Ahh... the V1.0.4 Release looks like the latest I could find from MKS. |
But that one it was the first I tried and I had the reboot problem just by having the WIFI module connected even not doing any operation using it, And that one is already based on Marlin 2.X. Probably it doesn't happen with you because you have the Robin v2 and not the v1.2 as me. |
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. |
name: Bug report / Problem
about: Create a report to help us improve and help you
title: "[BUG] MKS Robin Nano 1.2 reboots on file upload to SD "
labels: bug
assignees: ''
Describe the bug
Hi, I'm experience this problem every time I try to upload a file to the printer SD card.
The uploading message shoes on the MKS TFT35 but them screen pauses for a while and the board/printer reboots showing the MKS boot logo and beeps like if it was just powered on.
I'm running the latest Mks-Robin-Nano-Marlin2.0-Firmware that I just compiled and using the #define MKS_WIFI_MODULE.
Is this really a bug? Is there a solution?
Thanks.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
File should upload and stayed on printer SD to be printed after if need it.
Screenshots
ESP3D Firmware:
Target Firmware:
Board used (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: