Skip to main content

No project description provided

Project description

Capture Module Configurator

You can think of this tool as ipconfig or ifconfig but for Capture Modules.

It allows to list, configure and flash connected devices from the command line.

Usage

Install using python package manager

pip install cmconfig

Depending on your Python installation

cmconfig --help

or

python3 -m cmconfig --help

Download Devices Configuration

This will download the configurations to the current directory

cmconfig pull

Upload Devices Configuration

This will look for all *.cfg files and upload them to their respective devices

cmconfig push

This will upload the file configuration_file.cfg to its device

cmconfig push configuration_file.cfg

Update Devices Firmware

This will look up all the CAN Combos connected in the system, and flash them with the provided firmware package

cmconfig flash CM_CAN_Combo_Evo_v020.007.030--revb51a51fb8.zip

List connected devices

cmconfig devices

Sample output

┌────────────────────┬──────────────┬───────────────────┬────────────┬────────────┬─────────┐
│ name               │ ip           │ mac               │ sw_version │ product_id │ config  │
├────────────────────┼──────────────┼───────────────────┼────────────┼────────────┼─────────┤
│ EES RJ45           │ 10.0.0.220   │ 38:2A:19:00:51:B2 │ 10.3       │ 2002       │ factory │
│ EES RJ45           │ 10.0.0.200   │ 38:2A:19:80:70:EF │ 14.202     │ 2002       │ factory │
│ CM 100 High TC10   │ 10.104.3.96  │ 38:2A:19:80:6F:8A │ 5.16       │ 1172       │ factory │
│ CM Serdes GMSL 2│3 │ 10.104.3.192 │ 38:2A:19:80:1D:AB │ 9.1        │ 1190       │ factory │
│ CM 10BASE-T1S      │ 10.104.3.112 │ 38:2A:19:80:57:7E │ 5.17       │ 1181       │ factory │
│ CM CAN Combo       │ 10.104.3.64  │ 38:2A:19:00:48:01 │ 21.7.110   │ 1171       │ Default │
│ CM 100 High        │ 10.104.3.97  │ 38:2A:19:00:1C:CC │ 21.5.90    │ 1173       │ Default │
│ CM 1000 High       │ 10.104.3.159 │ 38:2A:19:80:8A:46 │ 21.2.100   │ 1176       │ Default │
└────────────────────┴──────────────┴───────────────────┴────────────┴────────────┴─────────┘

List interfaces of connected devices

cmconfig interfaces

Sample output

┌────────┬──────┬─────────────────┬───────┬──────────┬────────┬──────────────┬──────────────┬──────────────┐
│ dev_id │ port │ name            │ label │   inf_id │ linkup │           rx │           tx │          err │
├────────┼──────┼─────────────────┼───────┼──────────┼────────┼──────────────┼──────────────┼──────────────┤
│ 64     │ HO   │ HOST            │       │          │ N      │   1208033313 │            0 │            0 │
│ 64     │ BT   │ 100BaseT1-A     │       │          │ N      │    473747792 │            0 │            0 │
│ 64     │ GA   │ GB-A            │       │          │ Y      │           64 │            0 │            0 │
│ 64     │ A    │ CAN-A           │       │          │        │            0 │            0 │            0 │
│ 64     │ B    │ CAN-B           │       │          │        │            0 │            0 │            0 │
│ 64     │ C    │ CAN-C           │       │          │        │            0 │            0 │            0 │
│ 64     │ D    │ CAN-D           │       │          │        │            0 │            0 │            0 │
│ 64     │ E    │ CAN-E           │       │          │        │            0 │            0 │            0 │
│ 64     │ F    │ CAN-F           │       │          │        │            0 │            0 │            0 │
│ 64     │ FR   │ FlexRay         │       │          │        │            0 │            0 │            0 │
│ 64     │ S2   │ RS 232-B        │       │          │        │            0 │            0 │            0 │
│ 64     │ S1   │ RS 232-A        │       │          │        │            0 │            0 │            0 │
└────────┴──────┴─────────────────┴───────┴──────────┴────────┴──────────────┴──────────────┴──────────────┘

Integration with other tools

Previous commands output is designed for human friendly visualization You can use the below command to get a JSON machine friendly output Note that the output of this command is subject to change in the future.

cmconfig topology

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cmconfig-1.7.4-py3-none-any.whl (34.6 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page