Versions Compared

Key

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

Module description

...

Configuration

ACCESS status point

The configuration of a status point cyclic is present in the Exchanged_data configuration.

An attribute called "ts_syst_cycle" is added to allow the configuration of a status point as cyclic (in seconds).

Example :

Code Block
languagejs
 {
	"label" :"GAMBS_0_TS-SYST_ACCES",
	"pivot_id" :"xxx",
	"pivot_type" :"SpsTyp",
	"pivot_subtypes" : ["acces"],
	"ts_syst_cycle" :30
	"protocols" :[
	   {
		  "name" :"hnzip",
		  "typeid":"yyy",
		  "address":"zzz"
	   }
	]
 }

CONNEXION LOSS status point

The configuration of the status point in Exchanged_data includes the subtype of the status point. To configure a status point as PRT.INFO, the pivot_subtypes attribute is set to prt.inf.

Code Block
languagejs
 {
	"label" :"GAMBS_0_TS-SYST_ACCES",
	"pivot_id" :"xxx",
	"pivot_type" :"SpsTyp",
	"pivot_subtypes" : ["prt.inf"],
	"protocols" :[
	   {
		  "name" :"hnzip",
		  "typeid":"yyy",
		  "address":"zzz"
	   }
	]
 }

...

Filtering rules

ACCESS status point

The readings are transmitted without any check or modification.

CONNEXION LOSS status point

The readings are transmitted without any check or modification.

Data processing

ACCESS status point

Input

The cycling of the status point is not conditioned by the reception of data by the module.

Ouput

For each status point configured to be sent cyclically, the generated data is as follows:

...

CONNEXION LOSS status point

Input

The plugin listens to the status reading of the associated South service.

If the "connx_status" is in the "not connected" state, the plugin must generate a status point configured with the value 0.

If the "gi_status" is in the "finished" state, the plugin must generate a status piont configured with the value 1.

Output

The plugin generates the status point in its output as follows:

...

Here the Notification Rule plugin is used to detect changes in readings of type "south_event" and send a notification when a Connection Loss Status Point should be created containing the type of event it represents ("connected / not connected" / "connection lost").

The Notification Delivery plugin is used to send Access Status Point Readings periodically based on the exchanged_data configuration and to send Connection Loss Status Point Readings when receiving a notification from the Notification Rule plugin.

Notification structure:

Code Block
languagejs
 {
	"asset": "prt.inf",
	"reason": "connected" // or "connection_lost"
 }