Navigation

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

    hayduke

    @hayduke

    0
    Reputation
    6
    Posts
    480
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    hayduke Follow

    Best posts made by hayduke

    This user hasn't posted anything yet.

    Latest posts made by hayduke

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

      @mfalkvidd said:

      @Justinian looks like you forgot to run "sudo make install" after "make all"

      I took a little break from this project, but I worked on it again this weekend. I decided to start from scratch and rebuild the gateway completely. I put a fresh Domoticz image onto the SD card, updated and upgraded, cloned, compiled, and installed the RF24 and Raspberry code.

      Now I have the exact same symptom as Justinian 😞

      Since this used to work for me at some point, next I will try using an older Dmoticz image. I read somewhere that people had better success by NOT using apt-get update. Perhaps it's a problem with Jessie vs Wheezy? Domoticz switched kernels during on of the version upgrades.

      Winter is over, so I can live without getting my furnace controls working right now. I know relays have an issue, but now I'm just needing to monitor the temperature in an egg incubator.

      I'm surprised that using a rpi with this radio module directly attached is not a more popular platform. Is it just not a reliable platform? With the rpi3 out now, there shouldn't be a CPU load issue trying to act as an HA controller even with a large installation. I've got lots of ideas I want to implement if I can ever get a stable backend.

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

      Did some more testing. Now I know why it seemed related to the relay node.
      The relay node needs the gateway to be listening when it wakes up. If it fails when it presents, ie the gateway is down, it doesn't try again.

      I did have the relay sketch working at some point, so I don't think it's that sketch. I'm thinking I have a problem with the gateway. I work as a developer, so I've been trying to acquaint myself with the code. I mostly use SQL and VB.net in my day job. I loved C++ in college, but it's been almost that long since I used it. 🙂

      Does anyone have any ideas what might be causing this? I'm going to go reread the section on the mysensors protocol and see I can spot anything wrong in those presentation messages.

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

      @mfalkvidd
      I have a 4.7uf electrolytic cap soldered directly to the pins on the radio module.
      Radio is standard, ie antenna via board traces.

      I just did another batch of testing to try and answer your last question.
      I started the gateway manually, ie sudo /usr/local/sbin/PiGatewaySerial
      I plugged in a temp sensor (dallas 18b20, 3.3v apm, via 3.3v FTDI) into the computer so I could monitor the serial port.

      The first time I turned on the temp sensor, the gateway closed after 5 "read:"'s. I tried it again and the gateway stopped (meaning I was back at the prompt in putty) after 2 reads.
      I decided to reboot the rpi. When it came back up, I had the Domoticz log open and I could see the gateway start before I could reopen a putty session. It appears the auto start worked correctly, and so far, it's still up.
      I've been sending temp data successfully for ~10 minutes now.

      ...time passes...
      I typed out the above, but didn't hit submit as I wanted to go put the relay node back together and test it.

      After gathering up those parts, I check the Domoticz log and it's still reading temp. While it IS working, the temps are displaying wrong in Domoticz. My sensor is sending F, but domoticz thinks it's C and it converts.

      I'm mentioning this because, when I open the serial monitor to confirm the node was sending F values, it of course resets the node. This killed the gateway. I got the following in my domoticz log:
      2016-02-19 15:00:30.362 (MySensorsSerial) Temp (Temp)
      2016-02-19 15:00:38.371 (MySensorsSerial) Temp (Temp)
      2016-02-19 15:00:46.380 (MySensorsSerial) Temp (Temp)
      2016-02-19 15:00:50.384 (MySensorsSerial) Temp (Temp)
      2016-02-19 15:00:54.389 (MySensorsSerial) Temp (Temp)
      2016-02-19 15:00:58.393 (MySensorsSerial) Temp (Temp)
      2016-02-19 15:01:02.398 (MySensorsSerial) Temp (Temp)
      2016-02-19 15:01:06.403 Error: Serial Port closed!... Error: End of file
      2016-02-19 15:01:06.864 MySensors: retrying in 30 seconds...
      2016-02-19 15:01:35.867 MySensors: Using serial port: /dev/ttyUSB20
      2016-02-19 15:01:35.868 Error: MySensors: Error opening serial port!
      2016-02-19 15:01:36.869 MySensors: retrying in 30 seconds...
      2016-02-19 15:02:05.871 MySensors: Using serial port: /dev/ttyUSB20
      2016-02-19 15:02:05.872 Error: MySensors: Error opening serial port!
      2016-02-19 15:02:06.872 MySensors: retrying in 30 seconds...
      2016-02-19 15:02:20.010 Active notification subsystems: (0/10)
      2016-02-19 15:02:35.875 MySensors: Using serial port: /dev/ttyUSB20
      2016-02-19 15:02:35.875 Error: MySensors: Error opening serial port!
      2016-02-19 15:02:36.875 MySensors: retrying in 30 seconds...

      I ran sudo cat /dev/ttyMySensorsGateway and get 'No such file' message. I interpret this to mean the gateway has stopped running, right?

      Next I manually started the gateway again. It immediately starts reading the temp sensor again. After the next 30 second timer expires, Domoticz picks it right back up too.

      I think I figured something out... If I restart a node with the gateway running, it kills the gateway and my above symptoms start. I'm able to repeat this without failure.

      I'm going to do some more testing, but it seems that when the node sends the s=255 message, the gateway is dieing.
      I want to see what happens if I turn on another node while the first is alraedy running. Perhaps I have to have all my nodes on before I start the gateway?

      I am very encouraged as I at least finally feel like I'm moving forward. Was getting frustrated for awhile there. 🙂
      Thanks again for the write to help me get started.

      posted in Hardware
      hayduke
      hayduke
    • RE: Vivarium Sensors?

      @Keifru
      If you're misting inside the enclosure, I would strongly advise you place the sensors inside and run a wire to the other electronics OUTSIDE the enclosure. There are temp and humidity sensors made to operate in a moist environment, but most electronics will not like that environment. Rather than trying to encase it adequately to keep the electronics dry inside (doubtful imho), it is probably easier to just move them outside. You could use velcro or foam tape or something to secure the node to the glass on the back and then have a tiny wire running to your sensors inside.

      Good luck. When you get it running, I'm sure many of us would love to see a write up of your project, with pics of course! 🙂

      posted in General Discussion
      hayduke
      hayduke
    • 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've been struggling with this setup for a few weeks now. I've resisted posting to try and figure it out, but I'm not making any progress. When I first setup the rpi with the nrf24 directly connected, everything worked great. I was running a node with temp and motion pretty reliably. I had some difficulty getting the relay node to work, but I got that working eventually as well, but not reliably. While trying to resolve this, I started getting these errors (log from Domoticz):
      2016-02-19 10:43:36.007 MySensors: Using serial port: /dev/ttyUSB20
      2016-02-19 10:43:36.008 Error: MySensors: Error opening serial port!
      2016-02-19 10:43:37.008 MySensors: retrying in 30 seconds...

      I see the post above about this being related to using sensors not supported. Since it started with the relay node, I took that out of the setup, but I'm still getting the error.

      I've rebuilt the entire rpi, mysensors, and domoticz, but I can't get it to work reliably. If I start the gateway manually via a putty session, it will work for a few minutes, but then it stops and goes back to the command prompt in putty and I can see the log in Domoticz start showing the above errors.

      I have setup the gateway to start automatically, but it doesn't seem to restart correctly after a reboot.

      I suspect I have a version mismatch in my code somewhere, but I can't seem to find it. My last effort was to remove all code from my computer and start over, ie reinstall Arduino and a fresh download of MySensors code (v1.5).

      I've also tried changing the permissions on the tty devices, but that didn't seem to help either.

      I was real excited about this project when I first read about it. When I finally got some parts in, I had some quick success that kept me motivated, but my enthusiasm is waning a bit with my total lack of progress on this issue. 😞

      Thanks in advance for any help.

      posted in Hardware
      hayduke
      hayduke
    • RE: What happened to Maniacbug?

      I've wondered the same thing. You got me a little worried that perhaps he passed away, but I'm happy to say that I found at least one reference that indicates he is still around. He is leading a bike ride on March 22 🙂

      https://issuu.com/cascadebicycleclub/docs/courier03_15_r9
      On Page 5/7 on the bottom, page 9 in the document, look for March 22 Eastside #11 ride (top right corner). He is one of the leaders. At first I thought maybe it was just old data, but he isn't listed for the other Eastside #11 rides, so this could be current.

      posted in General Discussion
      hayduke
      hayduke