Help Wifly Command Mode Can Not Enter

29 Jan 2012

Wifly module command mode

I have connected up the mbed to the sparkfun.com breakout board. RX TX on pins 9 & 10.

I am using the code below to try and get the wifly into command mode. But every time it just ignores me and trys to connect to its default network. I am can not see what I have done wrong. There is a typical trace from the Tera Term window below also.

Try as I might I can not get Wifly to go into command mode, it seams to ignore $$$.

Do I need to send an end line character? Is there a reason I would not get back CMD?

WiFly Ver 2.23, 04-26-2011 on 131C83

MAC Addr=00:06:66:13:d5:a0

Auto-Assoc roving1 chan=0 mode=NONE FAILED

*READY*

Auto-Assoc roving1 chan=0 mode=NONE FAILED

#include "mbed.h"

Serial pc(USBTX, USBRX);
Serial wifi(p9,p10);

int main() {
    
    pc.printf("Test Wifly!\r\n");

    while (1) 
    {
        if (pc.readable())
        {
            wifi.putc(pc.getc());
        }
        if (wifi.readable())
        {
            pc.putc(wifi.getc());
        }
    }
}
22 Mar 2012

If you go to roving networks site and download both the user manual and the RN-XV Data Sheet it will help. Here you will see that you can configure all the internal settings. In order to do this you should set pin 8= hi on wifly then you can telnet into it to change all the settings. Ive attached a word docukent with some more hints. Good luck. /media/uploads/GregMartin/sweeeeeeeeet.doc

-deleted-
11 Jul 2012

you may have connected the Rx/Tx pins incorrectly, happens quite often

-deleted-
11 Jul 2012

you may have connected the Rx/Tx pins incorrectly, happens quite often

11 Aug 2012

James, hope this helps..... This code works for me every time... Remember, the wifly is 9600baud by default... I forget what the mbed defaults to...=/

#include "mbed.h"
 
void wiFly_Config(){
    ser_wifly.baud(9600);
    wait(3);
    ser_wifly.printf("\r\n\r\n");
    pc.printf("         Entering command mode on wifly device...\n");
    ser_wifly.printf("$$$");
    wait(0.50);
    pc.printf("        Loading configuration file...\n");
    ser_wifly.printf("load myConfig\r\n");
    wait(0.50);
    pc.printf("         Retreiving current time from NTP server...\n");
    ser_wifly.printf("time\r\n");
    wait(2);
    ser_wifly.printf("show time\r\n");
    pc.printf("        Exiting wifly command mode.....\n");
    ser_wifly.printf("exit\r\n");
    wait(0.50);
}
29 Jun 2014

I'm trying to extract the best troubleshooting practices and put them on the Cookbook - WiflyInterface page. Check that out and if you have something that should be added/revised, let me know.