多配置支持 - 如何设置应用程序 ID?
Multi-config Support - How to set application ID?
有谁知道发送、启用和使用多配置支持的方法/命令以便我可以存储特定于应用程序的数据?
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
命令,但没有用:
// set the application ID
AT*CONFIG_IDS=11,"00000000","00000000","00000000"
AT*CONFIG=12,"CUSTOM:application_id","2902050D"
关于我做错了什么有什么想法吗?
经过反复试验,似乎所有的配置名称都应该全部小写;尽管类别在开发人员指南示例中是大写的。
因此以下工作正常:
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
有谁知道发送、启用和使用多配置支持的方法/命令以便我可以存储特定于应用程序的数据?
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
命令,但没有用:
// set the application ID
AT*CONFIG_IDS=11,"00000000","00000000","00000000"
AT*CONFIG=12,"CUSTOM:application_id","2902050D"
关于我做错了什么有什么想法吗?
经过反复试验,似乎所有的配置名称都应该全部小写;尽管类别在开发人员指南示例中是大写的。
因此以下工作正常:
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