<div dir="ltr">ping localhost works fine regardless of the Ethernet status.<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 9, 2014 at 3:27 PM, Marcus D. Leech <span dir="ltr"><<a href="mailto:mleech@ripnet.com" target="_blank">mleech@ripnet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span>
    <div>On 09/09/2014 03:20 PM, Peter Witkowski
      via USRP-users wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>I receive a runtime error with a network cable
            disconnected.  For some reason, the driver fails to have the
            ability to pass packets on the loopback interface with an
            Ethernet cable disconnected.<br>
            <br>
          </div>
          Here's exactly what's going on:<br>
          <br>
          user@new-tower:~$ uhd_usrp_probe --args "resource=RIO0"<br>
          linux; GNU C++ version 4.8.2; Boost_105400;
          UHD_003.007.002-82-g9d4167d9<br>
          <br>
          Error: RuntimeError: x300_find_pcie: Error enumerating NI-RIO
          devices. A connection could not be established to the
          specified remote device manager. Ensure that the devices are
          on, that NI-USRPRIO software is installed, and that the
          USRPRIO server is running and properly configured. (Error code
          -63040)<br>
          <br>
        </div>
        With a network cable connected (doesn't matter if it's an
        internal network or external or even if my host machine is the
        sole machine plugged into a switch) it works just fine.<br>
        <div><br>
        </div>
        <div class="gmail_extra"><br>
        </div>
      </div>
    </blockquote></span>
    I'm wondering if this has something to do with resolving hostnames,
    including 'localhost'.  If your computer is disconnected, and your
    DNS<br>
      configuration requires everything to get resolved by your DNS
    server, perhaps what's going on is that the code fails when it tries
    to connect<br>
      to "localhost:<rio-port-number>".<br>
    <br>
    With your network cable disconnected, what happens if you try:<br>
    <br>
    ping localhost<div><div class="h5"><br>
    <br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Tue, Sep 9, 2014 at 1:18 PM,
            Marcus D. Leech via USRP-users <span dir="ltr"><<a href="mailto:usrp-users@lists.ettus.com" target="_blank">usrp-users@lists.ettus.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
              <div bgcolor="#ffffff" text="#000000">
                <div>
                  <div> On 09/09/2014 12:41 PM, Peter
                    Witkowski via USRP-users wrote: </div>
                </div>
                <blockquote type="cite">
                  <div>
                    <div>
                      <div dir="ltr">
                        <div><font face="arial,helvetica,sans-serif">Hello,</font></div>
                        <div> </div>
                        <div><font face="arial,helvetica,sans-serif">I
                            recently contacted Ettus support regarding
                            this issue, but I was wondering if perhaps
                            the e-mail list could help me out sooner or
                            even confirm the issues that I am having.</font></div>
                        <div> </div>
                        <div><font color="#000000" face="arial,helvetica,sans-serif"> </font>
                          <p class="MsoNormal" style="margin:0in 0in 0pt"><font color="#000000"><font face="arial,helvetica,sans-serif">I
                                currently have an X300 that is having
                                some issues being connected over PCIe.</font></font></p>
                          <font color="#000000" face="arial,helvetica,sans-serif"> </font>
                          <p class="MsoNormal" style="margin:0in 0in 0pt"><font color="#000000" face="arial,helvetica,sans-serif"> </font></p>
                          <font color="#000000" face="arial,helvetica,sans-serif"> </font>
                          <p class="MsoNormal" style="margin:0in 0in 0pt"><font color="#000000"><font face="arial,helvetica,sans-serif">First,
                                I have an issue where the driver seems
                                to hang in instances where an overflow
                                is encountered.  That is, if I run
                                uhd_rx_cfile (or any other application
                                for that matter that is receiving data)
                                and an overflow is encountered, the
                                application hangs and stops writing to
                                disk.  No “O” characters are printed. 
                                However, once an overflow is properly
                                caught and handled (i.e., “O” characters
                                are printed) I have no more issues with
                                the driver hanging for the rest of that
                                power cycle.  From that point forward
                                all overflows are properly handled. 
                                  If I cycle power on the device or my
                                host machine, the problem comes back.  I
                                tried to repeat this issue over
                                Ethernet, and overflow errors are always
                                properly printed and handled.</font></font></p>
                          <font color="#000000" face="arial,helvetica,sans-serif"> </font>
                          <p class="MsoNormal" style="margin:0in 0in 0pt"><font color="#000000" face="arial,helvetica,sans-serif"> </font></p>
                          <font color="#000000" face="arial,helvetica,sans-serif"> </font>
                          <p class="MsoNormal" style="margin:0in 0in 0pt"><font color="#000000"><font face="arial,helvetica,sans-serif">Second,

                                the PCIe driver requires an Ethernet
                                connection.  That is, if I unplug a
                                network connection, I cannot run
                                uhd_find_devices.  I can ping the
                                loopback address just fine and have
                                verified that the loopback interface is
                                active, but I cannot run
                                uhd_find_devices if my Ethernet
                                connection is disconnected.</font></font></p>
                          <font color="#000000" face="arial,helvetica,sans-serif"> </font>
                          <p class="MsoNormal" style="margin:0in 0in 0pt"><font color="#000000" face="arial,helvetica,sans-serif"> </font></p>
                          <font color="#000000" face="arial,helvetica,sans-serif"> </font>
                          <p class="MsoNormal" style="margin:0in 0in 0pt"><font color="#000000"><font face="arial,helvetica,sans-serif">I am
                                running everything on a fresh install of
                                Ubuntu 14.04 and have verified that I
                                have the latest FPGA image installed on
                                the device.</font></font></p>
                          <font color="#000000" face="arial,helvetica,sans-serif"> </font>
                          <p class="MsoNormal" style="margin:0in 0in 0pt"><font color="#000000" face="arial,helvetica,sans-serif"> </font></p>
                          <font color="#000000" face="arial,helvetica,sans-serif"> </font>
                          <p class="MsoNormal" style="margin:0in 0in 0pt"><font color="#000000"><font face="arial,helvetica,sans-serif">Please
                                let me know what I should try to
                                alleviate the issues that I am having. 
                                Thank you in advance for your help.</font></font></p>
                          <font face="arial,helvetica,sans-serif"><font color="#000000"> </font><br>
                            -- <br>
                            Peter Witkowski<br>
                            <a href="mailto:pwitkowski@gmail.com" target="_blank">pwitkowski@gmail.com</a> </font></div>
                      </div>
                    </div>
                  </div>
                  <pre><fieldset></fieldset>
