Go Down

Topic: Serial Port will not go into command mode after entering $$$ (Read 1 time) previous topic - next topic

kdwalton

I am trying to use my serial port in the Arduino IDE to set the IP protocol on my Arduino Wifly shield.  When I go to enter "$$$" to place the serial port into command mode, nothing happens.  Any thoughts?

robtillaart

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

kdwalton

Code: [Select]

#include "WiFly.h"

char passphrase[] = "268435459115635028";
char ssid[] = "Verizon AC30 E753";

void setup()
{
  WiFly.begin();
 
  if (!WiFly.join("ssid", "passphrase"))
  {
     // Handle the failure
  }
 
  // Rejoice in your connection
 
  Serial.print("IP: ");
  Serial.println(WiFly.ip());
}

void loop()
{
}


kdwalton

I also tried typing in $$$ into Teraterm and no success.

robtillaart


should

if (!WiFly.join("ssid", "passphrase"))

not be

if (!WiFly.join(ssid, passphrase))
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

kdwalton

Yes, I changed that now but it still does not allow it to connect.  I'm pretty sure I need to change the ip protocol on the wifly shield so that it can connect to the 3G hotspot card but when I enter $$$ into the serial monitor and press enter, nothing happens.

robtillaart


Your code nowhere reads anything from Serial so how should it react?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

kdwalton

I guess I'm just confused as to what I would do with the data (to put it into command mode) once I have read the serial data.

robtillaart

Quote
I guess I'm just confused as to what I would do with the data (to put it into command mode) once I have read the serial data.

How should we know? it is your application ;)

what is the goal of your project?
what are your requirements?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

kdwalton

Currently, I just want to be able to connect my arduino wifly shield to my 3G Wifi Mobile Card.  From the research I have done, it looks like you just have to type "$$$" into the serial monitor and press enter to send it into command mode.  Nothing is mentioned about having code to read from the serial port.

kdwalton

Also, I'm using IDE 0022.  Not sure if that helps at all.

Go Up