Control TV with IR Tramistter

Hi !
I'm new in arduino, and I would like to control my TV with my arduino and a IR Tramistter
So I use a ir receiver to receive and save the data sent by the TV remote controller and I got for example 0x84c to shut down the TV

Now i would like my arduino to send this command to the TV to control my TV from the arduino
But I have no idea what send function to use
I tried :

irsend.sendSony(0x84c, 12);

but i didn't work, I also triedsendNEC(0x84c,32)but same... I have no idea what function i have to use

ps : my TV brand is "Tucson" I don't know if it's useful

Thanks !

Neolex,

I assume you are using the IRremote library by Shirriff?

I thought that gave you the details of the TV so it would say something like send then the code.
Does it give you any tv brand? I know it can flag as "unknown".

I'm making a project based on IR myself and am exploring things like this myself. So I might not be much help. But from the research I did on this method that's the information I have.

Thanks !
I use the dump function fro IrRecvDump and it says it's rc5 12 bit 84c for on and 4c for off.
When I send that my tv respond neither...
i use:

irsend.sendRC5(0x84c,12);

with the Dump i got :

Decoded RC5: 84C (12 bits)
Raw (22): 950 -850 950 -850 1850 -850 950 -850 950 -850 900 -1800 1850 -850 950 -1700 950 -850 1850 -900 900 value:2124

Decoded RC5: 4C (12 bits)
Raw (22): 950 -850 1850 -850 950 -850 950 -850 950 -850 950 -1750 1800 -900 950 -1750 900 -850 1850 -900 900 value:76

I've never used the send functionality. There is a sendRaw method that should allow you to send the raw data. The frequency is probably 38000 (or 38).

Hey ! Thank you, I finally made it, with sendRaw() the frequency is 36khz for my TV.