Tethering with Android device

Discussion about the upcoming YellowJacket (WiFi+Arduino mini).

Tethering with Android device

Postby stimp » Sat Jul 31, 2010 10:06 am

I'm looking for a solution to connect my yellowjacket device on-the-go to the web using tethering. I have a (rooted) android device (G1) which can provide a wifi ad-hoc access point. Connecting with my laptop works well.

When I try to use the yellowjacket running the webserver sample I will not connect. I create an open network with my phone, and set the yellowjacket on ad-hoc modus. However when I start the program the yellowjacket creates it own ad-hoc network with the same SSID of the android network, instead of connecting to it.

Also I find debugging this very tricky, are there functions available in the webserver sketch which can print an output?
stimp
 
Posts: 2
Joined: Sat Jul 31, 2010 9:59 am

Re: Tethering with Android device

Postby GregEigsti » Tue Aug 03, 2010 11:42 am

Also I find debugging this very tricky, are there functions available in the webserver sketch which can print an output?

There is a WiServer function name EnableVerboseMode (or something like that) which causes WiServer to print out some informative data; I believe that this is part of the WiServer sample sketches.

You can try adding your own Serial.println()'s to the code to get an indication, via the Arduino serial monitor, as to what is happening. Beware that Serial.println() will only work if included in a cpp file (have not tried it in a header included by a cpp file). This should be ok as the WiServer code lives in a cpp file. If you are trying to do the same for a function that lives in a c file you can temporarily move the c file function into a cpp (or pde) file and wrap it in an extern "C" block. Another thing that I have done is something like this...
Code: Select all
// function in .c file
void myFunc()
{
   // do something
   myPrint("message");
}

// function in .pde file
void myPrint(char* msg)
{
   Serial.println(msg);
}


As far as the Android question goes I have no earthly idea as I am not an Android user.

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: Tethering with Android device

Postby rock » Thu Nov 11, 2010 8:50 am

In testing ad-hoc connections to a WiServer webpage, I found that Android does not normally support ad-hoc connections. Even though the laptop works, there may still be some aspect of the ad-hoc mode that is not quite robust enough to work. I have a feeling this one is going to be an uphill battle. :-(
rock
 
Posts: 13
Joined: Tue May 25, 2010 11:33 pm


Return to YellowJacket

Who is online

Users browsing this forum: No registered users and 1 guest