你好,
我在程式中有啟用
讓手機App接連裝置時必須先經過配對綁定,
但在使用IoT ToolBox OTAP後,在下一次進行連線時,
裝置就不認識該台手機導致無法正常使用特徵與服務,
請問OTA是會清除NVDS的嗎?
或者是我有什麼應該加入的設定呢?
Best Regards,
Corgi
Solved! Go to Solution.
Hi,
要么增加外部存储,要么你更新的image里包含绑定信息,自己去指定位置拿数据。你自己开发自己app,当然你自己说了算
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi Tic,
是否有 NXP 編譯 .bin 或是 .srec的 Format文件?
目前遇到在App將該Image資訊傳送到裝置時,需要ImageId, ImageVersion,
我該如何知道他在檔案中的哪裡呢?
補充:
我是使用MCUXpressoIDE 來生成檔案,
我需要了解各個資訊該如何取得(Image Version, Image Id, ImageFileSize, Data起始點),
感謝!!
有新问题,应该重新建一个post。image Id,就是1,不用改,image version应该是自己定义的,跟代码无关,iamgefile size也是app自己算出来,data起始点是0,不用改
你好,
我發現在傳送 Image chunk command時的第一個封包中,
前面有幾個Byte會傳送ImageFileHeader的資料
fileIdentifier
headerVersion
headerLength
fieldControl
companyId
imageId
imageVersion
headerString
totalImageFileSize
但是要如何從Image File (Srec,S19)中找出這些資料呢?
事实上,如果你的镜像文件里没有这个ota头,那么手机app自动加上去。如果有这个头,就直接用。这个头可以在test tool里生成,选择一个image file,然后再Save就可以获得有ota头的镜像
我剛剛使用了Test Tool 要生成這個Header,
但是按下Save的儲存檔案格式為 .bleota 這個檔案類型並不是.s19,.srec,
有辦法儲存為其他的檔案類型嗎?
謝謝
本质上就是一个bin文件,只不过前面多了几个字节,扩展名叫什么都无所谓,iot toolbox都是可以解析出来的。转成s19网上应该都能找到工具可以转
我知道Iot Toolbox可以解析出來,
但我要將這功能整合到我的App,
但是我現在不了解 是怎麼解析的,
我想知道 Image Header的資訊是編譯在檔案中的哪個部分,
因為我沒看到相關的說明,
但是ToolBox可以找到~
https://www.nxpic.org.cn/module/forum/thread-623069-1-1.html
image开头就是ota头,ble的application developer有写哪些位什么含义
Hi, @nxf56274
Header我已有自行增加,
但是我發現使用Test Tool 編譯出來的.bleota檔案的結尾會有多出一段代碼
00f0 2000 0000 e0ff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ff1f 00f1
0200 0000 c11d
是有什麼地方我沒有注意到嗎? 謝謝!
请重建一个新的post,谢谢
你可以看下Bluetooth Low Energy Demo Applications User Guide,它在sdk的doc目录下关于otap的一些介绍,Bluetooth Low Energy Application Developer Guide里有关于otap协议详细描述
你好,
我目前正是查看
"Bluetooth Low Energy Demo Applications User Guide" (5.19)
"Bluetooth Low Energy Application Developer Guide" (CH11)
這兩份文件,但是我沒看見,.srec / .s19檔案格式
還是你指定就是 “11.4 BLE OTAP image file format" 這個章節呢?
Hi,
是的,ota更新是需要擦写flash的,所以存的信息肯定被擦除了。
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi TIC,
那請問是否有解決的方法呢?
我原先認為只會清除普遍的Flash, 不會清除NVDS,
因為這讓OTA更新後手機就無法正常連線了,不會跳出再次配對與綁定的畫面。
另一個問題是,如果在自己App專案中新增OTAP功能,
韌體檔案的格式是否就不用和ToolBox所限制的檔案格式相同(.s19, .srec),我可以自行決定(.bin .hex ...)
Best Regards,
Corgi
Hi,
要么增加外部存储,要么你更新的image里包含绑定信息,自己去指定位置拿数据。你自己开发自己app,当然你自己说了算
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------