Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each entry shall be mapped with the corresponding configuration function in the chosen implementation protocol library.

The present specification corresponds to the HNZ B1/TR mode working on a TCP/IP connection.

Attributes definition

AttributeDescriptionExpected valuesMandatory
namethis identifies the protocol stackiec104client, iec104server, tase2client, tase2server, 61850client, 61850server, etc...Yes
versionversion number of the configuration file2 digits x.y => x = major change, y = minor changeYes
connectionsarray of connections
Yes
connections.srv_ipIP address to remote IEC 104 serverIP addressYes
connections.portport number to remote IEC 104 serverdefault = 6001No
remote_station_addrremote server station address6 bitsYes
local_station_addrlocal server station address6 bitsYesremote_addr_in_local_stationremote address in local station0, 1 or 2Yes
Inacc_timeouttimeout before declaring the remote server unreachable (DF.GLOB.TS)default = 180 (seconds)No
max_sarmmax number of SARM messages before handing over to the passive path (A/B)default = 30No
to_socket
repeat_path_Amax number of authorized repeats for path Adefault = 3No
repeat_path_Bmax number of authorized repeats for path Bdefault = 3No
repeat_timeout
Time
time allowed for the receiver to acknowledge a frame,

After
after this time, the sender repeats the frame.default = 3000No
anticipation_rationumber of frames allowed to be
transmitted while waiting for
received without acknowledgement default = 3
default_msg_period
No
test
Test
_msg_send
Test
test message code in sending directiondefault = 1304
Yes
No
Test
test_msg_receive
Test
test message code in receiving direction
Yes
default = 1304No
gi_schedulescheduled time for General Interrogation sendingdefault = 99:99 (disabled)No
gi_repeat_countrepeat GI for this number of times in case it is incompletedefault = 3No
gi_timetime to wait for General Interrogation (GI) completiondefault = 255 (seconds)No
c_ack_timetime to wait before receving a acknowledgement for a control commanddefault = 10 (seconds)

Configuration JSON structure

Code Block
languagejs
{
   "protocol_stack":{
      "name":"hnzclient",
      "version":"1.0",
      "transport_layer":{
         "connections":[
            {
               "srv_ip":"192.168.0.10",
               "port":6001
            },
            {
               "srv_ip":"192.168.0.11",
               "port":6002
            }
         ]
      },
      "application_layer":{
         "remote_station_addr":12,
         "localinacc_station_addrtimeout":12180,
         "remote_addr_in_local_stationmax_sarm":030,
         "inaccrepeat_path_timeoutA":1803,
         "maxrepeat_path_sarmB":303,
         "torepeat_sockettimeout":13000,
         "repeat_path_Aanticipation":3,
         "repeatTest_pathmsg_Bsend":3"1304",
         "repeatTest_msg_timeoutreceive":3000"1304",
         "gi_schedule"anticipation:"99:399",
         "defaultgi_msgrepeat_periodcount":03,
         "Testgi_msg_sendtime":"1304"255,
         "Testc_msgack_receivetime":"1304"10
      }
   }
}

HNZ datapoint representation

...