Skip to content

Instantly share code, notes, and snippets.

@cjcliffe
Created October 1, 2015 04:06
Show Gist options
  • Save cjcliffe/c259ce85f529c55605fc to your computer and use it in GitHub Desktop.
Save cjcliffe/c259ce85f529c55605fc to your computer and use it in GitHub Desktop.
```
[DEBUG] stream re-init sps: 252
[DEBUG] stream re-init numPackets*sps: 106848
Set sample rate: 2560000
mir_sdr_SetFs: Sample Freq requested 2559999.942780
mir_sdr_2500_SetRegister(0x04, 0x05c28f)
mir_sdr_2500_SetRegister(0x03, 0x011797)
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2560000.0+0.0Hz=2559999.9Hz FsToggle->0
[DEBUG] Changed sample rate
mir_sdr_2500_SetRegister(0x09, 0x0052f3)
mir_sdr_2500_SetRegister(0x09, 0x2191d2)
mir_sdr_SetRf: f->101333324.000Hz (int=21 frac=91d afc=52f) fSynth:3242666368.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=101333324.0+0.0+0.0Hz+0.0Hz=101333324.0Hz RfToggle->1
[DEBUG] Changed center frequency
[DEBUG] Bandwidth crossed boundary and needed adjustment; resetting device..
mir_sdr_2500_StopRx()
mir_sdr_2500_StreamUninit()
mir_sdr_usb_StreamUninit(1)
mir_sdr_2500_SetRegister(0x08, 0x006280)
mir_sdr_2500_Uninit()
mir_sdr_2500_SetRegister(0x09, 0x063000)
mir_sdr_2500_SetRegister(0x09, 0x00800e)
mir_sdr_2500_SetRegister(0x03, 0x091300)
mir_sdr_2500_SetRegister(0x05, 0x000004)
mir_sdr_usb_Uninit()
Releasing interface in mir_sdr_usb_Uninit()
Closing driver handle in mir_sdr_usb_Uninit()
Closed driver handle in mir_sdr_usb_Uninit()
Closed eventThread in mir_sdr_usb_Uninit()
Exited libusb in mir_sdr_usb_Uninit()
mir_sdr_usb_Uninit() completed
mir_sdr_Init: starting hardware initialization
mir_sdr_Init: gR=40dB fs=2.560MHz rf=101.333MHz bw=1.536MHz if=0.000MHz
mir_sdr_2500_Init(2)
mir_sdr_usb_Init()
mir_sdr_usb_USB DLL: Revision 0.1.1
Opened device with idVendor = 0x1df7 idProduct = 0x2500 fwVersion = 0x0206
Msg: libusb_get_configuration() = 1
mir_sdr_2500 attachFn(hnd, 0x0206, 1, 0)
mir_sdr_usb_SetInterface(2)
mir_sdr_2500_GetFnAddr()
mir_sdr_2500_GetFnAddr()
mir_sdr_2500_Init: fnaddr = 3
mir_sdr_2500_SetRegister(0x05, 0x00000c)
mir_sdr_2500_SetRegister(0x09, 0x00000e)
mir_sdr_2500_SetRegister(0x00, 0x000200)
mir_sdr_2500_Init: adjusting squelch trim 0x1, rx gating enable 1, tx_trim 0, reg2 = 0x4801
mir_sdr_2500_SetRegister(0x02, 0x004801)
mir_sdr_2500_SetRegister(0x09, 0x28bb85)
mir_sdr_2500_SetRegister(0x08, 0x00f380)
mir_sdr_2500_SetRegister(0x07, 0x000005)
initHw: Register7 = 0x000005
mir_sdr_2500_SetRegister(0x09, 0x04f420)
initHw: Tuner Register0 = 0x04f420
mir_sdr_2500_StreamInit(0, 393216)
mir_sdr_usb_StreamInit(0, 393216)
mir_sdr_2500_StartRx()
mir_sdr_usb_FlushLocalBuffer()
mir_sdr_SetFs: Sample Freq requested 2560000.010899
mir_sdr_2500_SetRegister(0x04, 0x0eb852)
mir_sdr_2500_SetRegister(0x03, 0x01189b)
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2560000.0+0.0Hz=2560000.0Hz FsToggle->1
mir_sdr_2500_SetRegister(0x09, 0x0052f3)
mir_sdr_2500_SetRegister(0x09, 0x2191d2)
mir_sdr_SetRf: f->101333324.000Hz (int=21 frac=91d afc=52f) fSynth:3242666368.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=101333324.0+0.0+0.0Hz+0.0Hz=101333324.0Hz RfToggle->1
mir_sdr_2500_SetRegister(0x09, 0x032101)
mir_sdr_SetGr: GR->40[16,24,0,0] gRset->0x210 DCCALmode=4 DCCALspd=1 GrToggle->1
setToggleStates: initialising sampNum=0x000205f6, gainSetting=0x210, FsToggle=0, RfToggle=0, GrToggle=1
setToggleStates: initialising Fs=2560000.011, Rf=101333324.000, Gr=40
[DEBUG] stream re-init sps: 336
[DEBUG] stream re-init numPackets*sps: 85344
Set sample rate: 2880000
mir_sdr_SetFs: Sample Freq requested 2879999.978202
mir_sdr_2500_SetRegister(0x04, 0x028f5c)
mir_sdr_2500_SetRegister(0x03, 0x011a1b)
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2880000.0+0.0Hz=2880000.0Hz FsToggle->1
[DEBUG] Changed sample rate
mir_sdr_2500_SetRegister(0x09, 0x0052f3)
mir_sdr_2500_SetRegister(0x09, 0x2191d2)
mir_sdr_SetRf: f->101333324.000Hz (int=21 frac=91d afc=52f) fSynth:3242666368.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=101333324.0+0.0+0.0Hz+0.0Hz=101333324.0Hz RfToggle->1
[DEBUG] Changed center frequency
mir_sdr_ReadPacket: Fs update confirmed: Fs=2880000.0Hz FsToggle=1
[DEBUG] Rate change acknowledged from device. packet: 178
mir_sdr_ResetUpdateFlags: resetGainUpdate=0 resetRfUpdate=0 resetFsUpdate=1
mir_sdr_ReadPacket: Rf update confirmed: Rf=101333324.0Hz RfToggle=1
[DEBUG] Center frequency change acknowledged from device. packet: 207
mir_sdr_ResetUpdateFlags: resetGainUpdate=0 resetRfUpdate=1 resetFsUpdate=0
Set sample rate: 2400000
mir_sdr_SetFs: Sample Freq requested 2400000.027248
mir_sdr_2500_SetRegister(0x04, 0x0ccccd)
mir_sdr_2500_SetRegister(0x03, 0x01181b)
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2400000.0+0.0Hz=2400000.0Hz FsToggle->1
[DEBUG] Changed sample rate
mir_sdr_2500_SetRegister(0x09, 0x0052f3)
mir_sdr_2500_SetRegister(0x09, 0x2191d2)
mir_sdr_SetRf: f->101333324.000Hz (int=21 frac=91d afc=52f) fSynth:3242666368.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=101333324.0+0.0+0.0Hz+0.0Hz=101333324.0Hz RfToggle->1
[DEBUG] Changed center frequency
mir_sdr_ReadPacket: Rf update confirmed: Rf=101333324.0Hz RfToggle=1
mir_sdr_ReadPacket: Fs update confirmed: Fs=2400000.0Hz FsToggle=1
[DEBUG] Center frequency change acknowledged from device. packet: 0
mir_sdr_ResetUpdateFlags: resetGainUpdate=0 resetRfUpdate=1 resetFsUpdate=0
[DEBUG] Rate change acknowledged from device. packet: 0
mir_sdr_ResetUpdateFlags: resetGainUpdate=0 resetRfUpdate=0 resetFsUpdate=1
Set sample rate: 2880000
mir_sdr_SetFs: Sample Freq requested 2879999.978202
mir_sdr_2500_SetRegister(0x04, 0x028f5c)
mir_sdr_2500_SetRegister(0x03, 0x011a1b)
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2880000.0+0.0Hz=2880000.0Hz FsToggle->1
[DEBUG] Changed sample rate
mir_sdr_2500_SetRegister(0x09, 0x0052f3)
mir_sdr_2500_SetRegister(0x09, 0x2191d2)
mir_sdr_SetRf: f->101333324.000Hz (int=21 frac=91d afc=52f) fSynth:3242666368.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=101333324.0+0.0+0.0Hz+0.0Hz=101333324.0Hz RfToggle->1
[DEBUG] Changed center frequency
mir_sdr_ReadPacket: Fs update confirmed: Fs=2880000.0Hz FsToggle=1
[DEBUG] Rate change acknowledged from device. packet: 145
mir_sdr_ResetUpdateFlags: resetGainUpdate=0 resetRfUpdate=0 resetFsUpdate=1
mir_sdr_ReadPacket: Rf update confirmed: Rf=101333324.0Hz RfToggle=1
[DEBUG] Center frequency change acknowledged from device. packet: 161
mir_sdr_ResetUpdateFlags: resetGainUpdate=0 resetRfUpdate=1 resetFsUpdate=0
Set sample rate: 2560000
mir_sdr_SetFs: Sample Freq requested 2560000.010899
mir_sdr_2500_SetRegister(0x04, 0x0eb852)
mir_sdr_2500_SetRegister(0x03, 0x01189b)
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2560000.0+0.0Hz=2560000.0Hz FsToggle->1
[DEBUG] Changed sample rate
mir_sdr_2500_SetRegister(0x09, 0x0052f3)
mir_sdr_2500_SetRegister(0x09, 0x2191d2)
mir_sdr_SetRf: f->101333324.000Hz (int=21 frac=91d afc=52f) fSynth:3242666368.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=101333324.0+0.0+0.0Hz+0.0Hz=101333324.0Hz RfToggle->1
[DEBUG] Changed center frequency
mir_sdr_ReadPacket: Rf update confirmed: Rf=101333324.0Hz RfToggle=1
mir_sdr_ReadPacket: Fs update confirmed: Fs=2560000.0Hz FsToggle=1
[DEBUG] Center frequency change acknowledged from device. packet: 0
mir_sdr_ResetUpdateFlags: resetGainUpdate=0 resetRfUpdate=1 resetFsUpdate=0
[DEBUG] Rate change acknowledged from device. packet: 0
mir_sdr_ResetUpdateFlags: resetGainUpdate=0 resetRfUpdate=0 resetFsUpdate=1
```
Entering 6M resulted in choppy audio an error message in the log:
```
Set sample rate: 6000000
mir_sdr_SetFs: Invalid sample frequency: requested invalid IntVal 36
[DEBUG] Changed sample rate
mir_sdr_2500_SetRegister(0x09, 0x0052f3)
mir_sdr_2500_SetRegister(0x09, 0x2191d2)
mir_sdr_SetRf: f->101333324.000Hz (int=21 frac=91d afc=52f) fSynth:3242666368.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=101333324.0+0.0+0.0Hz+0.0Hz=101333324.0Hz RfToggle->1
[DEBUG] Changed center frequency
mir_sdr_ReadPacket: Rf update confirmed: Rf=101333324.0Hz RfToggle=1
[DEBUG] Center frequency change acknowledged from device. packet: 0
mir_sdr_ResetUpdateFlags: resetGainUpdate=0 resetRfUpdate=1 resetFsUpdate=0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment