Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YHK/mouse_only_24g/output/eeprom.dat	(revision 668)
+++ /YC1308AC/branch/mouse_project/YHK/mouse_only_24g/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-7a
-0a
+3a
+0b
 c2
 84
 00
@@ -31,11 +31,11 @@
 c0
 68
 01
-ea
+ef
 c0
 68
 82
-50
+80
 c0
 6b
 01
@@ -43,11 +43,11 @@
 c0
 6c
 81
-f7
+fc
 c0
 6f
 02
-86
+b6
 20
 20
 13
@@ -1465,7 +1465,7 @@
 c8
 a4
 c2
-82
+83
 26
 79
 20
@@ -1831,7 +1831,7 @@
 20
 40
 02
-24
+37
 20
 20
 48
@@ -1839,7 +1839,7 @@
 20
 40
 02
-24
+37
 6f
 e2
 48
@@ -1866,8 +1866,8 @@
 a5
 24
 3a
-47
-e1
+01
+d8
 6f
 e0
 c8
@@ -1875,23 +1875,43 @@
 c0
 01
 01
-d8
+dd
 c0
 02
 01
-de
+e3
 c0
 01
 81
-e5
+ea
 20
 40
 02
-24
+37
 20
 20
 48
 3a
+70
+48
+a5
+00
+20
+40
+26
+52
+5f
+ff
+ff
+ff
+67
+e4
+48
+5c
+20
+20
+47
+e5
 6f
 e4
 4b
@@ -1899,11 +1919,11 @@
 c2
 97
 81
-dc
+e1
 c2
 98
 01
-dc
+e1
 20
 20
 48
@@ -1911,7 +1931,7 @@
 20
 40
 02
-0d
+20
 20
 20
 48
@@ -1923,7 +1943,7 @@
 c3
 17
 81
-e3
+e8
 6f
 e0
 cb
@@ -1931,7 +1951,7 @@
 c0
 00
 81
-e3
+e8
 20
 20
 48
@@ -1939,7 +1959,7 @@
 20
 40
 02
-24
+37
 20
 20
 48
@@ -1951,15 +1971,15 @@
 c3
 17
 81
-e3
+e8
 c2
 89
 81
-e3
+e8
 c2
 89
 01
-e3
+e8
 20
 20
 48
@@ -1971,7 +1991,7 @@
 20
 40
 01
-ed
+f2
 20
 20
 40
@@ -2007,7 +2027,7 @@
 20
 3a
 02
-3d
+58
 67
 e0
 cb
@@ -2018,10 +2038,6 @@
 00
 20
 40
-01
-ff
-20
-40
 3e
 9b
 20
@@ -2043,11 +2059,71 @@
 20
 40
 02
-3a
+55
 20
+40
+02
+12
 20
+40
+40
+7c
+20
+40
 44
-bd
+cc
+20
+40
+02
+6b
+20
+40
+44
+ff
+20
+40
+45
+04
+20
+40
+45
+12
+20
+40
+45
+1f
+20
+40
+45
+15
+20
+40
+45
+2a
+20
+40
+45
+2d
+20
+40
+45
+32
+20
+40
+45
+35
+20
+40
+40
+22
+20
+40
+45
+47
+20
+20
+02
+4d
 6f
 e0
 cb
@@ -2063,11 +2139,11 @@
 c0
 00
 82
-14
+27
 20
 40
 02
-21
+34
 6f
 e0
 cb
@@ -2091,7 +2167,7 @@
 20
 42
 82
-0b
+1e
 20
 60
 00
@@ -2103,7 +2179,7 @@
 20
 20
 02
-26
+39
 70
 4b
 eb
@@ -2139,7 +2215,7 @@
 da
 40
 02
-17
+2a
 20
 20
 31
@@ -2159,7 +2235,7 @@
 20
 3a
 02
-1f
+32
 6f
 e0
 cb
@@ -2167,7 +2243,7 @@
 20
 3a
 02
-24
+37
 1f
 e0
 ff
@@ -2183,7 +2259,7 @@
 c0
 00
 82
-26
+39
 70
 4b
 e7
@@ -2211,7 +2287,7 @@
 24
 3a
 02
-2a
+3d
 70
 4b
 e5
@@ -2235,7 +2311,7 @@
 c0
 01
 82
