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.

AWRL6432: 使用DCA1000和6432采集数据时,每次只采集2kb数据

Part Number: AWRL6432
Other Parts Discussed in Thread: DCA1000EVM,

您好,我使用DCA1000EVM_CLI_Control命令而不通过mmWaveStudio采集数据时,每次只能采集到2kb数据,我的采集步骤如下:

1. 通过DCA1000EVM_CLI_Control reset_ar_device和reset_fpga命令重置配置

2. 使用DCA1000EVM_CLI_Control fpga和record命令配置fpga,开启记录

3. 通过串口将MMWAVE_L_SDK_05_02_00_02\examples\mmw_demo\motion_and_presence_detection\profiles\xwrL64xx-evm\PresenceDetect.cfg送给AWRL6432

4. 使用DCA1000EVM_CLI_Control start_record开始采集同时向串口发送sensorStart 0 0 0 0命令启动雷达

每次都是采集2秒后就自动停止了,采集到的数据只有2kb,查看udp包只收到两个udp数据包

相关配置文件:

5140.PresenceDetect.cfg

  • 3. 通过串口将MMWAVE_L_SDK_05_02_00_02\examples\mmw_demo\motion_and_presence_detection\profiles\xwrL64xx-evm\PresenceDetect.cfg送给AWRL6432

    请问这一步具体是怎么操作的?

  • 打开6432对应的串口,每次读取一行配置,写入,相关函数如下:

    def _configure_radar(self, config):
        # Configure 6432 by serial port
        for i in config:
            # Skip empty line
            if(i == ''):
                continue
            # Skip comment line
            if(i[0] == '%'):
                continue
            # Stop on sensorStart command
            if (i == 'sensorStart'):
                break
            self.cli_port.write((i+'\n').encode())
            if (self.verbose):
                print('>>> ' + i)
                time.sleep(0.01)
                data=self.cli_port.read(self.cli_port.in_waiting)
                print(data)
            time.sleep(0.01)

  • 打开6432对应的串口,每次读取一行配置,写入,相关函数如下:

    请尝试把demo烧写到flash,然后通过visualizer发送cfg配置文件。