Seite 1 von 2 12 LetzteLetzte
Ergebnis 1 bis 10 von 16
  1. #1
    Anfänger Avatar von tommi32
    Registriert seit
    04.01.2018
    Beiträge
    15
    Thanks (gegeben)
    2
    Thanks (bekommen)
    2
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    VU+ UNO 4K
     
     
    Box 2:
    VU+ ZERO 4K
     
     

    eHdmiCEC 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)
    Its a big probability, the code what i wrote has a wrong structure. I need only the syntax of commands, what i need to put to comand line, to control the CEC protocol. Can someone give me a hint?

    •   Alt Advertising

       

  2. #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
    ReceiverDanke
    I think it's impossible to import the modules or functions outside of e2.

  3. #3
    Anfänger Avatar von tommi32
    Registriert seit
    04.01.2018
    Beiträge
    15
    Thanks (gegeben)
    2
    Thanks (bekommen)
    2
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    VU+ UNO 4K
     
     
    Box 2:
    VU+ ZERO 4K
     
     
    I 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) "

  4. #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
    ReceiverDanke
    Command line = outside e2 process

  5. #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
    ReceiverDanke
    Hey, your idea is not bad. I make a command line interface for send or receive cec messsges - give me one week ...

  6. Thanks Papi2000, el_malto bedankten sich
  7. #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
    ReceiverDanke
    Ok,

    eHdmiCEC via command line-ceccmd.jpg

    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
    the log...
    eHdmiCEC via command line-ceclog.jpg

    [HdmiCec] update log function, command line option added * openatv/enigma2@7ec10c7 * GitHub

  8. Thanks Papi2000, Mugiwara, el_malto, tommi32 bedankten sich
  9. #7
    Senior Mitglied
    Registriert seit
    01.09.2015
    Beiträge
    414
    Thanks (gegeben)
    366
    Thanks (bekommen)
    116
    Total Downloaded
    72,57 MB
    Total Downloaded
    72,57 MB
    ReceiverDanke
    Box 1:
    VU+ Uno 4K SE mit 6.4
     
     
    Box 2:
    Octagon SF8008 Mini mit 6.4
     
     
    Box 3:
    Edision OS Mini mit 6.4
     
     
    Geil, 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 12:19 Uhr)

  10. Thanks iPkay bedankten sich
  11. #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
    ReceiverDanke
    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 mit
    Code:
    echo 0f:82:10:00 >/tmp/hdmicec_cmd
    den HDMI-Port am TV umschalten. Wobei die '1' für Port 1 steht.

    Wenn dein Gerät an einem Switch o.ä. angeschlossen ist, so kannst du mit
    Code:
    echo 0f:81:12:00 >/tmp/hdmicec_cmd
    diesen umschalten. Wobei hier die "2" für den Eingang 2 vo Switch steht.
    Geändert von iPkay (14.10.2019 um 12:42 Uhr)

  12. Thanks el_malto bedankten sich
  13. #9
    Anfänger Avatar von tommi32
    Registriert seit
    04.01.2018
    Beiträge
    15
    Thanks (gegeben)
    2
    Thanks (bekommen)
    2
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    VU+ UNO 4K
     
     
    Box 2:
    VU+ ZERO 4K
     
     
    Okey, 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

    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
    ReceiverDanke
    Update/Flash your Image.


Seite 1 von 2 12 LetzteLetzte

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:08 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,26%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com