I/O Control Using mts-io

The mts_io package provides a sysfs interface to the Conduit’s various I/O and for the ID info stored in the on-board EEPROM. Sysfs attributes are exported at /sys/devices/platform/mts-io on the device. A shell script mts-io-sysfs is provided as a simple wrapper to the sysfs attributes.

To list all available attributes, run mts-io-sysfs with no options. Readable attributes appear in the SHOW-NAME section, writable attributes appear in the STORE-NAME section. Attributes may also be listed by running ls in the /sys/devices/platform/mts-io directory.

Examples:

$ mts-io-sysfs
Usage: mts-io-sysfs [ OPTIONS ] OBJECT [--] [ ARGUMENTS ]
where  OBJECT := {
         show SHOW-NAME |
         store STORE-NAME |
       }

       SHOW-NAME := {
         device-id
         hw-version
         imei
         led-a
         led-b
         led-c
         led-cd
         led-d
         ...

 

Show the device id (generally the serial number in EEPROM).

$ mts-io-sysfs show device-id
18062251

 

Show the product id (generally the model number).

$ mts-io-sysfs show product-id
MTCDT-H5-210L

 

Reset the cellular radio

$ mts-io-sysfs store radio-reset 0