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?
rolf
what does:
[devices( | [comport]
return ?
Antoine Rousseau http://www.metalu.net http://metalu.net __ http://www.metaluachahuter.com/ http://www.metaluachahuter.com/compagnies/al1-ant1/
Le ven. 24 avr. 2020 à 16:38, rolfm@dds.nl a écrit :
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?
rolf _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
4 - COM4 (in use)
Antoine Rousseau schreef op 24-04-2020 17:40:
what does:
[devices( | [comport]
return ?
Antoine Rousseau
http://www.metalu.net [1] __ http://www.metaluachahuter.com/ [2]Le ven. 24 avr. 2020 à 16:38, rolfm@dds.nl a écrit :
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?
rolf _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
[1] http://metalu.net [2] http://www.metaluachahuter.com/compagnies/al1-ant1/
does "In use" mean that it's the one currently opened by comport, or does it mean that it's already used by someone else? here on Linux I'm unable to trigger the "in use" display, whether I open my device with comport or from another application (but it's not the same device).
Le ven. 24 avr. 2020 à 17:53, rolfm@dds.nl a écrit :
4 - COM4 (in use)
Antoine Rousseau schreef op 24-04-2020 17:40:
what does:
[devices( | [comport]
return ?
Antoine Rousseau http://www.metalu.net http://metalu.net __ http://www.metaluachahuter.com/ http://www.metaluachahuter.com/compagnies/al1-ant1/
Le ven. 24 avr. 2020 à 16:38, rolfm@dds.nl a écrit :
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?
rolf _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On Fri, Apr 24, 2020 at 10:40 AM rolfm@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
Martin Peach schreef op 24-04-2020 18:51:
On Fri, Apr 24, 2020 at 10:40 AM rolfm@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
On Fri, Apr 24, 2020 at 1:34 PM rolfm@dds.nl wrote:
Martin Peach schreef op 24-04-2020 18:51:
On Fri, Apr 24, 2020 at 10:40 AM rolfm@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.
...
(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
Here I get the same thing with a functional device except I have cts
You could try sending [dtr 1( or [rtscts1( and [rts 1( to see if it wants some hanshaking.
Martin
Martin Peach schreef op 24-04-2020 19:44:
On Fri, Apr 24, 2020 at 1:34 PM rolfm@dds.nl wrote:
Martin Peach schreef op 24-04-2020 18:51:
On Fri, Apr 24, 2020 at 10:40 AM rolfm@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.
...
(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
Here I get the same thing with a functional device except I have cts
- Do you get that with the UNO?
You could try sending [dtr 1( or [rtscts1( and [rts 1( to see if it wants some hanshaking.
Martin
wow, [dtr 1( did the trick! what does it mean? can i do this also when there's no problem like with the regular UNO? (because the Pd patches are running on different machines with different boards)
@antoine i was wrong about (in use) when 2 Pd's have a comport connection [info( gives this: 4 - COM4 (in use) 5 - COM5 (in use)
rolf
On Fri, Apr 24, 2020 at 2:22 PM rolfm@dds.nl wrote:
Martin Peach schreef op 24-04-2020 19:44:
On Fri, Apr 24, 2020 at 1:34 PM rolfm@dds.nl wrote:
Martin Peach schreef op 24-04-2020 18:51:
On Fri, Apr 24, 2020 at 10:40 AM rolfm@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.
...
(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
Here I get the same thing with a functional device except I have cts
- Do you get that with the UNO?
You could try sending [dtr 1( or [rtscts1( and [rts 1( to see if it wants some hanshaking.
Martin
wow, [dtr 1( did the trick! what does it mean?
Old-style RS-232 ports had handshaking lines in pairs RTS/CTS (ready-to-send/ clear-to-send) and DTR/DSR (data-terminal-ready/ data-set-ready) that were used to control the modem data flow. It seems that some USB drivers also use these signals even though they are not implemented as physical circuits.
can i do this also when there's no problem like with the regular UNO?
It should be harmless.
Martin