Fwd: RTL_TCP Commands

Chris Svendsen csvendsen2143 at gmail.com
Tue Mar 26 16:15:22 UTC 2013

Added the attribute packed

struct command{
        unsigned char cmd;
        unsigned int param;

The sizeof(cmd) is 8 it was also 8 before attrib packed was added.

---------- Forwarded message ----------
From: Chris Svendsen <csvendsen2143 at gmail.com>
Date: Mon, Mar 25, 2013 at 1:10 PM
Subject: RTL_TCP Commands
To: osmocom-sdr at lists.osmocom.org

Sending commands to RTL_TCP
What format do the commands need to be in order to change the frequency of
I have tried the following and the frequency will change but no to the
frequency that is expected for example:

This code :

    char SET_FREQUENCY[] ={0x01};
    string Freq = string(SET_FREQUENCY,1)+"500000000";
    answer = send(sConnect,Freq.c_str(),11,0);

Changes the freq to this:

client accepted!
set freq 892350512
ll+, now 1
ll+, now 2

Any help would be greatly appreciated as i have been stuck on this for days.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20130326/a6afdf85/attachment.html>

More information about the osmocom-sdr mailing list