emptris + irhack = broken?

Posted by: charcoalgray99

emptris + irhack = broken? - 24/07/2001 00:20

I ran emptris (bottom of page) again for the first time in awhile tonight. It seems like the app does not respond to any of the remote buttons. My remote works ok in the player software. I have one of Drakino's kernals installed with the irhack for displayserver and custom remotes. Could this be causing the problem?

Posted by: Andrew

Re: emptris + irhack = broken? - 24/07/2001 01:26

I have found this problem too and have reported it to the developer (sorry, forgotten your name!). I've got a standard 1.03 developer image with the old Kenwood remote. I think this must be something to do with 1.03.

Andy

26GB MKII Blue #090000727
Posted by: BryanR

Re: emptris + irhack = broken? - 24/07/2001 02:17

It was Brian Mihulka who wrote it, wasn't it?

Anyway, I found this too. It appears that the 1.03 release remaps the keycodes of the Kenwood remote to a new set, hence the way Emptris stops responding.

You can get round it by temporarily remapping the remote presses to a new set, by sending the new codes to /proc/empeg_ir, then return the remote to normal operation by sending the original mapping when Emptris exits. I think you may need Frank's irhack kernel installed to be able to do this.

The appropriate codes are in the attached file. They only include the buttons needed for Emptris.

However, another problem is that it appears that the remote now sends "Button Down" then "Button Up", for example:
Down = 0x00B94601
Up = 0x80B94601

Emptris, by the look of the code, only checks the last two bytes of the code, so each button press registers twice, which means that moving and rotating don't work properly.

That's about as far as I got into looking into this before getting distracted by something else!

Bryan.


Mark 2 #080000515
Was 12GB Blue, now 42GB Green!

Posted by: charcoalgray99

Re: emptris + irhack = broken? - 24/07/2001 07:49

I'm glad it wasn't something I did. I guess we have to wait for Brian or someone else to make emptris work with the new 1.03 keycodes.

Tom

Posted by: bmihulka

Re: emptris + irhack = broken? - 24/07/2001 08:28

I've been busy with other work and haven't really looked into it yet. But with some info from the earlier post it should be a simple fix. I'll try and take a look later today.

Brian

-See my empeg here-
Posted by: bmihulka

New emptris - 24/07/2001 20:42

I have a new version of emptris that will work with version 1.03 of empeg software. Just click on the link in my sig and go to the bottom of the programing page.

Brian

-See my empeg here-
Posted by: charcoalgray99

Re: New emptris - 24/07/2001 23:56

It worked. Thanks.

Tom


Posted by: BryanR

Re: New emptris - 25/07/2001 01:58

Yes - thanks! Something else to occupy passengers when they get sick of my taste in music!

Bryan.

Mark 2 #080000515
Was 12GB Blue, now 42GB Green!

Posted by: rockstar

Re: New emptris - 25/07/2001 08:02

how do you launch the executable in teh car? is it in a playlist or something,

sorry= never heard of it :)

Posted by: tfabris

Re: New emptris - 25/07/2001 09:38

If you look at my Picker instructions, you'll see that it's possible to launch any program from within a modified init script.

The example that I give contains a 4-selection bootup menu. Only two of those selections are used in the example, there are blank spaces for two more. If you modify the selection file, you can add emptris to one of those blank spaces.

In fact, I'm just about to put Emptris on my empeg for the first time right now.

___________
Tony Fabris
Posted by: tfabris

Re: New emptris - 25/07/2001 10:00

Brian, this version doesn't seem to work with my Rio remote.

Understandable, if you've only got the Kenwood remote to test against. Can anyone give Brian the necessary codes to make it work on the Rio remote as well?

How about making it work with the knob and front panel buttons, too?

Rotating pieces with the knob, then dropping the pieces by pressing the knob, would be awesome.

___________
Tony Fabris
Posted by: bmihulka

Re: New emptris - 25/07/2001 11:16

I pretty much figured that. I'm attaching a program that will show the codes from the remote. If someone with a rio remote will run it and send me the codes or post them here I'll add them. As for buttons and the knob, I think that will be in the new version if I get it done.

Brian

-See my empeg here-

The attachment did not work I'll try again.

Edited by bmihulka on 25/07/01 07:18 PM.

Posted by: bmihulka

Re: New emptris - 25/07/2001 11:19

Second try.

Brian

-See my empeg here-

Forget the attachment click here

