Main Site Documentation

WiFly RN-171 Hardware Reset


#1

Hi,
i do a mistake with flow or baudrate on my wifi modul. I can’t enter the command mode now. I found in the microchip forum this way to do a Hardware reset.

  1. Power down module
  2. Drive GPIO9 high
  3. Power up module
  4. Toggle GPIO9 5 times slowly
  5. Reboot module with GPIO9 low

I need help with the c# code to do that…
How can i set the special pin to high is the main question.

Is this a try (my RN-171 is on socket 4)?


            var p9 = GT.Socket.GetSocket(4, false, null, null).CpuPins[9];
            var ResetPin = new OutputPort(p9, false);
            ResetPin.Write(true);

Thx for any help
René


#2

I wood try it so:


void ProgramStarted()
{
            this.wifi_RN171 = new GTM.GHIElectronics.WiFi_RN171(4);

            var p9 = GT.Socket.GetSocket(4, false, null, null).CpuPins[9];
            var ResetPin = new OutputPort(p9, false);
            ResetPin.Write(true);

            for (int i = 0; i < 5; i++)
            {
                if (ResetPin.Read())
                    ResetPin.Write(false);
                else
                    ResetPin.Write(true);
                
                Thread.Sleep(1000);
            }

            wifi_RN171.Reboot();
}


#3

@ dutzend - Looking at the schematics, the RESET pin is different than GPIO9. You will not be able to access hardware reset via software as GPIO9 is not connected. You will need to do this manually.


#4

@ James: Thx, for your answer I understand.
Sorry, but to do that manually i need help how can i do that.

At first i must say, the speed (115200 Baud) was unusable for my application, thats why i Play around with baudrates and flow in command mode. Now i run in these Situation in there i can’t communicate with my modul. In the wifly manual i read various methods to higher the speed by changing Baudrate and flow. There is no warning that something could happen like that :wink:
In the microchip Forum i see I am not alone, i read also to do the reset is very hard.

Thx René


#5

@ dutzend - Without soldering, you could use a male-to-male bread board wire to touch the pads.