Index: c51/YCkbTool.bat
===================================================================
--- /YC1026/YC1086_only_BLE/c51/YCkbTool.bat	(revision 198)
+++ /YC1026/YC1086_only_BLE/c51/YCkbTool.bat	(working copy)
@@ -25,9 +25,8 @@
 copy .\patch\kb.dat + .\patch\rf.dat .\patch\sch.rom 
 
 cd util
-perl DeleteNote.pl ..\patch\sch.rom
+
 perl transform_name2addr.pl ..\patch\sch.rom ..\output\sched.rom ..\patch\memmap.format
-perl sortsched.pl ..\output\sched.rom ..\output\sched.rom
 cd ..
 
 copy .\patch\ramcode.rom .\output\
Index: c51/output/FW
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/output/FW.COD
===================================================================
--- /YC1026/YC1086_only_BLE/c51/output/FW.COD	(revision 198)
+++ /YC1026/YC1086_only_BLE/c51/output/FW.COD	(working copy)
@@ -1,4 +1,4 @@
-LX51 LINKER/LOCATER V4.41                                                               09/16/2020  18:43:12  PAGE 1
+LX51 LINKER/LOCATER V4.41                                                               09/24/2020  19:58:24  PAGE 1
 
 
 
Index: c51/output/FW.HTM
===================================================================
--- /YC1026/YC1086_only_BLE/c51/output/FW.HTM	(revision 198)
+++ /YC1026/YC1086_only_BLE/c51/output/FW.HTM	(working copy)
@@ -25,7 +25,7 @@
 
 <p class="TinyT">
 Created from: <b>LX51 LINKER/LOCATER V4.41</b><br>
-Creation time: <b>09/16/2020  18:43:12</b><p>
+Creation time: <b>09/24/2020  19:58:24</b><p>
 
 <hr>
 
Index: c51/output/FW.MAP
===================================================================
--- /YC1026/YC1086_only_BLE/c51/output/FW.MAP	(revision 198)
+++ /YC1026/YC1086_only_BLE/c51/output/FW.MAP	(working copy)
@@ -1,4 +1,4 @@
-LX51 LINKER/LOCATER V4.41                                                               09/16/2020  18:43:12  PAGE 1
+LX51 LINKER/LOCATER V4.41                                                               09/24/2020  19:58:24  PAGE 1
 
 
 LX51 LINKER/LOCATER V4.41, INVOKED BY:
Index: c51/output/FW.SBR
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/output/eeprom.dat
===================================================================
--- /YC1026/YC1086_only_BLE/c51/output/eeprom.dat	(revision 198)
+++ /YC1026/YC1086_only_BLE/c51/output/eeprom.dat	(working copy)
@@ -14040,36 +14040,6 @@
 7e
 aa
 55
-01
-00
-16
-00
-27
-aa
-55
-09
-00
-a2
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-aa
-55
-02
-00
-dc
-07
-00
-00
-aa
-55
 40
 00
 00
@@ -14142,151 +14112,88 @@
 55
 02
 00
-31
-41
-01
-43
+53
+4d
+20
+00
 aa
 55
-0e
+01
 00
-38
+31
 41
-ff
-ff
-8f
-f8
-83
-9d
-59
-82
-36
-08
-c2
-08
-66
-22
+01
 aa
 55
-1b
-00
-4a
-41
-40
-25
-00
-12
-00
-00
-02
-12
-00
-00
 02
 00
-00
-20
-00
-00
-20
-20
-00
-02
-24
-80
+13
+42
+40
 03
-00
-06
-70
-4f
 aa
 55
-05
+01
 00
-6e
+f7
 41
-80
-00
-00
-00
-01
+0a
 aa
 55
-03
+02
 00
 f5
 41
 10
 00
-0a
 aa
 55
-0b
-00
-13
-42
-40
-03
+01
 00
-8f
-10
-ce
+33
+41
 00
-0a
-0b
-ef
-0f
 aa
 55
-05
+02
 00
-80
-42
-0e
+b1
+4c
 00
-01
 00
-01
 aa
 55
-02
+03
+00
+4a
+41
+40
+25
 00
-9b
-42
-30
-3f
 aa
 55
-01
+06
 00
-aa
-42
-20
+40
+41
+36
+08
+c2
+08
+66
+22
 aa
 55
-1c
+0f
 00
-d9
-43
-1f
 02
-01
-05
-03
-19
-c1
-03
-03
-03
-12
-18
-0f
-09
+47
+0e
 42
 54
-34
+33
 2e
-32
+30
 20
 4b
 65
@@ -14298,366 +14205,329 @@
 64
 aa
 55
-11
+03
 00
-f9
-43
-1f
-0f
-09
+80
 42
-54
-34
-2e
-32
-20
-4b
-65
-79
-62
-6f
-61
-72
-64
+0e
+00
+01
 aa
 55
-0f
+01
 00
-19
-44
-0e
+84
 42
-54
-34
-2e
-32
-20
-4b
-65
-79
-62
-6f
-61
-72
-64
+01
 aa
 55
 01
 00
-c2
-44
-14
+47
+47
+0a
 aa
 55
 01
 00
-dd
-44
-01
+dc
+47
+00
 aa
 55
 01
 00
-e4
-44
-07
+f6
+47
+01
 aa
 55
-06
+01
 00
-f9
-44
-11
-46
-34
-54
-77
-dd
+72
+41
+01
 aa
 55
-ee
-01
-04
-45
-01
+0e
+00
+5b
+47
+06
+03
+11
 00
 00
-28
-02
 01
-18
 02
+10
+24
+11
 00
-03
-28
+12
 01
-20
-03
 00
-05
-2a
+aa
+55
 01
 00
-04
+71
+47
 00
+aa
+55
+76
 02
-29
-02
-00
-00
-05
+11
+48
+04
 00
+11
+01
 00
-28
+10
 02
+11
+24
 00
-18
-06
-00
-03
-28
 01
-02
-07
 00
 00
-2a
-0e
-42
-54
-34
-2e
-32
-20
-4b
-65
-79
-62
-6f
-61
-72
-64
-08
-00
-03
-28
+36
 01
-02
+b6
 09
 00
-01
-2a
-02
-c1
-03
+00
 0a
 00
-03
-28
 01
-02
-0b
-00
-04
-2a
-08
-06
 00
-06
 00
-64
+09
 00
-2c
 01
-0c
-00
-00
-28
-02
-0a
-18
-0d
-00
+35
 03
-28
-01
-02
-0e
+19
+11
+24
+09
 00
-29
-2a
+04
+35
+0d
+35
 06
-59
-69
-43
-68
-69
-70
-0f
-00
-03
-28
+19
 01
-02
-10
 00
-50
-2a
-07
-02
-e8
-04
-21
-70
-01
+09
 00
 11
+35
+03
+19
 00
+11
+09
 00
-28
+05
+35
+03
+19
+10
 02
-12
-18
-12
+09
 00
-03
-28
-01
 06
-13
-00
-4e
-2a
-01
-01
-14
+35
+09
+09
+65
+6e
+09
 00
-03
-28
+6a
+09
 01
-12
-15
-00
-4d
-2a
-08
-00
-00
-00
-00
 00
+09
 00
-00
-00
-16
-00
-02
-29
-02
-00
-00
-17
-00
+09
+35
 08
-29
-02
-01
-01
-18
-00
-03
-28
-01
-12
+35
+06
 19
+11
+24
+09
+01
 00
-4d
-2a
-05
-00
-00
-00
-00
-00
-1a
-00
-02
-29
-02
+09
 00
+0d
+35
+0f
+35
+0d
+35
+06
+19
+01
 00
-1b
+09
 00
-08
-29
-02
+13
+35
 03
-01
-1c
+19
 00
