Skip to main content

Remote hub memory tool for the Propeller microcontroller.

Project description

PeekPoke

Status: experimental

PeekPoke is a tool for reading and writing a Propeller's hub memory from a PC. It consists of two parts: a Python module for sending commands from the PC, and a Propeller program for responding to commands.

The Python module has methods to read and write hub memory as bytes, strings, integers, and lists of integers.

The Propeller program can be configured to restrict reads and writes to specific ranges, or to disable writes altogether.

PeekPoke has these additional features:

  • the PAR register may be used to pass a value to the PC,
  • the PC can set the baudrate remotely,
  • the PC can reset the baudrate with a break condition,
  • the Propeller can support baudrates as fast as 26 clocks per bit period,
  • there is a four-byte identifier constant that can read by the PC,
  • a four-byte token variable is 0 on launch and can be set by the PC,
  • the PC can send PASM code to be executed (disabled by default),
  • the Propeller program is completely cog-contained after launch.

Installation

PeekPoke requires Python 3. It can be installed with the command pip install peekpoke, or the package may be downloaded from https://pypi.org/project/peekpoke/. PeekPoke also requires the https://pypi.org/project/crow-serial/ and https://pypi.org/project/pyserial/ packages (pip automatically handles these dependencies).

To run PeekPoke on the Propeller include PeekPoke.spin in your project, and use the Spin methods to set up and launch a PeekPoke instance. The latest version of PeekPoke.spin can be found at https://github.com/chris-siedell/PeekPoke.

Documentation

Python: https://github.com/chris-siedell/PeekPoke/wiki/PeekPoke-Python-Documentation

Spin: https://github.com/chris-siedell/PeekPoke/wiki/PeekPoke-Spin-Documentation

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

peekpoke-0.6.3.tar.gz (8.9 kB view details)

Uploaded Source

File details

Details for the file peekpoke-0.6.3.tar.gz.

File metadata

  • Download URL: peekpoke-0.6.3.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for peekpoke-0.6.3.tar.gz
Algorithm Hash digest
SHA256 92c868d28e887d87c2bb55ae9fe2b52457cad9e24bf6f9b0916d8cf4839cbf4a
MD5 b9fa02aae47ba1f6709d059c61a64be1
BLAKE2b-256 2594ab31c3d8118f6f0169cb6a3ed1b60f5a2cd9791e43cdebfd234c63508c7b

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