{"id":528,"date":"2014-09-26T00:22:03","date_gmt":"2014-09-25T22:22:03","guid":{"rendered":"http:\/\/www.itluxembourg.lu\/site\/?page_id=528"},"modified":"2020-09-22T20:59:06","modified_gmt":"2020-09-22T18:59:06","slug":"using-ultimate-lrs-with-a-bluetooth-module","status":"publish","type":"page","link":"https:\/\/www.itluxembourg.lu\/site\/using-ultimate-lrs-with-a-bluetooth-module\/","title":{"rendered":"Using Ultimate LRS + OrangeRX with a Bluetooth module"},"content":{"rendered":"<h1>Introduction<\/h1>\n<p>Ultimate LRS provide a long range RC and fast telemetry link.<\/p>\n<p>You can\u00a0use :<\/p>\n<ul>\n<li>A laptop connected to the ULRS with an FTDI (USB) cable or via bluetooth<\/li>\n<li>An Android device running Tower app, connected via USB (USB OTG cable + FTDI cable) or via bluetooth.<\/li>\n<\/ul>\n<p>Bluetooth is a good solution because you&#8217;ll get rid of any cable to your RC TX. And every laptop, smartphone or tablet has a bluetooth module, so you can run Tower or Mission Planner on it, see your plane\/quad on the map, see the artificial horizon, change parameters, select waypoints etc.<\/p>\n<p>However bluetooth is\u00a0less reliable than a cable, and can disconnect from time to time.<\/p>\n<h1>Step by step instructions<\/h1>\n<p><strong>Also check instructions provided by rcgroups user aethertop <a href=\"https:\/\/www.rcgroups.com\/forums\/showthread.php?2792401-Configuring-HC-05-and-HC-06-bluetooth-adapters\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>, which are more detailed than below.<\/strong><\/p>\n<h2>Bluetooth module one-time configuration<\/h2>\n<p>ULRS will be connected via a small bluetooth module that can be found\u00a0for example on ebay. A bluetooth link is very similar to a serial link, that&#8217;s why the bluetooth module will be connected on the serial port of the ULRS module.<\/p>\n<h3>HC05 or HC06 modules<\/h3>\n<p>There are two main type of bluetooth modules.The module used here is a HC-05 bluetooth class 2 such as <a href=\"http:\/\/www.ebay.fr\/itm\/30ft-Wireless-Bluetooth-RF-Transceiver-Module-serial-RS232-TTL-HC-05-for-arduino-\/310540196588?\" target=\"_blank\" rel=\"noopener noreferrer\">this one<\/a>\u00a0(<a href=\"https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2014\/09\/CSR-BC417-datasheet.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">datasheet)<\/a>, but\u00a0many other bluetooth modules should work.<\/p>\n<p>Notice that the configuration or HC-06 modules is be slightly different but there are many tutorials on internet about this.<\/p>\n<p>The first thing to do is to tell the bluetooth module the baudrate to use. This is a one-time operation, that the module will save in eeprom and remember forever.<\/p>\n<h3>Voltage<\/h3>\n<p>Some modules are working at 3.3V, some are working at 5V, and some can select their voltage. It&#8217;s recommended to use a BT module that matches the voltage of your ULRS board.<\/p>\n<p>Else, consider using a voltage shifter such as this one.<\/p>\n<h3>Configuration<\/h3>\n<p>To configure the baudrate of the BT module, it must be put in a special mode that will\u00a0make him receptive to special commands that we&#8217;ll send on the serial port.<\/p>\n<p>This operation must only be done once per module, and will then be retained forever.<\/p>\n<h4>Enter configuration mode<\/h4>\n<p>This is done by connecting the &#8216;<strong>KEY<\/strong>&#8216; pin to <strong>VCC<\/strong> <span style=\"text-decoration: underline;\">before<\/span> powering up the module:<\/p>\n<p><a href=\"https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/bluetooth-programming.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1036\" src=\"https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/bluetooth-programming.png\" alt=\"bluetooth-programming\" width=\"1000\" height=\"259\" srcset=\"https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/bluetooth-programming.png 1000w, https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/bluetooth-programming-510x132.png 510w, https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/bluetooth-programming-300x78.png 300w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>The module is then in configuration mode, and its LED will flash slowly (every 2 seconds).<\/p>\n<h4>Configure settings<\/h4>\n<p>Then connect with a terminal (or Arduino environment) at <strong>38400\u00a0<\/strong>bauds, this is the default baudrate when the BT module is in configuration mode.<\/p>\n<p>3. Type &#8220;<strong>AT<\/strong>&#8221; without the quotes, the module should answer &#8220;<strong>OK<\/strong>&#8220;. (On my module it answers continuously &#8220;<strong>OK<\/strong>&#8221; until <strong>CTRL-C<\/strong> is pressed.)<\/p>\n<p>4. Type &#8220;<strong>AT+UART:57600,0,0<\/strong>&#8220;, the module should answer &#8220;<strong>OK<\/strong>&#8220;.<\/p>\n<p>Notice that some modules require to use &#8220;<strong>=<\/strong>&#8221; rather than &#8220;<strong>:<\/strong>&#8220;, which would give\u00a0&#8220;<strong>AT+UART=57600,0,0<\/strong>&#8220;.<\/p>\n<p>You&#8217;re done !<\/p>\n<h2>Connecting to &#8220;Tower&#8221;<\/h2>\n<p>Tower is a ground control software, equivalent to Mission Planner for Android devices.\u00a0Almost any ground control software will work, because ULRS will simply transfer transparently any serial data it receives from the flight controller, and the bluetooth module will do the same. It&#8217;s really similar to having connected a long cable between the flight controller (APM or similar) and the ground station software (Mission Planner or similar).<\/p>\n<p>On the next power up (without the &#8216;Key&#8217; wire) the BT module will run at\u00a0<strong>57600\u00a0<\/strong>bauds.<\/p>\n<ol>\n<li>Connect your BT module to your ULRS TX.Be careful that some BT modules have a different pinout, here is\u00a0the connection to ULRS\u00a0for the BT module referenced above :<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/ULRS-BT-photo1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1032\" src=\"https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/ULRS-BT-photo1.png\" alt=\"ULRS-BT-photo\" width=\"1000\" height=\"1689\" srcset=\"https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/ULRS-BT-photo1.png 1000w, https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/ULRS-BT-photo1-510x861.png 510w, https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/ULRS-BT-photo1-178x300.png 178w, https:\/\/www.itluxembourg.lu\/site\/wp-content\/uploads\/2015\/09\/ULRS-BT-photo1-606x1024.png 606w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>2. Install\u00a0Tower from Google Play (free software)<\/p>\n<p>3. Click on &#8216;Settings&#8217; (click on the icon with 3 horizontal lines on top left, and then you&#8217;ll see a menu with Settings on the bottom)<\/p>\n<p>4. Choose Connection type : bluetooth. Notice that no baudrate has to be configured in Tower when using a bluetooth connection.<\/p>\n<p>5. Click on Connect (main screen bottom left)<\/p>\n<p>That&#8217;s it !<\/p>\n<h1>Using ULRS CC with Bluetooth<\/h1>\n<p>The initial COM ports detection of ULRS CC freezes when BT is powered on on a PC. <a href=\"https:\/\/www.rcgroups.com\/forums\/showthread.php?2037442-Ultimate-LRS-Hassle-Free-Full-Mavlink-16-Channels-Fly-More\/page966#post41044569\">Here&#8217;s a workaround.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Ultimate LRS provide a long range RC and fast telemetry link. You can\u00a0use : A laptop connected to the ULRS with an FTDI (USB) cable or via bluetooth An<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":49,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-528","page","type-page","status-publish","hentry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.itluxembourg.lu\/site\/wp-json\/wp\/v2\/pages\/528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itluxembourg.lu\/site\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.itluxembourg.lu\/site\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.itluxembourg.lu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itluxembourg.lu\/site\/wp-json\/wp\/v2\/comments?post=528"}],"version-history":[{"count":30,"href":"https:\/\/www.itluxembourg.lu\/site\/wp-json\/wp\/v2\/pages\/528\/revisions"}],"predecessor-version":[{"id":3126,"href":"https:\/\/www.itluxembourg.lu\/site\/wp-json\/wp\/v2\/pages\/528\/revisions\/3126"}],"wp:attachment":[{"href":"https:\/\/www.itluxembourg.lu\/site\/wp-json\/wp\/v2\/media?parent=528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}