Click here to go to the forum index Click here for the home page
 
Author Message

<  TAP and patch development  ~  RemExt firmware patch (like RemoteExtender)

Page 1 of 7
Goto page 1, 2, 3, 4, 5, 6, 7  Next
R2-D2
Posted: Thu Sep 06, 2007 9:44 pm Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
The RemExt firmware patch supplies the original (unmapped) key code as param2 in the EVT_KEY events delivered to a TAP's EventHandler(). TAPs can use this extra information to distinguish between (for example) Vol+/-, P+/- and the arrow buttons on the TF5800. The patch is therefore very similar to the main functionality provider by SimonC's RemoteExtender -- the difference is the actual values passed as param2 (the best source of information of this is EMJB's Toppy Key Handling document). This patch supplies the original (TF5000) key code as param2, just like the exTAP_KeyExtend() routine -- although the patch will also give zero when param1 is zero (i.e. a TAP has absorbed the event).

If RemoteExtender is also running then its effect will override the patch (because it produces new events and hides the original ones), and param2 will therefore contain RemoteExtender's lower 0x01NN values.

bdb has created a patch loader TAP to enable users to temporarily patch their firmware, rather than having to flash a patched one (this can be done at startup via a patch_loader.ini file). More tools might follow -- maybe including a way for a TAP to dynamically apply the patch if it's not running (if there's demand for this type of thing).

Example code (rather contrived, just to show all three possibilities):
Code:
if(param2==P2RKEY_Left) // param2 - from this patch or exTAP
{
   // Left was pressed
}
else if(param2==0x103) // param2 - from RemoteExtender
{
   // Left was pressed
}
else if(param2==0 && param1==RKEY_VolDown) // Normal Toppy
{
    //  Could be VolDown or Left
}
(The P2RKEY constants are available in p2rkey_tf5800.h, and they more closely follow the TF5800 key names.)


Last edited by R2-D2 on Fri Sep 07, 2007 7:25 am; edited 1 time in total
View user's profile Send private message Visit poster's website
R2-D2
Posted: Thu Sep 06, 2007 10:36 pm Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
As above.
View user's profile Send private message Visit poster's website
andyrogers
Posted: Fri Sep 07, 2007 5:38 pm Reply with quote
Frequent contributor Joined: 07 Dec 2005 Posts: 814
Hi R2-D2

Could this RE Patch, be adle to detect the MHEG as well?

Thanks

Andy

_________________

Firmware: 5.14.09 Patched
AutoStart Taps: MyStuff v5.52b, eit2mei beta 7.8m7, , Power Manager v1.2, Tap Commander v1.32, TF5000 Display v1.53a, Discription Extender v2.3, SDS 1.3b, QuickJump 1.72
Other Taps: Sudoka, mei2archive, mei2eit, snake, meisearch
View user's profile Send private message
R2-D2
Posted: Fri Sep 07, 2007 6:05 pm Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
andyrogers wrote:
Could this RE Patch, be adle to detect the MHEG as well?
I think the MHEG detection could be done, but it might be better as a separate patch.
View user's profile Send private message Visit poster's website
andyrogers
Posted: Fri Sep 07, 2007 9:01 pm Reply with quote
Frequent contributor Joined: 07 Dec 2005 Posts: 814
So does that mean another patch to be added to the todo list then?

Andy

_________________

Firmware: 5.14.09 Patched
AutoStart Taps: MyStuff v5.52b, eit2mei beta 7.8m7, , Power Manager v1.2, Tap Commander v1.32, TF5000 Display v1.53a, Discription Extender v2.3, SDS 1.3b, QuickJump 1.72
Other Taps: Sudoka, mei2archive, mei2eit, snake, meisearch
View user's profile Send private message
Livy
Posted: Mon Sep 10, 2007 1:37 pm Reply with quote
Frequent contributor Joined: 14 Jul 2006 Posts: 584 Location: Fife, Scotland
at this stage can the remote extender tap be replace by this?

_________________
  • TF5800PVR Black Panther 250GB - 5.13.65 Patched to the hilt - aXeL 1.01
  • Autostart - MyStuff v6.4, Extend v1.7, EPG2MEI v0.96
  • Tap Commander 1.34, TF5000 Display 1.53a, SecCache (UK) v0.4, EIT Sub v0.6
  • Connected via Buffalo Linkstation Live 2TB
