Skip to content

Instantly share code, notes, and snippets.

@bakueikozo
Created June 20, 2024 15:03
Show Gist options
  • Save bakueikozo/594a1fa3449b9b58699bab351c072041 to your computer and use it in GitHub Desktop.
Save bakueikozo/594a1fa3449b9b58699bab351c072041 to your computer and use it in GitHub Desktop.
Arduinoで詳細解析 Number Button [1]
Send with: IrSender.sendNEC(0x2DD1, 0x31, <numberOfRepeats>);
Raw result in internal ticks (50 us) - with leading gap
rawData[68]:
-65535
+181,-87
+13,-31 +13,-10 +13,- 9 +13,- 9
+13,-32 +13,- 9 +13,-32 +13,-31
+14,-31 +13,- 9 +14,-31 +13,-32
+13,- 9 +13,-32 +13,- 9 +13,- 9
+13,-32 +13,- 9 +13,- 9 +13,-10
+13,-31 +14,-31 +13,- 9 +13,-10
+12,-10 +13,-32 +12,-32 +14,-31
+13,- 9 +13,- 9 +14,-31 +13,-32
+13
Sum: 1352
Raw result in microseconds - with leading gap
rawData[68]:
-3276750
+9050,-4350
+ 650,-1550 + 650,- 500 + 650,- 450 + 650,- 450
+ 650,-1600 + 650,- 450 + 650,-1600 + 650,-1550
+ 700,-1550 + 650,- 450 + 700,-1550 + 650,-1600
+ 650,- 450 + 650,-1600 + 650,- 450 + 650,- 450
+ 650,-1600 + 650,- 450 + 650,- 450 + 650,- 500
+ 650,-1550 + 700,-1550 + 650,- 450 + 650,- 500
+ 600,- 500 + 650,-1600 + 600,-1600 + 700,-1550
+ 650,- 450 + 650,- 450 + 700,-1550 + 650,-1600
+ 650
Sum: 67600
Result as internal 8bit ticks (50 us) array - compensated with MARK_EXCESS_MICROS=20
uint8_t rawTicks[67] = {181,87, 13,31, 13,10, 13,9, 13,9, 13,32, 13,9, 13,32, 13,31, 14,31, 13,9, 14,31, 13,32, 13,9, 13,32, 13,9, 13,9, 13,32, 13,9, 13,9, 13,10, 13,31, 14,31, 13,9, 13,10, 12,10, 13,32, 12,32, 14,31, 13,9, 13,9, 14,31, 13,32, 13}; // Protocol=NEC Address=0x2DD1 Command=0x31 Raw-Data=0xCE312DD1 32 bits LSB first
Result as microseconds array - compensated with MARK_EXCESS_MICROS=20
uint16_t rawData[67] = {9030,4370, 630,1570, 630,520, 630,470, 630,470, 630,1620, 630,470, 630,1620, 630,1570, 680,1570, 630,470, 680,1570, 630,1620, 630,470, 630,1620, 630,470, 630,470, 630,1620, 630,470, 630,470, 630,520, 630,1570, 680,1570, 630,470, 630,520, 580,520, 630,1620, 580,1620, 680,1570, 630,470, 630,470, 680,1570, 630,1620, 630}; // Protocol=NEC Address=0x2DD1 Command=0x31 Raw-Data=0xCE312DD1 32 bits LSB first
uint16_t address = 0x2DD1;
uint16_t command = 0x31;
uint32_t rawData = 0xCE312DD1;
Pronto Hex as string
char prontoData[] = "0000 006D 0022 0000 015D 00A7 001A 003B 001A 0012 001A 0011 001A 0011 001A 003D 001A 0011 001A 003D 001A 003B 001C 003B 001A 0011 001C 003B 001A 003D 001A 0011 001A 003D 001A 0011 001A 0011 001A 003D 001A 0011 001A 0011 001A 0012 001A 003B 001C 003B 001A 0011 001A 0012 0018 0012 001A 003D 0018 003D 001C 003B 001A 0011 001A 0011 001C 003B 001A 003D 001A 06C3 ";
NEC Format
----------
リモコン DAM-RMG7
Number Button [0]-[9] as treat ASCII code as command (0x30 - 0x39)
[演奏中止] - 0x0
[スタート・やり直し] - 0x1
[クリア] - 0x7
[メモリー・セット] - 0x0B
キー [Down] - 0x05
キー [Up] - 0x04
テンポ [-] - 0x21
テンポ [+] - 0x20
[割り込み] - 0x03
[予約確認] - 0x0A
----------
デンモクのリモコンモード
原曲キー予約:0x08 - [0x30-0x39][0x30-0x39][0x30-0x39][0x30-0x39] 0x3c [0x30-0x39][0x30-0x39] 0x09
※0x08と0x09でチャプター-トレイを挟むと一気に確定させられるっぽい
キー付き予約は原曲予約の前に3バイト
キー付き予約(#7) 0x58 - 0x5F - 0x59 (以下通常予約コード)
キー付き予約(#6) 0x58 - 0x5E - 0x59 (以下通常予約コード)
キー付き予約(#5) 0x58 - 0x5D - 0x59 (以下通常予約コード)
キー付き予約(#4) 0x58 - 0x5C - 0x59 (以下通常予約コード)
キー付き予約(#3) 0x58 - 0x5B - 0x59 (以下通常予約コード)
キー付き予約(#2) 0x58 - 0x5A - 0x59 (以下通常予約コード)
キー付き予約(#1) 0x58 - 0x19 - 0x59 (以下通常予約コード) ???
キー付き予約(b1) 0x58 - 0x17 - 0x59 (以下通常予約コード)
キー付き予約(b2) 0x58 - 0x16 - 0x59 (以下通常予約コード)
キー付き予約(b3) 0x58 - 0x15 - 0x59 (以下通常予約コード)
キー付き予約(b4) 0x58 - 0x14 - 0x59 (以下通常予約コード)
キー付き予約(b5) 0x58 - 0x13 - 0x59 (以下通常予約コード)
キー付き予約(b6) 0x58 - 0x12 - 0x59 (以下通常予約コード)
キー付き予約(b7) 0x58 - 0x11 - 0x59 (以下通常予約コード)
割り込み予約はキー指定の前に0x03(原曲なら0x08の前)
早戻し:0x1A
一時停止:0x1B
早送り:0x1C
原曲キー:0x60
DAM:0x1D
採点:0x1F
ガイドメロディー:0x0D
ガイドボーカル:0x26
ルビ:0xD0
ワイプ:0x0C
カラオケ音量UP:0xAF ,DOWN:0xAD
採点:0x1F
あと回し:0x2F
[A/*]:0x3A
[B/#]:0x3B
予約取り消し:0x07
??? : 0x25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment