Description
This article will cover procedures on how to troubleshoot a device that uses FLESPI
Necessary information
Flespi authentication token
How to get Flespi Authentication Token?
Ask 2nd line to provide it, OR
Open a Jira Task to request the Flespi Token
Jira Project: Trust Track 2 (GUI)
Issue Type: Consultation
Issue Summary: Provide Flespi Token
Issue Description:
Please, provide Flespi Token. It will be used to troubleshoot third-party device communication issues and help to provide information when opening Bugs/Incidents.
Devices that we support through FLESPI
Device Manufacturer | Server IP | Server Port | Compatible Devices |
Teltonika | 4238.flespi.gw | 25786 | |
Queclink | 3801.flespi.gw | 27468 | |
Meitrack | 5070.flespi.gw | 36216 | |
Concox | 169.flespi.gw | 26742 | |
Calamp | 5071.flespi.gw | 33763 |
Data workflow
Third-party FM tracker generates record and send to a specifc server and port
A Flespi channel (a server IP/Port) receives the record)
Flespi interpreter this record and parse it according to each manufacturer device protocol
Flespi then saves this record according to its own parameter protocol (key-value)
Flespi sends this new record to a Queue (each channel has its own Queue), saying that a new record is available to be consumed
Our flespi-service which is actively listening to this queue, notices a new message, get that information and parses as Trust Track can understand it.
What is a Channel on Flespi?
A channel is an entry point for messages from tracking devices or other platforms. A channel operates via a single protocol which means that one channel can receive messages from tracking devices of one manufacturer. Channel has a unique dedicated host:port to point your tracking devices to.
What to check if no data is received from the third-party device on TT2?
Check if the respective channel is active on the Flespi application
If not, please raise an Incident
If it is, move to the next step
Check if the respective queue is active on the Flespi application
if not, please raise an Incident
If it is, move to the next step
Check if we are receiving data from devices in general in that channel.
if not, please raise an Incident
If it is, move to the next step
Check if we are receiving data for that specific device that the client is complaining
if not, proceed with the Third-party basic troubleshooting (pending creation)
If it is, move to the next step
How to login on Flespi platform
Login to https://flespi.io/
Click on the LOGIN / REGISTER button
A popup will open, click on the hightlighted option
Click on LOGIN BY TOKEN
Paste the TOKEN and click on the LOGIN button
You will be asked to save the token or not, its up to you, this token will remain saved for 31 days
After that, you're now logged in and will be redirected to the main dashboard
How to check if a Channel is active?
Assuming that you are logged in
Click on Telematics Hub on the left menu
Click on Channel (DO NOT CLICK ON THE + SIGN)
Check if the highlighted button is GREEN, if not, contact OnDuty
Check the traffic chart is updating every 10 seconds, if not this can be an indicator that records are not arriving.
How to check if a Session (Queue) is active?
Assuming that you are logged in
Click on MQTT on the left menu
Click in Sessions (DO NOT CLICK ON THE + SIGN)
The respective session should be GREEN (DO NOT CLICK ON THE RED CIRCLE)
Note: There can be multiple sessions for a given channel. For example, teltonika has 1 channel and 2 sessions. one called teltonika-1 and the other teltonika-2, be sure to check all sessions related to the respective channel you are troubleshooting
How to check if we are consuming (acquiring) messages from each Flespi Session (Queue)?
Assuming that you are logged in and on the main screen
Click on MQTT on the left menu
Click in Sessions (DO NOT CLICK ON THE + SIGN)
Look for the respective Session(queue) you would like to check, in this example, I looked for Teltonika's.
Look for the highlighted icon, as shown in the image below, it should not appear or it should have a number low number, also check the storage value, it should be zero or close to zero
This icon represents the number of PUBACK (publish acknowledgment) messages waiting in queue to be consumed by the client (Ruptela).
Our server consumes new messages periodically, that is why this icon should not be shown or its number should be low If we have a different situation (the number is high or the storage amount is high), then our clients might experience a "Data Delay" on Trust Track because we are not acquiring the new records that their devices are sending to Flespi.
How to check if we are receiving data from devices in general on a given channel?
Assuming that you are logged in
Click on Telematics Hub on the left menu
Click on Channel (DO NOT CLICK ON THE + SIGN)
Now click on the channel that you want to check (in this case I am clicking on Teltonika)
Click in LOGS & MESSAGES and wait (this can take 30s~1m to load)
Check if new messages are arriving and the timestamp
How to check if we are receiving data from a specific device?
Assuming that you are logged in
There are two ways
Now that you entered the Toolbox application using either two options listed above. Click in the Message textbox
Type this: ident="insertIMEIhere"
Using this IMEI as an example: 357544371058138
The command would be this: ident="357544371058138"
Hit ENTER
All records for this given IMEI will be displayed in ascending order by timestamp for the given timestamp on the right side of the textbox
More info on the toolbox can be found here: https://flespi.com/tools/toolbox