Index: format/rom.format
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/format/rom.format	(revision 4790)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/format/rom.format	(working copy)
@@ -9822,6 +9822,10 @@
 20 mem_bt_device2_name
 1 mem_mouse_d_l_l_led_multi_type
 1 mem_mouse_select_sensor_angle_type
+
+1 mem_mouse_customerkey_press_count
+1 mem_mouse_customerkey_flag
+1 mem_mouse_customerkey_step
 )
 
 
Index: output/bt_format.meta
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/output/bt_format.meta	(revision 4790)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/output/bt_format.meta	(working copy)
@@ -2307,6 +2307,9 @@
 0x4dbb mem_bt_device2_name
 0x4dcf mem_mouse_d_l_l_led_multi_type
 0x4dd0 mem_mouse_select_sensor_angle_type
+0x4dd1 mem_mouse_customerkey_press_count
+0x4dd2 mem_mouse_customerkey_flag
+0x4dd3 mem_mouse_customerkey_step
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/output/eeprom.dat	(revision 4790)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-a2
+2a
 19
 c2
 84
@@ -15,7 +15,7 @@
 c0
 41
 01
-48
+4b
 c0
 41
 80
@@ -31,7 +31,7 @@
 c0
 45
 81
-3b
+3e
 c0
 46
 00
@@ -39,7 +39,7 @@
 c0
 4f
 81
-4f
+52
 c0
 52
 00
@@ -47,11 +47,11 @@
 c0
 57
 01
-51
+54
 c0
 61
 83
-9b
+70
 c0
 62
 00
@@ -59,63 +59,63 @@
 c0
 63
 82
-9b
+70
 c0
 64
 82
-a1
+76
 c0
 65
 02
-cf
+a4
 c0
 66
 00
-f1
+f4
 c0
 67
 05
-78
+4e
 c0
 67
 86
-32
+14
 c0
 68
 03
-b6
+8b
 c0
 68
 85
-b3
+89
 c0
 69
 83
-d2
+a7
 c0
 6a
 05
-9b
+71
 c0
 6b
 02
-f8
+cd
 c0
 6c
 83
-f3
+c8
 c0
 6d
-05
-02
+04
+d8
 c0
 6d
-85
-0c
+84
+e2
 c0
 6f
 05
-fc
+de
 c0
 6f
 80
@@ -130,8 +130,8 @@
 81
 c0
 74
-05
-13
+04
+e9
 20
 20
 13
@@ -142,8 +142,8 @@
 56
 c0
 0d
-05
-27
+04
+fd
 c0
 0f
 80
@@ -159,31 +159,31 @@
 c0
 19
 80
-d1
+d4
 c0
 1a
 00
-d6
+d9
 c0
 43
-85
-0f
+84
+e5
 c0
 50
 85
-31
+07
 c0
 51
 85
-3b
+11
 c0
 5a
 85
-3d
+13
 c0
 60
 05
-47
+1d
 c0
 6c
 80
@@ -191,27 +191,27 @@
 c0
 71
 03
-5c
+31
 c0
 74
 83
-64
+39
 c0
 75
 02
-37
+0c
 c0
 75
 82
-64
+39
 c0
 76
 05
-6d
+43
 c0
 76
 86
-3a
+1c
 20
 20
 13
@@ -579,11 +579,11 @@
 20
 40
 04
-60
+36
 20
 40
 01
-31
+34
 70
 41
 ca
@@ -836,6 +836,18 @@
 20
 12
 1e
+70
+8a
+39
+07
+70
+8a
+3a
+00
+20
+20
+12
+2a
 20
 20
 12
@@ -971,7 +983,7 @@
 20
 40
 00
-d6
+d9
 70
 48
 f6
@@ -990,8 +1002,8 @@
 a0
 c0
 81
+01
 00
-fd
 68
 49
 48
@@ -1031,11 +1043,11 @@
 c2
 80
 81
-03
+06
 c3
 00
 01
-06
+09
 20
 20
 3e
@@ -1051,7 +1063,7 @@
 20
 20
 02
-9b
+70
 6f
 e0
 cc
@@ -1087,7 +1099,7 @@
 20
 20
 01
-2e
+31
 78
 54
 7c
@@ -1135,7 +1147,7 @@
 20
 40
 01
-0f
+12
 20
 74
 00
@@ -1147,7 +1159,7 @@
 20
 3a
 01
-37
+3a
 68
 48
 cc
@@ -1171,7 +1183,7 @@
 24
 41
 01
-2c
+2f
 6f
 e0
 cc
@@ -1183,7 +1195,7 @@
 24
 21
 01
-2e
+31
 6f
 e0
 cc
@@ -1191,11 +1203,11 @@
 c0
 00
 84
-7d
+53
 c0
 01
 84
-7d
+53
 68
 48
 cc
@@ -1203,7 +1215,7 @@
 20
 20
 04
-89
+5f
 70
 4c
 4f
@@ -1211,7 +1223,7 @@
 20
 40
 01
-33
+36
 6f
 e0
 cc
@@ -1219,11 +1231,11 @@
 c0
 00
 84
-8f
+65
 c0
 01
 84
-8f
+65
 68
 48
 cc
@@ -1231,7 +1243,7 @@
 20
 20
 04
-ac
+82
 6f
 e0
 cc
@@ -1255,15 +1267,15 @@
 c2
 82
 01
-2e
+31
 20
 40
-04
-1e
+03
+f4
 20
 20
 01
-1e
+21
 70
 8a
 8b
@@ -1363,11 +1375,11 @@
 20
 40
 01
-7f
+84
 24
 55
 81
