Ergebnis 1 bis 10 von 16
Thema: eHdmiCEC via command line
-
07.10.2019, 14:14 #1
- Registriert seit
- 04.01.2018
- Beiträge
- 15
- Thanks (gegeben)
- 2
- Thanks (bekommen)
- 2
- Total Downloaded
- 0
- Total Downloaded
- 0
Box 1:VU+ UNO 4KBox 2:VU+ ZERO 4KeHdmiCEC via command line
Hi everyone.
I tried the HDMITest plugin for testing and experimenting with HDMI CEC commands. Its a good plugin to learn how the CEC protocol works. I can change the HDMI input of TV with this plugin.
But now i want to change the HDMI input via commnad line /telnet/. But i dont now how to start?
I tried to create py script and run it, but it still gave me an error:
Code:from enigma import eHdmiCEC import struct import os eHdmiCEC.getInstance().sendMessage(0, 0x82, 4, 0)
-
Advertising
-
08.10.2019, 14:54 #2
- Registriert seit
- 08.06.2014
- Beiträge
- 2.601
- Thanks (gegeben)
- 778
- Thanks (bekommen)
- 1500
- Total Downloaded
- 22,11 MB
- Total Downloaded
- 22,11 MB
I think it's impossible to import the modules or functions outside of e2.
-
08.10.2019, 16:31 #3
- Registriert seit
- 04.01.2018
- Beiträge
- 15
- Thanks (gegeben)
- 2
- Thanks (bekommen)
- 2
- Total Downloaded
- 0
- Total Downloaded
- 0
ThemenstarterBox 1:VU+ UNO 4KBox 2:VU+ ZERO 4KI dont want from outside e2. I want to simply login to my box using PUTTY via SSH, and execute command like this:
Code:"eHdmiCEC.getInstance().sendMessage(0, 0x82, 4, 0) "
-
08.10.2019, 16:59 #4
- Registriert seit
- 08.06.2014
- Beiträge
- 2.601
- Thanks (gegeben)
- 778
- Thanks (bekommen)
- 1500
- Total Downloaded
- 22,11 MB
- Total Downloaded
- 22,11 MB
Command line = outside e2 process
-
09.10.2019, 00:16 #5
- Registriert seit
- 08.06.2014
- Beiträge
- 2.601
- Thanks (gegeben)
- 778
- Thanks (bekommen)
- 1500
- Total Downloaded
- 22,11 MB
- Total Downloaded
- 22,11 MB
Hey, your idea is not bad. I make a command line interface for send or receive cec messsges - give me one week ...
-
Danke - 2 Thanks
-
11.10.2019, 11:03 #6
- Registriert seit
- 08.06.2014
- Beiträge
- 2.601
- Thanks (gegeben)
- 778
- Thanks (bekommen)
- 1500
- Total Downloaded
- 22,11 MB
- Total Downloaded
- 22,11 MB
Ok,
the help file...
Code:Help for the hdmi-cec command line option ----------------------------------------- Files: - Input file to send the hdmi-cec command line: '/tmp/hdmicec_cmd' - Output file for received hdmi-cec messages: '/tmp/hdmicec_msg' - Error file for hdmi-cec command line errors: '/tmp/hdmicec_cmd_err.log' - This help file: '/tmp/hdmicec_cmd_hlp.txt' Functions: - Help: type 'echo help > /tmp/hdmicec_cmd' to create this file. - Send internal commands: address:command (e.g. type 'echo 00:wakeup > /tmp/hdmicec_cmd' for wakeup the TV device. Available internal commands: 'Active Source' or 'sourceactive' 'Device Vendor ID' or 'vendorid' 'Give Device Power Status' or 'powerstate' 'Give System Audio Mode Status' or 'givesystemaudiostatus' 'Image View On' or 'wakeup' 'Inactive Source' or 'sourceinactive' 'Menu Status Activated' or 'menuactive' 'Menu Status Deactivated' or 'menuinactive' 'Report Physical Address' or 'reportaddress' 'Report Power Status On' or 'poweractive' 'Report Power Status Standby' or 'powerinactive' 'Routing Information' or 'routinginfo' 'Set OSD Name' or 'osdname' 'Set System Audio Mode Off' or 'deactivatesystemaudiomode' 'Set System Audio Mode On' or 'activatesystemaudiomode' 'Standby' or 'standby' 'System Audio Mode Request' or 'setsystemaudiomode' 'User Control Pressed Power Off' or 'keypoweroff' 'User Control Pressed Power On' or 'keypoweron' - Send individual commands: address:command:data (e.g. type 'echo 00:04 > /tmp/hdmicec_cmd' for wakeup the TV device. Available individual commands: http://www.cec-o-matic.com Info: - Input and error file will removed with send a new command line. Output file will removed if not waiting for a message. (If the command was accepted successfully, the input file is deleted and no error file exist.) - Poll time for new command line is 1 second. Maximum wait time for one received message is 3 seconds after send the hdmi-cec command. (After the first incoming message and outside this waiting time no more received messages will be write to '/tmp/hdmicec_msg'.) - Address, command and optional data must write as hex values and text for internal command must write exactly! End
[HdmiCec] update log function, command line option added * openatv/enigma2@7ec10c7 * GitHub
-
Danke - 4 Thanks
-
14.10.2019, 09:41 #7
- Registriert seit
- 01.09.2015
- Beiträge
- 414
- Thanks (gegeben)
- 366
- Thanks (bekommen)
- 116
- Total Downloaded
- 72,57 MB
- Total Downloaded
- 72,57 MB
Box 1:VU+ Uno 4K SE mit 6.4Box 2:Octagon SF8008 Mini mit 6.4Box 3:Edision OS Mini mit 6.4Geil, vielen Dank!
Das ist genau das was ich brauche. Mein TV lässt sich leider nicht über WOL oder http anschalten oder steuern bzw. auf einen bestimmten HDMI Port schalten. Nun kann ich den einfach über die Box steuern.
Leider komme ich nicht so ganz mit den ganzen Codes von der angegebene Seite klar. Kann ich auch irgendwie abfragen welcher HDMI Port gerade an ist?
EDIT: Jetzt habe ich die Seite verstanden. Hat sich also erledigt. Vielen Dank für die super Erweiterung.Geändert von el_malto (14.10.2019 um 11:19 Uhr)
-
Danke - 1 ThanksiPkay bedankten sich
-
14.10.2019, 11:36 #8
- Registriert seit
- 08.06.2014
- Beiträge
- 2.601
- Thanks (gegeben)
- 778
- Thanks (bekommen)
- 1500
- Total Downloaded
- 22,11 MB
- Total Downloaded
- 22,11 MB
Wenn Hdmi-Cec von deinen Geräten unterstützt wird dann muss es auch ohne die Befehlszeile funktionieren.
Es wird eine Message empfangen wenn sich die aktive Quelle ändert, aber direkt abfragen kannst du das glaube ich nicht.
Du kannst mitCode:echo 0f:82:10:00 >/tmp/hdmicec_cmd
Wenn dein Gerät an einem Switch o.ä. angeschlossen ist, so kannst du mitCode:echo 0f:81:12:00 >/tmp/hdmicec_cmd
Geändert von iPkay (14.10.2019 um 11:42 Uhr)
-
Danke - 1 Thanksel_malto bedankten sich
-
14.10.2019, 11:38 #9
- Registriert seit
- 04.01.2018
- Beiträge
- 15
- Thanks (gegeben)
- 2
- Thanks (bekommen)
- 2
- Total Downloaded
- 0
- Total Downloaded
- 0
ThemenstarterBox 1:VU+ UNO 4KBox 2:VU+ ZERO 4KOkey, and now, how can i update my enigma2 (HdmiCec and plugin files)?
in folder lib/python/Components/ and lib/python/Plugins/SystemPlugins/HdmiCEC/ i have only complied .pyo files.
Can you provide me compiled HdmiCec.pyo and plugin.pyo files?
-
14.10.2019, 11:45 #10
- Registriert seit
- 08.06.2014
- Beiträge
- 2.601
- Thanks (gegeben)
- 778
- Thanks (bekommen)
- 1500
- Total Downloaded
- 22,11 MB
- Total Downloaded
- 22,11 MB
Update/Flash your Image.
Lesezeichen