1Wire

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(Configuration)
(Configuration)
Line 4: Line 4:
 
  agocontrol-owfs
 
  agocontrol-owfs
 
== Configuration ==
 
== Configuration ==
Mind to change device settings in /etc/opt/agocontrol/config.ini :
+
Mind to change device settings in /etc/opt/agocontrol/[[config.ini]]. This example would specify a 1wire device that shows up as serial port:
 
  [owfs]
 
  [owfs]
 
  device=/dev/ttyUSB1
 
  device=/dev/ttyUSB1
You also can add a custom UDEV rule - have a look [[Ago_control_install_debian_wheezy#add_udev_rules_.28optional.29|here]]. You don't need to configure the 1wire slave devices, they will be auto-detected on the 1-wire bus.
+
You also can add a custom UDEV rule to assign a specific name to the device - have a look [[Ago_control_install_debian_wheezy#add_udev_rules_.28optional.29|here]].
 +
Some devices like the DS1490F don't provide a usbserial port. Use the following setting for them:
 +
device=u
 +
Please also adjust the permissions for such devices via udev. Create a file named "/etc/udev/rules.d/99-owfs.rule":
 +
<pre>
 +
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="owfs_rules_end"
 +
 +
# DS2490 1-Wire adapter
 +
SYSFS{idVendor}=="04fa", SYSFS{idProduct}=="2490", MODE="660", GROUP="fuse"
 +
 +
LABEL="owfs_rules_end"
 +
</pre>
 +
 
 +
You don't need to configure the 1wire slave devices, they will be auto-detected on the 1-wire bus.
  
 
== Startup ==
 
== Startup ==
 
Start the service:
 
Start the service:
 
  systemctl start agoowfs.service
 
  systemctl start agoowfs.service

Revision as of 19:32, 15 December 2012

1-Wire OWFS

ago control supports 1-Wire (OWFS). You easily can install the package:

agocontrol-owfs

Configuration

Mind to change device settings in /etc/opt/agocontrol/config.ini. This example would specify a 1wire device that shows up as serial port:

[owfs]
device=/dev/ttyUSB1

You also can add a custom UDEV rule to assign a specific name to the device - have a look here. Some devices like the DS1490F don't provide a usbserial port. Use the following setting for them:

device=u

Please also adjust the permissions for such devices via udev. Create a file named "/etc/udev/rules.d/99-owfs.rule":

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="owfs_rules_end"
 
# DS2490 1-Wire adapter
SYSFS{idVendor}=="04fa", SYSFS{idProduct}=="2490", MODE="660", GROUP="fuse"
 
LABEL="owfs_rules_end"

You don't need to configure the 1wire slave devices, they will be auto-detected on the 1-wire bus.

Startup

Start the service:

systemctl start agoowfs.service
Personal tools