-30
+43
 68
 48
 cb
@@ -2283,7 +2359,39 @@
 20
 20
 02
-10
+23
+6f
+e0
+c9
+2a
+c3
+83
+80
+00
+da
+60
+4a
+b2
+da
+40
+02
+52
+20
+20
+31
+91
+6f
+e0
+c9
+38
+c0
+00
+01
+d8
+20
+20
+43
+1b
 da
 60
 4b
@@ -2291,7 +2399,7 @@
 da
 40
 02
-3d
+58
 20
 20
 31
@@ -2303,7 +2411,7 @@
 c2
 8e
 02
-43
+5e
 6f
 e0
 c9
@@ -2311,15 +2419,15 @@
 c0
 00
 02
-4a
+65
 c0
 00
 82
-4c
+67
 20
 20
 02
-48
+63
 6f
 e0
 c9
@@ -2327,19 +2435,19 @@
 c0
 00
 02
-4c
+67
 c0
 00
 82
-4e
+69
 c0
 01
 02
-48
+63
 20
 20
 02
-4a
+65
 70
 4b
 ed
@@ -2347,7 +2455,7 @@
 20
 20
 02
-37
+4a
 70
 4b
 ed
@@ -2355,7 +2463,7 @@
 20
 20
 02
-37
+4a
 70
 4b
 ed
@@ -2363,15 +2471,99 @@
 20
 20
 02
-37
+4a
+70
+4b
+ed
+07
+20
+20
+02
+4a
+6f
+e0
+c9
+38
+c0
+00
+02
+71
+6f
+e4
+4b
+ab
+c4
+1a
+80
+00
+68
+48
+cb
+ca
+20
+20
+02
+74
+6f
+e4
+4b
+ab
+c4
+19
+00
+00
+68
+48
+cb
+cb
+60
+48
+cb
+9d
+20
+40
+41
+15
+1f
+e1
+7e
+07
+68
+48
+cb
+9d
+98
+46
+7c
+00
+20
+22
+82
+7b
+20
+20
+44
+eb
+20
+40
+44
+f6
+6f
+e0
+cb
+9f
+c1
+00
+80
+00
 70
 4b
-ed
-07
-20
+9f
+01
 20
-02
-37
+60
+00
+00
 6f
 e0
 cb
@@ -2387,23 +2579,23 @@
 20
 40
 02
-59
+89
 20
 40
 02
-5e
+8e
 20
 40
 02
-63
+93
 20
 40
 02
-68
+98
 20
 40
 02
-75
+a5
 20
 20
 41
@@ -2415,7 +2607,7 @@
 20
 40
 02
-82
+b2
 20
 40
 41
@@ -2435,7 +2627,7 @@
 20
 40
 02
-82
+b2
 20
 40
 41
@@ -2455,7 +2647,7 @@
 20
 40
 02
-82
+b2
 20
 40
 41
@@ -2499,7 +2691,7 @@
 c0
 7f
 82
-71
+a1
 20
 20
 41
@@ -2511,7 +2703,7 @@
 20
 40
 02
-84
+b4
 68
 48
 c9
@@ -2551,7 +2743,7 @@
 c0
 7f
 82
-7e
+ae
 20
 20
 41
@@ -2563,7 +2755,7 @@
 20
 40
 02
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ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+47
+70
+48
+8f
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-da
-23
+82
+bd
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YHK/mouse_only_24g/output/flash.dat	(revision 668)
+++ /YC1308AC/branch/mouse_project/YHK/mouse_only_24g/output/flash.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-7a
-0a
+3a
+0b
 c2
 84
 00
@@ -31,11 +31,11 @@
 c0
 68
 01
-ea
+ef
 c0
 68
 82
-50
+80
 c0
 6b
 01
@@ -43,11 +43,11 @@
 c0
 6c
 81
-f7
+fc
 c0
 6f
 02
-86
+b6
 20
 20
 13
@@ -1465,7 +1465,7 @@
 c8
 a4
 c2
-82
+83
 26
 79
 20
@@ -1831,7 +1831,7 @@
 20
 40
 02
-24
+37
 20
 20
 48
@@ -1839,7 +1839,7 @@
 20
 40
 02
-24
+37
 6f
 e2
 48