Edited by bmihulka on 25/07/01 07:22 PM.

Posted by: tfabris

Re: New emptris - 25/07/2001 12:26

Okay, I ran IRCAT and the output was very very simple to decipher. Here's how it breaks down:

The output is always as follows:

Key down: XX df 20 0
Key up: XX df 20 80

Where XX is different for each key. The key layout is mapped according to the button position on the remote, running from left to right, starting at 0 on the upper-left corner and ending at 17 on the lower-right corner.

The actual key-to-value maps are as follows:

0: The number 1 key.
1: The number 2 key.
2: The number 3 key.
3: Source/Power.
4: The number 4 key.
5: The number 5 key.
6: The number 6 key.
7: Tuner/Bank.
8: The number 7 key.
9: The number 8 key.
a: The number 9 key.
b: Select Mode.
c: Cancel.
d: The number 0 key.
e: Search.
f: Sound/Equalizer.
10: Rewind/>|.
11: Fast Forward/|<.
12: Menu/OK.
13: Volume Up.
14: Info.
15: Visual.
16: Play/Pause/Hush.
17: Volume down.

It may look a little confusing now, but if you look at a picture of the Rio Remote (anyone have a link?) it'll all make sense.


___________
Tony Fabris
Posted by: tfabris

Re: New emptris - 25/07/2001 12:31

Oh, I forgot to give the front-panel-button commands.

Up button:
Key down: 0 0 0 0
Key up: 1 0 0 0 followed by 1 0 0 0 again.

Right button:
Key down: 2 0 0 0
Key up: 3 0 0 0 followed by 3 0 0 0 again.

Left button:
Key down: 4 0 0 0
Key up: 5 0 0 0 followed by 5 0 0 0 again.

Down button:
Key down: 6 0 0 0
Key up: 7 0 0 0 followed by 7 0 0 0 again.

Rotary knob press-in button:
Key down: 8 0 0 0
Key up: 9 0 0 0 followed by 9 0 0 0 again.

Rotary knob rotate left (counterclockwise):
b 0 0 0 for each click

Rotary knob rotate right (clockwise):
a 0 0 0 for each click

And th-th-th-that's all folks!

Wait. How do I exit this program!?!?!?! My drives are RW and I don't want to reboot the empeg! HELP!

___________
Tony Fabris
Posted by: tfabris

Re: New emptris - 25/07/2001 12:34

And I just realized. I think I'm running an IRHACK version of the kernel. Would that affect the output?

Still: Someone help me exit this IRCAT program so I can RWM my drives before rebooting!

___________
Tony Fabris
Posted by: kazama

Re: New emptris - 25/07/2001 12:52

Does this have to be downloaded to a Lynux environment to decompress it? When I pull it down and try to open it on the empeg, it says 'invalid gzip file" when I try and open it with my gzip opener for windows it says the same thing. The downloaded file is abotu 80K in size.

Posted by: tfabris

Re: New emptris - 25/07/2001 12:53

I used WinZip on the PC to extract the emptris file before sending it to the empeg. No problems.

___________
Tony Fabris
Posted by: tfabris

Re: New emptris - 25/07/2001 12:55

Okay, i pressed a bunch of CTRL-letter keys trying to exit IRCAT and now the shell prompt is locked up and won't respond. I may have to reboot the unit.

Anyone have any tips on what I should type at the shell prompt after the reboot? I did a RW and an RWM before installing and running IRCAT. I want to make sure the unit doesn't FSCK every time now.

___________
Tony Fabris
Posted by: kazama

Re: New emptris - 25/07/2001 13:09

Ok that was weird. If i save the file, it has nothing in it. If I tell it to open the file after download, the files are there, very weird. Thanks for the help. Everything is working now.

Posted by: smu

Re: New emptris - 25/07/2001 13:54

Hi Tony.

