Multiple Connections at slave in 2.0.3

Asked by Jeff

I need to support multiple connections to a modbus tcp server implemented with libmodbus 2.0.3. We're using 2.0.3 because it's officially the stable one, however the multiple connection example in the trunk was written against 2.1.0 (officially experimental).

I see a few options:
 * Convince me that 2.1.0 is as stable as 2.0.3 and then I'll just use the "bandwidth-slave-many-up.c" sample code as is with the newer library.
 * Back port selected 2.1.0 code to 2.0.3 so that it will support the "bandwidth-slave-many-up.c" sample code.
 * Roll my own code

Which approach do you recommend for maximum stability? I'll need an indication about the relative stability of 2.10 vs 2.0.3 if I migrate to 2.1.0.

(My platform is Linux 2.6)

Thanks,
Jeff

Question information

Language:
English Edit question
Status:
Answered
For:
libmodbus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stéphane Raimbault (sra) said :
#1

2010/8/25 Jeff <email address hidden>:
> New question #122711 on libmodbus:
> https://answers.launchpad.net/libmodbus/+question/122711
>
> I need to support multiple connections to a modbus tcp server implemented with libmodbus 2.0.3. We're using 2.0.3 because it's officially the stable one, however the multiple connection example in the trunk was written against 2.1.0 (officially experimental).
>
> I see a few options:
>  * Convince me that 2.1.0 is as stable as 2.0.3 and then I'll just use the "bandwidth-slave-many-up.c" sample code as is with the newer library.
>  * Back port selected 2.1.0 code to 2.0.3 so that it will support the "bandwidth-slave-many-up.c" sample code.
>  * Roll my own code
>
> Which approach do you recommend for maximum stability? I'll need an indication about the relative stability of 2.10 vs 2.0.3 if I migrate to 2.1.0.
>

I think the 2.9.1 release is more robust than 2.0.3, but the API is
new and not stable (but not very probable that it changes now before
final 3.0.0).
http://libmodbus.org

Stephane

Revision history for this message
Marco (emmeci) said :
#2

if you need now support for multiple connections,
you can use my code (https://code.launchpad.net/~emmeci/libmodbus/emmeci).
It's based on 2.0.3 but with several changes I added and one of them is
multiple connection support otherwise if you can use the official branch
it's better.

On Wed, Aug 25, 2010 at 4:11 PM, Jeff
<email address hidden>wrote:

> New question #122711 on libmodbus:
> https://answers.launchpad.net/libmodbus/+question/122711
>
> I need to support multiple connections to a modbus tcp server implemented
> with libmodbus 2.0.3. We're using 2.0.3 because it's officially the stable
> one, however the multiple connection example in the trunk was written
> against 2.1.0 (officially experimental).
>
> I see a few options:
> * Convince me that 2.1.0 is as stable as 2.0.3 and then I'll just use the
> "bandwidth-slave-many-up.c" sample code as is with the newer library.
> * Back port selected 2.1.0 code to 2.0.3 so that it will support the
> "bandwidth-slave-many-up.c" sample code.
> * Roll my own code
>
> Which approach do you recommend for maximum stability? I'll need an
> indication about the relative stability of 2.10 vs 2.0.3 if I migrate to
> 2.1.0.
>
> (My platform is Linux 2.6)
>
> Thanks,
> Jeff
>
> --
> 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
Stéphane Raimbault (sra) said :
#3

2010/8/25 Marco <email address hidden>:
> Marco proposed the following answer:
> if you need now support for multiple connections,
> you can use my code (https://code.launchpad.net/~emmeci/libmodbus/emmeci).
> It's based on 2.0.3 but with several changes I added and one of them is
> multiple connection support otherwise if you can use the official branch
> it's better.
>

Your branch description mentions « bug fixing » but the commits aren't
very explicit on the subject.
Do you have bug fixes in your branch not present in upstream?

Thank you,
Stéphane

Revision history for this message
Marco (emmeci) said :
#4

yes I'm sorry,
but I committed all the work I did in the past in one shot. Now I'm away,
when I'll be back I will try to do a compare against official 2.0.3 in order
to describe better what I did in order to do something more useful.

Excuse me again!

Marco

On Thu, Aug 26, 2010 at 12:15 AM, Stéphane Raimbault <
<email address hidden>> wrote:

> Question #122711 on libmodbus changed:
> https://answers.launchpad.net/libmodbus/+question/122711
>
> Stéphane Raimbault proposed the following answer:
> 2010/8/25 Marco <email address hidden>:
> > Marco proposed the following answer:
> > if you need now support for multiple connections,
> > you can use my code (https://code.launchpad.net/~emmeci/libmodbus/emmeci
> ).
> > It's based on 2.0.3 but with several changes I added and one of them is
> > multiple connection support otherwise if you can use the official branch
> > it's better.
> >
>
> Your branch description mentions « bug fixing » but the commits aren't
> very explicit on the subject.
> Do you have bug fixes in your branch not present in upstream?
>
> Thank you,
> Stéphane
>
> --
> 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
Stéphane Raimbault (sra) said :
#5

LinkedIn
------------

I'd like to add you to my professional network on LinkedIn.

- Stéphane Raimbault

Stéphane Raimbault
Open Source Project Leader and Software developer at Makina Corpus
Nantes Area, France

Confirm that you know Stéphane Raimbault
https://www.linkedin.com/e/-s5jm72-gl2146au-4h/isd/2469859650/-gnDYgbs/

--
(c) 2011, LinkedIn Corporation

Can you help with this problem?

Provide an answer of your own, or ask Jeff for more information if necessary.

To post a message you must log in.