Versions Compared

Key

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

...

To process COSEM data with Odysseus, you can use the IEC 62056 protocol handler. The protocol handler offers different configurations for ACCESS-Operator and SENDER-Operator:

  • ACCESS-Operator has to specify the type format of the COSEM data and a mapping to the logical name of the smart metering device name
    • type can either be XML or JSON
    • smgwDeviceName relates to the data field that specifies the logical name of the smart meter gateway. It has to map to an entry of the given schema
  • SENDER-Operator has to specify a predefined json schema, because the IEC 62056 protocol handler transforms a tuple to a JSON string

...

Code Block
titleGetDataFromKafka
#PARSER PQL
#RUNQUERY
kafka := ACCESS({
            source='kafka',
            wrapper='GenericPush',
            transport='Kafka',
            protocol='DLMS/COSEM',
            datahandler='Tuple',
            options=[
              ['topic', 'topic_name'],
              ['messagetype', 'string'],
              ['bootstrap.servers', 'localhost'],
              ['type', 'json'],
              ['smgwDeviceName', 'smgw_logical_name']
            ],
   		 schema=[
		    ['smgw_logical_name','String'], ['logical_name', 'String'], ['unit', 'Integer'],
		    ['status', 'String'], ['scaler', 'Integer'],['capture_time', 'long'], ['value','Double']]                                                                                                                                                                                                                                                    
          }                                                                                                                                                                                                                                
        )

It is recommended to only use the TupleDataHandler for processing COSEM data.

Anchor
pcap
pcap
Pcap

The protocol itself

...