Sounds like you pressed CTRL-S on the console, which equals to Scroll-Lock. Undo that lock with CTRL-Q.
You probably need to do an fsck anyway, if you reboot the machine while having the partitions r/w mounted. Just quit the player after reboot and do an "fsck /dev/hda5; fsck /dev/hda4; fsck /dev/hdc4" (you have two drives, don't you? If not just omit the hdc4 part). But I think you knew how to do an fsck manually, right?

cu,
sven

proud MkII owner (12GB blue/green/smoked, #080000113)
Posted by: tfabris

Re: New emptris - 25/07/2001 14:34

Yeah, ctrl-Q got me out of the freeze, but I still had no way to exit the program.

I just rebooted and forced an FSCK by running Emplode and synching.

___________
Tony Fabris
Posted by: bmihulka

Re: New emptris - 25/07/2001 21:20

Ctrl-c should have got you out, unless windoze captures that. I'll admit I use minicom under linux and Ctrl-c works.

Brian

-See my empeg here-
Posted by: bmihulka

Re: New emptris - 25/07/2001 21:24

Does anyone have a preference for the buttons? The current version and update for the rio remote will not have programable keys but I was planning on it for the new version to come out at a later date.

Brian

-See my empeg here-
Posted by: tfabris

Re: New emptris - 26/07/2001 09:19

Ctrl-c should have got you out, unless windoze captures that. I'll admit I use minicom under linux and Ctrl-c works.

Heh. Ctrl-C was the first thing I tried. And of course, Hyperterminal uses that as the "Copy to clipboard" function and doesn't offer any way to actually send a Ctrl-C to the unit.

I tried putting a Ctrl-C into a TXT file (I think it's an ascii 03?) and sending that, but it didn't work either.

Next time I'll make sure my drives are RO before I run a new piece of software.


___________
Tony Fabris
Posted by: tfabris

Re: New emptris - 26/07/2001 09:29

Does anyone have a preference for the buttons?

Front panel:

Rotate knob left: Rotate piece left.
Rotate knob right: Rotate piece right.
Press knob: Drop piece.
Up button: Move piece up.
Down button: Move piece down.
Right button: Drop piece.
Left button: nothing.

Rio remote:

Volume up/down: Rotate piece.
Menu-OK/Hush: Move piece up/down.
Rew/Info: Also rotate piece.
FF/Visual: Also move piece up/down.
Cancel/0/Search/Sound: Drop piece.

This scheme allows for you to have the rotation and movement be on whichever side of each other that's most comfortable. It allows either one-handed or two-handed play. And the "Drop" buttons are within easy reach of every other button.

___________
Tony Fabris
Posted by: Tim

Re: New emptris - 26/07/2001 09:57

Left button: nothing.

How about making the Left Button rotate right? I think thats how it was on the //c...

Posted by: tfabris

Re: New emptris - 26/07/2001 10:07

Sure, whatever. I guess that would allow it to work on the Mark1's, huh? My design would have only worked on the Mk2s... you're right.

___________
Tony Fabris
Posted by: bonzi

Re: New emptris - 26/07/2001 10:10

File->Properties->Settings->Function, arrow and ctrl keys act as Terminal

Dragi "Bonzi" Raos
Zagreb, Croatia
Q#5196, MkII#80000376, 18GB green
Posted by: tfabris

Re: New emptris - 26/07/2001 10:27

File->Properties->Settings->Function, arrow and ctrl keys act as Terminal

It was already set that way. It still ate Ctrl-C. Or at least Ctrl-C did nothing to the program running on the empeg.

___________
Tony Fabris
Posted by: bmihulka

Re: New emptris - 26/07/2001 11:51

I'll probably get something thrown together by this weekend. I may work on a new version this weekend as well.

Brian

-See my empeg here-
Posted by: bonzi

Re: New emptris - 26/07/2001 15:58

Hm, it certainly kills the player... Perhaps the program in question ignores SIGINT?

Dragi "Bonzi" Raos
Zagreb, Croatia
Q#5196, MkII#80000376, 18GB green
Posted by: veixl

Re: New emptris - 29/08/2001 19:06

I tried the Emptris out and that's a nice piece of software. I have some wishes.

Would it be great if after the game ends, there would be a screen with my score and options to start over or return to the player.

Now i only see my score from serial log and to start over i have to select Menu > Quit > Emptris again. Or did i make any mistake installing the program?

Actually i would like to adjust the speed to (it does not have to be a menu option. Maybe just an integer after filename when executing the file. The game is little too fast for me as i have not yet comfortable with playing game with that remote.


Veiko
veiko@lc.ee

MK1 #317 - 20GB green
Posted by: bmihulka

Re: New emptris - 30/08/2001 09:28

I'm unofficially working on a new version and have no idea if or when it will be done. I had planned a lot of what you are asking. It took me about 8 hours to throw the first version together and off and on I've fixed some bugs. But the new version looks like it will be a major rewrite and I don't know when I'll get around to it.

Brian

-See my empeg here-