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.0.tar.gz (9.6 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.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for etplib-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0afad4da4e959697abd3afbb901fa2c2d9c1ea69762a1204f38256c5608b5d53
MD5 04098b758997af8009cc6e4b80eba9bb
BLAKE2b-256 a0b1b7446b7f89f6c22d610360a27c91db966ddff250171556915c83ae5fd84c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for etplib-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c35d865fa596b52a79374610d28e28667437ba1ba683186a41ef21c26a474d95
MD5 d66088b05abcef9bffbf6b8935d1f679
BLAKE2b-256 c16e0eea4926a60c965feebbe0d0bffcb6d775538938b4147fb17a7c4b22acc8

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