Skip to main content

Embedded Tester Protocol (ETP) Library

Project description

Embedded Tester Protocol (ETP) library for Python

etplib allows access to microcontroller peripherals from a host computer. Microcontroller should be running the ETP firmware.

Inital setup

  • Install etplib using pip
    pip install etplib
    

Flashing ETP firmware

Arduino Uno

  • Download ETP firmware for Arduino Uno

  • Flash ETP firmware to the Arduino Uno using avrdude (Get avrdude here)

     avrdude -v -p atmega328p -c arduino -P COM4 -b 115200 -D -U flash:w:etp_fw_arduino_uno_v0.1.0.hex:i
    

NOTE : Replace COM4 with the port where the Arduino Uno is connected

ESP32

  • Download ETP firmware package for ESP32
  • Install esptool using pip
    pip install esptool
    
  • Run flash.bat (Windows) or flash.sh (Linux) to flash the ETP firmware to the ESP32

NOTE : ETP firmware for ESP32 is experimental !

Usage

Blink LED

import etplib
import time

etp = etplib.ETP(transport='serial', port='COM4', baudrate=115200)
etp.open()
etp.reset()

etp.gpio.init({"_13": "output"})

# Blink LED on pin 13 of the Arduino Uno
while True:
    etp.gpio_write({"_13": 1})
    time.sleep(1)
    etp.gpio_write({"_13": 0})
    time.sleep(1)

etp.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

etplib-0.2.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etplib-0.2.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file etplib-0.2.1.tar.gz.

File metadata

  • Download URL: etplib-0.2.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for etplib-0.2.1.tar.gz
Algorithm Hash digest
SHA256 478c53babf22e8632d94efb8753ef221096babd7fe6ee12c65e07d1e02135e03
MD5 8343f98174b9d4d96c3f8415b2c37c7f
BLAKE2b-256 e1dc1e402f588b987d0e999d2b967eea5113dafb3a1c1e52e1ded60451d6f84b

See more details on using hashes here.

File details

Details for the file etplib-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: etplib-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for etplib-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f070117f9ea8ef105cdbb5e6b3a7e0f24cf7c65ac35eac46fc46ae2c878fbc5d
MD5 bb202e524c8da3b0d6eb4a85526dfac6
BLAKE2b-256 3fe9b70373c4086b296a4b72eec083b71d040d4c38240e638845c72498340180

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page