North Dakota
Offline
Newbie
Karma: 0
Posts: 24
babies love oscilloscopes
|
 |
« on: May 23, 2010, 02:07:47 pm » |
I posted this in hardware trouble shooting and have not gotten help.
I have removed brltty and made sure that jre, gcc-avr, etc... everything needed is on and of the correct versions.
This is ubuntu 10.04 -- I see ttyUSB0 when I look for it in the terminal (lsusb). But when I look for it in the arduino IDE all I see is ttyS0. And this of course leads to a "programmer not responding" message when I try to upload.
The arduino works on windowsXP.
The problem has something to do with USB and ubuntu. Please, someone help. I need steps for setting up this connection. I am not that good with linux.
I am doing this all logged in as root.
|
|
|
|
« Last Edit: May 23, 2010, 02:09:29 pm by Blaise_Mibeck »
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 35
Arduino rocks
|
 |
« Reply #1 on: May 23, 2010, 03:06:46 pm » |
This might sound crude (actually it is crude), but have you tried simply unplugging the USB cable then reconnecting with the IDE still running? Always works for me. I've noticed that it has for others on these forums as well.
|
|
|
|
|
Logged
|
|
|
|
|
North Dakota
Offline
Newbie
Karma: 0
Posts: 24
babies love oscilloscopes
|
 |
« Reply #2 on: May 23, 2010, 03:10:09 pm » |
Yes -- I tried this. I have unplugged the arduino, opened the ide ad then plugged in and waited for hour -- no sign of ttyUSB0.
Thanks for the suggestion though.
|
|
|
|
|
Logged
|
|
|
|
|
Wuppertal/Germany
Offline
God Member
Karma: 0
Posts: 869
|
 |
« Reply #3 on: May 24, 2010, 05:34:02 am » |
Hi, try this: Start up your computer Open a console window Run command "sudo dmesg -c" which prints and clears the kernel log messages since startup Now plug the arduino board into an USB port Run command "dmesg" in the console (no need to do this as root this time ) Post the output of the command it should look something like this [ 1700.510090] usb 1-5.5: new full speed USB device using ehci_hcd and address 6 [ 1700.626476] usb 1-5.5: configuration #1 chosen from 1 choice [ 1700.670375] usbcore: registered new interface driver usbserial [ 1700.671013] USB Serial support registered for generic [ 1700.671937] usbcore: registered new interface driver usbserial_generic [ 1700.671941] usbserial: USB Serial Driver core [ 1700.682074] USB Serial support registered for FTDI USB Serial Device [ 1700.682788] ftdi_sio 1-5.5:1.0: FTDI USB Serial Device converter detected [ 1700.682887] usb 1-5.5: Detected FT232RL [ 1700.682891] usb 1-5.5: Number of endpoints 2 [ 1700.682894] usb 1-5.5: Endpoint 1 MaxPacketSize 64 [ 1700.682896] usb 1-5.5: Endpoint 2 MaxPacketSize 64 [ 1700.682899] usb 1-5.5: Setting MaxPacketSize 64 [ 1700.683228] usb 1-5.5: FTDI USB Serial Device converter now attached to ttyUSB0 [ 1700.683252] usbcore: registered new interface driver ftdi_sio [ 1700.683255] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
Eberhard
|
|
|
|
|
Logged
|
|
|
|
|
North Dakota
Offline
Newbie
Karma: 0
Posts: 24
babies love oscilloscopes
|
 |
