Saturday, June 9, 2018

Flash Nextion Firmware use SSH mode and USBtoTTL Adapter

Nextion firmware repository 

Nextion-editor ,to change your display style

Format tools:

Firmware download
1) Build by bi7jta , for Nextion T serial (4MHz memory)

2) Supply by PD0DIB Model7 & Model8 HMI file : for K serial, you can modify use editor

3) Supply by G4KLX, the original project

Note: HMI file you need to install Nextion Editor, general the tft bin file.

Flash Nextion Firmware online(ssh),thanks Peng Hui Ping VR2VYE provide this method ,from now not need TF Card. Video demo follow my facebook status and the end of this article.
First publish in
*Now not support board 4 PINs header output mode, Pi-Star setting Nextion (Modem)

Prepare tools
1x USBtoTTL Adapter, such as CP2102, PL2303 model
require pyserial runtime

How to do
1) login ssh mode:
default login
usr: pi-star
pas: raspberry

Copy the follow RED text ,then Ctrl+V, and press ENTER,
Notice that rpi-rw, sudo su , su pi-star, just support one line one time

#Change system to Read and Write

Step 1, Install require runtime . VERY IMPORTANT!

sudo su; 
cd /tmp;
git clone;
cd pyserial;
python install;

#When install  runtime complete,change to pi-star user
su pi-star
cd /home/pi-star


Step 2, download Nextion firmware (*.tft not *.HMI)

#Download Nextion firmware to current directory
#for 4.3 inch NX4827T043

#for 3.2 inch NX4024T032

Step 3, flash use command 

#5) Stop MMDVMHost serice
sudo pistar-watchdog.service stop; sudo systemctl stop mmdvmhost.timer; sudo systemctl stop mmdvmhost.service

#6)Flash to /dev/ttyUSB0
python NX4827T043_G4KLX_ShowIP_by_BI7JTA.tft /dev/ttyUSB0

#Flash to /dev/S2 when using modem,4 PINs header
Now not support

#7) Startup MMDVMHost service
sudo pistar-watchdog.service start; sudo systemctl start mmdvmhost.timer; sudo systemctl start mmdvmhost.service

1 comment:

  1. Hi Winters, any ´chance to flash the Nextion connected to ttyAMA0 (Modem)?