0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

赤外線リモコンのデータ2

0
Last updated at Posted at 2026-10-11

データ形式がいろいろあるので、まとめてみます。

まずMSBとLSBがあり、前詰めか後詰めかの4つのパターンがあります。

SONYのTVのPower(12Bit)は

20261010-084530.png

[0xa9, 0x00]
[0x0a, 0x90]
[0x95, 0x00]
[0x00, 0x95]

になります。私は最初の形式(MSB前詰め)を使っています。

githubにあるirdbは

<protocol> <device> <subdevice> <function>

の形式で

Sony12 1 -1 21

となっています。これは下位7Bitが21で上位5Bitが1になるようです。

これに加え、各ビットのusecを並べたものあります。

[2411,580,1220,580,610,580,1221,579,610,580,610,611,1190,610,580,610,1190,611,610,580,610,580,611,610,580]

結構混乱します。

私がMSB前詰めなのはこちらのデータを利用していたためです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?