Pages: [1]   Go Down
Author Topic: Arduino Wifi to Android Processing!  (Read 1485 times)
0 Members and 1 Guest are viewing this topic.
Derbyshire
Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,


I am trying to present data on my android devise from a arduino wifi server.


In more detail - I am having trouble getting android processing to read my server data.

I can do this with no problems with normal processing, the step to android processing seems difficult. (the lack of libraries and such with android make it more troublesome)


My server data is a message structured as a constant stream (for now) as:  "R,0,1,R,0,1,R,0,1,R,0"...etc
The server is on a given port and IP.


How can I read this into android processing from this IP?

What is the best way for my android devise to understand the server data?

It is probably one line of code I am missing, such as a byte read?


I have been looking at oscP5 libraries but I do not know how to structure a oscP5 message on arduinos side of things.

I can set up communications between my android devise (android processing) and my PC (normal processing) with oscP5. But not with arduino.


In summary: When i manage to read some sensor values (from my wifi server) in android processing - I will be very happy smiley


Apologies for the fragmented structure to this post, i guess it shows the thought path newbies like myself take.


Any recommendations will be much appreciated.



Many thanks,
« Last Edit: October 16, 2012, 01:17:00 pm by Wi11turner » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 547
Posts: 45982
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you have an Arduino question?
Logged

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

In response:


How can i integrate the oscP5/netP5 library into arduino?



many thanks,
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 547
Posts: 45982
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
How can i integrate the oscP5/netP5 library into arduino?
Got a link to the library you want to integrate?
Logged

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

http://www.sojamo.de/libraries/oscP5/


Thanks PaulS,
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 547
Posts: 45982
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That code is written in Java. You'd need to rewrite it in C++. Not an impossible job, but not trivial, either.

Whether it would even fit on an Arduino is another question.
Logged

Pages: [1]   Go Up
Jump to: