Giter VIP home page Giter VIP logo

nexus's Introduction

Nexus

Description

Important info currently this script does not work reliably for some baudrates. I'm still investigating the issue. If you got any ideas about why, let me know!

Nexus - short for Nextion Upload Script - is a python script that allows the upload of TFT files to a Nextion screen over serial. Unlike most other scripts out there this one uses the Nextion Upload Protocol v1.2. This is the newer version used by the Nextion Editor itself that allows skipping parts of the TFT file if those have not been modified.

Nextion never published any details about this newer version but it's been reverse-engineered and documented.

If you happen to have a device so old that it doesn't support this new upload protocol, the script will automatically fall back to the well-known v1.1.

Requirements

Usage

Complete documentation of the command line options is available using

python Nexus.py -h

To upload a file at 512000baud/s type

python Nexus.py -i PATH_TO_YOUR_TFT_FILE -u 512000

The script will automatically scan all available ports for a Nextion screen. You can manually specify a port using -p PORT. To list all available ports use

python Nexus.py -l

Troubleshooting

If you get an error like Expected acknowledge (b'\x05'), got b''. it means that Nextion did not respond as expected or not at all. Most likely reasons are a wrong model (TFT file has been compiled for another model) or a too high baudrate.

nexus's People

Contributors

mmmzzzz avatar randybuildsthings avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.