beobor1:
On the link you pointed there's also SRH: Special repeat header (timing: 9ms mark, 2.2ms space, 0.6ms mark, 96ms space.
Where to put this?
Using the firmware generated NEC code as you have done, then you need to know about a flaw (software bug) in the repeat code section which means it does NOT conform to the NEC spec. This means about 40% of products which use the NEC protocol will not work correctly, but I have produced a workaround for the problem which works 100%.
When you press a button it sends a code with the standard start bit of a pulse of 9 milli seconds and a pause (space) of 4.5 milli seconds. If you hold the button it does NOT send the command again, but sends a start bit of 9 milli seconds followed by 2.25 milli second pause then one (1) data bit. The problem is that the Beo5 sends a standard pause of 4.5 milli seconds so the receiver thinks its the start of a new command when it is not. See the diagram below to fully understand the situation.
Having said all that when it comes to volume up and down you don't want a repeat signal at all, you want one seperate signal per click as you turn the remote wheel and that's the next problem to overcome because it still does a repeat signal when you don't want it.