Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2016-05-27 01:33:20

contactform
Member
Registered: 2015-10-30
Posts: 45

Pomoc owserver

Dobrý den
obracim se k vam o pomoc s 1 wire a owserverem. Nedaři se mi pustit sluzbu jako takovou postupoval jsem podle navodu ale
sluzba se nespusti. Zkousel jsem update na novejsi verzi ale zobrazi se hlaska:

Reading package lists... Done
W: Duplicate sources.list entry http://download.rexcontrols.cz/repositories/debian-rex-2.10/ jessie/contrib armhf Packages (/var/lib/apt/lists/download.rexcontrols.cz_repositories_debian-rex-2.10_dists_jessie_contrib_binary-armhf_Packages)
W: Duplicate sources.list entry http://download.rexcontrols.cz/repositories/debian-rex-2.10/ jessie/non-free armhf Packages (/var/lib/apt/lists/download.rexcontrols.cz_repositories_debian-rex-2.10_dists_jessie_non-free_binary-armhf_Packages)
W: You may want to run apt-get update to correct these problems

co jsem zkousel co kde radi na forech tak nic nefungovalo

Offline

#2 2016-05-27 15:12:50

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Pomoc owserver

Dobrý den,
pravděpodobně máte v souboru /etc/apt/sources.list 2x řádek

deb http://download.rexcontrols.cz/repositories/debian-rex-2.10/ jessie contrib non-free

Nebo je tam jen jednou a podruhé je v /etc/apt/sources.list.d/rexcontrols.list. Upravte soubory tak, aby tam ten řádek byl pouze 1x, ideálně v druhém zmiňovaném souboru.

Spuštění owserveru může být blokováno tím, že není aktivována I2C sběrnice (UniPi) nebo zprovozněn w1 modul (při čtení teplotních senzorů přes GPIO piny).

Upřesněte, prosím, vaši hardwarovou konfiguraci a vložte sem obsah souborů /etc/owfs.conf a /boot/config.txt z vašeho RPi.

Jaroslav Sobota

Offline

#3 2016-05-27 19:16:02

diego009
Member
Registered: 2016-05-27
Posts: 6

Re: Pomoc owserver

duplikace opravena

w1 modul by mel byt aktivovani zde jsou moje soubory
config

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
dtparam=spi=on
dtparam=i2c_arm=on
dtparam=spi=on
dtoverlay=w1-gpio,gpiopin=4,pullup=on

owfs

# Sample configuration file for the OWFS suite for Debian GNU/Linux.
#
#
# This is the main OWFS configuration file. You should read the
# owfs.conf(5) manual page in order to understand the options listed
# here.

######################## SOURCES ########################
#
# With this setup, any client (but owserver) uses owserver on the
# local machine...
#
# ...and owserver uses the real hardware, by default fake devices
# This part must be changed on real installation
# server: FAKE = DS18S20,DS2405
#
# USB device: DS9490
# server: usb = all
#
# Serial port: DS9097
# server: device = /dev/ttyUSB0
#
# w1 devices
server: w1 = all
server: i2c = /dev/i2c-0:ALL
#
# owserver tcp address
#server: server = 192.168.10.1:3131
#
# random simulated device
#server: FAKE = DS18S20,DS2405
#
######################### OWFS ##########################
#
mountpoint = /mnt/owfs
allow_other
#
####################### OWHTTPD #########################

http: port = 2121

####################### OWFTPD ##########################

#ftp: port = 2120

####################### OWSERVER ########################

server: port = 4304
timeout_volatile = 2

ow server se spusti ale cidla to nenajde
mam cidla s parazitnim napajenim  pokud neni problem
hw config >
rasp pi b+ 512MB + piface

dodavam jeste dmseg

