Pages: [1]   Go Down
Author Topic: Serial Port will not go into command mode after entering $$$  (Read 1087 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13705
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

post your code ?
Logged

Rob Tillaart

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

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

Code:
#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()
{
}
Logged

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

Would I need to connect the two pins RX and TX?
Logged

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

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

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13705
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


should

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

not be

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

Rob Tillaart

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

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

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.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13705
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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

Rob Tillaart

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

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

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.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13705
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-wink

what is the goal of your project?
what are your requirements?
Logged

Rob Tillaart

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

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

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.
Logged

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

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

Pages: [1]   Go Up
Jump to: