Help with necx protocol

Does anybody know how to handle remote controls that use the necx protocol?

I’m trying to use a Roku ir remote control but it returns 2 scancodes pre button.

If I fast tap the “OK” button it returns the following:-
14677.572028: lirc protocol(necx): scancode = 0xeac22a

If I press it slightly longer, like a normal press length it returns the following:-

14785.464050: lirc protocol(necx): scancode = 0xeac22a
14785.572018: lirc protocol(necx): scancode = 0xeac2aa

If I long press for a repeat it returns:-

14849.820019: lirc protocol(necx): scancode = 0xeac22a
14849.928038: lirc protocol(necx): scancode = 0xeac2aa
14850.036027: lirc protocol(necx): scancode = 0xeac2aa
14850.148031: lirc protocol(necx): scancode = 0xeac2aa
14850.256031: lirc protocol(necx): scancode = 0xeac2aa
14850.364036: lirc protocol(necx): scancode = 0xeac2aa
14850.472043: lirc protocol(necx): scancode = 0xeac2aa

This is with ir-keytable set to the nec protocol:-
ir-keytable -p nec -t

I can’t seem to set necx as a protocol. Any help please.

Try ir-keytable -u. It will use a multi software decoder.

Thank, I tried -u but that doesn’t return any scan codes at all for the remote no matter what button I press.

Looking at the ir-keytable help the -u option only seems to be related to scanning for power on codes. I’m not trying to use power on or wake, I’m just trying to get a remote that uses the necx protocol to work.

Read the how to in more detail - debug the scan.

When you get the timings you can check GitHub - IRMP-org/IRMP: Infrared Multi Protocol Decoder.
It does support most IR protocols available.