Serial over IPMB terminal for DESY MMCs
Project description
mmcterm
Terminal for the custom "serial over IPMB" protocol used by DMMC-STAMP.
Usage
$ mmcterm [-h] [-v] [-c CHANNEL] [-l] [-d] [-i] mch_addr mmc_addr
DESY MMC Serial over IPMB console
positional arguments:
mch_addr IP address or hostname of MCH
mmc_addr IPMB-L address of MMC
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-c CHANNEL, --channel CHANNEL
console channel
-l, --list list available channels
-d, --debug pyipmi debug mode
-i, --ipmitool make pyipmi use ipmitool instead of native rmcp
Channels
In the current DMMC-STAMP implementation, there is only channel 0 (MMC console) available. In future implementations, depending on the AMC board, additional serial channels can be addressed, for example UARTs of one or more payload FPGAs.
Example
Open a console on AMC board at IPMB address 0x7a connected to the MCH mskmchhvf1.tech.lab
:
mmcterm mskmchhvf1.tech.lab 0x7a
Protocol description
"Serial over IPMB" is a lightweight "serial data forwarding" protocol using custom IPMI messages.
Get channel info
NetFn 0x30, Command 0xf0
Request:
Byte | Contents |
---|---|
0 | Channel Number |
Response:
Byte | Contents |
---|---|
0..n | Channel Name |
Start/stop SOI session
NetFn 0x30, Command 0xf1
Request:
Byte | Contents |
---|---|
0 | Channel Number |
1 | 1 = start, 0 = stop |
2 | Max packet size (optional) |
Poll/exchange data
NetFn 0x30, Command 0xf2
Request:
Byte | Contents |
---|---|
0..n | Send data from terminal to MMC |
Response:
Byte | Contents |
---|---|
0..n | Receive data from MMC to terminal |
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
Built Distribution
File details
Details for the file mmcterm-0.1.0.tar.gz
.
File metadata
- Download URL: mmcterm-0.1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07da8bd360398dd4bddff2e37290de185f3671778ca2112e316e7fe62379e69d |
|
MD5 | 985c2f15de73a1580a37fc32671ac432 |
|
BLAKE2b-256 | f6fec860ae482d373ea765a735d6261405cab97964afa28a363cd0bc9e7808eb |
File details
Details for the file mmcterm-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mmcterm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a4d4d12a9818021db5614382f07db5ff99dfd5762fa7f368b2380d78f1d689 |
|
MD5 | 17745107f2c8a99c6abcf7e12ac5e319 |
|
BLAKE2b-256 | 1c61ab168e281a0bce67ea162d6a12bae3d0228c44d43b343d96e91d4fb1e42e |