I got a new TRB143 M-Bus gateway (Firmware version: TRB1_R_00.07.12.3) and would like to connect it by means of an Ethernet connection to a router. At the SAME router also my computer is connected.
At the moment I can communicate with TRB143 only, if connecting it by means of an Ethernet cable directly with my computer.
An internet connection by means of a WAN interface is not working. I created two WAN intefaces. One based on DHCP whose status is down and to which no IP address is assigned to. The second WAN inteface has a static route and its status is UP with an assigned IP address but despite of it, there is no connectivity to the internet.
I very appreciate, if we can have an online session tommorrow at 10:00 o´clock local time Munich (same time zone as Berlin).
I have attached a screenshot of the WAN interfaces. If you need more configuration data, please let me know.
I have collected measurement data from the M-bus clients using the Test button. The time stamps inserted in the this client data by TRB143 show the correct date but the time is exactly one hour earlier as the time configured on the GUI of TRB143 (System → Administration → Date&Time → General → Time Synchronisation.
I guess this is due to the difference of one hour between summer and winter time in Europe. Is there a way to get this aligned?
For troubleshooting purposes, we will require more sensitive information from your end, such as the troubleshoot file, which may contain passwords, public IP addresses, serial numbers, and such. To avoid leaking this information, we have sent you a form to fill out, which you will receive in your e-mail inbox that you have registered your account with in the forums. In the Ticket ID field of the form, please enter the ID of this thread, which is 16933.
Simply download the firmware image to your PC, navigate to System → Firmware → Update Firmware in the WebUI, select update from File as shown in screenshot. And drag and drop the file. Once done, you should be able to update the firmware
thanks for your link. I installed the latest version: TRB1_R_00.07.20_WEBUI.bin
Unfortunately, there is still no internet access. The WAN and LAN IFs are there as before apart from saying now “Running” in both cases instead of “UP” as it was before. Probably just a changed GUI.
Do I have to install a new Package Manger, too, which I did not yet, but had a quick look and it looks a bit more triggy.
I am a bit under pressure … later the day I will test the gateway with another computer, but connected with the same router, will see what happens.
You wrote I shall fill out some form to provide some data for a remote access, I guess. I didn´t get this form at least nothing in my e-mail.
To better understand your requirements, could you please clarify the full use case and scenario in which you plan to use this device? Specifically, it would be helpful to know why a WAN connection is required and what you are ultimately trying to achieve.
Additionally, a network topology or schematic would be very useful in allowing us to assist you more effectively.
Please note that the Package Manager is installed by default and allows you to download additional packages if needed for your use case. A list of available packages for the TRB143 can be found here:
Regarding your question below:
Does your company have an outdoor temperature sensor with an integrated M-Bus slave?
Teltonika Networks does not offer M-Bus slave devices in its portfolio. However, the TRB143 supports connecting third-party M-Bus devices to the gateway and monitoring their data using the M-Bus protocol.
Any additional details you can provide will help us investigate your case further and offer more precise guidance.
so, my intended / needed topology is simple. I want to connect the TRB143 to an Ethernet swith. This swith is connected to a router (an AVM fritzbox). With this router also my computer / laptop is connected by means of WLAN / LAN (it depends). So that is everything.
As your device offers an ETH port, I thought my intended connectivity should be no problem. Acutally, my TRB143 does not need an access to www, only the local / private network is used to connect my computer (logically) with the TRB143 (the fritzbox has access to the www, of course).
By means of the described connectivity I want to regularily download the measurement data collected by the TRB143 from its connected M-Bus slaves, to my computer for further processing.
As already mentioned, later I connect the TRB143 with another computer within our private network to see, if it works there and let you know.
You can automatically send M-Bus data from the TRB143 to a PC/server on your local network
Network / LAN setup (TRB143)
Connect the TRB143 Ethernet port to your LAN (switch/FritzBox). If the switch is unmanaged and no VLANs are present, it should be in the same subnet as FritzBox.
In the TRB143 WebUI:
Network → LAN
Select LAN interface and click on edit.
Protocol: Static
IP address: in the same subnet as your FritzBox (e.g. 192.168.178.50)
Netmask: 255.255.255.0
Gateway: FritzBox IP (e.g. 192.168.178.1)
After saving, the TRB143 should be reachable from your PC via its LAN IP.
Additional information regarding LAN settings can be found here:
Note: Disable all WAN interfaces in Network->Wan
Configure M-Bus data collection
Enable M-Bus service
Add and test your M-Bus slaves
Create an M-Bus data collection group
Verify data is visible in the WebUI
This confirms the TRB143 is collecting measurements locally.
Additional information regarding M-bus configuration can be found here:
Configure Data to Server (local LAN)
In the WebUI:
Services → Data to Server → Add new
Data source: M-Bus
Collection group: your configured M-Bus group
Protocol: HTTP or MQTT
Server address: LAN IP of your PC
Example (HTTP): http://192.168.178.20:PORT/PATH
Example (MQTT): broker IP and topic
Save and enable the instance.
The TRB143 will now periodically push M-Bus data to your local PC/server over the LAN.
Additional information regarding Data to Server feature can be found here:
I changed the IP address following your advice and it is working (now, TRB143 can be reached via the fritbox).
.
Concering Point 3 of your last entry: Configure Data to Server (local LAN)
This feature looks pretty triggy, with a lot of settings. Moreover, I assume when configuring regular data download to my computer, I will be forced to have my computer running all the time, or at least during those times the gateway wants to send data to the server according to the schedule.
So, for me it would be enough when I have access to the file system of TRB143 at least to those directories, where the data collected from the slaves are stored. I would assume this data are stored in simple files and for example each line representing a measurment data set of a specific slave for a specific date and time.
After copying such a measurment file to my computer, the job of data collection would be done for me and I can start processing the data in Excel or a database, etc.
.
Time stamps of the collected measurement data
I have collected measurement data from the M-bus clients using the Test button. The time stamps inserted in this client data by TRB143 show the correct date but the time is exactly one hour earlier as the time configured on the GUI of TRB143 (System → Administration → Date&Time → General → Time Synchronisation.
I guess this is due to the difference of one hour between summer and winter time in Europe. Is there a way to get this aligned?
I have connected a view M-Bus clients to TRB143. Via the webGUI I can see collected measurement data from the clients using the Test button (Services → M-Bus→ Client → Data Collection Groups). The data looks complete and feasible so far.
I have configured the data collection from the connected M-bus clients so that all 5 minutes (300 sec.) measrement data are periodically collected.
Now, how can I transfer this collected measurement data to my computer?
Is there a software on my computer needed which must communicates with the TRB143 in order to transfer the data to my computer? If yes, which software and do I get this softare from Teltonika, or a third party (can you recommend one in case)?
Before provisioning the TRB143 I was told by Teltonika support, that the data collected from the clients are stored in a temporary directory and form there they can be copied using SSH (for example all five days). So, if this is true in which directory are the data stored (hopefully in a text based format like the data shown using the Test button)? This solution would be preferred by me, as it looks simply.
Is there another option to transfer the data to my computer?
Did you manage to synchronize the time correctly, or do you still require additional assistance with this matter?
If you plan to use your computer as a server to receive data from the M-Bus devices, you will need an M-Bus client application on your PC to read and interpret the incoming data. Teltonika does not provide an official application for this purpose, so you may use any third-party M-Bus client software that best suits your requirements.
The M-Bus data is stored in the gateway’s RAM, meaning there is no persistent file containing the readings that could be copied via SSH. As a result, it is not possible to simply copy or extract the data directly.
That said, it is technically possible to achieve this by using custom scripts that save the M-Bus readings into a file stored in the device’s flash memory. Please note, however, that writing and maintaining custom scripts is outside the scope of technical support.
Can you tell me please, is iobroker a suitable software to communicate with TRB143 and able to transfer the data collected by TRB143 from the slaves to a computer?
Maybe your colleagues can enhance the TRB143 software so that collected measurement data are stored in a file and then can be copied by an TRB143 user onto a remote computer. This would make the things a bit easier.
Depending on your specific use case, this software may be suitable. As Teltonika does not provide dedicated software for monitoring M-Bus data, a third-party application would be required to collect, interpret, and visualize the data.
To achieve such functionality with the current firmware, a custom script would be required to periodically copy the contents of the /tmp/run/mbus_db directory into a file format such as CSV. It would also be important to implement safeguards to prevent excessive flash memory usage - for example, by limiting file size or periodically rotating or deleting older data.
Please note that developing and maintaining custom scripts falls outside the scope of technical support, but this approach is technically feasible if implemented carefully.
Thanks for the hint to mbus_db. I have transferred the file to my PC and opened it with a SQLite viewer to check the data.
The directory /tmp/run/mbus_db shows only one file (4 MB) with the following data:
-rwxrwx— 1 mbus_cli mbus_cli 4194304 Jan 2 11:33 mbus_db*
What I am wonderring is, is there a limitation in the size of this file and / or the number of mbus_db* files which are generated by TRB143? If yes, can this be changed by the user? With current size of mbus_db file, measurement data of the connected M-Bus slaves can be stored for only a short period of time.
Your last community entry implies to me that the flash memory could be exhausted (at some point im time), but with current settings only 1.1 % is used, see following screen shot.
Thank you as well, and I wish you a Happy New Year!
If you use a script that reads data from the mbus_db file and stores it in another file located in the device’s flash memory, then yes - over time, it may eventually reach the flash memory limits. To avoid this, appropriate file size management or rotation logic would need to be implemented.
Regarding the exact size limitations and best practices in this scenario, I will consult our R&D team to obtain a precise and reliable answer. I will update you as soon as I receive further information from them.
It is possible to have multiple mbus_db files on the gateway; however, this would require manual management. For example, once the file reaches its limit, you could rename it (e.g., to mbus_db.old), create a new mbus_db file, and then restart the M-Bus service to continue data collection.
Regarding file size limitations, these cannot be configured. The mbus_db file has a hardcoded limit of 1024 entries, with each page being 4 KB in size.
I hope this answers your question. Please let me know if you need any further clarification.
In the meantime I created a small script that reads the mbus_db file and extracts only those lines of this file which I am interessted in. The extracted lines are automatically inserted into another file. In addition, I set up a cronjob which twice a day executes my script. So in this way I do not lose data collected from the slaves.
From time to time I have to manually copy the file which is periodically extended by the cronjob to my computer and, In order not to “overload” the flash memory, delete it manually.
So far it seems to work well with five slaves connected to TRB143. Soon, I will connect another meter and I hope it will work seemlessly apart from a small adaptation of my script.
I added a new meter to my TRB143. In the data retrieved from this meter a few things are missing / not clear. The vendor of the meter asks me for the raw data of its meter.
Is there a way to get the raw data of a connected slave before TRB143 “does something” with the sent slave data? Are raw data of the slaves stored in a file on TRB143?