Skip to main content

Python implementation for Microchip/Atmel Data Gateway Interface

Project description


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.


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

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

Refer to 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.

Files for pydgi, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size pydgi-0.1.4.tar.gz (229.1 kB) File type Source Python version None Upload date Hashes View
Filename, size pydgi-0.1.4-py3-none-any.whl (240.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page