@@ -1866,8 +1866,8 @@
 a5
 24
 3a
-47
-e1
+01
+d8
 6f
 e0
 c8
@@ -1875,23 +1875,43 @@
 c0
 01
 01
-d8
+dd
 c0
 02
 01
-de
+e3
 c0
 01
 81
-e5
+ea
 20
 40
 02
-24
+37
 20
 20
 48
 3a
+70
+48
+a5
+00
+20
+40
+26
+52
+5f
+ff
+ff
+ff
+67
+e4
+48
+5c
+20
+20
+47
+e5
 6f
 e4
 4b
@@ -1899,11 +1919,11 @@
 c2
 97
 81
-dc
+e1
 c2
 98
 01
-dc
+e1
 20
 20
 48
@@ -1911,7 +1931,7 @@
 20
 40
 02
-0d
+20
 20
 20
 48
@@ -1923,7 +1943,7 @@
 c3
 17
 81
-e3
+e8
 6f
 e0
 cb
@@ -1931,7 +1951,7 @@
 c0
 00
 81
-e3
+e8
 20
 20
 48
@@ -1939,7 +1959,7 @@
 20
 40
 02
-24
+37
 20
 20
 48
@@ -1951,15 +1971,15 @@
 c3
 17
 81
-e3
+e8
 c2
 89
 81
-e3
+e8
 c2
 89
 01
-e3
+e8
 20
 20
 48
@@ -1971,7 +1991,7 @@
 20
 40
 01
-ed
+f2
 20
 20
 40
@@ -2007,7 +2027,7 @@
 20
 3a
 02
-3d
+58
 67
 e0
 cb
@@ -2018,10 +2038,6 @@
 00
 20
 40
-01
-ff
-20
-40
 3e
 9b
 20
@@ -2043,11 +2059,71 @@
 20
 40
 02
-3a
+55
 20
+40
+02
+12
 20
+40
+40
+7c
+20
+40
 44
-bd
+cc
+20
+40
+02
+6b
+20
+40
+44
+ff
+20
+40
+45
+04
+20
+40
+45
+12
+20
+40
+45
+1f
+20
+40
+45
+15
+20
+40
+45
+2a
+20
+40
+45
+2d
+20
+40
+45
+32
+20
+40
+45
+35
+20
+40
+40
+22
+20
+40
+45
+47
+20
+20
+02
+4d
 6f
 e0
 cb
@@ -2063,11 +2139,11 @@
 c0
 00
 82
-14
+27
 20
 40
 02
-21
+34
 6f
 e0
 cb
@@ -2091,7 +2167,7 @@
 20
 42
 82
-0b
+1e
 20
 60
 00
@@ -2103,7 +2179,7 @@
 20
 20
 02
-26
+39
 70
 4b
 eb
@@ -2139,7 +2215,7 @@
 da
 40
 02
-17
+2a
 20
 20
 31
@@ -2159,7 +2235,7 @@
 20
 3a
 02
-1f
+32
 6f
 e0
 cb
@@ -2167,7 +2243,7 @@
 20
 3a
 02
-24
+37
 1f
 e0
 ff
@@ -2183,7 +2259,7 @@
 c0
 00
 82
-26
+39
 70
 4b
 e7
@@ -2211,7 +2287,7 @@
 24
 3a
 02
-2a
+3d
 70
 4b
 e5
@@ -2235,7 +2311,7 @@
 c0
 01
 82
-30
+43
 68
 48
 cb
@@ -2283,7 +2359,39 @@
 20
 20
 02
-10
+23
+6f
+e0
+c9
+2a
+c3
+83
+80
+00
+da
+60
+4a
+b2
+da
+40
+02
+52
+20
+20
+31
+91
+6f
+e0
+c9
+38
+c0
+00
+01
+d8
+20
+20
+43
+1b
 da
 60
 4b
@@ -2291,7 +2399,7 @@
 da
 40
 02
-3d
+58
 20
 20
 31
@@ -2303,7 +2411,7 @@
 c2
 8e
 02
-43
+5e
 6f
 e0
 c9
@@ -2311,15 +2419,15 @@
 c0
 00
 02
-4a
+65
 c0
 00
 82
-4c
+67
 20
 20
 02
-48
+63
 6f
 e0
 c9
