<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Bluetooth serial port question</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-serial-port-question/m-p/780579#M121293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I got it working.&lt;/P&gt;&lt;P&gt;I connect to my console for the iMX6. For me that is COM6 on the PC. I use Tera Term.&lt;/P&gt;&lt;P&gt;After logging in as root,&amp;nbsp;I ran a script: script contents =&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;EM&gt;hciconfig hci0&amp;nbsp;down&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;EM&gt;systemctl start bluetooth.service&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;EM&gt;sleep 1&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;EM&gt;hciconfig hci0 class 0x110100&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;EM&gt;hciconfig hci0 name javelin-bt&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;hciconfig hci0 up&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool del 0x10000&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool del 0x10001&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool del 0x10002&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool del 0x10003&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool del 0x10004&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool add --channel=1 SP&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;hciconfig hci0 piscan&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Here is the explanation:&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 1: I don't think you need to take it down, but just in case you are running a connection, I took hci0 down.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 2: start bluetooth service&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 3: It seems to take a little time to get the service up.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 4: set the class type to include serial port. Note this seems to put in other non-serial port things too.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 5: set the name so I can recognize the device on the PC&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 6: bring it back up now that the details are set.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Lines 7-11: remove any old services, including the non-serial port ones. Previously I had seen duplicates after next line.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 12: add the serial port service.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 13: make the box discoverable.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Next: "listen" (but not with the listen command) on rfcomm. This makes the /dev/rfcomm0 device show up in /dev.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;DIV style="font-size: small;"&gt;&lt;SPAN style="color: #242729; background-color: #eff0f1; font-weight: inherit;"&gt;rfcomm watch /dev/rfcomm0 &amp;lt;chan&amp;gt; screen /dev/rfcomm0 115200&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt;&lt;SPAN style="color: #242729; background-color: #eff0f1; font-weight: inherit;"&gt;On the PC: add the device. View properties and use the identified com port to connect: I use Tera Term and just open with my default settings of 115200 8N1.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Screen starts running in the COM6 Tera Term. Connection is running on COM8 also. However, in order to see what I was typing, I changed the Terminal settings in both to echo. I also adjusted the line ending types: Auto and CR/LF. All combined, I can type on one terminal and have it appear in the other. It is bidirectional.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;I hope I've included enough details to make someone else's job less frustrating.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2018 21:33:06 GMT</pubDate>
    <dc:creator>patsandt</dc:creator>
    <dc:date>2018-02-07T21:33:06Z</dc:date>
    <item>
      <title>Bluetooth serial port question</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-serial-port-question/m-p/780576#M121290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to figure out how to get a bluetooth serial port connection from my iMX6 target (uname -a = 4.1.18-i.MX6-PD15.3.1 #1 SMP Wed Mar 1 13:14:14 MST 2017 armv71 GNU/Linux)&lt;/P&gt;&lt;P&gt;I have a WiLink8 module, but I'm using a USB bluetooth dongle from Plugable.&lt;/P&gt;&lt;P&gt;The device seems to come up okay and my Windows computer sees it and reports its services correctly.&lt;/P&gt;&lt;P&gt;I have successfully had the embedded device report that Serial Port is a service and windows reports that it is COM8.&lt;/P&gt;&lt;P&gt;I type "rfcomm listen xx:xx:xx:xx:xx:xx" on the iMX6 and then use TeraTerm to open a terminal to COM8.&lt;/P&gt;&lt;P&gt;iMX6 reports a connection is created on /dev/rfcomm0.&lt;/P&gt;&lt;P&gt;I can type on the iMX6 console, apparently to the PC. I can type in TeraTerm, apparently to the iMX6. However, I can not see the iMX6 typing on the PC and cannot see the PC typing on the iMX6. Note that I'm not seeing "garbage" on either side. However, to be safe, I set the TeraTerm baud rate to 9600, which is the default baud rate for bluetooth spp (I think).&lt;/P&gt;&lt;P&gt;Any suggestions as to how I can get to the point where I can have text show up on both sides?&lt;/P&gt;&lt;P&gt;This is just in preparation for sending text back and forth under program control.&lt;/P&gt;&lt;P&gt;Thanks for any hints.&amp;nbsp; serial console bluetooth ‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 16:06:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-serial-port-question/m-p/780576#M121290</guid>
      <dc:creator>patsandt</dc:creator>
      <dc:date>2018-02-02T16:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Bluetooth serial port question</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-serial-port-question/m-p/780577#M121291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First please check baudrate and other options with "stty -F /dev/rfcomm0" command. &lt;BR /&gt;And set right options if necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 05:27:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-serial-port-question/m-p/780577#M121291</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2018-02-05T05:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bluetooth serial port question</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-serial-port-question/m-p/780578#M121292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. /dev/rfcomm0 reports its baudrate as 9600. My console (where listen is running) is 115200. Not sure that matters, but just thought I'd mention it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 14:45:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-serial-port-question/m-p/780578#M121292</guid>
      <dc:creator>patsandt</dc:creator>
      <dc:date>2018-02-05T14:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bluetooth serial port question</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-serial-port-question/m-p/780579#M121293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I got it working.&lt;/P&gt;&lt;P&gt;I connect to my console for the iMX6. For me that is COM6 on the PC. I use Tera Term.&lt;/P&gt;&lt;P&gt;After logging in as root,&amp;nbsp;I ran a script: script contents =&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;EM&gt;hciconfig hci0&amp;nbsp;down&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;EM&gt;systemctl start bluetooth.service&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;EM&gt;sleep 1&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;EM&gt;hciconfig hci0 class 0x110100&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;EM&gt;hciconfig hci0 name javelin-bt&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;hciconfig hci0 up&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool del 0x10000&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool del 0x10001&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool del 0x10002&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool del 0x10003&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool del 0x10004&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;sdptool add --channel=1 SP&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="font-size: small;"&gt;&lt;EM&gt;hciconfig hci0 piscan&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Here is the explanation:&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 1: I don't think you need to take it down, but just in case you are running a connection, I took hci0 down.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 2: start bluetooth service&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 3: It seems to take a little time to get the service up.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 4: set the class type to include serial port. Note this seems to put in other non-serial port things too.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 5: set the name so I can recognize the device on the PC&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 6: bring it back up now that the details are set.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Lines 7-11: remove any old services, including the non-serial port ones. Previously I had seen duplicates after next line.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 12: add the serial port service.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Line 13: make the box discoverable.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Next: "listen" (but not with the listen command) on rfcomm. This makes the /dev/rfcomm0 device show up in /dev.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;DIV style="font-size: small;"&gt;&lt;SPAN style="color: #242729; background-color: #eff0f1; font-weight: inherit;"&gt;rfcomm watch /dev/rfcomm0 &amp;lt;chan&amp;gt; screen /dev/rfcomm0 115200&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt;&lt;SPAN style="color: #242729; background-color: #eff0f1; font-weight: inherit;"&gt;On the PC: add the device. View properties and use the identified com port to connect: I use Tera Term and just open with my default settings of 115200 8N1.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Screen starts running in the COM6 Tera Term. Connection is running on COM8 also. However, in order to see what I was typing, I changed the Terminal settings in both to echo. I also adjusted the line ending types: Auto and CR/LF. All combined, I can type on one terminal and have it appear in the other. It is bidirectional.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;I hope I've included enough details to make someone else's job less frustrating.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: small;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 21:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-serial-port-question/m-p/780579#M121293</guid>
      <dc:creator>patsandt</dc:creator>
      <dc:date>2018-02-07T21:33:06Z</dc:date>
    </item>
  </channel>
</rss>