-65
+6a
 20
 40
 41
@@ -1376,6 +1388,14 @@
 75
 80
 00
+58
+00
+00
+00
+67
+e1
+cd
+d1
 70
 4d
 96
@@ -1383,7 +1403,7 @@
 20
 40
 03
-b8
+8d
 20
 40
 3d
@@ -1395,11 +1415,11 @@
 20
 40
 01
-e5
+ea
 20
 40
 05
-aa
+80
 20
 20
 3b
@@ -1439,11 +1459,11 @@
 c0
 00
 01
-69
+6e
 c0
 00
 81
-6f
+74
 20
 60
 00
@@ -1479,11 +1499,11 @@
 c0
 00
 81
-69
+6e
 c0
 01
 01
-73
+78
 20
 60
 00
@@ -1491,7 +1511,7 @@
 20
 40
 01
-7b
+80
 6f
 e0
 c0
@@ -1535,7 +1555,7 @@
 20
 20
 01
-6c
+71
 20
 75
 80
@@ -1559,23 +1579,23 @@
 20
 40
 01
-ab
+b0
 20
 40
 01
-b0
+b5
 20
 40
-04
-15
+03
+eb
 20
 40
 01
-5e
+63
 20
 40
 01
-e2
+e7
 20
 40
 1b
@@ -1583,7 +1603,7 @@
 20
 40
 01
-a0
+a5
 20
 40
 1b
@@ -1623,7 +1643,7 @@
 20
 40
 01
-a6
+ab
 6f
 e1
 49
@@ -1759,11 +1779,11 @@
 c0
 00
 81
-b9
+be
 c0
 01
 01
-c7
+cc
 20
 60
 00
@@ -1775,7 +1795,7 @@
 20
 40
 05
-e9
+bf
 df
 e0
 00
@@ -1783,7 +1803,7 @@
 20
 40
 05
-e9
+bf
 68
 48
 c9
@@ -1827,7 +1847,7 @@
 20
 40
 01
-d4
+d9
 6f
 e0
 c9
@@ -1835,11 +1855,11 @@
 c0
 01
 81
-cc
+d1
 c0
 01
 01
-d0
+d5
 20
 60
 00
@@ -1851,7 +1871,7 @@
 20
 40
 05
-e9
+bf
 68
 48
 c9
@@ -1867,7 +1887,7 @@
 20
 40
 05
-e6
+bc
 68
 48
 c9
@@ -1879,7 +1899,7 @@
 20
 40
 01
-d0
+d5
 68
 48
 c9
@@ -1891,11 +1911,11 @@
 20
 20
 81
-de
+e3
 20
 40
 01
-cc
+d1
 68
 48
 c9
@@ -1907,7 +1927,7 @@
 20
 20
 81
-e0
+e5
 70
 49
 28
@@ -1947,19 +1967,11 @@
 58
 00
 01
-ea
+ed
 67
 e1
 48
 9b
-58
-00
-02
-09
-67
-e1
-48
-9d
 20
 20
 3b
@@ -1987,7 +1999,7 @@
 24
 5a
 02
-07
+0a
 6f
 e4
 4b
@@ -1995,7 +2007,7 @@
 c3
 0a
 81
-f4
+f7
 6f
 e0
 cb
@@ -2015,7 +2027,7 @@
 c2
 80
 82
-03
+06
 68
 48
 c7
@@ -2088,210 +2100,26 @@
 20
 15
 b1
-6f
-e4
-4b
-ab
-c4
-0b
-00
+20
+40
+26
+31
+24
+34
+02
+b0
+20
+40
+02
+1c
+20
+40
+26
+ee
+20
+40
 00
-6f
-e0
-ca
-ae
-20
-7a
-00
-00
-6f
-e0
-c8
-a7
-20
-7a
-00
-00
-6f
-e0
-cb
-a1
-1f
-e0
-fe
-01
-1f
-e1
-7e
-03
-67
-e0
-cb
-a1
-24
-7a
-00
-00
-70
-4b
-a2
-00
-6f
-e0
-cb
-a2
-1f
-e0
-fe
-01
-67
-e0
-cb
-a2
-1f
-e6
-7c
-08
-24
-21
-02
-1f
-20
-40
-25
-9a
-20
-40
-26
-5b
-24
-2c
-02
-35
-24
-37
-82
-35
-20
-40
-02
-2c
-20
-40
-25
-97
-6f
-e0
-cb
-a3
-1f
-e0
-fe
-01
-67
-e0
-cb
-a3
-c1
-88
-00
-00
-70
-4b
-a3
-00
-6f
-e0
-cb
-a4
-c3
-80
-00
-00
-79
-20
-7e
-00
-67
-e0
-cb
-a4
-6f
-e1
-4b
-bc
-67
-e1
-4a
-b2
-20
-20
-05
-aa
-6f
-e0
-c8
-a7
-20
-3a
-48
-8c
-70
-4b
-a3
-00
-6f
-e0
-cb
-a4
-c4
-00
-00
-00
-79
-3f
-fe
-00
-67
-e0
-cb
-a4
-20
-40
-45
-44
-20
-20
-03
-d4
-20
-40
-22
-cb
-20
-20
-02
-15
-20
-40
-26
-31
-24
-34
-02
-db
-20
-40
-02
-47
-20
-40
-26
-ee
-20
-40
-00
-aa
+aa
 6f
 e0
 cb
@@ -2299,7 +2127,7 @@
 24
 3a
 02
-42
+17
 6f
 e4
 48
@@ -2363,11 +2191,11 @@
 24
 2c
 02
-52
+27
 24
 37
 82
-52
+27
 20
 40
 26
