HDMI CEC daemon

о модулях и их работе

Re: HDMI CEC daemon

Postby kulibin » 11 Jan 2020, 23:59

Лог при включении телевизора при работающем плеере и нажатии Viera Link, затем выключении телевизора
Code: Select all
~ # /usr/local/etc/mos/bin/cecd -i -s -c /usr/local/etc/mos/etc/cecd.conf
2020.01.11 22:55:49.760 cecd v0.5.1 (r10013) started.
2020.01.11 22:55:49.761 libcec:debug [libcec_open] open /dev/cec/0
2020.01.11 22:55:49.768 using 5 entries hash table for cec_commands
2020.01.11 22:55:49.769 unable to open UI codes translation target '/tmp/CGI_request'
2020.01.11 22:55:49.770 translation of HDMI-CEC codes will be disabled
2020.01.11 22:55:49.773 libcec:debug [libcec_allocate_logical_address] switched to unregistered logical address
2020.01.11 22:55:49.820 libcec:debug [libcec_get_physical_address] found physical address 1200
2020.01.11 22:55:49.821 libcec:info [libcec_allocate_logical_address] physical address: 1.2.0.0
2020.01.11 22:55:49.821 libcec:debug [libcec_allocate_logical_address] querying logical address 4

2020.01.11 22:55:49.831 libcec:error [realtek_cec_write_message] failed to send CEC message - errno: 1
2020.01.11 22:55:49.835 libcec:debug [libcec_allocate_logical_address] using logical address 4

2020.01.11 22:55:49.835 logical address set to 4
2020.01.11 22:55:49.835 libcec:info [libcec_decode_message]   o 4->F: <Report Physical Address>
                                                                84 12 00 04
2020.01.11 22:55:49.844 libcec:error [realtek_cec_write_message] failed to send CEC message - errno: 1
2020.01.11 22:55:49.844 could not send message
2020.01.11 22:56:02.522 libcec:info [libcec_decode_message]   o F->4: <Vendor Command With ID>
                                                                A0 00 80 45 20 00 01
2020.01.11 22:56:03.844 libcec:info [libcec_decode_message]   o 0->4: <Give Physical Address>
                                                                83
2020.01.11 22:56:03.982 libcec:info [libcec_decode_message]   o 4->F: <Report Physical Address>
                                                                84 12 00 04
2020.01.11 22:56:04.052 libcec:info [libcec_decode_message]   o 0->4: <Give Device Vendor ID>
                                                                8C
2020.01.11 22:56:04.190 libcec:info [libcec_decode_message]   o 4->F: <Device Vendor ID>
                                                                87 86 12 00
2020.01.11 22:56:04.381 libcec:info [libcec_decode_message]   o 0->4: <Vendor Command With ID>
                                                                A0 00 80 45 06 04
2020.01.11 22:56:05.555 libcec:info [libcec_decode_message]   o 0->4: <Vendor Command With ID>
                                                                A0 00 80 45 06 04
2020.01.11 22:56:06.725 libcec:info [libcec_decode_message]   o 0->4: <Vendor Command With ID>
                                                                A0 00 80 45 06 04
2020.01.11 22:56:26.096 libcec:info [libcec_decode_message]   o 0->4: <Give Device Power Status>
                                                                8F
2020.01.11 22:56:26.210 libcec:info [libcec_decode_message]   o 4->0: <Report Power Status>
                                                                90 00
2020.01.11 22:56:26.302 libcec:info [libcec_decode_message]   o 0->4: <Set Stream Path>
                                                                86 12 00
2020.01.11 22:56:26.416 libcec:info [libcec_decode_message]   o 4->F: <Active Source>
                                                                82 12 00
2020.01.11 23:24:21.985 libcec:info [libcec_decode_message]   o 0->4: <Vendor Command With ID>
                                                                A0 00 80 45 20 01 11
2020.01.11 23:24:22.055 libcec:info [libcec_decode_message]   o 0->4: <Standby>
                                                                36
2020.01.11 23:24:22.581 libcec:info [libcec_decode_message]   o 0->4: <Standby>
                                                                36

Плеер при этом не выключается.

Попробовал oui = 0x008045 ; MATSUSHITA ELECTRIC IND. CO
Code: Select all
[device]
  # path of the HDMI-I2C (EDID) device driver for this device
  # /dev/i2c/0 - kernel 2.6.12 rtk MARS
  # /dev/i2c-0 - kernel 2.6.34 rtk SATURN
  path_i2c = "/dev/i2c/0"

  # path of the HDMI-CEC device driver for this device
  # /dev/cec/0 - kernel 2.6.12 rtk MARS
  # /dev/cec-0 - kernel 2.6.34 rtk SATURN
  path = "/dev/cec/0"

  # device type: 0=TV, 1=Recording, 3=Tuner, 4=Playback, 5=Audio
  type = 4

  # device name (1-14 chars)
  name = "MediaPlayer"

  # Device Organizational Universal ID (3 bytes hex) as per:
  # http://standards.ieee.org/develop/regauth/oui/oui.txt
#  oui = 0x001c85 ; Unicorn Korea
  oui = 0x008045 ; MATSUSHITA ELECTRIC IND. CO

