Connection - VDA5050 #
Meili FMS allows to use both MQTT and MQTTs connection protocols over TCP.
- MQTT connect to Meili broker using
mqtt.meilirobots.com
port 1883 - MQTTs connect to Meili broker using
mqtts.meilirobots.com
port 8883
Authentication #
Meili FMS authenticates clients using a Client ID and Password. In many common MQTT libraries and software, the Client ID corresponds to the username, and the password serves as a token.
Troubleshooting: Are you getting disconnected from the MQTT Broker?
There are several potential reasons for being disconnected from the broker:
-
Invalid Credentials: The broker will disconnect any client attempting to connect with invalid credentials. This includes incorrect or outdated Client IDs, usernames, or passwords. Ensure your credentials match those provided in Meili FMS.
-
Unauthorized Topics: Clients attempting to connect to unauthorized topics will be disconnected. Access to topics is validated against the manufacturer, serial number, and the VDA5050 topics:
- order
- state
- factsheet
- connection
- instantActions
- visualization
To verify if the issue is topic-related, try connecting to the broker without publishing or subscribing. If the connection is successful but disconnects upon subscribing, check and correct the topic names.
-
Duplicate Credentials: If two clients attempt to connect using the same Client ID and credentials, the broker will disconnect the older connection. Repeated simultaneous connection attempts by multiple clients can cause disruptions, leading to missed messages. Verify that no other device is trying to connect using the same robot’s credentials.
When connecting a robot, the FMS validates that the Client id is a valid id provided by Meili. The Client ID is called MQTT ID in our system. It starts with meili-agent-
followed by a unique code.
We authenticate a connection using a username and password:
- the username is the MQTT ID (Client id)
- the password is the token (password as shown in the fleet setup page)