OpenWrt Forum Archive

Topic: Is driver avaiable for Z-Wave Controller (UZB US, SIGMA) in openwrt?

The content of this topic has been archived on 2 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi All,

I am using openwrt from last few months. I have enabled z-wave library at compilation time using make menuconfig.
After compilation I'm able to see MinOZW executable file with ozw_config. When I run MinOZW with port, Its giving below error

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2017-10-18 21:23:58.401 Always, OpenZwave Version 1.4.164 Starting Up
webserver starting port 8888
2017-10-18 21:23:58.401 Info, Setting Up Provided Network Key for Secure Communications
2017-10-18 21:23:58.401 Warning, Failed - Network Key Not Set
2017-10-18 21:23:58.401 Info, mgr,     Added driver for controller /dev/ttyACM0
Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added. Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.
2017-10-18 21:23:58.401 Info,   Opening controller /dev/ttyACM0
2017-10-18 21:23:58.402 Info, Trying to open serial port /dev/ttyACM0 (attempt 1)
2017-10-18 21:23:58.402 Error, ERROR: Cannot open serial port /dev/ttyACM0. Error code 2
2017-10-18 21:23:58.402 Error, ERROR: Failed to open serial port /dev/ttyACM0

2017-10-18 21:23:58.402 Warning, WARNING: Failed to init the controller (attempt 0)
Today is: 3
Today hour is: 21
IP of this scope is: 192.168.1.1
GatewayResponse:0
BEGIN (200 OK)
<?xml version="1.0" encoding="utf-8" ?>
<poll homeid="" nodeid="" sucnodeid="0" nodecount="0" cmode="" save="0" noop="0">
        <log size="696" offset="0">2017-10-18 21:23:58.401 Always, OpenZwave Version 1.4.164 Starting Up&#x0A;2017-10-18 21:23:58.401 Info, Setting Up Provided Network Key for Secure Communications&#x0A;2017-10-18 21:23:58.401 Warning, Failed - Network Key Not Set&#x0A;2017-10-18 21:23:58.401 Info, mgr,     Added driver for controller /dev/ttyACM0&#x0A;2017-10-18 21:23:58.401 Info,   Opening controller /dev/ttyACM0&#x0A;2017-10-18 21:23:58.402 Info, Trying to open serial port /dev/ttyACM0 (attempt 1)&#x0A;2017-10-18 21:23:58.402 Error, ERROR: Cannot open serial port /dev/ttyACM0. Error code 2&#x0A;2017-10-18 21:23:58.402 Error, ERROR: Failed to open serial port /dev/ttyACM0&#x0A;2017-10-18 21:23:58.402 Warning, WARNING: Failed to init the controller (attempt 0)</log>
        <admin active="false" />
        <update />
</poll>
COMPLETE (939 bytes)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Please provide solution to enable driver for Z-Wave controller device?....I have used many devices, but the device driver is not registered.

Thanks,
Thanaraj.

(Last edited by thanaraj.s on 8 Feb 2018, 09:32)

Use 'lsusb' to see if your device is detected by the USB host controller. If it is, and you have the debugfs system in use, then you should be able to check 'cat /sys/kernel/debug/usb/devices | less' to determine which driver is currently loaded for your device. If debugfs system is not available, use the instructions at this link for an alternative method on how to determine which driver is loaded for your device.

If the output shows that no driver is loaded, check if you have 'kmod-usb-acm' installed. That package provides the kernel-level support for Linux Abstract Control Model aka ACM.

This should get you to a point where '/dev/ttyACM0' appears in the device tree. It does not guarantee that your device will work, but at least it's a step forward.

(Last edited by Antek on 8 Feb 2018, 11:44)

The discussion might have continued from here.