@@ -2375,7 +2203,7 @@
 20
 40
 02
-8f
+64
 20
 20
 26
@@ -2391,7 +2219,7 @@
 20
 40
 02
-70
+45
 6f
 e0
 c8
@@ -2427,11 +2255,11 @@
 20
 40
 02
-5f
+34
 20
 20
 02
-48
+1d
 6f
 e0
 c8
@@ -2467,7 +2295,7 @@
 24
 21
 02
-69
+3e
 20
 20
 26
@@ -2491,7 +2319,7 @@
 20
 40
 06
-5f
+41
 20
 40
 27
@@ -2515,11 +2343,11 @@
 20
 40
 02
-7d
+52
 20
 40
 02
-79
+4e
 20
 40
 40
@@ -2547,7 +2375,7 @@
 20
 20
 06
-20
+02
 70
 4b
 94
@@ -2595,7 +2423,7 @@
 c0
 7f
 82
-8c
+61
 20
 40
 41
@@ -2623,7 +2451,7 @@
 20
 20
 02
-89
+5e
 6f
 e0
 cb
@@ -2631,7 +2459,7 @@
 24
 5a
 02
-93
+68
 70
 4b
 e1
@@ -2647,7 +2475,7 @@
 20
 40
 03
-d4
+a9
 6f
 e4
 4b
@@ -2687,11 +2515,11 @@
 20
 40
 05
-a5
+7b
 20
 40
 05
-aa
+80
 20
 20
 3e
@@ -2715,7 +2543,7 @@
 20
 40
 05
-e6
+bc
 d8
 40
 00
@@ -2727,7 +2555,7 @@
 20
 40
 02
-cf
+a4
 20
 40
 60
@@ -2735,11 +2563,11 @@
 20
 40
 04
-a2
+78
 20
 40
 04
-bc
+92
 d8
 40
 00
@@ -2751,15 +2579,15 @@
 20
 40
 02
-b1
+86
 20
 40
 02
-b5
+8a
 20
 20
 02
-c5
+9a
 6f
 e0
 c9
@@ -2783,7 +2611,7 @@
 c2
 80
 02
-b9
+8e
 6f
 e4
 4b
@@ -2795,7 +2623,7 @@
 20
 40
 02
-bd
+92
 6f
 e0
 c8
@@ -2819,7 +2647,7 @@
 20
 21
 02
-c3
+98
 18
 40
 84
@@ -2839,7 +2667,7 @@
 20
 20
 02
-c1
+96
 6f
 e4
 4b
@@ -2923,7 +2751,7 @@
 20
 40
 05
-e6
+bc
 20
 20
 3e
@@ -2935,7 +2763,7 @@
 20
 5a
 02
-e8
+bd
 6f
 e0
 c8
@@ -2951,7 +2779,7 @@
 20
 40
 05
-6d
+43
 24
 74
 00
@@ -2971,7 +2799,7 @@
 24
 5a
 02
-a1
+76
 6f
 e4
 48
@@ -3043,51 +2871,51 @@
 20
 20
 02
-39
+0e
 1a
 62
 7e
 00
 c0
-00
-83
-0d
+00
+82
+e2
 c0
 1e
-03
-29
+02
+fe
 c0
 1c
-83
-25
+82
+fa
 c0
 1d
 03
-39
+0e
 c0
 19
-03
-15
+02
+ea
 c0
 0a
-83
-0f
+82
+e4
 c0
 0a
-03
-0b
+02
+e0
 c0
 20
-03
-1c
+02
+f1
 c0
 09
-03
-04
+02
+d9
 c0
 03
-03
-07
+02
+dc
 20
 20
 43
@@ -3115,7 +2943,7 @@
 20
 40
 04
-2e
+04
 20
 20
 32
@@ -3123,7 +2951,7 @@
 20
 40
 04
-2e
+04
 20
 20
 43
@@ -3166,8 +2994,8 @@
 c7
 c0
 00
-83
-19
+82
+ee
 70
 4b
 76
@@ -3226,8 +3054,8 @@
 00
 20
 40
-03
-21
+02
+f6
 20
 40
 45
@@ -3235,7 +3063,7 @@
 20
 40
 04
-2e
+04
 20
 20
 48
@@ -3259,7 +3087,7 @@
 20
 40
 04
-2e
+04
 20
 40
 45
@@ -3298,16 +3126,16 @@
 00
 20
 40
-03
-21
+02
+f6
 20
 20
 48
 22
 20
 40
-03
-21
+02
+f6
 6f
 e0
 c8
@@ -3315,7 +3143,7 @@
 24
 3a
 03
-51
+26
 6f
 e0
 c8
@@ -3323,11 +3151,11 @@
 c0
 01
 03
-41
+16
 c0
 00
 83
-41
+16
 c0
 02
 c8
@@ -3367,7 +3195,7 @@
 20
 22
 83
-4e
+23
 20
 20
 48
@@ -3395,7 +3223,7 @@
 20
 40
 04
-36
+0c
 20
 20
 48
@@ -3439,11 +3267,11 @@
 20
 40
 05
-aa
+80
 20
 20
 02
-e0
+b5
 70
 48
 8b
@@ -3491,7 +3319,7 @@
 20
 3a
 03
-6c
+41
 6f
 e1
 48
@@ -3519,11 +3347,11 @@
 24
 2c
 03
-89
+5e
 24
 37
 83
-89
+5e
 20
 40
 26
@@ -3543,7 +3371,7 @@
 20
 22
 83
-85
+5a
 6f
 e2
 48
@@ -3559,7 +3387,7 @@
 20
 42
 83
