Loading...
Pages: 1 [2]   Go Down
Author Topic: TouchOSC via Ardosc/Bonjour  (Read 1398 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 5
Posts: 194
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

replace the :
Code:
  wert=value;
  Serial.println(wert);
with:
Code:
  Serial.print("Value = : ");
  Serial.println(value);

And see what that does. That works in the example code I wrote. It's a bit shooting in the dark, however, if that works you've accomplished 2 things.

1. You know your openFrameworks code sends a valid float.
2. You know where the problem is in the Arduino code.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

mh, only alive! in serial monitor. Nothing besides that.

i wonder if this has something to do with library problems, i had an ArdOSC library that was written for the Watterod RedFly wifi shield and i reinstalled this one for the Ethernet board to test the connection. mh but I removed the RedFly ArdOSC folder in my library path to avoid trouble... i think it's a very small problem. all the ports and ip settings seem to be okay. frustrating
« Last Edit: January 08, 2013, 07:57:25 pm by Nixon123 » Logged

Offline Offline
Full Member
***
Karma: 5
Posts: 194
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What Arduino board are you using ?

I am asking because my sample code specifies :

Code:
Serial.begin(115200);

On an Arduino Uno for example that would not work and I'd start with :

Code:
Serial.begin(9600);

And don't forget to change that in the serial monitor as well ;-)

Also, perhaps, if your board has an LED pin you may want to start getting to turn the LED on and off. Then at least you know that you can send an receive a value.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Seems all to be ok, it's an arduino ethernet board i program with an usb2serial light adapter, the proper board is selectet,  the baudrates are the same. i just read that the build in led is on pin 9, i'm going to test if i can cahnge something, tried it before with an external led, but no luck.
« Last Edit: January 08, 2013, 08:43:00 pm by Nixon123 » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


First, I'm very thankful for your help, great community here.
Second, I solved it  smiley or to be precise someone pointed me to a problem with the ofxOsc library and bundled osc messages, so it was related to Open Frameworks. Here is the link for everyone who runs into the same issues and stumbles over this thread
http://forum.openframeworks.cc/index.php/topic,6563.0.html

so long, nixon
Logged

Offline Offline
Full Member
***
Karma: 5
Posts: 194
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool! Thanks for posting the openFrameworks part of it too. It's often ant these software interfaces where one gets stuck.

Or in Obi Wan's words "Be mindful of the Interface Luke'"  smiley-mr-green
Logged


Pages: 1 [2]   Go Up
Print
 
Jump to: