[USRP-users] check send successfully

Marcus Müller marcus.mueller at ettus.com
Mon Dec 1 09:26:50 EST 2014


Hi w xd/xdw/xd/Xianda,

If you were able to transmit the samples to your USRP, then they will be
sent.

I don't understand your second question; are you asking us how to
terminate a C++ while loop?

Best regards,
Marcus Müller


On 12/01/2014 03:17 PM, w xd wrote:
> Hi Müller:
>               Thank you.
>               Because the signal  is send in the future.It has been
> described by metadata.It haven't send now.For example,I set a counter in
> the loop.The counter have already reach some number.But the signal now
> haven't send.
>              counter=1
>              Do:
>                      1.send a frame
>                      2.counter++;
>              while(...);
> For example,when counter=15.But it haven't send 15 times.Because it send in
> the future.
>             Another question:how to stop the loop?When i set
> while(counter<=15),it stop fastly.And it haven't send.I have read the
> example:tx_burst.cpp.And it set: while (not stop_signal_called and
> repeat);Now i just want the program send 15 times.
> Best regards,
> xdw
>
> 2014-12-01 22:04 GMT+08:00 Marcus Müller <usrp-users at lists.ettus.com>:
>
>>  Hi xdw,
>>
>> what do you mean with "check send successfully"?
>> usually, unless your send() call says something went wrong (ie. the number
>> it returns isn't the number of samples you wanted to send), it should have
>> been successfull.
>>
>> Could you explain in a little more depth what you are trying to do and
>> which problems you encounter?
>>
>> Best regards,
>> Marcus Müller
>>
>>
>> On 12/01/2014 04:01 AM, w xd via USRP-users wrote:
>>
>> Hi all:
>>          I just want to realize the following function,but i don't know how
>> to check the usrp send successfully.
>>         Loop:
>>                 1.send a frame--->sending a timed burst
>>                 2.after send successfully--->tcpip accept and receive
>>
>>         The above repeated.Can someone have some ideas?
>> Thank you.
>> Best regards,
>> xdw
>>
>>
>>
>>
>> _______________________________________________
>> USRP-users mailing listUSRP-users at lists.ettus.comhttp://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>>
>>
>>
>> _______________________________________________
>> USRP-users mailing list
>> USRP-users at lists.ettus.com
>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>>
>>





More information about the USRP-users mailing list