Skip to main content

Python implementation for Microchip/Atmel Data Gateway Interface

Project description

pydgi

Python implementation for Microchip/Atmel Data Gateway Interface

The Atmel Embedded Debugger (EDBG) offers a Data Gateway Interface (DGI) for streaming data to a host PC. This is meant as an aid in debugging and demonstration of features in the application running on the target device. DGI consists of multiple interfaces for data streaming. The supported interfaces are SPI Interface, USART Interface, TWI Interface, GPIO Interface.

The protocol is available on Xplained Pro boards and on the Atmel Power Debugger, that also provide current sensing channels for measuring power consumption.

The only tool that shows power data is Atmel Data Visualizer: while very powerful, it unfortunately requires Windows and integrates poorly with an automated setup.

My implementation of the DGI protocol is in pure Python, with the only external requirement of PyUSB; it should work on any platform.

The generic communication protocol is fully implemented; configuration and data parsing are still WIP.

Presently there is a single working interface - the power one: pydgi can stream current data from the XAM module available on Xplained Pro boards.

Usage

Create a virtualenv, install via pip and launch the provided console power measure reader:

virtualenv -p python3 env
. env/bin/activate
pip install pydgi
dgi_power_measure.py

Refer to plot.py for a matplotlib integration example.

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

pydgi-0.1.5.tar.gz (229.2 kB view details)

Uploaded Source

Built Distribution

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

pydgi-0.1.5-py3-none-any.whl (240.9 kB view details)

Uploaded Python 3

File details

Details for the file pydgi-0.1.5.tar.gz.

File metadata

  • Download URL: pydgi-0.1.5.tar.gz
  • Upload date:
  • Size: 229.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pydgi-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1a2186523f2bcbc41d32f3a3d0fede21b6e48cd4925388de2363e7b6bd235b0a
MD5 f8c2f9697b25d3894d2e1d5c371ec73a
BLAKE2b-256 bbec231a43e6590ee2704c47b2b2035ee88d081d95744d91a654d2a1a4754b0e

See more details on using hashes here.

File details

Details for the file pydgi-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pydgi-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 240.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pydgi-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c32ee4faffd50c02e6e8c966402cd56a068181ab9f78e48b254c6a290d86fda3
MD5 b34f21d2a9807d45f915c8829f582fbf
BLAKE2b-256 571c953792710a0913af4ecd30cfbca8b5fc9cb682247a67a1067b924c989f43

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