IRremote's sendRaw() -- Why doesnt it work?

I'm lost when it comes to getting IRremote to sendRaw data.

I've been able to record and send my Samsung remote keys just fine with sendSamsung but when sending UNKNOWN remote info as sendRaw it doesnt work at all -- i am able to record the info though. Using my cell phone the IR led can be seen flashing when using sendSamsung() but there is no flashing when using sendRaw(). I've tried recording my Samsung remote data then sending this raw data back as sendRaw and it still wont work -- i'm unable to turn on my DVD player and there is no IR light being emitted.

Is there some additional data or timing hurdles I must inject for sendRaw to work?

** My setup is identical to the tutorial over at Sparkfun.

The following sketch records the incoming remote signal then uses it to sendRaw.

#include <IRremote.h>

int RECV_PIN = 2;
int SEND_PIN = 3;

IRrecv irrecv(RECV_PIN);
IRsend irsend(SEND_PIN);

boolean recording = true;
decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
  if (recording) {
    if (irrecv.decode(&results)) {
      Serial.println("IR code recorded!");
      //irrecv.resume(); // Receive the next value
      Serial.print("Recorded ");
      Serial.print(results.rawlen);
      Serial.println(" intervals.");
      recording = false;
    }
  } else {
    // replay mode
    Serial.println("Sending recorded IR signal!");
    irsend.sendRaw((unsigned int*) results.rawbuf, results.rawlen, 38);
    //irsend.sendSamsung(0x2C2C,0x1E,1,false);
    delay(2000);
  }
}`

What did you see in the Serial Monitor?

Serial Monitor showed the following:

IR code recorded!
Recorded 68 intervals.
Sending recorded IR signal!
Sending recorded IR signal!
Sending recorded IR signal!
Sending recorded IR signal!
...

Do you use the new library with old code? Check the SendRaw example coming with your current library.

I appreciate the assistance. I have the following IR material:

IR Receiver Module(2H24075A, TSOP34838)
IR Emitter Module (2H24073A)
IR Emitter Diode (QED234, SIR-34ST3F)

Regarding the IR Emitter Module and IR Emitter Diode, do both parts accept the exact same data on their DAT lines then produce the same output or must one send particular timed pulses of 5V to the Diode to directly control the IR output whereas the Module expects a stream of integers which itself converts to IR pulses?

Can you explain to me what is the RAW data for UNKNOWN protocols. So far using the updated IRremote library's ReceiveDemo and SendRawDemo havent gotten me any closer to getting sendRaw to work with my Cisco 9865 Set Top Box. I am receiving raw data from my remote but emitting that data back does absolutely nothing when using the emitting Diode or Module. I figure the raw data is grossly incomplete requiring me to dig deeper to eventually compose something useful. Despite what many will think the decoded rawbuf is not a Copy & Send solution but more a debugging tool.

Can you please add the links to your module data sheets?

IR Emitter Diode sounds somewhat compatible with the IRremote library, but requires a transistor for sufficient LED current.

So you can record and send using the Samsung protocol, and it works, but when you try to record the Samsung raw and send that, using the same physical setup and connections, it not only doesn't work, but you don't even see any flashing in your phone camera. Is that right? If so, since all of the physical stuff is the same, the probem must be in software. What version of IRremote.h are you running? Does it have a raw capture/resend example sketch?

It's just a list of alternating ON and OFF times for the output carrier.