Socket-Based JSON
The common communication format for Popoto is JSON messages over sockets. Although there are many ways and APIs to communicate with Popoto, all of these methods and APIs reduce to creating or displaying a JSON message to or from a socket.
Popoto Modem socket interfaces are shown in the following figure:

Popoto API Sockets
I/O to the embedded Popoto software is accomplished using IP sockets. Even analog signal data supports socket I/O. This provides flexibility for interface design, testing, software portability, and software test.
These sockets can also interface through a thin layer of code to provide familiar standard interfaces used in the field, such as RS-422. Sockets are specified by the IP address of the Popoto Modem as set by the user.
In addition to the IP address, the following ports are used:
| Port | Interface | Notes |
|---|---|---|
17000 | Command port | Primary command socket |
17001 | Data port | Telnet |
17002 | PCM logging port | Not for typical use |
17003 | PCM output port | Not for typical use |
17004 | PCM input port | Not for typical use |