XML Feeds

.

[maxmsp] [mxj net.udp.send] to accept raw data (Art-Net development)

volker böhm vboehm at gmx.ch
Mon Nov 5 15:40:51 MST 2007


Philippe, Eric,
i had the same issue some time ago and could not find a way to send/ 
receive raw bytes to/from a microcontroller
using mxj net.udp.*
so i made some classes that use DatagramSocket and DatagramPacket to  
send/receive byte-buffers.
don't know what's going wrong with your examples, eric, but i didn't  
notice any dropped packets.

if anybody is interested, you can find my early attempts here:
http://www.esbasel.ch/Downloads/UdpSend+RecvRaw.zip

my java knowledge is still quite limited... so any comments on how to  
improve those are welcome.
volker.



On 02 Nov 2007, at 02:59, Eric Singer wrote:

> I'm having a big problem with this now. I need to send binary data  
> to a non-Max receiver. I recoded net.udp.send simply to accept  
> ints, put them in a DatagramPacket and send them on a  
> DatagramSocket. Unfortunately, there appears to be a Java bug that  
> causes it to drop packets every so often. I've only tested on my PB  
> G4 Aluminum, in 10.3.9, but plan to test on another machine to see  
> if I get different results.
>
> Any other insight would be greatly appreciated.
>
> Eric
>
> At 12:48 AM +0100 10/29/07, Philippe Montemont wrote:
>> Hello List,
>>
>> Is there a way that [mxj net.udp.send] and [mxj net.udp.recv] send  
>> or receive data as raw-bytes (binary 0-255), as aka.datagram does?
>> My problem is that I need to send/receive a list of 530 items and  
>> aka.datagram does not support this list size...
>> Any ideas?
>> Thanks very much for help.
>> Philippe_______________________________________________


More information about the maxmsp mailing list