Forums - mfg_tool to write BLE address

3 posts / 0 new
Last post
mfg_tool to write BLE address
su.xg.vm
Join Date: 9 Dec 19
Posts: 1
Posted: Mon, 2019-12-09 19:13

Hi 

I want to write BLE address in OTPTLV subsystem by using mfg_tool. My board is ASSY20-YA999 with module YB209H1D0126. I downloaded the pacage qca4020-or-3-0_qca_oem_sdk-mfg.git from Createpoint  and build the image ..qca4020-or-3-0_qca_oem_sdk-mfg.git\target\quartz\mfg\m4agent\build\gcc\output and flash the image by qflash.py tool. but when I write BLE address or check otptlv status by using command: 

 mfg_tool --verbose --otptlv  --comm=23 --status

and got error:

Unexpected diag msg arrived while waiting for response:

13 4b 0b 07 01
 
when write ble address with command:
mfg_tool --verbose --otptlv --write --tag=1 --comm=23 --file ble.bin
got error:
OTPTLV write read from file. Bytes remaining: 16
 
OTPTLV write read from file. Return value: 16
 
OTPTLV write data to OTP_TLV:
33 22 11 aa bb cc 00 00 00 00 00 00 00 00 00 00
 
Unexpected diag msg arrived while waiting for response:
13 4b 0b 06 01 01 00 00 00 10 00 00 00 00 00 00
00
 
What does this error mean ? and  how to write BLE address with mfg_tool?
 
Thanks,
 
 
  • Up0
  • Down0
abhghos
Join Date: 27 Aug 18
Posts: 26
Posted: Mon, 2019-12-09 22:28
There is a syntax error in your attached command as you seem to miss the '=' symbol after the 'file' argument.
 
We could write/read/delete BLE address from OTP via mfg_tool.
You could understand the BLE address writing mechanism into OTP with following examples.
 
1. Writing BLE address first time
mfg_tool.exe --otptlv --write --tag=1 --comm=21 --verbose --file=myotp_11.bin // 0x11 11 11 11 11 11
 
2. Reading BLE address
mfg_tool.exe --otptlv --read --tag=1 --comm=21
OTPTLV tag=1 has 6 bytes
11 11 11 11 11 11
 
3. Rewriting BLE address second time
mfg_tool.exe --otptlv --write --tag=1 --comm=21 --verbose --file=myotp_22.bin // 0x22 22 22 22 22 22
 
4. Reading BLE address. Then, the first address will still be shown
mfg_tool.exe --otptlv --read --tag=1 --comm=21
OTPTLV tag=1 has 6 bytes
11 11 11 11 11 11
 
5. After deleting the first BLE address (the first address will be marked as invalid now), then we can read the second BLE address
mfg_tool.exe --otptlv --delete --tag=1 --comm=21
mfg_tool.exe --otptlv --read --tag=1 --comm=21
OTPTLV tag=1 has 6 bytes
22 22 22 22 22 22
 
Note: OTP has limited memory hence its not advisable to keep re-writing in the OTP section
  • Up0
  • Down0
su.xiu.ge
Join Date: 29 Dec 15
Posts: 4
Posted: Tue, 2019-12-10 00:29

Noted with thanks.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.