我的想法是P1,P2设置为不同的测距范围,如P1为10m,P2为3m,P1为主发射与接收,P2为从接收。在起动时,发送P1为BURST/LISTEN ,P2为listen only,在达到记录时间时先读P2的测量结题,再读P1的测量结果,是否可行?
Shine:
可行,2个或多个 PGA460 sensor模块可以同步,数据可以单独读出。P1和P2是Px的缩写,是指PGA460的Preset 1和Preset 2配置,每个sensor模块我们用S1,S2來指示。
PGA460命令处理过程在PGA460 Array of Ultrasonic Transducers for Triangulation and Tracking应用报告里有详细的解释。
www.ti.com/…/slaa783.pdf下面是一些主要的步骤。
1. Send broadcast burst-and-listen command (CMD17/18).
2. Wait until the preset record length time expires. In this case, the customer will need to wait the equivalent of 10m (~62ms), since S1 will be configured for a 10m range maximum.
3. Send an ultrasonic measurement result command (CMD5) to read back the time-of-flight data from each device. It is possible to read back the data from S2 after ~20ms since its max range is only 3m while S1 is still recording up to 10m.
4. Convert time-of-flight data to one-way distance.