-81
+56
 6f
 e0
 c8
@@ -3655,15 +3483,15 @@
 c0
 02
 83
-94
+69
 c0
 02
 03
-96
+6b
 c0
 01
 03
-98
+6d
 20
 20
 25
@@ -3703,7 +3531,7 @@
 c2
 97
 83
-a1
+76
 6f
 e0
 c9
@@ -3711,11 +3539,11 @@
 c0
 00
 03
-a8
+7d
 20
 40
 04
-3f
+15
 20
 20
 3d
@@ -3759,7 +3587,7 @@
 20
 40
 04
-36
+0c
 20
 40
 3d
@@ -3775,7 +3603,7 @@
 c2
 98
 03
-a3
+78
 c3
 18
 c8
@@ -3799,7 +3627,7 @@
 20
 22
 83
-4e
+23
 20
 20
 48
@@ -3811,7 +3639,7 @@
 20
 40
 03
-eb
+c0
 6f
 e0
 c9
@@ -3819,7 +3647,7 @@
 c0
 06
 03
-bb
+90
 20
 20
 40
@@ -3831,19 +3659,19 @@
 c0
 00
 03
-c3
+98
 c0
 00
 83
-c5
+9a
 c0
 01
 03
-c7
+9c
 c0
 01
 83
-d0
+a5
 20
 60
 00
@@ -3855,7 +3683,7 @@
 20
 20
 03
-c8
+9d
 6f
 e0
 cc
@@ -3863,7 +3691,7 @@
 20
 20
 03
-c8
+9d
 6f
 e0
 cc
@@ -3871,7 +3699,7 @@
 20
 20
 03
-c8
+9d
 6f
 e0
 cc
@@ -3915,7 +3743,7 @@
 20
 20
 03
-c8
+9d
 20
 40
 3f
@@ -3935,7 +3763,7 @@
 c0
 18
 03
-dc
+b1
 c0
 18
 c2
@@ -3955,7 +3783,7 @@
 20
 20
 03
-d5
+aa
 6f
 e0
 c9
@@ -3963,11 +3791,11 @@
 c0
 68
 83
-e5
+ba
 c0
 2d
 03
-e0
+b5
 20
 20
 41
@@ -3991,7 +3819,7 @@
 20
 20
 05
-a0
+76
 58
 00
 00
@@ -4003,7 +3831,7 @@
 c0
 50
 83
-e9
+be
 20
 20
 41
@@ -4039,7 +3867,7 @@
 20
 3a
 04
-c3
+99
 67
 e0
 cb
@@ -4050,12 +3878,16 @@
 00
 20
 40
+05
+c2
+20
+40
 3e
 9b
 20
 40
 01
-14
+17
 20
 40
 23
@@ -4071,15 +3903,15 @@
 20
 40
 04
-c0
+96
 20
 40
 04
-55
+2b
 20
 40
 04
-b2
+88
 20
 40
 40
@@ -4091,15 +3923,15 @@
 20
 40
 04
-df
+b5
 20
 40
 44
 ff
 20
 40
-04
-0b
+03
+e1
 20
 40
 45
@@ -4107,7 +3939,7 @@
 20
 40
 04
-f6
+cc
 20
 40
 45
@@ -4115,7 +3947,7 @@
 20
 40
 04
-f9
+cf
 20
 40
 45
@@ -4126,8 +3958,8 @@
 2d
 20
 40
-04
-0f
+03
+e5
 20
 40
 45
@@ -4143,7 +3975,7 @@
 20
 20
 04
-fc
+d2
 da
 60
 4b
@@ -4166,8 +3998,8 @@
 c4
 da
 40
-04
-12
+03
+e8
 20
 20
 31
@@ -4178,8 +4010,8 @@
 ab
 c2
 99
-85
-02
+84
+d8
 20
 20
 3e
@@ -4199,7 +4031,7 @@
 20
 40
 04
-a2
+78
 70
 4c
 44
@@ -4238,16 +4070,16 @@
 44
 c0
 00
-84
-28
+83
+fe
 c0
 01
 04
-2a
+00
 c0
 01
 84
-2c
+02
 6f
 e0
 cc
@@ -4266,24 +4098,24 @@
 48
 20
 20
-04
-26
+03
+fc
 6f
 e0
 cc
 49
 20
 20
-04
-26
+03
+fc
 6f
 e0
 cc
 4a
 20
 20
-04
-26
+03
+fc
 6f
 e0
 cc
@@ -4330,12 +4162,12 @@
 01
 20
 40
-04
-28
+03
+fe
 20
 40
 04
-52
+28
 6f
 e0
 cc
@@ -4351,7 +4183,7 @@
 20
 20
 04
-49
+1f
 6f
 e0
 cc
@@ -4371,7 +4203,7 @@
 20
 40
 04
-52
+28
 70
 4c
 44
@@ -4379,7 +4211,7 @@
 20
 40
 04
-2c
+02
 6f
 e0
 cc
@@ -4427,7 +4259,7 @@
 20
 40
 04
-2a
+00
 70
 4c
 41
@@ -4439,7 +4271,7 @@
 20
 20
 04
-7c
+52
 6f
 e0
 cc
@@ -4455,7 +4287,7 @@
 c0
 00
 84
-62
+38
 6f
 e0
 cc
@@ -4463,7 +4295,7 @@
 20
 3a
 04
-5e
+34
 1f
 e0
 ff
@@ -4475,15 +4307,15 @@
 20
 20
 04
-7d
+53
 70
 4d
 96
 01
 20
 40
-04
-1e
+03
+f4
 70
 4c
 41
@@ -4491,7 +4323,7 @@
 20
 20
 04