root@raspberrypi:/sys/bus/w1/devices# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.19+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #858 Tue Mar 15 15:52:03 GMT 2016
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] cma: Reserved 8 MiB at 0x1b800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c0839a04, node_mem_map db403000
[    0.000000]   Normal zone: 1008 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113680
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708.boardrev=0x10 bcm2708.serial=0xd1a75cd0 smsc95xx.macaddr=B8:27:EB:A7:5C:D0 bcm2708_fb.fbswap=1 bcm2708.uart_clock=3000000 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait bcm2708.w1_gpio_pin=7
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 436880K/458752K available (5796K kernel code, 488K rwdata, 1788K rodata, 348K init, 720K bss, 13680K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
    lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc0770240   (7585 kB)
      .init : 0xc0771000 - 0xc07c8000   ( 348 kB)
      .data : 0xc07c8000 - 0xc08422f0   ( 489 kB)
       .bss : 0xc08422f0 - 0xc08f6480   ( 721 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:522
[    0.000000] clocksource stc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000015] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000059] Switching to timer-based delay loop, resolution 1000ns
[    0.000339] Console: colour dummy device 80x30
[    0.001342] console [tty1] enabled
[    0.001400] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.001485] pid_max: default: 32768 minimum: 301
[    0.001863] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001934] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002981] Initializing cgroup subsys blkio
[    0.003073] Initializing cgroup subsys memory
[    0.003142] Initializing cgroup subsys devices
[    0.003206] Initializing cgroup subsys freezer
[    0.003267] Initializing cgroup subsys net_cls
[    0.003389] CPU: Testing write buffer coherency: ok
[    0.003505] ftrace: allocating 19751 entries in 58 pages
[    0.106765] Setting up static identity map for 0x81c0 - 0x81f8
[    0.108802] devtmpfs: initialized
[    0.115162] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.115596] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.117650] pinctrl core: initialized pinctrl subsystem
[    0.118539] NET: Registered protocol family 16
[    0.123939] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.125407] bcm2708.uart_clock = 3000000
[    0.125511] of_platform_populate failed: -22
[    0.128202] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.128281] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.128486] Serial: AMBA PL011 UART driver
[    0.128726] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.129377] bcm2835-mbox bcm2835-mbox: mailbox enabled
[    0.166403] bcm2708-dmaengine bcm2708-dmaengine: DMA legacy API manager at f2007000, dmachans=0x7f35
[    0.166623] bcm2708-dmaengine bcm2708-dmaengine: failed to get irq for DMA channel 13
[    0.166701] bcm2708-dmaengine bcm2708-dmaengine: Initialized 8 DMA channels (+ 1 legacy)
[    0.167572] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    0.167656] bcm2708-dmaengine bcm2708-dmaengine: dma_debug:0
[    0.168496] SCSI subsystem initialized
[    0.168891] usbcore: registered new interface driver usbfs
[    0.169066] usbcore: registered new interface driver hub
[    0.169305] usbcore: registered new device driver usb
[    0.170162] raspberrypi-firmware raspberrypi-firmware.0: Attached to firmware from 2016-03-15 14:47
[    0.197741] Switched to clocksource stc
[    0.247280] FS-Cache: Loaded
[    0.247689] CacheFiles: Loaded
[    0.262752] NET: Registered protocol family 2
[    0.264226] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.264387] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.264521] TCP: Hash tables configured (established 4096 bind 4096)
[    0.264652] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.264724] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.265108] NET: Registered protocol family 1
[    0.265747] RPC: Registered named UNIX socket transport module.
[    0.265822] RPC: Registered udp transport module.
[    0.265863] RPC: Registered tcp transport module.
[    0.265901] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.267062] bcm2708_gpio: bcm2708_gpio_probe c07d0500
[    0.268878] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.285139] VFS: Disk quotas dquot_6.6.0
[    0.285589] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.288226] FS-Cache: Netfs 'nfs' registered for caching
[    0.289684] NFS: Registering the id_resolver key type
[    0.289834] Key type id_resolver registered
[    0.289881] Key type id_legacy registered
[    0.293716] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.294233] io scheduler noop registered
[    0.294321] io scheduler deadline registered (default)
[    0.294782] io scheduler cfq registered
[    0.296367] BCM2708FB: allocated DMA memory 5bc00000
[    0.296488] BCM2708FB: allocated DMA channel 0 @ f2007000
[    0.302535] Console: switching to colour frame buffer device 90x30
[    0.308531] Serial: 8250/16550 driver, 0 ports, IRQ sharing disabled
[    0.311857] vc-cma: Videocore CMA driver
[    0.313791] vc-cma: vc_cma_base      = 0x00000000
[    0.315616] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    0.317392] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    0.319638] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    0.342603] brd: module loaded
[    0.353654] loop: module loaded
[    0.356565] vchiq: vchiq_init_state: slot_zero = 0xdbc80000, is_master = 0
[    0.360578] Loading iSCSI transport class v2.0-870.
[    0.364124] usbcore: registered new interface driver smsc95xx
[    0.366447] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.569142] Core Release: 2.80a
[    0.571064] Setting default values for core params
[    0.572942] Finished setting default values for core params
[    0.774991] Using Buffer DMA mode
[    0.776876] Periodic Transfer Interrupt Enhancement - disabled
[    0.778753] Multiprocessor Interrupt Enhancement - disabled
[    0.780605] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.782521] Dedicated Tx FIFOs mode
[    0.784835] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdbc14000 dma = 0x5bc14000 len=9024
[    0.788802] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
[    0.796334] dwc_otg: Microframe scheduler enabled
[    0.796449] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc03dd8e0
[    0.798437] WARN::hcd_init_fiq:413: FIQ ASM at 0xc03ddbbc length 36
[    0.800440] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdc896000
[    0.802464] dwc_otg bcm2708_usb: DWC OTG Controller
[    0.804427] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    0.806452] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    0.808503] Init: Port Power? op_state=1
[    0.810436] Init: Power Port (0)
[    0.812697] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.814663] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.816582] usb usb1: Product: DWC OTG Controller
[    0.818530] usb usb1: Manufacturer: Linux 4.1.19+ dwc_otg_hcd
[    0.820455] usb usb1: SerialNumber: bcm2708_usb
[    0.823421] hub 1-0:1.0: USB hub found
[    0.825425] hub 1-0:1.0: 1 port detected
[    0.827927] dwc_otg: FIQ enabled
[    0.827950] dwc_otg: NAK holdoff enabled
[    0.827965] dwc_otg: FIQ split-transaction FSM enabled
[    0.828030] Module dwc_common_port init
[    0.828565] usbcore: registered new interface driver usb-storage
[    0.830918] mousedev: PS/2 mouse device common for all mice
[    0.833806] bcm2835-cpufreq: min=700000 max=700000
[    0.836126] sdhci: Secure Digital Host Controller Interface driver
[    0.838076] sdhci: Copyright(c) Pierre Ossman
[    0.840215] mmc-bcm2835 mmc-bcm2835.0: mmc_debug:0 mmc_debug2:0
[    0.842055] mmc-bcm2835 mmc-bcm2835.0: DMA channel allocated
[    0.878158] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.880537] ledtrig-cpu: registered to indicate activity on CPUs
[    0.882623] hidraw: raw HID events driver (C) Jiri Kosina
[    0.884791] usbcore: registered new interface driver usbhid
[    0.886675] usbhid: USB HID core driver
[    0.890403] Initializing XFRM netlink socket
[    0.895563] NET: Registered protocol family 17
[    0.899821] Key type dns_resolver registered
[    0.907719] registered taskstats version 1
[    0.912247] vc-sm: Videocore shared memory driver
[    0.915311] [vc_sm_connected_init]: start
[    0.920625] [vc_sm_connected_init]: end - returning 0
[    0.923832] Waiting for root device /dev/mmcblk0p2...
[    0.946191] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.950469] mmc0: new high speed SDHC card at address 0007
[    0.953022] mmcblk0: mmc0:0007 SD8GB 7.42 GiB
[    0.956832]  mmcblk0: p1 p2
[    1.017990] Indeed it is in host mode hprt0 = 00021501
[    1.107982] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.111952] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.115323] devtmpfs: mounted
[    1.118567] Freeing unused kernel memory: 348K (c0771000 - c07c8000)
[    1.197872] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.200238] Indeed it is in host mode hprt0 = 00001101
[    1.398880] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.401098] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.406994] hub 1-1:1.0: USB hub found
[    1.409587] hub 1-1:1.0: 5 ports detected
[    1.515503] random: nonblocking pool is initialized
[    1.687856] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.718230] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    1.723219] systemd[1]: Detected architecture 'arm'.
[    1.788610] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    1.790971] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.797812] smsc95xx v1.0.4
[    1.870118] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:a7:5c:d0
[    1.923477] NET: Registered protocol family 10
[    1.928061] systemd[1]: Inserted module 'ipv6'
[    1.935446] systemd[1]: Set hostname to <raspberrypi>.
[    2.846134] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    2.849460] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    2.851994] systemd[1]: Starting Remote File Systems (Pre).
[    2.857489] systemd[1]: Reached target Remote File Systems (Pre).
[    2.860079] systemd[1]: Starting Encrypted Volumes.
[    2.865281] systemd[1]: Reached target Encrypted Volumes.
[    2.868043] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    2.876525] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    2.881431] systemd[1]: Starting Swap.
[    2.886863] systemd[1]: Reached target Swap.
[    2.889501] systemd[1]: Expecting device dev-mmcblk0p1.device...
[    2.894996] systemd[1]: Starting Root Slice.
[    2.900706] systemd[1]: Created slice Root Slice.
[    2.903138] systemd[1]: Starting User and Session Slice.
[    2.908889] systemd[1]: Created slice User and Session Slice.
[    2.911383] systemd[1]: Starting Delayed Shutdown Socket.
[    2.916920] systemd[1]: Listening on Delayed Shutdown Socket.
[    2.919480] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[    2.925081] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    2.927601] systemd[1]: Starting Journal Socket (/dev/log).
[    2.933428] systemd[1]: Listening on Journal Socket (/dev/log).
[    2.936010] systemd[1]: Starting udev Control Socket.
[    2.941552] systemd[1]: Listening on udev Control Socket.
[    2.943964] systemd[1]: Starting udev Kernel Socket.
[    2.949186] systemd[1]: Listening on udev Kernel Socket.
[    2.951564] systemd[1]: Starting Journal Socket.
[    2.956903] systemd[1]: Listening on Journal Socket.
[    2.959640] systemd[1]: Starting System Slice.
[    2.965036] systemd[1]: Created slice System Slice.
[    2.967504] systemd[1]: Started File System Check on Root Device.
[    2.969875] systemd[1]: Starting system-systemd\x2dfsck.slice.
[    2.975443] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    2.977874] systemd[1]: Starting system-autologin.slice.
[    2.983427] systemd[1]: Created slice system-autologin.slice.
[    2.985958] systemd[1]: Starting Increase datagram queue length...
[    2.995834] systemd[1]: Starting Restore / save the current clock...
[    3.031364] systemd[1]: Mounted Huge Pages File System.
[    3.063807] systemd[1]: Starting Load Kernel Modules...
[    3.093315] systemd[1]: Mounting POSIX Message Queue File System...
[    3.173364] systemd[1]: Started Set Up Additional Binary Formats.
[    3.190588] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    3.221846] fuse init (API version 7.23)
[    3.269696] i2c /dev entries driver
[    3.297074] Driver for 1-wire Dallas network protocol.
[    3.344914] systemd[1]: Mounting Debug File System...
[    3.416247] systemd[1]: Starting udev Coldplug all Devices...
[    3.433325] systemd[1]: Starting Slices.
[    3.457879] systemd[1]: Reached target Slices.
[    3.487679] systemd[1]: Mounted POSIX Message Queue File System.
[    3.503290] systemd[1]: Mounted Debug File System.
[    3.531659] systemd[1]: Started Increase datagram queue length.
[    3.568069] systemd[1]: Started Restore / save the current clock.
[    3.571854] systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
[    3.601069] systemd[1]: Failed to start Load Kernel Modules.
[    3.603468] systemd[1]: Unit systemd-modules-load.service entered failed state.
[    3.612778] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    3.640701] systemd[1]: Time has been changed
[    3.818048] systemd[1]: Started udev Coldplug all Devices.
[    3.968244] systemd[1]: Starting Create Static Device Nodes in /dev...
[    3.980749] systemd[1]: Mounting Configuration File System...
[    4.010477] systemd[1]: Starting Apply Kernel Variables...
[    4.076453] systemd[1]: Mounting FUSE Control File System...
[    4.177490] systemd[1]: Starting Syslog Socket.
[    4.181182] systemd[1]: Listening on Syslog Socket.
[    4.181507] systemd[1]: Starting Journal Service...
[    4.231742] systemd[1]: Started Journal Service.
[    4.639936] systemd-udevd[87]: starting version 215
[    6.364579] bcm2708_i2c_init_pinmode(1,2)
[    6.364615] bcm2708_i2c_init_pinmode(1,3)
[    6.388544] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[    6.767886] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    9.385551] systemd-journald[85]: Received request to flush runtime journal from PID 1
[   10.417972] wm8804 1-003b: Failed to read device ID: -5
[   10.418143] wm8804: probe of 1-003b failed with error -5
[   10.425627] pcm512x 1-004d: Failed to reset device: -5
[   10.425811] pcm512x: probe of 1-004d failed with error -5
[   10.427641] pcm512x 1-004c: Failed to reset device: -5
[   10.448056] pcm512x: probe of 1-004c failed with error -5
[   14.619322] cfg80211: Calling CRDA to update world regulatory domain
[   14.944977] cfg80211: World regulatory domain updated:
[   14.945025] cfg80211:  DFS Master region: unset
[   14.945041] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   14.945064] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   14.945083] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   14.945101] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   14.945124] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   14.945146] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   14.945165] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   14.945182] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   14.945199] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   15.621296] Adding 102396k swap on /var/swap.  Priority:-1 extents:3 across:1773568k SSFS
[   19.329134] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   19.336797] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   20.941860] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   20.953869] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  587.160840] w1-gpio w1-gpio: gpio pin 7, external pullup pin -1, parasitic power 1
[  587.160892] w1_add_master_device: set_pullup requires write_byte or touch_bit, di

