Modbus RTU integration via RS485 and data transmission to web application (Datacake)

I want to communicate with my modbus RTU device via the RS485 using the RUT906. I have implemented the modbus functionality as shown in the pictures below and was successfull at reading the data coming from the slave device.

I now want to transmit that data to my web application (Datacake).

How should I proceed,

Thanks

Hello,

To give you a short answer - you need to use Data To Server to forward the read data to your server, here’s a guide on how to set it up: RUT906 Data to Server - Teltonika Networks Wiki

Regards,
M.

Hello.

Thank you for the prompt response. I’m trying to implement the functionality but I’m a bit unsure about how to proceed at the time being (Could you, please, shed some light?).

Furthermore, is it possible to see the data being read from the Modbus slave in real time directly on the RUT906 webUI without having to use “test” functionality? (That is, it shows me the data being read dynamically).

Thanks in advance.

Hello!

To explain basically - your current Modbus serial client setup is now reading data, and in order to send/forward it, you’ll have to set up data to server.

Your configuration will have to look something like the following:


The first section is setting up the data that is being read, basically, we’re selecting Modbus as the data type that we’re reading & which we want to send to the server. Regarding the value type, this will depend on what you want.

In here, you’re setting up the periods for collecting/sending the data.

The last section is selecting what type of server you’re forwarding the data to, and adding things such as credentials, addresses, certificates, etc.

In theory, setting up data to the server & receiving the data to said server is basically this. I don’t believe there’s any other user-friendly way of achieving this. You may be able to view the logs of our device, but this won’t produce clean-looking data logs.

Regards,
M.

Hello, Matas!

Thank you for your response.

I did that (Please see images) and I am still not receiving anything on my server.

Can you shed some light on the issue?

Thank you very much in advance.

Joandy

Hello,

1st screenshot - enable retry, in case we’ll have to debug what’s happening.
2nd screenshot - Since we’re using an HTTPS link, I believe the Secure Connection option will have to be enabled
3rd screenshot - Probably optional, but try enabling Send as object too.

Regards,
M.

Hello again,

I did the suggested changes except for the “secure connection” as I don’t have the required file being asked.

Hi there,

Apologies for not noticing sooner, but the link of the server address you’ve input is an API endpoint, which will not work. Unfortunately, there isn’t an option in data to server to write directly to API endpoints. Are you positive that there isn’t a specific server address on the other end that you could copy?

Regarding the secure connection option, I believe it won’t be required if you use the correct link. If you do, and it still doesn’t work, then perhaps the server (datacake) has an option to generate certificates which can then be uploaded here.

You are very close I believe, just need to find the correct address.

Regards,
M.

Hello.

I only have this link available.

So, there is no way of doing what I’m trying to do?

Regards,

Joandy

Hello again,

From my application server the link I’m using is presented as an HTTP endpoint URL. So, it should work, right?

Kind regards,

Joandy

Hello, Joa,

The link contains the word api in it, giving us the idea that it is an api endpoint that you’re trying to make a request to, which will not work. I’ve never used Datacake in my case, so we don’t really know how it functions, but perhaps there would be a way to contact their support to find out whether generating a proper server address is 100% not possible?

Regards,
M.

Hello,

I just wanted to update you on the situation.

I was able to transmit the data to the application server.

Now I can continue to work on the next steps, one of which being to send data from more than one slaves.

This is my set up:

However, I can’t turn both test and test2 on at the same time (The idea is that test and test 2 are two different Modbus rtu slaves).

Can you help, please?

Thanks in advance.

Hi,

I’m a little confused here - the RUT956 has 1x RS485 & 1x RS232 port - how do you have 2 separate devices connected to the same RS485 port? Are you using some type of splitter?

Regards,
M.

Hello,

I’m actually simulating the device. The idea is that I can connect different devices in a daisy chain and get the data via the RUT906.

Hello,

When you press “Edit” on both of the devices, can you ensure that the Server ID values on both of these are different? For example, one of them should be ID 1, other ID 2, if configuration is required on the end-devices themselves, you have to change the IDs as well.

We also have to ensure that these two devices are seen as different servers, not as 1 single server.

Regards,
M.

This topic was automatically closed after 60 days. New replies are no longer allowed.