-8f
+65
 6f
 e0
 cc
@@ -4503,11 +4335,11 @@
 c0
 02
 04
-69
+3f
 20
 20
 04
-66
+3c
 6f
 e0
 cc
@@ -4515,11 +4347,11 @@
 c2
 81
 04
-69
+3f
 20
 20
 04
-6b
+41
 6f
 e0
 cc
@@ -4527,7 +4359,7 @@
 20
 3a
 04
-8a
+60
 da
 60
 4c
@@ -4535,7 +4367,7 @@
 da
 40
 04
-6e
+44
 20
 20
 31
@@ -4547,7 +4379,7 @@
 c0
 02
 04
-76
+4c
 6f
 e0
 cc
@@ -4555,11 +4387,11 @@
 c2
 81
 04
-76
+4c
 20
 40
-04
-21
+03
+f7
 6f
 e0
 cc
@@ -4567,11 +4399,11 @@
 c0
 00
 84
-8c
+62
 20
 20
 04
-7a
+50
 6f
 e0
 cc
@@ -4587,7 +4419,7 @@
 20
 20
 04
-72
+48
 6f
 e0
 cc
@@ -4595,7 +4427,7 @@
 c0
 02
 04
-ad
+83
 70
 4c
 43
@@ -4607,15 +4439,15 @@
 c0
 00
 04
-82
+58
 c0
 00
 84
-84
+5a
 c0
 01
 04
-86
+5c
 20
 60
 00
@@ -4627,7 +4459,7 @@
 20
 20
 04
-89
+5f
 68
 48
 cc
@@ -4635,7 +4467,7 @@
 20
 20
 04
-89
+5f
 68
 48
 cc
@@ -4643,7 +4475,7 @@
 20
 20
 04
-89
+5f
 68
 48
 cc
@@ -4667,7 +4499,7 @@
 c0
 02
 04
-a7
+7d
 70
 4c
 43
@@ -4679,15 +4511,15 @@
 c0
 00
 04
-94
+6a
 c0
 00
 84
-98
+6e
 c0
 01
 04
-9c
+72
 20
 60
 00
@@ -4703,11 +4535,11 @@
 c3
 02
 84
-ac
+82
 20
 20
 04
-9f
+75
 68
 48
 cc
@@ -4719,11 +4551,11 @@
 c3
 02
 84
-ac
+82
 20
 20
 04
-9f
+75
 68
 48
 cc
@@ -4735,7 +4567,7 @@
 c3
 02
 84
-ac
+82
 18
 46
 7c
@@ -4751,23 +4583,23 @@
 20
 40
 04
-94
+6a
 20
 40
 04
-98
+6e
 20
 40
 04
-9c
+72
 20
 40
 01
-2e
+31
 20
 20
 04
-a7
+7d
 70
 4c
 43
@@ -4779,11 +4611,11 @@
 c0
 01
 04
-8e
+64
 c0
 01
 84
-8e
+64
 68
 48
 cc
@@ -4803,15 +4635,15 @@
 c0
 01
 04
-7c
+52
 c0
 01
 84
-7c
+52
 20
 20
 04
-88
+5e
 6f
 e0
 cb
@@ -4851,7 +4683,7 @@
 20
 21
 04
-be
+94
 68
 48
 cb
@@ -4875,7 +4707,7 @@
 da
 40
 04
-c3
+99
 20
 20
 31
@@ -4895,7 +4727,7 @@
 c2
 8e
 04
-cc
+a2
 6f
 e0
 c9
@@ -4903,15 +4735,15 @@
 c0
 00
 04
-d4
+aa
 c0
 00
 84
-d6
+ac
 c0
 01
 04
-d2
+a8
 20
 60
 00
@@ -4923,19 +4755,19 @@
 c0
 00
 04
-d6
+ac
 c0
 00
 84
-d8
+ae
 c0
 01
 04
-d2
+a8
 c0
 01
 84
-d4
+aa
 20
 60
 00
@@ -4947,7 +4779,7 @@
 20
 20
 04
-da
+b0
 58
 00
 00
@@ -4955,7 +4787,7 @@
 20
 20
 04
-da
+b0
 58
 00
 00
@@ -4963,7 +4795,7 @@
 20
 20
 04
-da
+b0
 58
 00
 00
@@ -4971,7 +4803,7 @@
 20
 20
 04
-da
+b0
 67
 e0
 cc
@@ -4982,8 +4814,8 @@
 04
 20
 40
-04
-25
+03
+fb
 70
 4c
 42
@@ -4991,7 +4823,7 @@
 20
 20
 04
-33
+09
 6f
 e0
 c9
@@ -4999,7 +4831,7 @@
 c0
 00
 04
-e5
+bb
 6f
 e4
 4b
@@ -5015,7 +4847,7 @@
 20
 20
 04
-e8
+be
 6f
 e4
 4b
@@ -5035,7 +4867,7 @@
 20
 40
 05
-b3
+89
 1f
 e1
 7e
@@ -5051,7 +4883,7 @@
 20
 22
 84
-ef
+c5
 20
 20
 44
@@ -5059,7 +4891,7 @@
 20
 40
 04
-f4
+ca
 6f
 e0
 cb
@@ -5079,7 +4911,7 @@
 da
 40
 03
-4e
+23
 20
 20
 44
@@ -5115,7 +4947,7 @@
 da
 40
 04
-ff
+d5
 20
 20
 31
@@ -5127,7 +4959,7 @@
 c0
 00
 03
-51
+26
 20
 20
 43
@@ -5135,7 +4967,7 @@
 20
 40
 04
