Skip to content

Kamstrup MULTICAL 21 ultrasonic water meter with radio module 11

Notifications You must be signed in to change notification settings

adams-okode/kamstrup-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decrypting and decoding Sigfox meter data

This is an example for decrypting and decoding data from the Kamstrup MULTICAL 21 ultrasonic water meter with radio module 11 , communicating via Sigfox network. For reference, please see these documents:

The meter specific XML based key file and the Sigfox Data file can be downloaded from your MyKam- strup account https://www.kamstrup.com/en-en/my-kamstrup-login, see https://www.kamstrup.com/en-en/my-kamstrup-guides for help.

Deploy

mvn clean install 

This installs the package to your local repository

  String key = 'XXXXXXXXXXXXX' ;
  String meterRx = 'XXXXXXXXXXXXX';
  Kamstrup kamstrup = new Kamstrup(key, meterRx);
  kamstrup.packIDDRespones.toString();
  kamstrup.packageContent.toString();
  kamstrup.infoCodes.toString();

packIDDRespones

  {
    "loggingFrequency": "Daily",
    "resultDecimalPlaces": 3,
    "unitStructure": "m3|L/hr",
    "packageType": 1
  }

packageContent

  {
    "volume": 13.433,
    "infoCode": "3468",
    "minFlow": null,
    "maxFlow": 0.427,
    "minWaterTemperature": null,
    "minAmbientrTemperature": null,
    "maxAmbientTemperature": null
  }

infoCodes

  {
    "burstDuration": "1 - 8  Hrs",
    "leakDuration": "169 - 336 Hrs",
    "reverseDuration": "0 Hrs",
    "dryDuration": "337 - 504 Hrs",
    "burst": true,
    "leak": false,
    "reverse": false,
    "dry": false
  }

How To run

Incase you would like to use the compiled JAR

java -jar kamstrup-integration-1.0.jar {key} {data}