>-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] >On Behalf Of Ian Smith-Heisters >Sent: 20 October 2004 01:09 >To: Microcontroller discussion list - Public. >Subject: [PIC] Open Sound Control, or TCP, UDP out > > >I'm interested in getting OSC output from a PIC18F452. > >If you're not familiar with OSC, its specification is here: >http://www.cnmat.berkeley.edu/OpenSoundControl/ Basically, it's a >protocol for routing messages to sound applications, like MIDI, but >newer and more versatile. Usually it's transmitted over UDP or TCP. I >could do it over serial, but would eventually like to have it on a LAN. > >So I think I could format data to be OSC compliant, but then >the problem >is sending it over TCP or UDP. What would be the easiest way >to do that? TCP and UDP are only the transport layer, you have not defined the data link/physical layer you want to use, but I assume it's Ethernet? For MIDI-like note control you will want minimal latency, so having the PIC run a full TCP stack may not be suitable, it's a big overhead for a small 8 bit micro and the TCP/IP stack takes a significant amount of CPU time and code/data space. An 18 series PIC running with a high clock speed would probably be up to the task though, depending on what else you want it to do. One of our graduates has been playing with the Wiznet modules and managed to get a system up and running very quickly. The C source code supplied gives a berkley socket interface, making it very easy to port existing Linux code. You will however, require a reasonable knowledge of TCP/IP to use this module. The PIC interface is either an 8 bit parallel port, or I2C. He is using I2C and throughput is predicatbly dire. However, the WIZNET has a 16KB buffer than can be filled and the contents sent at full speed. The parallel bus interface is undoubtedly the one to use for anything requiring higher speed. Have a look at http://www.beyondlogic.org/etherip/ip.htm for some more options. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist