DHT11/22 checkHumidity syntax error



  • @WereCatf
    I downloaden the request package : https://dl.dropboxusercontent.com/u/11811685/checkHumidity.tar.gz

    Unpacked it:
    tar -zxvf checkHumidity.tar.gz

    Did the chmod:
    chmod -R 755 /root/checkHumidity/bin/checkHumidity

    I checked the firmware
    root@Omega-5101:~# oupgrade

    Device Firmware Version: 0.1.9 b149
    Checking latest version online...
    Repo Firmware Version: 0.1.9 b149
    Comparing version numbers
    Device firmware is up to date!

    But I'm getting a segmation fault:

    root@Omega-5101:~/checkHumidity/bin# ./checkHumidity 20 DHT11
    Segmentation fault

    I tried different GPIO pin, all gave the same result



  • @Oene-Bakker This has already been answered multiple times in this thread..



  • @WereCatf
    Yes, sorry was a bit too quick

    So went back to the old firmware

    root@Omega-5101:~/checkHumidity/bin# oupgrade -c

    Device Firmware Version: 0.1.6 b137
    Checking latest version online...
    Repo Firmware Version: 0.1.9 b149
    Comparing version numbers
    New firmware version available, need to upgrade device firmware

    Now I'm getting:
    root@Omega-5101:~/checkHumidity/bin# ./checkHumidity 20 DHT11
    -255.000000
    -255.000000

    Checked the wiring and tried different GPIO's all with the same result



  • @Oene-Bakker Do you have a pull-up resistor on it?



  • @WereCatf
    No but when I use a 10K pull up I get the same results :-(

    root@Omega-5101:~/checkHumidity/bin# ./checkHumidity 20 DHT11
    -255.000000
    -255.000000

    Also tried lower values 4.7K and 1K but that didn't work also



  • @Oene-Bakker Any luck with this? I have an Omega 1 and have the same problem albeit with the older version of checkHumidity.



  • @Prakhar-Birla no sorry. I stopped trying.



  • Dropbox stays the file is no longer available. Is there an alternate url to get checkHumidity for the Omega2? Please and thanks!



  • +1 on looking for the Omega2 compiled version of this. Dropbox link didn't work for me either.



  • +1 looking for the Omega2 ver as well