# Wifly command mode problem

**URL:** <https://community.sparkfun.com/t/wifly-command-mode-problem/15837>\
**Category:** Wireless & IoT\
**Created:** [May 20, 2010, 7:39am UTC](https://community.sparkfun.com/t/wifly-command-mode-problem/15837 "2010-05-20T07:39:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinlouie](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kevinlouie](https://community.sparkfun.com/u/kevinlouie)\
**Post date:** [May 20, 2010, 7:39am UTC](https://community.sparkfun.com/t/wifly-command-mode-problem/15837/1 "2010-05-20T07:39:57Z")

</div>

Hi Everyone, I’m about to my wits end trying to get my Wifly into command mode, I’m not sure if it’s a software problem, or if its hardware. I’ve tried using Sparkfun’s WiFly Transparent Terminal Sketch [http://www.sparkfun.com/commerce/images … rminal.zip](http://www.sparkfun.com/commerce/images/WiFly_Tutorial_Files/WiFly_Terminal.zip), and the new Arduino Library, in both cases the WiFly just hangs after I get the Bridge initialized successfully message. Below is all that the WiFly every prints to the terminal window.

```auto
WiFly Shield Terminal Routine
Bridge initialized successfully!
WiFly Ver 2.18, 02-02-2010
MAC Addr=00:06:66:00:3a:cf
A

```

I assume that it’s stuck in a loop somewhere since I can’t even input the “$$$”, and I’ve never seen it display CMD. I’ve tried different terminal emulators, both on a Mac and PC, I’ve tried different arduino’s with all the possible sketches that anyone has every posted about, but I still can’t get this to work! Am I missing something? or maybe I just have faulty hardware? Any advice would be greatly appreciated.

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![LMas](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@LMas](https://community.sparkfun.com/u/LMas)\
**Post date:** [May 20, 2010, 8:52am UTC](https://community.sparkfun.com/t/wifly-command-mode-problem/15837/2 "2010-05-20T08:52:36Z")

</div>

Try one more thing in void autoconect somwere add factory RESET

like so

[http://www.sparkfun.com/commerce/images … onnect.zip](http://www.sparkfun.com/commerce/images/WiFly_Tutorial_Files/WiFly_Auto_Connect.zip) download this skech first,

then begining of this

```auto
char autoconnect(void)
{
  // Exit command mode if we haven't already
  SPI_Uart_println("");  
  SPI_Uart_println("exit");
  delay(500);

  // Enter command mode 
  SPI_Uart_print("$$");
  delay(500);

```

change to

```auto
char autoconnect(void)
{
  // Exit command mode if we haven't already
  SPI_Uart_println("");  
  SPI_Uart_println("exit");
  delay(500);

  // Enter command mode 
  SPI_Uart_print("$$");
  delay(500);
  // factory reset 
  SPI_Uart_print("factory RESET");
  delay(500);
  // save
  SPI_Uart_print("save");
  delay(500);

```

let it run for a few second then try transparent terminal([http://www.sparkfun.com/commerce/images … rminal.zip](http://www.sparkfun.com/commerce/images/WiFly_Tutorial_Files/WiFly_Terminal.zip)) skech or unmodiefied auto connet one hope will help

it help me when i coudnt change ports needed factory reset but terminal wasnt sending any commands after this one all working fine so far

---

<div class="post-metadata">

**Author:** ![follower](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@follower](https://community.sparkfun.com/u/follower)\
**Post date:** [May 21, 2010, 1:22pm UTC](https://community.sparkfun.com/t/wifly-command-mode-problem/15837/3 "2010-05-21T13:22:30Z")

</div>

As a pointer for future readers, Kevin posted his solution here: [viewtopic.php?f=13&t=21882](http://forum.sparkfun.com/viewtopic.php?f=13&t=21882)

(Thanks for doing so. 🙂 )

–Philip;

---

<div class="post-metadata">

**Author:** ![Falcon1AB](https://avatars.discourse-cdn.com/v4/letter/f/aeb1de/32.png) [@Falcon1AB](https://community.sparkfun.com/u/Falcon1AB)\
**Post date:** [June 6, 2010, 9:49pm UTC](https://community.sparkfun.com/t/wifly-command-mode-problem/15837/4 "2010-06-06T21:49:07Z")

</div>

> kevinlouie:  
> Hi Everyone, I’m about to my wits end trying to get my Wifly into command mode, I’m not sure if it’s a software problem, or if its hardware. I’ve tried using Sparkfun’s WiFly Transparent Terminal Sketch [http://www.sparkfun.com/commerce/images … rminal.zip](http://www.sparkfun.com/commerce/images/WiFly_Tutorial_Files/WiFly_Terminal.zip), and the new Arduino Library, in both cases the WiFly just hangs after I get the Bridge initialized successfully message. Below is all that the WiFly every prints to the terminal window.
> 
> ```auto
> WiFly Shield Terminal Routine
> 
> ```

Bridge initialized successfully!

WiFly Ver 2.18, 02-02-2010

MAC Addr=00:06:66:00:3a:cf

A

> ```auto
> 
> I assume that it's stuck in a loop somewhere since I can't even input the "$$$", and I've never seen it display CMD. I've tried different terminal emulators, both on a Mac and PC, I've tried different arduino's with all the possible sketches that anyone has every posted about, but I still can't get this to work! Am I missing something? or maybe I just have faulty hardware? Any advice would be greatly appreciated.
> 
> Thanks for the help!
> 
> ```

Hi

I’m just learning how to use the WiFly module. I designed a board with PIC to control it. I managed to connect to command line using hyper terminal. I noticed I could only connect to command line $$$ if GPIO-9 is at hi level 3.3v(ADHOC MODE) Then I managed to set commands using PC. May be this is the solution to your problem.

I’m still having trouble connecting it to my wireless router, I will report here when I do further reading.

-Mahmood-

---

<div class="post-metadata">

**Author:** ![sram](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sram](https://community.sparkfun.com/u/sram)\
**Post date:** [June 14, 2010, 7:14pm UTC](https://community.sparkfun.com/t/wifly-command-mode-problem/15837/5 "2010-06-14T19:14:38Z")

</div>

Hello,

Are the RTS/CTS reversed in RN-121 (wifFly module) compared to the standard active high logic?

---

<div class="post-metadata">

**Author:** ![SFE-Mike](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/sfe-mike/32/6048_2.png) [@SFE-Mike](https://community.sparkfun.com/u/SFE-Mike)\
**Post date:** [June 18, 2010, 5:21pm UTC](https://community.sparkfun.com/t/wifly-command-mode-problem/15837/6 "2010-06-18T17:21:14Z")

</div>

Send an email to techsupport @ [sparkfun.com](http://sparkfun.com) and we’ll try to diagnose your problem.

---

<div class="post-metadata">

**Author:** ![seacritter](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@seacritter](https://community.sparkfun.com/u/seacritter)\
**Post date:** [July 20, 2010, 8:09pm UTC](https://community.sparkfun.com/t/wifly-command-mode-problem/15837/7 "2010-07-20T20:09:40Z")

</div>

> sram:  
> Hello,
> 
> Are the RTS/CTS reversed in RN-121 (wifFly module) compared to the standard active high logic?

Have you gotten an answer???

I have an RN-121 also. I used the set baud flow 1 to set it, but I still can’t get anywhere either.

---

<div class="post-metadata">

**Author:** ![seacritter](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@seacritter](https://community.sparkfun.com/u/seacritter)\
**Post date:** [July 20, 2010, 9:20pm UTC](https://community.sparkfun.com/t/wifly-command-mode-problem/15837/8 "2010-07-20T21:20:57Z")

</div>

Found that if you set the comms parameters in the SC16IS750, then make sure that the crystal is the right speed… all of a sudden everything started working for me. It’s still a little slow and buggy, but I’m heading into the right direction…

---

<div class="post-metadata">

**Author:** ![bruno.mosconi](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@bruno.mosconi](https://community.sparkfun.com/u/bruno.mosconi)\
**Post date:** [August 30, 2011, 8:31pm UTC](https://community.sparkfun.com/t/wifly-command-mode-problem/15837/9 "2011-08-30T20:31:01Z")

</div>

I’m having the same problem! It never enters the CMD mode… Could you please share your solution?

Best Regards,

Bruno Mosconi
