First of all thanks a lot for the "how to ..." links. Now I've got a great problem (maybe it's stupid but I'm not expert). I have to connect an external device to my pc and it has to control an abstraction realized with pd. This device will be connected to pc via serial port. Does exist an abstraction or an external, that could help me to send information throgh the serial port? Riccardo
try [comport] http://pd.iem.at/pdwiki/index.php?ComPort
Ivan
On Tuesday, Jul 29, 2003, at 12:53 Europe/Lisbon, Riccardo Visinoni wrote:
First of all thanks a lot for the "how to ..." links. Now I've got a great problem (maybe it's stupid but I'm not expert). I have to connect an external device to my pc and it has to control an abstraction realized with pd. This device will be connected to pc via serial port. Does exist an abstraction or an external, that could help me to send information throgh the serial port? Riccardo
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 29 Juillet 2003 07:53, Riccardo Visinoni a écrit :
First of all thanks a lot for the "how to ..." links. Now I've got a great problem (maybe it's stupid but I'm not expert). I have to connect an external device to my pc and it has to control an abstraction realized with pd. This device will be connected to pc via serial port. Does exist an abstraction or an external, that could help me to send information throgh the serial port? Riccardo
Hi Riccardo.
To send information through the serial port, a serial external is required. On Linux, I'm aware of two serial externals: "serialctl" by Gunter Geiger, and "comport" by Winfried Ritsch. On Windows, I think there's only "comport". For a previous project, I tried "serialctl" but for some reason it didn't work for me so I had to use "comport".
But "comport" is difficult to use because it sends are receives ascii character codes, one by one in a stream mode. I will soon release a set of externals, called "any2ascii" and "ascii2any", to convert numbers, symbols and lists from and to serial ascii streams. Stay tuned...
Marc
please Marc, let me know when you release your externals they could be useful to realize my external
----- Original Message ----- From: "Marc Lavallée" odradek@videotron.ca To: "Riccardo Visinoni" shivanv@tiscali.it Cc: pd-list@iem.at Sent: Tuesday, July 29, 2003 4:21 PM Subject: Re: [PD] another problem
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 29 Juillet 2003 07:53, Riccardo Visinoni a écrit :
First of all thanks a lot for the "how to ..." links. Now I've got a great problem (maybe it's stupid but I'm not expert). I have to connect an external device to my pc and it has to control an abstraction realized with pd. This device will be connected to pc via serial port. Does exist an abstraction or an external, that could help me to send information throgh the serial port? Riccardo
Hi Riccardo.
To send information through the serial port, a serial external is required. On Linux, I'm aware of two serial externals: "serialctl" by Gunter Geiger, and "comport" by Winfried Ritsch. On Windows, I think there's only "comport". For a previous project, I tried "serialctl" but for some reason it didn't work for me so I had to use "comport".
But "comport" is difficult to use because it sends are receives ascii character codes, one by one in a stream mode. I will soon release a set of externals, called "any2ascii" and "ascii2any", to convert numbers, symbols and lists from and to serial ascii streams. Stay tuned...
Marc
hi list,
i got the gem running on osx, and it works well. however, i get crashes from pd, especially if i switch fast between windows. also i noticed pd taking up to 60% for some simple stuff, after closing the patches window, pd is still taking 60%. does stuff get gc-ed? i did not try audio, because i use sc for that. if i wanted, would i run core audio, jack, or port audio?
greetz and thanks for the work on gem and its osx port,
adrian
Exception: EXC_BREAKPOINT (0x0006) Code[0]: 0x00000001Code[1]: 0x97e1a554
Thread 0 Crashed: #0 0x97e1a554 in -[NSConcreteTask launchWithDictionary:] #1 0x00003c6c in 0x3c6c #2 0x9068c258 in objc_msgSendv #3 0x97dfcd5c in -[NSInvocation invoke] #4 0x97e11468 in -[NSConnection dispatchInvocation:] #5 0x97e08250 in -[NSConnection handleRequest:sequence:] #6 0x97e0d79c in -[NSConnection handlePortCoder:] #7 0x97e0acb4 in -[NSConcretePortCoder dispatch] #8 0x97e00450 in __NSFireMachPort #9 0x9015bd8c in __CFMachPortPerform #10 0x9015bbf8 in __CFRunLoopDoSource1 #11 0x90148c9c in __CFRunLoopRun #12 0x90180f58 in CFRunLoopRunSpecific #13 0x97e05680 in -[NSRunLoop runMode:beforeDate:] #14 0x0000439c in 0x439c #15 0x00002b44 in 0x2b44 #16 0x000029c4 in 0x29c4
PPC Thread State: srr0: 0x97e1a554 srr1: 0x0202f030 vrsave: 0x00000000 xer: 0x20000000 lr: 0x97e1a554 ctr: 0x90014940 mq: 0x00000000 r0: 0x97e1a554 r1: 0xbfffdc80 r2: 0x24002246 r3: 0x00000000 r4: 0x00000000 r5: 0x20000000 r6: 0xbfffd960 r7: 0x20000000 r8: 0x0004a010 r9: 0x000531d0 r10: 0x00000003 r11: 0x000531d0 r12: 0x24002246 r13: 0x00000000 r14: 0x00000000 r15: 0x00000001 r16: 0x00000001 r17: 0x00000000 r18: 0x24002280 r19: 0x00000000 r20: 0x000012e3 r21: 0x00000000 r22: 0x0004a978 r23: 0xbffff814 r24: 0x0005b050 r25: 0x00065970 r26: 0x00000100 r27: 0xbfffdcc0 r28: 0xbfffdcc8 r29: 0xa0008c50 r30: 0x00000100 r31: 0x97e19d6c
hi Marc,
have you considered processing output data with [spell], and merging input with [thresh]->[append 0]->[sprintf %c%c...%c]?
Krzysztof
Marc Lavalle'e wrote: ...
character codes, one by one in a stream mode. I will soon release a set of externals, called "any2ascii" and "ascii2any", to convert numbers, symbols and lists from and to serial ascii streams. Stay tuned...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 29 Juillet 2003 11:31, Krzysztof Czaja a écrit :
have you considered processing output data with [spell], and merging input with [thresh]->[append 0]->[sprintf %c%c...%c]?
My externals are taking care of delimiters (carriage return, linefeed, space, comma or other user defined codes) and also check for invalid characters. It's certainly possible to do the same with fancy patches, but I preferred to address the problem in C with the help of the flext library for portability. It doesn't solve all serial communication issues, but it's a good start.
Marc
hi Marc,
well... of course, there is nothing wrong with using one external instead of another. I was just wondering, if spell & co. would do the job, because I have never used them for that purpose.
Now, however, I also wonder, how comes anobody's patch would have to be more fancy due to a simple [sel <special-char-codes>] in it?
Krzysztof
Marc Lavallée wrote: ...
My externals are taking care of delimiters (carriage return, linefeed, space, comma or other user defined codes) and also check for invalid characters. It's certainly possible to do the same with fancy patches,
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 30 Juillet 2003 09:34, Krzysztof Czaja a écrit :
well... of course, there is nothing wrong with using one external instead of another. I was just wondering, if spell & co. would do the job, because I have never used them for that purpose.
My "any2ascii" external will basically do the same job than spell, but will also add a "end of line" code at the end. I didn't know about "spell", probably because its name is more metaphoric than descriptive; there's so many externals out there that I think we should avoid confusing users with non-descriptive names.
Now, however, I also wonder, how comes anobody's patch would have to be more fancy due to a simple [sel <special-char-codes>] in it?
It's not easy to work with ascii codes; "ascii2any" will rebuild floats, symbols and lists from ascii codes streams, in order to facilitate parsing with a mix of route, sel and similar objects.
Marc
hi again,
Marc Lavallée wrote: ...
"spell", probably because its name is more metaphoric than descriptive; there's so many externals out there that I think we should avoid confusing users with non-descriptive names.
not me to blame, perhaps... (otoh, milk has been spilled for some time already)
It's not easy to work with ascii codes; "ascii2any" will rebuild floats, symbols and lists from ascii codes streams, in order to facilitate parsing with a mix of route, sel and similar objects.
which is what [sprintf %c%c...] does (bit clumsy, for sure)
Krzysztof
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 30 Juillet 2003 10:59, Krzysztof Czaja a écrit :
which is what [sprintf %c%c...] does (bit clumsy, for sure)
It works only for sequences with a fixed length, in a list format.
Marc
no (as clumsy as it is, but) you just have to put an expected maximum number of necessary %c-patterns, then drive it with an [Append 0]
the sequence-to-list converter is [thresh]
k
Marc Lavallée wrote: ...
which is what [sprintf %c%c...] does (bit clumsy, for sure)
...
It works only for sequences with a fixed length, in a list format.