why homeduino shows no error on when it can not send
-
Homeduino - timeout
-
Sometimes the Raspberry changed the USB-Port itselv have you looked if the port is now the same as in the config?
By me the port has changed from /TTyUSB0 to /TTyUSB1 -
hmm but if i make a restart only with pimatic the system works fine again…
I’ll check if it does not work again
-
@V1per said in Homeduino - timeout:
Sometimes the Raspberry changed the USB-Port itselv have you looked if the port is now the same as in the config?
By me the port has changed from /TTyUSB0 to /TTyUSB1pi@raspberrypi:~ $ lsusb
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 adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $ lsusb
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 adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $same ports! and timeout again! i go insane!!!
-
@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. -
You can also use the dev/serial/by-path/ addressing to identify your USB device, then you can use devices with the same serial nr.
also see https://forum.pimatic.org/topic/42/tip-homeduino-usb
and https://forum.pimatic.org/topic/1005/ttyusb0-ttyusb1-homeduino-and-my-sensors -
You mean this?
I have tryed it with persistent names but I have not found a way how Linux can differ the arduinos.
I will try it now with theudevadm info -a -n /dev/ttyUSB1 | grep '{devpath}' | head -n1
command and an UDEV rule.
-
no, instead of ttyUSB1 use /dev/serial/by-path/…
you should lookup what is on the dots on your local system -
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.