Pages: [1]   Go Down
Author Topic: Bug in IDE 0021 Duemilanove and Linux  (Read 1610 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How about running

Code:
lsof |grep /dev/ttyUSB

And your analysis is flawed btw. You're comparing apples and oranges.
« Last Edit: October 29, 2010, 05:33:18 am by madworm » Logged

• 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!

0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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:
screen /dev/ttyUSB0
reports "can not exec /dev/ttyUSB0 : No such file or directory. But /dev/ttyUSB0 is present in the file system
« Last Edit: November 09, 2010, 06:12:45 am by dwvm3 » Logged

Pages: [1]   Go Up
Jump to: