{"id":5552,"date":"2014-02-14T12:17:21","date_gmt":"2014-02-14T18:17:21","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=5552"},"modified":"2014-02-14T12:20:13","modified_gmt":"2014-02-14T18:20:13","slug":"setting-up-an-external-usb-to-mtpcie-bluetooth-serial-interface","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/products\/multiconnect-ocg\/multiconnect-ocg-e\/mt100eocg-with-pciedk\/setting-up-an-external-usb-to-mtpcie-bluetooth-serial-interface\/","title":{"rendered":"Setting up an External USB to MTPCIE Bluetooth Serial Interface"},"content":{"rendered":"<p>To set up an external USB to the serial Bluetooth interface on the MTPCIE-DK1 developer board when a MTPCIE<br \/>\nradio is installed:<\/p>\n<p><strong>Note: <\/strong>The external USB connection terminates to a quad UART on the MTPCIE-DK1 board with one UART channel connected to the Bluetooth device.<\/p>\n<ol>\n<li>On the MTPCIE-DK1 developer board, position jumpers next to Bluetooth DB9 connector J14 to the 2,3\n<p>Word count: 510   Last edited by kgroening on February 14, 2014 at 12:17 pm  <\/p>\n<p>position.<\/li>\n<li>Position jumpers next to USB Serial connector J24 to the 1,2 position.<\/li>\n<li>Position jumpers next to USB 3G connector J4 to the 1,2 position.<\/li>\n<li>Power up the MTPCIE-DK1 developer board with the MTPCIE Bluetooth\/Wi-Fi capable radio installed.<\/li>\n<li>Connect computer USB port to the USB Serial J24 USB connector on DK1 board.<\/li>\n<li>Use commands such as dmesg, lsusb -v, etc to find the ports Linux assigned to the quad uart on DK1.Record the port designation assigned to the second port. For example:<\/li>\n<pre class=\"brush:xml\">\r\n[ 126.376017] usb 7-1: new full speed USB device using uhci_hcd and address 3\r\n[ 126.532263] usb 7-1: configuration #1 chosen from 1 choice\r\n[ 126.582980] cdc_acm 7-1:1.0: This device cannot do calls on its own. It is not a modem.\r\n[ 126.583024] cdc_acm 7-1:1.0: ttyACM0: USB ACM device\r\n[ 126.590282] cdc_acm 7-1:1.2: This device cannot do calls on its own. It is not a modem.\r\n[ 126.590322] cdc_acm 7-1:1.2: ttyACM1: USB ACM device\r\n[ 126.592170] cdc_acm 7-1:1.4: This device cannot do calls on its own. It is not a modem.\r\n[ 126.592215] cdc_acm 7-1:1.4: ttyACM2: USB ACM device\r\n[ 126.595064] cdc_acm 7-1:1.6: This device cannot do calls on its own. It is not a modem.\r\n[ 126.595115] cdc_acm 7-1:1.6: ttyACM3: USB ACM device\r\n\r\n<\/pre>\n<li>Copy the file TIInit_7.6.15.bts to the \/lib\/firmware folder of the computer.<\/li>\n<li>Install jumper JP86(labeled \u201cBT_EN\u201d), then remove it again to toggle the Bluetooth Enable signal for the MTPCIE.<\/li>\n<li>Enter the following string, substituting the computer&#8217;s tty port that corresponds to uart port B on MTPCIE-DK1:<\/li>\n<pre class=\"brush:xml\">\r\nhciattach -s 115200 \/dev\/ttyACM1 texas 3000000\r\n<\/pre>\n<li>On the Linux computer, enter:\n<\/li>\n<pre class=\"brush:xml\">\r\nhciconfig -a name\r\nExample Response\r\nptg@ptg-desktop:~$ hciconfig -a name\r\nhci0: Type: UART\r\nBD Address: 1C:E2:CC:04:5C:C2 ACL MTU: 1021:4 SCO MTU: 180:4\r\nUP RUNNING PSCAN\r\nRX bytes:1013 acl:0 sco:0 events:30 errors:0\r\nTX bytes:883 acl:0 sco:0 commands:30 errors:0\r\nFeatures: 0xff 0xfe 0x2d 0xfe 0xdb 0xff 0x7b 0x87\r\nPacket type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3\r\nLink policy: RSWITCH HOLD SNIFF PARK\r\nLink mode: SLAVE ACCEPT\r\nName: ''\r\nClass: 0x4a0104\r\nService Classes: Networking, Capturing, Telephony\r\nDevice Class: Computer, Desktop workstation\r\nHCI Ver: (0x6) HCI Rev: 0x0 LMP Ver: (0x6) LMP Subver: 0x1f29\r\nManufacturer: Texas Instruments Inc. (13)\r\n<\/pre>\n<li>Verify the remote serial Bluetooth device is configured to wait for a connection.<\/li>\n<li>Verify the remote Bluetooth device&#8217;s MAC address is in the list of detected Bluetooth devices. Enter:<\/li>\n<pre class=\"brush:xml\">\r\nhcitool scan\r\nExample Response\r\nptg@ptg-desktop:~$ hcitool scan\r\nScanning ...\r\nCC:55:AD:2B:53:FA BB 9330\r\n00:18:E7:36:CF:91 DTMVW7JREI01\r\n00:A0:96:0F:B8:2A SocketWireless\r\n<\/pre>\n<li>Enter the following, where xx represents MAC address of the remote Bluetooth device you set up<br \/>\npreviously:<\/li>\n<pre class=\"brush:xml\">\r\nrfcomm -S connect 0 xx:xx:xx:xx:xx:xx\r\nTo run rfcomm in the background add \"&\" to the end of the string as follows:\r\nrfcomm -D connect 0 00:A0:96:0F:B8:2A &\r\n<\/pre>\n<li>Open another Linux terminal session and run a terminal program such as minicom at 3000000 bps attached to \/dev\/rfcomm0 port. Use minicom to communicate with your remote device.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>To set up an external USB to the serial Bluetooth interface on the MTPCIE-DK1 developer board when a MTPCIE radio is installed: Note: The external USB connection terminates to a quad UART on the MTPCIE-DK1 board with one UART channel connected to the Bluetooth device. On the MTPCIE-DK1 developer board, position jumpers next to Bluetooth [&hellip;]<\/p>\n","protected":false},"author":537,"featured_media":0,"parent":5489,"menu_order":0,"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-5552","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/5552","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=5552"}],"version-history":[{"count":8,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/5552\/revisions"}],"predecessor-version":[{"id":5656,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/5552\/revisions\/5656"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/5489"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=5552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}