Skip to main content

Facilitating JSON Messages

The primary interface to the embedded Popoto algorithm is over sockets using JSON messages. To make interaction and automated development easiest for the user, Popoto provides APIs and a user shell called pshell. These APIs and shell form a thin layer that creates and interprets socket-based JSON messages.

For example, the popoto.py layer provides Python access and methods to create JSON messages. Importing this library gives a user full control over the Popoto Modem in the Python language.

JSON API interfacing to Python
JSON API interfacing to Python.

MATLAB API​

A MATLAB API has also been generated. The structure of how it interacts with Popoto is the same.

Popoto Modem MATLAB and JSON API
Popoto Modem MATLAB and JSON API.

Popoto pshell Interface​

A command shell called pshell has been written in Python, using the popoto.py API and the cmd command interpreter. This shell allows users to interact with the modem at a user level, typically through a serial connection. pshell is the default way for a user to interact with Popoto Modems.

Popoto pshell to popoto.py to JSON layer
Popoto pshell to popoto.py to JSON.