| 
 | 
 
I try to communicate nextion display with Orange pi lite, I can receive data from the display, but can’t send it using WiringSerial library or serial library for python. 
if I use common file write() in C program, and try to catch an error by errno.h, it gives me: 
value of errno 14 
error printed by errno: bad address. 
Code for python looks like: 
 
import time 
import serial 
 
ser= serial.Serial(‘/dev/ttyS3’,9600) 
EndCom = b’xffxffxff’ 
while True: 
    temp=“page 0” 
    time.sleep(0.5) 
    temp=temp.encode(‘ascii’) 
    ser.write( temp + EndCom) |   
 
 
 
 |