I’m trying to readout heat meters with M-Bus. The TRB is connected to the meter and is successfully recieving the data. I’m using a RUT240 as a MQTT Broker, if I test this Broker, it’s functioning as well. But the TRB is not sending any data. I configured it as in the examples in the teltonika wiki descripted.
Can somebody help?
Thank you very much!
Could you try setting up MQTT Broker on the TRB143? MQTT package can be downloaded from the package manager (Services → Package Manager → Packages). Enable the broker, and in the Data to Server instance specify the broker IP address as 127.0.0.1. You can connect to the broker from LAN by entering the TRB143 LAN IP address. Check if the data is being sent.
If it is, then the issue is most likely within the RUT240 reachability. In this case, I’d require your network topology, and how the RUT240 is being reached from the TRB143.
If the data does not appear, then this would require some further investigation. Since this would most likely involve a remote session, please contact our sales managers by filling out the Contact Us form here: Teltonika Networks - LTE Routers, Gateways & Modems for IoT
When I set up the Broker on the TRB, it’s working. The Publisher (TRB) and the Broker (RUT) are connected via an OpenVPN by their SIM-Cards directly. Is it possible, that I have to configure the firewall for that case?
Are you using the LAN IP address of the RUT240 to access the broker? You should be using the OpenVPN tunnel IP address of the RUT240. This can be found by logging into the CLI of the RUT240, and running the command ipconfig. This will return all interfaces and their IP addresses. One of them will be tun_xxxxx. It’s IP address should be used on the TRB140 to reach the broker on the RUT240.
The problem is, the openvpn is installed directlly on the sim card. so the router don’t know about that network and their IP adress. I know the SIM’s IP-adress and because i’m in that openvpn as well, i can reach the router with that IP adress. But with the MQTT Broker it doesn’t seem to work.
Please provide the screenshots of the RUT240 MQTT Broker settings, as well as the traffic rules found in the Network → Firewall → Traffic Rules menu. Please also provide the mobile IP addresses of both devices (since they are in the private range, they shouldn’t be reachable from anywhere else).