harlequin-tech / WiFlyHQ

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

Failed to get prompt #1

Closed matylla closed 12 years ago

matylla commented 12 years ago

I'm using RN-XV (Rev 3) with Arduino Uno (R3). Everytime I want to connect to any website I get this message "Failed to get prompt". Any help would be appreciated.

Free memory: 1167
getCon: TCP disconnected
Already joined network
MAC: xxx
IP: 192.168.0.8
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DeviceID: Wifly-WebClient
open http://google.com 80
Failed to get prompt
WiFly has crashed and will reboot...
harlequin-tech commented 12 years ago

Hi matylla, what sketch are you running? Can you post the code? What kind of shield are you using? Can you post a link to the shield?

I've just re-tested the httpclient.ino sketch with no problems with the latest library code.

Another option to try is to change the line in WiFlyHQ.cpp that says "#undef DEBUG" to "#define DEBUG", re-compile and flash your sketch, and then save the output from the serial monitor and post it here. That should provide a clue as to what is going wrong.

Are you running 2.32 version firmware on your WiFly? If not, can you do a firmware update and see if the sketch works with 2.32?

Regards, Harlequin

harlequin-tech commented 12 years ago

Hi Matylla,

were you able to do the firmware upgrade from 2.30 to 2.32? DId that help?

Regards, Harlequin

matylla commented 12 years ago

hi Harlequin,

I've been a bit busy these days. I will give it a try in the following days and of course let you know of the outcome :)

On Apr 17, 2012, at 1:42 PM, harlequin-tech wrote:

Hi Matylla,

were you able to do the firmware upgrade from 2.30 to 2.32? DId that help?

Regards, Harlequin


Reply to this email directly or view it on GitHub: https://github.com/harlequin-tech/WiFlyHQ/issues/1#issuecomment-5173061

matylla commented 12 years ago

Hi @harlequin-tech. I finally found some time to get this thing working. I updated firmware to 2.32 and now everything works like a charm. Thanks for your effort!

gskinner commented 11 years ago

I'm getting the exact same error intermittently with firmware 2.38 running the httpclient example. About one in three times that I run it, it will output:

open http://google.com 80 Failed to get prompt WiFly has crashed and will reboot...

However, the wifly has not crashed, and does not reboot. My suspicion is it may be a timing issue - perhaps WiFlyHQ is expecting a response within a certain amount of time, but doesn't always receive it that quickly, and assumes that the WiFly has crashed?

gskinner commented 11 years ago

Enabling debugging I was able to determine that it was timing out. I've fixed this issue by increasing the timeout value from 500ms to 10000ms.

WiFly::open ~ln 2512: if (!getPrompt(500)) {

Testing with 2000ms indicated that was also not enough, and I'd much rather wait longer for a fail than drop into an unusable "crash" state when it is not necessary.

wirewatt commented 11 years ago

Hi gskinner, did it work for you? I'm getting the same error, and can't figure out what it is. Also, where did you added the 10000ms delay on the code?

gskinner commented 11 years ago

As indicated above, I added it at ~ln 2512 of WiFlyHQ.cpp.

From: if (!getPrompt(500)) {

to: if (!getPrompt(10000)) {

this fixed the issue for me.

rodri16 commented 10 years ago

Hi, I am also having the same error. After failed to get prompt and reboot, nothing happens. I am with version 4.41.

The strange thing is that I can send some data to the server but after some I get the error. Any suggestion.

open things.ubidots.com 80 Failed to get prompt WiFly has crashed and will reboot...

I think WiflyHQ.cpp changed from las message.

anshul119 commented 9 years ago

I'm having the same issue @rodri16. exactly the files are modified @gskinner . @harlequin-tech could you please tell me how to do a firmware upgrade, i ll give it a shot.