Pages: 1 [2] 3   Go Down
Author Topic: Arduino not ready on startup (ubuntu)  (Read 2327 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's looking good. And that's from the reboot?

yes this is after reboot
Logged

Värmland, Sweden
Offline Offline
Sr. Member
****
Karma: 9
Posts: 262
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try using sudo to run Arduino to see if it's related to permissions
not that I see why re-plugging would help if that was the case...
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try using sudo to run Arduino to see if it's related to permissions
not that I see why re-plugging would help if that was the case...

nope no respons :/ everthing is okey if i replug it :/
Logged

Värmland, Sweden
Offline Offline
Sr. Member
****
Karma: 9
Posts: 262
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it connected to some kind of USB hub or directly to a USB port on your computer?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it connected to some kind of USB hub or directly to a USB port on your computer?

directly to a USB port
Logged

Värmland, Sweden
Offline Offline
Sr. Member
****
Karma: 9
Posts: 262
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wonder if something else is locking the port.
Try this before starting the Arduino IDE:
Code:
ls -l /dev/ttyUSB0
Please paste the output here

And try:
Code:
cat /dev/ttyUSB0
if it shows nothing or if it shows some serial data being sent from the Arduino then it should be ok.
If something else is locing the port it would show cat: /dev/ttyUSB0: Device or resource busy

What kind of sketch is on your chip? Something that send serial data?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
crw-rw---- 1 root dialout 188, 0 2012-05-08 16:09 /dev/ttyUSB0
i´ts sould be ok, i give the user right for dialout

Code:
cat: /dev/ttyUSB0: Device or resource busy

yes it send serial data as a sting but only if i send a sting to the arduino


Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i googled abit about:
Code:
cat: /dev/ttyUSB0: Device or resource busy

i found this to find what process is accessing the arduino
Code:
sudo lsof | grep ttyUSB

but i get this error
Code:
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/home/.gvfs
      Output information may be incomplete.
upowerd   1393       root   14u      CHR              188,0      0t0       8451 /dev/ttyUSB0

linux is so complicatet if you never use it :/
Logged

Värmland, Sweden
Offline Offline
Sr. Member
****
Karma: 9
Posts: 262
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The error you get is just a warning. Doesn't mean anything in this case.
What I can see is that upowerd is locking the device.

Upower is a power save component and there seems to be an old bug related to Upower and the FTDI chip: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586751

You will have to upgrade or disable Upower to solve this but I'm not sure how to do it. As the problem is not with your board or with the Arduino environment there may be better support forums than this one.
You may have to Google a bit.
Logged

Offline Offline
God Member
*****
Karma: 4
Posts: 813
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You will have to upgrade or disable Upower to solve this but I'm not sure how to do it

sudo apt-get remove upower

Removing it may disable support for battery monitoring (if it's a laptop) and features like suspend/hibernate. You may or may not not care about this.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks alot guys and special thanks to perhof smiley it work now i update my xubuntu to 12.04. your answer about the upower bug. i google abou it and its fixed in the 12.04 smiley thanks
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

okey now i have another problem -.-

Code:
avrdude stk500_recv() programmer is not responding

this is what i get if i try to upload code :/
Logged

Värmland, Sweden
Offline Offline
Sr. Member
****
Karma: 9
Posts: 262
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A few questions:
What kind of Arduino board do you have?
Which Arduino version do you have installed on the server.
Was it when you upgraded to 12.04 that it stopped working?
Logged

Offline Offline
God Member
*****
Karma: 4
Posts: 813
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
avrdude stk500_recv() programmer is not responding

This means that the IDE thinks you're using a specific programmer device, rather than a bootloader-based serial uploader.
You must have edited your boards file, or selected "update using programmer" in the IDE. Re-select the right board using the serial port, and you should be good to go.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

if i try update using programmer i get this error

Code:
avrdude: usbdev_open(): did not find any USB device "usb"

hmmm.... this is pretty annoying :/
Logged

Pages: 1 [2] 3   Go Up
Jump to: