The problem isn't really solved at all.
The USB soundcard doesn't seem to completely prevent [comport] to detect my uno board (I've been playing with both plugged in for the past 2 hours). But [comport] seems to be a little temperamental. I have to open and close Pd several times, and change the USB port i'm using, for it to detect the arduino board (though changing the port may not have any impact). Opening and closing the port i'm using in [comport] doesn't seem to have any effect either.
The thing is, as i said in a previous post, that there's something weird about my serial ports on my ubuntu machine. The Arduino IDE detects my boards about every other time, or just looses it for no apparent reason. So maybe it's a problem with Ubuntu? [comport] seems to have a much more predictable behaviour in windows (which i can't use because i need low latency).
Any Gandalf out there to help me out?
pierre
On 2011-07-09 08:48, Pierre Massat wrote:So what was the problem?
UPDATE : comport is now working as expected, and my arduino uno board is
now friends with my USB soundcard.
Maybe read some Crowley about banishing daemons before plugging in...
I guess it's high time i started reading the first volume of Harry Potter.
Martin
Pierre
2011/7/9 Ingo <ingo@miamiwave.com <mailto:ingo@miamiwave.com>>[mailto:pd-list-bounces@iem.at <mailto:pd-list-bounces@iem.at>] Im
Similar problem here. I had an Arduino (USB) and a LCD display (RS232)
working together very well with two [comport] objects on my old
mainboard.
With the new board either one by themselves is working fine but both
of them
connected bidirectional doesn't work. As soon as I connect the serial in
from the display (which is supposed to get the keypad of the serial
display)
I get a lots of crazy data coming in. After a while either [comport]
or Pd
altogether crashes.
The LCD [comport] should only receive digital buttons on/off. While the
arduino sends buttons plus four analogue INs from a joystick and two
foot
pedals.
All cables are very short, so the problematic behaviour can't be
caused by
the cable length. Without connecting the serial out of the display
to the
serial in of the computer everything works fine.
I was also suspecting an error in comport where the data of two
instances of
two [comport] objects get mixed up. It looks like the analogue data
from the
arduino board gets forwarded to the second RS232 [comport] of the LCD.
Ingo
________________________________________
Von: pd-list-bounces@iem.at <mailto:pd-list-bounces@iem.at>
Auftrag von
Pierre Massat
Gesendet: Samstag, 9. Juli 2011 13:38
An: pd-list
Betreff: [PD] Comport can't read serial devices when soundcard is
plugged in
Hi all!
After having had to deal with a "bug" in pduino (see Arduin is drivin me
mad), i wrote a small sketch for the board and a patch using
comport. It was
working fine until i decided to actually try it with my audio patch.
It turns out that my external USB soundcard prevents comport from
working
properly. It can't open the arduino board, and can't event detect serial
devices ("devices" yields an empty message in the console). As soon as i
unplug the soundcard, everything works fine again.
I think i'm beginning to realize that a lot of things have to be
taken care
off, and i know that my patch and sketch are way to simple to take
this kind
of issue into account (i wish i could switch back to Pduino and
firmata).
So my question is : is this behaviour normal, or is it bug in comport?
Thanks!
Pierre
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list