dandycheung / microbridge

Automatically exported from code.google.com/p/microbridge
0 stars 0 forks source link

How can we receive data from the arduino? #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello Inopia,,

nice work..:)
it's work with Samsung ACE GT-S3850!!

if I want scenario ARDUINO -> USB SHIELD -> ANDROID
How can we receive data from the arduino?
Thanks! 

-Han

Original issue reported on code.google.com by suntzu...@gmail.com on 24 Apr 2011 at 1:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I try to listen tcp port using server socket..
but I always fail.
when I connect using putty
I get some error message
ADB EVENT FAILED connection=[tcp:1234]

this some of my code to listen tcp port, 
 try {
              ServerSocket server = new ServerSocket(port);
              Log.d ("Tagserver()","run on port 1234");
              while (true)
              {
              Socket client = server.accept();
              }
            } catch (IOException ex) {
              Log.d ("Tagserver()","test.....");
            }

there's something wrong with my code ?

Sorry,if my question is very silly. I'm newbie in socket programming!!!

thanks,

-han

Original comment by suntzu...@gmail.com on 26 Apr 2011 at 9:38

GoogleCodeExporter commented 9 years ago
Hello. This facility is for reporting bugs. Please don't abuse it by asking for 
help with your projects. Thank you.

Original comment by inopia.s...@gmail.com on 19 Jan 2012 at 9:44