_______________________________________________
USRP-users mailing list
<a href="mailto:USRP-users@lists.ettus.com" target="_blank">USRP-users@lists.ettus.com</a>
<a href="http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com" target="_blank">http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com</a>
</pre>
                </blockquote>
                I can't answer about the hanging isuee, but if you:<br>
                <br>
                uhd_usrp_probe -args "resource=RIO0"<br>
                <br>
                That should always work if things are setup correctly.<br>
                <br>
                I'm not sure what "uhd_find_devices" doesn't include the
                RIO resources in its "list of things to try", but to be
                honest, I vastly prefer *explicit*<br>
                  device naming, rather than implicit "find me a
                usrp".   If one has more than one USRP on a system, then
                implicit naming is nearly never<br>
                  what you want anyway....<span><font color="#888888"><br>
                    <br>
                    <br>
                    <pre cols="72">-- 
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
<a href="http://www.sbrac.org" target="_blank">http://www.sbrac.org</a>
</pre>
                  </font></span></div>
              <br>
              _______________________________________________<br>
              USRP-users mailing list<br>
              <a href="mailto:USRP-users@lists.ettus.com" target="_blank">USRP-users@lists.ettus.com</a><br>
              <a href="http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com" target="_blank">http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com</a><br>
              <br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <br>
          -- <br>
          Peter Witkowski<br>
          <a href="mailto:pwitkowski@gmail.com" target="_blank">pwitkowski@gmail.com</a>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
USRP-users mailing list
<a href="mailto:USRP-users@lists.ettus.com" target="_blank">USRP-users@lists.ettus.com</a>
<a href="http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com" target="_blank">http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br><br clear="all"><br>-- <br>Peter Witkowski<br><a href="mailto:pwitkowski@gmail.com">pwitkowski@gmail.com</a>
</div></div>