-4b
+21
 6f
 e1
 47
@@ -5226,8 +5058,8 @@
 00
 c0
 04
-85
-1b
+84
+f1
 20
 20
 4d
@@ -5303,7 +5135,7 @@
 c0
 03
 85
-2e
+04
 20
 20
 57
@@ -5415,7 +5247,7 @@
 c0
 02
 05
-4a
+20
 20
 20
 19
@@ -5431,11 +5263,11 @@
 c0
 05
 05
-4f
+25
 c0
 09
 05
-5e
+34
 20
 20
 1c
@@ -5463,7 +5295,7 @@
 c2
 81
 85
-59
+2f
 6f
 e1
 44
@@ -5491,11 +5323,11 @@
 24
 22
 85
-55
+2b
 24
 34
 05
-55
+2b
 20
 20
 1e
@@ -5619,7 +5451,7 @@
 20
 40
 05
-88
+5e
 58
 00
 00
@@ -5631,7 +5463,7 @@
 20
 40
 03
-b8
+8d
 20
 40
 3f
@@ -5643,7 +5475,7 @@
 20
 40
 05
-b1
+87
 6f
 e0
 c8
@@ -5663,7 +5495,7 @@
 20
 40
 05
-97
+6d
 20
 20
 45
@@ -5683,7 +5515,7 @@
 c0
 05
 85
-8d
+63
 20
 20
 42
@@ -5755,7 +5587,7 @@
 c0
 05
 85
-a2
+78
 20
 40
 42
@@ -5771,11 +5603,11 @@
 20
 20
 03
-b8
+8d
 20
 40
 05
-a8
+7e
 da
 60
 4b
@@ -5783,7 +5615,7 @@
 20
 20
 05
-a0
+76
 6f
 e0
 c9
@@ -5791,7 +5623,7 @@
 c0
 05
 85
-a8
+7e
 20
 20
 42
@@ -5819,7 +5651,7 @@
 c0
 05
 85
-af
+85
 20
 20
 42
@@ -5835,7 +5667,7 @@
 20
 40
 05
-b3
+89
 20
 20
 40
@@ -5855,27 +5687,27 @@
 20
 40
 05
-bd
+93
 20
 40
 05
-c2
+98
 20
 40
 05
-c7
+9d
 20
 40
 05
-cc
+a2
 20
 40
 05
-d9
+af
 20
 40
 05
-ec
+d2
 20
 20
 41
@@ -5887,7 +5719,7 @@
 20
 40
 05
-e6
+bc
 20
 40
 41
@@ -5907,7 +5739,7 @@
 20
 40
 05
-e6
+bc
 20
 40
 41
@@ -5927,7 +5759,7 @@
 20
 40
 05
-e6
+bc
 20
 40
 41
@@ -5971,7 +5803,7 @@
 c0
 7f
 85
-d5
+ab
 20
 20
 41
@@ -5983,7 +5815,7 @@
 20
 40
 05
-e9
+bf
 68
 48
 c9
@@ -6023,7 +5855,7 @@
 c0
 7f
 85
-e2
+b8
 20
 20
 41
@@ -6035,7 +5867,7 @@
 20
 40
 05
-e9
+bf
 68
 48
 c9
@@ -6068,74 +5900,122 @@
 20
 60
 93
+68
+48
+c9
+12
+20
+40
+3f
+56
+68
+48
+c9
+12
+20
+40
+60
+59
+20
+20
+85
+cc
 6f
 e0
 cd
-9a
+d1
 20
-3a
-41
-6a
+7a
+00
+00
 70
-4b
+4d
+d1
+00
+70
+4d
+d2
+01
+20
+60
+00
+00
+6f
+e0
+cd
+d1
+1f
+e0
+fe
+01
+67
+e0
+cd
+d1
+1f
+e6
+7c
+1e
+20
+61
+00
+00
+20
+20
+00
 8b
+6f
+e0
+cd
+d2
+20
+7a
+00
 00
 6f
-e4
-4b
-ab
-c4
-0a
-80
+e0
+cd
+d3
+1f
+e0
+fe
+01
+67
+e0
+cd
+d3
+c0
+00
+85
+dc
+70
+4d
+d3
 00
 70
-4b
-96
-07
-6f
-e0
-cb
-95
-1f
-e2
-26
+4d
+d2
 00
-6f
-e0
-c9
-12
-20
-40
-05
-e9
-68
-48
-c9
-12
 20
 40
 41
-95
-67
-e0
-cb
-95
+7d
+20
+20
+7e
+54
 20
 40
 41
-74
-68
-48
-c9
-12
+7a
 20
 20
-3f
-56
+7e
+54
 20
 40
-06
-02
+05
+e4
 20
 40
 79
@@ -6143,15 +6023,15 @@
 20
 40
 06
-20
+02
 20
 40
-06
-06
+05
+e8
 20
 40
-06
-11
+05
+f3
 20
 20
 46
@@ -6178,12 +6058,12 @@
 ab
 c2
 94
-86
-0a
+85
+ec
 c2
 9b
-86
-0a
+85
+ec
 20
 60
 00
@@ -6195,7 +6075,7 @@
 c2
 83
 02
-7c
+51
 6f
 e0
 c9
@@ -6242,8 +6122,8 @@
 59
 20
 20
-86
-1c
+85
+fe
 6f
 e0
 c9
@@ -6299,7 +6179,7 @@
 20
 40
 06
-27
+09
 20
 20
 40
@@ -6327,7 +6207,7 @@
 c0
 7f
 86
-2e
+10
 20
 20
 40
@@ -6339,7 +6219,7 @@
 20
 40
 05