@@ -2327,19 +2435,19 @@
 c0
 00
 02
-4c
+67
 c0
 00
 82
-4e
+69
 c0
 01
 02
-48
+63
 20
 20
 02
-4a
+65
 70
 4b
 ed
@@ -2347,7 +2455,7 @@
 20
 20
 02
-37
+4a
 70
 4b
 ed
@@ -2355,7 +2463,7 @@
 20
 20
 02
-37
+4a
 70
 4b
 ed
@@ -2363,15 +2471,99 @@
 20
 20
 02
-37
+4a
+70
+4b
+ed
+07
+20
+20
+02
+4a
+6f
+e0
+c9
+38
+c0
+00
+02
+71
+6f
+e4
+4b
+ab
+c4
+1a
+80
+00
+68
+48
+cb
+ca
+20
+20
+02
+74
+6f
+e4
+4b
+ab
+c4
+19
+00
+00
+68
+48
+cb
+cb
+60
+48
+cb
+9d
+20
+40
+41
+15
+1f
+e1
+7e
+07
+68
+48
+cb
+9d
+98
+46
+7c
+00
+20
+22
+82
+7b
+20
+20
+44
+eb
+20
+40
+44
+f6
+6f
+e0
+cb
+9f
+c1
+00
+80
+00
 70
 4b
-ed
-07
-20
+9f
+01
 20
-02
-37
+60
+00
+00
 6f
 e0
 cb
@@ -2387,23 +2579,23 @@
 20
 40
 02
-59
+89
 20
 40
 02
-5e
+8e
 20
 40
 02
-63
+93
 20
 40
 02
-68
+98
 20
 40
 02
-75
+a5
 20
 20
 41
@@ -2415,7 +2607,7 @@
 20
 40
 02
-82
+b2
 20
 40
 41
@@ -2435,7 +2627,7 @@
 20
 40
 02
-82
+b2
 20
 40
 41
@@ -2455,7 +2647,7 @@
 20
 40
 02
-82
+b2
 20
 40
 41
@@ -2499,7 +2691,7 @@
 c0
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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
+47
+70
+48
+8f
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-da
-23
+82
+bd
Index: program/app_mouse.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YHK/mouse_only_24g/program/app_mouse.prog	(revision 668)
+++ /YC1308AC/branch/mouse_project/YHK/mouse_only_24g/program/app_mouse.prog	(working copy)
@@ -4274,6 +4274,7 @@
 	call g24_transmit_next_packet
 	setarg -1
 	store 4,mem_24g_enter_hibernate
+mouse_24g_hibernate_set_next:
 	setarg 0
 	store 7,mem_mouse_key
 	jam 1,mem_sensor_shutdown_flag
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YHK/mouse_only_24g/program/patch.prog	(revision 668)
+++ /YC1308AC/branch/mouse_project/YHK/mouse_only_24g/program/patch.prog	(working copy)
@@ -490,7 +490,7 @@
 	increase 1,pdata
 	store 2,mem_24g_txfail_cnt	
 	fetch 1,mem_24g_txfail_cnt+1
-	bbit1 4,g24_tx_attempt_fail
+	bbit1 6,g24_tx_attempt_fail
 	call g24_transmit_hop_process
 	nbranch p_g24_transmit_loop,sync
 	nop 2500 //wait dongle rx
@@ -634,7 +634,7 @@
 
 p_mouse_24g_attempt_fail:
 	fetch 1,mem_24g_attempt_fail_flag
-	nbranch mouse_24g_hibernate_set,blank
+	nbranch p_mouse_24g_hibernate_set,blank
 	fetch 1,mem_24g_reconn_type
 	beq FAST_CONN_AND_3_0_ADDR,p_mouse_24g_fast_conn_attempt_fail
 	beq PAIR_AND_3_0_ADDR,p_mouse_24g_auto_pair_attempt_fail
@@ -642,6 +642,13 @@
 	call p_mouse_multi_led_blink_off
 	branch mouse_24g_attempt_fail_enter_hibernate+1
 
+p_mouse_24g_hibernate_set:
+	jam 0,mem_24g_attempt_fail_flag
+	call g24_transmit_next_packet
+	setarg -1
+	store 8,mem_24g_enter_hibernate
+	branch mouse_24g_hibernate_set_next
+
 p_mouse_24g_fast_conn_attempt_fail:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
 	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,p_mouse_24g_start_auto_pair
