Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support Passive USB serial adapter DS9097 or DS9097E #33

Open
turbokongen opened this issue Dec 22, 2024 · 1 comment · May be fixed by #35
Open

Feature request: support Passive USB serial adapter DS9097 or DS9097E #33

turbokongen opened this issue Dec 22, 2024 · 1 comment · May be fixed by #35

Comments

@turbokongen
Copy link

turbokongen commented Dec 22, 2024

Basicly I wish for config possibilty to allow running passive serial adapter in this server.
It does not work under the current available config options.
This type is what I have: https://www.ebay.com/itm/331644624255
owfs startup: https://owfs.org/index_php_page_startup-passive-9097.html

@Maarten69
Copy link

Maarten69 commented Jan 4, 2025

And I have the same problem also.
I'm trying to use my usb device to share itś 1-wire temperature sensors on the localhost.
(Home Assistant OS 14.1)

output:

[20:11:00] INFO: Wait until owserver is up and running...
[20:11:00] INFO: Starting owserver with debug mode...
[20:11:00] NOTICE: Please note that once DEBUG mode is enabled you will not be able to connect to the owserver. Use debug mode only to troubleshoot issues with 1-Wire connectivity!
DEBUG MODE
libow version:
3.2p4
DEBUG: ow_inotify.c:(37) Added /etc/owfs.conf to the watch list
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:1) Program=, Option=, Value=
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:2) Program=, Option=, Value=
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:3) Program=, Option=, Value=
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:4) Program=, Option=, Value=
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:5) Program=server, Option=device, Value=/dev/ttyUSB2
DEBUG: ow_opt.c:(342) Configuration file (/etc/owfs.conf:5) Option device recognized as device. Value=/dev/ttyUSB2
DEBUG: ow_regex.c:(24) Reg Ex expression </> compiled to 0x7f21fb8042c0
DEBUG: ow_regex.c:(24) Reg Ex expression <^[:digit:]+$> compiled to 0x7f21fb804280
DEBUG: ow_regex.c:(24) Reg Ex expression <[:digit:]{1,3}.[:digit:]{1,3}.[:digit:]{1,3}.[:digit:]{1,3}> compiled to 0x7f21fb804240
DEBUG: ow_regex.c:(24) Reg Ex expression <^ftdi:> compiled to 0x7f21fb804200
DEBUG: ow_regex.c:(24) Reg Ex expression <:> compiled to 0x7f21fb8041c0
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:6) Program=, Option=, Value=
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:7) Program=Not server, Option=server, Value=4304
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:8) Program=server, Option=port, Value=4304
DEBUG: ow_opt.c:(342) Configuration file (/etc/owfs.conf:8) Option port recognized as port. Value=4304
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:9) Program=http, Option=port, Value=8099
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:10) Program=, Option=, Value=
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:11) Program=, Option=, Value=
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:12) Program=, Option=, Value=
DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:13) Program=, Option=Celsius, Value=
DEBUG: ow_opt.c:(342) Configuration file (/etc/owfs.conf:13) Option Celsius recognized as Celsius. Value=
DEBUG: ow_daemon.c:(170) main thread id = 139783930805032
CALL: ow_parsename.c:(174) path=[]
DEBUG: owlib.c:(77) Global temp limit 0C to 100C (for fake and mock adapters)
DEBUG: ow_ds9097U.c:(471) Attempt 0 of 3 to initialize the DS9097U
DEBUG: ow_ds9097U.c:(565) Send the initial reset to the bus master.
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(660) Failed first attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(665) Failed second attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(660) Failed first attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(665) Failed second attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(627) wrong response (7E not 44)
DEBUG: ow_serial_open.c:(181) Sleep after setting DTR/RTS pins off
DEBUG: ow_ds9097U.c:(565) Send the initial reset to the bus master.
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(660) Failed first attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(665) Failed second attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(660) Failed first attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(665) Failed second attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(627) wrong response (F3 not 44)
DEBUG: ow_ds9097U.c:(565) Send the initial reset to the bus master.
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(660) Failed first attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(665) Failed second attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(660) Failed first attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(643) wrong response (98 not 00)
DEBUG: ow_ds9097U.c:(665) Failed second attempt at resetting baud rate of bus master /dev/ttyUSB2
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_tcp_read.c:(63) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_tcp_read.c:(113) read: 1 - 0 = 1
DEBUG: ow_ds9097U.c:(627) wrong response (7E not 44)
DEBUG: ow_ds9097U.c:(565) Send the initial reset to the bus master.

configuration:

devices:

  • device_type: serial
    device: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI02DXF5-if00-port0
    owhttpd: true
    temperature_scale: Celsius
    debug: true

@lrybak lrybak linked a pull request Jan 12, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants