Modbus with Energiya board

Hi,
I’m trying to read modbus from a device which also has a RS485 connector. When i try to install the energiya app there are no error’s. When i look into octave there is no energiya resource:

When i go into my Mangoh Yellow using putty and run “app status” i see the app "Energiya "
afbeelding

I configured my modbus in the “services” tab.

After that wen i’m going to look into my resources. There is no data from the modbus.

Where is the problem? And how can i fix it?
Thank you in advanced!

1 Like

hi how to include libmodbus library in legato project, any sample available

@kalaivani

to include libmodbus you can use the linux source and the modbus recipe in your local.conf

hi included the libmodbus , but getting the following error
“undefined reference to modbus_connect'" " undefined reference to modbus_new_rtu’”
how to rectify the error… Thanks in advance

hi any c sample available to read multiple slave from the serial connection using libmodbus function, i would like to know in which slave id which sensor is connected?
i can able to read when slave id is configured as 1, but when i chanGE THE SLAVE Id as 2 i cant read anything

how to change slave id, what are the steps to be followed to change slave id using lib modbus
similarly step to be followed to read multiple salve id

tthanks in advance