-e9
+bf
 68
 48
 c9
@@ -6375,7 +6255,7 @@
 20
 40
 03
-b6
+8b
 20
 20
 46
@@ -6415,7 +6295,7 @@
 c5
 13
 06
-44
+26
 6f
 e0
 c8
@@ -6427,7 +6307,7 @@
 24
 21
 06
-5e
+40
 6f
 e0
 c8
@@ -6439,7 +6319,7 @@
 24
 21
 06
-4c
+2e
 6f
 e0
 c8
@@ -6447,7 +6327,7 @@
 c0
 00
 06
-5f
+41
 20
 60
 00
@@ -6483,7 +6363,7 @@
 c5
 13
 06
-55
+37
 6f
 e0
 c8
@@ -6515,7 +6395,7 @@
 c0
 01
 06
-66
+48
 c0
 00
 a7
@@ -6535,7 +6415,7 @@
 c0
 01
 86
-65
+47
 1f
 e0
 fe
@@ -6551,11 +6431,11 @@
 c0
 01
 06
-66
+48
 20
 20
 06
-66
+48
 70
 41
 e8
@@ -6564,8 +6444,8 @@
 60
 00
 00
-0d
-bb
+8e
+be
 aa
 55
 40
@@ -6705,13 +6585,13 @@
 00
 ab
 4b
-14
+04
 09
-5a
+7a
+00
 00
-02
 22
-46
+41
 1b
 aa
 55
@@ -6719,7 +6599,7 @@
 00
 40
 4c
-09
+1d
 aa
 55
 0c
@@ -6762,7 +6642,7 @@
 49
 ff
 ff
-ff
+0c
 05
 04
 ff
@@ -6771,7 +6651,7 @@
 0b
 03
 0d
-08
+ff
 ff
 ff
 ff
@@ -7142,8 +7022,8 @@
 a8
 40
 11
-a3
-c8
+13
+28
 12
 23
 51
@@ -7333,7 +7213,7 @@
 00
 a6
 4d
-01
+00
 0b
 42
 54
@@ -7930,10 +7810,10 @@
 aa
 aa
 55
-81
-a0
-06
-68
+71
+9f
+00
+8c
 ff
 ff
 ff
@@ -8188,5 +8068,125 @@
 ff
 ff
 ff
-5b
-2f
+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
+76
+13
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/output/memmap.format	(revision 4790)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/output/memmap.format	(working copy)
@@ -2307,6 +2307,9 @@
 0x4dbb mem_bt_device2_name
 0x4dcf mem_mouse_d_l_l_led_multi_type
 0x4dd0 mem_mouse_select_sensor_angle_type
+0x4dd1 mem_mouse_customerkey_press_count
+0x4dd2 mem_mouse_customerkey_flag
+0x4dd3 mem_mouse_customerkey_step
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/program/patch.prog	(revision 4790)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/program/patch.prog	(working copy)
@@ -6,7 +6,7 @@
 //define COMMBINATION_DPI
 //define COMMBINATION_KEY_SELECT_DEVICE
 define G24_RETRANSMIT_KEY_SCAN
-define SEARCH_DONGLE
+//define SEARCH_DONGLE
 define S201X_SENSOR
 define SELECT_ANGLE
 //define PAIR_POWER_CTRL_20_50cm
@@ -291,20 +291,18 @@
 	branch txon_next+1
 
 p_set_tx_power_pair:
-ifdef PAIR_POWER_CTRL_20_50cm
-
-ifdef PAIR_POWER_CTRL_20_50cm
+ifdef PAIR_POWER_CTRL_50_110cm
 	jam 0x07,core_tx_pwr_ctrl0
-else
+	jam 0x00,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+endif
 
+ifdef PAIR_POWER_CTRL_20_50cm
 	jam 0x04,core_tx_pwr_ctrl0
-endif
 	jam 0x00,core_tx_pwr_ctrl1
 	branch set_rf_ldo_cfg89
-
-else
-	branch set_tx_power_f30db
 endif
+	branch set_tx_power_f30db
 	
 p_adc_init_data:
 	arg mem_temp_block2,rega
@@ -489,7 +487,9 @@
 endif
 	ncall p_mouse_le_name_load,wake
 	call mouse_init_sunt
-	rtn wake	
+	rtn wake
+	setarg 0
+	store 3,mem_mouse_customerkey_press_count
 	jam 0,mem_mouse_pair_flag
 	call p_mouse_seting_sensor_type
 	call mouse_usb_check_enable
@@ -508,6 +508,8 @@
 	jam 0,mem_mouse_another_dpi_connect_vin_flag
 	rtn
 p_mouse_another_dpi_connect_vin:
+	set0 gpio_active_bit,pdata
+	store 1,mem_dpi_another_button_gpio
 	jam 1,mem_mouse_another_dpi_connect_vin_flag
 	rtn
 endif
@@ -1391,8 +1393,8 @@
 	call mouse_setting_dpi_4_level
 	call p_mouse_dpi_led_blink_delay
 p_mouse_seting_sensor_type:
-ifdef S201X_SENSOR
 	fetch 1,mem_config_sensor_type
+ifdef S201X_SENSOR
 	beq S201X,p_mouse_seting_S201_dpi
 endif
 	branch mouse_seting_sensor_type
@@ -1486,6 +1488,7 @@
 	rtn
 
 p_mouse_bb_event_timer:
+	call p_mouse_check_customerkey_check_timer
 	call mouse_adc_read
 	call p_mouse_low_voltage_led_timer
 	//24g
@@ -2368,7 +2371,45 @@
 	arg gpcfg_output_low,temp
 	branch gpio_config_function_int	
 
