8000 esp8266: REPL hangs after UART initializing · Issue #3763 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

esp8266: REPL hangs after UART initializing #3763

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

Closed
alessss opened this issue May 5, 2018 · 6 comments
Closed

esp8266: REPL hangs after UART initializing #3763

alessss opened this issue May 5, 2018 · 6 comments

Comments

@alessss
Copy link
alessss commented May 5, 2018

Hello!
I'm trying to read mhz19 co2 sensor data using ESP12F with micropython.

My pins are connected as following:
MHZ19 ESP
GND --> GND
Vin --> Vin
Tx --> Rx
Rx --> Tx

Console hangs directly after connecting (screen /dev/cu.wchusbserial14340 115200) giving following output:

��'�ng�l��d�l��l$������d�g����cll�;x���cl�#{$s$s�'�����g����c��$�d���cl���<cd`��lg�p;l�l��|��{�#4 ets_task(40100130, 3, 3fff837c, 4)
OSError: [Errno 2] ENOENT

MicroPython v1.9.3-8-g63826ac5c on 2017-11-01; ESP module with ESP8266
Type "help()" for more information.
>>> 

Firmware without mhz19 sensor works well. What's the problem with the port?

@robert-hh
Copy link
Contributor

If you connect something else to RX and TX, you'll have a collision with the console, which is also connected to RX and TX. The collision is both for the electrical signals and the protocol, In this case, the mh-z19 sensor requires a setting of 9600 baud, whereas the console is using 115200 baud.
I faintly remember some discussion of setting the console to webrepl only, but could not find that any more.

@dpgeorge
Copy link
Member
dpgeorge commented May 7, 2018

The UART on esp8266 is currently only available for the REPL and can't be used for other things.

@dpgeorge dpgeorge changed the title REPL hangs after UART initializing esp8266: REPL hangs after UART initializing May 7, 2018
@alessss
Copy link
Author
alessss commented May 7, 2018

http://micropython.org/webrepl/ - can webrepl help me in my case?

@dpgeorge
Copy link
Member
dpgeorge commented May 8, 2018
  • can webrepl help me in my case?

Not until it's possible to disable the REPL on the UART; see #3277 for some code which does this.

@dpgeorge
Copy link
Member

It's now possible to disable the REPL on UART(0) on the esp8266, see afd0701.

@johnwebsiteprojects
Copy link

i just hoped i saw this solution before frying my chip

http://micropython.org/webrepl/ - can webrepl help me in my case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
0