I managed to analyze the protocol, see
[Link: hifi-remote.com]Assuming that you do not care, your codes look throughout plausible, Why your remote does not work is not obvious. Possibly it has a problem with the length? I would capture the IR from the remote, and see if it makes sense.