-03
-28
+11
+09
 01
-12
-1d
-00
-4d
-2a
-02
-00
-00
-1e
-00
-02
-29
-02
-00
-00
-1f
 00
+25
+3d
+42
+72
+6f
+61
+64
+63
+6f
+6d
+20
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+57
+69
+72
+65
+6c
+65
+73
+73
+20
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+09
+01
+01
+25
 08
-29
-02
-02
+4b
+65
+79
+62
+6f
+61
+72
+64
+09
 01
+02
+25
+10
+42
+72
+6f
+61
+64
+63
+6f
+6d
+20
+43
+6f
+72
+70
+2e
+20
 20
+09
+02
 00
-03
-28
+09
 01
-0e
-21
 00
-4d
-2a
+09
 02
-00
-00
-22
-00
+01
+09
+01
+11
+09
 02
-29
 02
-00
-00
-23
-00
 08
-29
+40
+09
+02
+03
+08
+21
+09
 02
+04
+28
 01
+09
 02
-24
-00
-03
+05
 28
 01
-0a
+09
+02
+06
+35
+a5
+35
+a3
+08
+22
 25
-00
-4b
-2a
-a0
+9f
 05
 01
 09
@@ -14712,9 +14582,8 @@
 08
 15
 00
-26
+25
 ff
-00
 05
 07
 19
@@ -14818,171 +14687,83 @@
 06
 c0
 c0
-26
-00
-03
-28
-01
+09
 02
-27
-00
-4a
-2a
+07
+35
+08
+35
+06
+09
 04
-11
+09
+09
 01
 00
+09
+02
+0b
+09
 01
-28
 00
-03
+09
+02
+0c
+09
+0c
+80
+09
+02
+0d
 28
-01
-04
-29
-00
-4c
-2a
-01
-00
-2a
-00
 00
+09
+02
+0e
 28
+01
+09
 02
 0f
+09
+03
 18
-2b
+09
+02
+10
+09
+00
 00
 03
-28
-01
+10
+02
 12
-2c
 00
-19
-2a
+00
 01
-64
-2d
 00
-02
-29
-02
+01
 00
+01
+36
+00
+a1
+09
 00
 00
+0a
 00
-aa
-55
 01
 00
-f9
-46
-50
-aa
-55
-0f
-00
-02
-47
-0e
-42
-54
-33
-2e
-30
-20
-4b
-65
-79
-62
-6f
-61
-72
-64
-aa
-55
-01
-00
-47
-47
-0a
-aa
-55
-10
-00
-59
-47
-11
-48
-06
-03
-11
-00
-00
-01
-02
-10
-24
-11
-00
-12
-01
-00
-aa
-55
-02
-00
-f6
-47
-01
-ff
-aa
-55
-01
-00
-fd
-47
-ff
-aa
-55
-8a
-02
-11
-48
-04
-00
-11
-01
-00
-10
-02
-11
-24
-00
-01
-00
-00
-36
-01
-b6
-09
-00
-00
-0a
-00
-01
-00
-00
-09
+01
+09
 00
 01
 35
 03
 19
-11
-24
+12
+00
 09
 00
 04
@@ -14995,20 +14776,12 @@
 00
 09
 00
-11
+01
 35
 03
 19
 00
-11
-09
-00
-05
-35
-03
-19
-10
-02
+01
 09
 00
 06
@@ -15031,36 +14804,16 @@
 35
 06
 19
-11
-24
-09
-01
+12
 00
 09
-00
-0d
-35
-0f
-35
-0d
-35
-06
-19
 01
 00
 09
-00
-13
-35
-03
-19
-00
-11
-09
 01
 00
 25
-3d
+2f
 42
 72
 6f
@@ -15089,7 +14842,6 @@
 73
 73
 20
-20
 4b
 65
 79
@@ -15099,29 +14851,16 @@
 72
 64
 20
+50
+6e
+50
 20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
+53
+65
+72
+76
+65
+72
 09
 01
 01
@@ -15136,69 +14875,419 @@
 72
 64
 09
+02
+00
+09
 01
+03
+09
 02
-25
-10
+01
+09
+04
+e8
+09
+02
+02
+09
+70
+21
+09
+02
+03
+09
+00
+01
+09
+02
+04
+28
+01
+09
+02
+05
+09
+00
+02
+00
+aa
+55
+02
+00
+59
+47
+11
+48
+aa
+55
+01
+00
+32
+41
+43
+aa
+55
+01
+00
+fb
+41
+00
+aa
+55
+08
+00
+38
+41
+ff
+ff
+8f
+f8
+83
+9d
+59
+82
+aa
+55
+01
+00
+dc
+07
+00
+aa
+55
+01
+00
+a2
+00
+00
+aa
+55
+01
+00
+dd
+07
+00
+aa
+55
+01
+00
+16
+00
+27
+aa
+55
+01
+00
+fd
+47
+ff
+aa
+55
+01
+00
+f7
+47
+ff
+aa
+55
+01
+00
+6e
+41
+80
+aa
+55
+02
+00
+a2
+4b
+02
+01
+aa
+55
+ee
+01
+04
+45
+01
+00
+00
+28
+02
+01
+18
+02
+00
+03
+28
+01
+20
+03
+00
+05
+2a
+01
+00
+04
+00
+02
+29
+02
+00
+00
+05
+00
+00
+28
+02
+00
+18
+06
+00
+03
+28
+01
+02
+07
+00
+00
+2a
+0e
 42
-72
+54
+34
+2e
+32
+20
+4b
+65
+79
+62
 6f
 61
+72
 64
-63
-6f
-6d
-20
+08
+00
+03
+28
+01
+02
+09
+00
+01
+2a
+02
+c1
+03
+0a
+00
+03
+28
+01
+02
+0b
+00
+04
+2a
+08
+06
+00
+06
+00
+64
+00
+2c
+01
+0c
+00
+00
+28
+02
+0a
+18
+0d
+00
+03
+28
+01
+02
+0e
+00
+29
+2a
+06
+59
+69
 43
-6f
-72
+68
+69
 70
-2e
-20
-20
-09
+0f
+00
+03
+28
+01
+02
+10
+00
+50
+2a
+07
+02
+e8
+04
+21
+70
+01
+00
+11
+00
+00
+28
+02
+12
+18
+12
+00
+03
+28
+01
+06
+13
+00
+4e
+2a
+01
+01
+14
+00
+03
+28
+01
+12
+15
+00
+4d
+2a
+08
+00
+00
+00
+00
+00
+00
+00
+00
+16
+00
+02
+29
+02
+00
+00
+17
+00
+08
+29
+02
+01
+01
+18
+00
+03
+28
+01
+12
+19
+00
+4d
+2a
+05
+00
+00
+00
+00
+00
+1a
+00
+02
+29
 02
 00
-09
-01
 00
-09
+1b
+00
+08
+29
 02
+03
 01
-09
+1c
+00
+03
+28
 01
-11
-09
+12
+1d
+00
+4d
+2a
+02
+00
+00
+1e
+00
 02
+29
 02
+00
+00
+1f
+00
 08
-40
-09
+29
 02
+02
+01
+20
+00
 03
-08
+28
+01
+0e
 21
-09
+00
+4d
+2a
+02
+00
+00
+22
+00
+02
+29
+02
+00
+00
+23
+00
+08
+29
 02
-04
-28
 01
-09
 02
-05
+24
+00
+03
 28
 01
-09
-02
-06
-35
-a5
-35
-a3
-08
-22
+0a
 25
-9f
+00
+4b
+2a
+a0
 05
 01
 09
@@ -15253,8 +15342,9 @@
 08
 15
 00
-25
+26
 ff
+00
 05
 07
 19
@@ -15358,160 +15448,210 @@
 06
 c0
 c0