Last edited by diego009 (2016-05-27 22:16:09)

Offline

#4 2016-05-29 08:14:58

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Pomoc owserver

Dobrý den,
parazitní čidla jsem přes w1 kernel modul a owserver zatím nikdy spolehlivě nerozchodil. Řešili jsme to již v tomto tématu v anglické části fóra.

V /etc/owfs.conf by měla stačit tato minimální konfigurace:

!server: server = 127.0.0.1:4304
allow_other
server: port = 127.0.0.1:4304
server: w1
timeout_volatile = 2

A ve výstupu z dmesg vidím, že se vám w1 modul napojuje na GPIO#7 místo na GPIO#4, který máte nastaven v /boot/config.txt. Takže by chtělo zjistit proč tomu tak je, případně jestli na tom GPIO#7 čidla uvidíte. Navíc se spouští až po téměr 10 minutách běhu RPi - spouštěl jste ho ručně?

S přáním hezkého dne,
Jarda

Offline

#5 2016-05-29 20:57:33

diego009
Member
Registered: 2016-05-27
Posts: 6

Re: Pomoc owserver

dekuji za podporu, owserver se spustí a běží problém byl v boot configu .
Parazitní čidla Teda použitelná v systému Rex nelze?
Nebo by fungovala přes sběrnici i2c přes bus driver DS2482?
Ps: owdir po spuštění vypíše bus.1 bus.2(nikoli čidla) ale trvá to cca 1min

