Report Bugs Here

Moderator: Mmiscool

User avatar
By rodrigocirilo
#57667 Ok, I'll try.

However, while editing and save the password, it is sending various signals for the serial. I put a pic with a LCD display to display what comes through the serial and can follow the progress of the code. But it's like I said, when I click save, or file manager it sends "stuff" without the serial I ask, this is normal, it is possible to disable?
User avatar
By Electroguard
#57883
One more doubt .. I am unable to send numbers for serialprint (1 or 2 or 3 etc).

If you have a look at any ascii chart you will see that the numbers (1 or 2 or 3 etc) are used as ascii control codes, not the numerical number.

So if you wish to serially transmit the number 3 for example, you need to use serialprint chr(3), otherwise it will be interpreted as an ascii control character.


Have a look at these couple of Music Player examples...
http://www.esp8266.com/viewtopic.php?f=40&t=9381
User avatar
By rodrigocirilo
#57885
Electroguard wrote:
One more doubt .. I am unable to send numbers for serialprint (1 or 2 or 3 etc).

If you have a look at any ascii chart you will see that the numbers (1 or 2 or 3 etc) are used as ascii control codes, not the numerical number.

So if you wish to serially transmit the number 3 for example, you need to use serialprint chr(3), otherwise it will be interpreted as an ascii control character.


Have a look at these couple of Music Player examples...
http://www.esp8266.com/viewtopic.php?f=40&t=9381



Ok, I realized that.

But there is a big problem here:

I had to put a 2 way relay to interrupt the serial communication between the ESP and the PIc, because during the "save" it sends a lot of data through the serial and that makes my uC hang !! So I "bind" the relay that interconnects the serial esp <> pic only when my program is ready to send data to control the pic.

Even so, when this connection is made the ESP sends a lot of data (nonsense) and the pic sometimes hangs. When it does not crash I can send data to it to treat it the way I want.

My question, why does ESPbasic send "stuff" to the serial without me asking?