Closed y-x-c closed 8 years ago
I can receive data from an Arduino (using RF24) when I using that(https://github.com/riyas-org/nrf24pihub/blob/master/nrf24.py) library on Raspberry pi but not using your library.
config code in python are:
radio.begin(); radio.setRetries(15, 15); radio.setPayloadSize(PAYLOAD_SIZE); radio.setChannel(0x22); radio.setDataRate(RF24_2MBPS); radio.setPALevel(RF24_PA_MAX); radio.setAutoAck(1); radio.openWritingPipe(remote_pipe); radio.openReadingPipe(1, local_pipe);
and the details are:
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0 RX_ADDR_P0-1 = 0x1010101022 0x1010101020 RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6 TX_ADDR = 0x1010101022 RX_PW_P0-6 = 0x20 0x20 0x00 0x00 0x00 0x00 EN_AA = 0x3f EN_RXADDR = 0x03 RF_CH = 0x22 RF_SETUP = 0x0e CONFIG = 0x0f DYNPD/FEATURE = 0x00 0x00 Data Rate = 2MBPS Model = nRF24l01+ CRC Length = 16 bits PA Power = PA_HIGH
but with same config code in python, I cannot receive any data with your library. details are:
TATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0 RX_ADDR_P0-1 = 0x1010101022 0x1010101020 RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6 TX_ADDR = 0x1010101022 RX_PW_P0-6 = 0x20 0x20 0x00 0x00 0x00 0x00 EN_AA = 0x3f EN_RXADDR = 0x03 RF_CH = 0x22 RF_SETUP = 0x0e SETUP_AW = 0x03 OBSERVE_TX = 0x0f CONFIG = 0x0a FIFO_STATUS = 0x11 DYNPD = 0x00 FEATURE = 0x00 Data Rate = 2MBPS Model = nRF24l01+ CRC Length = 8 bits PA Power = PA_MAX
I also tried to set CRC Length to 16bits, but still got CONFIG = 0x0e( not equal to previous working one ) and not work. So I think I need to set other parameters. Thanks for your help : )
finally I add a 100 nF capacitor across VCC and GND, it works fine now
I can receive data from an Arduino (using RF24) when I using that(https://github.com/riyas-org/nrf24pihub/blob/master/nrf24.py) library on Raspberry pi but not using your library.
config code in python are:
and the details are:
but with same config code in python, I cannot receive any data with your library. details are:
I also tried to set CRC Length to 16bits, but still got CONFIG = 0x0e( not equal to previous working one ) and not work. So I think I need to set other parameters. Thanks for your help : )