i can't use IRSend and IRRecv with in same program

Hi :). I'm trying to use infaredLED to send out data and listen to infaredReceiver that recieve data back to my Arduino but doesn't work program not go to work in ir.recv command . Here is serial port output with sourcecode below(sry for my bad english :sweat_smile:)

send
send
send
send
send

#include <IRremote.h>

int RECV_PIN = 2;              
IRrecv irrecv(RECV_PIN);
IRsend irsend;

decode_results results;
char character  ;
void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn();        

}

void loop() {
  for (int i = 0; i < 3; i++) {
    irsend.sendSony(0xa90, 12); // Sony TV power code
    Serial.println("send");
    delay(1000);
  }
  //*/

  if (irrecv.decode(&results)) 
  {
    Serial.print("recv signal ... ");
    switch (results.value) 
    {
    case NULL : /* irsend.sendSony(0xA91, 12);*/
      character = 0xA91 ; 
      Serial1.println("character"); 
      break;
    case 0xB90: 
      Serial1.println("character"); 
      break;  
    case 0xC90: 
      Serial1.println("character"); 
      break; 
    case 0xB91: /*irsend.sendSony(0xA92, 12);*/
      character = 0xA92 ; 
      Serial1.println("character"); 
      break;
    case 0xC91: /*irsend.sendSony(0xA92, 12);*/
      character = 0xA92 ; 
      Serial1.println("character");
      break;
    case 0xB92: /*irsend.sendSony(0xA93, 12); */
      character = 0xA93 ; 
      Serial1.println("character");
      break;
    case 0xC92: /*irsend.sendSony(0xA93, 12); */
      character = 0xA93 ; 
      Serial1.println("character");
      break;
    default:  
      character = 0xA93;  
      Serial.println("cannot specified data signal @_@"); 
      break;
    }
    delay(100);
    irrecv.resume();               // Receive the next value
  }
  
}

I haven't checked your code....but using IRremote...

It is not possible to send IR & receive IR in the same Arduino at the same time. Receive is disabled when sending. Once you send you must re-enable receiving.

Use a TV remote to test the receiving and then use a TV or other device to test the sending.

Also, go thru all of the examples with the library first!