{"id":15973,"date":"2017-02-03T14:09:13","date_gmt":"2017-02-03T20:09:13","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=15973"},"modified":"2017-04-26T11:52:59","modified_gmt":"2017-04-26T16:52:59","slug":"configure-modes","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mlinux\/configure-modes\/","title":{"rendered":"Configure Modes"},"content":{"rendered":"<p>Configuring Modes and Other Parameters for Wi-Fi and Bluetooth<\/p>\n<p>You can set power levels of Bluetooth and Wi-Fi, as well as modes of operation and country code. Use <strong>\/etc\/default\/rs9113<\/strong>\u00a0\u00a0to configure parameters at boot time. See below for parameters with their usage and input values.<\/p>\n<p>For several of the parameters, only one option is currently available. See below for details and refer to the example file at the bottom of the page.<\/p>\n<p><b>NOTE:<\/b> Do not insert spaces inside the commands especially around the equal sign. Otherwise, it may not work.<\/p>\n<p><span style=\"font-size: medium;\"><b>Default Parameters<\/b><\/span><\/p>\n<p>From <strong>\/etc\/default\/rs9113<\/strong>:<\/p>\n<pre class=\"brush:shell\"># Skip loading the RS9113 related drivers if\r\n# set to zero.\r\n#\r\nRS9113_LOAD=1<\/pre>\n<p>RS9113_LOAD=1 enables the RS 9113 driver. To disable it, set it to zero:<\/p>\n<pre class=\"brush:shell\">RS9113_LOAD=0<\/pre>\n<pre class=\"brush:shell\"># Parameters for rs9113 driver\r\n#\r\n# Enable Antenna Diversity (1)<\/pre>\n<p>The only option currently available for diversity is to disable it (set to 0):<span style=\"font-family: 'andale mono', times;\"><br \/>\n<\/span><\/p>\n<pre class=\"brush:shell\">RSI_ANTENNA_DIVERSITY=0<\/pre>\n<p><b><span style=\"font-size: medium;\">COEX Mode selection<\/span> \u00a0<\/b><\/p>\n<p>This variable selects the <strong>COEX_MODE<\/strong>\u00a0for module operation. NOTE: Only specific options and combinations of functions operate on the device. Not all combinations are possible. Please refer to the table and read details below. Those not specified in the table are not supported.<\/p>\n<pre class=\"brush:shell\"># COEX_MODE options:\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0 WLAN STATION \/WIFI-Direct\/WLAN PER\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0 WLAN ACCESS POINT (including multiple APs on different VAPs or Virtual Access Points)\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3\u00a0\u00a0\u00a0 WLAN ACCESS POINT + STATION MODE (on multiple VAPs)\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4\u00a0\u00a0\u00a0 BT CLASSIC MODE\/BT CLASSIC PERIPHERAL MODE\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 5\u00a0\u00a0\u00a0 WLAN STATION + BT CLASSIC MODE\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 6\u00a0\u00a0\u00a0 WLAN ACCESS POINT + BT CLASSIC MODE\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 8\u00a0\u00a0\u00a0 BT LE MODE \/BT LE PERIPHERAL MODE\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 9\u00a0\u00a0\u00a0 WLAN STATION + BT LE MODE\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12\u00a0\u00a0 BT CLASSIC + BT LE MODE\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 14\u00a0\u00a0 WLAN ACCESS POINT + BT CLASSIC MODE+ BT LE MODE<\/pre>\n<p>This example sets the mode to Bluetooth Classic (BT) mode:<\/p>\n<pre class=\"brush:shell\">COEX_MODE=5<\/pre>\n<p><span style=\"font-size: medium;\"><b>RF Power Mode parameter <\/b><\/span><\/p>\n<p>The RF Power Mode parameter sets the power mode at which the RF operates. It is applicable for each protocol. The default is <strong>0x00\u00a0&#8211; For Both TX and RX High Power<\/strong>. The following are the possible configurable values:<span style=\"font-family: 'andale mono', times;\"><br \/>\n<\/span><\/p>\n<pre class=\"brush:shell\"># Power selection\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x00 - For Both TX and RX High Power\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x11 - For Both TX and RX Medium Power\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x22 - For Both TX and RX LOW Power\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x10 - For High Power TX and Medium RX Power\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x20 - For High Power TX and LOW RX Power\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x01 - For Medium TX and RX High Power\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x21 - For Medium Power TX and LOW RX Power\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x02 - For Low Power TX and RX High Power\r\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x12 - For LOW Power TX and Medium RX Power<\/pre>\n<p>This example sets the WLAN both the TX and RX for High Power:<span style=\"font-family: 'andale mono', times;\"><br \/>\n<\/span><\/p>\n<pre class=\"brush:shell\">WLAN_RF_PWR_MODE=0x00<\/pre>\n<p>This example does the same for Bluetooth:<span style=\"font-family: 'andale mono', times;\"><br \/>\n<\/span><\/p>\n<pre class=\"brush:shell\">BT_RF_PWR_MODE=0x00\r\n# 0 - HIGH\u00a0 POWER MODE\r\n# 1 - MEDIUM POWER MODE\r\n# 2 - LOW POWER MODE<\/pre>\n<p>This example sets the BT on high power mode:<span style=\"font-family: 'andale mono', times;\"><br \/>\n<\/span><\/p>\n<pre class=\"brush:shell\">BT_RF_TX_POWER_MODE=0<\/pre>\n<p><span style=\"font-size: medium;\"><b style=\"font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px;\">Country selection<\/b><\/span><br \/>\nThis parameter sets the module in a specific country. This is set commonly across all protocols. The following country codes are applicable:<\/p>\n<pre class=\"brush:shell\"> # Country Selection\r\n# 0 World Domain\r\n# 840 US Domain Maps to US Region\r\n# 276 Germany Maps to EU Region\r\n# 392 Japan Maps to Japan Region\r\n# from ISO 3166-1<\/pre>\n<p>This example sets the country code to World Domain:<\/p>\n<pre class=\"brush:shell\">SET_COUNTRY_CODE=0<\/pre>\n<p><b>Antenna selection<\/b><\/p>\n<p>This variable selects the antenna used. Currently, only option 2 is available on the device.<\/p>\n<pre class=\"brush:shell\">2 \u2013 Select internal antenna\r\n3 \u2013 Select external antenna<\/pre>\n<p>So the internal antenna should be defined as follows:<\/p>\n<pre class=\"brush:shell\">ANT_SEL_VAL=2<\/pre>\n<p>For onboard antenna, only option 1 is available:<\/p>\n<pre class=\"brush:shell\">ONBOARD_ANT_SEL=1<\/pre>\n<p><span style=\"font-size: medium;\"><strong>Example file for \/etc\/default\/rs9113<\/strong><\/span><\/p>\n<pre class=\"brush:shell\"># Skip loading the RS9113 related drivers if\r\n# set to zero.\r\n#\r\nRS9113_LOAD=1\r\n\r\n# Parameters for rs9113 driver\r\n#\r\n# Enable Antenna Diversity (1)\r\nRSI_ANTENNA_DIVERSITY=0\r\n\r\n# COEX_MODE options:\r\n# 1 WLAN STATION \/WIFI-Direct\/WLAN PER\r\n# 2 WLAN ACCESS POINT(including muliple APs on different vaps)\r\n# 3 WLAN ACCESS POINT + STATION MODE(on multiple vaps)\r\n# 4 BT CLASSIC MODE\/BT CLASSIC PER MODE\r\n# 5 WLAN STATION + BT CLASSIC MODE\r\n# 6 WLAN ACCESS POINT + BT CLASSIC MODE\r\n# 8 BT LE MODE \/BT LE PER MODE\r\n# 9 WLAN STATION + BT LE MODE\r\n# 12 BT CLASSIC + BT LE MODE\r\n# 14 WLAN ACCESS POINT + BT CLASSIC MODE+ BT LE MODE\r\nCOEX_MODE=3\r\n\r\n# Power selection\r\n# 0x00 - For Both TX and RX High Power\r\n# 0x11 - For Both TX and RX Medium Power\r\n# 0x22 - For Both TX and RX LOW Power\r\n# 0x10 - For High Power TX and Medium RX Power\r\n# 0x20 - For High Power TX and LOW RX Power\r\n# 0x01 - For Medium TX and RX High Power\r\n# 0x21 - For Medium Power TX and LOW RX Power\r\n# 0x02 - For Low Power TX and RX High Power\r\n# 0x12 - For LOW Power TX and Medium RX Power\r\nWLAN_RF_PWR_MODE=0x00\r\nBT_RF_PWR_MODE=0x00\r\n\r\n#Power_mode type\r\n# 0 - HIGH POWER MODE\r\n# 1 - MEDIUM POWER MODE\r\n# 2 - LOW POWER MODE\r\nBT_RF_TX_POWER_MODE=0\r\nBT_RF_RX_POWER_MODE=0\r\n\r\n# Country Selection\r\n# 0 World Domain\r\n# 840 US Domain Maps to US Region\r\n# 276 Germany Maps to EU Region\r\n# 392 Japan Maps to Japan Region\r\n# from ISO 3166-1\r\nSET_COUNTRY_CODE=0\r\n\r\n# 2 \u2013 Select internal antenna\r\n# 3 \u2013 Select external antenna\r\nANT_SEL_VAL=2\r\n\r\nONBOARD_ANT_SEL=1\r\nSET_RETRY_COUNT=15\r\n\r\n# Time to hold high, then hold low on reset during driver load reset\r\nSLEEPTIME=100000\r\n\r\n# Time to wait while looping for interrupt and wake-up pins\r\n# to go high.\r\nINTSLEEPTIME=100000<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Configuring Modes and Other Parameters for Wi-Fi and Bluetooth You can set power levels of Bluetooth and Wi-Fi, as well as modes of operation and country code. Use \/etc\/default\/rs9113\u00a0\u00a0to configure parameters at boot time. See below for parameters with their usage and input values. For several of the parameters, only one option is currently available. [&hellip;]<\/p>\n","protected":false},"author":1478,"featured_media":0,"parent":7861,"menu_order":2,"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-15973","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/15973","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\/1478"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=15973"}],"version-history":[{"count":37,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/15973\/revisions"}],"predecessor-version":[{"id":16670,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/15973\/revisions\/16670"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/7861"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=15973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}