Go to advanced search

by Charly86
Tue Aug 30, 2016 1:31 pm
Forum: Raspbian
Topic: Read-only Jessie
Replies: 17
Views: 8537

Re: Read-only Jessie

Quite easy as said @blakspek First remove existing file rm /var/lib/systemd/random-seed link the random-seed file to tmpfs location ln -s /tmp/random-seed /var/lib/systemd/random-seed Since file is on tmpfs it will not be created upon, reboot, but we can do it with a kind of magic of systemd system ...
by Charly86
Tue Aug 26, 2014 2:48 pm
Forum: General discussion
Topic: The Raspberry Pi Model B+ Q&A thread
Replies: 388
Views: 177137

Re: The Raspberry Pi Model B+ Q&A thread

Well, That's strange, I'm just curious, why the old existing GPIO 28,29,30,31 have not been routed onto the new connector and used some of the new GPIO instead (which where unused until now because not available) to control new hardware things such LAN NReset !!! Assigning new functions to existing ...
by Charly86
Wed Aug 13, 2014 9:39 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can the UART go faster than 115200?
Replies: 12
Views: 18088

Re: Can the UART go faster than 115200?

Hi Guys, Sorry to up this post but for time now I'm trying to set UART speed at 250Kpbs and I'm facing the same problem but solution does not work for me (and never worked). I tried 2 times some months ago but didn't succeded. So I left for update but now I really need this. I tried all solution wit...
by Charly86
Wed Jul 03, 2013 12:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C with Adafruit 128x32 I2C OLED
Replies: 30
Views: 16345

Re: I2C with Adafruit 128x32 I2C OLED

Hi Guys,

If you are interested there is a library for driving I2C/SPI Oled for Pi, you can check the tutorial here, the source code is fully available
http://hallard.me/adafruit-ssd1306-oled ... pberry-pi/

hope this help
by Charly86
Wed Mar 20, 2013 9:24 am
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Stanley,