-09
+26
+00
+03
+28
+01
 02
-07
-35
-08
-35
-06
-09
+27
+00
+4a
+2a
 04
-09
-09
+11
 01
 00
-09
-02
-0b
-09
 01
-00
-09
-02
-0c
-09
-0c
-80
-09
-02
-0d
 28
 00
-09
-02
-0e
+03
 28
 01
-09
+04
+29
+00
+4c
+2a
+01
+00
+2a
+00
+00
+28
 02
 0f
-09
-03
 18
-09
-02
-10
-09
-00
+2b
 00
 03
-10
-02
+28
+01
 12
+2c
 00
-00
+19
+2a
 01
+64
+2d
 00
-01
+02
+29
+02
 00
-01
-36
 00
-a1
-09
 00
 00
-0a
+aa
+55
+01
 00
+6a
+4c
+17
+aa
+55
 01
 00
+f9
+46
+50
+aa
+55
 01
-09
 00
+c2
+44
+14
+aa
+55
+06
+00
+f9
+44
+11
+46
+34
+54
+77
+dd
+aa
+55
 01
-35
-03
-19
-12
 00
-09
+7e
+4c
 00
-04
-35
-0d
-35
+aa
+55
 06
-19
-01
 00
-09
+b8
+4c
+15
+00
+1d
 00
-01
-35
-03
 19
 00
-01
-09
+aa
+55
+02
 00
-06
-35
-09
-09
-65
-6e
-09
+3e
+4d
+2c
 00
-6a
-09
+aa
+55
 01
 00
-09
+60
+4c
+50
+aa
+55
+10
+00
+6c
+4c
+0c
+00
+05
+00
+12
+b4
+08
+00
+08
 00
-09
-35
 08
-35
-06
-19
-12
 00
-09
-01
 00
-09
+00
+2c
 01
+aa
+55
+0f
 00
-25
-2f
+19
+44
+0e
 42
-72
-6f
-61
-64
-63
-6f
-6d
+54
+34
+2e
+32
 20
-42
-6c
-75
+4b
 65
-74
-6f
+79
+62
 6f
-74
-68
-20
-57
-69
+61
 72
-65
-6c
-65
-73
-73
+64
+aa
+55
+01
+00
+e4
+44
+07
+aa
+55
+01
+00
+dd
+44
+01
+aa
+55
+1c
+00
+d9
+43
+1f
+02
+01
+05
+03
+19
+c1
+03
+03
+03
+12
+18
+0f
+09
+42
+54
+34
+2e
+32
 20
 4b
 65
@@ -15521,22 +15661,21 @@
 61
 72
 64
-20
-50
-6e
-50
-20
-53
-65
-72
-76
-65
-72
+aa
+55
+11
+00
+f9
+43
+1f
+0f
 09
-01
-01
-25
-08
+42
+54
+34
+2e
+32
+20
 4b
 65
 79
@@ -15545,152 +15684,141 @@
 61
 72
 64
-09
-02
-00
-09
-01
-03
-09
-02
-01
-09
+aa
+55
 04
-e8
-09
-02
-02
-09
-70
-21
-09
-02
-03
-09
 00
-01
+57
+4d
+20
+20
 09
-02
+15
+aa
+55
 04
-28
-01
-09
-02
-05
-09
-00
-02
 00
-55
-d0
-56
-c0
-57
+91
 4c
-58
-6c
-59
-50
+9f
+3e
+cd
+4d
+aa
 55
-d0
-56
-c0
-57
+01
+00
+8f
 4c
-58
-6c
-59
-50
+01
 aa
 55
-02
+08
 00
-a2
-4b
-02
-01
+16
+42
+8f
+10
+ce
+00
+0a
+0b
+ef
+0f
 aa
 55
 01
 00
-60
-4c
-50
+f8
+41
+00
 aa
 55
-12
+08
+00
+a3
 00
-6a
-4c
-17
 00
-0c
 00
-05
 00
-12
-b4
-08
 00
-08
 00
-08
 00
 00
 00
-2c
-01
 aa
 55
-0b
+02
 00
-8f
-4c
-01
+5d
+41
+02
+24
+aa
+55
+08
 00
-9f
-3e
-cd
 4d
+41
+12
+00
+00
+02
+12
+00
+00
+02
+aa
+55
+02
+00
+5b
+41
+20
 00
+aa
+55
+04
 00
+57
+41
+20
 00
 00
-13
+20
 aa
 55
-06
-00
-b8
-4c
-15
-00
-1d
+04
 00
-19
+5f
+41
+80
+03
 00
+06
 aa
 55
 02
 00
-3e
-4d
-2c
+98
+4c
 00
+13
 aa
 55
-08
-00
-53
-4d
-20
-00
+02
 00
+9b
+42
+30
+3f
+aa
+55
+01
 00
+aa
+42
 20
-20
-09
-15
 aa
 55
 7f
@@ -15824,8 +15952,48 @@
 6b
 30
 ff
-2d
+aa
+55
 02
+00
+63
+41
+70
+4f
+aa
+55
+0a
+00
+91
+4a
+55
+d0
+56
+c0
+57
+4c
+58
+6c
+59
+50
+aa
+55
+0a
+00
+87
+4a
+55
+d0
+56
+c0
+57
+4c
+58
+6c
+59
+50
+73
+3c
 ff
 ff
 ff
@@ -16212,173 +16380,5 @@
 ff
 ff
 ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-a5
-bb
+61
+68
Index: c51/output/sched.rom
===================================================================
--- /YC1026/YC1086_only_BLE/c51/output/sched.rom	(revision 198)
+++ /YC1026/YC1086_only_BLE/c51/output/sched.rom	(working copy)
@@ -1,211 +1,391 @@
-0016:27
-
-00a2:00
-00a3:00 00 00 00 00 00 00 00
-07dc:00
-07dd:00
 4000:
-2d   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-35   
-00   
-00   
-00   
-4f   
-02   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-04   
-c8   
-00   
-5c   
-40   
-00   
-3a   
-ce   
-00   
-00   
-80   
-e0   
-00   
-00   
-00   
-00   
-00   
-20   
-00   
-a0   
-01   
-00   
-00   
-00   
-00   
-00   
+2d   #mem_patch00
+00   #mem_patch01
+00   #mem_patch02
+00   #mem_patch03
+00   #mem_patch04
+00   #mem_patch05
+00   #mem_patch06
+00   #mem_patch07
+00   #mem_patch08
+00   #mem_patch09
+00   #mem_patch0A
+00   #mem_patch0B
+00   #mem_patch0C
+00   #mem_patch0D
+00   #mem_patch0E
+00   #mem_patch0F
+00   #mem_patch10
+00   #mem_patch11
+35   #mem_patch12
+00   #mem_patch13
+00   #mem_patch14
+00   #mem_patch15
+4f   #mem_patch16
+02   #mem_patch17
+00   #mem_patch18
+00   #mem_patch19
+00   #mem_patch1A
+00   #mem_patch1B
+00   #mem_patch1C
+00   #mem_patch1D
+00   #mem_patch1E
+00   #mem_patch1F
+00   #mem_patch20
+00   #mem_patch21
+00   #mem_patch22
+00   #mem_patch23
+00   #mem_patch24
+00   #mem_patch25
+04   #mem_patch26
+c8   #mem_patch27
+00   #mem_patch28
+5c   #mem_patch29
+40   #mem_patch2A
+00   #mem_patch2B
+3a   #mem_patch2C
+ce   #mem_patch2D
+00   #mem_patch2E
+00   #mem_patch2F
+80   #mem_patch30
+e0   #mem_patch31
+00   #mem_patch32
+00   #mem_patch33
+00   #mem_patch34
+00   #mem_patch35
+00   #mem_patch36
+20   #mem_patch37
+00   #mem_patch38
+a0   #mem_patch39
+01   #mem_patch3A
+00   #mem_patch3B
+00   #mem_patch3C
+00   #mem_patch3D
+00   #mem_patch3E
+00   #mem_patch3F
 
 
-4131:01
-43
-4138:
-ff
-ff
-8f
-f8	
-83	
-9d
-59
-82
+4d53:  20 00		# 20:10ms  30:15ms
 
