Go Down

Topic: Can't get Wifly RN-XV into command mode (Read 1 time) previous topic - next topic

mikejonesab1

The documentation simply says to send "$$$" to the wifi module and you will get "cmd" in return telling you that you are in command mode. I'm sending "$$$" via Serial.print() but I am not getting an response. What am I doing wrong?

pylon

The documentation says you have to send "$$$" to the module AND wait some time (as far as I remember 250ms) before that and after you've done it. Without that it will not change the mode.

mikejonesab1

So should I do a delay before sending "$$$" and then another delay before trying to read the response?

pylon

Quote
So should I do a delay before sending "$$$" and then another delay before trying to read the response?


You may use delay() to wait or some other way but you have to wait without sending anything to the module in this time. You can immediately try to read after sending the "$$$" but the module will wait with an answer until the guard time is over. If you send any character during that guard time, it will not see the "$$$" as a mode switch but as normal data.

mikejonesab1




Sounds like the hardware setup is all wrong. OP hasn't described how "anything" is hooked up,
but the first guess is he has the RN-XV going to the same pins as the USB port on the Arduino,
so that will never ever work. Too much guessing. I hooked up my RN-XV this morning and
typed "$$$", and got back "OK" right off. Then, I typed "get e", and it displayed the complete
setup.




Sorry, you're right, I should have added more info. I am sure it is a stupid mistake.

The module I am using is Wifly RN-XV. I have it attached to my Arduino Uno R3 on pins 8 and 9 and I am using software serial in the code. I maybe going about this all wrong. But, I am using a delay and then serial.print to send "$$$" I then am using serial.read. Is this completely wrong?

I know I am a noob. My areas of expertise lay elsewhere, but I am more than capable of learning.

Go Up