Xbox360 On/Off discrete codes driving me crazy!

I've spent hours upon hours trying to figure out why the On/Off discrete codes for my Xbox360 keep swithing. They will work perfrectly for a while and then all of a sudden reverse themselves. Has anyone else experience this issue?