Index: d.bat
===================================================================
--- /YC1308AC/branch/usb/d.bat	(revision 1233)
+++ /YC1308AC/branch/usb/d.bat	(working copy)
@@ -1,5 +1,6 @@
 call do.bat eep
 e pu
+e 8043 00
 e 8070 00000000000000000000
 e 807a 00000000000000000000
 e 8070 3e6c6d   
Index: do.bat
===================================================================
--- /YC1308AC/branch/usb/do.bat	(revision 1233)
+++ /YC1308AC/branch/usb/do.bat	(working copy)
@@ -72,7 +72,7 @@
 ::geneep
 
 cd ..\output
-create_exen.pl 1 1024 64
+..\util\create_exen.pl 1 1024 64
 cd ..
 
 if "%device_option%" equ "mouse" (
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/usb/output/eeprom.dat	(revision 1233)
+++ /YC1308AC/branch/usb/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-5e
-04
+2a
+02
 c2
 84
 00
@@ -19,7 +19,7 @@
 c0
 46
 00
-76
+6d
 c0
 57
 00
@@ -47,11 +47,11 @@
 c0
 48
 00
-61
+58
 c0
 4a
 80
-8b
+82
 c0
 54
 80
@@ -171,7 +171,7 @@
 58
 00
 00
-91
+88
 67
 e1
 48
@@ -234,48 +234,12 @@
 00
 20
 40
-00
-df
-20
-40
-00
-e5
-6f
-e0
-8b
-f9
-2f
-ef
-fe
-02
-24
-40
-80
-ba
-6f
-e0
-8b
-f9
-2f
-ef
-fe
-02
 24
-40
-a4
 91
-6f
-e0
-c8
-b3
-24
-5a
-01
-0c
 20
 40
 00
-45
+3c
 20
 20
 36
@@ -287,11 +251,11 @@
 20
 40
 00
-48
+3f
 20
 20
 00
-54
+4b
 6f
 e0
 c9
@@ -407,7 +371,7 @@
 c0
 00
 00
-66
+5d
 20
 20
 7a
@@ -431,7 +395,7 @@
 c0
 00
 80
-6c
+63
 20
 20
 7a
@@ -443,7 +407,7 @@
 c0
 04
 80
-6f
+66
 20
 20
 7a
@@ -523,7 +487,7 @@
 20
 40
 00
-71
+68
 1f
 e6
 7e
@@ -547,7 +511,7 @@
 24
 20
 80
-89
+80
 58
 00
 00
@@ -588,570 +552,42 @@
 40
 37
 01
-6f
-e3
-c8
-94
-67
-e3
-c9
-89
 20
+60
+00
+00
+c8
+e6
+aa
+55
 40
 00
-97
-20
+00
 40
 00
-9d
-20
-20
 00
-a4
-6f
-e0
-c9
-68
-1f
-e0
-fe
-01
-67
-e0
-c9
-68
-1b
-22
-7e
 00
-67
-e3
-49
-6b
-20
-20
-01
-01
-6f
-e0
-c9
-69
-1f
-e0
-fe
-01
-67
-e0
-c9
-69
-c1
-80
-80
 00
-1b
-22
-7e
 00
-67
-e3
-49
-71
-20
-60
 00
 00
-6f
-e0
-c9
-6a
-1f
-e0
-fe
-01
-67
-e0
-c9
-6a
-20
-60
 00
 00
-6f
-e0
-c9
-69
-c1
-be
-80
 00
-70
-49
-69
 00
-68
-4b
-49
-71
-1b
-22
-7e
 00
-20
+00
+00
+00
+00
+08
+18
+00
+00
+00
 40
-7d
-95
-1f
-e2
-04
 00
-58
-80
-2c
-80
-98
-46
-7c
-00
-20
-21
-00
-b6
-6f
-e1
-c9
-86
-24
-7a
-00
-00
-58
-01
-77
-00
-20
-20
-00
-b7
-58
-00
-bb
-80
-67
-e1
-c9
-86
-20
-40
-01
-06
-20
-20
-01
-0e
-6f
-e1
-c9
-86
-20
-7a
-00
-00
-68
-48
-c9
-85
-98
-4f
-de
-00
-1f
-f1
-fe
-00
-9d
-e0
-de
-00
-68
-4b
-49
-77
-18
-46
-7c
-00
-20
-62
-80
-00
-1b
-22
-7e
-00
-20
-40
-7d
-95
-68
-4a
-49
-81
-98
-40
-fe
-00
-9d
-e6
-04
-00
-24
-61
-00
-00
-58
-12
-4f
-80
-98
-46
-7c
-00
-24
-21
-01
-0e
-60
-4a
-49
-81
-1b
-22
-7e
-00
-67
-e3
-49
-77
-6f
-e0
-c9
-85
-68
-48
-c9
-90
-98
-40
-fe
-00
-68
-48
-c9
-6a
-70
-49
-6a
-00
-98
-46
-7e
-00
-20
-22
-81
-0a
-24
-21
-01
-0e
-1f
-e6
-7c
-04
-24
-21
-01
-0e
-1f
-e0
-ff
-ff
-67
-e0
-c9
-90
-6f
-e0
-c9
-91
-1f
-e6
-7c
-05
-24
-21
-01
-0e
-20
-20
-01
-12
-6f
-e1
-c9
-86
-20
-3a
-00
-a8
-d8
-40
-bb
-80
-98
-46
-7c
-00
-24
-42
-80
-a8
-20
-60
-00
-00
-6f
-e1
-c9
-86
-20
-7a
-00
-00
-68
-48
-c9
-91
-18
-40
-84
-02
-98
-4f
-de
-00
-68
-4b
-49
-6b
-18
-46
-7c
-00
-20
-62
-80
-00
-1b
-22
-7e
-00
-20
-40
-7d
-95
-68
-4a
-49
-7d
-98
-40
-fe
-00
-9d
-e6
-04
-00
-24
-61
-00
-00
-58
-09
-27
-c0
-98
-46
-7c
-00
-24
-21
-01
-06
-60
-4a
-49
-7d
-6f
-e0
-c9
-91
-68
-48
-c9
-68
-98
-46
-7e
-00
-6f
-e0
-c9
-91
-1f
-e6
-7c
-05
-24
-21
-01
-06
-1f
-e0
-fe
-01
-67
-e0
-c9
-91
-20
-40
-01
-12
-20
-20
-00
-a4
-70
-49
-91
-00
-20
-20
-01
-06
-58
-00
-00
-00
-67
-e2
-49
-7d
-20
-60
-00
-00
-70
-49
-68
-00
-20
-20
-01
-03
-58
-00
-00
-00
-67
-e2
-49
-81
-70
-49
-90
-00
-20
-60
-00
-00
-70
-49
-91
-ff
-20
-60
-00
-00
-1b
-22
-7e
-00
-67
-e3
-49
-77
-70
-49
-6a
-00
-20
-20
-01
-08
-58
-00
-00
-01
-67
-e0
-8b
-ff
-6f
-e3
-c9
-89
-e7
-e3
-80
-05
-20
-20
-36
-94
-0d
-cb
-aa
-55
-40
-00
-00
-40
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-08
-18
-00
-00
-00
-40
-00
-18
+18
 00
 00
 00
@@ -1215,13 +651,27 @@
 a8
 40
 37
-28
+ff
 10
 30
 11
 12
 aa
 55
+01
+00
+65
+48
+01
+aa
+55
+01
+00
+64
+48
+01
+aa
+55
 02
 00
 b8
@@ -1419,7 +869,7 @@
 00
 85
 49
-10
+20
 aa
 55
 05
@@ -1429,13 +879,14 @@
 02
 40
 00
-a2
-05
+7b
+03
 55
 aa
 aa
 55
-b3
-2f
-c1
-b2
+cc
+33
+41
+f2
+00
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/usb/program/patch.prog	(revision 1233)
+++ /YC1308AC/branch/usb/program/patch.prog	(working copy)
@@ -1,5 +1,6 @@
 //define KEYBOARD
 //define OTA_CODE
+//define REPORTRATE_CODE
 
 	bbit1 8,pf_patch_ext
 	beq patch10_3,p_set_sync_on
@@ -68,6 +69,7 @@
 	arg 0x6978,temp
 	call g24_rx_window_store
 
+
 ifdef OTA_CODE
 	call p_g24_check_ota_data
 	call p_g24_load_ota_config,user
@@ -524,6 +526,7 @@
 
 
 
+	
 
 p_g24_work_mode_start:
 	fetch 1,mem_24g_work_mode
@@ -533,7 +536,7 @@
 //	branch g24_receive_packet_start
 
 //p_g24_receive_packet_start:
-	call p_g24_receive_transmit_ack
+call p_g24_receive_transmit_ack
 	nbranch g24_rx_interrupt_clear,user3
 p_g24_receive_packet_parse:
 	call g24_receive_packet_parse_pid_crc
@@ -555,12 +558,20 @@
 	beq DATATYPE_OTA,p_g24_data_ota
 	branch g24_rx_interrupt_clear
 
+
+	
+	
+	
+
+
+	
 p_g24_receive_transmit_ack:
 	call g24_rx_interrupt_clear
 	call g24_receive_packet
 	nrtn user3
 //g24_transmit_ack:
 //data type
+	
 	fetch 1,mem_24g_rxbuf
 	store 1,mem_24g_data_type
 //read len pid crc
@@ -572,8 +583,8 @@
 //g24tx_with_ack:
 	call p_g24_ackpayload_prep
 	call g24_transmit_prep
-	call g24_transmit
-	branch g24tx_no_ack
+call g24_transmit
+branch g24tx_no_ack
 
 p_g24_ackpayload_prep:
 	jam 0,mem_24g_datalen
@@ -582,21 +593,22 @@
 //	rtn blank
 //	fetch 2,mem_cb_24g_ackpayload
 //	branch callback_func
-
-
 else
 /********************add wdt************************/
 p_dongle_usb_dispatch:
 	call p_wdt_kick
 	branch dongle_usb_dispatch+1
-	
 endif 
 
+
+
+
 	
 /************************keyboard blank patch**********/
 p_dongle_work_mode_auto:
 	fetch 1,mem_24g_work_mode
 	rtnne DONGLE_WORK
+ifdef REPORTRATE_CODE
 	call p_g24_check_reportrate2
 	call p_g24_check_reportrate3
 //	fetch 1,mem_usb_tx_enable
@@ -611,9 +623,19 @@
 endif
 	fetch 1,mem_24g_abort_packet
 	ncall p_g24_check_reportrate_stopadd,blank
+else
+ifdef OTA_CODE
+	call p_g24_work_mode_start
+else
+	call g24_work_mode_start	
+endif
+
+endif
+
 	call p_dongle_g24_blank_data_process
 	branch dongle_work_mode_auto+5
 
+
 p_dongle_g24_blank_data_process:
 	call dongle_g24_ms_blank_data
 	call p_dongle_g24_kb_blank_data
@@ -1071,6 +1093,10 @@
 	branch load_storage_loop
 
 
+
+
+	
+
 p_dongle_timer:
 	call p_dongle_reset_timer
 //	branch p_dongle_version_timer
@@ -1088,9 +1114,7 @@
 //	jam p_start_g24_ota
 	//nop 1
 	branch p_g24_dongle_ota_version_no_mouse
-
 else
-
 /************************usb mac wakeup patch**********/
 p_usb_tx:
 	fetch 1,mem_usb_tx_enable
@@ -1099,16 +1123,20 @@
 	and_into 0x0f,pdata
 	nbranch usb_inwake_state_tx_dispose,blank
 	branch usb_tx+3
-	
 endif
 
 
+
 p_dongle_g24_mouse:
 ifdef OTA_CODE
 	fetch 1,mem_g24_ota_mode
 	nbranch  p_dongle_g24_rx_mouse_ota,blank
 endif
 	call dongle_g24_mouse
+
+ifndef REPORTRATE_CODE	
+	rtn
+else
 	fetch 7,mem_24g_rxdata_temp+3
 	store 7,mem_g24_tx_last
 	call p_g24_check_reportrate_count1
@@ -1295,6 +1323,8 @@
 	fetch 7,mem_g24_tx_last
 	istore 7,contw
 	branch dongle_usb_tx_ms_data
+
+endif
 	
 
 
Index: sched/dongle.dat
===================================================================
--- /YC1308AC/branch/usb/sched/dongle.dat	(revision 1233)
+++ /YC1308AC/branch/usb/sched/dongle.dat	(working copy)
@@ -24,11 +24,11 @@
 
 
 #rf config
-mem_lap:37 28 10 30 11 12#low 4B used for 24g rxaddr
-#mem_24g_tx_phy:01#0x01:1M/0x02:2M/0x04:S2/0x84:S8
-#mem_24g_rx_phy:01#0x01:1M/0x02:2M/0x04:S2/0x84:S8
+mem_lap:37 ff 10 30 11 12#low 4B used for 24g rxaddr
+mem_24g_tx_phy:01#0x01:1M/0x02:2M/0x04:S2/0x84:S8
+mem_24g_rx_phy:01#0x01:1M/0x02:2M/0x04:S2/0x84:S8
 #mem_24g_no_ack:00#no ack
-#mem_24g_rx_window:30 75#rx
+#mem_24g_rx_window:30 70#rx
 mem_24g_hop_interval:1e
 #mem_24g_ackpayload_enable:00#ack payload enable
 #mem_24g_ch_map1:00 13 2c 42
