Welcome! Log In Create A New Profile

Advanced

/dev/ttyUSB0 is not working

Posted by wgaona 
/dev/ttyUSB0 is not working
July 18, 2015 12:36AM
From time ago in order to update the firmware the ttyUSB0 port in LINUX gives me the next errors:
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x0f
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x4d
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x58
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x49
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x49
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xc8
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x28
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x04
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xae
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xec

In WINDOWS i can update the firmware without problems.

In PRONTERFACE gives me the next error:

[ERROR] Can't read from printer (disconnected?) (SerialException):
device reports readiness to read but returned no data (device disconnected?)
7.1 /0.0 B:27.5 /0.0 @:0%
Printer is now online.
/0.0 B:27.5 /0.0 @:0%

But when I turn the printer off and on again, appears the ttyUSB1 and all is good.
What could be?

Edited 2 time(s). Last edit at 07/18/2015 12:46AM by wgaona.
Re: /dev/ttyUSB0 is not working
July 18, 2015 04:48AM
Hi,

I always exit Pronterface before powering-down the printer. This assures the existing port is closed.

Do you have other Arduino-based hardware connected to your PC? That has been known to cause all sorts of unusual effects when attempting to update firmware.

Regards,
Neil Darlow


I try to write with consideration for all nationalities. Please let me know if something is unclear.
Printing with Mendel90 from fedora 25 using Cura, FreeCAD, MeshLab, OpenSCAD, Skeinforge and Slic3r tools.
Re: /dev/ttyUSB0 is not working
July 21, 2015 12:24PM
Thanks Neil.

I tested with another linux machine (debian8.1 on beaglebone black)
and I could upload the firrmware without problems through /tty/USB0.
Moreoever, when I tried to compile and load with
ino package, I found the same error. I get back to the graphical arduino IDE
and everything is working fine now.
I suppose that my original problem is concerning to bad procedures like
Neil says, for example: power-down the printer without exiting Pronterface.
Sorry, only registered users may post in this forum.

Click here to login