Serial1.setConsole() is not working #6074
Replies: 1 comment
-
Posted at 2019-03-16 by @MaBecker try this sample http://www.espruino.com/EspruinoESP8266#software-serial Posted at 2019-03-16 by @MaBecker you do not have to set the console to serial, because this is default. Posted at 2019-03-17 by maman Hello @MaBecker, Yes, I have tried using software serial, but the serial data is not reliable, although I set the baud-rate at 4800. And, after one or 3 hours, the ESP8266 will crash. Using hardware serial, the data is more reliable. However, after disconnection over tcp/ip, Regards, Posted at 2019-03-17 by maman Is there any instruction that can be executed by the ESP8266 to change the REPL console to connect over TCP/IP ? Posted at 2019-03-17 by @MaBecker
Check your vars, send process.memory() as JSON via mqtt every 5sec to be sure your code has no memory leak. Posted at 2019-03-17 by maman Hello @MaBecker, The problem of using software serial is the success rate of serial data. It is very low, only 30%, we get the proper data, although using a low baud rate at 4800. While using the hardware serial, we get more than 90% success rate. So, I discontinue using software serial. Posted at 2019-03-17 by maman I found this issue : I inject this instruction : LoopbackA.setConsole(), via mqtt protocol to the device, Posted at 2019-03-17 by @MaBecker
Are you using the latest Espruino firmware? Posted at 2019-03-17 by maman Yes, i use 2v01.49 Posted at 2019-03-17 by @MaBecker Can you please share some details how you use the serial connection? Posted at 2019-03-17 by maman Yes, sure. I want to develop ESP-Now gateway, based on this work For the gateway, I use 2 ESP8266, one is for connection with the esp-now network, Regards, Posted at 2019-03-17 by @MaBecker esp-now is not implemented for the Espruino ESP firmware. A implementation would be a benefit for EspruinoWifi, ESP8266 and ESP32 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-03-16 by maman
Hello..
I attach a serial device to the Serial1 on ESP8266.
To retain the connection of the serial device, I put a code of
at the begining of the program.
However, data from the serial device can't be obtained.
But, if we connect the ESP8266 using TCP in espruino web IDE, then
the data from the serial device has appeared.
Is there any instruction that can activate the serial device connection ?
Regards,
Maman
Beta Was this translation helpful? Give feedback.
All reactions