+4131:01
+4213:40
+4214:03
+41f7:0a
+41f5:10 00
+4133:00
+4cb1:00 00
 
-36 08 c2 08 66 22    
 414a: 40 25 00
 
-12 00
-00 02
-12 00
-00 02
-00 00 
-20 00
-00 20
-20 00
-02
-24
-80 03
-00 06
-70 4f
+4140:36 08 c2 08 66 22    
+4702:
+'BT3.0 Keyboard
+4280:0e 00
+4282:01
+4284:01
+4747:0a
+47dc:00
+47f6:01
 
-416e:80
+4172:01
 
+475b:
+06
+03#Type: Complete list of 16-bit UUIDs
+1100 0001 0210 2411  0012  0100
 
-00 00 00 
-01
+4771:00
 
-41f5:10 00
-0a
-4213:40
-03
-00 
-8f 10 ce
-00 0a 0b ef 0f
-4280:0e 00
-01
-00 
-01
-429b:30 3f
-42aa:20
+#keyboard uuid
+4811:
+#uuids
+04 0011 0100 1002 1124
 
-43d9:1f
+#handle
+00010000
 
+#total length
+3601b6
 
-02 01 05 03 19 c1 03 03 03 12 18
-'\09BT4.2 Keyboard
+#attribute start, first 4 digit is attribute ID
+090000 0a 00010000
+090001 3503 191124
+090004 350d 3506 190100 090011 3503 190011
+090005 3503 191002
+090006 3509 09656e 09006a 090100
+090009 3508 3506 191124 090100
+09000d 350f 350d 3506 190100 090013 3503 190011
 
-43f9:1f
+#Service Name
+#090100 2517
+#'Apple Wireless Keyboard
+#41 70 70 6c 65 20 57 69 72 65 6c 65 73 73 20 4b 65 79 62 6f 61 72 64
+#Service Name
+090100 253d
+#'Broadcom Bluetooth Wireless  Keyboard                        
+4272 6f61 6463 6f6d 2042 6c75 6574 6f6f 7468 2057 6972 656c 6573 7320 204b 6579 626f 6172 6420 
+2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 20
 
-'\09BT4.2 Keyboard
+#Service Description
+090101 2508
+#'Keyboard
+4b6579626f617264
 
-4419:
-'BT4.2 Keyboard
+#Provider Name
+#090102 250a
+#'Apple Inc.
+#41 70 70 6c 65 20 49 6e 63 2e
+#Provider Name
+090102 2510
+#'Broadcom Corp.  
+4272 6f61 6463 6f6d 2043 6f72 702e 2020
 
-44c2:14
-44dd:01
+090200 090100
+090201 090111
+090202 0840
+090203 0821
+090204 2801
+090205 2801
+090206 35a5 35a3 0822 259f
 
-44e4:07 
-44f9:11 46 34 54 77 dd
+# hid descriptor
+0501 # Usage Page(Generic Desktop)
+0906 # Usage(Keyboard)
+a101 # Collection(Application)
+8501 # Report ID(1)
+7501 # Report Size(1)
+9508 # Report Count(8)
+0507 # Usage Page(Keyboard/Keypad)
+19e0 # Usage Minimum(224)
+29e7 # Usage Maximum(231)
+1500 # Logical Minimum(0)
+2501 # Logical Maximum(1)
+8102 # Input(Data Variable Absolute) ; Modifier byte
+9501 # Report Count(1)
+7508 # Report Size(8)
+8103 # Input(Constant Variable Absolute) ; 
+9505 # Report Count(5)
+7501 # Report Size(1)
+0508 # Usage Page(LEDs)
+1901 # Usage Minimum(1)
+2905 # Usage Maximum(5)
+9102 # Output(Data Variable Absolute) ; LED report
+9501 # Report Count(1)
+7503 # Report Size(3)
+9103 # Output(Constant Variable Absolute) ; 
+9506 # Report Count(6)
+7508 # Report Size(8)
+1500 # Logical Minimum(0)
+25ff # Logical Maximum(255)
+0507 # Usage Page(Keyboard/Keypad)
+1900 # Usage Minimum(0)
+29ff # Usage Maximum(255)
+8100 # Input(Data Array) ; Key arrarys 6 bytes
+c0 # End Collection
+
+05 0c  		
+09 01  		
+a1 01	
+85 02			
+19 00  		
+2a ff 03 
+15 00 
+26 ff 03		
+95 01  		
+75 10  			
+81 00  		
+c0
 
+#29
+#05 01
+#09 80
+#A1 01
+#85 03
+#15 00
+#25 01
+#75 01
+#95 03
+#19 81
+#29 83
+#81 02
+#95 01
+#75 05
+#81 03
+#C0
+
+#69
+05 01 # Usage Page(Generic Desktop)
+09 02 # Usage(Mouse)
+a1 01 # Collection(Application)
+85 03 # Report ID(3)
+09 01 # Usage(Pointer)
+a1 00 # Collection(Physical)
+05 09 # Usage Page(Buttons)
+19 01 # Usage Minimum(1)
+29 08 # Usage Maximum(8)
+15 00 # Logical Minimum(0)
+25 01 # Logical Maximum(1)
+75 01 # Report Size(1)
+95 08 # Report Count(8)
+81 02 # Input(Data Variable Absolute)
+05 01 # Usage Page(Generic Desktop)
+09 30 # Usage(X)
+09 31 # Usage(Y)
+16 01 80  #Logical Minimum (-32767)
+26 FF 7F #Logical Maximum (32767) 
+75 10 # Report Size(16)
+95 02 # Report Count(2)
+81 06 # Input(Data Variable Relative)
+09 38 # Usage(Wheel)
+15 81 # Logical Minimum(-127)
+25 7f # Logical Maximum(127)
+75 08 # Report Size(8)
+95 01 # Report Count(1)
+81 06 # Input(Data Variable Relative)
 
-4504:
+05 0c  #USAGE_PAGE(Consumer Devices)
+0a 38 02
+95 01   #REPORT_COUNT (1)	
+81 06  #INPUT (Data,Var,Rel)
 
+c0 # End Collection
+c0 # End Collection
 
-01 00 00 28 02 01 18
+090207 3508 3506 090409 090100
+09020b 090100
+09020c 090c80
+09020d 2800
+09020e 2801
+09020f 090318
+090210 090000
+#attribute end
+
+#uuids for pnpInformation	
+03 1002 1200 0001
+
+#handle
+00010001
+
+#total length 90 bytes
+3600a1
+
+#attribute list
+090000 0a00010001
+090001 3503 191200
+090004 350d 3506 190100 090001 3503 190001
+090006 3509 09656e 09006a 090100
+090009 3508 3506 191200 090100
+090100 252f42726f6164636f6d20426c7565746f6f746820576972656c657373204b6579626f61726420506e5020536572766572
+090101 25084b6579626f617264
+090200 090103
+090201# VendorID
+0904e8
+090202#ProductID
+097021
+090203 090001
+090204 2801
+090205 090002
 
