NEWS
OWFS на BeagleBone Black
-
Всем привет!
Может мне кто-то поможет:) Поставил 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 -
Сам сервис 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) -
Всем привет!
Может мне кто-то поможет:) Поставил 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
-
Haus, RDim Спасибо Вам за ответы. Все получилось:)
Алгоритм:
1)Запускаю TCP-сервер
sudo /usr/bin/owserver -uall -p 3001
2)Запускаю HTTP-сервер
sudo /usr/bin/owhttpd -s 3001 -p 3002
- Запускаю виртуальную файловую систему.
/opt/owfs/bin/owfs -s 3001 -p 3003 /mnt/1-wire/ –allow_other
Добавил в автозагрузку:
sudo nano /etc/rc.local
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden