Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Development => Topic started by: arakis on March 21, 2013, 02:45:45 pm

Title: NRF24 module mode...
Post by: arakis on March 21, 2013, 02:45:45 pm
It seems it will be relativly easy to implement NRF24 module mode..

using the ADC pin as the interrupt, and the aux pin for the TX/RS strart up, (CE pin of the module)
it uses simple SPI protocol, with few commands etc...we could even make a cable for it.. or a addapter pcb...

did some register read/writes, without any problems using the SPI connections..

here is the terminal
Code: [Select]
m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
x. exit(without change)

(1)>5
Set speed:
 1. 30KHz
 2. 125KHz
 3. 250KHz
 4. 1MHz

(1)>4
Clock polarity:
 1. Idle low *default
 2. Idle high

(1)>1
Output clock edge:
 1. Idle to active
 2. Active to idle *default

(2)>2
Input sample phase:
 1. Middle *default
 2. End

(1)>1
CS:
 1. CS
 2. /CS *default

(2)>2
Select output type:
 1. Open drain (H=Hi-Z, L=GND)
 2. Normal (H=3.3V, L=GND)

(1)>2
Ready
SPI>W
POWER SUPPLIES ON
SPI>[0
/CS ENABLED
WRITE: 0x00
SPI>r
READ: 0x08
SPI>r
READ: 0x08
SPI>r]
READ: 0x08
/CS DISABLED
SPI>[0rr]
/CS ENABLED
WRITE: 0x00
READ: 0x08
READ: 0x08
/CS DISABLED
SPI>[1r]
/CS ENABLED
WRITE: 0x01
READ: 0x3F
/CS DISABLED
SPI>[2r]
/CS ENABLED
WRITE: 0x02
READ: 0x03
/CS DISABLED
SPI>[3r]
/CS ENABLED
WRITE: 0x03
READ: 0x03
/CS DISABLED
SPI>[4r]
/CS ENABLED
WRITE: 0x04
READ: 0x03
/CS DISABLED
SPI>[5r]
/CS ENABLED
WRITE: 0x05
READ: 0x02
/CS DISABLED
SPI>[5r]
/CS ENABLED
WRITE: 0x05
READ: 0x02
/CS DISABLED
SPI>[0x25 100]
/CS ENABLED
WRITE: 0x25
WRITE: 0x64
/CS DISABLED
SPI>[5r]
/CS ENABLED
WRITE: 0x05
READ: 0x64
/CS DISABLED
Title: Re: NRF24 module mode...
Post by: dolabra on March 21, 2013, 06:10:32 pm
cool,  I was thinking about buying a couple of those --- they are so cheap.
Title: Re: NRF24 module mode...
Post by: arakis on March 21, 2013, 07:23:49 pm
I bought 20 do $23 :D

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00892042824session_write_close ( )...(null):0
20.00922174400ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00922175176Database_MySQL->query( ).../DatabaseHandler.php:119
40.05132313896Database_MySQL->error( ).../Db-mysql.class.php:273