I am trying to write data from Pd to Arduino. Has anyone used
[comport] to write out serial data before? Any example patches? I
can only get TX_OVERRUNS errors.
.hc
http://at.or.at/hans/
used it fine many a time,
I did get weird TX errors on one particular machine, and not since...
It was a fedora core2, on a asus p4c800 machine.. I never figured out why, I may have sent a message to the pd-list about it way back...
What OS/machine you doing this on?
.b.
On Mon, April 24, 2006 2:52 pm, Hans-Christoph Steiner said:
I am trying to write data from Pd to Arduino. Has anyone used [comport] to write out serial data before? Any example patches? I can only get TX_OVERRUNS errors.
.hc
http://at.or.at/hans/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Sorry for the super brief message, I was being forced out by the
museum security as I was writing this. Its on Windows that I am
doing this. Receiving data from Arduino works great, but on the same
connection, anything I send gives the error, even just clicking one
message box like [56(
But I am not sure its not in the Arduino code yet.
.hc
On Apr 24, 2006, at 9:46 PM, B. Bogart wrote:
used it fine many a time,
I did get weird TX errors on one particular machine, and not since...
It was a fedora core2, on a asus p4c800 machine.. I never figured
out why, I may have sent a message to the pd-list about it way back...What OS/machine you doing this on?
.b.
On Mon, April 24, 2006 2:52 pm, Hans-Christoph Steiner said:
I am trying to write data from Pd to Arduino. Has anyone used [comport] to write out serial data before? Any example patches? I can only get TX_OVERRUNS errors.
.hc
http://at.or.at/hans/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
News is what people want to keep hidden and everything else is
publicity.
- Bill Moyers
Just sending numbers into comport works fine .You just have to make sure to open the correct serial port to avoid the TX_OVERRUNS errors, that is the one you assigned in the arduino MENU:TOOLS: serial port...
|devicename /dev/tty.usbserial-4B32[ or something similar.
hope that helps, adrian
On 4/24/06, Hans-Christoph Steiner hans@eds.org wrote:
I am trying to write data from Pd to Arduino. Has anyone used [comport] to write out serial data before? Any example patches? I can only get TX_OVERRUNS errors.
.hc
http://at.or.at/hans/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Mon, 24 Apr 2006, Hans-Christoph Steiner wrote:
I am trying to write data from Pd to Arduino. Has anyone used [comport] to write out serial data before? Any example patches? I can only get TX_OVERRUNS errors.
If CTS/RTS pins aren't connected properly then the computer's UART might be supposing that the device is not there and so it will accumulate data until the buffer overflows, a situation which gets trapped and becomes a TX_OVERRUNS.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
On Apr 25, 2006, at 4:23 PM, Mathieu Bouchard wrote:
On Mon, 24 Apr 2006, Hans-Christoph Steiner wrote:
I am trying to write data from Pd to Arduino. Has anyone used
[comport] to write out serial data before? Any example patches? I can only
get TX_OVERRUNS errors.If CTS/RTS pins aren't connected properly then the computer's UART
might be supposing that the device is not there and so it will accumulate
data until the buffer overflows, a situation which gets trapped and
becomes a TX_OVERRUNS.
No data ever gets thru when writing to the serial port, and on
reading works fine as it is. So I don't think CTS/RTS is required.
Its not used on GNU/Linux or Mac OS X.
.hc
"The arc of history bends towards justice."
- Dr. Martin Luther King,
Jr.
Could you post the Arduino Code you implemented ?
Sylvain
Hans-Christoph Steiner a écrit :
On Apr 25, 2006, at 4:23 PM, Mathieu Bouchard wrote:
On Mon, 24 Apr 2006, Hans-Christoph Steiner wrote:
I am trying to write data from Pd to Arduino. Has anyone used [comport] to write out serial data before? Any example patches? I can only get TX_OVERRUNS errors.
If CTS/RTS pins aren't connected properly then the computer's UART might be supposing that the device is not there and so it will accumulate data until the buffer overflows, a situation which gets trapped and becomes a TX_OVERRUNS.
No data ever gets thru when writing to the serial port, and on reading works fine as it is. So I don't think CTS/RTS is required. Its not used on GNU/Linux or Mac OS X.
.hc
"The arc of history bends towards justice." - Dr. Martin Luther King, Jr.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I am here working with David Cuartielles and some of his students, so
I think he can write good Arduino code ;). The network is down, and
I am on my Mac, so I don't have the exact code.
We've tried a number of different programs and setups, and a couple
different boards and computers. Even the basic program which just
relays the data received back to the serial port doesn't work. Data
is not coming out of the serial port from Pd.
Have you successfully written to the serial port on Windows using
[comport]?
.hc
On Apr 25, 2006, at 6:08 PM, Sylvain wrote:
Could you post the Arduino Code you implemented ?
Sylvain
Hans-Christoph Steiner a écrit :
On Apr 25, 2006, at 4:23 PM, Mathieu Bouchard wrote:
On Mon, 24 Apr 2006, Hans-Christoph Steiner wrote:
I am trying to write data from Pd to Arduino. Has anyone used
[comport] to write out serial data before? Any example patches? I can
only get TX_OVERRUNS errors.If CTS/RTS pins aren't connected properly then the computer's
UART might be supposing that the device is not there and so it will
accumulate data until the buffer overflows, a situation which gets trapped and
becomes a TX_OVERRUNS.No data ever gets thru when writing to the serial port, and on
reading works fine as it is. So I don't think CTS/RTS is
required. Its not used on GNU/Linux or Mac OS X..hc
"The arc of history bends towards justice." - Dr. Martin Luther
King, Jr.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
"[W]e have invented the technology to eliminate scarcity, but we are
deliberately throwing it away to benefit those who profit from
scarcity."
-John Gilmore
Hans-Christoph Steiner wrote:
I am here working with David Cuartielles and some of his students, so I think he can write good Arduino code ;). The network is down, and I am on my Mac, so I don't have the exact code.
We've tried a number of different programs and setups, and a couple
different boards and computers. Even the basic program which just
relays the data received back to the serial port doesn't work. Data is not coming out of the serial port from Pd.Have you successfully written to the serial port on Windows using
[comport]?
I'm on Windows XP and we use [comport] to let pd communicate with a motion tracker. We use a modified [comport] object made by IEM guys. You can download our version from http://iem.at/~majdak/download/pd/ It tested and stable for Windows 2000/XP.
Winnie/IOHannes: do you want to merge your version of [comport] with ours?
br, Piotr
On Apr 26, 2006, at 11:44 AM, IOhannes m zmoelnig wrote:
Piotr Majdak wrote:
Winnie/IOHannes: do you want to merge your version of [comport]
with ours?yes :-)
i thought wini already did this...
I don't think he did. I have been debugging [comport] writing on
Windows, and got it working. I'll take a look at this version and
assemble all of the changes and commit it. Wini said it was ok for
me to commit my Mac OS X changes to comport.c, so I think it should
be ok if I commit these Windows changes too, right?
.hc
News is what people want to keep hidden and everything else is
publicity.
- Bill Moyers
On Apr 26, 2006, at 11:07 AM, Piotr Majdak wrote:
Hans-Christoph Steiner wrote:
I am here working with David Cuartielles and some of his students,
so I think he can write good Arduino code ;). The network is
down, and I am on my Mac, so I don't have the exact code. We've tried a number of different programs and setups, and a
couple different boards and computers. Even the basic program
which just relays the data received back to the serial port
doesn't work. Data is not coming out of the serial port from Pd. Have you successfully written to the serial port on Windows using
[comport]?I'm on Windows XP and we use [comport] to let pd communicate with a
motion tracker. We use a modified [comport] object made by IEM
guys. You can download our version from http://iem.at/~majdak/ download/pd/ It tested and stable for Windows 2000/XP.Winnie/IOHannes: do you want to merge your version of [comport]
with ours?
Piotr,
It looks like you properly implemented the asynchronous writing/
OVERLAPPED stuff, but you also changed the comment characters from /*
*/ to //. That makes it quite hard to read the diff output.
Could you create a diff file of only the relevant changes against the
CVS version?
.hc
"I have the audacity to believe that peoples everywhere can have
three meals a day for their bodies, education and culture for their
minds, and dignity, equality and freedom for their spirits."
- Martin Luther King, Jr.
ola,
i think David and Alex did some succesful use of Arduino and pd on windows and linux in the Arduino workshop they organised in la hangar, bcn. ( we had 4 working in the pd workshop we did last month ).
well, in any case, the contacts are :
alex posada ( www.nice-noise.org ) : alex@nice-noise.org lluis gomez i bigorda ( www.artefacte.org ) : lluis@artefacte.org
if that can help.. i never programmed arduino myself..
saludos, sevy
Hans-Christoph Steiner wrote:
I am here working with David Cuartielles and some of his students, so
I think he can write good Arduino code ;). The network is down, and
I am on my Mac, so I don't have the exact code.We've tried a number of different programs and setups, and a couple
different boards and computers. Even the basic program which just
relays the data received back to the serial port doesn't work. Data
is not coming out of the serial port from Pd.Have you successfully written to the serial port on Windows using
[comport]?.hc
On Apr 25, 2006, at 6:08 PM, Sylvain wrote:
Could you post the Arduino Code you implemented ?
Sylvain
Hans-Christoph Steiner a écrit :
On Apr 25, 2006, at 4:23 PM, Mathieu Bouchard wrote:
On Mon, 24 Apr 2006, Hans-Christoph Steiner wrote:
I am trying to write data from Pd to Arduino. Has anyone used
[comport] to write out serial data before? Any example patches? I can
only get TX_OVERRUNS errors.If CTS/RTS pins aren't connected properly then the computer's UART might be supposing that the device is not there and so it will
accumulate data until the buffer overflows, a situation which gets trapped and
becomes a TX_OVERRUNS.No data ever gets thru when writing to the serial port, and on
reading works fine as it is. So I don't think CTS/RTS is
required. Its not used on GNU/Linux or Mac OS X..hc
"The arc of history bends towards justice." - Dr. Martin Luther
King, Jr.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
"[W]e have invented the technology to eliminate scarcity, but we are
deliberately throwing it away to benefit those who profit from
scarcity." -John Gilmore
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Apr 25, 2006, at 5:54 PM, Hans-Christoph Steiner wrote:
On Apr 25, 2006, at 4:23 PM, Mathieu Bouchard wrote:
On Mon, 24 Apr 2006, Hans-Christoph Steiner wrote:
I am trying to write data from Pd to Arduino. Has anyone used
[comport] to write out serial data before? Any example patches? I can
only get TX_OVERRUNS errors.If CTS/RTS pins aren't connected properly then the computer's UART
might be supposing that the device is not there and so it will
accumulate data until the buffer overflows, a situation which gets trapped and
becomes a TX_OVERRUNS.No data ever gets thru when writing to the serial port, and on
reading works fine as it is. So I don't think CTS/RTS is
required. Its not used on GNU/Linux or Mac OS X.
I am pretty sure I have found the problem:
#ifdef WIN2000 0, #else FILE_FLAG_OVERLAPPED, #endif
By default, this object is compiled with the FILE_FLAG_OVERLAPPED
mode, which enables asynchronous writing to the serial port. But
none of the Windows code is written to use the OVERLAPPED struct,
which is required when in async mode. Therefore, no data gets written.
But there is a exceedingly simple solution: remove the WIN2000 hack
all together and just use with sync mode, which is what the code is
doing anyway. But I don't have a Windows machine to test this on
right now, any volunteers?
.hc
"Computer science is no more related to the computer than astronomy
is related to the telescope."
-Edsger
Dykstra
I have successfully written on the serial port to the Arduino board from PD . Some tips:
(usb-serial) driver and not write it?
Tom
On 4/25/06, Hans-Christoph Steiner hans@eds.org wrote:
On Apr 25, 2006, at 5:54 PM, Hans-Christoph Steiner wrote:
On Apr 25, 2006, at 4:23 PM, Mathieu Bouchard wrote:
On Mon, 24 Apr 2006, Hans-Christoph Steiner wrote:
I am trying to write data from Pd to Arduino. Has anyone used [comport] to write out serial data before? Any example patches? I can only get TX_OVERRUNS errors.
If CTS/RTS pins aren't connected properly then the computer's UART might be supposing that the device is not there and so it will accumulate data until the buffer overflows, a situation which gets trapped and becomes a TX_OVERRUNS.
No data ever gets thru when writing to the serial port, and on reading works fine as it is. So I don't think CTS/RTS is required. Its not used on GNU/Linux or Mac OS X.
I am pretty sure I have found the problem:
#ifdef WIN2000 0, #else FILE_FLAG_OVERLAPPED, #endif
By default, this object is compiled with the FILE_FLAG_OVERLAPPED mode, which enables asynchronous writing to the serial port. But none of the Windows code is written to use the OVERLAPPED struct, which is required when in async mode. Therefore, no data gets written.
But there is a exceedingly simple solution: remove the WIN2000 hack all together and just use with sync mode, which is what the code is doing anyway. But I don't have a Windows machine to test this on right now, any volunteers?
.hc
"Computer science is no more related to the computer than astronomy is related to the telescope." -Edsger Dykstra
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list