Offline

#6 2016-05-30 08:44:53

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Pomoc owserver

Parazitní čidla použít lze, ale spolehlivě pouze přes I2C nebo USB převodníky pro 1-Wire sběrnici.

Ano, příkaz owdir nefunguje s w1 modulem dobře (ať už s parazitními nebo napájenými senzory). Je potřeba použít postup popsaný v příručce Začínáme se systémem REX na Raspberry Pi, kapitola 5.2.2.

S přáním hezkého dne,
Jarda

Offline

#7 2016-06-22 10:45:47

diego009
Member
Registered: 2016-05-27
Posts: 6

Re: Pomoc owserver

problem vyřešen přes i2c je to rychlejší a méně problemu ....
pro všechny co to zkousi přes gpio  --- nefunkčni s novějšim firmwarem....

Offline

#8 2016-09-15 11:50:36

hofman.milos@gmail.com
Member
Registered: 2016-09-14
Posts: 13

Re: Pomoc owserver

Zdravím,
mám stejný problém... Kontroloval jsem vše a nemohu rozchodit čtení teploty z čidla DS18B20 (zkoušel jsem jich i několik).
Čidlo mám připojené dle návodu "Začínáme..." na port GPIO 4 s rezistorem. RPI 3 s rex starter je čistý, nový. owdir nic nevypíše, někdy to je do 1s a někdy to trvá několik sekund, ale vždy prázdný výstup.

