On 22/11/2023 04:37, Patryk ChamuczyƄski wrote:
Hi

I am writing a simple app that relays received samples with some delay.

What I do is I start reading from the rx stream in a continuous mode:

stream_cmd=uhd.types.StreamCMD(uhd.types.StreamMode.start_cont)
stream_cmd.stream_now =True
self.rx_streamer.issue_stream_cmd(stream_cmd)
if(metadata.has_time_spec):
timespec=metadata.time_spec


and then in another thread I restamp each sample and send it to a tx stream:

tx_metadata=uhd.types.TXMetadata()
tx_metadata.has_time_spec =True
tx_metadata.start_of_burst =False
tx_metadata.end_of_burst =False
delay_spec=uhd.types.TimeSpec(self.delay_s)
fortimespec, buffer, real_lengthinqueue:
tx_timespec=timespec+delay_spec
tx_metadata.time_spec =tx_timespec
sent=self.tx_streamer.send(buffer, tx_metadata, real_length)

Is it a right approach in general? My problem is that the receiver reports many CRC errors, so something must happen on the way. Is it possible that the tx stream is not continuous and thus some samples are misinterpreted?

Patryk


_______________________________________________
USRP-users mailing list --usrp-users@lists.ettus.com
To unsubscribe send an email tousrp-users-le...@lists.ettus.com
Are you getting any 'L' or 'U' or 'O' indications?

_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to