This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AOA IQ数据实现对应的天线编号的打印

Other Parts Discussed in Thread: CC2640

请问用CC26X2的SDK(4_30版本)pytho采集的IQ CSV格式的IQ数据,现在只能只能看到是哪一组天线(ant_array),有没有什么办法实现区分具体是哪一组的哪根天线。

另外python在以下配置时参数时,每一组PKT只有82个数据,这个是怎么来?既不是天线数3的倍数也不是16的倍数。和之前CC2640中的有较大区别。                  

                    "aoa_cc26x2": {
                        "aoa_slot_durations": 1,
                        "aoa_sample_rate": 1,
                        "aoa_sample_size": 1,
                        "aoa_sampling_control": int('0x10', 16),
                        ## bit 0   - 0x00 - default filtering, 0x01 - RAW_RF no filtering,
                        ## bit 4,5 - default: 0x10 - ONLY_ANT_1, optional: 0x20 - ONLY_ANT_2
                        "aoa_sampling_enable": 1,
                        "aoa_pattern_len": 3,
                        "aoa_ant_pattern": [0, 1,2]
                    }

  

  • 1、目前SDK里一次只能使用一个antenna array,无法同时使用。至于具体的天线,是通过GPIO控制的,你可以尝试从这里入手,找找方法区分
    2、packet length跟采样率和内存有关:

    For rtls_passive, the I/Q sampling rate is currently not configurable and it is 4 MHz. Each I/Q pair occupies 32 bits space in radio RAM and the radio RAM can store up to 512 samples (i.e. 2048 bytes - 2 kB). This limitation is only due to the micro-stack which limits the amount of data read in the Radio RAM. The radio RAM length is 4 kB.

    With sampling rate 4MHz, there will be 16 I/Q pairs every 4us, which equals to 16 * 4 (one I/Q pair takes up 4 bytes space) = 64 bytes per 4us.

    That means even if the CTE is 160us long with 4MHz sampling rate, the radio RAM for rtls_passive can only store I/Q data for 128us duration. There is currently no workaround for it unless we shorten the CTE length. This is not an issue for rtls_master.
  • 请问,在这个帖子里e2echina.ti.com/.../182449

    回复的这个链接已经无效了,有什么办法可以打开
    dev.ti.com/.../landing_page_index.html
  • 是这个:dev.ti.com/.../node

    主要是展示了硬件控制的那几个GPIO,方便用逻辑分析仪监测
  • 关于天线的切换,我用逻辑分析仪抓取了一下引脚,切换只持续了140us,这是正常的吗?

  • 我们用master采集IQ数据,按说明,是有4K的ram,可以采集完160us的数据的。在4Mhz采样,且关闭filtering的情况下,理论上可以到640个数据,现在采出来只有624,刚好少了16个(4us)的数据。这是因为采集有4us的offset吗?没有找到相关的说明。

    另外,在打开filtering的情况下,采集的IQ数据会从624减少的180个,请问这是做了怎么滤波处理?
  • 我们用master采集IQ数据,按说明,是有4K的ram,可以采集完160us的数据的。在4Mhz采样,且关闭filtering的情况下,理论上可以到640个数据,现在采出来只有624,刚好少了16个(4us)的数据。这是因为采集有4us的offset吗?没有找到相关的说明。

    另外,在打开filtering的情况下,采集的IQ数据会从624减少的180个,请问这是做了怎么滤波处理?
  • 这个的数值还真没测过,不过应该差不多。你跑代码试一下就知道了