[SOLVED].SAMSUNG ENCODED CODES ARE READ BUT CAN NOT BE TRANSMITTED.. HELP PLEASE

Decoded,SAMSUNG:,B24D7B84(32,bits)
#define,Something_DEC,2991422340
#define,Something_HEX,B24D7B84
Raw,(100):
{4400,4300,600,1550,550,550,550,1550,550,1600,550,500,600,500,600,1500,550,550,600,450,600,1550,550,500,600,500,600,1500,550,1600,550,500,600,1550,550,500,600,1550,550,1550,600,1550,600,1550,600,450,600,1550,600,1550,550,1600,550,500,550,500,600,500,550,500,600,1550,550,500,600,500,550,1550,600,1550,550,1600,550,500,550,550,550,500,550,500,600,500,550,500,600,500,550,500,600,1550,550,1550,600,1550,550,1600,550,1550,600};

Decoded,SAMSUNG:,B24D1FE0(32,bits)
#define,Something_DEC,2991398880
#define,Something_HEX,B24D1FE0
Raw,(100):
{4400,4300,600,1550,550,500,600,1550,550,1600,600,450,600,450,600,1550,550,500,600,500,600,1550,550,500,550,500,600,1550,550,1600,550,500,550,1600,550,500,600,500,550,500,550,1600,550,1550,600,1550,550,1600,550,1550,600,1550,550,1550,600,1550,600,450,600,500,600,450,600,500,550,500,600,1550,600,1550,550,500,600,1550,600,1500,600,500,550,500,600,500,550,500,600,450,600,1550,600,450,600,500,600,1550,550,1550,600,1550,550};

above are the codes received by my Arduino receiver circuit…
I am using IRremote library in arduino MEGA 2560

my reciever is TSOP something 38… I KNOW it recieves 38 khz…

And below are the attached codes I used for receiving and transmitting the codes…

The circuit works fine . I know this because I tested a PANASONIC Encoded AC and transmitted the RAW data perfectly using irsend.sendraw command from irremote library

What am I doing Wrong??

I even deleted the first value obtained in the SERIAL OUTPUT and removed all the minus signs…

I tried to run it on frequencies from 0 - 500 khz using khz ++ and delay of 500 ms…

KINDLY HELP PLEASE…

I am stuck in it for more than a week now…

ANY HELP WILL BE APPRECIATED

RAW_CODE_SEND_ON_OFF.ino (3.36 KB)

IR_RECV_MAYBE_MODIFIED.ino (2.22 KB)

PROBLEM SOLVED....

The SAMSUNG PROTOCOL seems to have a bot of a trick under its sleeves..

The AC read the command from the TRX when I sent the two signals with a DELAY of 4900 Micro Seconds...

for eg...

unsigned int OFF = {4400, 4300, 550, 1550, 550, 550, 550, 1550, 550, 1550, 600, 500, 600, 500, 550, 1550, 600, 500, 550, 550, 550, 1550, 550, 550, 550, 500, 600, 1550, 550, 1550, 600, 500, 550, 1550, 600, 1550, 550, 500, 600, 500, 600, 1550, 550, 1550, 550, 1550, 600, 1550, 550, 1550, 600, 500, 550, 1550, 600, 1550, 550, 500, 600, 500, 550, 550, 550, 500, 600, 500, 600, 500, 600, 500, 600, 450, 600, 500, 550, 550, 550, 500, 600, 500, 600, 500, 600, 1500, 600, 1550, 600, 1500, 550, 1550, 600, 1550, 550, 1550, 600, 1550, 550, 1550, 550};

void loop(){

irsend.sendRaw(OFF, sizeof(OFF) / sizeof(OFF[0]), khz);

delayMicroseconds(4900);

irsend.sendRaw(OFF, sizeof(OFF) / sizeof(OFF[0]), khz); }