Modbus RTU - Multiple instances

Asked by William Sallum

Hi

Is it possible to make multiple serial connections (Modbus RTU Master and Slave) with libmodbus, using a RTOS ?

I need to run :
- 2 x Modbus RTU Slave tasks
- 1 x Modbus RTU Master task
on a embedded system (three serial ports).

Which library version do I have to use ?

Any help would be appreciated.

Thanks in advance

William.

Question information

Language:
English Edit question
Status:
Solved
For:
libmodbus Edit question
Assignee:
No assignee Edit question
Solved by:
Marco
Solved:
Last query:
Last reply:
Revision history for this message
Best Marco (emmeci) said :
#1

hi,
It's for sure possible; I'm using a customized version of libmodbus but in
my code I have several masters/slaves working together and sharing data.
My system is an embedded system based on buildroot, so I can use pthread and
mutexes for synchronization

Marco

On Mon, Apr 5, 2010 at 10:58 PM, William Sallum <
<email address hidden>> wrote:

> New question #106549 on libmodbus:
> https://answers.launchpad.net/libmodbus/+question/106549
>
> Hi
>
> Is it possible to make multiple serial connections (Modbus RTU Master and
> Slave) with libmodbus, using a RTOS ?
>
> I need to run :
> - 2 x Modbus RTU Slave tasks
> - 1 x Modbus RTU Master task
> on a embedded system (three serial ports).
>
> Which library version do I have to use ?
>
> Any help would be appreciated.
>
> Thanks in advance
>
> William.
>
> --
> You received this question notification because you are a member of
> Modbus Team, which is an answer contact for libmodbus.
>

Revision history for this message
William Sallum (wsallum) said :
#2

Thanks Marco, that solved my question.