Coder Social home page Coder Social logo

f00b4r0 / espatxctrl Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 84 KB

Host control software for ATXctrl, ESP-idf implementation. Mirror of http://vcs.slashdirt.org/git/sw/ESP/espatxctrl.git

Home Page: http://hacks.slashdirt.org/hw/atxctrl/

License: GNU General Public License v2.0

CMake 2.30% Makefile 1.66% Lex 15.41% Yacc 18.77% C 61.86%
esp32-idf wt32-eth01 telnet-server

espatxctrl's Introduction

espatxctrl

Host control software for ATXctrl, ESP-idf implementation.

Supports the WT32-ETH01 ESP32 module by default, should work fine with any ESP32 module.

License

GPLv2-only - http://www.gnu.org/licenses/gpl-2.0.html

Copyright: (C) 2021-2022 Thibaut VARÈNE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See LICENSE.md for details

Features

The software implements a simple telnet interface accessible on standard port 23 (basic networking implemented through simple_network):

  • Asks for (cleartext) password (to prevent accidental access)
  • Offers a set of commands for toggling/reading GPIO connected to ATXctrl
  • Allows setting console baudrate and saving it to non-volatile storage
  • Provides full serial console passthrough over telnet session
  • Provides a basic push OTA firmware update system, rollback-compatible, through simple_pushota

Full list of commands:

baudrate <value> set
baudrate {get|save}
firmware {get|set|save|quit}
{ledhdd|ledpower} get
{power|reset} [long] press
console
help
quit

Commands are self-explanatory, possibly needing explanation: firmware set triggers the push OTA update system, firmware save marks the newly booted firmware as valid and prevents rollback, firwmare quit requests rollback and reboots.

To push a new firmware to the device once the push OTA system is started, use e.g.:

curl <esphost>:<OTA_PORT> --data-binary @build/espatxctrl.bin

Building

Configure the project

Possibly adjust the default "password" string ("admin") in main/cmdparse.l (look for /* password */), and confirm that the ports and baudrate defined in platform.h suits you, then run:

idf.py reconfigure

Note: you may want to adjust the hostname under the lwIP component.

Build and Flash

Build the project and flash it to the board:

idf.py flash

See the ESP-idf Getting Started Guide for full steps to configure and use ESP-IDF to build projects.

espatxctrl's People

Contributors

f00b4r0 avatar

Watchers

 avatar  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.