Jump to content


Photo

Control enigma2 via console


  • Please log in to reply
6 replies to this topic

#1 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 19 May 2013 - 00:21

Hi,

 

perhaps somebody is interested in this:

The attached binary (it's gzipped) simulates a keypress, so you can control enigma2 e.g. via telnet.

 

At first unzip it on the box. Then execute: ./send_key <key>

You can find the key list in the cpp file or in linux/input.h (use google, but not all keys are usable in my program).

E.g. KEY_0, KEY_1, ..., KEY_9, KEY_MENU, KEY_TEXT, KEY_EXIT,...

 

Attached is also the source code. It's free for use.

(currently I use /dev/input/event1. I don't know whether it works for all boxes).

Attached Files


Edited by betacentauri, 19 May 2013 - 00:23.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Control enigma2 via console #2 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 19 May 2013 - 07:48

Nice!

 

I never realised you can send key events to the input system?

 

I think the next step would be a key in enigma to always return to the top level.


Edited by Erik Slagter, 19 May 2013 - 07:48.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Control enigma2 via console #3 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 19 May 2013 - 09:39

You never wondered how the webif sends it's virtual remote control events? ;)

Re: Control enigma2 via console #4 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 19 May 2013 - 10:03

Nice!

 

I never realised you can send key events to the input system?

 

I think the next step would be a key in enigma to always return to the top level.

 

Until yesterday I also didn't know that it is so "easy" :D

A user in another forum asked yesterday if it is possible to control enigma2 via telnet (he didn't say that e2 was not responding any more :rolleyes: ). At first I thought a "echo ... > /dev/..." should do it, but it was a little bit more difficult ;).


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Control enigma2 via console #5 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 19 May 2013 - 10:11

You never wondered how the webif sends it's virtual remote control events? ;)

I was / am under the impression that the webif has all sorts of hooks into enigma...


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Control enigma2 via console #6 buyukbang

  • Senior Member
  • 185 posts

+11
Neutral

Posted 19 May 2013 - 13:11

@betacentauri, really nice work. Thank you for sharing !


It all started with a BigBang...


http://buyukbang.blogspot.com


Re: Control enigma2 via console #7 ajeeb

  • Senior Member
  • 385 posts

0
Neutral

Posted 19 May 2013 - 14:07

thanks for sharing ,

 Btw , current enigma2 pli3 webIF does not have virtual remote control ! maybe I don't see it :(

sometimes you want to navigate at main menu ... for minor things.

 

BR


ET9000,DM500s+usbTTdvb-3600 ,DVB2000,Humax5400, MACbook PRO retina 13", MAC pro 2 x Quad XEON-2.8GB , 8GB ECC, 4TB+FusionDrive(SSD) , LG-24FHD, HD6870,Debian server

"Since the dawn of our species, Man has been blessed with curiosity"



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users