Start a new topic
Planned

Programing with Arduino as proxy

Hello, 

it will be good, that we could prgram Nextion with Arduino as a proxy. For example :

My arduino have some work, but when i push 3 buttons, the program will stop, and one think, what the arduino will do is :


Serial.begin(115200);

Serial3.begin(115200);

  while (true)

  {

   if (Serial3.available()) { Serial.print(Serial3.read()); }

   if (Serial.available()) { Serial3.print(Serial.read()); }

  }


Then, after update Nextion LCD, user will off/on arduino with new lcd firmware.

I tried that, but there is conenction failed after lot of Serial speed variations.


Is it possible this to develop in Nextion Editor ? (Using only one speed of lcd in firmware and etc ?


1 person likes this idea

I am now reviewing all of the Feature Requests, this will take some time, patience please.

Multiple ways to accomplish with a good programmer.  C, basic, python, pascal.

It's not a language debate - but users require skills.

Arduino Library certainly needs work - carried forward.

Posted a python script to upload to the modules in http://support.iteadstudio.com/support/discussions/topics/1000062718/page/2

The arduino version is a wip...

And sorry, but your answer, that this is planed is very bad, when it is allready possible.



Hello, i have an error in my proxy program (not cast to char), so this time, i can say, that this steps is needed :


1) Set bauds=115200

2) create arduino function

void UploadFW()

{

  while (true)

  {

   if (Serial3.available()) { Serial.print(char(Serial3.read())); }

   if (Serial.available()) { Serial3.print(char(Serial.read())); }

  }

}


3) run this method when you need

4) Upload from nextion editor.



This soundlikes very good. An estimate of the time ?

We are trying to offer similar functions. You will be able to directly update Nexiton through your own MCU,

Login or Signup to post a comment