Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. BikeDan
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    BikeDan

    @BikeDan

    0
    Reputation
    1
    Posts
    204
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    BikeDan Follow

    Best posts made by BikeDan

    This user hasn't posted anything yet.

    Latest posts made by BikeDan

    • RE: Step-by-step procedure to connect the NRF24L01+ to the GPIO pins and use the Raspberry as a Serial Gateway (MySensors 1.x)

      I'm looking for some help in getting "PiGatewaySerial" running properly. I am having no issue running "PiGateway" and receiving all data from a counter node I'm using for testing. When I try to run "PiGatewaySerial", only intermittent data appears. For this example, I have my counter sending increasing integers at 1 second intervals, and receives fewer than 1 in 25 through the "PiGatewaySerial" script. I previously had this working reliably on a RPi2, reading in the tty output and logging it to a file. Now, I cannot repeat that on either that device, nor the current RPi B+ I'm working with. I'm sure there's some basic setting that I'm missing, but I can't seem to figure it out. Thanks!

      An example of "PiGateway" correctly receiving all messages:

      pi@raspberrypi:/dev/pts $ sudo /usr/local/sbin/PiGateway
      Starting Gateway...
      ================ SPI Configuration ================
      CSN Pin  	 = CE0 (PI Hardware Driven)
      CE Pin  	 = Custom GPIO25
      Clock Speed	 = 8 Mhz
      ================ NRF Configuration ================
      STATUS		 = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
      RX_ADDR_P0-1	 = 0xa8a8e1fc00 0xa8a8e1fc00
      RX_ADDR_P2-5	 = 0xff 0xc4 0xc5 0xc6
      TX_ADDR		 = 0xe7e7e7e7e7
      RX_PW_P0-6	 = 0x20 0x20 0x20 0x00 0x00 0x00
      EN_AA		 = 0x3b
      EN_RXADDR	 = 0x06
      RF_CH		 = 0x4c
      RF_SETUP	 = 0x23
      CONFIG		 = 0x0e
      DYNPD/FEATURE	 = 0x3f 0x06
      Data Rate	 = 250KBPS
      Model		 = nRF24L01+
      CRC Length	 = 16 bits
      PA Power	 = PA_LOW
      [CALLBACK]0;0;3;0;14;Gateway startup complete.
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:906
      [CALLBACK]0;33;1;0;38;906
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:907
      [CALLBACK]0;33;1;0;38;907
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:908
      [CALLBACK]0;33;1;0;38;908
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:909
      [CALLBACK]0;33;1;0;38;909
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:910
      [CALLBACK]0;33;1;0;38;910
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:911
      [CALLBACK]0;33;1;0;38;911
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:912
      [CALLBACK]0;33;1;0;38;912
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:913
      [CALLBACK]0;33;1;0;38;913
      

      an example of "PiGatewaySerial" missing most messages:

      pi@raspberrypi:/dev/pts $ sudo /usr/local/sbin/PiGatewaySerial
      Starting PiGatewaySerial...
      Protocol version - 1.4
      Created PTY '/dev/pts/1'
      Gateway tty: /dev/ttyMySensorsGateway
      ================ SPI Configuration ================
      CSN Pin  	 = CE0 (PI Hardware Driven)
      CE Pin  	 = Custom GPIO25
      Clock Speed	 = 8 Mhz
      ================ NRF Configuration ================
      STATUS		 = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
      RX_ADDR_P0-1	 = 0xa8a8e1fc00 0xa8a8e1fc00
      RX_ADDR_P2-5	 = 0xff 0xc4 0xc5 0xc6
      TX_ADDR		 = 0xe7e7e7e7e7
      RX_PW_P0-6	 = 0x20 0x20 0x20 0x00 0x00 0x00
      EN_AA		 = 0x3b
      EN_RXADDR	 = 0x06
      RF_CH		 = 0x4c
      RF_SETUP	 = 0x23
      CONFIG		 = 0x0e
      DYNPD/FEATURE	 = 0x3f 0x06
      Data Rate	 = 250KBPS
      Model		 = nRF24L01+
      CRC Length	 = 16 bits
      PA Power	 = PA_LOW
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:301
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:302
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:303
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:328
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:353
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:378
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:403
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:428
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:454
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:479
      read: 0-0-0 s=33,c=1,t=38,pt=2,l=2:504
      

      I'm running a RPi B+, NRF24l01+, on a clean install of Jessie, and using only a few percent of the CPU power.

      posted in Hardware
      BikeDan
      BikeDan