RTL_TCP Commands

Steve Markgraf steve at steve-m.de
Mon Mar 25 17:44:53 UTC 2013


Hi,

On 25.03.2013 18:10, Chris Svendsen wrote:
>     char SET_FREQUENCY[] ={0x01};
>     string Freq = string(SET_FREQUENCY,1)+"500000000";
>     answer = send(sConnect,Freq.c_str(),11,0);

The "set frequency"-command of rtl_tcp expects an unsigned 32 bit
integer in network byte order, not a string.

Host implementation:
http://cgit.osmocom.org/rtl-sdr/tree/src/rtl_tcp.c#n325

Client implementation:
http://cgit.osmocom.org/gr-osmosdr/tree/lib/rtl_tcp/rtl_tcp_source_f.cc#n275

Regards,
Steve




More information about the osmocom-sdr mailing list