Thanks Hendrik fro your advices.
With many help from other members of the mbed community, I have now a working software serial interface. You can find the code here: http://mbed.org/forum/mbed/topic/3503/?page=1#comment-17663. It is more or less the same idea that was already proposed by Chag here : http://mbed.org/users/chag/libraries/SoftwareSerial/m704bt
Now I can use p9 and p10 to communicate with the WiFly and output information in terminal using a software serial connection on pin p25 and p26.
So far so good. Next problem. I tried the hello world example : http://mbed.org/cookbook/wifly and it just does not connect ( I get the message : cannot to join the network, will retry! ).
Here is my code
#include "mbed.h"
#include "Wifly.h"
#include "SoftSerial.h"
SoftSerial soft(p25,p26);
Wifly wifly(p9, p10, p21, "---", "---", false);
int main() {
char recv[129];
soft.baud(19200);
soft.printf("d\n\r");
wait(0.01);
soft.printf("Voila!\n\r");
// join the network specified in the constructor
while (!wifly.join()) {
soft.printf("cannot to join the network, will retry!\r\n");
wifly.reset();
}
soft.printf("network joined!\r\n");
//print all received messages
while(1)
{
if(wifly.readable()) {
wifly.read(recv);
soft.printf(recv);
}
wait(0.2);
}
}
I am using a DLINK DIR 615 router (WPA). Had anyone ever try to connect to this router using WiFly? Any hint?
p9 pin3, p10 pin2, vdd pin1, gnd pin10
thanks.
Hello,
I am trying to connect a RN-XV WiFly to my mbed. For now I am just trying to connect to my network. So I did this :
Then I connected the pins like this: mbed -> wifly, p27 -> 3, p28 -> 2, p36 -> 5, 3.3V Vout -> 1, GND -> 10.
I thinks everything is ok but I got on my putty : pinmap not found. What am I doing wrong? To find out the pins I used the datasheet of the wifly :