[PD] problem with connecting to Arduino

rolfm at dds.nl rolfm at dds.nl
Fri Apr 24 19:34:17 CEST 2020


Martin Peach schreef op 24-04-2020 18:51:
> On Fri, Apr 24, 2020 at 10:40 AM <rolfm at dds.nl> wrote:
>> 
>> i've been working with the Arduino UNO and Pd for years.
>> now i'm starting with a new board UNO Wifi Rev2.

>> 
>> the board works with the Arduino IDE, also with the IDE's serial 
>> monitor.
>> 
>> the problem with Pd is in the initialization.
>> 
>> when the board is powered on and i open the port in Pd, nothing 
>> happens. no 'hello world' or whatever comes through, no lights on the 
>> board show any activity.
>> 
>> [comport] doesn't give any error message.
>> 
>> when i close the port in Pd, go to the IDE, start the serial monitor, 
>> the board comes alive, spits out the text.
>> closing the IDE, opening the port in Pd again, dadada, the text shows 
>> up.
>> as long as the board stays plugged in, the communication gives no 
>> problems.
>> 
>> in Windows 10 the port for a 'regular' UNO appears as "Arduino UNO 
>> (COM5)".
>> the new board as "mEDBG Virtual COM Port (COM4)".
>> 
>> is it possible that [comport] fails to initialize this particular 
>> type?
>> 
> 
> It's the OS that operates the port, so that's not the problem since it
> works OK in the IDE. Maybe you are sending something to the arduino
> right at startup? This causes the arduino to appear to freeze, as it's
> triggered the bootloader which is now waiting for you to upload a
> program to it.
> Also, you can send the [info( message to [comport] to get a status
> report via its right outlet.
> 
> 
> Martin

(with the regular UNO this behavior doesn't happen)
i'm not sending anything at startup.
this is what [info) gives:

print: open 1
print: port 5
print: baud 9600
print: dsr 0
print: cts 0
print: parity 0
print: stop 1
print: data 8
print: rtscts 0
print: xonxoff 0
print: hupcl 1
print: rxerrors 0

@antoine

(in use) means this is the port [comport] is connected to.

when i switch to the other Arduino on port 5 [devices) gives:
4 - COM4 (free)
5 - COM5 (in use)

rolf





More information about the Pd-list mailing list