how to get the IQ from my serial?

Yes, i have get the IQ samples form my serial. I use the Putty solfware to get the iIQ sample.but i want to collect iq to MQTT or to get it it a file.The next is my IQ sample in Putty in COM25.

success. Periodic sync established.

Enable receiving of CTE...

success. CTE receive enabled.

Scan disable...Success.

Waiting for periodic sync lost...

PER_ADV_SYNC[0]: [DEVICE]: 3E:08:7A:61:64:9B (random), tx_power 127, RSSI -63, CTE AOA, data length 0, data:

CTE[0]: samples count 45, cte type AOA, slot durations: 2 [us], packet status CRC OK, RSSI -630

IQ sample content :

sample[0] = I:11 Q:13

sample[1] = I:-11 Q:-15

sample[2] = I:9 Q:14

sample[3] = I:-10 Q:-16

sample[4] = I:8 Q:14

sample[5] = I:-9 Q:-14

sample[6] = I:6 Q:15

sample[7] = I:-8 Q:-16

sample[8] = I:-3 Q:-13

sample[9] = I:-11 Q:3

sample[10] = I:9 Q:13

sample[11] = I:1 Q:8

sample[12] = I:3 Q:1

sample[13] = I:-6 Q:-1

sample[14] = I:-7 Q:15

sample[15] = I:-2 Q:0

sample[16] = I:1 Q:14

sample[17] = I:5 Q:6

sample[18] = I:-13 Q:3

sample[19] = I:-1 Q:1

sample[20] = I:-2 Q:3

sample[21] = I:0 Q:6

sample[22] = I:4 Q:-1

sample[23] = I:12 Q:-2

sample[24] = I:-4 Q:-12

sample[25] = I:-15 Q:8

sample[26] = I:-8 Q:1

sample[27] = I:-2 Q:3

sample[28] = I:0 Q:-6

sample[29] = I:-17 Q:-5

sample[30] = I:-2 Q:-2

sample[31] = I:-15 Q:1

sample[32] = I:-7 Q:7

sample[33] = I:-3 Q:-14

sample[34] = I:7 Q:-23

sample[35] = I:10 Q:1

sample[36] = I:20 Q:-16

sample[37] = I:-19 Q:-16

sample[38] = I:-6 Q:-10

sample[39] = I:55 Q:-15

sample[40] = I:-23 Q:25

sample[41] = I:2 Q:-12

sample[42] = I:0 Q:-3

sample[43] = I:10 Q:-1

sample[44] = I:-19 Q:-9

I use the pyserial moudle to get the IQ sample from COM25.But I get the empty in my terminal.

my python script is here.

import serial

port = "COM25"
baudrate = 115200
bytesize = 8
parity = 'N'
stopbits = 1
timeout=0.1

ser = serial.Serial(port,baudrate,bytesize,parity,stopbits,timeout)

# print(ser)

ser_read = ser.readlines(10000)
print(ser_read)

my output in terminal in pycharm.

C:\Python38\python.exe I:/ti/simplelink_cc13xx_cc26xx_sdk_5_40_00_40/tools/ble5stack/rtls_agent/examples/pyserial.py
[]

I am looking forward to get your answer.Thanks.if you can get the iq sample,i feel very grateful.

  • Hi

    The IQ samples seem to be printed correctly in your serial terminal, so that's good. Here on DevZone we focus on Nordic Semiconductor products, and I think this python script of yours to output it in a different terminal is outside of the scope of this forum. Please try a forum like Stack overflow or similar for this kind of question. It's not related to technical support with Nordic devices.

    Best of luck and regards,

    Simon

  • yes,i have solved the problem.I use the serial module to get the IQ values.Them i use string methed to get the IQ values and save them in my files.

    i find my IQ values only can be getted once.is there a  way to get the dynamic iq values ?

    I see that the IQ sample of silab can be transmitted to MQTT.

    do you know this?thanks,i am looking to forward to your reply.

  • Hi

    Glad to hear you got it up and running, and thank you for sharing your solution here. I'm not sure what you mean by only being able to get the IQ data once. What happens after the first sample period, do you start transmission again or does the advertiser/scanner stop running?

    Best regards,

    Simon

  • ok,thanks for your answer.I can get the IQ sample for 45 everytime.Beacause i want to get the RTSL.so i get the everytime IQ samples to transmit to my angle caculating procedure.

    i run a script of python serial.i only ret the IQ sample once.have you see that the MQTT to transmit the data?

    do you have some interface to get the IQ sample directly?

    looking forward to your reply.

  • Hi

    Currently we do not have an interface to get the IQ sample for the solution in NCS. You can contact the regional sales manager (RSM) of your area to get information on whether this is planned for or not, as we don't discuss possible future applications/features we don't know anything about here on DevZone. If you don't know who the RSM is you can get in touch by filling in our sales related questions form.

    I'm sorry, but I still don't understand your predicament of the IQ samples only being printed once. What happens after the first sample period, do you start transmission again or does the advertiser/scanner stop running?

    Best regards,

    Simon

Related