[translate]
  # target options
  target = {
    # target type: 0=file, 1=unix socket, 2=command
    type = 1

    # target path. If type=0|1 path to file, if type=2 it's command string
#    path = "/sys/devices/platform/VenusIR/fakekey"
    path = "/tmp/CGI_request"
#    path = "export QUERY_STRING='id=0&command=%s'; /tmp/www/cgi-bin/IpodCGI.cgi"

    # data packet mode: 0=hex, 1=string
    mode = 1

    # for hex mode: size of a data packet for the target
    packet_size = 4

    # maximum time to wait for a sequence completion, in ms
    # if a key is part of a sequence, this is also the delay before it is acted upon.
    timeout = 2000
  }
  # HDMI-CEC User Control Code conversion, as per HDMI v1.3a specs, CEC table 27
  # These are the codes sent by CEC command <User Control Pressed> (0x44)
  ucp_commands = {
    # Sequences can be used if separated by a comma (but _NO_ spaces!)

    0x00 = "select"   ; Select -> Ok
    0x01 = "up"      ; Up
    0x02 = "down"   ; Down
    0x03 = "left"   ; Left
    0x04 = "right"   ; Right

#    0x05 = 0xf30cff00,0xb14eff00 ; Right-Up
#    0x06 = 0xf30cff00,0xb24dff00 ; Right-Down
#    0x07 = 0xfa05ff00,0xb14eff00 ; Left-Up
#    0x08 = 0xfa05ff00,0xb24dff00 ; Left-Down
    0x0d = "return"      ; Exit -> Return

    0x20 = "zero"      ; 0
    0x21 = "one"      ; 1
    0x22 = "two"      ; 2
    0x23 = "three"      ; 3
    0x24 = "four"      ; 4
    0x25 = "five"      ; 5
    0x26 = "six"      ; 6
    0x27 = "seen"      ; 7
    0x28 = "eight"      ; 8
    0x29 = "nine"      ; 9
    0x2A = "subtitle"      ; . (-> Subtitle)

    0x44 = "play"      ; Play
    0x45 = "stop"      ; Stop
    0x46 = "pause"      ; Pause
    0x47 = "search"      ; Record -> search
    0x48 = "frwd"      ; Fast Rewind
    0x49 = "ffwd"      ; Fast Forward

    0x71 = "menu"      ; Blue -> Menu
    0x72 = "option_red"      ; Red
    0x73 = "option_green"   ; Green
    0x74 = "zoom"      ; Yellow -> Zoom
#    0x21,0x22,0x23 = "SEQUENCE 123" ; sample sequence
#    0x22,0x24,0x24 = "SEQUENCE 244" ; sample sequence
#    0x20,0x20,0x20 = 0xbf40686c ; 000 -> Home
  }
  # The following table is used for custom handling of sequences that are not sent
  # by <User Control Pressed>. These include commands like <Standby> (0x36), <Play>
  # (0x41), <Deck Control>+<Stop> (0x42,0x03), as well as <Vendor Remote Button Down>
  # +<Vendor IR Sequence> (0x8A,...)
  # These sequences _MUST_ include the CEC command byte but will NOT override
  # the default handling from cecd, if exists.
  cec_commands = {
#    0x36 = "power"      ; Standby
#    0x41,0x24 = 0xb34cff00 ; Play Forward
#    0x41,0x25 = 0xb34cff00 ; Play Still, i.e. Pause
#    0x42,0x03 = 0xe11eff00 ; Deck Control Stop
    0x8A,0x91 = "guide"      ; 'Back' key from a Samsung IR remote
  }

Безрезультатно.

С другим медиаплеером CEC работает корректно, телевизор команды отдаёт.
Плеер Asus O!Play HDP-R1+внешний eSATA HDD 500 GB (512 MB swap, ext3-раздел под файлы)+внешний USB DVD-RW, прошивка amp_r12_vrt
kulibin
 
Posts: 42
Joined: 03 Oct 2010, 22:24

Re: HDMI CEC daemon

Postby Virtual » 12 Jan 2020, 11:26

Плеер при этом не выключается.
дык выключение закомментировано в конфиге ;)
Code: Select all
#    0x36 = "power"      ; Standby

по логу телик вроде вполне общается с плеером... стрелки пробовал жать и play pause после нажатия Viera Link, и да телик вроде должен увидеть дружественный девайс.

PS коечто нашел на просторах сети :twisted:
## Panasonic
* On Panasonic to enable media control buttons on bottom of the remote, you may have to change the operation mode. To change it, press bottom Power-button, keep i
t pressed, and press 7 3 Stop. After releasing Power-button, Play, Pause, etc
марсы: HDS7 (смотрелка AMP скин vrt уже без вариантов)
HDR12 AMP (обычно сервер с RAM 256 и возможностью подключить 2 SATA диска 2T+)
XTR PRO(AMP, HTTP(S) NFS SMB FTP сервер +trans2.90 + 2 SATA диска 2T+
сатурны: XTR Prodigy, R6S(512Mb_NAND), HD900A(_MD*) прошивка
User avatar
Virtual
 
Posts: 6510
Joined: 01 Oct 2010, 17:17
Location: UFA RU

Previous

Return to Модули

Who is online

Users browsing this forum: No registered users and 1 guest