Navigation

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

    loiphin

    @loiphin

    1
    Reputation
    4
    Posts
    243
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    loiphin Follow

    Best posts made by loiphin

    • RE: What kind of sensor for my mailbox?

      http://www.ebay.com/itm/161806126324

      I am going to use these magnetic switches on my postbox lid. Haven't got them yet, so cant say if they are any good or not.

      posted in Hardware
      loiphin
      loiphin

    Latest posts made by loiphin

    • RE: Strange issue with RPI and sensors registering... seems to fall asleep (w/ WORKAROUND)

      No one have this problem?? Bueller... Bueller .... Bueller.... anyone?

      posted in Hardware
      loiphin
      loiphin
    • RE: What kind of sensor for my mailbox?

      http://www.ebay.com/itm/161806126324

      I am going to use these magnetic switches on my postbox lid. Haven't got them yet, so cant say if they are any good or not.

      posted in Hardware
      loiphin
      loiphin
    • Strange issue with RPI and sensors registering... seems to fall asleep (w/ WORKAROUND)

      Hi there,

      I recently built a RPi2 with the an NRF24L01 + Antenna. I am running the NRF24 via a 3.3v regulator on the 5v rail of the Pi. The RPi is wired to my network, so no additional wifi card. The build of the RPi and NRF driver is by the book. I followed the instructions exactly.

      I am using Domoticz as a controller and it runs on a separate box. The RPi is just the gateway. It does nothing else.

      I have deployed a few test sensors and they seem to work fine once they been registered... It's just the RPi doesnt seem to pick up any new sensors, until I use my weird workaround.

      I watch the Serial output of the ATmega328 sensor and I can see that its failing to communicate with the pi...

      So in order to get it to work, I SSH into my pi, and just hold down the enter key on the command line. It seems to wake up the pi and I immediately see the sensor register and start to send its data.

      Really strange, but this is the only way I can get it to work. I have done it multiple times, and it definitely looks like the NRF24 on the pi is falling asleep. Or perhaps the Pi's cpu is throttling back when not much is going on.

      Anyone else seen this issue?

      Thanks,

      loiphin.

      Actually it seems to happen whenever you power up the sensor, even if it was previously registered:

      Starting sensor (RNNNA-, 2.0.0)
      TSM:INIT
      TSM:RADIO:OK
      TSP:ASSIGNID:OK (ID=4)
      TSM:FPAR
      TSP:MSG:SEND 4-4-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 4-4-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 4-4-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 4-4-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      !TSM:FPAR:FAIL
      !TSM:FAILURE
      TSM:PDT
      TSM:INIT
      TSM:RADIO:OK
      TSP:ASSIGNID:OK (ID=4)
      TSM:FPAR
      TSP:MSG:SEND 4-4-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 4-4-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 4-4-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 4-4-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      !TSM:FPAR:FAIL
      !TSM:FAILURE
      TSM:PDT
      
      At this point I ssh'd into my Pi and held down the enter key, just to wake up the CPU I guess..
      
      TSM:INIT
      TSM:RADIO:OK
      TSP:ASSIGNID:OK (ID=4)
      TSM:FPAR
      TSP:MSG:SEND 4-4-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSP:MSG:READ 0-0-4 s=255,c=3,t=8,pt=1,l=1,sg=0:0
      TSP:MSG:FPAR RES (ID=0, dist=0)
      TSP:MSG:PAR OK (ID=0, dist=1)
      TSM:FPAR:OK
      TSM:ID
      TSM:CHKID:OK (ID=4)
      TSM:UPL
      TSP:PING:SEND (dest=0)
      TSP:MSG:SEND 4-4-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
      TSP:MSG:READ 0-0-4 s=255,c=3,t=25,pt=1,l=1,sg=0:1
      TSP:MSG:PONG RECV (hops=1)
      TSP:CHKUPL:OK
      TSM:UPL:OK
      TSM:READY
      TSP:MSG:SEND 4-4-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
      TSP:MSG:SEND 4-4-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0
      TSP:MSG:SEND 4-4-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=ok:0
      TSP:MSG:READ 0-0-4 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
      TSP:MSG:READ 0-0-4 s=255,c=3,t=6,pt=0,l=1,sg=0:M
      TSP:MSG:SEND 4-4-0-0 s=255,c=3,t=11,pt=0,l=22,sg=0,ft=0,st=ok:TemperatureAndHumidity
      TSP:MSG:SEND 4-4-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=ok:1.1
      TSP:MSG:SEND 4-4-0-0 s=0,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=ok:
      TSP:MSG:SEND 4-4-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=ok:
      Request registration...
      TSP:MSG:SEND 4-4-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2
      TSP:MSG:READ 0-0-4 s=255,c=3,t=27,pt=1,l=1,sg=0:1
      Node registration=1
      Init complete, id=4, parent=0, distance=1, registration=1
      TSP:MSG:SEND 4-4-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:22.0
      T: 22.00
      TSP:MSG:SEND 4-4-0-0 s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=ok:36.0
      H: 36.00
      
      Stopped holding down enter here. After which it continues fine on its own...
      
      
      posted in Hardware
      loiphin
      loiphin
    • RE: 💬 My Slim 2AA Battery Node

      Keep in mind that if you are trying to use a DHT11 or DHT22 attached to the Slim 2AA, it only seems to work with 8 or 16MHz.. I couldn't get it to work with the ATmega328 running at 1MHz! It works fine with 8MHz internal oscillator 🙂

      posted in OpenHardware.io
      loiphin
      loiphin