Coder Social home page Coder Social logo

pynus's Introduction

Python NUS console

A simple NUS (Nordic UART Service) console to connect to the UART-over-BLE for Nordic chips. It uses BlueZ over DBus, and probably requires at least BlueZ 5.30 or rather BlueZ 5.42 (tested on version 5.43 in Debian).

Simply run the script (using Python 3 - Python 2 is not supported!) and it automatically connects to the first NUS console it can find. Exit using Ctrl-X.

Don't use Ctrl-D within MicroPython unless you must: it does a soft reset which drops the connection. Detecting this is only partially implemented.

TODO

  • Exit the console on a disconnect, and not with the first keypress after a disconnect.
  • Either use a real library (e.g. gatt-python looks promising), or extract the important bits to a new library.

License

This project is licensed under the MIT license, just like MicroPython.

pynus's People

Contributors

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