Help! I Cannot communicate with my NX4827K043_011.
I had a smaller version some time ago which failed rather quickly and was returned. I then bought the model I mentioned above for a project I was working on. Unfortunately, I am unable to communicate with it at all. I am using a MEGA 2560 and have the device connected to Tx2/Rx2 on the Mega. I have tried to experiment with a very basic one page and one text label (t0) to see if I can send a text to it using the following simple program on the Arduino IDE:
Further to the above I have connected the Tx2 on my Arduino Mega to my nScope Oscilloscope and getting a decent waveform so I assume all the Mega’s I’ve tried are working. Oddly enough though I am getting the exact waveform back on the Nextion Tx, which is at the exact timing of the Mega Tx and without the Nextion Tx being connected to the Mega!
I’m by no means an expert, but would like to know if my above simple sketch should work and if not how can I test easily the Nextion is receiving data.
I guess that when setting an appropriate bkcmd value, you should get a qualified error message as a return value. Not sure, but I guess that your handling of the quotes which should be sent over serial is causing the error. I think they should be escaped.
Thanks for your suggestion. I have tried your sketch, which loads okay on the Aduino Mega, but still no joy.
I feel that I have a dud display! I had one before and never had this problem until it failed so I reckon I’ll cut my losses as I’ve had it too long to return now but thanks for your time.
Silly questions I know - but…
check you are using pins Mega pins 16 & 17
swap TX & RX over.
Also is there any action with the Mega when you are in Nextion Debug mode?
Regards,
Bob
Don’t know about character encoding.
I presume you have uploaded a tft file to the nextion with a valid text box
Bob
This forum is in no way affiliated with NEXTION®, ITEAD STUDIO®, TJC®, or anyone else really. All product names, logos, and brands are property of their respective owners. All company, product, and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement from the respective rights holder(s).