Skip to content

Instantly share code, notes, and snippets.

@Lokki7
Created March 6, 2015 14:42
Show Gist options
  • Save Lokki7/0d566493fbd49dc09501 to your computer and use it in GitHub Desktop.
Save Lokki7/0d566493fbd49dc09501 to your computer and use it in GitHub Desktop.
first
root@raspberrypi:/home/pi/node-nrf# node test.js
setStates { RF_CH: 76 }
setStates { RF_PWR: 3 }
setStates { RF_DR_LOW: false, RF_DR_HIGH: false }
setStates { EN_CRC: true, CRCO: 1 }
setStates { ARC: 15, ARD: 0.6000000000000001 }
Set CE low.
blocked for 130µs.
Set CE low.
blocked for 130µs.
execCommand FLUSH_TX 0
execCommand [ 'W_REGISTER', 5 ] [ 76 ]
execCommand FLUSH_RX 0
execCommand [ 'R_REGISTER', 6 ] 1
setStates { PWR_UP: true,
PRIM_RX: false,
EN_RXADDR: 0,
RX_DR: true,
TX_DS: true,
MAX_RT: true,
EN_DPL: true,
EN_ACK_PAY: true,
EN_DYN_ACK: true }
- exec read: <SlowBuffer 4e 07>
execCommand [ 'R_REGISTER', 6 ] 1
- exec read: <SlowBuffer 4e 07>
execCommand [ 'R_REGISTER', 0 ] 1
- exec read: <SlowBuffer 4e 0f>
execCommand [ 'R_REGISTER', 4 ] 1
- exec read: <SlowBuffer 4e 0f>
execCommand [ 'R_REGISTER', 0 ] 1
- exec read: <SlowBuffer 4e 0f>
execCommand [ 'W_REGISTER', 0 ] [ 14 ]
blocked for 130µs.
execCommand [ 'W_REGISTER', 2 ] [ 0 ]
execCommand [ 'R_REGISTER', 7 ] 1
- exec read: <SlowBuffer 4e 4e>
execCommand [ 'W_REGISTER', 7 ] [ 126 ]
execCommand [ 'R_REGISTER', 29 ] 1
- exec read: <SlowBuffer 0e 07>
PONG back
setStates { AW: 3,
PRIM_RX: true,
RX_ADDR_P1: <Buffer f0 f0 f0 f0 e1>,
ERX_P1: true,
ENAA_P1: true,
DPL_P1: true }
setStates { AW: 3,
RX_ADDR_P0: <Buffer f0 f0 f0 f0 d2>,
ERX_P0: true,
ENAA_P0: true,
DPL_P0: true }
_checkStatus, irq = false checking = false
execCommand [ 'R_REGISTER', 0 ] 1
- exec read: <SlowBuffer 0e 0e>
execCommand [ 'W_REGISTER', 0 ] [ 15 ]
blocked for 130µs.
execCommand [ 'R_REGISTER', 1 ] 1
- exec read: <SlowBuffer 0e 3f>
execCommand [ 'R_REGISTER', 2 ] 1
- exec read: <SlowBuffer 0e 00>
execCommand [ 'W_REGISTER', 2 ] [ 2 ]
execCommand [ 'R_REGISTER', 3 ] 1
- exec read: <SlowBuffer 0e 03>
execCommand [ 'W_REGISTER', 11 ] <Buffer f0 f0 f0 f0 e1>
execCommand [ 'R_REGISTER', 28 ] 1
- exec read: <SlowBuffer 0e 3f>
Set CE true.
blocked for 130µs.
execCommand [ 'R_REGISTER', 1 ] 1
- exec read: <SlowBuffer 0e 3f>
execCommand [ 'R_REGISTER', 2 ] 1
- exec read: <SlowBuffer 0e 02>
execCommand [ 'W_REGISTER', 2 ] [ 3 ]
execCommand [ 'R_REGISTER', 3 ] 1
- exec read: <SlowBuffer 0e 03>
execCommand [ 'W_REGISTER', 10 ] <Buffer f0 f0 f0 f0 d2>
execCommand [ 'R_REGISTER', 28 ] 1
- exec read: <SlowBuffer 0e 3f>
execCommand [ 'R_REGISTER', 7 ] 1
- exec read: <SlowBuffer 0e 0e>
gotStates { RX_P_NO: 7, TX_DS: 0, MAX_RT: 0, RX_DR: 0 } null
_checkStatus, irq = true checking = false
execCommand [ 'R_REGISTER', 7 ] 1
- exec read: <SlowBuffer 42 42>
gotStates { RX_P_NO: 1, TX_DS: 0, MAX_RT: 0, RX_DR: 1 } null
IRQ. { RX_P_NO: 1, TX_DS: 0, MAX_RT: 0, RX_DR: 1 }
execCommand R_RX_PL_WID 1
- exec read: <SlowBuffer 42 04>
execCommand R_RX_PAYLOAD 4
- exec read: <SlowBuffer 42 be cd 01 00>
setStates { RX_DR: true, TX_DS: false, MAX_RT: false }
execCommand [ 'R_REGISTER', 7 ] 1
- exec read: <SlowBuffer 4e 4e>
execCommand [ 'W_REGISTER', 7 ] [ 78 ]
_checkStatus, irq = false checking = false
Got data, will respond 118206
Set CE low.
setStates { TX_ADDR: <Buffer f0 f0 f0 f0 d2>,
PRIM_RX: false,
RX_ADDR_P0: <Buffer f0 f0 f0 f0 d2> }
_checkStatus, irq = false checking = true
execCommand [ 'R_REGISTER', 7 ] 1
- exec read: <SlowBuffer 0e 0e>
gotStates { RX_P_NO: 7, TX_DS: 0, MAX_RT: 0, RX_DR: 0 } null
execCommand [ 'R_REGISTER', 0 ] 1
- exec read: <SlowBuffer 0e 0f>
execCommand [ 'W_REGISTER', 0 ] [ 14 ]
blocked for 130µs.
execCommand [ 'W_REGISTER', 10 ] <Buffer f0 f0 f0 f0 d2>
execCommand [ 'W_REGISTER', 16 ] <Buffer f0 f0 f0 f0 d2>
execCommand W_TX_PAYLOAD <Buffer 00 01 cd be>
Set CE true.
blocked for 10µs.
Set CE false.
blocked for 4µs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment