0

[SOLVED] Green Wireless + DHT22 = not working?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

[SOLVED] Green Wireless + DHT22 = not working?

by Gorghino on Mon Feb 13, 2017 11:58 am

Image: bone-debian-8.7-iot-armhf-2017-02-05-4gb OR bone-debian-8.6-iot-armhf-2016-12-09-4gb.img
Sensor: Aosong AM2302

I'm trying, without success, to setup a Temperature/Humidity on my brand new BBGW.
I tried to follow several tutorials (yours and https://github.com/lhuet/beaglebone-project/tree/master/DHT22) and this is my wiring:
PIC1: https://lh3.googleusercontent.com/-k4wYWDM3xI0/WJ9ZAhqBlZI/AAAAAAAAOEs/8zC0FibaLh8Pm3fp1OXJWgtaWM8d33PvwCLcB/s1600/2017-02-11%2B19.06.58.jpg
PIC2: https://lh3.googleusercontent.com/-vY8c01xHxA0/WJ9ZLVol9_I/AAAAAAAAOEw/ze2B5YO4vWAhC28auXwl2r374lWwUXUhwCLcB/s1600/2017-02-11%2B19.14.38.jpg

I tried:
- 3V and 5V
- Different GPIOs
- With and without resistance (2302 doesn't need it in theory)
- The sensor works on a Cortex M4 (Udoo Neo full) with your Arduino library!!

Current config:
Code: Select all | TOGGLE FULL SIZE
cat /etc/dogtag
BeagleBoard.org Debian Image 2016-11-06

uname -a
Linux beaglebone 4.4.30-ti-r64 #1 SMP Fri Nov 4 21:23:33 UTC 2016 armv7l GNU/Linux

cat /etc/debian_version
8.6


I installed your library without errors (Log: http://pastebin.com/53K438mP).
I even try with nice --10 in order to give priority without success.
The problem is that it NEVER gets a value. It always fails. :/

The problem in the code may be here:

The problem is here, in bbb_dht_read.c

Code: Select all | TOGGLE FULL SIZE
// Record pulse widths for the expected result bits.
  for (int i=0; i < DHT_PULSES*2; i+=2) {
    // Count how long pin is low and store in pulseCounts[i]
    while (!bbb_mmio_input(pin)) {
      if (++pulseCounts[i] >= DHT_MAXCOUNT) {
        // Timeout waiting for response.
        set_default_priority();
        printf("PulseCounts[i]: %d \n",pulseCounts[i]);
        return DHT_ERROR_TIMEOUT;
      }
    }

bbb_mmio_input(pin) returns 0 always and it returns DHT_ERROR_TIMEOUT.

Can't figure out how to fix it :/
Last edited by Gorghino on Thu Feb 16, 2017 8:15 am, edited 1 time in total.

Gorghino
 
Posts: 9
Joined: Mon Feb 13, 2017 11:42 am

Re: Green Wireless + DHT22 = not working?

by drewfustini on Tue Feb 14, 2017 5:17 am

Do you have the signal connected to P8_11?

Please paste the output of:

cat /sys/devices/platform/bone_capemgr/slots

config-pin -q p8.11

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: Green Wireless + DHT22 = not working?

by Gorghino on Tue Feb 14, 2017 5:28 am

root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,BB-UART2
5: P-O-L- 1 Override Board Name,00A0,Override Manuf,BB-UART4
root@beaglebone:~# config-pin -q p8.11
P8_11 pinmux file not found!
cape-universala overlay not found
run "config-pin overlay cape-universala" to load the cape

I'm not using a cape, only the board.

Gorghino
 
Posts: 9
Joined: Mon Feb 13, 2017 11:42 am

Re: Green Wireless + DHT22 = not working?

by drewfustini on Tue Feb 14, 2017 7:12 am

Please post the contents of:
/boot/uEnv.txt

You should have this line:
cmdline=coherent_pool=1M quiet cape_universal=enable

This should be the contents of the slots file:
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,cape-universaln

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: Green Wireless + DHT22 = not working?

by Gorghino on Tue Feb 14, 2017 7:17 am

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~/RTC_SDL_DS3231# cat /boot/uEnv.txt
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

uname_r=4.4.45-ti-r86
#uuid=
#dtb=

##BeagleBone Black/Green dtb's for v4.1.x (BeagleBone White just works..)

##BeagleBone Black: HDMI (Audio/Video) disabled:
#dtb=am335x-boneblack-emmc-overlay.dtb

##BeagleBone Black: eMMC disabled:
#dtb=am335x-boneblack-hdmi-overlay.dtb

##BeagleBone Black: HDMI Audio/eMMC disabled:
#dtb=am335x-boneblack-nhdmi-overlay.dtb

##BeagleBone Black: HDMI (Audio/Video)/eMMC disabled:
#dtb=am335x-boneblack-overlay.dtb

##BeagleBone Black: wl1835
#dtb=am335x-boneblack-wl1835mod.dtb

##BeagleBone Green: eMMC disabled
#dtb=am335x-bonegreen-overlay.dtb

###EXPERIMENTAL###
#enable_uboot_overlays=1
###Overide capes with eeprom
#uboot_overlay_addr0=/lib/firmware/<file0>.dtbo
#uboot_overlay_addr1=/lib/firmware/<file1>.dtbo
#uboot_overlay_addr2=/lib/firmware/<file2>.dtbo
#uboot_overlay_addr3=/lib/firmware/<file3>.dtbo
###Custom Cape
#dtb_overlay=/lib/firmware/BB-UART2-00A0.dtbo
###Disable auto loading of virtual capes (emmc/video/wireless)
#disable_uboot_overlay_emmc=1
#disable_uboot_overlay_video=1
#disable_uboot_overlay_wireless=1
###U-Boot fdt tweaks...
#uboot_fdt_buffer=0x60000
###EXPERIMENTAL###

cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable

#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable video=HDMI-A-1:1024x768@60e

##Example v3.8.x
#cape_disable=capemgr.disable_partno=
#cape_enable=capemgr.enable_partno=

##Example v4.1.x
#cape_disable=bone_capemgr.disable_partno=
cape_enable=bone_capemgr.enable_partno=BB-UART2,BB-UART4

##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh


Yes there is
Code: Select all | TOGGLE FULL SIZE
cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable

Gorghino
 
Posts: 9
Joined: Mon Feb 13, 2017 11:42 am

Re: Green Wireless + DHT22 = not working?

by drewfustini on Tue Feb 14, 2017 5:01 pm

Please try commenting out the cape_enable line in /boot/uEnv.txt:
#cape_enable=bone_capemgr.enable_partno=BB-UART2,BB-UART4


This should result in config-pin being able to control all the pins (except HDMI and eMMC).

You can use config-pin to configure the UART2 and UART4 pins:
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,cape-universaln

# UART4
root@beaglebone:~# config-pin p9.11 uart
root@beaglebone:~# config-pin p9.13 uart

# UART2
root@beaglebone:~# config-pin p9.21 uart
root@beaglebone:~# config-pin p9.22 uart


You should also be able to inspect and set p8.11 with config-pin:
root@beaglebone:~# config-pin -q p8.11
P8_11 Mode: default Direction: in Value: 1

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: Green Wireless + DHT22 = not working?

by Gorghino on Wed Feb 15, 2017 8:10 am

I'm with the latest image at the moment:

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~# cat /etc/dogtag
BeagleBoard.org Debian Image 2017-02-12
root@beaglebone:~# uname -a
Linux beaglebone 4.4.48-ti-r88 #1 SMP Sun Feb 12 01:06:00 UTC 2017 armv7l GNU/Linux
root@beaglebone:~# cat /etc/debian_version
8.7



I didn't edit uEnv.txt this time: http://pastebin.com/J7rvKUp1

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1

No slots here.

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~# config-pin p9.11 uart
P9_11 pinmux file not found!
cape-universala overlay not found
run "config-pin overlay cape-universala" to load the cape


I run config-pin overlay cape-universala:

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~# config-pin overlay cape-universala
Loading cape-universala overlay
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1
 4: P-O-L-   0 Override Board Name,00A0,Override Manuf,cape-universala


Try to config p8.11:
Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~# config-pin -q p8.11
Cannot read pinmux file: /sys/devices/platform/ocp/ocp*P8_11_pinmux/state


No errors with P9 and uart:
Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~#  config-pin p9.11 uart
root@beaglebone:~# config-pin p9.13 uart
root@beaglebone:~# config-pin p9.21 uart
root@beaglebone:~# config-pin p9.22 uart


Still doesn't get DHT Values.

My dmesg is pretty bad actually: http://pastebin.com/AYZwiGgP
My journal: http://pastebin.com/Gab25HnR

About dmesg, when it rains, it pours: wlan0 stopped working too, and you can see some kernel problem at boot....but I'll try to fix only if the gpio are working...

Gorghino
 
Posts: 9
Joined: Mon Feb 13, 2017 11:42 am

Re: Green Wireless + DHT22 = not working?

by drewfustini on Thu Feb 16, 2017 5:46 am

Gorghino wrote:I didn't edit uEnv.txt this time: http://pastebin.com/J7rvKUp1

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1

No slots here.

Try to config p8.11:
Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~# config-pin -q p8.11
Cannot read pinmux file: /sys/devices/platform/ocp/ocp*P8_11_pinmux/state



It is odd that cape-universaln isn't listed in slots when booting with the original, unedited /boot/uEnv.txt.

It is also a problem that config-pin can't get the state of p8.11.

I flashed bone-debian-8.7-lxqt-4gb-armhf-2017-02-12-4gb.img onto a microSD and booted from it:
root@beaglebone:~# cat /etc/dogtag
BeagleBoard.org Debian Image 2017-02-12

root@beaglebone:~# uname -a
Linux beaglebone 4.4.48-ti-r88 #1 SMP Sun Feb 12 01:06:00 UTC 2017 armv7l GNU/Linux

root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,cape-universaln

root@beaglebone:~# config-pin -q p8.11
P8_11 Mode: default Direction: in Value: 1


Are you using bone-debian-8.7-lxqt-4gb-armhf-2017-02-12-4gb.img too?

Also, it would be good to see the pinmux state for each pin. Please paste the output of:
cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pinmux-pins

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: Green Wireless + DHT22 = not working?

by Gorghino on Thu Feb 16, 2017 6:41 am

I used: bone-debian-8.7-iot-armhf-2017-02-12-4gb.img
I took it from here: http://www.rcn-ee.net/rootfs/bb.org/testing/2017-02-12/iot/

Now I flashed your image from your link.

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~# cat /etc/dogtag
BeagleBoard.org Debian Image 2017-02-12
root@beaglebone:~# uname -a
Linux beaglebone 4.4.48-ti-r88 #1 SMP Sun Feb 12 01:06:00 UTC 2017 armv7l GNU/Linux
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1



Pinmux-pins:

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~# cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pinmux-pins
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (44e10800.0): 481d8000.mmc (GPIO UNCLAIMED) function pinmux_emmc_pins group pinmux_emmc_pins
pin 1 (44e10804.0): 481d8000.mmc (GPIO UNCLAIMED) function pinmux_emmc_pins group pinmux_emmc_pins
pin 2 (44e10808.0): 481d8000.mmc (GPIO UNCLAIMED) function pinmux_emmc_pins group pinmux_emmc_pins
pin 3 (44e1080c.0): 481d8000.mmc (GPIO UNCLAIMED) function pinmux_emmc_pins group pinmux_emmc_pins
pin 4 (44e10810.0): 481d8000.mmc (GPIO UNCLAIMED) function pinmux_emmc_pins group pinmux_emmc_pins
pin 5 (44e10814.0): 481d8000.mmc (GPIO UNCLAIMED) function pinmux_emmc_pins group pinmux_emmc_pins
pin 6 (44e10818.0): 481d8000.mmc (GPIO UNCLAIMED) function pinmux_emmc_pins group pinmux_emmc_pins
pin 7 (44e1081c.0): 481d8000.mmc (GPIO UNCLAIMED) function pinmux_emmc_pins group pinmux_emmc_pins
pin 8 (44e10820.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 9 (44e10824.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 10 (44e10828.0): 47810000.mmc (GPIO UNCLAIMED) function pinmux_wlan_pins group pinmux_wlan_pins
pin 11 (44e1082c.0): 47810000.mmc (GPIO UNCLAIMED) function pinmux_wlan_pins group pinmux_wlan_pins
pin 12 (44e10830.0): 47810000.mmc (GPIO UNCLAIMED) function pinmux_mmc3_pins group pinmux_mmc3_pins
pin 13 (44e10834.0): 47810000.mmc (GPIO UNCLAIMED) function pinmux_mmc3_pins group pinmux_mmc3_pins
pin 14 (44e10838.0): 47810000.mmc (GPIO UNCLAIMED) function pinmux_mmc3_pins group pinmux_mmc3_pins
pin 15 (44e1083c.0): 47810000.mmc (GPIO UNCLAIMED) function pinmux_mmc3_pins group pinmux_mmc3_pins
pin 16 (44e10840.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 17 (44e10844.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 18 (44e10848.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 19 (44e1084c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 20 (44e10850.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 21 (44e10854.0): leds (GPIO UNCLAIMED) function user_leds_default group user_leds_default
pin 22 (44e10858.0): leds (GPIO UNCLAIMED) function user_leds_default group user_leds_default
pin 23 (44e1085c.0): leds (GPIO UNCLAIMED) function user_leds_default group user_leds_default
pin 24 (44e10860.0): leds (GPIO UNCLAIMED) function user_leds_default group user_leds_default
pin 25 (44e10864.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 26 (44e10868.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 27 (44e1086c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 28 (44e10870.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 29 (44e10874.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 30 (44e10878.0): 481a6000.serial (GPIO UNCLAIMED) function pinmux_bt_pins group pinmux_bt_pins
pin 31 (44e1087c.0): 47810000.mmc (GPIO UNCLAIMED) function pinmux_wlan_pins group pinmux_wlan_pins
pin 32 (44e10880.0): 481d8000.mmc (GPIO UNCLAIMED) function pinmux_emmc_pins group pinmux_emmc_pins
pin 33 (44e10884.0): 481d8000.mmc (GPIO UNCLAIMED) function pinmux_emmc_pins group pinmux_emmc_pins
pin 34 (44e10888.0): 47810000.mmc (GPIO UNCLAIMED) function pinmux_mmc3_pins group pinmux_mmc3_pins
pin 35 (44e1088c.0): 47810000.mmc (GPIO UNCLAIMED) function pinmux_mmc3_pins group pinmux_mmc3_pins
pin 36 (44e10890.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 37 (44e10894.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 38 (44e10898.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (44e1089c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (44e108a0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 41 (44e108a4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 42 (44e108a8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 43 (44e108ac.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 44 (44e108b0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 45 (44e108b4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 46 (44e108b8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 47 (44e108bc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 48 (44e108c0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 49 (44e108c4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 50 (44e108c8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 51 (44e108cc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 52 (44e108d0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 53 (44e108d4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 54 (44e108d8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 55 (44e108dc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 56 (44e108e0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 57 (44e108e4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 58 (44e108e8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 59 (44e108ec.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 60 (44e108f0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 61 (44e108f4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 62 (44e108f8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 63 (44e108fc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 64 (44e10900.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 65 (44e10904.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 66 (44e10908.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 67 (44e1090c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 68 (44e10910.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 69 (44e10914.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 70 (44e10918.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 71 (44e1091c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 72 (44e10920.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 73 (44e10924.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 74 (44e10928.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 75 (44e1092c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 76 (44e10930.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 77 (44e10934.0): 481a6000.serial (GPIO UNCLAIMED) function pinmux_uart3_pins_default group pinmux_uart3_pins_default
pin 78 (44e10938.0): 481a6000.serial (GPIO UNCLAIMED) function pinmux_uart3_pins_default group pinmux_uart3_pins_default
pin 79 (44e1093c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 80 (44e10940.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 81 (44e10944.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 82 (44e10948.0): 481a6000.serial (GPIO UNCLAIMED) function pinmux_uart3_pins_default group pinmux_uart3_pins_default
pin 83 (44e1094c.0): 481a6000.serial (GPIO UNCLAIMED) function pinmux_uart3_pins_default group pinmux_uart3_pins_default
pin 84 (44e10950.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 85 (44e10954.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 86 (44e10958.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 87 (44e1095c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 88 (44e10960.0): 48060000.mmc (GPIO UNCLAIMED) function pinmux_mmc1_pins group pinmux_mmc1_pins
pin 89 (44e10964.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 90 (44e10968.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 91 (44e1096c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 92 (44e10970.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
pin 93 (44e10974.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
pin 94 (44e10978.0): 4819c000.i2c (GPIO UNCLAIMED) function pinmux_i2c2_pins group pinmux_i2c2_pins
pin 95 (44e1097c.0): 4819c000.i2c (GPIO UNCLAIMED) function pinmux_i2c2_pins group pinmux_i2c2_pins
pin 96 (44e10980.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 97 (44e10984.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 98 (44e10988.0): 44e0b000.i2c (GPIO UNCLAIMED) function pinmux_i2c0_pins group pinmux_i2c0_pins
pin 99 (44e1098c.0): 44e0b000.i2c (GPIO UNCLAIMED) function pinmux_i2c0_pins group pinmux_i2c0_pins
pin 100 (44e10990.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 101 (44e10994.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 102 (44e10998.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 103 (44e1099c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 104 (44e109a0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 105 (44e109a4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 106 (44e109a8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 107 (44e109ac.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 108 (44e109b0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 109 (44e109b4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 110 (44e109b8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 111 (44e109bc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 112 (44e109c0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 113 (44e109c4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 114 (44e109c8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 115 (44e109cc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 116 (44e109d0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 117 (44e109d4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 118 (44e109d8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 119 (44e109dc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 120 (44e109e0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 121 (44e109e4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 122 (44e109e8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 123 (44e109ec.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 124 (44e109f0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 125 (44e109f4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 126 (44e109f8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 127 (44e109fc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 128 (44e10a00.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 129 (44e10a04.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 130 (44e10a08.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 131 (44e10a0c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 132 (44e10a10.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 133 (44e10a14.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 134 (44e10a18.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 135 (44e10a1c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 136 (44e10a20.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 137 (44e10a24.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 138 (44e10a28.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 139 (44e10a2c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 140 (44e10a30.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 141 (44e10a34.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)

Gorghino
 
Posts: 9
Joined: Mon Feb 13, 2017 11:42 am

Re: Green Wireless + DHT22 = not working?

by drewfustini on Thu Feb 16, 2017 7:23 am

I'm looking through your boot log:
http://pastebin.com/raw/AYZwiGgP

and I noticed:
[ 533.362220] pinctrl-single 44e10800.pinmux: pin 44e10834.0 already requested by 47810000.mmc; cannot claim for ocp:P8_11_pinmux
[ 533.373986] pinctrl-single 44e10800.pinmux: pin-13 (ocp:P8_11_pinmux) status -22


It seems there is a device conflict where mmc has already claimed P8_11.

If you are booting from microSD, then these lines in /boot/uEnv.txt should disable the eMMC:
uname_r=4.4.48-ti-r88
dtb=am335x-bonegreen-overlay.dtb
cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable


I've pasted the complete /boot/uEnv.txt in a gist. I don't have a BeagleBone Green or Green Wireless, but I've booted with that uEnv.txt on BeagleBone Black. During bootup, bone_capemgr loads univ-all-00A0.dtbo.
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,univ-all

root@beaglebone:~# config-pin -q p8.11
P8_11 Mode: default Direction: in Value: 1

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: Green Wireless + DHT22 = not working?

by Gorghino on Thu Feb 16, 2017 8:01 am

Ok progress!
Now I have the slots like you:

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~/Adafruit_Python_DHT/examples# cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1
 4: P-O-L-   0 Override Board Name,00A0,Override Manuf,univ-all


Pinmux:
Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~/Adafruit_Python_DHT/examples# cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pinmux-pins
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (44e10800.0): ocp:P8_25_pinmux (GPIO UNCLAIMED) function pinmux_P8_25_default_pin group pinmux_P8_25_default_pin
pin 1 (44e10804.0): ocp:P8_24_pinmux (GPIO UNCLAIMED) function pinmux_P8_24_default_pin group pinmux_P8_24_default_pin
pin 2 (44e10808.0): ocp:P8_05_pinmux (GPIO UNCLAIMED) function pinmux_P8_05_default_pin group pinmux_P8_05_default_pin
pin 3 (44e1080c.0): ocp:P8_06_pinmux (GPIO UNCLAIMED) function pinmux_P8_06_default_pin group pinmux_P8_06_default_pin
pin 4 (44e10810.0): ocp:P8_23_pinmux (GPIO UNCLAIMED) function pinmux_P8_23_default_pin group pinmux_P8_23_default_pin
pin 5 (44e10814.0): ocp:P8_22_pinmux (GPIO UNCLAIMED) function pinmux_P8_22_default_pin group pinmux_P8_22_default_pin
pin 6 (44e10818.0): ocp:P8_03_pinmux (GPIO UNCLAIMED) function pinmux_P8_03_default_pin group pinmux_P8_03_default_pin
pin 7 (44e1081c.0): ocp:P8_04_pinmux (GPIO UNCLAIMED) function pinmux_P8_04_default_pin group pinmux_P8_04_default_pin
pin 8 (44e10820.0): ocp:P8_19_pinmux (GPIO UNCLAIMED) function pinmux_P8_19_default_pin group pinmux_P8_19_default_pin
pin 9 (44e10824.0): ocp:P8_13_pinmux (GPIO UNCLAIMED) function pinmux_P8_13_default_pin group pinmux_P8_13_default_pin
pin 10 (44e10828.0): ocp:P8_14_pinmux (GPIO UNCLAIMED) function pinmux_P8_14_default_pin group pinmux_P8_14_default_pin
pin 11 (44e1082c.0): ocp:P8_17_pinmux (GPIO UNCLAIMED) function pinmux_P8_17_default_pin group pinmux_P8_17_default_pin
pin 12 (44e10830.0): ocp:P8_12_pinmux (GPIO UNCLAIMED) function pinmux_P8_12_default_pin group pinmux_P8_12_default_pin
pin 13 (44e10834.0): ocp:P8_11_pinmux (GPIO UNCLAIMED) function pinmux_P8_11_default_pin group pinmux_P8_11_default_pin
pin 14 (44e10838.0): ocp:P8_16_pinmux (GPIO UNCLAIMED) function pinmux_P8_16_default_pin group pinmux_P8_16_default_pin
pin 15 (44e1083c.0): ocp:P8_15_pinmux (GPIO UNCLAIMED) function pinmux_P8_15_default_pin group pinmux_P8_15_default_pin
pin 16 (44e10840.0): ocp:P9_15_pinmux (GPIO UNCLAIMED) function pinmux_P9_15_default_pin group pinmux_P9_15_default_pin
pin 17 (44e10844.0): ocp:P9_23_pinmux (GPIO UNCLAIMED) function pinmux_P9_23_default_pin group pinmux_P9_23_default_pin
pin 18 (44e10848.0): ocp:P9_14_pinmux (GPIO UNCLAIMED) function pinmux_P9_14_default_pin group pinmux_P9_14_default_pin
pin 19 (44e1084c.0): ocp:P9_16_pinmux (GPIO UNCLAIMED) function pinmux_P9_16_default_pin group pinmux_P9_16_default_pin
pin 20 (44e10850.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 21 (44e10854.0): leds (GPIO UNCLAIMED) function user_leds_default group user_leds_default
pin 22 (44e10858.0): leds (GPIO UNCLAIMED) function user_leds_default group user_leds_default
pin 23 (44e1085c.0): leds (GPIO UNCLAIMED) function user_leds_default group user_leds_default
pin 24 (44e10860.0): leds (GPIO UNCLAIMED) function user_leds_default group user_leds_default
pin 25 (44e10864.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 26 (44e10868.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 27 (44e1086c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 28 (44e10870.0): ocp:P9_11_pinmux (GPIO UNCLAIMED) function pinmux_P9_11_default_pin group pinmux_P9_11_default_pin
pin 29 (44e10874.0): ocp:P9_13_pinmux (GPIO UNCLAIMED) function pinmux_P9_13_default_pin group pinmux_P9_13_default_pin
pin 30 (44e10878.0): ocp:P9_12_pinmux (GPIO UNCLAIMED) function pinmux_P9_12_default_pin group pinmux_P9_12_default_pin
pin 31 (44e1087c.0): ocp:P8_26_pinmux (GPIO UNCLAIMED) function pinmux_P8_26_default_pin group pinmux_P8_26_default_pin
pin 32 (44e10880.0): ocp:P8_21_pinmux (GPIO UNCLAIMED) function pinmux_P8_21_default_pin group pinmux_P8_21_default_pin
pin 33 (44e10884.0): ocp:P8_20_pinmux (GPIO UNCLAIMED) function pinmux_P8_20_default_pin group pinmux_P8_20_default_pin
pin 34 (44e10888.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 35 (44e1088c.0): ocp:P8_18_pinmux (GPIO UNCLAIMED) function pinmux_P8_18_default_pin group pinmux_P8_18_default_pin
pin 36 (44e10890.0): ocp:P8_07_pinmux (GPIO UNCLAIMED) function pinmux_P8_07_default_pin group pinmux_P8_07_default_pin
pin 37 (44e10894.0): ocp:P8_08_pinmux (GPIO UNCLAIMED) function pinmux_P8_08_default_pin group pinmux_P8_08_default_pin
pin 38 (44e10898.0): ocp:P8_10_pinmux (GPIO UNCLAIMED) function pinmux_P8_10_default_pin group pinmux_P8_10_default_pin
pin 39 (44e1089c.0): ocp:P8_09_pinmux (GPIO UNCLAIMED) function pinmux_P8_09_default_pin group pinmux_P8_09_default_pin
pin 40 (44e108a0.0): ocp:P8_45_pinmux (GPIO UNCLAIMED) function pinmux_P8_45_default_pin group pinmux_P8_45_default_pin
pin 41 (44e108a4.0): ocp:P8_46_pinmux (GPIO UNCLAIMED) function pinmux_P8_46_default_pin group pinmux_P8_46_default_pin
pin 42 (44e108a8.0): ocp:P8_43_pinmux (GPIO UNCLAIMED) function pinmux_P8_43_default_pin group pinmux_P8_43_default_pin
pin 43 (44e108ac.0): ocp:P8_44_pinmux (GPIO UNCLAIMED) function pinmux_P8_44_default_pin group pinmux_P8_44_default_pin
pin 44 (44e108b0.0): ocp:P8_41_pinmux (GPIO UNCLAIMED) function pinmux_P8_41_default_pin group pinmux_P8_41_default_pin
pin 45 (44e108b4.0): ocp:P8_42_pinmux (GPIO UNCLAIMED) function pinmux_P8_42_default_pin group pinmux_P8_42_default_pin
pin 46 (44e108b8.0): ocp:P8_39_pinmux (GPIO UNCLAIMED) function pinmux_P8_39_default_pin group pinmux_P8_39_default_pin
pin 47 (44e108bc.0): ocp:P8_40_pinmux (GPIO UNCLAIMED) function pinmux_P8_40_default_pin group pinmux_P8_40_default_pin
pin 48 (44e108c0.0): ocp:P8_37_pinmux (GPIO UNCLAIMED) function pinmux_P8_37_default_pin group pinmux_P8_37_default_pin
pin 49 (44e108c4.0): ocp:P8_38_pinmux (GPIO UNCLAIMED) function pinmux_P8_38_default_pin group pinmux_P8_38_default_pin
pin 50 (44e108c8.0): ocp:P8_36_pinmux (GPIO UNCLAIMED) function pinmux_P8_36_default_pin group pinmux_P8_36_default_pin
pin 51 (44e108cc.0): ocp:P8_34_pinmux (GPIO UNCLAIMED) function pinmux_P8_34_default_pin group pinmux_P8_34_default_pin
pin 52 (44e108d0.0): ocp:P8_35_pinmux (GPIO UNCLAIMED) function pinmux_P8_35_default_pin group pinmux_P8_35_default_pin
pin 53 (44e108d4.0): ocp:P8_33_pinmux (GPIO UNCLAIMED) function pinmux_P8_33_default_pin group pinmux_P8_33_default_pin
pin 54 (44e108d8.0): ocp:P8_31_pinmux (GPIO UNCLAIMED) function pinmux_P8_31_default_pin group pinmux_P8_31_default_pin
pin 55 (44e108dc.0): ocp:P8_32_pinmux (GPIO UNCLAIMED) function pinmux_P8_32_default_pin group pinmux_P8_32_default_pin
pin 56 (44e108e0.0): ocp:P8_27_pinmux (GPIO UNCLAIMED) function pinmux_P8_27_default_pin group pinmux_P8_27_default_pin
pin 57 (44e108e4.0): ocp:P8_29_pinmux (GPIO UNCLAIMED) function pinmux_P8_29_default_pin group pinmux_P8_29_default_pin
pin 58 (44e108e8.0): ocp:P8_28_pinmux (GPIO UNCLAIMED) function pinmux_P8_28_default_pin group pinmux_P8_28_default_pin
pin 59 (44e108ec.0): ocp:P8_30_pinmux (GPIO UNCLAIMED) function pinmux_P8_30_default_pin group pinmux_P8_30_default_pin
pin 60 (44e108f0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 61 (44e108f4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 62 (44e108f8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 63 (44e108fc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 64 (44e10900.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 65 (44e10904.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 66 (44e10908.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 67 (44e1090c.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 68 (44e10910.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 69 (44e10914.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 70 (44e10918.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 71 (44e1091c.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 72 (44e10920.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 73 (44e10924.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 74 (44e10928.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 75 (44e1092c.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 76 (44e10930.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 77 (44e10934.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 78 (44e10938.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 79 (44e1093c.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 80 (44e10940.0): 4a100000.ethernet (GPIO UNCLAIMED) function cpsw_default group cpsw_default
pin 81 (44e10944.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 82 (44e10948.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 83 (44e1094c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 84 (44e10950.0): ocp:P9_22_pinmux (GPIO UNCLAIMED) function pinmux_P9_22_default_pin group pinmux_P9_22_default_pin
pin 85 (44e10954.0): ocp:P9_21_pinmux (GPIO UNCLAIMED) function pinmux_P9_21_default_pin group pinmux_P9_21_default_pin
pin 86 (44e10958.0): ocp:P9_18_pinmux (GPIO UNCLAIMED) function pinmux_P9_18_default_pin group pinmux_P9_18_default_pin
pin 87 (44e1095c.0): ocp:P9_17_pinmux (GPIO UNCLAIMED) function pinmux_P9_17_default_pin group pinmux_P9_17_default_pin
pin 88 (44e10960.0): 48060000.mmc (GPIO UNCLAIMED) function pinmux_mmc1_pins group pinmux_mmc1_pins
pin 89 (44e10964.0): ocp:P9_42_pinmux (GPIO UNCLAIMED) function pinmux_P9_42_default_pin group pinmux_P9_42_default_pin
pin 90 (44e10968.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 91 (44e1096c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 92 (44e10970.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
pin 93 (44e10974.0): 44e09000.serial (GPIO UNCLAIMED) function pinmux_uart0_pins group pinmux_uart0_pins
pin 94 (44e10978.0): 4819c000.i2c (GPIO UNCLAIMED) function pinmux_i2c2_pins group pinmux_i2c2_pins
pin 95 (44e1097c.0): 4819c000.i2c (GPIO UNCLAIMED) function pinmux_i2c2_pins group pinmux_i2c2_pins
pin 96 (44e10980.0): ocp:P9_26_pinmux (GPIO UNCLAIMED) function pinmux_P9_26_default_pin group pinmux_P9_26_default_pin
pin 97 (44e10984.0): ocp:P9_24_pinmux (GPIO UNCLAIMED) function pinmux_P9_24_default_pin group pinmux_P9_24_default_pin
pin 98 (44e10988.0): 44e0b000.i2c (GPIO UNCLAIMED) function pinmux_i2c0_pins group pinmux_i2c0_pins
pin 99 (44e1098c.0): 44e0b000.i2c (GPIO UNCLAIMED) function pinmux_i2c0_pins group pinmux_i2c0_pins
pin 100 (44e10990.0): ocp:P9_31_pinmux (GPIO UNCLAIMED) function pinmux_P9_31_default_pin group pinmux_P9_31_default_pin
pin 101 (44e10994.0): ocp:P9_29_pinmux (GPIO UNCLAIMED) function pinmux_P9_29_default_pin group pinmux_P9_29_default_pin
pin 102 (44e10998.0): ocp:P9_30_pinmux (GPIO UNCLAIMED) function pinmux_P9_30_default_pin group pinmux_P9_30_default_pin
pin 103 (44e1099c.0): ocp:P9_28_pinmux (GPIO UNCLAIMED) function pinmux_P9_28_default_pin group pinmux_P9_28_default_pin
pin 104 (44e109a0.0): ocp:P9_92_pinmux (GPIO UNCLAIMED) function pinmux_P9_92_default_pin group pinmux_P9_92_default_pin
pin 105 (44e109a4.0): ocp:P9_27_pinmux (GPIO UNCLAIMED) function pinmux_P9_27_default_pin group pinmux_P9_27_default_pin
pin 106 (44e109a8.0): ocp:P9_91_pinmux (GPIO UNCLAIMED) function pinmux_P9_91_default_pin group pinmux_P9_91_default_pin
pin 107 (44e109ac.0): ocp:P9_25_pinmux (GPIO UNCLAIMED) function pinmux_P9_25_default_pin group pinmux_P9_25_default_pin
pin 108 (44e109b0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 109 (44e109b4.0): ocp:P9_41_pinmux (GPIO UNCLAIMED) function pinmux_P9_41_default_pin group pinmux_P9_41_default_pin
pin 110 (44e109b8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 111 (44e109bc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 112 (44e109c0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 113 (44e109c4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 114 (44e109c8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 115 (44e109cc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 116 (44e109d0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 117 (44e109d4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 118 (44e109d8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 119 (44e109dc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 120 (44e109e0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 121 (44e109e4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 122 (44e109e8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 123 (44e109ec.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 124 (44e109f0.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 125 (44e109f4.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 126 (44e109f8.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 127 (44e109fc.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 128 (44e10a00.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 129 (44e10a04.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 130 (44e10a08.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 131 (44e10a0c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 132 (44e10a10.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 133 (44e10a14.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 134 (44e10a18.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 135 (44e10a1c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 136 (44e10a20.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 137 (44e10a24.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 138 (44e10a28.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 139 (44e10a2c.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 140 (44e10a30.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 141 (44e10a34.0): (MUX UNCLAIMED) (GPIO UNCLAIMED)


My new dmesg: http://pastebin.com/Hq4xpNKU

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~/Adafruit_Python_DHT/examples# config-pin -q p8.11
P8_11 Mode: default Direction: in Value: 1


And IT WORKS!


Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.5*  Humidity=17.5%


Even if there's not 29.5°C in the office...but everytime I launch the script it decreases one decimal..

Code: Select all | TOGGLE FULL SIZE
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.5*  Humidity=17.5%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.5*  Humidity=16.6%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.4*  Humidity=16.4%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.4*  Humidity=16.3%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.2*  Humidity=16.2%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.2*  Humidity=16.3%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.2*  Humidity=16.3%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.1*  Humidity=16.3%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.1*  Humidity=16.3%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=29.0*  Humidity=16.3%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=28.9*  Humidity=16.4%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=28.9*  Humidity=16.5%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=28.8*  Humidity=16.6%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=28.8*  Humidity=16.7%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=28.7*  Humidity=16.6%
root@beaglebone:~/Adafruit_Python_DHT/examples# ./AdafruitDHT.py 2302 P8_11
Temp=28.6*  Humidity=16.7%


Is it ok? It's not time-related because if I wait without exec the script, it doesn't decreases it naturally. Now it's steady and 24.9°C that is quite ok.
So, should I config manually each time I use a gpio with config-pin -q?

THANK YOU! :D

Gorghino
 
Posts: 9
Joined: Mon Feb 13, 2017 11:42 am

Re: Green Wireless + DHT22 = not working?

by drewfustini on Fri Feb 17, 2017 12:04 am

Gorghino wrote:So, should I config manually each time I use a gpio with config-pin -q?


"config-pin -q" is just querying the pin. It should be in GPIO mode by default. The problem originally was that it was being claimed by the eMMC configuration.

However, it is an interesting question how to config-pin at boot. One way would be to create a systemd service file. I've posted on the beagleboard mailing list to see what folks in the community think: Best method to run config-pin after bootup?

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Please be positive and constructive with your questions and comments.