root@raspberrypi:/home/pi# ls /sys/bus/w1/devices/                   
w1_bus_master1  28-000008af3bab
root@raspberrypi:/home/pi# owread /28-000008af3bab/temperature12
ServerRead: Error receiving data on /28-000008af3bab/temperature12
root@raspberrypi:/home/pi# owdir
root@raspberrypi:/home/pi#

root@raspberrypi:/home/pi# dmesg |grep gpio
[    0.083219] uart-pl011 3f201000.uart: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    5.653545] w1-gpio onewire@0: gpio pin 4, external pullup pin -1, parasitic power 0
[    5.670698] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000

Díky za tipy.


-- Edit
Už to funguje jak má smile
PS: Má někdo example HMI pro DB18B20 teploměry?

Last edited by hofman.milos@gmail.com (2016-09-16 08:50:14)

Offline

#9 2016-09-16 11:34:56

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Pomoc owserver

Dobře, že se vám to povedlo rozchodit. V čem byl problém?

Jako příklad HMI s využitím teplotního čidla DS18B20 můžete použít příklad Pool automation with web-based graphical HMI
(Pozn.: Příklad je určen pro zařízení UniPi - proto doporučuji změnit I/O vlajky vzhledem k vašim požadavkům. Nicméně použití DS18B20 v HMI je shodné)