View user's profile Send private message
simonc
Posted: Mon Sep 10, 2007 1:41 pm Reply with quote
Frequent contributor Joined: 12 Apr 2005 Posts: 5640 Location: Cheltenham
Not right now as no TAPs have been changed to support it yet. Hopefully Bob will update the next version of MyStuff to support it.
View user's profile Send private message Visit poster's website
R2-D2
Posted: Mon Sep 10, 2007 1:43 pm Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
Livy wrote:
at this stage can the remote extender tap be replace by this?
Not yet -- it requires TAPs to add the slightly different (but orthogonal) support for it. I'd patch the change into my MyStuff.tap, but it's a bit tricky because the constants are 17-bit and the RE constants are less than 16-bit. It would be trivial for BobD to add support though (it's just an extra set of alternatives in the current code that checks the RE versions).
View user's profile Send private message Visit poster's website
chunkywizard
Posted: Mon Sep 10, 2007 5:49 pm Reply with quote
MyStuff Team Joined: 13 May 2005 Posts: 9319 Location: Sindlesham, Berkshire Tx: Hannington
Hey R2,

Bob's off at the mo. Can you just email him what he needs to do (i.e. explicit instructions) and I will make sure he implements it...

CW

_________________
Toppy:TF5800 F/W: 1365PaTcHeD
TAPs: MyStuff | EPG2MEI | FontManager | SecCache UK | Extend | FastScanGUI | EIT_sub_game | MyInfo | ScreenCapture with OSD | MHEG On/Off
MyStuff Manual & Logos | Known Bugs | Recommended F/W
View user's profile Send private message Visit poster's website
R2-D2
Posted: Mon Sep 10, 2007 6:47 pm Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
I'll email him the info, but you've reminded me that a table of RE codes to RemExt/exTAP codes would be handy. I've updated the p2rkey_tf5800.h header file to flag the more significant entries, and made a quick table mapping RE codes, reproduced below (and hopefully they are correct):
Code:
RE Code  RemExt/exTAP define (and code)
-------  ------------------------------
 0x10c   P2RKEY_TvRadio  0x1000e
 0x103   P2RKEY_Left     0x1000f
 0x100   P2RKEY_Up       0x10012
 0x105   P2RKEY_Exit     0x10013
 0x102   P2RKEY_Right    0x10015
 0x11c   P2RKEY_VolDown  0x10017
 0x104   P2RKEY_List     0x10018
 0x101   P2RKEY_Down     0x1001d
 0x109   P2RKEY_VolUp    0x10020
 0x107   P2RKEY_ChUp     0x10021
 0x147   P2RKEY_ChDown   0x10037
View user's profile Send private message Visit poster's website
andyrogers
Posted: Mon Sep 10, 2007 7:34 pm Reply with quote
Frequent contributor Joined: 07 Dec 2005 Posts: 814
R2-D2

Are you also going to be working on a patch for MHEG detection as well, so the keys are passed to the MHEG and not onto the actual just like simon'c RE with MHEG.

Thanks

Andy

_________________

Firmware: 5.14.09 Patched
AutoStart Taps: MyStuff v5.52b, eit2mei beta 7.8m7, , Power Manager v1.2, Tap Commander v1.32, TF5000 Display v1.53a, Discription Extender v2.3, SDS 1.3b, QuickJump 1.72
Other Taps: Sudoka, mei2archive, mei2eit, snake, meisearch
View user's profile Send private message
EMJB
Posted: Mon Sep 10, 2007 7:44 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3643 Location: Maldon Essex
R2-D2 wrote:
I'll email him the info, but you've reminded me that a table of RE codes to RemExt/exTAP codes would be handy.


Isn't the info you want in column 9 of the tables in http://myweb.tiscali.co.uk/emjbtaps/TOPPY_KEY_HANDLING.pdf? If so just need a heading/text change to refer to the patch as well as exTAP.

If not please advise details, and I will add yet another column (and address R2-D2's PM'ed comments on other aspects)

EMJB
View user's profile Send private message
R2-D2
Posted: Mon Sep 10, 2007 7:49 pm Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
EMJB wrote:
Isn't the info you want in column 9 of the tables in http://myweb.tiscali.co.uk/emjbtaps/TOPPY_KEY_HANDLING.pdf?
Yes, and that's been an essential reference. In fact, this patch works the same way as exTAP's and provides the original, unmapped key code (that a TF5000 would get), so Col 8 and 9 refer to the exact same thing.
View user's profile Send private message Visit poster's website
EMJB
Posted: Tue Sep 11, 2007 8:01 am Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3643 Location: Maldon Essex
R2-D2 wrote:
Yes, and that's been an essential reference. In fact, this patch works the same way as exTAP's and provides the original, unmapped key code (that a TF5000 would get), so Col 8 and 9 refer to the exact same thing.


Thanks for that clarification - I must have generated the table layout before realising that the two columns would be identical. I will try to do an update in the next few days.

EMJB
View user's profile Send private message
R2-D2
Posted: Tue Sep 11, 2007 9:00 am Reply with quote
Frequent contributor Joined: 18 Dec 2006 Posts: 12148
andyrogers wrote:
Are you also going to be working on a patch for MHEG detection as well, so the keys are passed to the MHEG and not onto the actual just like simon'c RE with MHEG.
I'll have a look at the MHEG thing, but it was my impression that it was just flagging the state and not fiddling with keys.
View user's profile Send private message Visit poster's website

Display posts from previous:  

All times are GMT + 1 Hour
Page 1 of 7
Goto page 1, 2, 3, 4, 5, 6, 7  Next

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum