<div dir="ltr"><div><div>Added the attribute packed<br><br>struct command{<br>        unsigned char cmd;<br>        unsigned int param;<br>}__attribute__((packed));<br><br></div>The sizeof(cmd) is 8 it was also 8 before attrib packed was added.<br>
</div>thanks<br><div><div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Chris Svendsen</b> <span dir="ltr"><<a href="mailto:csvendsen2143@gmail.com">csvendsen2143@gmail.com</a>></span><br>
Date: Mon, Mar 25, 2013 at 1:10 PM<br>Subject: RTL_TCP Commands<br>To: <a href="mailto:osmocom-sdr@lists.osmocom.org">osmocom-sdr@lists.osmocom.org</a><br><br><br><div dir="ltr"><div>Sending commands to RTL_TCP<br>What format do the commands need to be in order to change the frequency of RTL_TCP.<br>
</div><div>I have tried the following and the frequency will change but no to the frequency that is expected for example:<br>
<br><br></div><div>This code :<br></div><div><br>    char SET_FREQUENCY[] ={0x01};<br>    string Freq = string(SET_FREQUENCY,1)+"500000000";<br>    answer = send(sConnect,Freq.c_str(),11,0);<br><br></div><div>Changes the freq to this:<br>

<br>client accepted!<br>set freq 892350512<br>ll+, now 1<br>ll+, now 2<br><br></div><div>Any help would be greatly appreciated as i have been stuck on this for days.<br><br></div><div><br></div><div>Thanks<br><br></div><div>

<br><br><br></div><div><br></div><br></div>
</div><br></div></div></div></div>