« Reply #4 on: May 24, 2010, 07:47:11 am » |
I did a complete reinstall of ubuntu 10.04, I installed the arduino 0018 using the personal package thing. The IDE is installed and looks fine, but I still can't get ttyUSB0 to show up. I use lsusb in a terminal and I see the ftdi show up. Eberhard, the output of the first command is: [ 2760.520456] INFO: task lsusb:3021 blocked for more than 120 seconds. [ 2760.520460] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 2760.520464] lsusb D 0060f8c8 0 3021 1 0x00000004 [ 2760.520476] cc58be68 00000086 cc58be24 0060f8c8 00000000 c08874a0 cc580f7c c08874a0 [ 2760.520488] b491f863 0000022f c08874a0 c08874a0 cc580f7c c08874a0 c08874a0 f690d500 [ 2760.520504] b459e622 0000022f cc580cd0 7fffffff f761f498 cc580cd0 cc58bec8 c05b012d [ 2760.520518] Call Trace: [ 2760.520530] [<c05b012d>] schedule_timeout+0x1ad/0x280 [ 2760.520538] [<c020fdef>] ? __dentry_open+0x1af/0x290 [ 2760.520549] [<c02ff4bd>] ? security_inode_permission+0x1d/0x30 [ 2760.520558] [<c021ac2e>] ? inode_permission+0x9e/0xb0 [ 2760.520565] [<c020ffcd>] ? nameidata_to_filp+0x5d/0x70 [ 2760.520572] [<c0215050>] ? chrdev_open+0x0/0x200 [ 2760.520582] [<c021e5f2>] ? do_filp_open+0x4d2/0x990 [ 2760.520589] [<c05b0e6f>] __down+0x5f/0x90 [ 2760.520596] [<c0174a69>] down+0x39/0x40 [ 2760.520602] [<c04710ae>] usbdev_read+0x3e/0x250 [ 2760.520609] [<c02fe3b4>] ? security_file_permission+0x14/0x20 [ 2760.520615] [<c05b1b77>] ? unlock_kernel+0x27/0x30 [ 2760.520621] [<c021227f>] vfs_read+0x9f/0x1a0 [ 2760.520629] [<c02203c9>] ? do_vfs_ioctl+0x79/0x310 [ 2760.520634] [<c0471070>] ? usbdev_read+0x0/0x250 [ 2760.520644] [<c0212432>] sys_read+0x42/0x70 [ 2760.520649] [<c0109763>] sysenter_do_call+0x12/0x28
There was no output when I entered the code after plugging in the arduino.
|
|
|
|
|
Logged
|
|
|
|
|
North Dakota
Offline
Newbie
Karma: 0
Posts: 24
babies love oscilloscopes
|
 |
« Reply #5 on: May 24, 2010, 08:55:49 am » |
I apologize -- I failed to restart the computer as you asked in your instructions. I followed your instructions again and this is what I got after connecting the arduino. blaise@king-desktop:~$ dmesg [ 77.408032] usb 4-1: new full speed USB device using ohci_hcd and address 3 [ 77.635264] usb 4-1: configuration #1 chosen from 1 choice [ 77.686607] usbcore: registered new interface driver usbserial [ 77.686636] USB Serial support registered for generic [ 77.686687] usbcore: registered new interface driver usbserial_generic [ 77.686691] usbserial: USB Serial Driver core [ 77.699577] USB Serial support registered for FTDI USB Serial Device [ 77.699662] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected [ 77.699710] usb 4-1: Detected FT232RL [ 77.699715] usb 4-1: Number of endpoints 2 [ 77.699719] usb 4-1: Endpoint 1 MaxPacketSize 64 [ 77.699724] usb 4-1: Endpoint 2 MaxPacketSize 64 [ 77.699728] usb 4-1: Setting MaxPacketSize 64 [ 77.701241] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0 [ 77.701285] usbcore: registered new interface driver ftdi_sio [ 77.701290] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
After I did this, I opened the arduino IDE and did not see the USB connection under tools -> serial ports. I left the ide running and disconnected, then reconnected the arduino -- still no change in the serial port options.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Faraday Member
Karma: 16
Posts: 3196
20 LEDs are enough
|
 |
« Reply #6 on: May 24, 2010, 03:16:37 pm » |
What do you get if you enter: ls -l /dev/serial/by-*
Show us the results. Udo
|
|
|
|
|
Logged
|
|
|
|
|
North Dakota
Offline
Newbie
Karma: 0
Posts: 24
babies love oscilloscopes
|
 |
