Debian, unable to detect mysensors on USB

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
User avatar
l0gic
Posts: 107
Joined: Tuesday 08 October 2013 9:35
Target OS: Linux
Domoticz version: Latest
Contact:

Debian, unable to detect mysensors on USB

Post by l0gic »

Guys,
I'm using Domoticz on a Pi at the moment but as I'm in the process of setting up zomeminder on Debian I thought I'd swing over Domoticz at the same time.
Installed domoticz fine, RFX433 appears when I plug it in - all good.

However, I'm using a arduino nano as my mysensors gateway and I'm not picking it up.
Now the serial chip on the arduino is a CH340G and as such as a cheap chinese clone.
It works fine with Raspian but fails with Debian.

I'm confused as to whether the driver is pre installed (lots of people seem to think it is) but a "whereris ch340.c" turns up nothing.
I've tried various CH340 drivers out there but the make always fails, see below;

Code: Select all

make -C /lib/modules/3.16.0-4-amd64/build  M=/home/kevin/usbdrivers
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64'
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64'
  LD      /home/kevin/usbdrivers/built-in.o
  CC [M]  /home/kevin/usbdrivers/ch34x.o
/home/kevin/usbdrivers/ch34x.c: In function ‘wait_modem_info’:
/home/kevin/usbdrivers/ch34x.c:756:3: error: implicit declaration of function ‘interruptible_sleep_on’ [-Werror=implicit-function-declaration]
   interruptible_sleep_on( &priv->delta_msr_wait );
   ^
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:268: recipe for target '/home/kevin/usbdrivers/ch34x.o' failed
make[4]: *** [/home/kevin/usbdrivers/ch34x.o] Error 1
/usr/src/linux-headers-3.16.0-4-common/Makefile:1353: recipe for target '_module_/home/kevin/usbdrivers' failed
make[3]: *** [_module_/home/kevin/usbdrivers] Error 2
Makefile:181: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64'
Makefile:5: recipe for target 'default' failed
make: *** [default] Error 2


Anyone come across this or give me a definitive statement on the driver already being available.

Plugging in the arduino gives me the following in the kernel logs (dmesg | tail -f)

Code: Select all

[86441.702336] usb 3-1: new full-speed USB device number 10 using xhci_hcd
[86441.831356] usb 3-1: New USB device found, idVendor=1a86, idProduct=7523
[86441.831359] usb 3-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[86441.831360] usb 3-1: Product: USB2.0-Serial
[86441.838435] usbcore: registered new interface driver ch341
[86441.838449] usbserial: USB Serial support registered for ch341-uart
[86441.838458] ch341 3-1:1.0: ch341-uart converter detected
[86441.839252] ch341-uart: probe of ttyUSB0 failed with error -71

Any pointers would be appreciated :)

Cheers

Kevin
Non credus crepitus
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest