Quote:
The /proc/empeg_notify interface accepts 32-bit (well, actually 24-bits -- the high byte is "reserved" for internal use) hex codes for press and release events. They don't have to be "names".


Last attempt I had looks like this. The buffer "ubuffer" is a string, either in the form "Button=right" or hex in the form "0x12345678", I convert that to a long and write it. Tried writing 3 or 4 bytes cant make it play, see code around "Note, doesn't work"

http://www.jonshouse.co.uk/broadcastfb_proc.c

Output looks like this:

empeg:/empeg/bin# /broadcastfb_proc
Listening on UDP port 5050
Sending packets on UDP port 4040
Got 10 bytes from receiving UDP socket [0x0020DF12]
sent 0020DF12 to /proc/empeg_ir, got -1
Got 10 bytes from receiving UDP socket [0x0020DF12]
sent 0020DF12 to /proc/empeg_ir, got -1
Got 10 bytes from receiving UDP socket [0x0020DF12]
sent 0020DF12 to /proc/empeg_ir, got -1
Got 10 bytes from receiving UDP socket [0x0020DF12]
sent 0020DF12 to /proc/empeg_ir, got -1

Thanks,
Jon