{"id":8127,"date":"2015-06-23T12:35:18","date_gmt":"2015-06-23T17:35:18","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=8127"},"modified":"2019-09-04T22:12:00","modified_gmt":"2019-09-05T03:12:00","slug":"io-control-using-mts-io","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/utilities\/io-control-using-mts-io\/","title":{"rendered":"I\/O Control Using mts-io"},"content":{"rendered":"<p>The <code>mts_io<\/code> package provides a sysfs interface to the Conduit<sup>\u00ae<\/sup>&#8216;s various I\/O and for the ID info stored in the on-board EEPROM. Sysfs attributes are exported at <code>\/sys\/devices\/platform\/mts-io<\/code> on the device. A shell script <code>mts-io-sysfs<\/code> is provided as a simple wrapper to the sysfs attributes.<\/p>\n<p>To list all available attributes, run <code>mts-io-sysfs<\/code> 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 <code>ls<\/code> in the <code>\/sys\/devices\/platform\/mts-io<\/code> directory.<\/p>\n<h4>Examples:<\/h4>\n<pre class=\"brush:shell\">$ mts-io-sysfs\r\nUsage: mts-io-sysfs [ OPTIONS ] OBJECT [--] [ ARGUMENTS ]\r\nwhere  OBJECT := {\r\n         show SHOW-NAME |\r\n         store STORE-NAME |\r\n       }\r\n\r\n       SHOW-NAME := {\r\n         device-id\r\n         hw-version\r\n         imei\r\n         led-a\r\n         led-b\r\n         led-c\r\n         led-cd\r\n         led-d\r\n         ...<\/pre>\n<p>&nbsp;<\/p>\n<p>Show the device id (generally the serial number in EEPROM).<\/p>\n<pre class=\"brush:shell\">$ mts-io-sysfs show device-id\r\n18062251<\/pre>\n<p>&nbsp;<\/p>\n<p>Show the product id (generally the model number).<\/p>\n<pre class=\"brush:shell\">$ mts-io-sysfs show product-id\r\nMTCDT-H5-210L<\/pre>\n<p>&nbsp;<\/p>\n<p>Reset the cellular radio<\/p>\n<pre class=\"brush:shell\">$ mts-io-sysfs store radio-reset 0<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The mts_io package provides a sysfs interface to the Conduit\u00ae&#8216;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. [&hellip;]<\/p>\n","protected":false},"author":537,"featured_media":0,"parent":7905,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-8127","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/537"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=8127"}],"version-history":[{"count":8,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8127\/revisions"}],"predecessor-version":[{"id":8350,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8127\/revisions\/8350"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/7905"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=8127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}