Skip to content

Commit caa95bd

Browse files
authored
Update Log parser (#1396)
1 parent 7a24f10 commit caa95bd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Logparser/logparser.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ var types = {
221221
//mysgw: Client 0: 0;0;3;0;18;PING
222222
var rprefix = "(?:\\d+ )?(?:mysgw: )?(?:Client 0: )?";
223223
var match = [
224+
225+
// MySensors core
226+
224227
{ re: "MCO:BGN:INIT CP=([^,]+)", d: "Core initialization with capabilities <b>$1</b>" },
225228
{ re: "MCO:BGN:INIT (\\w+),CP=([^,]+),VER=(.*)", d: "Core initialization of <b>$1</b>, with capabilities <b>$2</b>, library version <b>$3</b>" },
226229
{ re: "MCO:BGN:INIT (\\w+),CP=([^,]+),REL=(.*),VER=(.*)", d: "Core initialization of <b>$1</b>, with capabilities <b>$2</b>, library version <b>$4</b>, release <b>$3</b>" },
@@ -244,6 +247,11 @@ var match = [
244247
{ re: "!MCO:SLP:TNR", d: " Transport not ready, attempt to reconnect until timeout" },
245248
{ re: "MCO:NLK:NODE LOCKED. UNLOCK: GND PIN (\\d+) AND RESET", d: "Node locked during booting, see signing documentation for additional information" },
246249
{ re: "MCO:NLK:TPD", d: "Powerdown transport" },
250+
{ re: "!MCO:PRO:RC=(-?\\d+)", d: "Recursive call detected in _process(), call level=<b>$1</b>" },
251+
{ re: "!MCO:WAI:RC=(-?\\d+)", d: "Recursive call detected in wait(), call level=<b>$1</b>" },
252+
253+
// transport state machine
254+
247255
{ re: "TSM:INIT", d: "Transition to <b>Init</b> state" },
248256
{ re: "TSM:INIT:STATID=(\\d+)", d: "Init static node id <b>$1</b>" },
249257
{ re: "TSM:INIT:TSP OK", d: "Transport device configured and fully operational" },
@@ -272,6 +280,9 @@ var match = [
272280
{ re: "TSM:FAIL:CNT=(\\d+)", d: "Transition to <b>Failure</b> state, consecutive failure counter is <b>$1</b>" },
273281
{ re: "TSM:FAIL:PDT", d: "Power-down transport" },
274282
{ re: "TSM:FAIL:RE-INIT", d: "Attempt to re-initialize transport" },
283+
284+
// transport support functions
285+
275286
{ re: "TSF:CKU:OK,FCTRL", d: "Uplink OK, flood control prevents pinging GW in too short intervals" },
276287
{ re: "TSF:CKU:OK", d: "Uplink OK" },
277288
{ re: "TSF:CKU:DGWC,O=(\\d+),N=(\\d+)", d: "Uplink check revealed changed network topology, old distance <b>$1</b>, new distance <b>$2</b>" },

0 commit comments

Comments
 (0)