How about a OSC Sketch ?

Discussion about any of the included sketches (i.e. WebServer), or user-generated applications.

Re: How about a OSC Sketch ?

Postby DMCC » Sun May 30, 2010 11:43 pm

gsxrex wrote:This is definitely something that's on our radar. We also want to take a look at just doing iPhone app development in general (I've put in a request to get in the developer's program).


Hi
Have you had any luck with the OSC work or iPhone app interface. I would be interested in contributing towards a prize for this sort of development.

Thanks
DMCC
 
Posts: 2
Joined: Sun May 02, 2010 2:53 am

Re: How about a OSC Sketch ?

Postby cpmpercussion » Tue Jun 22, 2010 6:42 am

GOSH. I haven't checked this board for ages, but we still don't have an OSC app. I think it's time to SORT IT OUT.

A quick google search brings up this new development:
http://github.com/bzztbomb/WiShieldOSC

bzztbomb's code is an arduino sketch that will RECEIVE osc messages. Yes, it really works (port: 12344).

However, it doesn't SEND. And I want both!!

Having a look at it, it seems bzztbomb has taken the example UDP sketch from the WiShield source and combined it with recotana's well-known code for the ethernet shield (http://recotana.com/recotanablog/?page_id=222).

The relevant bits he's taken are the OSCMessage class and OSCDecoder class.

Now, I need to SEND, i.e. start to get recotana's OSCClient and OSCEncoder classes going. So, I'll keep working on that front.

Anybody got any suggestions?

Cordially,

Charles
cpmpercussion
 
Posts: 2
Joined: Tue Jun 22, 2010 6:22 am

Re: How about a OSC Sketch ?

Postby GregEigsti » Tue Jun 22, 2010 7:49 am

Anybody got any suggestions?

Keep up your investigation and post your working code! There are lots of folks who would really appreciate it!

Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: How about a OSC Sketch ?

Postby mpinner » Fri Jun 25, 2010 12:29 pm

@Charles great find!
I was heading this very line but integrating osc into the udp example. I'm mostly interested in send osc from the wishield, so i'll get to work on that too.

thanks, matt
mpinner
 
Posts: 5
Joined: Tue Apr 27, 2010 11:21 am

Re: How about a OSC Sketch ?

Postby bzztbomb » Thu Jul 01, 2010 11:10 am

Hey guys,

My friend Hans told me you guys found my code. I did the quick hackjob that is WiShieldOSC. For the project that we were working on, we only needed receive of OSC messages, so that's all I implemented. To implement OSC send I'll give you some hazy notes (it's been a little while since I've worked with the code):

1. You'll want to grab the OSCEncoder class to build the OSC packet (just to save time on writing that code yourself.)
2. You'll want to ignore the OSCClient class and just implement the UDP code yourself. If I recall, the WiSheid UDP example does send a message out, so you should be able to take the output of the OSCEncoder class and send the output.

Random notes in general:
1. Due to the way the uIP stack works, the first IP that hits the WiShield UDP receive port is the only one that will work. You can't hit that port again with a different IP. It'd be pretty easy to modify uIP to fix this, but we didn't need it in the shortterm.
2. I think the UDP example would be a bit easier to grasp if the init was changed to this:

struct uip_udp_conn *c;
c = uip_udp_new(NULL, HTONS(0));

Then it'd use the ip stored in the connection to figure out what ip to send the response UDP packet to.

I meant to try this all out, but I ran out of time (and the returned Arduino with the 3.3v..heh). I hope this scattershot of info is helpful to ya'll.
bzztbomb
 
Posts: 2
Joined: Thu Jul 01, 2010 10:58 am

Re: How about a OSC Sketch ?

Postby mpinner » Thu Jul 01, 2010 12:59 pm

@bzztbomb, you are da bomb! Yes, this is great info.

thanks for the pointers for enhancing your work and explaining some of the udp/port/ip anomalies. These were definitely throwing me for a loop when i last dug in.

regards, @mpinner
mpinner
 
Posts: 5
Joined: Tue Apr 27, 2010 11:21 am

Re: How about a OSC Sketch ?

Postby bzztbomb » Thu Jul 01, 2010 6:42 pm

Just for kicks, I updated the repo here (http://github.com/bzztbomb/WiShieldOSC) with what I think the OSCSend code would look like. I don't have hardware to test this, so it probably won't work out of the box. But it should be hackable into something that does work pretty easily.
bzztbomb
 
Posts: 2
Joined: Thu Jul 01, 2010 10:58 am

Re: How about a OSC Sketch ?

Postby Flipo » Tue Jul 06, 2010 2:23 pm

This is great thanks !

Any word if it would be easy to allow multiple clients to connect as stated earlier ? Having only one device bind to the port is quite limiting... Thanks !
Flipo
 
Posts: 16
Joined: Fri Apr 23, 2010 9:18 am

Re: How about a OSC Sketch ?

Postby cpmpercussion » Sun Jul 11, 2010 5:38 pm

thx bzztbomb!

I might get around to looking at this some more soon. A lot of uip stuff to learn....

--C
cpmpercussion
 
Posts: 2
Joined: Tue Jun 22, 2010 6:22 am

Re: How about a OSC Sketch ?

Postby armatronix » Tue Jul 13, 2010 3:11 pm

CAN YOU PLEASE MAKE IT SO IT CAN RECEIVE MIDI INTO THE ARDUINO AND OUTPUT OSC BACK TO THE PHONE OKTHX.
armatronix
 
Posts: 3
Joined: Tue Mar 16, 2010 11:13 am

PreviousNext

Return to Sketches and Applications

Who is online

Users browsing this forum: No registered users and 1 guest

cron