Hezký den, Tomáš Čechura

Offline

#10 2016-09-19 08:30:49

hofman.milos@gmail.com
Member
Registered: 2016-09-14
Posts: 13

Re: Pomoc owserver

Přeinstaloval jsem owserver a ostatní knihovny a ejhle, začalo vše fungovat smile

Offline

#11 2017-01-10 11:33:35

hofik
Member
Registered: 2016-09-14
Posts: 13

Re: Pomoc owserver

Zdravím, je možné, že rexcore v nové verzi už si sám řeší 1wire službu (port 4304) namísto původního owserver?
Rex čte správně z 1wire, avšak owdir a owread ani v /sys/dev/w1/devices nevidím tato čidla, pokud je chci číst jinak než Rexem. Co se změnilo? Případně kde najdu tato čidla, abych mohl pomocí owread číst? Původně byly v /sys/dev/w1/devices jak jsem psal.

Last edited by hofik (2017-01-10 11:34:16)

Offline

#12 2017-01-17 08:44:01

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Pomoc owserver

REX stále spoléhá na owserver, v tomto ohledu se nic nezměnilo. Pokud používáte w1 modul, čidla jsou v /sys/bus/w1/..., nikoliv v /sys/dev/w1/...

Jinak by to byla pěkná záhada ;-)

Hezký den!
Jaroslav

Offline

Board footer

Powered by FluxBB