GithubHelp home page GithubHelp logo

microsoft / jacdac-esp32 Goto Github PK

View Code? Open in Web Editor NEW
20.0 11.0 5.0 450 KB

Jacdac wired protocol implementation for ESP32

License: MIT License

CMake 1.01% Makefile 3.75% C 79.67% JavaScript 4.30% Python 10.29% Shell 0.98%

jacdac-esp32's Introduction

DeviceScript Runtime for ESP32

This repo contains implementation of DeviceScript virtual machine and runtime for ESP32. See https://microsoft.github.io/devicescript/devices/esp32 .

Building

Install ESP-IDF. Make sure IDF_PATH is set. You can also install ccache to speed up builds. You will need to run export.sh from the IDF folder - the Makefile will remind you.

To build run make.

To deploy run make r.

TODO

  • test flash jacs storage

  • test sensor watchdog

  • test cloud watchdog

  • add Jacs restart/crash blinks

  • add Jacs user blink

  • some blink for no Jacs program?

  • linker-override panic_restart() - do some blinking in there

  • synchronize timeseries ends to limit number of uploads

  • save current time in some RTC register so it survives reset (for stored cloud uploads)

  • 'failed' response for HF2 send

  • report Wi-Fi RSSI from tsagg

  • deal with Discrete from motion sensor

  • user-accessible watchdog in Jacscript

  • restart on infinite loop (hw-watchdog)

  • impl. watchdogs in tsagg + azureiot

  • blink on upload

  • save program in flash

  • multiple Wi-Fi networks saved

  • add HF2 over USB Serial (CDC)

  • set "CLIENT" flag in announce

  • disable self-reports coming from the wire

  • don't forward restricted packets to the wire from USB or loopback

  • only accept restricted packets from USB or loopback

  • add restricted flag in frame flags

  • re-enable wifi service - think about auto-connect?

  • implement Azure IoT Hub connection and IoT Hub health service

  • implement Jacscript Cloud service using IoT Hub

  • add auto-upload function in Jacscript and precompile for common modules

  • implement reset_in as hw-watchdog

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

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.