Topic

FAQ
Login Register
sig mesh stack中,flash sector erase对BLE connection或mesh的时序影响
Oct 10, 2023 11:11

/

A

/A

Telink support team,

目前遇到的情况是,手机APP连接mesh node, 对mesh node进行一些参数的配置,mesh node将配置的参数写入flash。 

请问:手机APP与mesh node处于BLE connected的状态下,我对flash sector进行erase,会对ble connection或mesh stack的时序有影响吗?

我只能获取到一些信息,比如从手册上看到,擦除一个sector的时间在150ms到500ms之间。 

比如mesh project source code中latency为0.

gap_periConnectParams_t my_periConnParameters = {20, 40, 0, 1000};


如果不能立即erase,那我的参数存储需要怎么处理呢?

多谢!


基于tlsr8258,mesh project, 


4 replies
TL_Soyo Oct 10, 2023 16:28
0
/A

你好,

  可以在主循环中保存到flash的,短暂的占用不会导致网络出现问题的。

youngbo830 [Author] Oct 10, 2023 16:58
0
/A

如果只是写flash的话,我知道是没问题的,因为占用的时间很少。


但是我是需要先擦除然后再保存的,从资料上看到,擦除操作是对sector进行,擦除一个sector的时间是150ms~500ms,我是想问这个擦除操作会不会影响其他?

TL_Soyo Oct 11, 2023 11:14
0
/A

不频繁擦除不会影响其他的,SDK会自动调整。

youngbo830 [Author] Oct 11, 2023 16:20
0
/A

谢谢!