+#attribute end
+00
+
+#Auto reconnection after power on
+
+4759:11 48
+#Auto reconnection after power on
+4132:43
+41fb:0
+4138:
+ff
+ff
+8f
+f8	#fe--EDR  F8--BR
+83	#AFHclose 83
+9d
+59
+82
+
+#bluetootch param init
+07dc:00
+00a2:00
+07dd:00
+0016:27
+
+47fd:ff
+47f7:ff
+
+416e:80
+
+
+4ba2:02 01
+
+
+#attribute list: handle 2bytes, uuid 2bytes, length 1bytes, attribute Nbytes
+4504:
+
+#Primary service: GATT
+01 00 00 28 02 01 18
+#Characteristic: Service changed
 02 00 03 28 01 20
 03 00 05 2a 01 00
-
+#Client Characteristic Configuration
 04 00 02 29 02 00 00
 
-
+#Primary Service: GAP
 05 00 00 28 02 00 18 
-
+#Characteristic: Device Name
 06 00 03 28 01 02 
 07 00 00 2a 
 'BT4.2 Keyboard
 
-
+#Characteristic: Appearance
 08 00 03 28 01 02 
 09 00 01 2a 02 c1 03 
-
+#Characteristic: Peripheral Preferred Connection Parameters
 0a 00 03 28 01 02
-0b 00 04 2a 08 06 00 06 00 64 00 2c 01 
-
+0b 00 04 2a 08 06 00 06 00 64 00 2c 01 # interval 6ms, latency 100, timeout 300
 
+#Primary Service: Device Information
 0c 00 00 28 02 0a 18
-
+#Manufacturer Name
 0d 00 03 28 01 02
-0e 00 29 2a 06 59 69 43 68 69 70			
-
+0e 00 29 2a 06 59 69 43 68 69 70			#IOS 13.5.1
+#Characteristic: pnp id
 0f 00 03 28 01 02
-10 00 50 2a 07 02 e8 04 21 70 01 00		
-
+10 00 50 2a 07 02 e8 04 21 70 01 00		# SAMSUNG soft keyboard,setup shortcuts
 
+#Primary service: HID
 11 00 00 28 02 12 18
-
+#Characteristic:Protocol mode
 12 00 03 28 01 06
 13 00 4e 2a 01 01
-
+#Characteristic: hid report
 14 00 03 28 01 12   
-15 00 4d 2a 08 00 00 00 00 00 00 00 00	
+15 00 4d 2a 08 00 00 00 00 00 00 00 00	#hid report	led handle write
 16 00 02 29 02 00 00	
-17 00 08 29 02 01 01	
-
+17 00 08 29 02 01 01	#Report ID: 1	Report Type: Input
+#Characteristic:hid report
 18 00 03 28 01 12  
 19 00 4d 2a 05 00 00 00 00 00
 1a 00 02 29 02 00 00
-1b 00 08 29 02 03 01	
-
+1b 00 08 29 02 03 01	#Report ID: 3	Report Type: Input
 
+#Characteristic:hid report
 1c 00 03 28 01 12   
-1d 00 4d 2a 02 00 00 	
+1d 00 4d 2a 02 00 00 	#hid report	led handle write
 1e 00 02 29 02 00 00	
-1f 00 08 29 02 02 01	
-
+1f 00 08 29 02 02 01	#Report ID: 2	Report Type: Input
 
+#Characteristic:hid report
 20 00 03 28 01 0e   
-21 00 4d 2a 02 00	00	
+21 00 4d 2a 02 00	00	#hid report	led handle write
 22 00 02 29 02 00 00	
-23 00 08 29 02 01 02	
-
+23 00 08 29 02 01 02	#Report ID: 1	Report Type: Output
 
+#Characteristic:Report map
 24 00 03 28 01 0a
-25 00 4b 2a a0		
-
+25 00 4b 2a a0		#length 66+25+60=160=0xa0
+#66
 05 01
 09 06
 a1 01
@@ -240,7 +420,7 @@
 81 00
 c0 
 
-
+#25
 05 0c  		
 09 01  		
 a1 01	
@@ -254,344 +434,150 @@
 81 00  		
 c0
 
+#29
+#05 01
+#09 80
+#A1 01
+#85 03
+#15 00
+#25 01
+#75 01
+#95 03
+#19 81
+#29 83
+#81 02
+#95 01
+#75 05
+#81 03
+#C0
+
+#69
+05 01 # Usage Page(Generic Desktop)
+09 02 # Usage(Mouse)
+a1 01 # Collection(Application)
+85 03 # Report ID(3)
+09 01 # Usage(Pointer)
+a1 00 # Collection(Physical)
+05 09 # Usage Page(Buttons)
+19 01 # Usage Minimum(1)
+29 08 # Usage Maximum(8)
+15 00 # Logical Minimum(0)
+25 01 # Logical Maximum(1)
+75 01 # Report Size(1)
+95 08 # Report Count(8)
+81 02 # Input(Data Variable Absolute)
+05 01 # Usage Page(Generic Desktop)
+09 30 # Usage(X)
+09 31 # Usage(Y)
+16 01 80  #Logical Minimum (-32767)
+26 FF 7F #Logical Maximum (32767) 
+75 10 # Report Size(16)
+95 02 # Report Count(2)
+81 06 # Input(Data Variable Relative)
+09 38 # Usage(Wheel)
+15 81 # Logical Minimum(-127)
+25 7f # Logical Maximum(127)
+75 08 # Report Size(8)
+95 01 # Report Count(1)
+81 06 # Input(Data Variable Relative)
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-05 01 
-09 02 
-a1 01 
-85 03 
-09 01 
-a1 00 
-05 09 
-19 01 
-29 08 
-15 00 
-25 01 
-75 01 
-95 08 
-81 02 
-05 01 
-09 30 
-09 31 
-16 01 80  
-26 FF 7F 
-75 10 
-95 02 
-81 06 
-09 38 
-15 81 
-25 7f 
-75 08 
-95 01 
-81 06 
-
-05 0c  
+05 0c  #USAGE_PAGE(Consumer Devices)
 0a 38 02
-95 01   
-81 06  
-
-c0 
-c0 
+95 01   #REPORT_COUNT (1)	
+81 06  #INPUT (Data,Var,Rel)
 
+c0 # End Collection
+c0 # End Collection
 
+#Characteristic:Hid information
 26 00 03 28 01 02
 27 00 4a 2a 04 11 01 00 01        
-
+#Characteristic
 28 00 03 28 01 04
 29 00 4c 2a 01 00
 
-
+#Primary Service: BAS
 2a 00 00 28 02 0f 18 
-
+#Characteristic: Battery Level
 2b 00 03 28 01 12 
 2c 00 19 2a 01 64 
-
+#Client Characteristic Configuration
 2d 00 02 29 02 00 00 
-
+#End of Attribute list
 00 00
 
 
+4c6a:17
 46f9:50
