PLS63-W issues to formate the json string | Thales IoT Developer Community
May 20, 2022 - 10:59am, 1043 views
HI,
I am sending this ATcmd:
AT^SISD=1,"setParam",hcContent,"{\"current_fw_title\": \"Initial\",\"current_fw_version\": \"v0\"}"
Responce:
+CME ERROR: invalid characters in text string
I have set:
AT^SISS=1,alphabet,"1"
I have also tried '\7B' and '\7D' and '\5F' for '{' '}' '_' , but still the same.
If I remove '{' and '}' and '_' it works.
How do I format these characters so AT^SISD accept the format?
Cinterion
PLS63-W
REVISION 01.002
A-REVISION 01.000.06
Cinterion
PLS63-W
REVISION 01.002
A-REVISION 01.000.06
Hello,
Does it also happen when you set this with AT^SISS command? It should be the same but it's worth checking. I just tried your string with SISS and it worked. Did not try SISD yet. But I have newer firmware. I'd have to find the older version to verify.
BR,
Bartłomiej
Hello,
Thank you for coming back so fast.
This ^siss string works(I have done this setting with HTTP a lot):
at^siss=1,"hcContent",{\"sharedKeys=fw_checksum\",\"sharedKeys=fw_checksum_algorithm\",\"sharedKeys=fw_title\",\"sharedKeys=fw_version\"}"
Response: OK
It is this string/setting:
AT^SISD=1,"setParam",hcContent,"{\"current_fw_title\": \"Initial\",\"current_fw_version\": \"v0\"}"
Response: +CME ERROR: invalid characters in text string
that does not work.
I tried: AT^SISD=1,"setParam",alphabet,"1" - but it does not work.
Response: +CME ERROR: operation not allowed
It seems to be problems with formatting/sending JSON format with MQTT.
BR
Christian
Hello,
Can you also verify if ^SISD - JSON formatting works with newer firmware, please.
BR
Christian
Hello,
It seems that it's the same. For now I'm not sure why.
But this is not the only way to dynamically send the contents to MQTT. It is also possible with AT^SISU and AT^SISW commands.
BR,
Bartłomiej