Changes

no edit summary
Line 131: Line 131:  
# Protocol – MQTT  
 
# Protocol – MQTT  
 
# TLS Encryption – TLS/DTLS
 
# TLS Encryption – TLS/DTLS
 +
<br>
 +
In the MQTT Settings section select:
 +
# MQTT Client Type – AWS IoT Custom
 +
# Device ID – enter device IMEI (optional)
 +
# Leave Data and Command Topics unchanged.
 +
<br>
 +
Save the configuration to the device.
    +
[[File:AWS_MQTT_13.png|frameless|alt=|center|934x425px]]
 +
<div style="text-align: center;">Figure 13. GPRS Settings for MQTT AWS IoT Custom</div>
    +
== '''Run the demo'''==
 +
The data received from the device can be found in the MQTT test client, which can be found in the bottom of sidebar on the left.
 +
To see incoming data, subscribe to topic - *DeviceImei*/data . Or subscribe to # to see all incoming outgoing data in the Topics.
 +
[[File:AWS_MQTT_14.png|frameless|alt=|center|934x425px]]
 +
<div style="text-align: center;">Figure 14. Subscribing to data topic</div>
 +
Incoming data is received in JSON format, for e.g.:
 +
 +
[[File:AWS_MQTT_15.png|frameless|alt=|center|934x425px]]
 +
<div style="text-align: center;">Figure 15. Received data format</div>
 +
To send SMS/GPRS commands to the device, in the same MQTT test client window select Publish to a topic. Enter topic name - *DeviceIMEI*/commands . In the Message payload enter wanted GPRS/SMS command in following format and press Publish:
 +
 +
[[File:AWS_MQTT_16.png|frameless|alt=|center|934x425px]]
 +
<div style="text-align: center;">Figure 16. Sending Command in AWS IoT Core</div>
 +
The response to the command will be shown in the Data topic:
 +
 +
[[File:AWS_MQTT_17.png|frameless|alt=|center|934x425px]]
 +
<div style="text-align: center;">Figure 17. Response to a command in the data topic, the command was published in command topic</div>
   −
== '''Run the demo'''==
   
== '''Debugging''' ==
 
== '''Debugging''' ==
 +
In the situation when the issue with information upload appears, device internal logs can be taken directly from device configuration software ([[FMM130_Status_info#Maintenance|instructions]]), via Terminal.exe by connecting selecting device USB connection port, or by receiving internal logs via FotaWEB in [[FOTA_WEB_Devices#Create_Task|task section]].
 +
 
== '''Troubleshooting''' ==
 
== '''Troubleshooting''' ==
 +
 +
The information can be submitted to Teltonika HelpDesk and Teltonika engineers will assist with troubleshooting. General information what information should be collected described [[What_debug_information_should_be_collected?|here]].
 +
<br>
 +
Alternatively, Teltonika has a Crowd Support Forum dedicated for troubleshooting, where engineers are actively solving problems.