{"id":91,"date":"2020-06-01T11:47:34","date_gmt":"2020-06-01T15:47:34","guid":{"rendered":"http:\/\/marcduino.com\/?page_id=91"},"modified":"2024-11-12T11:12:19","modified_gmt":"2024-11-12T15:12:19","slug":"installing-the-wifi-radio","status":"publish","type":"page","link":"https:\/\/marcduino.com\/?page_id=91","title":{"rendered":"Installing the WiFi Radio"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">Radio systems available for the MarcDuino<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The XBee S6B is the recommended WiFi radio for the MarcDuino, instructions follow below. This simple and efficient system uses the internal iPhone WiFi as the transmitter.<\/li>\n\n\n\n<li>The superior, but more complex dual XBee radio setup instructions can be found <a href=\"https:\/\/sites.google.com\/s\/142GngKUvKjHHmcwleZoGS2vUSYydr4xQ\/p\/1Z7yYagDe9gn4hr0ZZ1ewefGuR45mMdc_\/edit\">here<\/a>. This system uses a more powerful external XBee radio connected to the iPhone as the transmitter.<\/li>\n\n\n\n<li>The former (obsolete) WiFly radio installation \u00a0instructions can still be found <a href=\"https:\/\/sites.google.com\/s\/142GngKUvKjHHmcwleZoGS2vUSYydr4xQ\/p\/1VoV4S5uTaxfIQ9VCi7Wuaopt34bIlrOg\/edit\">here<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">Ordering the radio, breakout board, and programming board<\/h2>\n\n\n\n<p>The S6B WiFi radio is available from several places, we like to get ours from here:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.sparkfun.com\/products\/12571\">https:\/\/www.sparkfun.com\/products\/12571<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/xbee-300x300.jpg\" alt=\"\" class=\"wp-image-177\" srcset=\"https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/xbee-300x300.jpg 300w, https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/xbee-150x150.jpg 150w, https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/xbee-90x90.jpg 90w, https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/xbee.jpg 600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p>If you have a MarcDuino v1 or v1.5, you will need a breakout board to connect your XBee radio to the MarcDuino. You don&#8217;t need it on the MarcDuino v2, since it&#8217;s integrated on the board already.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.sparkfun.com\/products\/11373\">https:\/\/www.sparkfun.com\/products\/11373<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/XBee-breakout-300x300.jpg\" alt=\"\" class=\"wp-image-318\" srcset=\"https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/XBee-breakout-300x300.jpg 300w, https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/XBee-breakout-150x150.jpg 150w, https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/XBee-breakout-90x90.jpg 90w, https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/XBee-breakout.jpg 600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p>In all cases, you need a programming board called an XBee dongle. It is used only for programming the radio, and does not go into the R2 setup. It&#8217;s similar to the breakout board above, but this one as USB plug, so you can connect the radio to a computer for its initial programming:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.sparkfun.com\/products\/9819\">https:\/\/www.sparkfun.com\/products\/9819<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/XBee-dongle-300x300.jpg\" alt=\"\" class=\"wp-image-321\" srcset=\"https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/XBee-dongle-300x300.jpg 300w, https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/XBee-dongle-150x150.jpg 150w, https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/XBee-dongle-90x90.jpg 90w, https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/XBee-dongle.jpg 600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">Programming the radio<\/h2>\n\n\n\n<p>Download and fire up the XBee XCTU software available here:<\/p>\n\n\n\n<p><a href=\"https:\/\/hub.digi.com\/support\/products\/xctu\/\">https:\/\/hub.digi.com\/support\/products\/xctu\/<\/a><\/p>\n\n\n\n<p>Follow the programming procedure below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Read in the current config in the XCTU tool. Make 4 modifications:\n- Change Infrastructure Mode to SoftAP (default was STA)\n- Change SSID to whatever you like. (default was Blank)\n- Change IP Protocol to TCP (default was UDP)\n- Setup WPA2 password encryption.\nWrite the changes back to the S6B device. \n\nNext in the R2 Touch app under the wrench menu, make 2 changes:\n- change Receiver IP address to 192.168.1.10\n- change Receiver Port Number to 9750<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">Connecting to your WiFi radio from the iPhone<\/h2>\n\n\n\n<p>Plug the programmed S6B radio to the XBee breakout board connected to your MarcDuino (see <a href=\"https:\/\/sites.google.com\/s\/142GngKUvKjHHmcwleZoGS2vUSYydr4xQ\/p\/1pHMrimm7fCs9ENXjkb8uJ-19Iz-ODqfc\/edit\">here<\/a> for the MarcDuino v1 connections), and power the system up.<\/p>\n\n\n\n<p>&nbsp;On your iPhone go to Settings. In the Wifi section, you should see your R2 network, &nbsp;under the SSID name you gave it above. Connect to it by selecting it like below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"300\" src=\"https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/IMG_0008-200x300.png\" alt=\"\" class=\"wp-image-376\" srcset=\"https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/IMG_0008-200x300.png 200w, https:\/\/marcduino.com\/wp-content\/uploads\/2020\/06\/IMG_0008.png 320w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">Connecting from the R2 Touch app for the first time<\/h2>\n\n\n\n<p>Before the R2 app &nbsp;can connect for the first time, <strong>you have to change the settings within the app<\/strong> (that&#8217;s because the defaults are for the former WiFly radio and won&#8217;t work with the new S6B).<\/p>\n\n\n\n<p>Open the R2 Touch App, press the wrench menu, &nbsp;and make 2 following &nbsp;changes:<\/p>\n\n\n\n<p>&#8211; change Receiver IP address to 192.168.1.10<\/p>\n\n\n\n<p>&#8211; change Receiver Port Number to 9750&nbsp;<\/p>\n\n\n\n<p>Now go back to the main R2 Touch screen. If your radio is connected to a working MarcDuino, the WiFi indicator should turn green. You have connected successfully.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">Note: testing the radio connection without a functioning MarcDuino<\/h3>\n\n\n\n<p>It you have not yet connected your WiFi radio to a MarcDuino, or if the MarcDuino is not working properly, the indicator will not turn green because it does not receive an answer from the MarcDuino. However, it is still possible to check that the radio connection is working by using the XBee dongle and the XCTU app and check if something is received when you press a key on the R2 Touch app. You will just &nbsp;see a fleeting message with a couple letters, as the R2 App keeps sending blank lines every 1\/2 seconds, but that is enough to prove that the radio connection is OK.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">A few things to check if things don&#8217;t work<\/h2>\n\n\n\n<p>Check that<\/p>\n\n\n\n<p>1- your iPhone is connected to your S6B network (quit the app and go to the iPhone Wifi settings), and has not inadvertently reconnected to your home WiFi network.<\/p>\n\n\n\n<p>2- you are using the TCP connection method (in the R2 Touch wrench menu)<\/p>\n\n\n\n<p>3- you have entered the correct Receiver IP on R2 Touch (192.168.1.10, see above)<\/p>\n\n\n\n<p>4 -you have entered the correct Receiver port on R2 Touch (9750, see above)<\/p>\n\n\n\n<p>5- If you still do not have connectivity, try the following tests to sort our whether the fault is with the radio link or with the MarcDuino board. Connect your WiFi radio back to your computer using the USB dongle, and use the XCTU tool to see if it is receiving traffic from R2 Touch. The data received is going to be mostly garbage, because the receiver is not connected to the MarcDuino yet, and the indicator in R2 Touch is not going to turn green either. If you see any traffic, it&#8217;s enough to confirm that you WiFi connection is established properly, and that the fault probably resides with the MarcDuino board itself. See <a href=\"https:\/\/marcduino.com\/?page_id=93\" data-type=\"page\" data-id=\"93\">here<\/a> on how to test the MarcDuino board by itself without a radio attached. If that works too, then your problem is in the connection between the XBee breakout and the MarcDuino board.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Radio systems available for the MarcDuino Ordering the radio, breakout board, and programming board The S6B WiFi radio is available from several places, we like to get ours from here: &hellip; <a href=\"https:\/\/marcduino.com\/?page_id=91\" class=\"more-link\"><span>Continue reading<span class=\"screen-reader-text\">Installing the WiFi Radio<\/span><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-91","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/marcduino.com\/index.php?rest_route=\/wp\/v2\/pages\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marcduino.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marcduino.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marcduino.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marcduino.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=91"}],"version-history":[{"count":6,"href":"https:\/\/marcduino.com\/index.php?rest_route=\/wp\/v2\/pages\/91\/revisions"}],"predecessor-version":[{"id":649,"href":"https:\/\/marcduino.com\/index.php?rest_route=\/wp\/v2\/pages\/91\/revisions\/649"}],"wp:attachment":[{"href":"https:\/\/marcduino.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}