From: Uwe Hermann Date: Wed, 15 Oct 2014 13:44:16 +0000 (+0200) Subject: Add a few pan1321 test cases. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9f1033538d2cca0c4400948f7dab39cd218b52f1;p=sigrok-test.git Add a few pan1321 test cases. --- diff --git a/decoder/test/pan1321/pan1321_jres.output b/decoder/test/pan1321/pan1321_jres.output new file mode 100644 index 0000000..6196a60 --- /dev/null +++ b/decoder/test/pan1321/pan1321_jres.output @@ -0,0 +1,4 @@ +691168-692692 pan1321: text-verbose: "Triggering a software reset" +691168-692692 pan1321: text: "Reset" +2696904-2697737 pan1321: text-verbose: "Device initialized correctly" +2696904-2697737 pan1321: text: "Init" diff --git a/decoder/test/pan1321/pan1321_jsda_hello_world.output b/decoder/test/pan1321/pan1321_jsda_hello_world.output new file mode 100644 index 0000000..8c3d530 --- /dev/null +++ b/decoder/test/pan1321/pan1321_jsda_hello_world.output @@ -0,0 +1,4 @@ +474508-478634 pan1321: text-verbose: "Sending 10 data bytes: 68 65 6c 6c 6f 77 6f 72 6c 64" +474508-478634 pan1321: text: "Send 10 = 68 65 6c 6c 6f 77 6f 72 6c 64" +479980-480639 pan1321: text-verbose: "Device acknowledged last command" +479980-480639 pan1321: text: "ACK" diff --git a/decoder/test/pan1321/test.conf b/decoder/test/pan1321/test.conf new file mode 100644 index 0000000..f02be45 --- /dev/null +++ b/decoder/test/pan1321/test.conf @@ -0,0 +1,20 @@ +test pan1321_jres_baudrate + protocol-decoder uart channel tx=0 channel rx=3 option baudrate=115200 + protocol-decoder pan1321 + stack uart pan1321 + input uart/panasonic_pan1321/sender_and_receiver/pan1321_JRES.sr + output pan1321 annotation match pan1321_jres.output + +test pan1321_jres_no_baudrate + protocol-decoder uart channel tx=0 channel rx=3 + protocol-decoder pan1321 + stack uart pan1321 + input uart/panasonic_pan1321/sender_and_receiver/pan1321_JRES.sr + output pan1321 annotation match pan1321_jres.output + +test pan1321_jsda_hello_world + protocol-decoder uart channel tx=0 channel rx=3 option baudrate=115200 + protocol-decoder pan1321 + stack uart pan1321 + input uart/panasonic_pan1321/sender_and_receiver/pan1321_JSDA_helloworld.sr + output pan1321 annotation match pan1321_jsda_hello_world.output