{"id":73,"date":"2019-02-28T20:39:16","date_gmt":"2019-02-28T20:39:16","guid":{"rendered":"https:\/\/oshablue.com\/bsides\/?p=73"},"modified":"2020-06-01T20:05:13","modified_gmt":"2020-06-01T20:05:13","slug":"if2c-example-data-acquisition-sequence","status":"publish","type":"post","link":"https:\/\/oshablue.com\/doc\/if2c-example-data-acquisition-sequence\/","title":{"rendered":"IF2C: Example Data Acquisition Sequence"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_68 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ea5bf91417d\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ea5bf91417d\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/oshablue.com\/doc\/if2c-example-data-acquisition-sequence\/#Example_use-case\" title=\"Example use-case:\">Example use-case:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/oshablue.com\/doc\/if2c-example-data-acquisition-sequence\/#Default_serial_options\" title=\"Default serial options\">Default serial options<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/oshablue.com\/doc\/if2c-example-data-acquisition-sequence\/#Connect_to_the_serial_port_and_set_up_the_IF2C\" title=\"Connect to the serial port and set up the IF2C:\">Connect to the serial port and set up the IF2C:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/oshablue.com\/doc\/if2c-example-data-acquisition-sequence\/#Disconnect_from_serial_port\" title=\"Disconnect from serial port\">Disconnect from serial port<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/oshablue.com\/doc\/if2c-example-data-acquisition-sequence\/#Use_Send_Settings_and_PAC_in_your_UT_Software\" title=\"Use Send Settings and PAC in your UT Software\">Use Send Settings and PAC in your UT Software<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/oshablue.com\/doc\/if2c-example-data-acquisition-sequence\/#Summary\" title=\"Summary\">Summary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/oshablue.com\/doc\/if2c-example-data-acquisition-sequence\/#Cross-ChannelBulk_WaveRMS_Acquisition_Example_Modification_Notes\" title=\"Cross-Channel\/Bulk Wave\/RMS Acquisition Example Modification Notes\">Cross-Channel\/Bulk Wave\/RMS Acquisition Example Modification Notes<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>For IF2C as of this writing (Feb 2019), demo of sending commands while you&#8217;re waiting for the UT software package to be updated, so you can play now.<\/p>\n\n\n\n<p>Tools used here: DL0102GXN, IF2C, XBee DM 2.4GHz radio on the HOST (not sleeping for these tests), another of the same radio model in a USB dongle at the PC, CoolTerm and UT Software in some legacy version.  This is on a Mac OS X.  You could use a USB-Serial cable (3.3V TTL) to connect too of course.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Assumptions: HOST and IF2C are <a href=\"https:\/\/oshablue.com\/bsides\/2019\/02\/28\/if2c-quick-start\/\">appropriately interconnected and basic communications<\/a> and power scheme are set up and functional.  You know how to set up your serial terminal software and connect and disconnect.  Comms to the HOST are working.  Including: UT software is set up to talk using the comms at hand.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example_use-case\"><\/span>Example use-case:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Same-channel case:<\/strong> Transmit (Tx) on Channel 1, Receive (Rx) on Channel 1, Rx Gain of 8<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Default_serial_options\"><\/span>Default serial options<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oshablue.com\/bsides\/wp-content\/uploads\/2019\/02\/image-1.png\" alt=\"\" class=\"wp-image-80\" width=\"505\" height=\"596\" srcset=\"https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-1.png 630w, https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-1-254x300.png 254w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><figcaption>Assuming default firmware baud rate is intact<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Connect_to_the_serial_port_and_set_up_the_IF2C\"><\/span>Connect to the serial port and set up the IF2C:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Use Connection =&gt; Send String&#8230; and select &#8220;Hex&#8221; mode.  Send each command (5-byte packet) one at a time.  &#8220;DB&#8221; means this is an IF2C command.  The commands for this example are in the table below.<\/p>\n\n\n\n<p>But first, NOTE: The default firmware on the GXN as shipped includes a <a href=\"https:\/\/oshablue.com\/bsides\/2019\/02\/28\/hdl0100-010x-dlite-family-sleep\/\">SLEEP command<\/a> with a 1-minute timeout from the last active comms until sleeping.  If your first command doesn&#8217;t get a reply from the HOST GXN, send a second command.  The first command woke it up, and the second will get processed correctly.  If the second command doesn&#8217;t return a reply, something else is going on.  There are ways to work gracefully and planfully with this in updated UT software.  <a href=\"https:\/\/oshablue.com\/bsides\/2019\/02\/28\/hdl0100-010x-dlite-family-sleep\/\">More about SLEEP is here.<\/a><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>1. Set all Tx channels to OFF<\/td><td>53 DB <strong>05<\/strong> 00 50<\/td><\/tr><tr><td>2. Set Tx channel 1 to ON = transmit<\/td><td>53 DB <strong>01 01<\/strong> 50<\/td><\/tr><tr><td>3. Set Rx channel to 1<\/td><td>53 DB <strong>10 01<\/strong> 50<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"634\" height=\"163\" src=\"https:\/\/oshablue.com\/bsides\/wp-content\/uploads\/2019\/02\/image-3.png\" alt=\"\" class=\"wp-image-82\" srcset=\"https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-3.png 634w, https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-3-300x77.png 300w\" sizes=\"auto, (max-width: 634px) 100vw, 634px\" \/><figcaption>Sending the first command<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"140\" src=\"https:\/\/oshablue.com\/bsides\/wp-content\/uploads\/2019\/02\/image-2.png\" alt=\"\" class=\"wp-image-81\" srcset=\"https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-2.png 631w, https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-2-300x67.png 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><figcaption>Look for the response &#8220;IF2C COMMAND OK&#8221;.  View in HEX mode is selected.<\/figcaption><\/figure><\/div>\n\n\n\n<p>All commands sent:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oshablue.com\/bsides\/wp-content\/uploads\/2019\/02\/image-4.png\" alt=\"\" class=\"wp-image-83\" width=\"445\" height=\"507\" srcset=\"https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-4.png 631w, https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-4-263x300.png 263w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Disconnect_from_serial_port\"><\/span>Disconnect from serial port<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>IMPORTANT: With channels set up, now DISCONNECT from the serial port in the terminal program so that the UT software can use it.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img loading=\"lazy\" decoding=\"async\" width=\"126\" height=\"86\" src=\"https:\/\/oshablue.com\/bsides\/wp-content\/uploads\/2019\/02\/image-5.png\" alt=\"\" class=\"wp-image-84\"\/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"59\" src=\"https:\/\/oshablue.com\/bsides\/wp-content\/uploads\/2019\/02\/image-6.png\" alt=\"\" class=\"wp-image-85\" srcset=\"https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-6.png 631w, https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-6-300x28.png 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><figcaption>Grayed out disconnect option means we are disconnected<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Use_Send_Settings_and_PAC_in_your_UT_Software\"><\/span>Use Send Settings and PAC in your UT Software<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When using the HOST\/IF2C pair, the Tx and Rx Chans <strong>are always different<\/strong>.  For the GXN, Ch 1 is the Tx channel, and Ch 2 is the Rx channel.  Enter the remaining settings as needed (Rx gain, delay). Tx gain has no meaning for a GXN, but does have meaning on a &#8220;G&#8221; or the DL0100A1<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"46\" src=\"https:\/\/oshablue.com\/bsides\/wp-content\/uploads\/2019\/02\/image-7.png\" alt=\"\" class=\"wp-image-86\" srcset=\"https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-7.png 649w, https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-7-300x21.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><figcaption>Set the channels correctly and the PAC settings too<\/figcaption><\/figure><\/div>\n\n\n\n<p>NOTE: The Rx channel and Tx channel in your UT software will probably always stay the same.  They are separate and different from the IF2C channel settings.<\/p>\n\n\n\n<p>Perhaps you will see something lovely:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"260\" src=\"https:\/\/oshablue.com\/bsides\/wp-content\/uploads\/2019\/02\/image-8.png\" alt=\"\" class=\"wp-image-90\" srcset=\"https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-8.png 737w, https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-8-300x106.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Serial program: Connect\/Open serial port and send commands to set up your channels for Tx\/Rx on the IF2C.<\/li><li>Serial program: Disconnect\/Close serial port.<\/li><li>UT Software: Set Rx Chan 2 and Tx Chan 1 and keep them that way, regardless of the IF2C channels.  Assuming that&#8217;s where you&#8217;ve connected your Tx\/Rx signals on the HOST board.<\/li><li>UT Software: Send Settings and PAC.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cross-ChannelBulk_WaveRMS_Acquisition_Example_Modification_Notes\"><\/span>Cross-Channel\/Bulk Wave\/RMS Acquisition Example Modification Notes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Use the same procedure as above.  Just modify the Rx channel command to listen on a different channel, presumably a channel on which you have your listening transducer connected!  Command sequence becomes:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>1. Set all Tx channels to OFF<\/td><td>53 DB <strong>05<\/strong> 00 50<\/td><\/tr><tr><td>2. Set Tx channel 1 to ON = transmit<\/td><td>53 DB <strong>01 01<\/strong> 50<\/td><\/tr><tr><td>3. Set Rx channel to 5<\/td><td>53 DB <strong>10 05<\/strong> 50<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"261\" src=\"https:\/\/oshablue.com\/bsides\/wp-content\/uploads\/2019\/02\/image-9.png\" alt=\"\" class=\"wp-image-104\" srcset=\"https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-9.png 738w, https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-9-300x106.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><figcaption>Rx gain at 8, Rx delay 10.  GXN\/IF2C. Tx:1, Rx:5. 2 composite XDs mounted 2&#8243; from each other on the same face, about 1.5&#8243; from the plate edges on two side. 0.5&#8243; steel.  You can see some cross talk artifacts early, but then on the right half of the waveform you start to see the echoes propagating into the receiving XD&#8217;s domain.  Regarding crosstalk: this is MUCH (-40dB) less than on the previous DLITE Family boards (whose primary design use case corresponded to its performance).  Here you can actually see the propagating echoes this early in the waveform.  They continue to increase in amplitude.  Using the GXN board alone generated much better signal quality for this application (gain and signal to noise).  The pair together (GXN\/IF2C) here shows improved functionality in some regards as compared with previous gen boards, though as well, an early prototype stage of development.<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"257\" src=\"https:\/\/oshablue.com\/bsides\/wp-content\/uploads\/2019\/02\/image-10.png\" alt=\"\" class=\"wp-image-107\" srcset=\"https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-10.png 736w, https:\/\/oshablue.com\/doc\/wp-content\/uploads\/2019\/02\/image-10-300x105.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><figcaption>Rx gain 15, Rx delay 40.  The rest is the same as above.  The sharp peaks are spaced 0.5&#8243; in time-converted-to-space.<\/figcaption><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>For IF2C as of this writing (Feb 2019), demo of sending commands while you&#8217;re waiting for the UT software package to be updated, so you can play now. Tools used here: DL0102GXN, IF2C, XBee DM 2.4GHz radio on the HOST (not sleeping for these tests), another of the same radio model in a USB dongle &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/oshablue.com\/doc\/if2c-example-data-acquisition-sequence\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;IF2C: Example Data Acquisition Sequence&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18,15,16,17,13,14,12],"tags":[],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-hdlite-accessories","category-hdlite-family","category-hdl-0108-if2c-r01-a1","category-if2c","category-ndt","category-new-prototypes","category-ultrasonics","entry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/oshablue.com\/doc\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oshablue.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oshablue.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oshablue.com\/doc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oshablue.com\/doc\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":5,"href":"https:\/\/oshablue.com\/doc\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":497,"href":"https:\/\/oshablue.com\/doc\/wp-json\/wp\/v2\/posts\/73\/revisions\/497"}],"wp:attachment":[{"href":"https:\/\/oshablue.com\/doc\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oshablue.com\/doc\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oshablue.com\/doc\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}