{"id":7909,"date":"2015-06-12T14:16:38","date_gmt":"2015-06-12T19:16:38","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=7909"},"modified":"2017-02-09T13:53:19","modified_gmt":"2017-02-09T19:53:19","slug":"mlinux-using-accessory-cards","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/mlinux-using-accessory-cards\/","title":{"rendered":"Using Accessory Cards with mLinux"},"content":{"rendered":"<p>Accessory card attributes are populated in a subdirectory based on the accessory port number and linked to based on card type.<\/p>\n<p>Use the provided <a href='https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/utilities\/io-control-using-mts-io\/' title='I\/O Control Using mts-io'>mts-io-sysfs utility<\/a> to interface with accessory cards.<\/p>\n<ul>\n<li>Show product-id of accessory card in port 1 (AP1):\n<pre class=\"brush:shell\">$ mts-io-sysfs show ap1\/product-id<\/pre>\n<\/li>\n<li>Show product-id of accessory card in port 2 (AP2):\n<pre class=\"brush:shell\">$ mts-io-sysfs show ap2\/product-id<\/pre>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Access card attributes by using the port name (ap1, ap2) or by the card type.<\/p>\n<ul>\n<li>If using two different cards, the accessory port subdirectories show the card type, as shown in the following example:\n<ul>\n<li><code>mfser \u2192 ap1<\/code><\/li>\n<li><code>gpiob \u2192 ap2<\/code><\/li>\n<\/ul>\n<\/li>\n<li>If using two cards of the same type, the accessory port subdirectories add a suffix of <code>-2<\/code> for the second card, as in the following example:\n<ul>\n<li><code>gpiob \u2192 ap1<\/code><\/li>\n<li><code>gpiob-2 \u2192 ap2<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Standard Attributes<\/h3>\n<div class=\"tablenoborder\">\n<table id=\"referenceID__table_lcf_1qj_br\" summary=\"\" border=\"1\" frame=\"border\" rules=\"all\" cellspacing=\"0\" cellpadding=\"4\">\n<thead align=\"left\">\n<tr>\n<th class=\"cellrowborder\" id=\"d3911e61\" valign=\"top\" width=\"16.07717041800643%\">Attribute<\/th>\n<th class=\"cellrowborder\" id=\"d3911e64\" valign=\"top\" width=\"22.668810289389064%\">Description<\/th>\n<th class=\"cellrowborder\" id=\"d3911e67\" valign=\"top\" width=\"61.2540192926045%\">Example command<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td class=\"cellrowborder\" headers=\"d3911e61 \" valign=\"top\" width=\"16.07717041800643%\">device-id<\/td>\n<td class=\"cellrowborder\" headers=\"d3911e64 \" valign=\"top\" width=\"22.668810289389064%\">Device ID<\/td>\n<td class=\"cellrowborder\" headers=\"d3911e67 \" valign=\"top\" width=\"61.2540192926045%\">\n<pre class=\"brush:shell\">$ mts-io-sysfs show ap1\/device-id<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td class=\"cellrowborder\" headers=\"d3911e61 \" valign=\"top\" width=\"16.07717041800643%\">hw-version<\/td>\n<td class=\"cellrowborder\" headers=\"d3911e64 \" valign=\"top\" width=\"22.668810289389064%\">Hardware version<\/td>\n<td class=\"cellrowborder\" headers=\"d3911e67 \" valign=\"top\" width=\"61.2540192926045%\">\n<pre class=\"brush:shell\">$ mts-io-sysfs show ap1\/hw-version<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td class=\"cellrowborder\" headers=\"d3911e61 \" valign=\"top\" width=\"16.07717041800643%\">product-id<\/td>\n<td class=\"cellrowborder\" headers=\"d3911e64 \" valign=\"top\" width=\"22.668810289389064%\">Product ID<\/td>\n<td class=\"cellrowborder\" headers=\"d3911e67 \" valign=\"top\" width=\"61.2540192926045%\">\n<pre class=\"brush:shell\">$ mts-io-sysfs show ap1\/product-id<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td class=\"cellrowborder\" headers=\"d3911e61 \" valign=\"top\" width=\"16.07717041800643%\">vendor-id<\/td>\n<td class=\"cellrowborder\" headers=\"d3911e64 \" valign=\"top\" width=\"22.668810289389064%\">Vendor ID<\/td>\n<td class=\"cellrowborder\" headers=\"d3911e67 \" valign=\"top\" width=\"61.2540192926045%\">\n<pre class=\"brush:shell\">$ mts-io-sysfs show ap2\/vendor-id<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<h3>Card Specific Information<\/h3>\n<p><!--%subpages%--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Accessory card attributes are populated in a subdirectory based on the accessory port number and linked to based on card type. Use the provided to interface with accessory cards. Show product-id of accessory card in port 1 (AP1): $ mts-io-sysfs show ap1\/product-id Show product-id of accessory card in port 2 (AP2): $ mts-io-sysfs show ap2\/product-id [&hellip;]<\/p>\n","protected":false},"author":537,"featured_media":0,"parent":9184,"menu_order":7,"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-7909","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/7909","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=7909"}],"version-history":[{"count":24,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/7909\/revisions"}],"predecessor-version":[{"id":8030,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/7909\/revisions\/8030"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9184"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=7909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}