[PD] Re : Comport can't read serial devices when soundcard is plugged in

Pierre Massat pimassat at gmail.com
Sat Jul 9 18:40:11 CEST 2011


I have "pull up" resistors everywhere. When the switches are open i get
HIGH, and when they're closed i get LOW.

I m currently reading a long thread on the arduino forum about the UNO board
not working in linux. Apparently people got it working fine (in the IDE at
least) by flashing the firmware. This thread dates back to november, 2010,
so i don't know if this was already fixed in my board (i bought it last
april).

Here's the output of dmesg | grep tty :

[    0.000000] console [tty0] enabled
[  116.738061] cdc_acm 6-1:1.0: ttyACM0: USB ACM device
[  154.351132] tty_port_close_start: tty->count = 1 port count = 0.
[  172.699751] tty_port_close_start: tty->count = 1 port count = 0.
[  353.667610] tty_port_close_start: tty->count = 1 port count = 0.
[  375.827512] tty_port_close_start: tty->count = 1 port count = 0.
[  430.620101] tty_port_close_start: tty->count = 1 port count = 0.
[  560.353352] cdc_acm 6-1:1.0: ttyACM1: USB ACM device
[  615.540091] tty_port_close_start: tty->count = 1 port count = 0.
[  628.675559] tty_port_close_start: tty->count = 1 port count = 0.
[  644.924045] tty_port_close_start: tty->count = 1 port count = 0.
[  659.143506] tty_port_close_start: tty->count = 1 port count = 0.
[  681.121359] cdc_acm 6-1:1.0: ttyACM0: USB ACM device
[  706.176030] tty_port_close_start: tty->count = 1 port count = 0.
[  719.227451] tty_port_close_start: tty->count = 1 port count = 0.
[  737.328033] tty_port_close_start: tty->count = 1 port count = 0.
[  753.263592] tty_port_close_start: tty->count = 1 port count = 0.
[  772.028390] cdc_acm 6-1:1.0: ttyACM0: USB ACM device
[  802.079561] tty_port_close_start: tty->count = 1 port count = 0.
[  817.727859] tty_port_close_start: tty->count = 1 port count = 0.
[  839.673863] cdc_acm 7-1:1.0: ttyACM0: USB ACM device
[  866.519125] tty_port_close_start: tty->count = 1 port count = 0.
[  878.946506] tty_port_close_start: tty->count = 1 port count = 0.
[  893.239986] tty_port_close_start: tty->count = 1 port count = 0.
[ 8735.409214] cdc_acm 6-1:1.0: ttyACM0: USB ACM device
[ 8762.010191] tty_port_close_start: tty->count = 1 port count = 0.
[ 8775.222616] tty_port_close_start: tty->count = 1 port count = 0.
[11257.588324] cdc_acm 4-2:1.0: ttyACM0: USB ACM device



2011/7/9 Pierre-Olivier Boulant <po.boulant at free.fr>

> Do you have a pull down resistor so you don't short-circuit or have
> floating values at your inputs?
> pierre-olivier
>
> ----- Reply message -----
> De : "Pierre Massat" <pimassat at gmail.com>
> Date : sam., juil. 9, 2011 18:00
> Objet : [PD] Comport can't read serial devices when soundcard is plugged in
> Pour : "Martin Peach" <martin.peach at sympatico.ca>
> Cc : "pd-list" <pd-list at iem.at>
>
>
> It's a laptop.
> I don't get random dropouts once it's connected (I used it for 2 ours in Pd
> and it worked fine all the time), but it just doesn't appear (either in the
> Serial port menu of the IDE, or in the device list that comport outputs)
> randomly. Do you think that this could still be caused by something sucking
> up too much current? There's nothing special connected to the board : 2
> pots, and 8 buttons (wired so that their rest position is High).
>
> Pierre
>
> 2011/7/9 Martin Peach <martin.peach at sympatico.ca>
>
>> It's very likely the sound card is using a lot more bandwidth of the USB
>> hub than the arduino. If it's not a laptop you can usually plug into a
>> different hub on the same machine.
>> The random dropouts of the serial connection sound like a problem with the
>> cable or connectors, or else something is plugged into the arduino that's
>> taking too much current from the USB.
>>
>> Martin
>>
>>
>> On 2011-07-09 11:26, Pierre Massat wrote:
>>
>>> 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
>>>
>>>
>>> 2011/7/9 Martin Peach <martin.peach at sympatico.ca
>>> <mailto:martin.peach@**sympatico.ca <martin.peach at sympatico.ca>>>
>>>
>>>
>>>    On 2011-07-09 08:48, Pierre Massat wrote:
>>>
>>>        UPDATE : comport is now working as expected, and my arduino uno
>>>        board is
>>>        now friends with my USB soundcard.
>>>
>>>
>>>    So what was the problem?
>>>
>>>
>>>
>>>        I guess it's high time i started reading the first volume of
>>>        Harry Potter.
>>>
>>>
>>>    Maybe read some Crowley about banishing daemons before plugging in...
>>>
>>>    Martin
>>>
>>>
>>>        Pierre
>>>
>>>        2011/7/9 Ingo <ingo at miamiwave.com <mailto:ingo at miamiwave.com>
>>>        <mailto:ingo at miamiwave.com <mailto:ingo at miamiwave.com>>>
>>>
>>>
>>>
>>>            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 at iem.at <mailto:pd-list-bounces at iem.at**>
>>>        <mailto:pd-list-bounces at iem.at <mailto:pd-list-bounces at iem.at**
>>> >__>
>>>            [mailto:pd-list-bounces at iem.at
>>>
>>>        <mailto:pd-list-bounces at iem.at**> <mailto:pd-list-bounces at iem.at
>>>        <mailto:pd-list-bounces at iem.at**>__>] Im
>>>
>>>            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 at iem.at <mailto:Pd-list at iem.at> mailing list
>>>
>>>        UNSUBSCRIBE and account-management ->
>>>        http://lists.puredata.info/__**listinfo/pd-list<http://lists.puredata.info/__listinfo/pd-list>
>>>        <http://lists.puredata.info/**listinfo/pd-list<http://lists.puredata.info/listinfo/pd-list>
>>> >
>>>
>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110709/d1af9e0f/attachment.htm>


More information about the Pd-list mailing list