Eteindre une TV depuis un port HDMI ?

SusR -  
 surs44 -
Bonjour,

J'ai une TV relié à une Eeebox EB1006 via le port HDMI. Je commende l'ensemble VIa une télécommande RF relié sur le port USB de la Eeebox.

J'aimerais savoir comment eteindre la TV depuis la Eeebox ?
- Via le cable HDMI peut-on envoyer cette information ?
- Via le Port Série (qui m'oblige à ajouter des câbles) ?
- Sinon quelle méthode utiliser ?

Matériel :
- LG M2794
- Asus EeeBox EB1006
- télécommande Gyration
Configuration: Windows Vista
Firefox 2.0.0.20

3 réponses

  1. surs44
     
    il suffit de récupérer les codes SerialPortCommunication.zip du lien
    https://www.dreamincode.net/forums/topic/35775-serial-port-communication-in-c%23/

    puis d'ajouter deux boutons avec les commandes suivantes :
    (Les codes ajoutés signifie :
    = [Command1][Command2][ ][Set ID][ ][Data][Cr]
    = "ka 1 00 \n"
    = 0x6b, 0x61, 0x20, 0x01, 0x20, 0x00, 0x00, 0x0d)

    private void btnAllumer_Click(object sender, EventArgs e)
    {
    SerialPort comPort = new SerialPort("COM4", 9600, Parity.None, 8, StopBits.One);
    if (!(comPort.IsOpen == true)) comPort.Open();
    comPort.Write(new byte[] { 0x6b, 0x64, 0x20, 0x00, 0x20, 0x01, 0x01, 0x0d}, 0, 8);
    comPort.Close();
    }

    private void btnEteindre_Click(object sender, EventArgs e)
    {
    SerialPort comPort = new SerialPort("COM4", 9600, Parity.None, 8, StopBits.One);
    if (!(comPort.IsOpen == true)) comPort.Open();
    comPort.Write(new byte[] { 0x6b, 0x61, 0x20, 0x01, 0x20, 0x00, 0x00, 0x0d}, 0, 8);
    comPort.Close();
    }
    1