diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-10-15 15:44:16 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-10-15 15:44:16 +0200 |
commit | 9f1033538d2cca0c4400948f7dab39cd218b52f1 (patch) | |
tree | a848f20501711ac3c682f2fb361651ecc7e76cd3 | |
parent | 9c6355caa92cc09335f7ef4e2c4b8a7388674fe5 (diff) | |
download | sigrok-test-9f1033538d2cca0c4400948f7dab39cd218b52f1.tar.gz sigrok-test-9f1033538d2cca0c4400948f7dab39cd218b52f1.zip |
Add a few pan1321 test cases.
-rw-r--r-- | decoder/test/pan1321/pan1321_jres.output | 4 | ||||
-rw-r--r-- | decoder/test/pan1321/pan1321_jsda_hello_world.output | 4 | ||||
-rw-r--r-- | decoder/test/pan1321/test.conf | 20 |
3 files changed, 28 insertions, 0 deletions
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 |