+p_mouse_check_customerkey_check_timer:
+	fetcht 1,mem_customer_key_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_customer_key_gpio
+	call gpio_get_bit
+	branch p_mouse_customerkey_press_check,true
+p_mouse_customerkey_release_chcek:
+	fetch 1,mem_mouse_customerkey_press_count
+	rtn blank
+	jam 0,mem_mouse_customerkey_press_count
+	jam 1,mem_mouse_customerkey_flag
+	rtn
+
+p_mouse_customerkey_press_check:
+	fetch 1,mem_mouse_customerkey_press_count
+	pincrease 1
+	store 1,mem_mouse_customerkey_press_count
+	sub pdata,30,null
+	rtn positive
+	branch p_mouse_ready_reconnection_by_button
+
 p_mouse_check_customerkey_gpio:
+	fetch 1,mem_mouse_customerkey_flag
+	rtn blank
+p_mouse_customerkey_press_set:
+	fetch 1,mem_mouse_customerkey_step
+	pincrease 1
+	store 1,mem_mouse_customerkey_step
+	beq 1,p_mouse_customerkey_press
+	jam 0,mem_mouse_customerkey_step
+	jam 0,mem_mouse_customerkey_flag
+	call mouse_customerkey_release
+	branch enable_user
+
+p_mouse_customerkey_press:
+	call mouse_customerkey_press
+	branch enable_user
+	
+/*
 	fetch 1,mem_mouse_customer_key_connect_vin_flag
 	branch mouse_check_customerkey_gpio,blank
 	jam 0,mem_customer_key
@@ -2386,6 +2427,7 @@
 	call mouse_check_customerkey_state
 	fetcht 1,mem_customer_key_gpio
 	branch mouse_gpio_config_input_pu
+*/
 
 /////////////////////////////////////////////firekey start//////////////////////////////////////////
 
@@ -2562,8 +2604,6 @@
 
 p_mouse_dpi_another_gpio_connect_vin_check:
 	fetch 1,mem_dpi_another_button_gpio
-	set0 gpio_active_bit,pdata
-	store 1,mem_dpi_another_button_gpio
 	call p_mouse_gpio_config_output_low
 	jam MOUSE_DPI_ANOTHER_KEY,mem_mouse_key_temp_patch
 	fetcht 1,mem_dpi_another_button_gpio
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/sched/mouse.dat	(revision 4790)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/PBSwitch_3CH_ATX_CH606/sched/mouse.dat	(working copy)
@@ -22,7 +22,7 @@
 #bit4 MOUSE_LOW_VOLTAGE_FLAG
 #bit5 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
 #bit6 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
-14
+04
 
 #mouse flag byte2
 #bit0 MOUSE_ENABLE_BLE_RANDOM_ADDRE
@@ -41,7 +41,7 @@
 #bit4 MOUSE_ENABLE_ADC
 #bit5 MOUSE_ENABLE_KEYBOARD
 #bit6 MOUSE_ENABLE_24G_SEARCH_DONGLE
-5a
+7a
 
 #mouse flag byte4
 #bit0 MOUSE_ENABLE_24G_250Hz
@@ -63,7 +63,7 @@
 #bit5 MOUSE_ENABLE_DPI_FOR_4_LED
 #bit6 MOUSE_ENABLE_BT2_FOR_4_LED
 #bit7 MOUSE_ENABLE_LOW_V_FOR_4_LED
-02
+00
 
 #mouse flag byte6 
 #bit0 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
@@ -85,7 +85,7 @@
 #bit5 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
 #bit6 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
 #bit7 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY
-46
+41
 
 #mouse flag byte8
 #bit0 MOUSE_ENABLE_SMOOTHER
@@ -103,7 +103,7 @@
 #bit3 MOUSE_ENABLE_LOW_LED
 #bit4 MOUSE_ENABLE_LOW_LED_BLINK_LIMIT
 #bit5 MOUSE_ENABLE_1IO2LED
-09
+1d
 
 mem_mouse_discovery_timeout:b0 04	#2min
 mem_mouse_24g_pair_timeout_init:58 02  #1min	    24g reconn timer&pair timer
@@ -123,7 +123,7 @@
 mem_dpi_another_button_gpio:ff
 mem_matrix_public_gpio:ff
 mem_sensor_motion_gpio:ff
-mem_customer_key_gpio:ff
+mem_customer_key_gpio:0c
 mem_whee_a_data_gpio:05
 mem_whee_b_data_gpio:04
 mem_config_device_24g_led_gpio:ff
@@ -133,7 +133,7 @@
 mem_lbutton_gpio:0b
 mem_rbutton_gpio:03
 mem_mbutton_gpio:0d
-mem_config_select_device_button_gpio:08
+mem_config_select_device_button_gpio:ff
 mem_whee_ta_data_gpio:ff
 mem_whee_tb_data_gpio:ff
 mem_device_switch_gpio:ff
@@ -262,7 +262,7 @@
 mem_lpm_mult_init:20
 
 mem_app_connection_options:06
-mem_lap:11 a3 c8 12 23 51
+mem_lap:11 13 28 12 23 51
 mem_local_name_length:
 'BT3.0 Mouse
 mem_sniff_param_interval:
@@ -314,7 +314,7 @@
 mem_le_name_patch_len:	#max 18bytes
 'BT5.2 Mouse
 
-mem_mouse_le_name_modify_enable:01	#00 disable  01 enable
+mem_mouse_le_name_modify_enable:00	#00 disable  01 enable
 
 mem_ble_device2_name:	#max 18bytes
 'BT5.2 Mouse
