Trouble sending IR command to rc curtains

AnalysIR:
That IR receiver is classed as legacy in the datasheet. It may be that the modulated bursts are too short for it to lock on reliably or could be that its a 56kHz signal???

If you are confident opening up the receiver in the curtain unit, you could tap into the output signal, provided it is 3->5V, with your arduino and use the following sketch to record the times.
CAUTION: use at your own risk and beware of any mains voltage.
Air Conditioner Record long Infrared Remote control signals - Arduino
download link at bottom of page

Now that I think about it, your could use this sketch to get better timings than IRrremote, from your existing receiver- so why not try that first before messing with the curtain unit and post the output.

Regarding your Panasonic TV....this signal will work if you resend using sendRAW. You could also update the library to handle the actual codes.

I tried your sketch but I keep getting gibberish output. I'm supposed to connect the IR receiver to pin 2 right vs pin 11 for IRremote right?

Example output:

Gþß2¦ï2½"ýq²2¦,ï2¦ïÓ¥Ú?íé6¦÷q²íé7Vþ?oû7Vó?oû2¦,ïò0þaþßÇhÈq²ìéM"XÞ?ÿ?q4â2½"ý

EDIT: I changed the serial begin to 9600 and that seemed to have fixed it. panasonic returned this:

Raw: (586) 3496, -1700, 480, -388, 484, -1256, 476, -396, 476, -392, 480, -392, 480, -392, 480, -388, 476, -396, 476, -392, 480, -392, 480, -388, 484, -388, 484, -384, 484, -1256, 480, -392, 480, -392, 480, -388, 484, -388, 484, -384, 476, -396, 476, -392, 480, -392, 480, -392, 480, -1260, 484, -384, 476, -396, 476, -392, 480, -392, 480, -392, 480, -388, 484, -388, 476, -392, 480, -1260, 484, -388, 480, -1260, 476, -1264, 480, -1260, 484, -1256, 476, -396, 476, -396, 476, -1264, 480, -388, 484, -1260, 472, -1268, 476, -1264, 472, -1268, 476, -392, 480, -1264, 476, -9108, 3492, -1700, 480, -392, 480, -1260, 472, -396, 476, -396, 476, -392, 480, -392, 480, -392, 468, -400, 472, -400, 472, -396, 476, -396, 476, -392, 480, -392, 472, -1268, 476, -396, 476, -392, 480, -392, 480, -388, 484, -388, 472, -396, 476, -396, 476, -396, 476, -392, 480, -1260, 484, -388, 472, -396, 476, -396, 476, -396, 476, -392, 480, -392, 480, -388, 472, -400, 472, -1268, 476, -396, 476, -1264, 480, -1260, 476, -1264, 480, -1260, 484, -388, 472, -396, 476, -1264, 480, -392, 480, -1260, 472, -1268, 476, -1264, 480, -1260, 484, -388, 472, -1268, 476, -9132, 3496, -1700, 468, -400, 472, -1268, 476, -396, 476, -396, 476, -392, 472, -400, 472, -396, 476, -396, 476, -392, 480, -392, 480, -388, 484, -388, 472, -396, 476, -1268, 476, -392, 480, -392, 480, -388, 472, -400, 472, -396, 476, -396, 476, -396, 476, -392, 480, -392, 480, -1260, 472, -396, 476, -396, 476, -396, 476, -392, 480, -392, 480, -388, 476, -396, 476, -392, 480, -1260, 480, -392, 484, -1256, 476, -1264, 480, -1260, 484, -1260, 472, -396, 476, -396, 476, -1264, 480, -388, 484, -1256, 476, -1268, 476, -1264, 480, -1260, 476, -392, 480, -1264, 480, -15636, 3500, -1696, 444, -424, 480, -1260, 452, -420, 480, -392, 472, -396, 476, -396, 476, -392, 480, -392, 480, -388, 484, -388, 484, -388, 472, -396, 476, -396, 476, -1264, 480, -388, 484, -388, 472, -396, 476, -396, 476, -396, 476, -392, 480, -392, 480, -388, 476, -396, 476, -1264, 480, -392, 480, -388, 484, -388, 472, -396, 476, -396, 476, -396, 476, -392, 480, -392, 480, -1260, 472, -396, 476, -1264, 480, -1260, 484, -1256, 480, -1264, 476, -392, 480, -392, 472, -1268, 476, -392, 480, -1260, 484, -1260, 472, -1268, 476, -1264, 480, -392, 472, -1268, 472, -9112, 3496, -1696, 484, -388, 476, -1264, 476, -392, 480, -392, 480, -392, 480, -388, 476, -396, 476, -392, 480, -392, 480, -388, 484, -388, 484, -388, 472, -396, 476, -1264, 480, -392, 480, -388, 484, -388, 472, -400, 472, -396, 476, -396, 476, -392, 480, -392, 480, -388, 476, -1264, 480, -392, 480, -392, 480, -388, 480, -392, 472, -396, 476, -396, 476, -396, 476, -392, 480, -1260, 484, -388, 472, -1268, 476, -1264, 480, -1260, 472, -1268, 476, -396, 476, -396, 476, -1260, 476, -396, 476, -1264, 480, -1260, 472, -1268, 476, -1264, 480, -392, 480, -1260, 472, -9136, 3492, -1704, 476, -392, 480, -1260, 484, -388, 476, -396, 476, -392, 480, -392, 484, -384, 484, -388, 472, -396, 476, -396, 476, -396, 476, -392, 480, -392, 480, -1260, 472, -396, 476, -396, 476, -392, 480, -392, 480, -392, 472, -396, 476, -396, 476, -392, 476, -396, 476, -1264, 484, -388, 472, -396, 476, -396, 476, -392, 480, -392, 480, -388, 472, -400, 472, -400, 472, -1268, 476, -392, 480, -1260, 472, -1268, 476, -1264, 480, -1264, 472, -396, 476, -396, 472, -1268, 476, -392,

But for the curtain remote I got differnet outputs for same key press:

Raw: (33) 220, -3176, 196, -32600, 220, -3172, 200, -2064, 200, -4324, 200, -62000, 240, -6560, 208, -5432, 200, -23548, 292, -3120, 204, -2040, 220, -912, 240, -2020, 244, -904, 384, -732, 368, -760, 372, 

Press the button on the remote now - once only

Raw: (21) 224, -3168, 208, -3188, 204, -2056, 208, -2060, 200, -24680, 220, -11088, 224, -60848, 216, -11092, 224, -24660, 216, -11092, 220, 

Press the button on the remote now - once only

Raw: (79) 952, -180, 948, -184, 380, -752, 948, -160, 400, -752, 380, -752, 940, -172, 224, -2040, 200, -932, 200, -24696, 948, -184, 948, -184, 376, -752, 952, -180, 380, -752, 380, -752, 948, -160, 400, -752, 384, -748, 380, -752, 380, -748, 384, -59556, 948, -164, 968, -184, 376, -736, 968, -184, 376, -732, 400, -732, 968, -164, 400, -732, 396, -732, 224, -912, 200, -24676, 968, -164, 968, -164, 396, -736, 220, -912, 208, -2052, 212, -2052, 196, 

Press the button on the remote now - once only

I'm going to try sending the raw panasonic signal and see what happens