harlequin-tech / WiFlyHQ

WiFly RN-XV Arduino Library
Other
110 stars 68 forks source link

Not able to use Arduino + Wireless SD shield + RN XV #17

Closed mukeshbauskar closed 10 years ago

mukeshbauskar commented 11 years ago

When I am connecting, I am always getting follow errors.

Starting Free memory: 1250 setPrompt failed Failed to enter command mode Failed to start wifly Terminal ready

Things I have tried are

  1. Bending Pin Number 0 and 1 on shield so that they do not connect to Arduino and the connecting Pin 0 to Pin 8 and Pin 1 to Pin 9 on shield 2.Using wifly.begin(&wifiSerial, NULL) instead of wifly.begin(&wifiSerial, Serial).

Please let me know what wrong I am doing.

harlequin-tech commented 11 years ago

The most likely cause of the failure you are seeing is that the Arduino cannot talk to the WiFly module. This could be for a few reasons such as the baud rate not matching, the serial port not being connected properly, or the shield you have not doing the 5V to 3.3V level conversion correctly.

Do you have your softwareSerial object (wifiSerial) set to pins 8 and 9?

What kind of shield are you using for your WiFly? Is it one of the ones that don't work? (Check the wiki for a partial list: https://github.com/harlequin-tech/WiFlyHQ/wiki ).

What version is the firmware on the WiFly?

mukeshbauskar commented 11 years ago

I am using Arduino Wireless SD Shield with Arduino Uno Rev3.

The firmware on RN XV is 2.32.

I have set softwareSerial object (wifiSerial) set to pins 8 and 9. I also tried bending pin 0 and 1 from shield and connecting it to pin 8 and 9 with same code.

Can you please tell how to check firmware which is there on WiFly?

harlequin-tech commented 11 years ago

You can check the version of your firmware by connecting your serial terminal to the WiFly module and sending "$$$" with no carriage return. That enters command mode and the firmware version is in the prompt the WiFly sends to you.

You can find the details of the commands the WiFly RN-XV supports here: http://www.rovingnetworks.com/resources/download/16/RN_XV

Put the switch on your Arduino Wireless SD Shield in the "USB" position so that your USB serial interface is connected directly to the WiFly RN-XV module (make sure the module is powered off first). Then select the right speed in your serial monitor (whatever you programmed the module to use, or try 9600, 38400, etc).

Once you can connect to the WiFly module manually, you can change the switch back to the "micro" position (with the power off) and try out the WiFlyHQ library and examples again.

smukkejohan commented 11 years ago

I have the same setup and connecting to the RN-XV manually works fine. The version I have is: WiFly Ver 2.32, 02-13-2012 on RN-171

However when trying to run the WiFlyHQ examples I only get this:

setPrompt failed Failed to enter command mode Failed to start wifly

I have wifiSerial set to pins 8 and 9. Did anyone else have luck with this setup? Or further instructions how to get it up and running?

smukkejohan commented 11 years ago

Figured it out. Had to rewire tx/rx or 0/1 to 8/9. Works great now!

Photo on 3-28-13 at 22 06

ggjoel commented 11 years ago

Hi, I'm an arduino and wifly newbie. I tried inputting $$$ on the Serial Monitor and got nothing back. This are the steps that I followed:

  1. Bend pins 0 and 1, and connect them to pins 8 and 9.
  2. I set the serial select of the Arduino on the USB position and uploaded the httpclient example.
  3. Then I open the Serial Monitor and typed $$$ and got nothing back and the following:

Starting Free memory: 905 setPrompt failed Failed to enter command mode Failed to start wifly

I tried carriage return, newline, no line ending, both NL & CR and nothing happened when I input $$$. The next approach I tried was the following:

  1. I disconnected the usb from my computer and switched the serial select of Arduino to the MICRO position and then connected the Arduino back to my computer.
  2. I opened the Serial Monitor and typed $$$ and got nothing back and but the following:

Starting Free memory: 905 Already joined network MAC: 00:06:66:72:37:65 IP: 0.0.0.0 Netmask: 0.0.0.0 Gateway: 0.0.0.0 DeviceID: Wifly-WebClient open hunt.net.nz 80 Failed to get prompt WiFly has crashed and will reboot...

I would appreciate if someone could guide me. Maybe I'm doing something completely wrong.