TM Test harness command simulation (answer from support)

From Phobos Wiki
Jump to navigation Jump to search

Q: Is it possible to somehow send (simulate) a type 106 (delay acquisition command) to the controlled station?

I have tried the m101customASDUcmd command, but I am not sure about the 'data' variable part. Is there any other convenient way to simulate different type values or if not then is there any reference for random default valid values for type 106 command?

A: m101customASDUcmd is a plugin that we ship with the test harness.

It is not necessary to use this as we already support a m101ccdna command

There is a bug when returning the items in "datavariable" .

We are not filling in the "datavariable" properly for the response to m101ccdna.

It is labeled QCC which is wrong, and we don't get the value from the response. I have opened a change request to fix this but it does not effect the operation of the command.

TCL>m101ccdna ?

usage: m101ccdna [parameter1] [value1] ...

supported parameters are:

? : displays help

sector : sector id to send command on [0]

load : true to perform a load delay, false for delay acquisition (1, 0, true, false, on, or off) [false]

delay : propagation delay, only used if load = true (0 to 65535) in milliseconds [0]

timeout : response timeout (0 to 4294967295) in milliseconds [0]

cmdVariable : Tcl command to execute on command completion [none]

statVariable : Tcl variable in which to store command status [none]

timeVariable : Tcl variable in which to store command response time [none]

dataVariable : Tcl variable in which to store command response message data [none]

TCL>

TCL>m101ccdna datavariable mydata

1

TCL>showarray mydata

Contents of Array mydata

TCL> mydata(ASDU) = 3

TCL> mydata(COT) = 7

TCL> mydata(OBJ0,IOA) = 0

TCL> mydata(OBJ0,QCC) = 0x0

TCL> mydata(ORIGINATOR) = 0

TCL> mydata(PARSINGSTATUS) = Success

TCL> mydata(QTY) = 1

TCL> mydata(SQ) = 0

TCL> mydata(TYPE) = 106

MarkTomm 30. oktoober 2014, kell 15:15 (EET)