Jump to content
Flirc Forums

Raw command output


purpleman

Recommended Posts

It's not possible to get raw data from IR receiver chip. The data is always processed by the micro-controller in Flirc and its hash is stored in onchip EEPROM memory. You can display all recorded hashes with assigned keys using flirc_util command line program.

Link to comment
Share on other sites

I wonder if purpleman meant something like:

flirc_util monitor

which would just loop displaying messages like "2676D097 pressed".

Couldn't this be emulated by

1. Saving the current config to a tmp file (flirc_util saveconfig)

2: Run a loop where you:

2a: Delete all keys recorded (flirc_util format)

2b: continuously record whatever key (flirc_util record a),

2c: grep the key hash from the "flirc_util keys" list (which only contain one item)

2d: Go to 2a

3: Reload the old config from tmp file (flirc_util loadconfig)

This could pretty easily be converted to a Linux or Windows script.

Link to comment
Share on other sites

@jonascj yes, you're correct. You (or anyone else) are also more than welcome to create such a script and post it on the forum :). But I don't know how long the internal EEPROM memory would last (it is susceptible to wear out in the same manner as all flash memory based devices are). If you really need such script I think a better solution would be not to format Flirc after every key but to first fill it's memory with more keys (or key combinations). That way you can test about 170 key presses before you need to format the device and start again. Also the wear would be much smaller because you wouldn't always use the same spot in the memory to record only single key.

The thing is the hash is not reversible so it doesn't tell you anything about the original signal's properties (like protocol used, button code etc). Flirc's firmware just tries as hard as it can to create an unique hash (sometimes failing for some exotic protocols or signal frequencies) from the raw data it receives from the IR receiver module.

Edited by yawor
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...