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.

PGA460-Q1: 串口通信

Part Number: PGA460-Q1
Other Parts Discussed in Thread: PGA460, ENERGIA

我想通过控制MSPF5529来控制PGA460将echo data dump 通过串口输出到电脑请问程序怎么改

  • 您好,

    我这不支持代码的修改,我去E2E论坛帮您问下,看下他们是否有好的建议

  • “ GetDistance ” Energia 示例已支持显示echo data dump的结果。 您可以通过运行代码示例,打开终端并为终端提供数字输入来配置设备设置来实现此目的。 下图显示了一个打印到 Energia 串行端口的响应示例。

    对于图片中显示的item #9 (蓝色箭头旁边) ,输入一个值 1 (P1 突发和侦听) 或 2 (P2 突发和侦听) 的值将配置设备执行回波数据转储操作。 此操作的结果显示在图片中红色箭头旁边的行中。

    GetDistance 文件中的以下代码片段将专门启动和打印回波数据转储结果,其中: edd=1, P1 突发和侦听操作;edd=2, P2 突发和侦听操作

    复制出为:

    Serial.println("Retrieving echo data dump profile. Wait...");

    ussc.runEchoDataDump(edd-1); // run preset 1 or 2 burst and/or listen command

    Serial.print(ussc.pullEchoDataDumpBulk());

    Serial.println("");