Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Русский
    3. ioBroker
    4. ioBroker основное
    5. OWFS на BeagleBone Black

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    OWFS на BeagleBone Black

    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      romka.pm last edited by

      Всем привет!

      Может мне кто-то поможет:) Поставил ioBroker на BeagleBone Black, все отлично. Установил драйвер для Mega-D, тоже все отлично. Возникли проблемы с 1-wire. Никак у меня не получается считать данные с одного единственного датчика температуры, который подключен к мастеру сети DS9490R, он, в свою очередь, к BeagleBone по USB.

      Файл настройки owfs-сервера.

      sudo nano /etc/owfs.conf:

      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…

      ! server: server = localhost:4304

      ...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

      #server: w1 = all

      Serial port: DS9097

      #server: device = /dev/ttyS1

      owserver tcp address

      #server: server = 192.168.10.1:3131

      random simulated device

      #server: FAKE = DS18S20,DS2405

      ######################### OWFS ##########################

      mountpoint = /mnt/1wire

      allow_other

      ####################### OWHTTPD #########################

      http: port = 2121

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

      ftp: port = 2120

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

      ######################### OWFS ##########################

      mountpoint = /mnt/1wire

      allow_other

      ####################### OWHTTPD #########################

      http: port = 2121

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

      ftp: port = 2120

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

      server: port = localhost:4304

      Статус сервера:

      sudo service owserver status

      owserver.service - LSB: 1-wire TCP server

      Loaded: loaded (/etc/init.d/owserver)

      Active: active (exited) since Sun, 03 Apr 2016 17:46:30 +0000; 3s ago

      Process: 3698 ExecStop=/etc/init.d/owserver stop (code=exited, status=0/SUCCESS)

      Process: 3708 ExecStart=/etc/init.d/owserver start (code=exited, status=0/SUCCESS)

      CGroup: name=systemd:/system/owserver.service

      Всем спасибо за помощь:)
      1168_iobroker-owfs.png

      1 Reply Last reply Reply Quote 0
      • R
        RDim last edited by

        Сам сервис owfs запущен?

        Что отвечает````
        ps ax | grep owfs

        Должно быть где то так````
         628 ?        Ssl   67:42 /opt/owfs/bin/owserver -uall -p 3000
        

        Запускаю так````
        sudo /opt/owfs/bin/owserver -uall -p 3000

        
        Еще можно проверить запустив HTTP-сервер````
        sudo /opt/owfs/bin/owhttpd -s 3000 -p 3001
        ````и зайти на [http://localhost:3001](http://localhost:3001)
        1 Reply Last reply Reply Quote 0
        • H
          Haus last edited by

          @romka.pm:

          Всем привет!

          Может мне кто-то поможет:) Поставил ioBroker на BeagleBone Black, все отлично. Установил драйвер для Mega-D, тоже все отлично. Возникли проблемы с 1-wire. Никак у меня не получается считать данные с одного единственного датчика температуры, который подключен к мастеру сети DS9490R, он, в свою очередь, к BeagleBone по USB.

          Файл настройки owfs-сервера.

          sudo nano /etc/owfs.conf:

          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…

          ! server: server = localhost:4304

          ...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

          #server: w1 = all

          Serial port: DS9097

          #server: device = /dev/ttyS1

          owserver tcp address

          #server: server = 192.168.10.1:3131

          random simulated device

          #server: FAKE = DS18S20,DS2405

          ######################### OWFS ##########################

          mountpoint = /mnt/1wire

          allow_other

          ####################### OWHTTPD #########################

          http: port = 2121

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

          ftp: port = 2120

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

          ######################### OWFS ##########################

          mountpoint = /mnt/1wire

          allow_other

          ####################### OWHTTPD #########################

          http: port = 2121

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

          ftp: port = 2120

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

          server: port = localhost:4304

          Статус сервера:

          sudo service owserver status

          owserver.service - LSB: 1-wire TCP server

          Loaded: loaded (/etc/init.d/owserver)

          Active: active (exited) since Sun, 03 Apr 2016 17:46:30 +0000; 3s ago

          Process: 3698 ExecStop=/etc/init.d/owserver stop (code=exited, status=0/SUCCESS)

          Process: 3708 ExecStart=/etc/init.d/owserver start (code=exited, status=0/SUCCESS)

          CGroup: name=systemd:/system/owserver.service

          Всем спасибо за помощь:) `

          Довольна странный owfs.conf, повторяется нижняя часть

          # 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...
          ! server: server = localhost:4304
          #
          # ...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
          #server: w1 = all
          #
          # Serial port: DS9097
          #server: device = /dev/ttyS1
          #
          # owserver tcp address
          #server: server = 192.168.10.1:3131
          #
          # random simulated device
          #server: FAKE = DS18S20,DS2405
          #
          ######################### OWFS ##########################
          #
          mountpoint = /mnt/1wire
          allow_other
          #
          ####################### OWHTTPD #########################
          
          http: port = 2121
          
          ####################### OWFTPD ##########################
          
          ftp: port = 2120
          
          ####################### OWSERVER ########################
          
          server: port = localhost:4304
          
          

          У меня мастер другой, были проблемы ещё с server: port = localhost:4304 сделал так server: port = 4304

          1 Reply Last reply Reply Quote 0
          • R
            romka.pm last edited by

            Haus, RDim Спасибо Вам за ответы. Все получилось:)

            Алгоритм:

            1)Запускаю TCP-сервер

            sudo /usr/bin/owserver -uall -p 3001

            2)Запускаю HTTP-сервер

            sudo /usr/bin/owhttpd -s 3001 -p 3002

            1. Запускаю виртуальную файловую систему.

            /opt/owfs/bin/owfs -s 3001 -p 3003 /mnt/1-wire/ –allow_other

            Добавил в автозагрузку:

            sudo nano /etc/rc.local

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Support us

            ioBroker
            Community Adapters
            Donate

            422
            Online

            31.8k
            Users

            80.0k
            Topics

            1.3m
            Posts

            3
            4
            3019
            Loading More Posts
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes
            Reply
            • Reply as topic
            Log in to reply
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
            The ioBroker Community 2014-2023
            logo