FMB140 Getting Started with AWS IoT Core

From Wiki Knowledge Base | Teltonika GPS
Main Page > CAN Trackers & Adapters > FMB140 > FMB140 Manual > FMB140 Getting Started with AWS IoT Core

Document Information


  • FMB140 (tracker) – GNSS tracking device manufactured by Teltonika Telematics.
  • Wiki – Teltonika IoT knowledge base -
  • FOTA – Firmware Over The Air.
  • Configurator – Tool to configure Teltonika Telematics devices.
  • Crowd support forum – knowledge base dedicated for Troubleshooting.

Revision History (Version, Date, Description of change)

Version Date Description
v1.5 2023.02.14 Links updated
v1.4 2022.12.19 Minor information update
v1.3 2022.11.29 Page created


FMB140 is an ADVANCED GSM/GNSS/Bluetooth tracker with integrated CAN data processor. It is compact 2 in 1 solution: GPS tracker and CAN adapter inside! Device allows to read CAN data from a wide range of various vehicles, including light & electric vehicles, trucks, buses and special machinery. Depending on exact software version FMB140 can be used in advanced applications as heavy logistics, delivery services, utility transport. Two options available to fulfill any business demands:

  • LV-CAN200 option – default software version with LV-CAN200 parameters, including fuel level, consumption, odometer, CAN speed, pedal position, Supported vehicle types: light vehicles, trucks, buses.
  • ALL-CAN300 option – advanced software version allows to read more parameters than default version. Available additional parameters include AdBlue level, engine lifetime, airbag. Supported vehicle types: light vehicles, trucks, buses + electric vehicles, agriculture, construction, forest, utility & special machineries.

Currently for MQTT solution evaluation firmware is required to be used - 03.27.10.Rev.520. For firmware supporting MQTT please contact your sales manager or contact directly via Teltonika Helpdesk.

Changes in firmware versions and update information can be found in device wiki page: FMB140 firmware errata

Hardware Description


FMB140 device data sheet can be downloaded here: FMB140 Datasheet

Standard Kit Contents


  • 10 pcs. of FMB140 trackers
  • 10 pcs. of Input/output power supply cables (0.9 m)
  • CAN functionality (LV-CAN200 or ALL-CAN300)
  • Packaging box with Teltonika branding

Teltonika suggest standard order codes for the device purchase, by contacting us, we can create special order code which would fulfill user needs.

More ordering information at: Ordering

User Provided Items

  • Power supply (10-30V).
  • MicroUSB to USB A cable.

Set up your Development Environment

Tools Installation (IDEs, Toolchains, SDKs)

FMB140 comes with our created firmware, therefore no additional development or scripting is required for this unit to support AWS IoT. Only by using Teltonika Configurator FM Configurator versions, connection point of AWS IoT server is required.

Other software required to develop and debug applications for the device

For debugging situations, device internal logs can be downloaded OTA by using our FotaWEB platform or by using Teltonika Configurator.

Set up your hardware

All details about FMB140 can be located in our dedicated wiki page FMB140

Setup your AWS account and Permissions

Refer to the online AWS documentation at Set up your AWS Account. Follow the steps outlined in the sections below to create your account and a user and get started:

NOTE – The examples in this document are intended only for dev environments. All devices in your production fleet must have credentials with privileges that authorize only intended actions on specific resources. The specific permission policies can vary for your use case. Identify the permission policies that best meet your business and security requirements. For more information, refer to Example policies and Security Best practices.

Create Resources in AWS IoT

Refer to the online AWS documentation at Create AWS IoT Resources. Follow the steps outlined in these sections to provision resources for your device:

NOTE – The examples in this document are intended only for dev environments. All devices in your production fleet must have credentials with privileges that authorize only intended actions on specific resources. The specific permission policies can vary for your use case. Identify the permission policies that best meet your business and security requirements. For more information, refer to Example policies and Security Best practices.

Provision the Device with credentials

Whole device, AWS IoT and testing information can be downloaded in PDF format here.

AWS IoT Core Configuration

Setting up AWS IoT Core

When logged in the AWS console, click on Services on the top left hand side screen, to access IoT core.

Figure 1. Accessing AWS IoT core from AWS console

After accessing AWS IoT core, select Manage on the sidebar on the left side, then select Things (Manage- >Things). And click on Create things.

Figure 2. Accessing Things

Afterwards for select Create single thing and click Next.

Figure 3. Creating single thing

After creating single thing, enter Thing’s name and in the Device Shadow tab select Unnamed shadow (classic). Then click Next.

Figure 4. Specifying thing properties

Then when selecting Device certificate, select Auto-generate a new certificate and click Next

Figure 5. Selecting Certificate

After this select Create policy to create it and attach it to Certificate. In the Create Policy window, enter Policy name. In the Policy document (1) tab for Policy Action (2) select * and for Policy resource enter * .

Figure 6. Creating policy for Certificate

After creating policy, return to Certificate tab (Seperate tab after pressing Create policy should‘ve popped out). Then select the created policy to attach it to the certificate and thing. After that click Create thing

Figure 7. Attaching created certificate and creating thing

Then window with Certificate files and key files download options should pop out. It‘s recommended to download all files, because later some of them will not be available for download. The files that are required for usage with FMX devices are: Device certificate (1), private key(2), and Amazon Root CA 1 file(3), but it‘s recommended to download them all and store them in secured place.

Figure 8. Certificate files download window

Finding device data endpoint (server domain)

To receive server domain (in AWS endpoint) click on the side bar on the left Settings. Or click on the side bar on left side Things, select the created thing, after it click Interact->View Settings. Whole path - (Things->*YourThingName*->Interact->ViewSettings). Page containing endpoint will open. Copy the whole endpoint address. Port for accessing this endpoint is 8883.

Figure 9. Device data endpoint

Configuring the device

Security and certificates

Find Certificate file ending with extension pem.crt Private key file and AmazoonRootCA1 file (no need to change filenames). These file should have been downloaded when creating Thing in AWS IoT Core.

Figure 10. Certificate files

Upload the mentioned files in the Security tab in the Teltonika Configurator.

Figure 11. Uploading certificates

After uploading certificates, go to System tab and in Data protocol section select - Codec JSON.

Figure 12. Selecting Data Protocol

Device GPRS configuration for AWS IoT Custom MQTT settings

In the GPRS tab, under Server Settings select:

  1. Domain – Endpoint from the AWS, Port: 8883
  2. Protocol – MQTT
  3. TLS Encryption – TLS/DTLS

In the MQTT Settings section select:

  1. MQTT Client Type – AWS IoT Custom
  2. Device ID – enter device IMEI (optional)
  3. Leave Data and Command Topics unchanged.

Save the configuration to the device.

Figure 13. GPRS Settings for MQTT AWS IoT Custom

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.

Figure 14. Subscribing to data topic

Incoming data is received in JSON format, for e.g.:

Figure 15. Received data format

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:

Figure 16. Sending Command in AWS IoT Core

The response to the command will be shown in the Data topic:

Figure 17. Response to a command in the data topic, the command was published in command topic


The information can be submitted to Teltonika HelpDesk and Teltonika engineers will assist with troubleshooting. For a more detailed information regarding what information should be collected for debugging, please visit the dedicated page on Teltonika Wiki.
Alternatively, Teltonika has a Crowd Support Forum dedicated for troubleshooting, where engineers are actively solving problems.


In the situation when the issue with information upload appears, device internal logs can be taken directly from device configuration software (instructions), via Terminal.exe by connecting selecting device USB connection port, or by receiving internal logs via FotaWEB in task section.