FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
+1 vote
646 views 3 comments
by anonymous

Hello,
We are running a project in which we need to hook up a bunch of RUT955 routers (FW ver.: RUT9XX_R_00.06.07) in different locations to send measurement data to a single server using Modbus RS485.

As such, it would be of great benefit to be able to send a unique identifier (Modbus slave ID - %i is not enough as it only returns the slave ID) along with the data to let us know from whence the data was sent.
Such as the unit's MAC address.

It is possible to simply write the MAC address manually into the JSON format in the data sender, but that is far from optimal and prone to error as different people and companies will have to do their own setup.


Is there a way where this can be done automatically in a way that allows us to simply use the same configuration profile for all routers but still get unique identifiers in the data they send?

by anonymous
Your requirements can be fulfilled, in case of running openwrt on the RUT955.

Doing this already for a special IoT project.

1 Answer

0 votes
by anonymous
Hello,

Unfortunately, there is no way to send a MAC address the same way you are sending a slave ID. You can only send the MAC address if you are reading it as a register from your slave device in the data string. Regarding the feature you want, it would require future development of our firmware and it is unknown if it is possible because not every slave device can send a MAC address.

Regards.
by

Thank you for the reply.
Would it be possible to get the MAC address of the RUT955 automatically to send it with the data?
Similar to the "WAN MAC address - %wm" and "LAN MAC address - %lm" in the SMS Configuration.

by anonymous

You can if your RUT955 works as a slave, but if your router operates as a master, then you cannot send it using operators as %vm or others. There is the only way as you mentioned before: 

It is possible to simply write the MAC address manually into the JSON format in the data sender, but that is far from optimal