Jump to content

orange pi pc and 1wire ds18b20 don't find


Go to solution Solved by sergesa,

Recommended Posts

Posted

Hi all,

I trying many days set up temperature sensor work, but no luck (

Orange PI PC Armbian 20.11.3 Focal with Linux 5.9.14-sunxi

try many pins, 3 and 5 V , but same result, no sensor read. No any resistor, 1 sensor

armbianenv:

overlays=w1-gpio usbhost0
param_w1_pin=PD14
param_w1_pin_int_pullup=1

output:

root@orangepipc:~# gpio readall
 +------+-----+----------+------+---+OrangePiH3+---+------+----------+-----+------+
 | GPIO | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | GPIO |
 +------+-----+----------+------+---+----++----+---+------+----------+-----+------+
 |      |     |     3.3V |      |   |  1 || 2  |   |      | 5V       |     |      |
 |   12 |   0 |    SDA.0 |  OFF | 0 |  3 || 4  |   |      | 5V       |     |      |
 |   11 |   1 |    SCL.0 |  OFF | 0 |  5 || 6  |   |      | GND      |     |      |
 |    6 |   2 |      PA6 |  OFF | 0 |  7 || 8  | 0 | OFF  | TXD.3    | 3   | 13   |
 |      |     |      GND |      |   |  9 || 10 | 0 | OFF  | RXD.3    | 4   | 14   |
 |    1 |   5 |    RXD.2 |  OFF | 0 | 11 || 12 | 1 | IN   | PD14     | 6   | 110  |
 |    0 |   7 |    TXD.2 |  OFF | 0 | 13 || 14 |   |      | GND      |     |      |
 |    3 |   8 |    CTS.2 |  OFF | 0 | 15 || 16 | 0 | OFF  | PC04     | 9   | 68   |
 |      |     |     3.3V |      |   | 17 || 18 | 0 | OFF  | PC07     | 10  | 71   |
 |   64 |  11 |   MOSI.0 |  OFF | 0 | 19 || 20 |   |      | GND      |     |      |
 |   65 |  12 |   MISO.0 |  OFF | 0 | 21 || 22 | 0 | OFF  | RTS.2    | 13  | 2    |
 |   66 |  14 |   SCLK.0 |  OFF | 0 | 23 || 24 | 0 | OFF  | CE.0     | 15  | 67   |
 |      |     |      GND |      |   | 25 || 26 | 0 | OFF  | PA21     | 16  | 21   |
 |   19 |  17 |    SDA.1 |  OFF | 0 | 27 || 28 | 0 | OFF  | SCL.1    | 18  | 18   |
 |    7 |  19 |     PA07 |  OFF | 0 | 29 || 30 |   |      | GND      |     |      |
 |    8 |  20 |     PA08 |  OFF | 0 | 31 || 32 | 0 | OFF  | RTS.1    | 21  | 200  |
 |    9 |  22 |     PA09 |  OFF | 0 | 33 || 34 |   |      | GND      |     |      |
 |   10 |  23 |     PA10 |  OFF | 0 | 35 || 36 | 0 | OFF  | CTS.1    | 24  | 201  |
 |   20 |  25 |     PA20 |  OFF | 0 | 37 || 38 | 0 | OFF  | TXD.1    | 26  | 198  |
 |      |     |      GND |      |   | 39 || 40 | 0 | OFF  | RXD.1    | 27  | 199  |
 +------+-----+----------+------+---+----++----+---+------+----------+-----+------+
 | GPIO | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | GPIO |
 +------+-----+----------+------+---+OrangePiH3+---+------+----------+-----+------+

-----------------------------------------------------

root@orangepipc:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-223, parent: platform/1c20800.pinctrl, 1c20800.pinctrl:
 gpio-15  (                    |orangepi:red:status ) out lo
 gpio-110 (                    |onewire@0           ) out hi
 gpio-166 (                    |cd                  ) in  lo ACTIVE LOW
 gpio-204 (                    |usb0_id_det         ) in  hi IRQ

gpiochip1: GPIOs 352-383, parent: platform/1f02c00.pinctrl, 1f02c00.pinctrl:
 gpio-354 (                    |usb0-vbus           ) out lo
 gpio-355 (                    |sw4                 ) in  hi IRQ ACTIVE LOW
 gpio-362 (                    |orangepi:green:pwr  ) out hi

-------------------------------------------------------------

root@orangepipc:~# dmesg | grep -i wire
[    6.430149] Driver for 1-wire Dallas network protocol.
[    6.459512] gpio-110 (onewire@0): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[   56.017951] w1_master_driver w1_bus_master1: Attaching one wire slave 00.800000000000 crc 8c
[  114.631209] w1_master_driver w1_bus_master1: Attaching one wire slave 00.400000000000 crc 46
[  161.437506] w1_master_driver w1_bus_master1: Attaching one wire slave 00.c00000000000 crc ca
[  232.114781] w1_master_driver w1_bus_master1: Attaching one wire slave 00.200000000000 crc 23
[  290.730986] w1_master_driver w1_bus_master1: Attaching one wire slave 00.a00000000000 crc af
[  325.739928] w1_master_driver w1_bus_master1: Attaching one wire slave 00.600000000000 crc 65
[  362.455883] w1_master_driver w1_bus_master1: Attaching one wire slave 00.e00000000000 crc e9
[  420.673710] w1_master_driver w1_bus_master1: Attaching one wire slave 00.100000000000 crc 9d

 

Any help?

Thanks!

Posted

Hi,

mmm

root@orangepipc:~#  armbianmonitor -u
System diagnosis information will now be uploaded to gzip: /var/log/armbian-hardware-monitor.log.1.gz: No such file or directory
http://ix.io/2K2F

 

Thanks

  • Solution
Posted

Ok, resolved

after I add outboard pullup , immediately :

[292751.493482] w1_master_driver w1_bus_master1: Attaching one wire slave 28.00000615392c crc ca
[292751.613810] w1_master_driver w1_bus_master1: Attaching one wire slave 28.00000615191f crc 86

 

It seems no internal pullup work on 5.9.14 ..

Regards.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines