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.

  • ok,thanks for your advice.what you mean are that you don't supply the interface to get the IQ sample.

    I understand  some information about MQTT.The silab have adopted that using MQTT as a receiver get the iq samples.

    "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?" means that  every running  the procedure  you noly get the samples.when i see that output in serial of Rx.But we know that iq sample after a  period IQ sample can be sent to serial.but my procedure can only get one period.

    thanks.do you know the ISP1907 Angle of Arrival Demo Kit ?if you know , please tell me the more information.

  • Hi

    Correct. Well, we use a serial interface to print the IQ samples, you're welcome to implement MQTT in the Direction Finding samples on your end, but we don't have a sample project already doing this. You can check out the documentation on the MQTT here.

    Just to clarify the sampling, are you expecting the IQ sampling to start over after you have gotten the 45th IQ sample, or do you not see any of the samples in your terminal program where you expect to see these 45 samples?

    Yes, we're familiar with the ISP1907-AOA-DK. The antenna array is based on our design. What exactly do you need to know about it? It's a 12 antenna array that should work out of the box with our Direction Finding connectionless TX and RX samples in the nRF Connect SDK. Here is its datasheet: https://www.insightsip.com/fichiers_insightsip/pdf/ble/ISP1907/isp_ble_DS1907_AOA.pdf 

    Best regards,

    Simon

Related