@@ -704,7 +711,6 @@
 
 
 p_mouse_bb_event_timer:
-	call p_mouse_multi_led_blink_timer
 	call mouse_adc_read
 	call mouse_low_voltage_led_timer
 	//24g
@@ -713,7 +719,25 @@
 	call mouse_24g_long_sleep_param_update_timer
 	//led
 	call p_mouse_dpi_led_blink_delay_timer
-	branch mouse_bb_event_timer+8
+	call p_mouse_multi_led_blink_timer
+	//poll
+	call mouse_dpi_key_check_long_press
+	call mouse_bt_discovery_check
+	call p_mouse_commbination_key_process
+	call mouse_check_discovery_timeout_timer
+	//ble
+	call mouse_check_direct_timeout_timer
+	call mouse_le_enable_att_list_timer
+	call mouse_le_battery_updata_timer
+	call mouse_le_send_smp_security_request_timer
+	//bt
+	call mouse_check_hid_handshake_timer
+	call mouse_bt_check_sniff_req_timeout_timer
+	call mouse_check_reconnect_delay_long_sleep		//delete 3.0,reconnect fail
+	call mouse_current_mult_update_timer
+	call mouse_wheel_trigger_timer
+	call mouse_store_information_delay_timer
+	branch p_mouse_check_no_data_timeout_timer
 
 ////////////////////////////////led set start////////////////////////////////////////////////
 p_mouse_multi_led_blink_timer:
@@ -806,6 +830,18 @@
 	jam 1,mem_mouse_multi_led_blink_count_limited
 	branch p_mouse_multi_led_blink_enable
 
+p_mouse_check_no_data_timeout_timer:
+	fetch 1,mem_usb_addr
+	rtnbit1 7
+	arg mem_mouse_no_data_timer,regc
+	arg p_mouse_check_no_data_timeout,regb
+	branch timer_single_step_2B
+
+p_mouse_check_no_data_timeout:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,p_mouse_24g_hibernate_set
+	branch mouse_disconnect
+	
 p_mouse_dpi_led_blink_delay_timer:
 	arg mem_mouse_dpi_led_delay_count,regc
 	arg p_mouse_dpi_led_blink_init,regb
@@ -841,6 +877,34 @@
 
 ///////////////////////////////////////////led set end////////////////////////////////////////////////
 
+p_mouse_commbination_key_process:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,p_mouse_24g_commbination_key_process
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+	fetcht 1,mem_mouse_commbination_key_bt
+	branch p_mouse_commbination_key_start
+	
+p_mouse_24g_commbination_key_process:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+	fetcht 1,mem_mouse_commbination_key_24g
+p_mouse_commbination_key_start:
+	storet 1,mem_mouse_commbination_key
+	call mouse_check_key_gpio
+	and pdata,0x07,pdata
+	fetcht 1,mem_mouse_commbination_key
+	isub temp,null
+	branch p_mouse_commbination_key_down,zero
+	branch mouse_commbination_key_up
+
+p_mouse_commbination_key_down:		// enter hibernate when reconnect
+	call mouse_combination_ui_timer
+	fetch 1,mem_commbination_key_statue
+	rtneq COMMBINATION_KEY_STATE_DOWN
+	jam COMMBINATION_KEY_STATE_DOWN,mem_commbination_key_statue
+	rtn
+
 //////////////////////////////modify key start///////////////////////////////////////////////
 p_mouse_check_key_gpio:	//when mem_matrix_public_gpio=0xff
 	fetch 1,mem_sensor_shutdown_flag
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YHK/mouse_only_24g/sched/mouse.dat	(revision 668)
+++ /YC1308AC/branch/mouse_project/YHK/mouse_only_24g/sched/mouse.dat	(working copy)
@@ -146,7 +146,7 @@
 mem_mouse_sensor_sdio_gpio:0c
 mem_config_low_voltage_alarm_gpio:ff
 mem_config_device_bt2_led_gpio:ff
-mem_dpi_led_gpio:03
+mem_dpi_led_gpio:ff
 
 mem_sensor_angle_default:03	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
 mem_sensor_angle_switch:00	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
