有没有人知道要发送的方法/命令,启用和使用多配置支持,以便我可以存储特定于应用程序的数据?
SDK 2.0开发人员指南提到AT*CONFIG_IDS
命令,但我无法使其正常工作。我正在尝试下面的示例命令:
// set the application ID
AT*CONFIG=12,"CUSTOM:application_id","2902050D"
// clear config ack
AT*CTRL=13,5,0
// set application description, using new app id
AT*CONFIG_IDS=14,"00000000","00000000","2902050D"
AT*CONFIG=15,"CUSTOM:application_desc","My SDK Test"
// clear config ack
AT*CTRL=16,5,0
// re-read config data
AT*CTRL=17,4,0
AT*CTRL=18,5,0
但是在返回的配置中,没有任何改变:
custom:application_id = 00000000
custom:application_desc = Default application configuration
我还尝试使用CUSTOM:application_id
命令为第一个CONFIG_IDS
config命令添加前缀,但无效:
// set the application ID
AT*CONFIG_IDS=11,"00000000","00000000","00000000"
AT*CONFIG=12,"CUSTOM:application_id","2902050D"
关于我做错什么的任何想法?
答案 0 :(得分:0)
经过一些试验和错误,似乎所有配置名称都应该是小写的;尽管开发人员指南示例中的类别是大写的。
因此以下工作正常:
AT*CONFIG=12,"custom:application_id","2902050D"
AT*CTRL=13,5,0
AT*CONFIG_IDS=14,"00000000","00000000","2902050D"
AT*CONFIG=15,"custom:application_desc","My SDK Test"
AT*CTRL=16,5,0
AT*CTRL=17,4,0
AT*CTRL=18,5,0