-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I have been using dnp3-python to try and make a gateway for a specific project in my company and have noticed the following:
Sometimes the data is malformed:
- Case 1 :
- From: My outstation (Based on the class OutstationApplication)
- To : dnp3demo master.
- Result: data is correctly formed and consistent.
- Case 2:
- From: My outstation (Based on the class OutstationApplication)
- To : FreyrSCADA demo master.
- Result: Analog data is incorrect and appear truncated to integers. (i.e. 5.2 --> 5)
- Case 3:
- From: My outstation (Based on the class OutstationApplication)
- To : TriangleMicroWorks demo master.
- Result: Analog data is incorrect and appear truncated to integers. (i.e. 5.2 --> 5)
It appears the same with #51, though they check using Wireshark.
Also it appears I can't send any time with an analog point (or any other data type) whatever variation I use.
db_size = opendnp3.DatabaseSizes(
numBinary=config.get_Binary(),
numDoubleBinary=config.get_DoubleBinary(),
numAnalog=config.get_Analog(),
numBinaryOutputStatus=config.get_BinaryOutsput(),
numAnalogOutputStatus=config.get_AnalogOutput(),
numTimeAndInterval=0,
numCounter=0,
numFrozenCounter=0
)
outstation = OutStationApplication(
outstation_ip="0.0.0.0",
port=20000,
db_sizes=db_size
)
outstation.my_outstation.apply_update(opendnp3.Analog(value=float(5.2), flags=opendnp3.Flags(),time=opendnp3.DNPTime(value=10000)), 0)
# it doesn't show anywhere.And all the thanks for the great work 🙌🏿 .
Metadata
Metadata
Assignees
Labels
No labels