« Reply #7 on: May 24, 2010, 07:14:36 pm » |
Here you go: blaise@king-desktop:~$ ls -l /dev/serial/by-* /dev/serial/by-id: total 0 lrwxrwxrwx 1 root root 13 2010-05-24 08:51 usb-FTDI_FT232R_USB_UART_A9007CJU-if00-port0 -> ../../ttyUSB0
/dev/serial/by-path: total 0 lrwxrwxrwx 1 root root 13 2010-05-24 08:51 pci-0000:00:04.0-usb-0:1:1.0-port0 -> ../../ttyUSB0
Does this help? What should I do to have access to ttyUSB0 in the ide? I really appreciate the help!
|
|
|
|
|
Logged
|
|
|
|
|
France
Offline
Edison Member
Karma: 12
Posts: 1803
There is an Arduino for that
|
 |
« Reply #8 on: May 25, 2010, 06:04:01 am » |
Has the group you're attached to the rights to open serial communication?
|
|
|
|
|
Logged
|
|
|
|
|
Wuppertal/Germany
Offline
God Member
Karma: 0
Posts: 869
|
 |
« Reply #9 on: May 25, 2010, 06:41:38 am » |
Hi, the output says the arduino is detected by the operating system so it should also be detected by the IDE. Which java version is installed on your machine? sudo update-alternatives --config java
Are there any error messages printed to the console window if you start up the IDE from the commandline. Eberhard
|
|
|
|
|
Logged
|
|
|
|
|
North Dakota
Offline
Newbie
Karma: 0
Posts: 24
babies love oscilloscopes
|
 |
« Reply #10 on: May 25, 2010, 08:16:22 am » |
Eberhard, This is what I got: There is only one alternative in link group java: /usr/lib/jvm/java-6-openjdk/jre/bin/java Nothing to configure.
fdufnews, I think so -- how do I check? Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Wuppertal/Germany
Offline
God Member
Karma: 0
Posts: 869
|
 |
« Reply #11 on: May 25, 2010, 08:33:26 am » |
Hi, OpenJdk works fine for most arduino users. If there are problems with this version they are mostly related to graphics or window-menus not working.
The alternative is to use the sun-java6-jre package (install, then run the update-alternatives line again to select it).
Please have a look at the IDE's startup messages again. Are there any error reports.
The Serial Ports Menu is only populated when the Arduino is plugged in. It takes a few seconds for the /dev/ttyUSB* entry to be added to the menu.
Please show us the output of ls -l /devttyUSB*
Eberhard
|
|
|
|
|
Logged
|
|
|
|
|
North Dakota
Offline
Newbie
Karma: 0
Posts: 24
babies love oscilloscopes
|
 |
« Reply #12 on: May 25, 2010, 08:48:53 am » |
blaise@king-desktop:~$ ls -l /devttyUSB ls: cannot access /devttyUSB: No such file or directory blaise@king-desktop:~$ ls -l /devttyUSB0 ls: cannot access /devttyUSB0: No such file or directory
I don't understand -- when I typed lsusb before I would see the ftdi and everything else usb related. Now it just hangs (no output). Regarding errors during the start up of IDE -- I don;'t see any in the ide window or the terminal window. It is the case that every time I click to open the IDE for the first time since the computer is restarted, nothing happens. The second time (and all times after that) the ide seems to start normally.
|
|
|
|
« Last Edit: May 25, 2010, 08:52:01 am by Blaise_Mibeck »
|
Logged
|
|
|
|
|
Wuppertal/Germany
Offline
God Member
Karma: 0
Posts: 869
|
 |
« Reply #13 on: May 25, 2010, 08:55:12 am » |
Hi, sorry I didn't check what I typed, missed a slash
ls -l /dev/ttyUSB*
Eberhard
|
|
|
|
|
Logged
|
|
|
|
|
North Dakota
Offline
Newbie
Karma: 0
Posts: 24
babies love oscilloscopes
|
 |
« Reply #14 on: May 25, 2010, 09:03:56 am » |
This is what I got: crw-rw---- 1 root dialout 188, 0 2010-05-25 08:11 /dev/ttyUSB0
|
|
|
|
|
Logged
|
|
|
|
|
|