Hi, Is there a way to control the hardware control flow lines of the USB to serial adapter from the debug window? I looking at trying to use the Nextion editor as a remote monitoring terminal for my microcontroller in a project and was hoping to use the RTS line to trigger the reset pin on my micro in the event I need to reset my micro for some reason. Thanks
Thanks a lot for your tutorial !, I recently started using Nextion I have problem in the display of data in Debug of Nextion , and I did not understand the role of Serial.write here in this program.I will be very grateful to you if you can answer me
I am not sure I understand your question. This is an older video and I don't remember all of them. Is there a timestamp that you can refer to? That would help. You can also submit a comment or question on the help page of the Cheap Controls website.
@@CheapControls I have a problem displaying the data in debug , the data should be as the next syntax : " Humidity level : " + a variable of type int , I couldn't display the variable even though I tried a lot
Have you ever tried conecting the arduino to the PC so you can use Nextion Editor Debug and to a physical Nextion at the same time, so you simulate having two screens?
Thanks for your tutorial! I have a problem: no information is coming from the Arduino to the Nextion display. Just an empty line in Debug mode. I connected the Arduino to the COM5 port with a separate cable and connected the Nextion display through the TTL adapter to the COM4 port. How can this problem be solved?
When you go into debug do you select user MCU port then you have to click on the word start. Maybe you are doing that. I am sorry if I am asking silly questions.
@@CheapControls yes, I click on user MCU and then Start. But nothing happens. When I open Arduino port monitor, nothing happens to. But if I change "Serial2" to "Serial", I see message in Arduino port monitor, not in Nextion debug mode
It sounds like you are doing things correctly. You need to have two serial cables coming from the Arduino to the computer. Serial on the normal port and Serial2 on the pins. What Arduino model are you using. If you want you can send your code to my Email and I will try to review for you.
@@CheapControls Thank you, I will be very grateful. Can you write your email address? Or maybe you have a Telegram messenger? I did not quite understand about Serial on the normal port and Serial2 on the pins. I tried to connect the Arduino MEGA via USB cable to the COM5 port and separately through the TTL adapter the Nextion display to the COM4 port. I did not connect the display and the controller with wires. Perhaps this is the problem?
it doesn't works for me I have a USB-TTL cable. RX to TX and TX to RX and power connected to the Arduino. No reaction. So I can't upload a sketch to the Arduino, it won't be found. If I connect the Arduino with a USB cable then I can upload the skatch. But nothing happens in the Nextion Editor when I start in debug mode. can you help me?
You need to have the Arduino connected to the computer with two separate USB connections. One to code the Arduino and one to connect to the Nextion in debug mode. This is the way it needs to be configured for the examples in the video. It is possible to use only a single USB connection but the examples in this video would need modified. I hope this helps. If you still have questions consider asking it at the cheap controls facebook page. It is easier to view code and photos.
I don't know. I would have to understand your configuration better. What model of Arduino are you using? What pins are you using on the Arduino to connected to the Nextion IDE? It needs to be a different port than the one used to connect the Arduino to the Arduino IDE. Good Luck.
Hey i have a little problem while sending value with arduino, when i click on every button in the debug mode that send a return error 04 FF FF FF Parse Invalid Pic ID so when i want a "if (datareceive == "Anything") that doesn't work if you have time to respond i appreciate
@@CheapControls I think there is a problem with the pictures but i can't see where is the problem, i want to send a string value with a simple button "gate" and i want arduino to read it so i can return a instruction for the debug mode. But when i click, that send "gate" but also "\x04ÿÿÿ" just below in the simulator return so arduino can't read just "gate", i tried to tell arduino if he can read "\x04ÿÿÿ" but its doesn't work. Here is my arduino if you want : void end_message(void) { Serial.write(0xFF); Serial.write(0xFF); Serial.write(0xFF); } void loop() { while (!Serial.available()); datareceive = Serial.readString(); if (datareceive == "gate") { Serial.print("Data return confirm"); } }
@@CheapControls only the button to return in the previous page but not all of them send characters just a few one. If you have time i can send you my .HMI file so you can check but i don't want to disturb you
Merci beaucoup
Hi,
Is there a way to control the hardware control flow lines of the USB to serial adapter from the debug window? I looking at trying to use the Nextion editor as a remote monitoring terminal for my microcontroller in a project and was hoping to use the RTS line to trigger the reset pin on my micro in the event I need to reset my micro for some reason.
Thanks
If you have an enhanced display you could use a GPIO pin.
Thanks a lot for your tutorial !, I recently started using Nextion I have problem in the display of data in Debug of Nextion , and I did not understand the role of Serial.write here in this program.I will be very grateful to you if you can answer me
I am not sure I understand your question. This is an older video and I don't remember all of them. Is there a timestamp that you can refer to? That would help. You can also submit a comment or question on the help page of the Cheap Controls website.
@@CheapControls I have a problem displaying the data in debug , the data should be as the next syntax : " Humidity level : " + a variable of type int , I couldn't display the variable even though I tried a lot
Are you using two connections. One for the Arduino IDE and one for the Nextion IDE.
What version of Nextion did you use here? It seems that they removed the option to debug with a serial cable in the latest version - v1.63.3
I have that version and it is still included. I am not sure if there are other ways to determine versions. Thank you for watching
Does anyone know why I don't get the option "USER MCU INPUT"? And how can I solve it?
Have you ever tried conecting the arduino to the PC so you can use Nextion Editor Debug and to a physical Nextion at the same time, so you simulate having two screens?
I have not done this but it should work. It would be easier with a MEGA model. You would need to have three serial ports configured.
Thanks for your tutorial! I have a problem: no information is coming from the Arduino to the Nextion display. Just an empty line in Debug mode. I connected the Arduino to the COM5 port with a separate cable and connected the Nextion display through the TTL adapter to the COM4 port. How can this problem be solved?
When you go into debug do you select user MCU port then you have to click on the word start. Maybe you are doing that. I am sorry if I am asking silly questions.
@@CheapControls yes, I click on user MCU and then Start. But nothing happens. When I open Arduino port monitor, nothing happens to. But if I change "Serial2" to "Serial", I see message in Arduino port monitor, not in Nextion debug mode
It sounds like you are doing things correctly. You need to have two serial cables coming from the Arduino to the computer. Serial on the normal port and Serial2 on the pins. What Arduino model are you using. If you want you can send your code to my Email and I will try to review for you.
@@CheapControls Thank you, I will be very grateful. Can you write your email address? Or maybe you have a Telegram messenger? I did not quite understand about Serial on the normal port and Serial2 on the pins. I tried to connect the Arduino MEGA via USB cable to the COM5 port and separately through the TTL adapter the Nextion display to the COM4 port. I did not connect the display and the controller with wires. Perhaps this is the problem?
You can go to www.cheapcontrols.com and submit a comment. Then I will reply to you and I will ask for the files.
it doesn't works for me
I have a USB-TTL cable.
RX to TX and TX to RX and power connected to the Arduino.
No reaction.
So I can't upload a sketch to the Arduino, it won't be found.
If I connect the Arduino with a USB cable then I can upload the skatch.
But nothing happens in the Nextion Editor when I start in debug mode.
can you help me?
You need to have the Arduino connected to the computer with two separate USB connections. One to code the Arduino and one to connect to the Nextion in debug mode. This is the way it needs to be configured for the examples in the video. It is possible to use only a single USB connection but the examples in this video would need modified. I hope this helps. If you still have questions consider asking it at the cheap controls facebook page. It is easier to view code and photos.
@@CheapControls Thank you, i will to try
Connected the ground too?
I was putting spaces between Val and =
Glad I could help
Greetings! how can you fix the "access to com7(my arduino port) is denied
? Thanks
I don't know. I would have to understand your configuration better. What model of Arduino are you using? What pins are you using on the Arduino to connected to the Nextion IDE? It needs to be a different port than the one used to connect the Arduino to the Arduino IDE. Good Luck.
@@CheapControls Hi! thankyou for your reply
Did you have to stop the Serial Monitor to allow the Nextion IDE to work?
Hey i have a little problem while sending value with arduino, when i click on every button in the debug mode that send a return error 04 FF FF FF Parse Invalid Pic ID so when i want a "if (datareceive == "Anything") that doesn't work if you have time to respond i appreciate
Cut and paste the line you are trying to send and I will try to help. Or you can go to www.cheapcontrols.com and submit a help request.
@@CheapControls I think there is a problem with the pictures but i can't see where is the problem, i want to send a string value with a simple button "gate" and i want arduino to read it so i can return a instruction for the debug mode. But when i click, that send "gate" but also "\x04ÿÿÿ" just below in the simulator return so arduino can't read just "gate", i tried to tell arduino if he can read "\x04ÿÿÿ" but its doesn't work. Here is my arduino if you want :
void end_message(void)
{
Serial.write(0xFF);
Serial.write(0xFF);
Serial.write(0xFF);
}
void loop()
{
while (!Serial.available());
datareceive = Serial.readString();
if (datareceive == "gate")
{
Serial.print("Data return confirm");
}
}
do you have the send component id checked in the Nextion? that would send extra characters
@@CheapControls only the button to return in the previous page but not all of them send characters just a few one. If you have time i can send you my .HMI file so you can check but i don't want to
disturb you
If you want me to review your HMI file, you have to go to the help page on the www.cheapcontrols.com and submit a comment.