Both sides previous revisionPrevious revisionNext revision | Previous revision |
projects:3dprinting:anycubic_i3_mega_getting_and_adapting_firmware [2021/05/01 13:45] – [Probe offset] admin | projects:3dprinting:anycubic_i3_mega_getting_and_adapting_firmware [2021/05/01 15:34] (current) – [Test and calibration procedure] admin |
---|
* BLTouch calibration: [[https://github.com/MNieddu91/Marlin-AI3M-BLTouch/wiki]] | * BLTouch calibration: [[https://github.com/MNieddu91/Marlin-AI3M-BLTouch/wiki]] |
| |
In order to perform a test and calibration procedure, it is necessary to send custom commands (Like "M503") directly to the printer. For this you will need a serial terminal application. As of February 2020, none of the most common applications, like gtkterm, minicom, coolterm or even screen seem to work with a non-standard bautrate of 250000. Also, setting the baudrate to 250000 does not seem to work with stty. | In order to perform a test and calibration procedure, it is necessary to send custom commands ([[https://marlinfw.org/docs/gcode/M503.html | Like "M503"]]) directly to the printer. For this you would normally use a serial console application. There are some issues however with such applications as described in footnote ((As of February 2020, none of the most common applications, like gtkterm, minicom, coolterm or even screen seem to work with a non-standard bautrate of 250000. Also, setting the baudrate to 250000 does not seem to work with stty. Sending with echo directly to ttyUSB0, and using "tail -F /dev/ttyUSBx" to see the result, after setting the baudrate with python (see below), works not as expected either: Commands need to be issued twice in order to get a full reply from the printer.)). |
| |
Sending with echo directly to ttyUSB0, and using "tail -F /dev/ttyUSBx" to see the result, after setting the baudrate with python (see below), works not as expected either: Commands need to be issued twice in order to get a full reply from the printer. | The easiest solution to send a command is the open source application Pronterface ((https://github.com/kliment/Printrun)) which runs on multiple platforms. Before sending a command, make sure to configure a baudrate of 250000bps and press connect. |
| |
So far, the only serial terminal application which was found, which is able to handle the non-standard 250000 baudrate, is the one included in the Arduino IDE. And only then when using a workaround.((Without experimenting further, maybe the root cause has to do with the "auto reset on serial connection", as explained here: the https://playground.arduino.cc/Main/DisablingAutoResetOnSerialConnection/)) | If someone prefers to use the serial console built in with the arduino IDE, then proceed [[projects:3dprinting:anycubic_i3_mega_getting_and_adapting_firmware:arduino_250000bps | as described here.]] |
| |
A workaround is the following: | |
| |
Power cycle the printer and make sure the printer is connected to the PC. Then start the Arduino IDE, configure the correct serial port (Per default this is /dev/ttyUSB0). | |
| |
From within the Arduino IDE, open the Serial Monitor. You will likely see garbled text: | |
| |
| {{:projects:3dprinting:007.arduino_garbled_text_250k.png?188×82}} | {{:projects:3dprinting:008.arduino_garbled_text_230k.png?188x72}} | {{:projects:3dprinting:007.arduino_garbled_text_250k.png?188×82}} | | |
| 1. Observe garbled text with\\ a baudrate of 250000 (or\\ alternatively no text at all.) | 2. Change the baudrate to 230400 | 3. Set the baudrate back to 250000 | | |
| |
4. After setting the baudrate back to 250000 close the Serial Monitor (But keep the Arduino IDE open). Then set the non-standard baudrate of the serial port via the command line with the python script as shown [[https://unix.stackexchange.com/questions/327188/how-to-monitor-a-serial-connection-250000-baud/327366#327366|here]] and use the given command to set the baudrate to 250000 (In this case for ttyUSB0): | |
| |
./mysetbaud.py <>/dev/ttyUSB0 250000 | |
| |
5. Reopen the Serial Monitor in the Arduino IDE. Now it you should see normal text: | |
| |
| {{:projects:3dprinting:009.arduino_ok_text_250k.png?563×313}} | | |
| //Output OK, reveals an EEPROM version mismatch...// | | |
| |
==== Extruder intake ==== | ==== Extruder intake ==== |
| |
To print a concise report of all current settings (in SRAM), issue the following command: | To print a concise report of all current settings (in SRAM), issue the following command: |
M503 | M503 (print a concise report of all current settings) |