<div dir="ltr">Hi John,<div><br></div><div>I do not have experience with interfacing with the hardware from MATLAB but for that error you need to increase the amount of read and write buffers on your OS.</div><div><br></div><div>I am assuming you are running Linux, if now then you need to find out how this is done in Windows.</div><div><br></div><div>On Linux (Ubuntu): </div><div>Edit the file <font face="monospace, monospace">/etc/sysctl.conf</font><br>Add something in the line of the following:<br><div><font face="monospace, monospace" style="background-color:rgb(204,204,204)">net.core.rmem_max=128000000</font></div><div><font face="monospace, monospace" style="background-color:rgb(204,204,204)">net.core.wmem_max=128000000</font></div></div><div>Then restart the computer</div><div><br></div><div>Just check what is acceptable for your system, that is what I have set on mine. Perhaps make it 2752000 as suggested by the error. </div><div><br></div><div>Regards,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 19, 2015 at 10:58 AM, john liu 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">    Dear all,<div>   <div>        when we  connect to the B210 with matlab,  the following errors often happened.<br><div><br></div><div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)" lang="EN-US">Could not execute UHD driver command in
            'receiveData_c': </span></p>
        <p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)" lang="EN-US">libmwusrp_uhd_capi:receiveData:ErrWrongRecvSize
            </span></p>
        <p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)" lang="EN-US">Did not receive expected number of samples in a
            burst reception. </span></p>
        <p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)" lang="EN-US">This is likely due to overflow within the
            burst. </span></p>
        <p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)" lang="EN-US">Use 'sysctl' to update the OS socket buffer
            size.</span></p>
        <p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)" lang="EN-US">Expected: 2752000</span></p>
        <p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left"><span style="font-size:9pt;font-family:Consolas;color:rgb(64,64,64)" lang="EN-US">Found : 94120</span></p><p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left"><br></p><p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left">I did't know wether these errors is related  to the transmission of the usb3.0 speed.</p><p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left">thank you for your help</p><p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left">best regards</p><span class="HOEnZb"><font color="#888888"><p class="MsoNormal" style="margin-right:0cm;margin-bottom:7.5pt;margin-left:24pt;line-height:12.8pt;background-image:initial;background-repeat:initial" align="left">John</p></font></span></div></div></div></div>
<br>_______________________________________________<br>
USRP-users mailing list<br>
<a href="mailto:USRP-users@lists.ettus.com">USRP-users@lists.ettus.com</a><br>
<a href="http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com" rel="noreferrer" target="_blank">http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com</a><br>
<br></blockquote></div><br></div>