From: Jorge Solla Date: Mon, 6 Apr 2020 19:21:37 +0000 (+0200) Subject: Add test for Nordic Semiconductor nRF905 protocol decoder X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=eb10933cc46ab35fac71bd650a34f17e689f3964;p=sigrok-test.git Add test for Nordic Semiconductor nRF905 protocol decoder --- diff --git a/decoder/test/nrf905/nrf905_operation.output b/decoder/test/nrf905/nrf905_operation.output new file mode 100644 index 0000000..9b51713 --- /dev/null +++ b/decoder/test/nrf905/nrf905_operation.output @@ -0,0 +1,156 @@ +17768926-17769476 nrf905: cmd: "CMD: W_CONFIG (WC)" +17768935-17768983 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +17768984-17769032 nrf905: reg-write: "CFG_REG[0x0] -> CH_NO = 118" +17769033-17769081 nrf905: reg-write: "CFG_REG[0x1] -> AUTO_RETRAN = 1 (Retransmission of data packet) | RX_RED_PWR = 0 (Normal operation) | PA_PWR = 3 (+10 dBm) | HFREQ_PLL = 1 (868 / 915 MHz) | CH_NO_8 = 0" +17769082-17769130 nrf905: reg-write: "CFG_REG[0x2] -> TX_AFW (TX addr width) = 4 | RX_AFW (RX addr width) = 4" +17769131-17769179 nrf905: reg-write: "CFG_REG[0x3] -> RW_PW (RX payload width) = 16" +17769180-17769228 nrf905: reg-write: "CFG_REG[0x4] -> TX_PW (TX payload width) = 16" +17769229-17769277 nrf905: reg-write: "CFG_REG[0x5] -> RX_ADDR_0 = 210" +17769278-17769326 nrf905: reg-write: "CFG_REG[0x6] -> RX_ADDR_1 = 193" +17769327-17769375 nrf905: reg-write: "CFG_REG[0x7] -> RX_ADDR_2 = 78" +17769376-17769424 nrf905: reg-write: "CFG_REG[0x8] -> RX_ADDR_3 = 52" +17769425-17769473 nrf905: reg-write: "CFG_REG[0x9] -> CRC_MODE = 1 (16 CRC check bit) | CRC_EN = 1 (Enabled) | XOR = 3 (16 MHz) | UP_CLK_EN = 0 (No external clock signal avail.) | UP_CLK_FREQ = 0 (4 MHz)" +17769491-17770040 nrf905: cmd: "CMD: R_CONFIG (RC)" +17769499-17769548 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +17769549-17769597 nrf905: reg-read: "CFG_REG[0x0] -> CH_NO = 118" +17769598-17769646 nrf905: reg-read: "CFG_REG[0x1] -> AUTO_RETRAN = 1 (Retransmission of data packet) | RX_RED_PWR = 0 (Normal operation) | PA_PWR = 3 (+10 dBm) | HFREQ_PLL = 1 (868 / 915 MHz) | CH_NO_8 = 0" +17769647-17769695 nrf905: reg-read: "CFG_REG[0x2] -> TX_AFW (TX addr width) = 4 | RX_AFW (RX addr width) = 4" +17769696-17769744 nrf905: reg-read: "CFG_REG[0x3] -> RW_PW (RX payload width) = 16" +17769745-17769793 nrf905: reg-read: "CFG_REG[0x4] -> TX_PW (TX payload width) = 16" +17769794-17769842 nrf905: reg-read: "CFG_REG[0x5] -> RX_ADDR_0 = 210" +17769843-17769891 nrf905: reg-read: "CFG_REG[0x6] -> RX_ADDR_1 = 193" +17769892-17769940 nrf905: reg-read: "CFG_REG[0x7] -> RX_ADDR_2 = 78" +17769941-17769989 nrf905: reg-read: "CFG_REG[0x8] -> RX_ADDR_3 = 52" +17769990-17770038 nrf905: reg-read: "CFG_REG[0x9] -> CRC_MODE = 1 (16 CRC check bit) | CRC_EN = 1 (Enabled) | XOR = 3 (16 MHz) | UP_CLK_EN = 0 (No external clock signal avail.) | UP_CLK_FREQ = 0 (4 MHz)" +17770055-17770310 nrf905: cmd: "CMD: W_TX_ADDRESS (WTA)" +17770064-17770112 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +17770113-17770308 nrf905: reg-write: "Write TX addr: D2 C1 4E 34 " +17770933-17771189 nrf905: cmd: "CMD: R_TX_ADDRESS (RTA)" +17770942-17770990 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +17770991-17771186 nrf905: resp: "Read TX addr: D2 C1 4E 34 " +17771798-17772642 nrf905: cmd: "CMD: W_TX_PAYLOAD (WTP)" +17771807-17771855 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +17771856-17772639 nrf905: tx-data: "Write TX payload.: 01 00 03 99 FA 02 01 04 00 00 00 00 00 00 00 00 " +36351535-36352085 nrf905: cmd: "CMD: W_CONFIG (WC)" +36351544-36351592 nrf905: reg-read: "STAT = AM = 0 | DR = 1" +36351593-36351641 nrf905: reg-write: "CFG_REG[0x0] -> CH_NO = 118" +36351642-36351690 nrf905: reg-write: "CFG_REG[0x1] -> AUTO_RETRAN = 1 (Retransmission of data packet) | RX_RED_PWR = 0 (Normal operation) | PA_PWR = 3 (+10 dBm) | HFREQ_PLL = 1 (868 / 915 MHz) | CH_NO_8 = 0" +36351691-36351739 nrf905: reg-write: "CFG_REG[0x2] -> TX_AFW (TX addr width) = 4 | RX_AFW (RX addr width) = 4" +36351740-36351788 nrf905: reg-write: "CFG_REG[0x3] -> RW_PW (RX payload width) = 16" +36351789-36351837 nrf905: reg-write: "CFG_REG[0x4] -> TX_PW (TX payload width) = 16" +36351838-36351886 nrf905: reg-write: "CFG_REG[0x5] -> RX_ADDR_0 = 210" +36351887-36351935 nrf905: reg-write: "CFG_REG[0x6] -> RX_ADDR_1 = 193" +36351936-36351984 nrf905: reg-write: "CFG_REG[0x7] -> RX_ADDR_2 = 78" +36351985-36352033 nrf905: reg-write: "CFG_REG[0x8] -> RX_ADDR_3 = 52" +36352034-36352082 nrf905: reg-write: "CFG_REG[0x9] -> CRC_MODE = 1 (16 CRC check bit) | CRC_EN = 1 (Enabled) | XOR = 3 (16 MHz) | UP_CLK_EN = 0 (No external clock signal avail.) | UP_CLK_FREQ = 0 (4 MHz)" +36352170-36352720 nrf905: cmd: "CMD: R_CONFIG (RC)" +36352179-36352227 nrf905: reg-read: "STAT = AM = 0 | DR = 1" +36352228-36352276 nrf905: reg-read: "CFG_REG[0x0] -> CH_NO = 118" +36352277-36352325 nrf905: reg-read: "CFG_REG[0x1] -> AUTO_RETRAN = 1 (Retransmission of data packet) | RX_RED_PWR = 0 (Normal operation) | PA_PWR = 3 (+10 dBm) | HFREQ_PLL = 1 (868 / 915 MHz) | CH_NO_8 = 0" +36352326-36352374 nrf905: reg-read: "CFG_REG[0x2] -> TX_AFW (TX addr width) = 4 | RX_AFW (RX addr width) = 4" +36352375-36352423 nrf905: reg-read: "CFG_REG[0x3] -> RW_PW (RX payload width) = 16" +36352424-36352472 nrf905: reg-read: "CFG_REG[0x4] -> TX_PW (TX payload width) = 16" +36352473-36352521 nrf905: reg-read: "CFG_REG[0x5] -> RX_ADDR_0 = 210" +36352522-36352570 nrf905: reg-read: "CFG_REG[0x6] -> RX_ADDR_1 = 193" +36352571-36352619 nrf905: reg-read: "CFG_REG[0x7] -> RX_ADDR_2 = 78" +36352620-36352668 nrf905: reg-read: "CFG_REG[0x8] -> RX_ADDR_3 = 52" +36352669-36352717 nrf905: reg-read: "CFG_REG[0x9] -> CRC_MODE = 1 (16 CRC check bit) | CRC_EN = 1 (Enabled) | XOR = 3 (16 MHz) | UP_CLK_EN = 0 (No external clock signal avail.) | UP_CLK_FREQ = 0 (4 MHz)" +36352920-36353176 nrf905: cmd: "CMD: W_TX_ADDRESS (WTA)" +36352929-36352977 nrf905: reg-read: "STAT = AM = 0 | DR = 1" +36352978-36353173 nrf905: reg-write: "Write TX addr: D2 C1 4E 34 " +36353236-36353492 nrf905: cmd: "CMD: R_TX_ADDRESS (RTA)" +36353245-36353293 nrf905: reg-read: "STAT = AM = 0 | DR = 1" +36353294-36353489 nrf905: resp: "Read TX addr: D2 C1 4E 34 " +36353570-36354413 nrf905: cmd: "CMD: W_TX_PAYLOAD (WTP)" +36353579-36353627 nrf905: reg-read: "STAT = AM = 0 | DR = 1" +36353628-36354411 nrf905: tx-data: "Write TX payload.: 01 00 03 99 FA 02 01 01 00 00 00 00 00 00 00 00 " +55048953-55391261 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +55048962-55049010 nrf905: reg-read: "STAT = AM = 1 | DR = 1" +55049011-55049794 nrf905: rx-data: "Read RX payload: 01 00 03 99 A7 02 01 01 00 00 00 00 00 00 00 00 " +55391264-55732943 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +55391273-55391321 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +55391322-55392105 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +55732946-56075135 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +55732955-55733003 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +55733004-55733788 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +56075138-56417952 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +56075147-56075195 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +56075196-56075979 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +56417956-56759273 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +56417965-56418013 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +56418014-56418797 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +56759276-57101868 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +56759285-56759333 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +56759334-56760117 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +57101871-57443047 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +57101880-57101928 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +57101929-57102712 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +57443050-57785104 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +57443059-57443107 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +57443108-57443891 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +57785107-58127316 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +57785116-57785164 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +57785165-57785948 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +58127319-58469350 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +58127328-58127376 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +58127377-58128160 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +58469353-58811802 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +58469362-58469410 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +58469411-58470195 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +58811806-59153628 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +58811815-58811863 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +58811864-58812647 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +59153632-59499162 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +59153641-59153689 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +59153690-59154473 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +59499166-59837601 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +59499175-59499223 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +59499224-59500007 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +59837605-60179842 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +59837614-59837662 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +59837663-59838446 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +60179846-60522793 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +60179855-60179903 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +60179904-60180687 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +60522797-60864044 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +60522806-60522854 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +60522855-60523638 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +60864047-61205727 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +60864056-60864104 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +60864105-60864888 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +61205730-61548116 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +61205739-61205787 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +61205788-61206572 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +61548119-61890384 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +61548128-61548176 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +61548177-61548961 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +61890388-62232658 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +61890397-61890445 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +61890446-61891229 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +62232661-62574235 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +62232670-62232718 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +62232719-62233502 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +62574239-62917091 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +62574247-62574295 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +62574296-62575080 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +62917095-63258796 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +62917104-62917152 nrf905: reg-read: "STAT = AM = 0 | DR = 0" +62917153-62917936 nrf905: rx-data: "Read RX payload: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " +63258799-63601509 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +63258808-63258856 nrf905: reg-read: "STAT = AM = 1 | DR = 1" +63258857-63259641 nrf905: rx-data: "Read RX payload: 01 00 0B 90 E0 02 01 01 00 00 00 00 00 00 00 00 " +63601513-63942479 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +63601522-63601570 nrf905: reg-read: "STAT = AM = 1 | DR = 1" +63601571-63602354 nrf905: rx-data: "Read RX payload: 01 00 0B 90 AB 02 01 01 00 00 00 00 00 00 00 00 " +63942482-64285010 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +63942491-63942539 nrf905: reg-read: "STAT = AM = 1 | DR = 1" +63942540-63943323 nrf905: rx-data: "Read RX payload: 01 00 0B 90 5F 02 01 01 00 00 00 00 00 00 00 00 " +64285014-64626564 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +64285022-64285070 nrf905: reg-read: "STAT = AM = 1 | DR = 1" +64285071-64285855 nrf905: rx-data: "Read RX payload: 01 00 0B 90 56 02 01 01 00 00 00 00 00 00 00 00 " +64626568-64968810 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +64626577-64626625 nrf905: reg-read: "STAT = AM = 1 | DR = 1" +64626626-64627409 nrf905: rx-data: "Read RX payload: 01 00 0B 90 07 02 01 01 00 00 00 00 00 00 00 00 " +64968813-65311710 nrf905: cmd: "CMD: R_RX_PAYLOAD (RRP)" +64968822-64968870 nrf905: reg-read: "STAT = AM = 1 | DR = 1" +64968871-64969654 nrf905: rx-data: "Read RX payload: 0B 90 01 8B FA 07 04 01 10 02 06 00 00 00 00 00 " diff --git a/decoder/test/nrf905/test.conf b/decoder/test/nrf905/test.conf new file mode 100644 index 0000000..0fd9d8d --- /dev/null +++ b/decoder/test/nrf905/test.conf @@ -0,0 +1,6 @@ +test nrf905_operation + protocol-decoder spi channel clk=0 channel mosi=1 channel miso=2 channel cs=3 + protocol-decoder nrf905 + stack spi nrf905 + input nrf905/nrf905operation.sr + output nrf905 annotation match nrf905_operation.output \ No newline at end of file