cc2541 disconnect 遇到不正常狀態
Dear Ti,
可以問一下,可以參考一下示波器這圖,當我disconnect from sensortag,但你看示波器的圖是有問題,然後只要發生問題我的sensortag就很像hang住一樣
請問什麼情況下才會發生呢?
正常的情況下應該是會馬上秀advertising。
Thanks
Ben
ben,
是否代码里面有地方没有推出循环之类,挂起了?
Dear Yan
May I ask cc2541 sensortag why oral_snv_write flash to RecordCountData array always stop on FD(253 byte)?
我想知道為什麼一直停在253這個byte?
RecordCountDate[2]
RECORD_COUNT_LEN=2
setHistroycount(++count);
void setHistroycount(uint16 count){
RecordCountData[0]=LO_UINT16(count);
RecordCountData[1]=HI_UINT16(count);
osal_snv_write(BLE_NVID_SENSOR_COUNTER,RECORD_COUNT_LEN,RecordCountData);
}
if use snv_osal_init() function to add before oral_snv_write function will skip FD issue but always return 10,
void setHistroycount(uint16 count){
RecordCountData[0]=LO_UINT16(count);
RecordCountData[1]=HI_UINT16(count);
status=osal_snv_write(BLE_NVID_SENSOR_COUNTER,RECORD_COUNT_LEN,RecordCountData);
if(status!=0)
{
snv_osal_init()
osal_snv_write(BLE_NVID_SENSOR_COUNTER,RECORD_COUNT_LEN,RecordCountData);
}
}
Do you provide me any solution?
Thanks a lot
Ben