Using one client to poll data from several servers
Hello, i am trying to use pydnp3 to get data from several dnp3 servers. I need assistance, please.
I have the similar problem where I try to connect multiple outstations to a single master.
Have you both reviewed this issue https://github.com/ChargePoint/pydnp3/issues/14 and also the opendnp3 documentation (the old documentation associated with the version in this library)?
i have reviewed the issue #14 and it can be noted that the remoteaddr does not change since he's running all the servers on the same IP. i want to know how i can change stack_config for each server and associate it with a channel.
@xernoxian What I came up with is to use a pooling scheme to recreate the channel and the master everytime to cover all the outstations. It works well as a work around, but I wonder if there is some native support for this one to many connections or multi-drop like connection.
I think there is subtlety in the methodology with opendnp3. The model is one master instance per outstation. Multiple masters can share a serial channel; e.g., RS-485 serial multi-drop configuration, where each master will subscribe to the master ID for which it is configured. If you are doing this over Ethernet, you just create one master per outstation IP address as the media is shared implicitly by the O/S and no channel sharing is needed (or possible) so opendnp3 doesn't implement that. Only for serial.