Skip to content

Instantly share code, notes, and snippets.

@jasonish
Last active August 29, 2015 14:20
Show Gist options
  • Save jasonish/6286c0aea816a7deffb5 to your computer and use it in GitHub Desktop.
Save jasonish/6286c0aea816a7deffb5 to your computer and use it in GitHub Desktop.
DNP3 logging sample.
"dnp3": {
// This is actually 16 bits of flags. Should the flags be broken out into a list of symbolic names?
//
// Examples:
// - List flags that are set.
// "iin": ["device_restart", "class_3_events"]
// - List state of all flags:
// "iin": {
// "device_restart": true,
// "device_trouble": false,
// "class_3_events": true,
// "class_2_events": false,
// "class_1_events": true,
// ...
// }
"iin": 0,
"application": {
"objects": [
{
"variation": 2,
"group": 60
}
],
"function_code": 129,
"sequence": 3,
// Another set of bits flags. Same thoughts as iin above.
"control": 195
},
"transport": 206,
"dst": 1,
"src": 10,
// Another set of bit flags. Same thoughts as iin above.
"control": 68,
"type": "response"
},
@jasonish
Copy link
Author

jasonish commented May 8, 2015

There is some precedence from flow logging to list out the true/false state for all flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment