Jump to content

kzkz

Members
  • Posts

    5
  • Joined

  • Last visited

  1. Additional info: I added w1-2406 to /etc/modules and the not registered error message is disappeard! lsmod: Module Size Used by evdev 9979 0 xradio_wlan 92375 1 mac80211 325145 1 xradio_wlan sun8i_codec_analog 13766 0 cfg80211 192770 2 mac80211,xradio_wlan snd_soc_core 115473 1 sun8i_codec_analog rfkill 10928 3 cfg80211 snd_pcm_dmaengine 4221 1 snd_soc_core snd_pcm 70145 2 snd_pcm_dmaengine,snd_soc_core sun8i_ths 3134 0 cpufreq_dt 3522 0 gpio_keys 8517 0 thermal_sys 43232 2 cpufreq_dt,sun8i_ths uio_pdrv_genirq 3354 0 uio 8012 1 uio_pdrv_genirq w1_ds2406 1869 0 w1_therm 5237 0 w1_gpio 3195 0 wire 20756 3 w1_gpio,w1_ds2406,w1_therm usb_f_acm 4871 1 u_serial 8725 3 usb_f_acm g_serial 3737 0 libcomposite 34692 2 g_serial,usb_f_acm But I still can't see PIO files. I have a new output file in the list: root@orangepizero:/sys/bus/w1/devices/12-00000097477a# ls -la total 0 drwxr-xr-x 3 root root 0 Apr 18 17:03 . drwxr-xr-x 5 root root 0 Apr 18 17:03 .. lrwxrwxrwx 1 root root 0 Apr 18 17:04 driver -> ../../../bus/w1/drivers/w1_slave_driver -r--r--r-- 1 root root 4096 Apr 18 17:04 id -r--r--r-- 1 root root 4096 Apr 18 17:04 name -rw-rw-r-- 1 root root 1 Apr 18 17:04 output drwxr-xr-x 2 root root 0 Apr 18 17:04 power -r--r--r-- 1 root root 1 Apr 18 17:04 state lrwxrwxrwx 1 root root 0 Apr 18 17:03 subsystem -> ../../../bus/w1 -rw-r--r-- 1 root root 4096 Apr 18 17:03 uevent There is an error line at Domoticz log: Error: 1Wire: Device not yet supported in Kernel mode (Please report!) ID:12-00000097477a, family: 12 After installed owfs and owserver: owfs --w1 -m /mnt/1wire --allow_other --debug DEBUG MODE libow version: 3.1p1 CONNECT: owfs.c:(102) fuse mount point: /mnt/1wire CONNECT: ow_dnssd.c:(81) Zeroconf/Bonjour is disabled since dnssd library isn't found CALL: ow_parsename.c:(104) path=[] DEBUG: owlib.c:(77) Global temp limit 0C to 100C (for fake and mock adapters) CONNECT: ow_w1_bind.c:(54) [Protocol not supported] Netlink (w1) socket (are you root?) DEBUG: ow_w1_monitor.c:(65) [Protocol not supported] Netlink problem -- are you root? DEBUG: ow_net_client.c:(28) Called with localhost:4304 default=4304 ]*$> compiled to 0xb6f51764g Ex expression <^ *([^ ]+)[ ]*$> compiled to 0xb6f51784g Ex expression <^ *([^ ]+) *: *([^ ]+)[ ]*$> compiled to 0xb6f517a4g Ex expression <^ *([^ ]+) *: *([^ ]+) *: *([^ ]+)[ DEBUG: ow_regex.c:(154) Not found DEBUG: ow_regex.c:(201) 0: 0->14 found <><localhost:4304><> DEBUG: ow_regex.c:(201) 1: 0->9 found <><localhost><:4304> DEBUG: ow_regex.c:(201) 2: 10->14 found <localhost:><4304><> DEBUG: ow_regex.c:(74) Reg Ex expression <^$> compiled to 0xb6f516a4 DEBUG: ow_regex.c:(74) Reg Ex expression <^all$> compiled to 0xb6f516c4 DEBUG: ow_regex.c:(74) Reg Ex expression <^scan$> compiled to 0xb6f516e4 DEBUG: ow_regex.c:(74) Reg Ex expression <^\*$> compiled to 0xb6f51704 DEBUG: ow_regex.c:(74) Reg Ex expression <^[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}$> compiled to 0xb6f51724 DEBUG: ow_regex.c:(74) Reg Ex expression <^-?[[:digit:]]+$> compiled to 0xb6f51744 DEBUG: ow_parse_address.c:(60) Text <localhost> DEBUG: ow_parse_address.c:(120) First <localhost> DEBUG: ow_parse_address.c:(125) Second <4304> DEBUG: ow_parse_address.c:(57) Num <4304> 4304 DEBUG: ow_net_client.c:(85) Called with [localhost:4304] IP address=[localhost] port=[4304] CONNECT: ow_net_client.c:(147) [Connection refused] Socket problem CONNECT: owlib.c:(108) Cannot open server at localhost:4304 -- first attempt. DEBUG: ow_net_client.c:(28) Called with localhost:4304 default=4304 DEBUG: ow_regex.c:(154) Not found DEBUG: ow_regex.c:(201) 0: 0->14 found <><localhost:4304><> DEBUG: ow_regex.c:(201) 1: 0->9 found <><localhost><:4304> DEBUG: ow_regex.c:(201) 2: 10->14 found <localhost:><4304><> DEBUG: ow_parse_address.c:(60) Text <localhost> DEBUG: ow_parse_address.c:(120) First <localhost> DEBUG: ow_parse_address.c:(125) Second <4304> DEBUG: ow_parse_address.c:(57) Num <4304> 4304 DEBUG: ow_net_client.c:(85) Called with [localhost:4304] IP address=[localhost] port=[4304] CONNECT: ow_net_client.c:(147) [Connection refused] Socket problem CONNECT: owlib.c:(113) Cannot open server at localhost:4304 -- second (and final) attempt. DEFAULT: owlib.c:(52) No valid 1-wire buses found
  2. Thanks all for the help! I added to /boot/ambianEnv.txt: overlays=w1-gpio param_w1_pin=PA10 #because I'm using GPIO10 I have these dtbo files: README.sun8i-h3-overlays sun8i-h3-pps-gpio.dtbo sun8i-h3-uart1.dtbo sun8i-h3-analog-codec.dtbo sun8i-h3-pwm.dtbo sun8i-h3-uart2.dtbo sun8i-h3-cir.dtbo sun8i-h3-spdif-out.dtbo sun8i-h3-uart3.dtbo sun8i-h3-fixup.scr sun8i-h3-spi-add-cs1.dtbo sun8i-h3-usbhost0.dtbo sun8i-h3-i2c0.dtbo sun8i-h3-spi-jedec-nor.dtbo sun8i-h3-usbhost2.dtbo sun8i-h3-i2c1.dtbo sun8i-h3-spi-mcp2515.dtbo sun8i-h3-usbhost3.dtbo sun8i-h3-i2c2.dtbo sun8i-h3-spi-spidev.dtbo sun8i-h3-w1-gpio.dtbo sun8i-h3-i2c-ds1307.dtbo At reboot I can see: Applying kernel provided DT overlay sun8i-h3-w1-gpio.dtbo After reboot, I can see DS18B20 and I can read the temperatures, and I can see DS2406 but the situation is the same as with the stable armbian version -> the PIO. files are still missing. root@orangepizero:/sys/devices/w1_bus_master1/12-00000097477a# ls -la total 0 drwxr-xr-x 3 root root 0 Apr 18 15:58 . drwxr-xr-x 5 root root 0 Apr 18 15:58 .. lrwxrwxrwx 1 root root 0 Apr 18 15:59 driver -> ../../../bus/w1/drivers/w1_slave_driver -r--r--r-- 1 root root 4096 Apr 18 15:59 id -r--r--r-- 1 root root 4096 Apr 18 15:59 name drwxr-xr-x 2 root root 0 Apr 18 15:59 power -rw-r--r-- 1 root root 4096 Apr 18 15:59 rw lrwxrwxrwx 1 root root 0 Apr 18 15:59 subsystem -> ../../../bus/w1 -rw-r--r-- 1 root root 4096 Apr 18 15:58 uevent dmesg | grep w1 w1_master_driver w1_bus_master1: Family 12 for 12.00000097477a.09 is not registered. /boot/config-4.10.3-sun8i # # 1-wire Slaves # CONFIG_W1_SLAVE_THERM=m CONFIG_W1_SLAVE_SMEM=m CONFIG_W1_SLAVE_DS2408=m CONFIG_W1_SLAVE_DS2408_READBACK=y CONFIG_W1_SLAVE_DS2413=m CONFIG_W1_SLAVE_DS2406=m How can I register the DS2406?
  3. I upgraded to nightly and changed the kernel to dev 4.x, but after it I can't see any 1-wire devices [gpio_para] gpio_used = 1 [w1_para] w1_used = 1 gpio = 10 /etc/modules w1-sunxi w1-gpio w1-therm lsmod Module Size Used by sunxi_cir 3825 0 evdev 9979 0 xradio_wlan 92375 1 sun8i_codec_analog 13766 0 snd_soc_core 115473 1 sun8i_codec_analog mac80211 325145 1 xradio_wlan snd_pcm_dmaengine 4221 1 snd_soc_core snd_pcm 70145 2 snd_pcm_dmaengine,snd_soc_core cfg80211 192770 2 mac80211,xradio_wlan rfkill 10928 2 cfg80211 sun8i_ths 3134 0 cpufreq_dt 3522 0 thermal_sys 43232 2 cpufreq_dt,sun8i_ths gpio_keys 8517 0 uio_pdrv_genirq 3354 0 uio 8012 1 uio_pdrv_genirq w1_therm 5237 0 w1_gpio 3195 0 wire 20756 2 w1_gpio,w1_therm fuse 70718 1 Can you help me?
  4. I use "ARMBIAN 5.25 stable Debian GNU/Linux 8 (jessie) 3.4.113-sun8i" I manually added CONFIG_W1_SLAVE_DS2406=m to config-3.4.113-sun8i file, but there's nothing happens. I got these: root@orangepizero:/sys/devices/w1_bus_master1/12-00000097477a# ls -la total 0 drwxr-xr-x 3 root root 0 Apr 15 21:15 . drwxr-xr-x 5 root root 0 Apr 15 21:15 .. lrwxrwxrwx 1 root root 0 Apr 15 21:41 driver -> ../../../bus/w1/drivers/w1_slave_driver -r--r--r-- 1 root root 4096 Apr 15 21:41 id -r--r--r-- 1 root root 4096 Apr 15 21:41 name drwxr-xr-x 2 root root 0 Apr 15 21:15 power -rw-rw-rw- 1 root root 4096 Apr 15 21:59 rw lrwxrwxrwx 1 root root 0 Apr 15 21:41 subsystem -> ../../../bus/w1 -rw-r--r-- 1 root root 4096 Apr 15 21:15 uevent But with OWFS on my router (and DS9490R) it is: root@OpenWrt:/mnt/1-wire/29.034706000000# ls -la drwxrwxrwx 1 root root 8 Apr 16 09:49 . drwxr-xr-x 1 root root 8 Mar 16 21:26 .. drwxrwxrwx 1 root root 8 Apr 16 09:49 LCD_H drwxrwxrwx 1 root root 8 Apr 16 09:49 LCD_M -rw-rw-rw- 1 root root 1 Apr 16 09:49 PIO.0 -rw-rw-rw- 1 root root 1 Apr 16 09:49 PIO.1 -rw-rw-rw- 1 root root 1 Apr 16 09:49 PIO.2 -rw-rw-rw- 1 root root 1 Apr 16 09:49 PIO.3 -rw-rw-rw- 1 root root 1 Apr 16 09:49 PIO.4 -rw-rw-rw- 1 root root 1 Apr 16 09:49 PIO.5 -rw-rw-rw- 1 root root 1 Apr 16 09:49 PIO.6 -rw-rw-rw- 1 root root 1 Apr 16 09:49 PIO.7 -rw-rw-rw- 1 root root 15 Apr 16 09:49 PIO.ALL -rw-rw-rw- 1 root root 12 Apr 16 09:49 PIO.BYTE -r--r--r-- 1 root root 16 Mar 16 21:26 address -rw-rw-rw- 1 root root 256 Mar 16 21:26 alias -r--r--r-- 1 root root 2 Mar 16 21:26 crc8 -r--r--r-- 1 root root 2 Mar 16 21:26 family -r--r--r-- 1 root root 12 Mar 16 21:26 id -rw-rw-rw- 1 root root 1 Apr 16 09:49 latch.0 -rw-rw-rw- 1 root root 1 Apr 16 09:49 latch.1 -rw-rw-rw- 1 root root 1 Apr 16 09:49 latch.2 -rw-rw-rw- 1 root root 1 Apr 16 09:49 latch.3 -rw-rw-rw- 1 root root 1 Apr 16 09:49 latch.4 -rw-rw-rw- 1 root root 1 Apr 16 09:49 latch.5 -rw-rw-rw- 1 root root 1 Apr 16 09:49 latch.6 -rw-rw-rw- 1 root root 1 Apr 16 09:49 latch.7 -rw-rw-rw- 1 root root 15 Apr 16 09:49 latch.ALL -rw-rw-rw- 1 root root 12 Apr 16 09:49 latch.BYTE -r--r--r-- 1 root root 16 Mar 16 21:26 locator --w--w--w- 1 root root 1 Apr 16 09:49 out_of_testmode -rw-rw-rw- 1 root root 1 Apr 16 09:49 por -r--r--r-- 1 root root 1 Apr 16 09:49 power -r--r--r-- 1 root root 16 Mar 16 21:26 r_address -r--r--r-- 1 root root 12 Mar 16 21:26 r_id -r--r--r-- 1 root root 16 Mar 16 21:26 r_locator -r--r--r-- 1 root root 1 Apr 16 09:49 sensed.0 -r--r--r-- 1 root root 1 Apr 16 09:49 sensed.1 -r--r--r-- 1 root root 1 Apr 16 09:49 sensed.2 -r--r--r-- 1 root root 1 Apr 16 09:49 sensed.3 -r--r--r-- 1 root root 1 Apr 16 09:49 sensed.4 -r--r--r-- 1 root root 1 Apr 16 09:49 sensed.5 -r--r--r-- 1 root root 1 Apr 16 09:49 sensed.6 -r--r--r-- 1 root root 1 Apr 16 09:49 sensed.7 -r--r--r-- 1 root root 15 Apr 16 09:49 sensed.ALL -r--r--r-- 1 root root 12 Apr 16 09:49 sensed.BYTE -rw-rw-rw- 1 root root 12 Apr 16 09:49 set_alarm -rw-rw-rw- 1 root root 1 Apr 16 09:49 strobe -r--r--r-- 1 root root 32 Mar 16 21:26 type If I edit the PIO.BYTE I can change the switch state. So I would like to use Domoticz but only the DS18b20 are present, the DS2406 is missing I hope if I managed to setup OWFS it appears in Domoticz.
  5. Hi! I managed to setup up my orange pi zero and i can see temp sensor at /sys/bus/w1/devices/ I have a DS2406 two channel switch which is displayed too, but I can't switch its PIO's. Is it possible to config OWFS in order to see the devices under file system in a mounted folder? (I have a tplink router with DS9490R master device, and a 8 channel switch (DS2408), and I can switch its PIO's by editing one file in the mounted directory. I hope if I can use OWFS on Orange pi zero, i can also change DS2406 PIO's...) Thank you in advance.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines