Changes

10 bytes removed ,  12:33, 10 February 2023
no edit summary
Line 5: Line 5:     
JSON is made up of two structures:
 
JSON is made up of two structures:
   
* A collection of name/value pairs. In various languages, this is known as an object, record, structure, dictionary, hash table, key list, or associative array.<br>
 
* A collection of name/value pairs. In various languages, this is known as an object, record, structure, dictionary, hash table, key list, or associative array.<br>
 +
* An ordered list of values. In most languages, this is implemented as arrays, vectors, lists, or sequences.<br>
   −
* An ordered list of values. In most languages, this is implemented as arrays, vectors, lists, or sequences.<br><br>
+
As this Codec is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language-independent but uses conventions that are widely known to programmers of the C family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal language for data exchange.<br>
 
+
JSON is an open standard file format and data exchange format used between FMBXXX devices and AWS IoT Shadow Service:<br>
As this Codec is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language-independent but uses conventions that are widely known to programmers of the C family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal language for data exchange.
  −
JSON is an open standard file format and data exchange format used between FMBXXX devices and AWS IoT Shadow Service:
   
Its basic principles are:<br>
 
Its basic principles are:<br>
      
* AVL data will be uploaded to Amazon Web Services IOT Shadow service.<br>
 
* AVL data will be uploaded to Amazon Web Services IOT Shadow service.<br>
   
* AVL data is JSON key-value based<br><br>
 
* AVL data is JSON key-value based<br><br>
      
Data sending procedure and logic are the same as sending to regular servers, except data is being packed to JSON document as required in Amazon Shadow service.<br>
 
Data sending procedure and logic are the same as sending to regular servers, except data is being packed to JSON document as required in Amazon Shadow service.<br>
Line 24: Line 19:  
This codec is required to use in the Amazon AWS console, it is important to note that AWS uses TLS encryption protocol, and it must be set up the FMBXXX device properly into the AWS IoT service.<br>
 
This codec is required to use in the Amazon AWS console, it is important to note that AWS uses TLS encryption protocol, and it must be set up the FMBXXX device properly into the AWS IoT service.<br>
   −
+
Since the firmware version '''03.28.00. Rev.00''' AWS JSON codec is supported.<br><br>
Since the '''03.28.00. Rev.00'''''Italic text'' AWS JSON codec is supported.<br><br>
      
'''AWS Shadow'''<br>
 
'''AWS Shadow'''<br>
Line 78: Line 72:  
     "240": 0
 
     "240": 0
 
   }                                                                                                                                                }
 
   }                                                                                                                                                }
'''Sending commands from AWS to device'''
+
==='''Sending commands from AWS to device'''===
 
Any SMS command, which is interpretable by the device‘s firmware, can be used to control the device that was setup in AWS.
 
Any SMS command, which is interpretable by the device‘s firmware, can be used to control the device that was setup in AWS.
SMS/GPRS commands:
+
SMS/GPRS commands:<br>
    
https://wiki.teltonika-gps.com/view/FMB_SMS/GPRS_Commands <br>
 
https://wiki.teltonika-gps.com/view/FMB_SMS/GPRS_Commands <br>
   −
 
+
The structure for the JSON:<br>
The structure for the JSON goes like this:<br>
      
'''{ "CMD": "<SMS_Command> <Input>" }'''<br>
 
'''{ "CMD": "<SMS_Command> <Input>" }'''<br>
      
An example for using the setdigout command:<br>
 
An example for using the setdigout command:<br>
    
'''{ "CMD": "setdigout 111" }'''
 
'''{ "CMD": "setdigout 111" }'''

Navigation menu