SensorML 2.0 Examples

Complex Multiplexed Output

SensorML can support rather complex streaming multiplexxed output from a sensor or process. The example below is a real-case sensor that has a multiplexed data stream consisting of alerts, readings, status updates, identification messages, and maintenance reports. The robustly described message types are enclosed in a DataChoice which allows any of the messages to be output in any order and at any frequency required by the sensor. This example also demonstrates the use of AllowedValues and AllowedTokens within SWE Common Data.

A sample data stream is provided after the SensorML description.

 

The encoding of this data stream is specified in the SensorML description as TextEncoding with a comma separating tokens (or fields) and a space separating blocks (or records). A stream of sensor measurements returned by the URL might look like:

ID,2009-05-20T00:02:10.0Z,cbrn893624,267-45-982-20,Bob King,DAI,7562889888,bob@dai.com,"156 Nowhere St,someTown,GH 025466" READGS,2009-05-20T00:02:15.0Z,cbrn893624,,,0,BARS,None,24.4 READGS,2009-05-20T00:02:20.0Z,cbrn893624,,,0,BARS,None,24.5 READGS,2009-05-20T00:02:25.0Z,cbrn893624,,,0,BARS,None,24.6 READGS,2009-05-20T00:02:30.0Z,cbrn893624,,,0,BARS,None,24.6 READGS,2009-05-20T00:02:35.0Z,cbrn893624,,,0,BARS,None,24.8 ALERTS,2009-05-20T00:08:50.0Z,cbrn893624,ALERT,G-Agent,GB,3,BARS,Medium,24.8 READGS,2009-05-20T00:02:40.0Z,cbrn893624,,,0,BARS,None,24.8 READGS,2009-05-20T00:02:45.0Z,cbrn893624,,,0,BARS,None,24.9 ALERTS,2009-05-20T00:09:50.0Z,cbrn893624,ALERT,G-Agent,GB,4,BARS,High,24.9 READGS,2009-05-20T00:02:50.0Z,cbrn893624,,,0,BARS,None,24.9 READGS,2009-05-20T00:02:55.0Z,cbrn893624,,,0,BARS,None,24.5 ALERTS,2009-05-20T00:10:50.0Z,cbrn893624,DEALERT,G-Agent,GB,2,BARS,None,24.5 READGS,2009-05-20T00:03:00.0Z,cbrn893624,,,0,BARS,None,24.5 READGS,2009-05-20T00:03:05.0Z,cbrn893624,,,0,BARS,None,24.5 READGS,2009-05-20T00:03:10.0Z,cbrn893624,,,0,BARS,None,24.5 MAINT,2009-05-20T00:03:10.0Z,cbrn893624,Change_Sieve,FALSE,550.01 MAINT,2009-05-20T00:03:05.0Z,cbrn893624,Change_Sieve,TRUE,550.15 READGS,2009-05-20T00:03:05.0Z,cbrn893624,,,0,BARS,None,24.7 READGS,2009-05-20T00:03:10.0Z,cbrn893624,,,0,BARS,None,24.7 MAINT,2009-05-20T00:03:20.0Z,cbrn893624,None,FALSE,550.33 ...