No problem at all for me, you can change the folder structure as you wish
by Charly86
Tue Mar 19, 2013 10:37 am
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Hi guys, I corrected a bug I introduced in read_payload that caused a segmentation fault. Now everything is working fine, I updated the repo. I arranged the sample with only main function needed on RPI. Thanks to all for driving me on the right direction, we have now a really simple NRF24 lib for RP...
by Charly86
Mon Mar 18, 2013 9:55 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Stanley Could you just try not using CS0 as custom GPIO because SPI Hardware will also drive this pin and could conflict (not sure of this) If you want to use CE0 please in init use line as follow, this will use CE0 driven by hardware SPI RF24 radio(RPI_V2_GPIO_P1_22, BCM2835_SPI_CS0 , BCM2835_SPI_S...
by Charly86
Mon Mar 18, 2013 5:50 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Just Updated the Github Repo, cleaned some not needed files this lib now refer to only 2 source code files; RF24.cpp and bcm2835.c (and include files) things seems to work fine now [email protected]:~/github/RF24/librf24-rpi/librf24-bcm# ./examples/scanner RF24/examples/scanner/ ================ SPI Configu...
by Charly86
Sun Mar 17, 2013 10:52 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Ok guys, I found the problem with the libnrf24-bcm BCM library and the CE0/CE1 (or custom GPIO pin)pin access using a logic analyser In fact during function to read / write the NRF device with the BCM library the read/write is done in 2 time, one send to to tell the NRF the command we want (read, wr...
by Charly86
Wed Mar 13, 2013 11:12 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

CSN is chip select not, the equivalent to SPI control SS, from the Pi the CE0 or CE1 depends on spi 0 or spi 1 hardware control, but can be manualy driven by another gpio port if you prefer CE is to control the RX or TX (receive or transmit mode) of the NRF the libnrf24-bcm should be the same than l...
by Charly86
Wed Mar 13, 2013 6:11 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Ok,

Forked Under librf24-rpi/librf24-bcm

I am not sure I forked well, this is my first, so please be cool and tell me if I done it the wrong way

Seriously, quick coding, just need to be tested for now
by Charly86
Wed Mar 13, 2013 3:57 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

wow wow wow That is interesting because all my tests are with spi ce1 because ce0 is used by my OLED spi. I took a look onto SPI code and may be the IOCTL can only drive the 1st SPI bus chip Enable. For my code I am using the bcm2835 Library which provide GPIO control and I2C/SPI management. take a ...
by Charly86
Wed Mar 13, 2013 10:00 am
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Ok, as far as I know, CE0 and CE1 of the PI are hardware controled by the BCM2835 chipset, so when talking to spi devices, if you open spidev0.0 the chipset will drive the CE0 pin low when talking to SPI device, and if you open spidev0.1 the chipset will drive the CE1 pin low when talking to SPI dev...
by Charly86
Tue Mar 12, 2013 2:14 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Ok guys, I decided to start from scrach with 2 arduino. I tried 2 libraries with no success, this one and the NRF24. But I will focus on this one. In fact I just tried from one arduino and got I timeout on the sendpacket with sample sktech GettingStarted.pde At startup I got the NRF information corr...
by Charly86
Thu Mar 07, 2013 9:44 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Thanks, that was what i suspected. So the hardware of the pi ce1 or ce0 drive ce pin of nrf (pulling it low when accessing the spi device) and in the NRF24 lib the code does the same with CSN before and after each spi transfert. Make me so perplex because that is not what is said in the datasheet. B...
by Charly86
Thu Mar 07, 2013 8:02 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Ok this is more clear. On the pi ce0 and ce1 are driven by spi hardware. For what i understand For exemple ce0 is used as chip sélect for spi device. That is what i do for spi oled and it is working fine. Ce0 is connected to spi oled chip sélect. Is that make sense to you ? So now what do i not unde...
by Charly86
Thu Mar 07, 2013 5:17 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Wahou, that's amazing !!! datasheet says CE is used to enable Receive or Transmit mode so I do not understand how it is possible to change the mode (receive or transmit) of the NRF24L01 without changing from high to low and/or low to high this pin. :roll: Did you tried both mode on Pi (Send and Rece...
by Charly86
Thu Mar 07, 2013 4:36 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Stanley, I decided to go in the code and something is strange for me and that I do not understand. Lot of time in the NRF24 Library code the ce pin is driven low or high by ce(LOW); or ce(High); right ? But when invoking the NRF24 instance in rpi-hub like this RF24 radio("/dev/spidev0.0",8000000,25)...
by Charly86
Thu Mar 07, 2013 3:58 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Stanley I just saw that gnulnulf has accepted your fork on github, so done from scratch I done a git clone https://github.com/gnulnulf/RF24.git (Under a new folder) then make, make install, triple checked pins connection and issue a rpi-hub just to see if the config displayed is correct. (the arduin...
by Charly86
Wed Mar 06, 2013 10:54 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Stanley Amazing, I did this connection on the PI then git-clone https://github.com/stanleyseow/RF24.git then build all from scratch and launched rpi-hub here my results STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0 RX_ADDR_P0-1 = 0x0e0e0e0e0e 0x0e0e0e0e0e RX_ADDR_P2-5 = 0x0e 0x0e 0x0e 0...
by Charly86
Wed Mar 06, 2013 3:45 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Thanks Stanley

Got it; I will try this.

So, as far as I understand, if you connect CSN to a GPIO pin, this means that you drive the CSN (so the GPIO) pin manually into the Library and not using the hardware Chip Select pin from the PI ?

Is that correct ?
by Charly86
Wed Mar 06, 2013 12:40 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Ok thanks for your reply My NRF is connected to SPI0.1 and gpio 22 gpio 22 Pi goes to CE CE1 goes to CSN then changed the code in scanner.cpp RF24 radio("/dev/spidev0.1",8000000 , 22); //spi device, speed and CSN,only CSN is NEEDED in RPI compiled, linked fine, when I launch, seems to have no values...
by Charly86
Wed Mar 06, 2013 10:12 am
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 136971

Re: NRF24L01 RF Transceiver

Hello everybody, I am trying to port a NRF24 Library to Pi, all code seems to be fine except that is not working, so I double checked my wiring and then found this thread. Thanks god !! You said that the connection between Pi and NRF should be as follow nrf-vcc = rpi-3v3 (1) nrf-gnd = rpi-gnd (6) nr...

Go to advanced search