Arduino OSC: Recieving data from bluetooth (processing).

Hi all. In my quest to find a way to send data from Processing for Android TO Arduino I came across the OSC library from CNMAT. I would like to ask if someone could help me with sending data from processing oscP5 to Arduino?
Or more basically, how do I read data coming into the arduino serial port using OSC....
Its doing my head in..
Thanks,
Steve.
:~

Basically you convert an OSC message into serial for the arduino to read with processing. An OSC message looks a bit like a URL with a blob of data on the end. You parse that data with processing and send it to the serial port.depending on what you have you might also have to send the last few bits of the URL like address as well.
Then at the arduino end you see what you have recieved and call the appropriate function, that is a function that does what you want.

Hi Mike and thankyou for helping with my problem. Im not using WIFI or ehternet but am using a bluetooth module (HC05.) I've managed to get Android (Im using Processing for Android and Ketai Library) sending out data from a dial like this:

void knob(int val)
{
  if (isConfiguring)
  return;
  
  OscMessage knobsend=new OscMessage("/knob1");  // knob message name
  int knobv=val;//one.getValue();    // get the value of the knob as it is turned
  //int value=byte(val);
knobsend.add(knobv);  // add the value of the knob to the OSC message
 bt.broadcast(knobsend.getBytes());     // broadcast the value 
  background(0,0,knobv);    // change the color of the background screen (operational check)
}

The knob data comes from a ControlP5 knob and is sent out serially using oscP5 /Ketai...I can get arduino to read it (sort of, by using the OSC library SLIPstream serial port in the Arduino sketch). What happens is that when I move the knob on the Android screen the Arduino Serial port prints out a list of numbers and then the last number in the print out is the value that the knob is currently at... But Im a bit unsure as to how to set up Arduino OSC to read the "/knob1" so it can call a function to load a variable with the knobs' value..... :s
Is it matching I must use?? If so, how do I set it up. I am reading through the info given by http://cnmat.berkeley.edu/book/export/html/11389 but am still a bit vague....

I have only ever used OSC by itself and not using any "helpful" libary. Post what arduino code you have and say what it gives you.