Index: do.bat
===================================================================
--- /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/do.bat	(revision 4638)
+++ /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/do.bat	(working copy)
@@ -81,7 +81,7 @@
 perl ../util/mergepatch.pl mouse_ble_att_list usb_kbdata_vendor_define usb_kbdata usb_msdata usb_devicedata usb_confdata ble_shutter_gatt_list ble_shutter_key_value_list ble_car_att_list sha256 
 perl ../util/romcrc.pl romcode.rom
 perl  ../util/mergepatch.pl otp
-
+perl  ../util/otpcheck.pl
 
 if "%device_option%" equ "shutter_dy" (
 cd ..\output
Index: output/otp.dat
===================================================================
--- /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/output/otp.dat	(revision 4638)
+++ /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/output/otp.dat	(working copy)
@@ -11,7 +11,7 @@
 00
 aa
 55
-76
+b2
 11
 c2
 84
@@ -24,35 +24,35 @@
 c0
 01
 01
-e0
+e1
 c0
 08
 81
-e9
+ea
 c0
 0a
 04
-1c
+21
 c0
 0a
 82
-75
+77
 c0
 0c
 02
-83
+85
 c0
 0c
 82
-42
+44
 c0
 0d
 01
-fb
+fc
 c0
 12
 84
-3e
+43
 c0
 13
 80
@@ -64,7 +64,7 @@
 c0
 52
 81
-c1
+c2
 c0
 53
 00
@@ -76,7 +76,7 @@
 c0
 55
 01
-b0
+b1
 c0
 56
 80
@@ -84,19 +84,19 @@
 c0
 58
 82
-8d
+8f
 c0
 62
 82
-8a
+8c
 c0
 6d
 03
-ed
+f2
 c0
 6e
-03
-fd
+04
+02
 20
 20
 23
@@ -108,19 +108,19 @@
 c0
 12
 81
-99
+9a
 c0
 13
 01
-9e
+9f
 c0
 1c
 84
-38
+3d
 c0
 26
 84
-3c
+41
 c1
 7f
 80
@@ -384,11 +384,11 @@
 c0
 02
 02
-c8
+cb
 c0
 01
 03
-08
+0b
 20
 60
 00
@@ -584,7 +584,7 @@
 24
 42
 81
-93
+94
 6f
 e0
 ce
@@ -1510,9 +1510,9 @@
 00
 05
 20
-20
-67
-be
+60
+00
+00
 20
 40
 67
@@ -1602,9 +1602,9 @@
 80
 05
 20
-20
-67
-be
+60
+00
+00
 18
 e2
 7e
@@ -1618,6 +1618,10 @@
 00
 00
 70
+48
+9e
+14
+70
 4e
 c9
 00
@@ -1632,7 +1636,7 @@
 20
 3a
 01
-96
+97
 20
 20
 65
@@ -1760,7 +1764,7 @@
 c0
 00
 81
-b6
+b7
 20
 20
 66
@@ -1776,7 +1780,7 @@
 c0
 03
 01
-ba
+bb
 20
 60
 00
@@ -1784,7 +1788,7 @@
 20
 40
 01
-bc
+bd
 20
 20
 67
@@ -1868,7 +1872,7 @@
 24
 3a
 01
-d1
+d2
 20
 20
 65
@@ -1884,7 +1888,7 @@
 20
 40
 01
-dc
+dd
 da
 60
 4a
@@ -1920,7 +1924,7 @@
 20
 40
 01
-d7
+d8
 70
 4b
 fe
@@ -1968,7 +1972,7 @@
 20
 20
 01
-e0
+e1
 70
 8a
 0f
@@ -2063,6 +2067,10 @@
 10
 70
 8a
+88
+40
+70
+8a
 13
 cd
 70
@@ -2084,7 +2092,7 @@
 20
 40
 02
-4a
+4c
 6f
 e0
 c4
@@ -2096,7 +2104,7 @@
 24
 55
 81
-f7
+f8
 37
 d9
 82
@@ -2112,7 +2120,7 @@
 c0
 08
 02
-37
+39
 6f
 e0
 c4
@@ -2156,7 +2164,7 @@
 20
 40
 02
-29
+2b
 70
 80
 43
@@ -2180,15 +2188,15 @@
 20
 40
 03
-bf
+c4
 20
 40
 03
-ea
+ef
 20
 40
 02
-23
+25
 70
 41
 48
@@ -2200,7 +2208,7 @@
 20
 20
 03
-ec
+f1
 20
 75
 80
@@ -2232,7 +2240,7 @@
 c0
 0c
 02
-2f
+31
 6f
 e0
 c4
@@ -2324,7 +2332,7 @@
 20
 20
 02
-15
+17
 6f
 e0
 c1
@@ -2332,7 +2340,7 @@
 c0
 05
 02
-45
+47
 20
 20
 22
@@ -2360,7 +2368,7 @@
 20
 35
 82
-71
+73
 6f
 e2
 02
@@ -2528,7 +2536,7 @@
 20
 20
 02
-5b
+5d
 20
 40
 68
@@ -2645,10 +2653,14 @@
 40
 a6
 0a
+20
+40
+70
+d7
 58
 00
 03
-7b
+7e
 67
 e1
 43
@@ -2656,7 +2668,7 @@
 58
 00
 03
-50
+53
 67
 e1
 43
@@ -2664,7 +2676,7 @@
 58
 00
 03
-6d
+70
 67
 e1
 43
@@ -2680,7 +2692,7 @@
 58
 00
 02
-a4
+a7
 67
 e1
 43
@@ -2696,7 +2708,7 @@
 58
 00
 02
-b9
+bc
 67
 e1
 43
@@ -2728,7 +2740,7 @@
 20
 40
 02
-a9
+ac
 20
 40
 70
@@ -2772,7 +2784,7 @@
 20
 22
 82
-b4
+b7
 1f
 e2
 04
@@ -2780,7 +2792,7 @@
 20
 40
 02
-b7
+ba
 1a
 20
 a2
@@ -2788,7 +2800,7 @@
 c2
 00
 02
-ae
+b1
 20
 60
 00
@@ -2804,11 +2816,11 @@
 20
 40
 02
-c1
+c4
 20
 40
 03
-44
+47
 20
 40
 68
@@ -2840,7 +2852,7 @@
 da
 40
 02
-c4
+c7
 20
 20
 42
@@ -2852,11 +2864,11 @@
 c0
 00
 82
-c8
+cb
 c0
 01
 03
-08
+0b
 20
 60
 00
@@ -2872,7 +2884,7 @@
 24
 3a
 02
-ef
+f2
 6f
 e0
 cf
@@ -2880,7 +2892,7 @@
 24
 5a
 02
-e5
+e8
 70
 4f
 c8
@@ -2912,7 +2924,7 @@
 20
 22
 82
-e2
+e5
 da
 40
 4f
@@ -3040,7 +3052,7 @@
 20
 22
 83
-04
+07
 6f
 e0
 cf
@@ -3048,7 +3060,7 @@
 24
 3a
 02
-fc
+ff
 70
 4f
 ba
@@ -3128,7 +3140,7 @@
 24
 3a
 03
-2f
+32
 6f
 e0
 cf
@@ -3136,7 +3148,7 @@
 24
 5a
 03
-25
+28
 70
 4f
 c8
@@ -3168,7 +3180,7 @@
 20
 22
 83
-22
+25
 da
 40
 4f
@@ -3296,7 +3308,7 @@
 20
 22
 83
-04
+07
 6f
 e0
 cf
@@ -3304,7 +3316,7 @@
 24
 3a
 03
-3c
+3f
 70
 4f
 ba
@@ -3372,7 +3384,7 @@
 da
 40
 03
-49
+4c
 20
 20
 42
@@ -3412,11 +3424,11 @@
 c0
 20
 03
-64
+67
 c0
 18
 83
-54
+57
 20
 20
 64
@@ -3428,7 +3440,7 @@
 20
 40
 03
-57
+5a
 20
 60
 00
@@ -3440,11 +3452,11 @@
 20
 3a
 03
-5a
+5d
 20
 20
 03
-5f
+62
 6f
 e1
 4f
@@ -3508,7 +3520,7 @@
 24
 3a
 03
-78
+7b
 6f
 e4
 4f
@@ -3528,7 +3540,7 @@
 c0
 12
 03
-70
+73
 20
 60
 00
@@ -3552,7 +3564,7 @@
 24
 3a
 03
-78
+7b
 6f
 e4
 4f
@@ -3577,6 +3589,14 @@
 20
 2e
 93
+df
+e0
+00
+0a
+20
+40
+70
+c8
 20
 40
 64
@@ -3616,7 +3636,7 @@
 20
 20
 03
-85
+8a
 6f
 e1
 48
@@ -3680,7 +3700,7 @@
 20
 40
 03
-a2
+a7
 6f
 e1
 06
@@ -3728,7 +3748,7 @@
 c2
 00
 03
-8e
+93
 20
 60
 00
@@ -3772,7 +3792,7 @@
 20
 20
 03
-ac
+b1
 1a
 60
 8c
@@ -3784,7 +3804,7 @@
 20
 20
 03
-af
+b4
 20
 40
 65
@@ -3808,7 +3828,7 @@
 20
 40
 03
-b6
+bb
 20
 20
 65
@@ -3900,7 +3920,7 @@
 20
 40
 03
-dc
+e1
 2a
 2f
 fe
@@ -3932,7 +3952,7 @@
 20
 40
 03
-dc
+e1
 d8
 a0
 8a
@@ -3960,7 +3980,7 @@
 20
 21
 03
-d1
+d6
 20
 20
 21
@@ -4064,7 +4084,7 @@
 20
 40
 04
-15
+1a
 70
 8a
 08
@@ -4100,7 +4120,7 @@
 20
 40
 04
-0b
+10
 6f
 f0
 8a
@@ -4144,7 +4164,7 @@
 20
 40
 04
-15
+1a
 70
 80
 cd
@@ -4204,7 +4224,7 @@
 c3
 02
 84
-16
+1b
 68
 59
 01
@@ -4240,7 +4260,7 @@
 c0
 08
 04
-35
+3a
 58
 00
 57
@@ -4284,7 +4304,7 @@
 c0
 08
 04
-32
+37
 58
 00
 2b
@@ -4320,7 +4340,7 @@
 20
 20
 04
-2e
+33
 58
 00
 83
@@ -4332,7 +4352,7 @@
 20
 20
 04
-23
+28
 6f
 e0
 c3
@@ -4380,11 +4400,51 @@
 20
 40
 04
-45
+54
+6f
+e0
+c0
+cb
+79
 20
+7e
+04
 20
+40
+23
+e1
 24
-25
+55
+a3
+cb
+37
+d9
+82
+00
+1b
+22
+7e
+00
+67
+e3
+40
+b1
+6f
+e1
+c0
+c6
+6a
+20
+c0
+c9
+df
+20
+00
+03
+20
+20
+24
+2e
 60
 04
 40
@@ -4452,7 +4512,7 @@
 20
 22
 84
-58
+67
 e7
 e0
 80
@@ -4472,7 +4532,7 @@
 c2
 00
 04
-52
+61
 1a
 42
 04
@@ -4481,8 +4541,8 @@
 60
 00
 00
-7f
-1c
+72
+6a
 aa
 55
 40
@@ -4617,8 +4677,8 @@
 4f
 b0
 1f
-70
-1a
+f0
+1b
 aa
 55
 02
@@ -6941,7 +7001,7 @@
 aa
 aa
 55
-7c
+fd
 86
-b9
-aa
+58
+07
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/output/ramcode.rom	(revision 4638)
+++ /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/output/ramcode.rom	(working copy)
@@ -1,30 +1,30 @@
 c2840016
 c000001d
-c00101e0
-c00881e9
-c00a041c
-c00a8275
-c00c0283
-c00c8242
-c00d01fb
-c012843e
+c00101e1
+c00881ea
+c00a0421
+c00a8277
+c00c0285
+c00c8244
+c00d01fc
+c0128443
 c0138048
 c0518084
-c05281c1
+c05281c2
 c0530053
 c053805f
-c05501b0
+c05501b1
 c05680a0
-c058828d
-c062828a
-c06d03ed
-c06e03fd
+c058828f
+c062828c
+c06d03f2
+c06e0402
 2020235a
 c0120021
-c0128199
-c013019e
-c01c8438
-c026843c
+c012819a
+c013019f
+c01c843d
+c0268441
 c17f8000
 2020235a
 2435a002
@@ -90,8 +90,8 @@
 18e27e00
 c002e765
 c0006761
-c00202c8
-c0010308
+c00202cb
+c001030b
 20600000
 6fe0cec7
 c000e5cf
@@ -140,7 +140,7 @@
 18e27e00
 6848cec5
 98467c00
-24428193
+24428194
 6fe0cec9
 245a018e
 18e27e00
@@ -372,7 +372,7 @@
 18a08a04
 6fe24b17
 e7e20005
-202067be
+20600000
 20406730
 243a0181
 58000034
@@ -395,14 +395,15 @@
 1ff27e00
 1fed7e00
 e7e18005
-202067be
+20600000
 18e27e00
 c0030191
 20600000
+70489e14
 704ec900
 20204325
 6fe0cec9
-203a0196
+203a0197
 20206529
 20406730
 207a0000
@@ -434,13 +435,13 @@
 efe18006
 67e1c397
 c003e704
-c00081b6
+c00081b7
 202066db
 18c08dfe
 efe08006
-c00301ba
+c00301bb
 20600000
-204001bc
+204001bd
 202067bf
 704eaa01
 7049e400
@@ -461,11 +462,11 @@
 24417806
 1a608c09
 efe08006
-243a01d1
+243a01d2
 20206547
 704ec001
 2040656b
-204001dc
+204001dd
 da604aae
 dfe00003
 2020655a
@@ -474,7 +475,7 @@
 704fc900
 704fc801
 20600000
-204001d7
+204001d8
 704bfe00
 704f8d00
 20600000
@@ -486,7 +487,7 @@
 20402018
 2040310f
 2040248c
-202001e0
+202001e1
 708a0f60
 708a10aa
 708a127a
@@ -510,19 +511,20 @@
 37d98200
 7089460d
 70896f10
+708a8840
 708a13cd
 708a0610
 708a844a
 708a8540
 708a16fe
-2040024a
+2040024c
 6fe0c436
 205a70d7
-245581f7
+245581f8
 37d98200
 70813b5f
 6fe0c099
-c0080237
+c0080239
 6fe0c438
 1fe1fe04
 67f08a02
@@ -533,18 +535,18 @@
 67f18a73
 708a8660
 708a8b3b
-20400229
+2040022b
 70804300
 70804205
 58557474
 67f18968
 7089606e
-204003bf
-204003ea
-20400223
+204003c4
+204003ef
+20400225
 7041480c
 20406f4e
-202003ec
+202003f1
 20758000
 37d98200
 6fe0c11c
@@ -552,7 +554,7 @@
 37d98200
 20600000
 6fe0c099
-c00c022f
+c00c0231
 6fe0c438
 1fe1fe06
 67f08a02
@@ -575,16 +577,16 @@
 67f18a73
 708a762a
 70890204
-20200215
+20200217
 6fe0c141
-c0050245
+c0050247
 2020220e
 708a1425
 58a93f3f
 67f18a60
 708a631f
 20600000
-20358271
+20358273
 6fe2020d
 207a0000
 37d98200
@@ -626,7 +628,7 @@
 6fe1415b
 207a0000
 67e1020f
-2020025b
+2020025d
 2040686f
 204021ba
 18002a08
@@ -656,19 +658,20 @@
 20406454
 20406459
 7040a60a
-5800037b
+204070d7
+5800037e
 67e143db
-58000350
+58000353
 67e143dd
-5800036d
+58000370
 67e143df
 580062d3
 67e143d3
-580002a4
+580002a7
 67e143d5
 58006329
 67e143d7
-580002b9
+580002bc
 67e143e3
 58006505
 67e14524
@@ -676,7 +679,7 @@
 2020647d
 20406f35
 7044ecff
-204002a9
+204002ac
 2040701b
 2020739a
 6fe0c6ce
@@ -687,16 +690,16 @@
 efe08011
 6848c6cf
 98467c00
-202282b4
+202282b7
 1fe20400
-204002b7
+204002ba
 1a20a201
-c20002ae
+c20002b1
 20600000
 79200407
 20206edd
-204002c1
-20400344
+204002c4
+20400347
 20406858
 2040675a
 204064bc
@@ -704,17 +707,17 @@
 20406311
 202064d9
 da604fba
-da4002c4
+da4002c7
 202042e0
 6fe0cfbd
-c00082c8
-c0010308
+c00082cb
+c001030b
 20600000
 704fbd01
 20406730
-243a02ef
+243a02f2
 6fe0cfc8
-245a02e5
+245a02e8
 704fc800
 704fba01
 7049e50a
@@ -722,7 +725,7 @@
 1fe0fe01
 67e0cfbe
 1fe67c5a
-202282e2
+202282e5
 da404fbf
 d8404c02
 efe08012
@@ -754,9 +757,9 @@
 1fe0fe01
 67e0cfc9
 1fe67c28
-20228304
+20228307
 6fe0cfca
-243a02fc
+243a02ff
 704fba01
 704ec500
 7049e514
@@ -776,9 +779,9 @@
 20600000
 704fbd02
 20406730
-243a032f
+243a0332
 6fe0cfc8
-245a0325
+245a0328
 704fc800
 704fba01
 7049e50a
@@ -786,7 +789,7 @@
 1fe0fe01
 67e0cfbe
 1fe67c5a
-20228322
+20228325
 da404fc2
 d8404c02
 efe08012
@@ -818,9 +821,9 @@
 1fe0fe01
 67e0cfc9
 1fe67c1e
-20228304
+20228307
 6fe0cfca
-243a033c
+243a033f
 704fba01
 704ec500
 7049e514
@@ -837,7 +840,7 @@
 6fe0cec9
 207a0000
 da604fb8
-da400349
+da40034c
 202042e0
 704fb805
 6fe0cfb9
@@ -847,15 +850,15 @@
 c000c325
 20600000
 1a627e00
-c0200364
-c0188354
+c0200367
+c0188357
 202064e0
 704ec201
-20400357
+2040035a
 20600000
 20406730
-203a035a
-2020035f
+203a035d
+20200362
 6fe14f74
 67e14eae
 6fe14f76
@@ -871,24 +874,26 @@
 6fe4450a
 207a0000
 20406730
-243a0378
+243a037b
 6fe44f02
 67e442d3
 20202e93
 6fe14398
-c0120370
+c0120373
 20600000
 204078ad
 7044f101
 20406730
 2040432b
-243a0378
+243a037b
 6fe44f02
 67e442d3
 20202e93
 6fe44fb0
 67e442d3
 20202e93
+dfe0000a
+204070c8
 2040649b
 d8e00009
 20407cef
@@ -898,7 +903,7 @@
 20407ce1
 78547c00
 2040701b
-20200385
+2020038a
 6fe148ac
 67e1442e
 204065be
@@ -914,7 +919,7 @@
 67e1068c
 18e27e00
 67e1067a
-204003a2
+204003a7
 6fe1068c
 1fe22600
 6fe1067a
@@ -926,7 +931,7 @@
 1fe0a60a
 6fe10678
 1fe27200
-c200038e
+c2000393
 20600000
 1a60a405
 efe20012
@@ -937,16 +942,16 @@
 24417806
 580003e8
 98467c00
-202003ac
+202003b1
 1a608c04
 efe08006
-202003af
+202003b4
 2040656b
 6fe0cec9
 243a655d
 20406561
 20216500
-204003b6
+204003bb
 20206557
 da604a30
 7049e50a
@@ -969,7 +974,7 @@
 708ac200
 708ac300
 d8e00006
-204003dc
+204003e1
 2a2ffe0d
 2040211d
 2a4ffe0d
@@ -977,14 +982,14 @@
 d8e00005
 2040211c
 2040211e
-204003dc
+204003e1
 d8a08ac2
 1a31fe00
 20402117
 1a51fe00
 20402117
 18e08fff
-202103d1
+202103d6
 2020214f
 2000003c
 58000f00
@@ -1010,7 +1015,7 @@
 6fe0c409
 67f080cd
 20000bb8
-20400415
+2040041a
 708a08c1
 6a40c419
 df200008
@@ -1019,7 +1024,7 @@
 67e0c433
 6240c419
 20600000
-2040040b
+20400410
 6ff08a09
 793ffe07
 67f08a09
@@ -1030,7 +1035,7 @@
 6fe0c409
 67f080cd
 20000bb8
-20400415
+2040041a
 7080cd00
 20206fa1
 6ff080cc
@@ -1045,7 +1050,7 @@
 20600000
 7080cc03
 6ff08129
-c3028416
+c302841b
 68590164
 6049440a
 7080cc00
@@ -1054,7 +1059,7 @@
 708a8d12
 708a8e0a
 6fe0c099
-c0080435
+c008043a
 58005762
 67f10907
 70890103
@@ -1065,7 +1070,7 @@
 708a8d44
 708a8e0a
 6fe0c099
-c0080432
+c0080437
 58002bb1
 67f10907
 c6978000
@@ -1074,10 +1079,10 @@
 20600000
 58004189
 67f10907
-2020042e
+20200433
 58008312
 67f10907
-20200423
+20200428
 6fe0c334
 c1000000
 c001b04a
@@ -1089,8 +1094,18 @@
 6fe240ad
 9840fe00
 67e240ad
-20400445
-20202425
+20400454
+6fe0c0cb
+79207e04
+204023e1
+2455a3cb
+37d98200
+1b227e00
+67e340b1
+6fe1c0c6
+6a20c0c9
+df200003
+2020242e
 600440e7
 d8c08070
 d8a040cc
@@ -1107,11 +1122,11 @@
 efe08011
 e8408013
 98467c00
-20228458
+20228467
 e7e08013
 37d98200
 1a20a201
 1a60a601
-c2000452
+c2000461
 1a420400
 20600000
Index: output/sched.rom
===================================================================
--- /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/output/sched.rom	(revision 4638)
+++ /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/output/sched.rom	(working copy)
@@ -77,8 +77,8 @@
 mem_tx_power:06
 
 //save otp addr
-mem_shutter_efuse_start_offset: b0 1f
-mem_shutter_efuse_end_offset: 70 1a
+mem_shutter_efuse_start_offset:b0 1f
+mem_shutter_efuse_end_offset:f0 1b
 
 mem_shutter_le_pairing_handle:2b 00
 
Index: program/patch.prog
===================================================================
--- /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/program/patch.prog	(revision 4638)
+++ /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/program/patch.prog	(working copy)
@@ -488,7 +488,8 @@
 	increase 4,contw
 	fetch 4,mem_shutter_move_data
 	istore 4,contw
-	branch shutter_dy_store_move_config_info
+	rtn
+	// branch shutter_dy_store_move_config_info
 
 p_get_move_release_data:
 	call shutter_dy_check_iphone
@@ -515,7 +516,8 @@
 	lshift4 pdata,pdata
 	lshift8 pdata,pdata
 	istore 3,contw
-	branch shutter_dy_store_move_config_info
+	rtn
+	// branch shutter_dy_store_move_config_info
 
 p_shutter_short_key_cancel:
 	copy queue,pdata
@@ -523,6 +525,7 @@
 	rtn
 
 p_move_mode_disable:
+	jam 0x14,mem_shutter_1s_timer
 	jam 0,mem_move_mode_trigger_enable
 	branch app_led_off
 
@@ -671,7 +674,7 @@
 
 	jam 0x0d,0x8946
 	jam 0x10,0x896f
-
+	jam 0x40,core_rx_cfg0
 	jam 0xcd,0x8a13
 	jam 0x10,0x8a06
 	jam 0x4a,0x8a84
@@ -851,7 +854,7 @@
 	call shutter_dy_key_conf
 	call shutter_dy_adv_conf
 	jam 0x0a,mem_lpm_overhead
-
+	call wdt_set_disable
 	setarg p_shutter_dy_process_idle
 	store 2,mem_cb_idle_process
 
@@ -1166,6 +1169,8 @@
 	branch le_l2cap_tx_update_req
 
 p_shutter_dy_process_idle:
+	arg 10, pdata //Լ96ms
+	call wdt_init_config
 	call shutter_dy_shutter_send_data_to_master
 	arg key_scan_timer,queue
 	call timer_check
@@ -1432,7 +1437,18 @@
 	iadd temp,pdata
 	store 4,mem_sleep_counter_all
 	call p_lpm_save_context
-	branch lpm_sleep_skip_cb_function+4
+	fetch 1,mem_lpm_hv_sel
+	set1 LPM_DOZE_EN_BIT, pdata
+	call lpm_write_sel_hv
+	ncall lpm_preon_counter,wake
+	until null,lpo_edge
+	copy clkn,pdata
+	store 6,mem_sleep_clkn
+	// storer clkn,6,mem_sleep_clkn
+	fetch 3,mem_lpm_isogate
+	fetchr rega,1,mem_lpm_ldo_sel
+	arg 3,loopcnt
+	branch lpm_sleep_loop
 
 p_lpm_save_context:
 	storer mark,8,mem_saved_mark
Index: sched/shutter_dy.dat
===================================================================
--- /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/sched/shutter_dy.dat	(revision 4638)
+++ /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/sched/shutter_dy.dat	(working copy)
@@ -10,8 +10,8 @@
 mem_tx_power:06
 
 //save otp addr
-mem_shutter_efuse_start_offset: b0 1f
-mem_shutter_efuse_end_offset: 70 1a
+mem_shutter_efuse_start_offset:b0 1f
+mem_shutter_efuse_end_offset:f0 1b
 
 mem_shutter_le_pairing_handle:2b 00
 
Index: util/otpcheck.pl
===================================================================
--- /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/util/otpcheck.pl	(nonexistent)
+++ /1121s/branch/shutter/branch/dy/Xinfeiyi/yc1088s_xfy_drag_7key/util/otpcheck.pl	(working copy)
@@ -0,0 +1,77 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+use File::Spec;  
+# 获取当前脚本的目录路径
+my $current_dir = File::Spec->rel2abs('.');
+my $parent_dir = File::Spec->catdir($current_dir, '..');  # 获取上一级目录
+
+# 指定要搜索的文件名
+my $filename = File::Spec->catfile($parent_dir, 'output', 'otp.dat');
+# 打开文件进行读取
+open(my $fh, '<',$filename) or die "无法打开文件 '$filename':$!";
+
+# 读取整个文件到数组中
+my @file_content = <$fh>;
+chomp @file_content;  # 移除每行的换行符
+
+# 关闭文件句柄
+close($fh);
+
+# 初始化变量
+my $found = 0;
+my $otp_end_address = 0;
+# 循环遍历文件内容，每次移动一个字节
+for my $start (0 ..$#file_content - 3) {
+    # 提取从当前起始位置开始的四个字节
+    my $chunk = join('', @file_content[$start .. $start + 3]);
+    
+    # 检查这四个字节是否匹配指定的字符串
+    if ($chunk eq '55aaaa55') {
+        $otp_end_address = $start +9;
+        # print "After adding 9 to the start position: $start\n";
+        $found = 1;
+    }
+}
+
+# 如果找到了 "55aaaa55"，则继续处理 sched.rom 文件
+if ($found) {
+    my $sched_filename = File::Spec->catfile($parent_dir, 'output', 'sched.rom');
+    # 打开文件进行读取
+    open(my $sched_fh, '<',$sched_filename) or die "无法打开文件 '$sched_filename'$!";
+    # 读取整个文件到字符串中
+    my $sched_content = do { local$/; <$sched_fh> };
+    chomp $sched_content;  # 移除字符串末尾的换行符
+    # print "sched_content: $sched_content\n";
+    # 关闭文件句柄
+    close($sched_fh);
+    # 在 sched_content 中查找 "mem_shutter_efuse_end_offset:"
+    my $sched_position = index($sched_content, 'mem_shutter_efuse_end_offset:');
+    # 如果找到了 "mem_shutter_efuse_end_offset:"
+    if ($sched_position != -1) {
+        # 获取 "mem_shutter_efuse_end_offset:" 后面的两个字节
+        my $five_bytes_with_spaces = substr($sched_content, $sched_position + length("mem_shutter_efuse_end_offset:"), 5);
+        $five_bytes_with_spaces =~ s/ //g;  # 移除空格
+        my $five_bytes =$five_bytes_with_spaces;
+        print "Q:  $five_bytes\n";
+        # 字节颠倒
+        my $reversed_bytes = substr($five_bytes, 2, 2) . substr($five_bytes, 0, 2);
+        my $decimal_value = hex($reversed_bytes);
+        # 打印找到的字符串位置信息以及后面跟随的两个字节
+        print "Original otp store start little-endian bytes: $five_bytes\n";
+        print "Reversed (big-endian) bytes:  $decimal_value\n";
+        print "otp end bytes:  $otp_end_address\n";
+        if($decimal_value>$otp_end_address)
+        {
+            print"otp check done";
+        }
+        else
+        {
+            die "otp check failed, please check mem_shutter_efuse_end_offset'\n";
+        }
+    } else {
+        print "String 'mem_shutter_efuse_end_offset:' not found in file '$sched_filename'.\n";
+    }
+}
+
+
