Hello,
I’m trying to get our LimeSDR v1.4 board up and running in MS VS 2013 environment. I cloned last git version of LimeSuite, compiled and built LimeSuite without GUI, uploaded the latest firmware images to the board and try to run Rx examples and get some IQ trace. Everything seems to be working (the board is responding, streaming goes OK), except for the sample data looks strange, like something is wrong with nibble/byte ordering. With unplugged Rx input, having set gain = 0 dB and turned off test gen by using LMS_TESTSIG_NONE, I expect to see some small numbers around 0 level, but instead I get some strange values. I dumped couple first samples returned by LMS_RecvStream() routine, having set packing mode to LMS_FMT_I16:
-32512:-32 32480:0 -32512:-32 -32:0 -32512:-17440 -32480:0 -64:-1056 32480:-48 32448:32 32:0
0081:E0FF E07E:0000 0081:E0FF E0FF:0000 0081:E0BB 2081:0000 C0FF:E0FB E07E:D0FF C07E:2000 2000:0000
Here, the upper line has decimal I:Q value pairs, and below is hex representation of the same values in little endian format, which gives actual byte data sequence. When I set LMS_FMT_I12, I get similar numbers:
32448:-32 -16:16 32448:-32 48:16 0:-17440 -16:16400 0:1056 48:16 32448:-32 -16:-48
C07E:E0FF F0FF:1000 C07E:E0FF 3000:1000 0000:E0BB F0FF:1040 0000:2004 3000:1000 C07E:E0FF F0FF:D0FF
For me, it very well resembles swapped bytes/nibbles of ADC data stream, but simply looking at it I can’t guess what should be correct ordering. Did anyone encounter such kind of problem? Though I understand that it’s not mainstream scenario, but we need to use LimeSuite.dll in our application like a plug-in module, and generally LimeSuite lib would fit our needs very well. Is this right place at all to ask such questions, or there is more direct tech support place/address?
Thank you!
Vladimir Pavlenko
P.S. Below is the console log from one of my runs, may be there could be some clue in it. For some reason, it’s got auto-formatted bold in the middle, don’t know how to cancel this…
Devices found: 1
0: USB 3.0 (LimeSDR-USB), media=USB, module=STREAM, serial=0009062000C43919, index=0
Estimated reference clock 30.7197 MHz
Reference clock 30.720 MHz
CGEN: Freq=80 MHz, VCO=2.56 GHz, INT=82, FRAC=349525, DIV_OUTCH_CGEN=15
M=156, N=3, Fvco=1040.000 MHz
16: 01 A0 AA
16: 01 A8 2A
16: AB FA 5C
phase: min 31.2; max 197.3; selected 114.2)
M=156, N=3, Fvco=1040.000 MHz
M=156, N=3, Fvco=1040.000 MHz
16: A6 DC 37
16: AA 58 75
16: AA 5A D5
phase: min 15.6; max 171.3; selected 93.5)
M=156, N=3, Fvco=1040.000 MHz
Center frequency: 1000 MHz
Available antennae:
0: NONE
1: LNA_H
2: LNA_L
3: LNA_W
Automatically selected antenna: 1: LNA_H
Manually selected antenna: 3: LNA_W
CGEN: Freq=16 MHz, VCO=2.432 GHz, INT=78, FRAC=174762, DIV_OUTCH_CGEN=75
Host interface sample rate: 2 MHz
RF ADC sample rate: 2MHz
RX center freq range: 30 - 3800 MHz
RX sample rate range: 0.1 - 80 MHz
RX LPF bandwitdh range: 1.4 - 130 MHz
MCU algorithm time: 10 ms
MCU Programming finished, 930 ms
MCU Ref. clock: 30.72 MHz
MCU algorithm time: 188 ms
RX LPF configured
MCU algorithm time: 0 ms
MCU Ref. clock: 30.72 MHz
MCU algorithm time: 221 ms
RX LPF configured
Normalized RX Gain: 0
RX Gain: 0 dB
############################################
Rx calibration using RSSI INTERNAL ON BOARD loopback
Rx ch.A @ 1000 MHz, BW: 4 MHz, RF input: LNAW, PGA: 0, LNA: 2, TIA: 1
Performed by: MCU
MCU algorithm time: 0 ms
Current MCU firmware: 3, DC/IQ calibration full
MCU Ref. clock: 30.72 MHz
MCU algorithm time: 273 ms
###########################################
Rx calibration using RSSI INTERNAL ON BOARD loopback
Rx ch.B @ 1000 MHz, BW: 4 MHz, RF input: LNAW, PGA: 0, LNA: 2, TIA: 1
Performed by: MCU
MCU algorithm time: 0 ms
Current MCU firmware: 3, DC/IQ calibration full
MCU Ref. clock: 30.72 MHz
MCU algorithm time: 239 ms
Rx pktLoss: ts diff: 6630 pktLoss: 12
32448:-32 -16:16 32448:-32 48:16 0:-17440 -16:16400 0:1056 48:16 32448:-32 -16:-48
C07E:E0FF F0FF:1000 C07E:E0FF 3000:1000 0000:E0BB F0FF:1040 0000:2004 3000:1000 C07E:E0FF F0FF:D0FF
L
RX_1 data rate: 0 MB/s
RX_1 sample rate: 1.91382 MSamples/s
RX_1 fifo: 0%