ser2net ow

This commit is contained in:
2025-11-23 00:18:11 +01:00
parent 81dfbad469
commit ab556dc297
2 changed files with 119 additions and 0 deletions

50
owfs.conf Normal file
View File

@@ -0,0 +1,50 @@
# 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
#
# 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 = 4304
#server: device = /dev/ttyUSB0
server: device = /dev/ow

69
ser2net.yaml Normal file
View File

@@ -0,0 +1,69 @@
%YAML 1.1
---
# This is a ser2net configuration file, tailored to be rather
# simple.
#
# Find detailed documentation in ser2net.yaml(5)
# A fully featured configuration file is in
# /usr/share/doc/ser2net/examples/ser2net.yaml.gz
#
# If you find your configuration more useful than this very simple
# one, please submit it as a bugreport
define: &banner Connected to port \N(\d)\r\n
connection: &con01
accepter: tcp,20108
connector: serialdev,/dev/zigb,115200n81,local
options:
kickolduser: false
banner: *banner
chardelay-min: 0
chardelay-max: 0
#define: &banner \r\nser2net port \p device \d [\B] (Debian GNU/Linux)\r\n\r\n
#
#connection: &con0096
# accepter: tcp,localhost,2000
# enable: on
# options:
# banner: *banner
# kickolduser: true
# telnet-brk-on-sync: true
# connector: serialdev,
# /dev/ttyS0,
# 9600n81,local
#
#connection: &con1096
# accepter: tcp,localhost,2001
# enable: on
# options:
# banner: *banner
# kickolduser: true
# telnet-brk-on-sync: true
# connector: serialdev,
# /dev/ttyS1,
# 9600n81,local
#
#connection: &con0192
# accepter: tcp,localhost,3000
# enable: on
# options:
# banner: *banner
# kickolduser: true
# telnet-brk-on-sync: true
# connector: serialdev,
# /dev/ttyS0,
# 19200n81,local
#
#connection: &con1192
# accepter: tcp,localhost,3001
# enable: on
# options:
# banner: *banner
# kickolduser: true
# telnet-brk-on-sync: true
# connector: serialdev,
# /dev/ttyS1,
# 19200n81,local
#