Go Down

Topic: Bug in IDE 0021 Duemilanove and Linux (Read 1 time) previous topic - next topic

Dierk

Hi all,

if I flash a Duemilanove using IDE 0021 (with Ubuntu 10.04) I have this Problem:

I connect the Duemilanove to the Linux Box and the PC can receive the data send by Arduino. I reboot the PC with the Duemilanove attached, and the application on the PC can not receive any data because /dev/ttyUSB0 is in use. If I disconnect the Arduino and connect it again, then everything is working as expected. This happens only with Duemilanove, UNO (wich uses /dev/ttyACM=) is working fine.

If I flash the Duemilanove with IDE 0018 (on Windows) the Duemilanove is also working if attached during boot. So it must have to to something with IDE 0021.

madworm

#1
Oct 29, 2010, 12:31 pm Last Edit: Oct 29, 2010, 12:33 pm by madworm Reason: 1
How about running

Code: [Select]
lsof |grep /dev/ttyUSB

And your analysis is flawed btw. You're comparing apples and oranges.
• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Dierk

Unfortunately I had to finish my project quick, so I used the 0018 IDE to do that. Now I don't have any Duemilanove to examine the problem any further (the Duemilanove is at my client).
I still have a Mega (1280) and "hoped" I could reproduce the same error with that board, but the Mega works perfect, no error.
I try to get a new Duemilanove to examine the problem again.

Dierk

#3
Nov 09, 2010, 12:10 pm Last Edit: Nov 09, 2010, 12:12 pm by dwvm3 Reason: 1
Unfortunately my project did not work at the clients site, it must be a chance that it works here a couple of times. So even if I flash the Arduino with 0018 IDE my Linux application can not receive Data if the Arduino is connected to the PC at startup. The serious thing is, that when I do
Code: [Select]
lsof |grep /dev/ttyUSB
the result is nothing.

/dev/ttyUSB0 is present in the file system. I can see the FTDI chip in /dev/serial/by-id and /dev/serial/by-path

also
Code: [Select]
screen /dev/ttyUSB0
reports "can not exec /dev/ttyUSB0 : No such file or directory. But /dev/ttyUSB0 is present in the file system

Go Up