[
{
"timestamp": 0,
"recordType": "Start",
"recordData": "Standalone"
},
{
"timestamp": 0,
"recordType": "Version",
"recordData": "2020041"
},
{
"timestamp": 0,
"recordType": "Send/Expect Data",
"recordData": "Timeout seconds: 3\nSend : sta\\r\nExpect: Output\n"
},
{
"timestamp": 1,
"recordType": "Connection Started",
"recordData": "192.168.1.166:5001"
},
{
"timestamp": 10,
"recordType": "Connection Completed",
"recordData": "192.168.1.166:5001"
},
{
"timestamp": 10,
"recordType": "Send",
"recordData": "sta\\r"
},
{
"timestamp": 10,
"recordType": "Data Sent",
"recordData": null
},
{
"timestamp": 10,
"recordType": "Expect",
"recordData": "Output"
},
{
"timestamp": 10,
"recordType": "Received Buffer Contains",
"recordData": ""
},
{
"timestamp": 54,
"recordType": "Received Bytes",
"recordData": "87"
},
{
"timestamp": 54,
"recordType": "Received Buffer Contains",
"recordData":
"sta\r\n<status>TA</status>\r\n-----------------------------------------------------------\r\n"
},
{
"timestamp": 94,
"recordType": "Received Bytes",
"recordData": "171"
},
{
"timestamp": 94,
"recordType": "Received Buffer Contains",
"recordData":
"sta\r\n<status>TA</status>\r\n-----------------------------------------------------------\r\n--\t\t
Key Digital Systems STATUS
--\r\n-----------------------------------------------------------\r\n--
KD-8x8CS System Address = 00 F/W Version 1.9 --\r\n"
},
{
"timestamp": 133,
"recordType": "Received Bytes",
"recordData": "197"
},
{
"timestamp": 133,
"recordType": "Received Buffer Contains",
"recordData":
"sta\r\n<status>TA</status>\r\n-----------------------------------------------------------\r\n--\t\t
Key Digital Systems STATUS
--\r\n-----------------------------------------------------------\r\n--
KD-8x8CS System Address = 00 F/W Version 1.9 --\r\n--
\t\t --\r\n-- Power : On
\t\t --\r\n-- Front Panel Buttons Enable \t\t --\r\n--
\t \t\t --\r\n"
},
{
"timestamp": 177,
"recordType": "Received Bytes",
"recordData": "200"
},
{
"timestamp": 177,
"recordType": "Received Buffer Contains",
"recordData":
"sta\r\n<status>TA</status>\r\n-----------------------------------------------------------\r\n--\t\t
Key Digital Systems STATUS
--\r\n-----------------------------------------------------------\r\n--
KD-8x8CS System Address = 00 F/W Version 1.9 --\r\n--
\t\t --\r\n-- Power : On
\t\t --\r\n-- Front Panel Buttons Enable \t\t --\r\n--
\t \t\t --\r\n-- Video Input 01 : EDID =
HDMI OUTPUT 01 \t\t --\r\n-- Video Input 02 : EDID = HDMI OUTPUT 02
\t\t --\r\n-- Video Input 03 : EDID = HDMI OUTPUT 01 \t\t --\r\n-- Video
Input 04 : EDID = DEFAULT 09 \t\t --\r\n"
},
{
"timestamp": 214,
"recordType": "Received Bytes",
"recordData": "188"
},
{
"timestamp": 214,
"recordType": "Received Buffer Contains",
"recordData":
"sta\r\n<status>TA</status>\r\n-----------------------------------------------------------\r\n--\t\t
Key Digital Systems STATUS
--\r\n-----------------------------------------------------------\r\n--
KD-8x8CS System Address = 00 F/W Version 1.9 --\r\n--
\t\t --\r\n-- Power : On
\t\t --\r\n-- Front Panel Buttons Enable \t\t --\r\n--
\t \t\t --\r\n-- Video Input 01 : EDID =
HDMI OUTPUT 01 \t\t --\r\n-- Video Input 02 : EDID = HDMI OUTPUT 02
\t\t --\r\n-- Video Input 03 : EDID = HDMI OUTPUT 01 \t\t --\r\n-- Video
Input 04 : EDID = DEFAULT 09 \t\t --\r\n-- Video Input 05 : EDID =
DEFAULT 09 \t\t --\r\n-- Video Input 06 : EDID = DEFAULT 09 \t\t
--\r\n-- Video Input 07 : EDID = DEFAULT 09 \t\t --\r\n-- Video Input 08
: EDID = DEFAULT 09 \t\t --\r\n"
},
{
"timestamp": 254,
"recordType": "Received Bytes",
"recordData": "157"
},
{
"timestamp": 254,
"recordType": "Received Buffer Contains",
"recordData":
"sta\r\n<status>TA</status>\r\n-----------------------------------------------------------\r\n--\t\t
Key Digital Systems STATUS
--\r\n-----------------------------------------------------------\r\n--
KD-8x8CS System Address = 00 F/W Version 1.9 --\r\n--
\t\t --\r\n-- Power : On
\t\t --\r\n-- Front Panel Buttons Enable \t\t --\r\n--
\t \t\t --\r\n-- Video Input 01 : EDID =
HDMI OUTPUT 01 \t\t --\r\n-- Video Input 02 : EDID = HDMI OUTPUT 02
\t\t --\r\n-- Video Input 03 : EDID = HDMI OUTPUT 01 \t\t --\r\n-- Video
Input 04 : EDID = DEFAULT 09 \t\t --\r\n-- Video Input 05 : EDID =
DEFAULT 09 \t\t --\r\n-- Video Input 06 : EDID = DEFAULT 09 \t\t
--\r\n-- Video Input 07 : EDID = DEFAULT 09 \t\t --\r\n-- Video Input 08
: EDID = DEFAULT 09 \t\t --\r\n--
\t\t\t --\r\n-- Video Output 01 : Input = 01, Output =ON \t --\r\n--
Video Output 02 : Input = 05, Output =ON \t --\r\n"
},
{
"timestamp": 254,
"recordType": "Expect Matched",
"recordData":
"sta\r\n<status>TA</status>\r\n-----------------------------------------------------------\r\n--\t\t
Key Digital Systems STATUS
--\r\n-----------------------------------------------------------\r\n--
KD-8x8CS System Address = 00 F/W Version 1.9 --\r\n--
\t\t --\r\n-- Power : On
\t\t --\r\n-- Front Panel Buttons Enable \t\t --\r\n--
\t \t\t --\r\n-- Video Input 01 : EDID =
HDMI OUTPUT 01 \t\t --\r\n-- Video Input 02 : EDID = HDMI OUTPUT 02
\t\t --\r\n-- Video Input 03 : EDID = HDMI OUTPUT 01 \t\t --\r\n-- Video
Input 04 : EDID = DEFAULT 09 \t\t --\r\n-- Video Input 05 : EDID =
DEFAULT 09 \t\t --\r\n-- Video Input 06 : EDID = DEFAULT 09 \t\t
--\r\n-- Video Input 07 : EDID = DEFAULT 09 \t\t --\r\n-- Video Input 08
: EDID = DEFAULT 09 \t\t --\r\n--
\t\t\t --\r\n-- Video Output"
},
{
"timestamp": 255,
"recordType": "Disconnect",
"recordData": null
},
{
"timestamp": 255,
"recordType": "Succeeded",
"recordData": null
}
]
I spend many hours studying th RegEx and all tools and theory tells me that ".+" should return the whole thing, specifically when DOTALL flag is on (help claims it is). However, ".+" only returns "sta" which is the second line above (sta is my input followed by enter, Putty). I also tried "\r+", "\n+" and "\r\n". Those can be seen in the Buffer bellow, which was captured by "Output". In this perticular example, I can capture all the valuer info I need. But I have different devices that can respond unexpected text and I want to learn how to capture it all in Tasker variable.'
Also, just (*s) in send/expect stand-alone crashes it (2.2.5 trial).
By know I know how to capture certain data. I have one device that is acting up and sends partial data sometimes. It's not very important but it would be nice to know that it's possible.