Start a new topic

Test command with serial external program

Hi all!

I bought the NX3224T028 version and I like it a lot. Congratulations on the design of the device. (It would be good a version of Editor for Linux)

Currently I'm trying to communicate with the screen in python. I can receive boton event with the command serial read, but I can't write or the screen does not respond.

So my question would be to know if I could try with a serial port program like "moserial" to try if I don't have a problem with my LCD?

I try to send this command for example: sendmeÿÿÿ

Or some other test the verify the communication. (without arduino)

My connection:

USB/TTL(serial - CP210x UART Bridge) <-> LCD Nextion

5V <-> 5V

Rx <-> Rx

Tx <-> Tx


Python program to test write:

import serial

ser = serial.Serial ('/dev/ttyUSB0') 

ser.baudrate = 9600


print s

Thank you very much

TX -> RX

RX -> TX

If for any reason the silk is wrong on device, I would toss the incorrect one.

- but could also be some sort of code configuration error

In any case, to frig with a one off where silk maybe wrong is one thing

- if this is a multiple unit scenario ... yeah, I don't know, I'd figure which is wrong and toss it.

In that case I'd check my wiring and USB to TTL adapter first by trying to do manual serial communication between the IDE and the display

Hi all,
Thank you for your help.
Thierry Frenkel: sorry it's my mistake in the copy and I send ser.write('t2.txt="Hello"\xFF\xFF\xFF') and nothing.
Gerry Kropf: yes you are write, it's strange wire but if I put Tx <-> Rx I can't receive and send.
Now, with this strange configuration I can read and I have the following return for some buttons.
[101, 3, 6, 1, 255, 255, 255]
[101, 3, 5, 1, 255, 255, 255]
[101, 3, 7, 1, 255, 255, 255]
[101, 3, 8, 1, 255, 255, 255]

That is why my first doubt, if I can test with some serial program
Now, according the  Thierry Frenkel message's,I assume the python code it's correct.
Remark this USB/TTL worked me correctly with other projects with Rx <-> Tx.

Thank you again



with the posted wire-setup it makes no difference, you can send whatever you like, it just won't work ... :-)

Shouldn't it be ser.write('t2.txt="Hello"\xFF\xFF\xFF') ?

it can't work with your wireing ...

    - Rx <-> Rx  ???

    - Tx <-> Tx   ???

something Send out must be Received ...

Login or Signup to post a comment