-4702:
-'BT3.0 Keyboard
-4747:0a
-4759:11 48
-
-
-06
-03
-1100 0001 0210 2411  0012  0100
-
-47f6:01
-
-ff
-
-47fd:ff
-4811:
-
-04 0011 0100 1002 1124
-
-
-00010000
-
-
-3601b6
-
-
-090000 0a 00010000
-090001 3503 191124
-090004 350d 3506 190100 090011 3503 190011
-090005 3503 191002
-090006 3509 09656e 09006a 090100
-090009 3508 3506 191124 090100
-09000d 350f 350d 3506 190100 090013 3503 190011
-
-
-
-
-
-
-090100 253d
-
-4272 6f61 6463 6f6d 2042 6c75 6574 6f6f 7468 2057 6972 656c 6573 7320 204b 6579 626f 6172 6420 
-2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 20
-
-
-090101 2508
-
-4b6579626f617264
-
-
-
-
-
-
-090102 2510
-
-4272 6f61 6463 6f6d 2043 6f72 702e 2020
-
-090200 090100
-090201 090111
-090202 0840
-090203 0821
-090204 2801
-090205 2801
-090206 35a5 35a3 0822 259f
-
-
-0501 
-0906 
-a101 
-8501 
-7501 
-9508 
-0507 
-19e0 
-29e7 
-1500 
-2501 
-8102 
-9501 
-7508 
-8103 
-9505 
-7501 
-0508 
-1901 
-2905 
-9102 
-9501 
-7503 
-9103 
-9506 
-7508 
-1500 
-25ff 
-0507 
-1900 
-29ff 
-8100 
-c0 
-
-05 0c  		
-09 01  		
-a1 01	
-85 02			
-19 00  		
-2a ff 03 
-15 00 
-26 ff 03		
-95 01  		
-75 10  			
-81 00  		
-c0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-05 01 
-09 02 
-a1 01 
-85 03 
-09 01 
-a1 00 
-05 09 
-19 01 
-29 08 
-15 00 
-25 01 
-75 01 
-95 08 
-81 02 
-05 01 
-09 30 
-09 31 
-16 01 80  
-26 FF 7F 
-75 10 
-95 02 
-81 06 
-09 38 
-15 81 
-25 7f 
-75 08 
-95 01 
-81 06 
-
-05 0c  
-0a 38 02
-95 01   
-81 06  
-
-c0 
-c0 
-
-090207 3508 3506 090409 090100
-09020b 090100
-09020c 090c80
-09020d 2800
-09020e 2801
-09020f 090318
-090210 090000
-
-
-
-03 1002 1200 0001
-
-
-00010001
-
-
-3600a1
-
-
-090000 0a00010001
-090001 3503 191200
-090004 350d 3506 190100 090001 3503 190001
-090006 3509 09656e 09006a 090100
-090009 3508 3506 191200 090100
-090100 252f42726f6164636f6d20426c7565746f6f746820576972656c657373204b6579626f61726420506e5020536572766572
-090101 25084b6579626f617264
-090200 090103
-090201
-0904e8
-090202
-097021
-090203 090001
-090204 2801
-090205 090002
-
-
-00
-
-
-
-
-55 d0
-56 c0
-57 4c
-58 6c
-59 50
-
-
-55 d0
-56 c0
-57 4c
-58 6c
-59 50
-
-4ba2:02 01
-
+44c2:14
+44f9:11 46 34 54 77 dd
 
 
+4c7e:00
+4cb8:15 00
+4cba:1d 00
+4cbc:19 00
+4d3e:2c 00
 4c60:50
 
-4c6a:17
-00 
-
-0c 00 
-05 00 
+4c6c:
+0c 00 #Length
+05 00 #CID
 12 b4 
 08 00 
-08 00 
-08 00 
-00 00 
-2c 01 
+08 00 #min interval
+08 00 #max interval
+00 00 #latency
+2c 01 #timeout
 
-4c8f:01    
+4419:
+'BT4.2 Keyboard
 
-00 
-9f 3e
-cd 4d
-00 00 00 
-00 13
+44e4:07 
+44dd:01
+#mem_le_adv_interval_max:00 01
+43d9:1f
+43da:
+#02 01 05 05 02 12 18 0f 18 03 19 c1 03
+02 01 05 03 19 c1 03 03 03 12 18
+'\09BT4.2 Keyboard
 
-4cb8:15 00
-1d 00
-19 00
-4d3e:2c 00
-4d53:  20 00		
+43f9:1f
+43fa:
+'\09BT4.2 Keyboard
+
+4d57:20 20 0915		#version data 20200915
 
-00 00 
-20 20 0915		
+4c91:9f 3e
+4c93:cd 4d
+4c8f:01    #01 VINLPM      #02 HVIN      #04 GPIO
+
+4216:8f 10 ce
+4219:00 0a 0b ef 0f
+41f8:00
+00a3:00 00 00 00 00 00 00 00
+415d:02
+415e:24
+414d:12 00
+414f:00 02
+4151:12 00
+4153:00 02
+415b:20 00
+4157:20 00
+4159:00 20
+415f:80 03
+4161:00 06
+4c98:00 13
 
+429b:30 3f
+42aa:20
+#pointers to tail space of mem_le_att_list
 4f70:
-07 ff 
+07 ff #2M_IF
 0a fb
 0b ff 
 
-
+#agc table
 1a fb
 1b fb
 1c fb
@@ -644,16 +630,32 @@
 4e ec
 4f 5e
 
-
+# tx power
 55 d0
 56 c0
 57 4c
 58 6c
 59 50
 
-
+#dpll
 68 e4
 69 00
 6a 00
 6b 30
 ff
+4163:70 4f
+
+4a91:
+55 d0
+56 c0
+57 4c
+58 6c
+59 50
+
+4a87:
+55 d0
+56 c0
+57 4c
+58 6c
+59 50
+
Index: c51/patch/adc.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/bluetooth.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/global_variable.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/kb_process.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/keyscan.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/led.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/ram.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: c51/patch/sch.rom
===================================================================
--- /YC1026/YC1086_only_BLE/c51/patch/sch.rom	(revision 198)
+++ /YC1026/YC1086_only_BLE/c51/patch/sch.rom	(working copy)
@@ -1,71 +1,71 @@
 mem_patch00:
-2d   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-35   
-00   
-00   
-00   
-4f   
-02   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-00   
-04   
-c8   
-00   
-5c   
-40   
-00   
-3a   
-ce   
-00   
-00   
-80   
-e0   
-00   
-00   
-00   
-00   
-00   
-20   
-00   
-a0   
-01   
-00   
-00   
-00   
-00   
-00   
+2d   #mem_patch00
+00   #mem_patch01
+00   #mem_patch02
+00   #mem_patch03
+00   #mem_patch04
+00   #mem_patch05
+00   #mem_patch06
+00   #mem_patch07
+00   #mem_patch08
+00   #mem_patch09
+00   #mem_patch0A
+00   #mem_patch0B
+00   #mem_patch0C
+00   #mem_patch0D
+00   #mem_patch0E
+00   #mem_patch0F
+00   #mem_patch10
+00   #mem_patch11
+35   #mem_patch12
+00   #mem_patch13
+00   #mem_patch14
+00   #mem_patch15
+4f   #mem_patch16
+02   #mem_patch17
+00   #mem_patch18
+00   #mem_patch19
+00   #mem_patch1A
+00   #mem_patch1B
+00   #mem_patch1C
+00   #mem_patch1D
+00   #mem_patch1E
+00   #mem_patch1F
+00   #mem_patch20
+00   #mem_patch21
+00   #mem_patch22
+00   #mem_patch23
+00   #mem_patch24
+00   #mem_patch25
+04   #mem_patch26
+c8   #mem_patch27
+00   #mem_patch28
+5c   #mem_patch29
+40   #mem_patch2A
+00   #mem_patch2B
+3a   #mem_patch2C
+ce   #mem_patch2D
+00   #mem_patch2E
+00   #mem_patch2F
+80   #mem_patch30
+e0   #mem_patch31
+00   #mem_patch32
+00   #mem_patch33
+00   #mem_patch34
+00   #mem_patch35
+00   #mem_patch36
+20   #mem_patch37
+00   #mem_patch38
+a0   #mem_patch39
+01   #mem_patch3A
+00   #mem_patch3B
+00   #mem_patch3C
+00   #mem_patch3D
+00   #mem_patch3E
+00   #mem_patch3F
 
 
-mem_customize_timer_setup:  20 00		
+mem_customize_timer_setup:  20 00		# 20:10ms  30:15ms
 
 mem_lpm_mode:01
 mem_lpm_mult:40
@@ -91,23 +91,23 @@
 
 mem_all_uuid_16bits:
 06
-03
+03#Type: Complete list of 16-bit UUIDs
 1100 0001 0210 2411  0012  0100
 
 mem_all_uuid_128bits:00
 
-
+#keyboard uuid
 mem_kb_uuid_list:
