The client is supposed to send a command "Do" to the server witch toggle the LED and send a reply "Done" to the Client witch toggle its own LED.
The Server's LED is blinking so the client correctly send the message and the server recieve it.
But the Client's LED doesn't, So either the client can't recieve or the server can't send.
I'm sure that RF modules works because I tried the library example (transmit / reciever) switching my two boards and it works fine.
I know that RF transciever has an antenna switching time to switch from transmit mode to recieve mode and vice versa. But I inserted some delay and it still doesn't working.
I'm using two Arduino Uno and two aurel transciever modules: RTF-DATA-SAW 433MHz (futuraelettronica.net)
I just wanted to see a blinking led because one of the board is not plugged to a PC so i can't use serial, and i made software as simple as possibile due to avoid timing problems, But i think it doesn't change so much.
I just wanted to see a blinking led because one of the board is not plugged to a PC so i can't use serial, and i made software as simple as possibile due to avoid timing problems, But i think it doesn't change so much.
For purposes of debugging, connect BOTH boards to the PC. Then, you CAN use serial. You need to know that one is sending data, and what it is sending.
You need to know that the other is receiving data, and what it is receiving.
You haven't described how the radios are connected to the Arduinos. It's time to do that, too.
i know, i didn't plugged the server to my PC because i have not any other USB cable available.
Anyway the server led is blinking so it's recieving correctly the client command ("Do") and i verified with the oscilloscope that on the Server tx line some data is sent just after recieving "Do" (I suppose that is the "Done" command), The problem is that no data flow trough the client rx line, like if the client RF module can't switch from transmit mode to recieve mode quick enough or something like that.
Using serial debugging wouldn't show me anything more also because server/client react to any command without checking what command is sent.
Solved:
It seems the problem was how i passed the string (char *) to the vw_send function.
I didn't get exactly what were the problem but now is working