有沒有什麼文件說明 , 在 simpleBLEPeripheral 的項目基礎下 加入 battservice.c (battery services).
在軟件和硬件上需要如何改動才可達到要求?
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.
Yan,你好,参考keyfob例程的电池电量测量方法,移到simpleBLEPeripheral项目。
发现问题,通过读取BATT_LEVEL_UUID(0x2A19),获取电量,但是电量结果不够准确,
2.5V左右,测得为50%左右,而2.9V接近3V的电量,测得才为70%左右。
ADC配置没有改变,1.25V参考电压,9bit精度有效位。
这是什么原因呢?
Best Regards,
Key