-
+#uuids
 04 0011 0100 1002 1124
 
-
+#handle
 00010000
 
-
+#total length
 3601b6
 
-
+#attribute start, first 4 digit is attribute ID
 090000 0a 00010000
 090001 3503 191124
 090004 350d 3506 190100 090011 3503 190011
@@ -116,28 +116,28 @@
 090009 3508 3506 191124 090100
 09000d 350f 350d 3506 190100 090013 3503 190011
 
-
-
-
-
-
+#Service Name
+#090100 2517
+#'Apple Wireless Keyboard
+#41 70 70 6c 65 20 57 69 72 65 6c 65 73 73 20 4b 65 79 62 6f 61 72 64
+#Service Name
 090100 253d
-
+#'Broadcom Bluetooth Wireless  Keyboard                        
 4272 6f61 6463 6f6d 2042 6c75 6574 6f6f 7468 2057 6972 656c 6573 7320 204b 6579 626f 6172 6420 
 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 20
 
-
+#Service Description
 090101 2508
-
+#'Keyboard
 4b6579626f617264
 
-
-
-
-
-
+#Provider Name
+#090102 250a
+#'Apple Inc.
+#41 70 70 6c 65 20 49 6e 63 2e
+#Provider Name
 090102 2510
-
+#'Broadcom Corp.  
 4272 6f61 6463 6f6d 2043 6f72 702e 2020
 
 090200 090100
@@ -148,40 +148,40 @@
 090205 2801
 090206 35a5 35a3 0822 259f
 
-
-0501 
-0906 
-a101 
-8501 
-7501 
-9508 
-0507 
-19e0 
-29e7 
-1500 
-2501 
-8102 
-9501 
-7508 
-8103 
-9505 
-7501 
-0508 
-1901 
-2905 
-9102 
-9501 
-7503 
-9103 
-9506 
-7508 
-1500 
-25ff 
-0507 
-1900 
-29ff 
-8100 
-c0 
+# hid descriptor
+0501 # Usage Page(Generic Desktop)
+0906 # Usage(Keyboard)
+a101 # Collection(Application)
+8501 # Report ID(1)
+7501 # Report Size(1)
+9508 # Report Count(8)
+0507 # Usage Page(Keyboard/Keypad)
+19e0 # Usage Minimum(224)
+29e7 # Usage Maximum(231)
+1500 # Logical Minimum(0)
+2501 # Logical Maximum(1)
+8102 # Input(Data Variable Absolute) ; Modifier byte
+9501 # Report Count(1)
+7508 # Report Size(8)
+8103 # Input(Constant Variable Absolute) ; 
+9505 # Report Count(5)
+7501 # Report Size(1)
+0508 # Usage Page(LEDs)
+1901 # Usage Minimum(1)
+2905 # Usage Maximum(5)
+9102 # Output(Data Variable Absolute) ; LED report
+9501 # Report Count(1)
+7503 # Report Size(3)
+9103 # Output(Constant Variable Absolute) ; 
+9506 # Report Count(6)
+7508 # Report Size(8)
+1500 # Logical Minimum(0)
+25ff # Logical Maximum(255)
+0507 # Usage Page(Keyboard/Keypad)
+1900 # Usage Minimum(0)
+29ff # Usage Maximum(255)
+8100 # Input(Data Array) ; Key arrarys 6 bytes
+c0 # End Collection
 
 05 0c  		
 09 01  		
@@ -196,60 +196,60 @@
 81 00  		
 c0
 
+#29
+#05 01
+#09 80
+#A1 01
+#85 03
+#15 00
+#25 01
+#75 01
+#95 03
+#19 81
+#29 83
+#81 02
+#95 01
+#75 05
+#81 03
+#C0
+
+#69
+05 01 # Usage Page(Generic Desktop)
+09 02 # Usage(Mouse)
+a1 01 # Collection(Application)
+85 03 # Report ID(3)
+09 01 # Usage(Pointer)
+a1 00 # Collection(Physical)
+05 09 # Usage Page(Buttons)
+19 01 # Usage Minimum(1)
+29 08 # Usage Maximum(8)
+15 00 # Logical Minimum(0)
+25 01 # Logical Maximum(1)
+75 01 # Report Size(1)
+95 08 # Report Count(8)
+81 02 # Input(Data Variable Absolute)
+05 01 # Usage Page(Generic Desktop)
+09 30 # Usage(X)
+09 31 # Usage(Y)
+16 01 80  #Logical Minimum (-32767)
+26 FF 7F #Logical Maximum (32767) 
+75 10 # Report Size(16)
+95 02 # Report Count(2)
+81 06 # Input(Data Variable Relative)
+09 38 # Usage(Wheel)
+15 81 # Logical Minimum(-127)
+25 7f # Logical Maximum(127)
+75 08 # Report Size(8)
+95 01 # Report Count(1)
+81 06 # Input(Data Variable Relative)
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-05 01 
-09 02 
-a1 01 
-85 03 
-09 01 
-a1 00 
-05 09 
-19 01 
-29 08 
-15 00 
-25 01 
-75 01 
-95 08 
-81 02 
-05 01 
-09 30 
-09 31 
-16 01 80  
-26 FF 7F 
-75 10 
-95 02 
-81 06 
-09 38 
-15 81 
-25 7f 
-75 08 
-95 01 
-81 06 
-
-05 0c  
+05 0c  #USAGE_PAGE(Consumer Devices)
 0a 38 02
-95 01   
-81 06  
+95 01   #REPORT_COUNT (1)	
+81 06  #INPUT (Data,Var,Rel)
 
-c0 
-c0 
+c0 # End Collection
+c0 # End Collection
 
 090207 3508 3506 090409 090100
 09020b 090100
@@ -258,18 +258,18 @@
 09020e 2801
 09020f 090318
 090210 090000
+#attribute end
 
-
-
+#uuids for pnpInformation	
 03 1002 1200 0001
 
-
+#handle
 00010001
 
-
+#total length 90 bytes
 3600a1
 
-
+#attribute list
 090000 0a00010001
 090001 3503 191200
 090004 350d 3506 190100 090001 3503 190001
@@ -278,34 +278,34 @@
 090100 252f42726f6164636f6d20426c7565746f6f746820576972656c657373204b6579626f61726420506e5020536572766572
 090101 25084b6579626f617264
 090200 090103
-090201
+090201# VendorID
 0904e8
-090202
+090202#ProductID
 097021
 090203 090001
 090204 2801
 090205 090002
 
-
+#attribute end
 00
 
-
+#Auto reconnection after power on
 
 memui_uuid_table:mem_kb_uuid_list
-
+#Auto reconnection after power on
 mem_device_option:43
 mem_ptt:0
 mem_features:
 ff
 ff
 8f
-f8	
-83	
+f8	#fe--EDR  F8--BR
+83	#AFHclose 83
 9d
 59
 82
 
-
+#bluetootch param init
 mem_sp_flag:00
 mem_lpm_current_mult:00
 mem_master_sp_flag:00
@@ -320,72 +320,72 @@
 mem_ipc_tx_evt_buff:02 01
 
 
-
+#attribute list: handle 2bytes, uuid 2bytes, length 1bytes, attribute Nbytes
 mem_le_att_list:
 
-
+#Primary service: GATT
 01 00 00 28 02 01 18
-
+#Characteristic: Service changed
 02 00 03 28 01 20
 03 00 05 2a 01 00
-
+#Client Characteristic Configuration
 04 00 02 29 02 00 00
 
-
+#Primary Service: GAP
 05 00 00 28 02 00 18 
-
+#Characteristic: Device Name
 06 00 03 28 01 02 
 07 00 00 2a 
 'BT4.2 Keyboard
 
-
+#Characteristic: Appearance
 08 00 03 28 01 02 
 09 00 01 2a 02 c1 03 
