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.

[参考译文] LPSTK-CC1352R:如何修改多传感器温度服务以发送128个样本(浮点)?

Guru**** 2392905 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1292808/lpstk-cc1352r-how-to-modify-the-multi-sensor-temperature-service-to-send-128-samples-float

器件型号:LPSTK-CC1352R

大家好、

我正在修改多传感器示例中的温度服务。 我 用我自己的代码替换了 profile_readSensor。 我要发送的数据是128个样本(浮点型)。 以下是我的代码。 我对该 BLE 编程不熟悉我尝试使用"for (char i=0;i<128;i++)"来发送所有数据,但它只能从 ADCdatareceiveBuffer[0]发送最后16个样本并缺少来自 ADCdatareceiveBuffer[111]的数据,请参见 pic 2。

1.您能帮助您了解如何将所有这些数据发送出去吗? 是否有可以参考的示例?

2.我还在'bStatus_t TMP117Profile_init (I2C_Handle *pHandle)'中添加一个 GIPO 中断来触发 SPI 传输以获取传感器数据。 但是、当运行该程序时、它无法工作。 服务无法响应 GPIO 中断。 你对此有什么建议吗?

马修