Skip to content

Outstation data are sometimes malformed. #54

Description

@HushmKun

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:

  1. Case 1 :
    • From: My outstation (Based on the class OutstationApplication)
    • To : dnp3demo master.
    • Result: data is correctly formed and consistent.
  2. 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)
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions