Good day everyone. I have the following problem / annoyment
When the raspberry restarts ( with sudo reboot ), but i am thinking after a electrical problem which will restart the raspberry, the Arduino nano isnt available anymore on ttyUSB0. The only thing what helps is to plug out the USB cable and plug it back in. Sometimes it will come up with ttyUSB1 which is the wrong for Pimatic. After a retry it will come up on ttyUSB0. Ideas?
-
[solved]USB loss after raspberry pi 3 restart
-
@countjuh Do you also have other USB devices attached?
In that case the following may be helpful: https://forum.pimatic.org/topic/42/tip-homeduino-usb
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Thanks for the reply. I have tried the things described. But it doesnt work for me. the config is now /dev/arduino
That works amazing, cause now i dont have the problem regarding USB0 or USB1 anymore. But when i do a sudo reboot it seems that the raspberry doesnt see the USB ports anymore. only thing is still to unplug the USB cable and plug it back in. -
And no, i only have the arduino in the USB.
-
Try this. So you say the pimatic she should always take the port. Of course, have to check whether it is the right one.
serialDevice": "/dev/serial/by-path/platform-3f980000.usb-usb-0:1.2:1.0-port0",
-
@countjuh said in USB loss after raspberry pi 3 restart:
the config is now /dev/arduino
Simply follow the advice given in the first post at https://forum.pimatic.org/topic/42/tip-homeduino-usb which is the same as suggested by @t1m0
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
thanks all for the replies. i allready tried the thing from you t1m0. Just in case i tried it again. Sudo reboot raspberry results in a loss of usb again:
error [pimatic-homeduino]: Error: Cannot open /dev/serial/by-path/platform-3f980000.usb-usb-0:1.2:1.0-port0
at Error (native) -
Are you sure it port0 is? Just try all times. It is not zero. So try 1 -> pimatic restart and so on …
-
i think it is port 0. cause i get this result in putty:
pi@raspberrypi:~ $ ls -l /dev/serial/by-path
total 0
lrwxrwxrwx 1 root root 13 May 27 19:53 platform-3f980000.usb-usb-0:1.3:1.0-port0 -> …/…/ttyUSB0i have tried to change it to this. Result now after sudo reboot is:
error [pimatic-homeduino]: Error: Cannot open /dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0
at Error (native)
07:29:24error [pimatic-homeduino]: Couldn’t connect to homeduino device: Cannot open /dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0.I also digged into google and tried sudo apt get update and upgrade. also didnt work. So after powerloss or sudo reboot the usb cable needs unplugging to make it work again. Can it maybe be the USB cable that causes this problem?
-
@countjuh maybe your arduino has the infamous FTDI bug. If that is the case, you have to solder TEST(26) and AGND(25) together on the FTDI chip…
Solder the two red ones togethes with a small soldering blob or short it with some piece of metal to test it:
If thats the fix, use this or get a new arduino.
-
@Gleno0h You were totally right here! i soldered pin25 and pin26 together. it works! i have sudo reboot the raspberry and now its working all fine. i have rebuild the config back to /dev/arduino for it worked awesome cause it doesnt matter if the arduino comes up with usb0 or usb1.
Thanks all for thinking with me on this issue. for people who have this problem, here is also a link for this ‘bug’https://ketturi.kapsi.fi/2014/04/how-to-fix-moody-arduino-nano/
-
@countjuh great