no, instead of ttyUSB1 use /dev/serial/by-path/…
you should lookup what is on the dots on your local system
-
Homeduino - timeout
-
OK, now I understand /dev/serial/by-path/ is under Linux the path to the USB port I have connect the Arduino. That have to work!
Thank you for the hint!!!
-
@rikki78 said in Homeduino - timeout:
no, instead of ttyUSB1 use /dev/serial/by-path/…
you should lookup what is on the dots on your local systemThat works perfekt!!! My path is for example:
/dev/serial/by-path/platform-3f980000.usb-usb-0:1.5:1.0-port0
-
we’ve also pinned this here :
https://forum.pimatic.org/topic/42/tip-homeduino-usbmaybe useful for other users who are having similar trouble for the future …
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
@V1per said in Homeduino - timeout:
@t1m0 said in Homeduino - timeout:
Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 006: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapterI think this two devices are cheap China Arduinos they have the same Chipset and also the same serial-no. I have the same problem… so the Raspberry don’t know who is USB0 and who is USB1 and at every reboot the USB-Port changed…
I haven’t solved the problem jet. I have ordered some Arduinos from an other seller and hope this solved this.i know. so ich reboot the system with only one usb insered and put the second after the reboot the slot. i changed the config that now mysensor is usb 0 and homeduino to usb1. until now everything works
-
same problem!! At least every 2 days homeduino times out!!!
Is it posible to activate a rule: Homeduino times out -> restart pimatic???
the “times out” is nowhere where logs?!?!?!
What can i do… it realdy sucks -
@t1m0 May be your system runs out of file descriptors temporarilly?! Did you you check the syslog for any suspects?
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig said in Homeduino - timeout:
@t1m0 May be your system runs out of file descriptors temporarilly?! Did you you check the syslog for any suspects?
Where can i find the right syslog?
And only my homeduino arduino times out my “my-sensor” arduino works fineHomeduino Chip is still online:
pi@raspberrypi:~ $ ls -l /dev/erstes
lrwxrwxrwx 1 root root 7 Sep 8 15:02 /dev/erstes -> ttyUSB0
pi@raspberrypi:~ $ -
@t1m0
Have you read the complete thread? And have you tryed to set honeduino and MySensors by serial by port and not by ttyUSB0 and TtyUSB1 the raspbian has Problems to regonise the right Port because the serialnumber of the Arduinos is most the same. -
@V1per
yes i did!!!i wrote in
etc/udev/rules.d/99-usb-serial.rules
SUBSYSTEM=="tty", KERNELS=="1-1.2", SYMLINK+="erstes" SUBSYSTEM=="tty", KERNELS=="1-1.3", SYMLINK+="zweites"
and the pimatic config for homeduino is:
"serialDevice": "/dev/erstes",
-
@mwittig
dmesg -T shows:hu Sep 8 15:03:06 2016] Bluetooth: HCI UART protocol H4 registered [Thu Sep 8 15:03:06 2016] Bluetooth: HCI UART protocol Three-wire (H5) [Thu Sep 8 15:03:06 2016] Bluetooth: HCI UART protocol BCM registered [Thu Sep 8 15:03:06 2016] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [Thu Sep 8 15:03:06 2016] Bluetooth: BNEP filters: protocol multicast [Thu Sep 8 15:03:06 2016] Bluetooth: BNEP socket layer initialized [Thu Sep 8 16:20:26 2016] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_call back - urb stopped: -32 [Thu Sep 8 16:20:26 2016] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_call back - urb stopped: -32 [Thu Sep 8 19:12:18 2016] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -11 hu Sep 8 19:12:18 2016] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [Fri Sep 9 01:33:18 2016] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: - [Fri Sep 9 01:33:18 2016] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [Fri Sep 9 17:19:32 2016] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_call back- urb stopped: -32 [Mon Sep 12 09:50:50 2016] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_call back - urb stopped: -32 [Tue Sep 13 22:13:59 2016] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_call back - urb stopped: -32[Wed Sep 14 16:58:26 2016] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_call back - urb stopped: -32 pi@raspberrypi:~ $
-
Go on and replace the arduino with another one, if you have. Had the same problem, replaced the arduino and it works since two weeks without any timeout issue.
-
@t1m0 said in Homeduino - timeout:
@V1per
yes i did!!!i wrote in
etc/udev/rules.d/99-usb-serial.rules
SUBSYSTEM=="tty", KERNELS=="1-1.2", SYMLINK+="erstes" SUBSYSTEM=="tty", KERNELS=="1-1.3", SYMLINK+="zweites"
and the pimatic config for homeduino is:
"serialDevice": "/dev/erstes",
I don’t think a udev rule is the same as serial by path. For me the udev rule not work. Please test it with the serial by path.
Since I have the serial by path adress in my config Homeduino and MySensors works without any issues. -
@V1per said in Homeduino - timeout:
serial by path
Thanks for answer. Back from holiday.
so…I will try "serial by path"
any idee where i can find a instructions how to do it? I cant find something @google -
okay i understand
pi@raspberrypi:~ $ ls /dev/serial/by-path/
platform-3f980000.usb-usb-0:1.2:1.0-port0
platform-3f980000.usb-usb-0:1.3:1.0-port0
first one is my-sensor
second homeduinoso in the pimatic config:
"serialDevice": "/dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0",
i did i!
I report if it works
Thank you for help -
Report: The change to Serial Port by nothing has changed. Crash every 4h.
I have now bought a new expensive power supply for the Raspberry. System has been running for 3 days with no failures. Seems to have located on the power supply of Raspberry.