-
+#Characteristic: Peripheral Preferred Connection Parameters
 0a 00 03 28 01 02
-0b 00 04 2a 08 06 00 06 00 64 00 2c 01 
-
+0b 00 04 2a 08 06 00 06 00 64 00 2c 01 # interval 6ms, latency 100, timeout 300
 
+#Primary Service: Device Information
 0c 00 00 28 02 0a 18
-
+#Manufacturer Name
 0d 00 03 28 01 02
-0e 00 29 2a 06 59 69 43 68 69 70			
-
+0e 00 29 2a 06 59 69 43 68 69 70			#IOS 13.5.1
+#Characteristic: pnp id
 0f 00 03 28 01 02
-10 00 50 2a 07 02 e8 04 21 70 01 00		
-
+10 00 50 2a 07 02 e8 04 21 70 01 00		# SAMSUNG soft keyboard,setup shortcuts
 
+#Primary service: HID
 11 00 00 28 02 12 18
-
+#Characteristic:Protocol mode
 12 00 03 28 01 06
 13 00 4e 2a 01 01
-
+#Characteristic: hid report
 14 00 03 28 01 12   
-15 00 4d 2a 08 00 00 00 00 00 00 00 00	
+15 00 4d 2a 08 00 00 00 00 00 00 00 00	#hid report	led handle write
 16 00 02 29 02 00 00	
-17 00 08 29 02 01 01	
-
+17 00 08 29 02 01 01	#Report ID: 1	Report Type: Input
+#Characteristic:hid report
 18 00 03 28 01 12  
 19 00 4d 2a 05 00 00 00 00 00
 1a 00 02 29 02 00 00
-1b 00 08 29 02 03 01	
-
+1b 00 08 29 02 03 01	#Report ID: 3	Report Type: Input
 
+#Characteristic:hid report
 1c 00 03 28 01 12   
-1d 00 4d 2a 02 00 00 	
+1d 00 4d 2a 02 00 00 	#hid report	led handle write
 1e 00 02 29 02 00 00	
-1f 00 08 29 02 02 01	
-
+1f 00 08 29 02 02 01	#Report ID: 2	Report Type: Input
 
+#Characteristic:hid report
 20 00 03 28 01 0e   
-21 00 4d 2a 02 00	00	
+21 00 4d 2a 02 00	00	#hid report	led handle write
 22 00 02 29 02 00 00	
-23 00 08 29 02 01 02	
-
+23 00 08 29 02 01 02	#Report ID: 1	Report Type: Output
 
+#Characteristic:Report map
 24 00 03 28 01 0a
-25 00 4b 2a a0		
-
+25 00 4b 2a a0		#length 66+25+60=160=0xa0
+#66
 05 01
 09 06
 a1 01
@@ -420,7 +420,7 @@
 81 00
 c0 
 
-
+#25
 05 0c  		
 09 01  		
 a1 01	
@@ -434,76 +434,76 @@
 81 00  		
 c0
 
+#29
+#05 01
+#09 80
+#A1 01
+#85 03
+#15 00
+#25 01
+#75 01
+#95 03
+#19 81
+#29 83
+#81 02
+#95 01
+#75 05
+#81 03
+#C0
+
+#69
+05 01 # Usage Page(Generic Desktop)
+09 02 # Usage(Mouse)
+a1 01 # Collection(Application)
+85 03 # Report ID(3)
+09 01 # Usage(Pointer)
+a1 00 # Collection(Physical)
+05 09 # Usage Page(Buttons)
+19 01 # Usage Minimum(1)
+29 08 # Usage Maximum(8)
+15 00 # Logical Minimum(0)
+25 01 # Logical Maximum(1)
+75 01 # Report Size(1)
+95 08 # Report Count(8)
+81 02 # Input(Data Variable Absolute)
+05 01 # Usage Page(Generic Desktop)
+09 30 # Usage(X)
+09 31 # Usage(Y)
+16 01 80  #Logical Minimum (-32767)
+26 FF 7F #Logical Maximum (32767) 
+75 10 # Report Size(16)
+95 02 # Report Count(2)
+81 06 # Input(Data Variable Relative)
+09 38 # Usage(Wheel)
+15 81 # Logical Minimum(-127)
+25 7f # Logical Maximum(127)
+75 08 # Report Size(8)
+95 01 # Report Count(1)
+81 06 # Input(Data Variable Relative)
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-05 01 
-09 02 
-a1 01 
-85 03 
-09 01 
-a1 00 
-05 09 
-19 01 
-29 08 
-15 00 
-25 01 
-75 01 
-95 08 
-81 02 
-05 01 
-09 30 
-09 31 
-16 01 80  
-26 FF 7F 
-75 10 
-95 02 
-81 06 
-09 38 
-15 81 
-25 7f 
-75 08 
-95 01 
-81 06 
-
-05 0c  
+05 0c  #USAGE_PAGE(Consumer Devices)
 0a 38 02
-95 01   
-81 06  
-
-c0 
-c0 
+95 01   #REPORT_COUNT (1)	
+81 06  #INPUT (Data,Var,Rel)
 
+c0 # End Collection
+c0 # End Collection
 
+#Characteristic:Hid information
 26 00 03 28 01 02
 27 00 4a 2a 04 11 01 00 01        
-
+#Characteristic
 28 00 03 28 01 04
 29 00 4c 2a 01 00
 
-
+#Primary Service: BAS
 2a 00 00 28 02 0f 18 
-
+#Characteristic: Battery Level
 2b 00 03 28 01 12 
 2c 00 19 2a 01 64 
-
+#Client Characteristic Configuration
 2d 00 02 29 02 00 00 
-
+#End of Attribute list
 00 00
 
 
@@ -521,24 +521,24 @@
 mem_le_rx_window:50
 
 mem_le_connection_updata_param:
-0c 00 
-05 00 
+0c 00 #Length
+05 00 #CID
 12 b4 
 08 00 
-08 00 
-08 00 
-00 00 
-2c 01 
+08 00 #min interval
+08 00 #max interval
+00 00 #latency
+2c 01 #timeout
 
 mem_le_name_len:
 'BT4.2 Keyboard
 
 mem_le_adv_channel_map:07 
 mem_le_adv_direct_addr_type:01
-
+#mem_le_adv_interval_max:00 01
 mem_le_adv_data_len:1f
 mem_le_adv_data:
-
+#02 01 05 05 02 12 18 0f 18 03 19 c1 03
 02 01 05 03 19 c1 03 03 03 12 18
 '\09BT4.2 Keyboard
 
@@ -546,11 +546,11 @@
 mem_le_scan_data:
 '\09BT4.2 Keyboard
 
-mem_version_yy_mm_dd:20 20 0915		
+mem_version_yy_mm_dd:20 20 0915		#version data 20200915
 
 mem_adc_0v:9f 3e
 mem_adc_3v:cd 4d
-mem_adc_config_flag:01    
+mem_adc_config_flag:01    #01 VINLPM      #02 HVIN      #04 GPIO
 
 mem_lpm_config:8f 10 ce
 mem_lpm_xtalcnt:00 0a 0b ef 0f
@@ -571,13 +571,13 @@
 
 mem_eeprom_base:30 3f
 mem_eeprom_block_size:20
-
+#pointers to tail space of mem_le_att_list
 4f70:
-07 ff 
+07 ff #2M_IF
 0a fb
 0b ff 
 
-
+#agc table
 1a fb
 1b fb
 1c fb
@@ -630,14 +630,14 @@
 4e ec
 4f 5e
 
-
+# tx power
 55 d0
 56 c0
 57 4c
 58 6c
 59 50
 
-
+#dpll
 68 e4
 69 00
 6a 00
Index: c51/patch/sys.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
