Marlin: 1.1.x Cannot send commands via USB when WIFI is attached to AUX

Created on 11 Oct 2018  路  6Comments  路  Source: MarlinFirmware/Marlin

Description

Mega2560 /ramps 1.4
WIFI ESP8826 is attached to AUX as default serial and powered from 3.3 arduino pin.
WIFI works perfectly.
I use Pronterface to send commands.

The problem:
When WIFI is powered ON and USB is connected to PC, I am able to connect Pronterface to printer via USB but NOT able to send any command via USB!
So I forced to turn off WIFI module if I want to communicate via USB.

Most helpful comment

Both onboard Mega2560 USB-to-serial bridge and ESP8266 are connected to the same RXD/TXD UART Atmega pins so you can't use USB connection and ESP8266 simultaneously.

All 6 comments

The more information you can provide the more likely someone can help. So your config files, plus things like what display you have attached, any special pins you have in use, what version of Marlin you are using etc.

Both onboard Mega2560 USB-to-serial bridge and ESP8266 are connected to the same RXD/TXD UART Atmega pins so you can't use USB connection and ESP8266 simultaneously.

OK I jumped to Marlin 2 to use SERIAL_PORT_2 option.
Now both USB and serial 2 work with hosts

You don't have any choice - Marlin accepts g-code and sends responses through Atmega2560 UART0 only (when not printing from SD card). So you can connect only one device at a time - PC through USB (PC <-> USB connector <-> onboard Mega2560 USB-to-serial bridge <-> UART0), ESP8266 or MKS TFT32 (AUX1 connector <-> UART0).

On urelated note - ESP8266 is not 5V-tolerant and you have to use 5V<->3.3V level shifter to connect it to 5V-level Atmega 2560 RXD/TXD.

You don't have any choice - Marlin accepts g-code and sends responses through Atmega2560 UART0 only (when not printing from SD card). So you can connect only one device at a time - PC through USB (PC <-> USB connector <-> onboard Mega2560 USB-to-serial bridge <-> UART0), ESP8266 or MKS TFT32 (AUX1 connector <-> UART0).

On urelated note - ESP8266 is not 5V-tolerant and you have to use 5V<->3.3V level shifter to connect it to 5V-level Atmega 2560 RXD/TXD.

I got 3.3v from Arduino for powering ESP8266. As for Rx Tx no shifters are really needed. Works perfectly.

I jumped to Marlin 2 to use SERIAL_PORT_2 option.
Now both USB and serial 2 work with hosts

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jerryerry picture jerryerry  路  4Comments

W8KDB picture W8KDB  路  4Comments

Tamonir picture Tamonir  路  3Comments

StefanBruens picture StefanBruens  路  4Comments

Glod76 picture Glod76  路  3Comments