XOscillo can't connect to Arduino UNO on Ubuntu 10.10 Maverick

425 views
Skip to first unread message

tirithen

unread,
May 23, 2011, 5:45:22 PM5/23/11
to xoscillo
I'm using Ubuntu 10.10 Maverick with mono packages mono-complete,
monodevelop amongst others. When I run xoscillo I can't connect to my
Arduino UNO at /dev/ACM0.

I have:
* downloaded XOscillo_20110302v5.zip
* extracted the zip
* opened and uploaded ArduinoOscillo.pde to Arduino UNO with Arduino
IDE 0022
* started XOscillo with "mono XOscillo.exe"
* choose File -> New Arduino
* a dialog displays "Couln't autodetect port, please select
manually...."
* I select "/dev/ttyACM0" in the input field and click "Go"
* DebugConsoleForm shows:
Autodetecting Arduino port

/dev/ttyS0, rts:False, dtr:False trying...Can't open!

/dev/ttyS1, rts:False, dtr:False trying...Can't open!

/dev/ttyS2, rts:False, dtr:False trying...Can't open!

/dev/ttyS3, rts:False, dtr:False trying...Can't open!

Autodetection failed, trying manual mode

, rts:False, dtr:False trying...Can't open!

Detection failed, close this console and try again.


I have verified that the Arduino is properly connected to /dev/ACM0,
if I start the serial console in the Arduino IDE select baud 115200
and send "?" I get an answer that starts with "OC".

What could I be doing wrong?

Can I help with more detailed information?

Raul Aguaviva

unread,
May 24, 2011, 7:15:28 AM5/24/11
to xosc...@googlegroups.com
This is a great bug report, unfortunately I don't have a an arduino UNO, BTW do you have the same problem with regular arduinos?

Thanks!

Fredrik Söderström

unread,
May 24, 2011, 8:23:40 AM5/24/11
to xosc...@googlegroups.com
I also have a Arduino Duemilanove, I can try to do and submit a test with that one tonight.

Thanks for the fast answer, I'm really looking forward to testing this system since I'm working with generation of pulses for hobby servos and don't want to buy a real oscilloscope if I can help it. :-)


2011/5/24 Raul Aguaviva <agua...@gmail.com>

Raul Aguaviva

unread,
May 24, 2011, 9:14:18 AM5/24/11
to xosc...@googlegroups.com
The arduino already has a library for handling servos! :-)

Fredrik Söderström

unread,
May 24, 2011, 9:21:14 AM5/24/11
to xosc...@googlegroups.com
I know, but I'm trying to run more of them through a multiplexer and also read feedback on load and position, all with one arduino... To do all that with hopefully up to 16 servos at 16 Mhz I need to be able to mesure the pulses when I experiment... :-) The existing library can only drive up to 12 and can't do it through a multiplexer...


2011/5/24 Raul Aguaviva <agua...@gmail.com>

tirithen

unread,
May 24, 2011, 6:42:16 PM5/24/11
to xoscillo
Now I have tried with my Arduino Duemilanove (ATmega328), same
computer and operating system:
* opened and uploaded ArduinoOscillo.pde to Arduino Duemilanove with
Arduino
IDE 0022
* started XOscillo with "mono XOscillo.exe"
* choose File -> New Arduino
* sometimes it connects and shows topbar controls and the yellow LED
(digital pin 13) on Arduino board becomes lit, but no graph (even when
trying to connect various things to analog in pins 0-3)
* sometimes a dialog displays "Couln't autodetect port, please select
manually...."
* I select "/dev/ttyUSB0" in the input field and click "Go"
* DebugConsoleForm shows:
Autodetecting Arduino port

/dev/ttyS0, rts:False, dtr:False trying...Can't open!

/dev/ttyS1, rts:False, dtr:False trying...Can't open!

/dev/ttyS2, rts:False, dtr:False trying...Can't open!

/dev/ttyS3, rts:False, dtr:False trying...Can't open!

/dev/ttyUSB0, rts:False, dtr:False trying...lowering
RTS........pinging....Timeout

Autodetection failed, trying manual mode

/dev/ttyUSB0, rts:False, dtr:False trying...lowering
RTS........pinging....Timeout

Detection failed, close this console and try again.


The connection problems seemes to be possible to solve by
disconnecting the Arduino USB-cable and reconnecting it, seemes it has
to do with RTS (pin?), I have read somewhere here about problems with
RTS and Linux.

When the program and the Arduino does connect, I get the topbar with
controls but no graph, it does not seem to help if I connect things to
the analog in pins 0-3 as stated on this page. The laptop CPU load
does not increase when connected to the Arduino as I guess it should
if trying to draw a real time graph.

Occationally the RX/TX LEDs flashes a short syncronised pulse.

What do I need to do to get a graph to show up?

xchip

unread,
May 27, 2011, 9:26:55 PM5/27/11
to xoscillo
As for the autodetection, yes there are problems with RTS in linux, I
wasn't expectng to have a big audience in the linux community and
didnt spent too much time. I might revisit the autodetection for linux
though.

As for getting data, you seem to be doing the right thing, not sure
why you dont get any activity...
Arduinos have a orange led that should be on when its waiting for a
trigger condition and should get turned off when the trigger condition
is met.. did you notice this led changing state?

Did you try setting the trigger value to 0?

I hope this helps...
Thanks!

pmst

unread,
Jul 5, 2011, 9:01:46 AM7/5/11
to xoscillo
I got it working with Arduino UNO under debian with a dirty hack:
sudo ln -s /dev/ttyACM0 /dev/ttyS5 (the first free device).
A cleaner solution would be to write an udev rule but I was short of
time :-)
The real solution would be to find a way to enumerate also /dev/
ttyACM0 as
serial device (i tried manual input without success).

A.

Raul Aguaviva

unread,
Jul 5, 2011, 11:13:27 AM7/5/11
to xosc...@googlegroups.com
Awesome! I hope this helps others too! 

BTW What are you using the xoscillo for?

Raul
Reply all
Reply to author
Forward
0 new messages