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.

Parents Reply
  • 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.

Children
No Data
Related