你好:
我们在使用CC2640R2 RTLS ToF 上遇到了一些问题。
1. 在使用官方的例程、PC端网页上没有问题
2. 在PC端软件移植到嵌入式端上,我们不知道距离数据如何换算。
ToF 设置参数:0x01,0x00,0x01,0x04,0xC9,0x00,0x00,0x68,0x09,0x6C,0x09,0x72,0x09,0x78,0x09
RTLS_CMD_TOF_RESULT_DIST 数据为:0x01 0x00 0xD0 0xDB 0x4D 0xB8 0xC1 0x40 0xDC
其中:0xDC 是RSSI的值,这个我们知道。
0x01 0x00 0xD0 0xDB 0x4D 0xB8 0xC1 0x40 这个是距离,我们也知道
我们同时也知道,这个是多个采样的值。但是不知道如何换算成实际距离的值?
3. 如果是 RTLS_CMD_TOF_RESULT_RAW
如何用:
typedef struct __attribute__((packed))
{
uint16_t freq;
double tick;
double tickVariance;
int8_t rssi;
uint32_t numOk;
} rtlsTofResultStat_t;
换算出实际距离值?
Alvin Chen:
In the true distance calculation, we must account for calibration. Calibration will be covered in depth in the Calibrate section. For now, assume the calibration value is measured in ticks and is 484.
计算方法如下;
http://dev.ti.com/tirex/explore/content/simplelink_cc2640r2_sdk_3_10_00_15/docs/blestack/ble_user_guide/html/ble-stack-3.x-guide/localization-index.html#tof-modes-of-operation
TI中文支持网


