Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K/output/eeprom.dat	(revision 1876)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-ea
+fa
 07
 c2
 84
@@ -35,7 +35,7 @@
 c0
 5d
 01
-60
+64
 c0
 5d
 80
@@ -1347,7 +1347,7 @@
 c0
 7f
 81
-5e
+62
 20
 20
 23
@@ -1388,22 +1388,38 @@
 20
 24
 07
+6f
+e0
+c0
+9a
+1f
+e6
+7c
+0e
 20
-40
+42
+b4
+f0
+6f
+e0
+c9
+41
 24
-14
+7a
+00
+00
 70
 49
 41
 01
-70
+6f
+e2
 48
-d7
-01
+9f
 20
-60
-00
-00
+20
+25
+c4
 20
 40
 23
@@ -1463,7 +1479,7 @@
 c0
 58
 01
-6e
+72
 20
 20
 37
@@ -1475,7 +1491,7 @@
 c0
 58
 81
-71
+75
 20
 60
 00
@@ -1483,7 +1499,7 @@
 20
 40
 01
-7b
+7f
 6f
 e0
 8b
@@ -1491,23 +1507,23 @@
 c0
 79
 01
-85
+89
 c0
 79
 81
-94
+98
 c0
 40
 01
-81
+85
 c0
 40
 81
-84
+88
 20
 20
 01
-7e
+82
 68
 4c
 10
@@ -1551,11 +1567,11 @@
 20
 40
 01
-78
+7c
 20
 20
 01
-a9
+ad
 20
 20
 5e
@@ -1563,8 +1579,8 @@
 20
 40
 01
-9a
-24
+9e
+20
 61
 00
 00
@@ -1591,23 +1607,23 @@
 20
 40
 01
-78
+7c
 c0
 01
 01
-9e
+a2
 c0
 01
 81
-a1
+a5
 c0
 02
 01
-a3
+a7
 c0
 02
 81
-a6
+aa
 6f
 e0
 90
@@ -1631,8 +1647,8 @@
 20
 40
 01
-9a
-24
+9e
+20
 61
 00
 00
@@ -1643,7 +1659,7 @@
 20
 20
 01
-78
+7c
 6f
 e0
 8b
@@ -1652,8 +1668,8 @@
 40
 00
 50
-9f
-e6
+98
+46
 7c
 00
 20
@@ -1727,7 +1743,7 @@
 20
 40
 01
-b1
+b5
 70
 10
 50
@@ -1735,7 +1751,7 @@
 20
 20
 01
-c4
+c8
 df
 20
 03
@@ -1799,7 +1815,7 @@
 24
 20
 81
-b5
+b9
 e0
 40
 80
@@ -1807,7 +1823,7 @@
 c2
 00
 01
-b5
+b9
 20
 60
 00
@@ -1827,19 +1843,19 @@
 c0
 00
 81
-cb
+cf
 c0
 01
 01
-f0
+f4
 20
 40
 01
-60
+64
 20
 20
 01
-c4
+c8
 20
 40
 11
@@ -1887,11 +1903,11 @@
 c0
 00
 01
-d9
+dd
 c0
 11
 01
-e4
+e8
 20
 60
 00
@@ -1915,11 +1931,11 @@
 c2
 00
 01
-db
+df
 20
 40
 01
-60
+64
 6f
 e3
 90
@@ -1935,11 +1951,11 @@
 20
 22
 81
-d9
+dd
 20
 20
 01
-c4
+c8
 df
 20
 00
@@ -1959,11 +1975,11 @@
 c2
 00
 01
-e6
+ea
 20
 40
 01
-60
+64
 6f
 e3
 90
@@ -1979,7 +1995,7 @@
 20
 22
 81
-e4
+e8
 20
 40
 11
@@ -1987,15 +2003,15 @@
 20
 20
 01
-c4
+c8
 20
 40
 01
-f7
+fb
 20
 40
 01
-60
+64
 6f
 e3
 90
@@ -2011,11 +2027,11 @@
 20
 22
 81
-f1
+f5
 20
 20
 01
-c4
+c8
 20
 40
 11
@@ -2028,8 +2044,8 @@
 20
 16
 74
-32
-78
+61
+e4
 aa
 55
 40
@@ -2182,25 +2198,8 @@
 55
 15
 14
-a9
-12
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+10
+7b
 ff
 ff
 ff
@@ -8188,5 +8187,6 @@
 ff
 ff
 ff
-30
 ff
+b7
+05
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K/output/flash.dat	(revision 1876)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K/output/flash.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-ea
+fa
 07
 c2
 84
@@ -35,7 +35,7 @@
 c0
 5d
 01
-60
+64
 c0
 5d
 80
@@ -1347,7 +1347,7 @@
 c0
 7f
 81
-5e
+62
 20
 20
 23
@@ -1388,22 +1388,38 @@
 20
 24
 07
+6f
+e0
+c0
+9a
+1f
+e6
+7c
+0e
 20
-40
+42
+b4
+f0
+6f
+e0
+c9
+41
 24
-14
+7a
+00
+00
 70
 49
 41
 01
-70
+6f
+e2
 48
-d7
-01
+9f
 20
-60
-00
-00
+20
+25
+c4
 20
 40
 23
@@ -1463,7 +1479,7 @@
 c0
 58
 01
-6e
+72
 20
 20
 37
@@ -1475,7 +1491,7 @@
 c0
 58
 81
-71
+75
 20
 60
 00
@@ -1483,7 +1499,7 @@
 20
 40
 01
-7b
+7f
 6f
 e0
 8b
@@ -1491,23 +1507,23 @@
 c0
 79
 01
-85
+89
 c0
 79
 81
-94
+98
 c0
 40
 01
-81
+85
 c0
 40
 81
-84
+88
 20
 20
 01
-7e
+82
 68
 4c
 10
@@ -1551,11 +1567,11 @@
 20
 40
 01
-78
+7c
 20
 20
 01
-a9
+ad
 20
 20
 5e
@@ -1563,8 +1579,8 @@
 20
 40
 01
-9a
-24
+9e
+20
 61
 00
 00
@@ -1591,23 +1607,23 @@
 20
 40
 01
-78
+7c
 c0
 01
 01
-9e
+a2
 c0
 01
 81
-a1
+a5
 c0
 02
 01
-a3
+a7
 c0
 02
 81
-a6
+aa
 6f
 e0
 90
@@ -1631,8 +1647,8 @@
 20
 40
 01
-9a
-24
+9e
+20
 61
 00
 00
@@ -1643,7 +1659,7 @@
 20
 20
 01
-78
+7c
 6f
 e0
 8b
@@ -1652,8 +1668,8 @@
 40
 00
 50
-9f
-e6
+98
+46
 7c
 00
 20
@@ -1727,7 +1743,7 @@
 20
 40
 01
-b1
+b5
 70
 10
 50
@@ -1735,7 +1751,7 @@
 20
 20
 01
-c4
+c8
 df
 20
 03
@@ -1799,7 +1815,7 @@
 24
 20
 81
-b5
+b9
 e0
 40
 80
@@ -1807,7 +1823,7 @@
 c2
 00
 01
-b5
+b9
 20
 60
 00
@@ -1827,19 +1843,19 @@
 c0
 00
 81
-cb
+cf
 c0
 01
 01
-f0
+f4
 20
 40
 01
-60
+64
 20
 20
 01
-c4
+c8
 20
 40
 11
@@ -1887,11 +1903,11 @@
 c0
 00
 01
-d9
+dd
 c0
 11
 01
-e4
+e8
 20
 60
 00
@@ -1915,11 +1931,11 @@
 c2
 00
 01
-db
+df
 20
 40
 01
-60
+64
 6f
 e3
 90
@@ -1935,11 +1951,11 @@
 20
 22
 81
-d9
+dd
 20
 20
 01
-c4
+c8
 df
 20
 00
@@ -1959,11 +1975,11 @@
 c2
 00
 01
-e6
+ea
 20
 40
 01
-60
+64
 6f
 e3
 90
@@ -1979,7 +1995,7 @@
 20
 22
 81
-e4
+e8
 20
 40
 11
@@ -1987,15 +2003,15 @@
 20
 20
 01
-c4
+c8
 20
 40
 01
-f7
+fb
 20
 40
 01
-60
+64
 6f
 e3
 90
@@ -2011,11 +2027,11 @@
 20
 22
 81
-f1
+f5
 20
 20
 01
-c4
+c8
 20
 40
 11
@@ -2028,8 +2044,8 @@
 20
 16
 74
-32
-78
+61
+e4
 aa
 55
 40
@@ -2182,25 +2198,8 @@
 55
 15
 14
-a9
-12
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+10
+7b
 ff
 ff
 ff
@@ -8188,5 +8187,6 @@
 ff
 ff
 ff
-30
 ff
+b7
+05
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K/output/program.lis	(revision 1876)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K/output/program.lis	(working copy)
@@ -7,7 +7,7 @@
 0004 c045803c beq patch11_3 ,p_initialize_radio_cont 
 0005 c04600a4 beq patch11_4 ,p_save_rssi 
 0006 c0568011 beq patch15_5 ,p_app_init 
-0007 c05d0160 beq patch17_2 ,p_dongle_usb_dispatch 
+0007 c05d0164 beq patch17_2 ,p_dongle_usb_dispatch 
 0008 c05d8074 beq patch17_3 ,p_dongle_work_mode_auto 
 0009 2020137e branch loop 
 
@@ -457,7 +457,7 @@
 014c 6fe0c897 fetch 1 ,mem_24g_rxdata_temp + 2 
 014d c0008151 beq datatype_device1 ,p_g24_data_device1 
 014e c001240e beq datatype_device2 ,g24_data_device2 
-014f c07f815e beq datatype_attemp ,p_g24_data_receive_attemp 
+014f c07f8162 beq datatype_attemp ,p_g24_data_receive_attemp 
 0150 202023fa branch g24_rx_interrupt_clear 
 
 p_g24_data_device1:
@@ -472,232 +472,236 @@
 0159 20202407 branch g24_data_device1 + 8 
 
 p_g24_data_attemp_device1_abort:
-015a 20402414 call g24_data_attemp_device1_abort 
-015b 70494101 jam 1 ,mem_24g_mouse_bind_enable 
-015c 7048d701 jam 1 ,mem_24g_b_s_mode_switch_disable 
-015d 20600000 rtn 
+015a 6fe0c09a fetch 1 ,mem_device_option 
+015b 1fe67c0e sub pdata ,dvc_op_car ,null 
+015c 2042b4f0 call car_stop_blink ,zero 
+015d 6fe0c941 fetch 1 ,mem_24g_mouse_bind_enable 
+015e 247a0000 nrtn blank 
+015f 70494101 jam 1 ,mem_24g_mouse_bind_enable 
+0160 6fe2489f fetch 4 ,mem_24g_rxdata_temp + 10 
+0161 202025c4 branch g24_store_device1_addr 
 
 p_g24_data_receive_attemp:
-015e 204023d8 call g24_bind_device_status 
-015f 2020012f branch p_g24_data_attemp 
+0162 204023d8 call g24_bind_device_status 
+0163 2020012f branch p_g24_data_attemp 
 
 p_dongle_usb_dispatch:
-0160 204079fc call usb_isr 
-0161 6fe08be3 fetch 1 ,mem_usb0_get_set_report 
-0162 207a0000 rtn blank 
-0163 700be300 jam 0 ,mem_usb0_get_set_report 
-0164 6fe08b61 fetch 1 ,mem_usb0_set_report_data 
-0165 c1dd0000 rtnne pc_report_id 
-0166 6fe08b62 fetch 1 ,mem_usb0_set_report_data + 1 
-0167 c0503744 beq command_mode ,dongle_dispose_cmd_mode 
-0168 c050b74a beq command_bind ,dongle_dispose_cmd_bind 
-0169 c0533756 beq command_current_project ,dongle_dispose_cmd_current_project 
-016a c053b758 beq command_current_mode ,dongle_dispose_cmd_current_mode 
-016b c054b75e beq command_current_fw_version ,dongle_dispose_cmd_current_fw_version 
-016c c058016e beq command_user_defined ,p_dongle_dispose_cmd_user_defined 
-016d 20203742 branch dongle_usb0_data_ready_report_set0 
+0164 204079fc call usb_isr 
+0165 6fe08be3 fetch 1 ,mem_usb0_get_set_report 
+0166 207a0000 rtn blank 
+0167 700be300 jam 0 ,mem_usb0_get_set_report 
+0168 6fe08b61 fetch 1 ,mem_usb0_set_report_data 
+0169 c1dd0000 rtnne pc_report_id 
+016a 6fe08b62 fetch 1 ,mem_usb0_set_report_data + 1 
+016b c0503744 beq command_mode ,dongle_dispose_cmd_mode 
+016c c050b74a beq command_bind ,dongle_dispose_cmd_bind 
+016d c0533756 beq command_current_project ,dongle_dispose_cmd_current_project 
+016e c053b758 beq command_current_mode ,dongle_dispose_cmd_current_mode 
+016f c054b75e beq command_current_fw_version ,dongle_dispose_cmd_current_fw_version 
+0170 c0580172 beq command_user_defined ,p_dongle_dispose_cmd_user_defined 
+0171 20203742 branch dongle_usb0_data_ready_report_set0 
 
 p_dongle_dispose_cmd_user_defined:
-016e 6fe08b63 fetch 1 ,mem_usb0_set_report_data + 2 
-016f c0588171 beq command_user_defined_check_start ,p_dongle_dispose_cmd_check_start 
-0170 20600000 rtn 
+0172 6fe08b63 fetch 1 ,mem_usb0_set_report_data + 2 
+0173 c0588175 beq command_user_defined_check_start ,p_dongle_dispose_cmd_check_start 
+0174 20600000 rtn 
 
 p_dongle_dispose_cmd_check_start:
-0171 2040017b call p_dongle_dispose_cmd_user_defined_respose_ready 
-0172 6fe08b66 fetch 1 ,mem_usb0_set_report_data + 5 
-0173 c0790185 beq command_user_defined_fixed_freq_check_complete ,p_dongle_dispose_cmd_fixed_freq 
-0174 c0798194 beq command_user_defined_assign_freq_check_complete ,p_dongle_dispose_cmd_assign_freq 
-0175 c0400181 beq command_user_defined_test_fcc_freq_start ,p_dongle_dispose_cmd_test_freq_start 
-0176 c0408184 beq command_user_defined_test_fcc_freq_end ,p_dongle_dispose_cmd_test_freq_end 
-0177 2020017e branch p_dongle_dispose_cmd_user_defined_respose_params_fail 
+0175 2040017f call p_dongle_dispose_cmd_user_defined_respose_ready 
+0176 6fe08b66 fetch 1 ,mem_usb0_set_report_data + 5 
+0177 c0790189 beq command_user_defined_fixed_freq_check_complete ,p_dongle_dispose_cmd_fixed_freq 
+0178 c0798198 beq command_user_defined_assign_freq_check_complete ,p_dongle_dispose_cmd_assign_freq 
+0179 c0400185 beq command_user_defined_test_fcc_freq_start ,p_dongle_dispose_cmd_test_freq_start 
+017a c0408188 beq command_user_defined_test_fcc_freq_end ,p_dongle_dispose_cmd_test_freq_end 
+017b 20200182 branch p_dongle_dispose_cmd_user_defined_respose_params_fail 
 
 p_dongle_set_report_data_clear:
-0178 684c105a fetcht 8 ,mem_fcc_clear_value 
-0179 604c0b61 storet 8 ,mem_usb0_set_report_data 
-017a 20600000 rtn 
+017c 684c105a fetcht 8 ,mem_fcc_clear_value 
+017d 604c0b61 storet 8 ,mem_usb0_set_report_data 
+017e 20600000 rtn 
 
 p_dongle_dispose_cmd_user_defined_respose_ready:
-017b 584b4f01 setarg 0x4b4f01 
-017c 67e18ba1 store 3 ,mem_usb0_get_report_data 
-017d 20203748 branch dongle_usb0_data_ready_report_set1 
+017f 584b4f01 setarg 0x4b4f01 
+0180 67e18ba1 store 3 ,mem_usb0_get_report_data 
+0181 20203748 branch dongle_usb0_data_ready_report_set1 
 
 p_dongle_dispose_cmd_user_defined_respose_params_fail:
-017e 584f4e01 setarg 0x4f4e01 
-017f 67e18ba1 store 3 ,mem_usb0_get_report_data 
-0180 20203748 branch dongle_usb0_data_ready_report_set1 
+0182 584f4e01 setarg 0x4f4e01 
+0183 67e18ba1 store 3 ,mem_usb0_get_report_data 
+0184 20203748 branch dongle_usb0_data_ready_report_set1 
 
 p_dongle_dispose_cmd_test_freq_start:
-0181 7048c302 jam dongle_test ,mem_24g_work_mode 
-0182 20400178 call p_dongle_set_report_data_clear 
-0183 202001a9 branch p_fcc_mode_start 
+0185 7048c302 jam dongle_test ,mem_24g_work_mode 
+0186 2040017c call p_dongle_set_report_data_clear 
+0187 202001ad branch p_fcc_mode_start 
 
 p_dongle_dispose_cmd_test_freq_end:
-0184 20205e29 branch soft_reset_chip 
+0188 20205e29 branch soft_reset_chip 
 
 p_dongle_dispose_cmd_fixed_freq:
-0185 2040019a call p_dongle_dispose_cmd_value_judge 
-0186 24610000 nrtn positive 
-0187 6fe0904b fetch 1 ,mem_fcc_ch_new 
-0188 67e09059 store 1 ,mem_fcc_ch_last_value 
-0189 68488b64 fetcht 1 ,mem_usb0_set_report_data + 3 
-018a 6048904b storet 1 ,mem_fcc_ch_new 
-018b 6fe08b65 fetch 1 ,mem_usb0_set_report_data + 4 
-018c 20400178 call p_dongle_set_report_data_clear 
-018d c001019e beq command_type_modulation_send_mode ,p_dongle_dispose_cmd_modulation_send 
-018e c00181a1 beq command_type_modulation_recv_mode ,p_dongle_dispose_cmd_modulation_recv 
-018f c00201a3 beq command_type_non_modulation_send_mode ,p_dongle_dispose_cmd_non_modulation_send 
-0190 c00281a6 beq command_type_non_modulation_recv_mode ,p_dongle_dispose_cmd_non_modulation_recv 
-0191 6fe09059 fetch 1 ,mem_fcc_ch_last_value 
-0192 67e0904b store 1 ,mem_fcc_ch_new 
-0193 20600000 rtn 
+0189 2040019e call p_dongle_dispose_cmd_value_judge 
+018a 20610000 rtn positive 
+018b 6fe0904b fetch 1 ,mem_fcc_ch_new 
+018c 67e09059 store 1 ,mem_fcc_ch_last_value 
+018d 68488b64 fetcht 1 ,mem_usb0_set_report_data + 3 
+018e 6048904b storet 1 ,mem_fcc_ch_new 
+018f 6fe08b65 fetch 1 ,mem_usb0_set_report_data + 4 
+0190 2040017c call p_dongle_set_report_data_clear 
+0191 c00101a2 beq command_type_modulation_send_mode ,p_dongle_dispose_cmd_modulation_send 
+0192 c00181a5 beq command_type_modulation_recv_mode ,p_dongle_dispose_cmd_modulation_recv 
+0193 c00201a7 beq command_type_non_modulation_send_mode ,p_dongle_dispose_cmd_non_modulation_send 
+0194 c00281aa beq command_type_non_modulation_recv_mode ,p_dongle_dispose_cmd_non_modulation_recv 
+0195 6fe09059 fetch 1 ,mem_fcc_ch_last_value 
+0196 67e0904b store 1 ,mem_fcc_ch_new 
+0197 20600000 rtn 
 
 p_dongle_dispose_cmd_assign_freq:
-0194 6fe08b65 fetch 1 ,mem_usb0_set_report_data + 4 
-0195 c1f80000 rtnne command_type_assign_freq_mode 
-0196 2040019a call p_dongle_dispose_cmd_value_judge 
-0197 24610000 nrtn positive 
-0198 67e0904b store 1 ,mem_fcc_ch_new 
-0199 20200178 branch p_dongle_set_report_data_clear 
+0198 6fe08b65 fetch 1 ,mem_usb0_set_report_data + 4 
+0199 c1f80000 rtnne command_type_assign_freq_mode 
+019a 2040019e call p_dongle_dispose_cmd_value_judge 
+019b 20610000 rtn positive 
+019c 67e0904b store 1 ,mem_fcc_ch_new 
+019d 2020017c branch p_dongle_set_report_data_clear 
 
 p_dongle_dispose_cmd_value_judge:
-019a 6fe08b64 fetch 1 ,mem_usb0_set_report_data + 3 
-019b d8400050 arg 0x50 ,temp 
-019c 9fe67c00 isub pdata ,null 
-019d 20600000 rtn 
+019e 6fe08b64 fetch 1 ,mem_usb0_set_report_data + 3 
+019f d8400050 arg 0x50 ,temp 
+01a0 98467c00 isub temp ,null 
+01a1 20600000 rtn 
 
 p_dongle_dispose_cmd_modulation_send:
-019e 70104f00 jam 0x00 ,mem_fcc_data_new 
-019f 70104d01 jam 0x01 ,mem_fcc_txrx_new 
-01a0 20600000 rtn 
+01a2 70104f00 jam 0x00 ,mem_fcc_data_new 
+01a3 70104d01 jam 0x01 ,mem_fcc_txrx_new 
+01a4 20600000 rtn 
 
 p_dongle_dispose_cmd_modulation_recv:
-01a1 70104d02 jam 0x02 ,mem_fcc_txrx_new 
-01a2 20600000 rtn 
+01a5 70104d02 jam 0x02 ,mem_fcc_txrx_new 
+01a6 20600000 rtn 
 
 p_dongle_dispose_cmd_non_modulation_send:
-01a3 70104f22 jam 0x22 ,mem_fcc_data_new 
-01a4 70104d01 jam 0x01 ,mem_fcc_txrx_new 
-01a5 20600000 rtn 
+01a7 70104f22 jam 0x22 ,mem_fcc_data_new 
+01a8 70104d01 jam 0x01 ,mem_fcc_txrx_new 
+01a9 20600000 rtn 
 
 p_dongle_dispose_cmd_non_modulation_recv:
-01a6 70104f22 jam 0x22 ,mem_fcc_data_new 
-01a7 70104d02 jam 0x02 ,mem_fcc_txrx_new 
-01a8 20600000 rtn 
+01aa 70104f22 jam 0x22 ,mem_fcc_data_new 
+01ab 70104d02 jam 0x02 ,mem_fcc_txrx_new 
+01ac 20600000 rtn 
 
 p_fcc_mode_start:
-01a9 204012d3 call init_lpm_ctrl 
-01aa 580010dd setarg mem_fcc_mode_end 
-01ab d8a0104b arg mem_fcc_mode_start ,contw 
-01ac 98a67200 isub contw ,loopcnt 
-01ad 20407d9b call clear_mem 
-01ae 204001b1 call p_pn9 
-01af 70105019 jam 0x19 ,mem_fcc_data_length_new 
-01b0 202001c4 branch p_test_tx_new_param 
+01ad 204012d3 call init_lpm_ctrl 
+01ae 580010dd setarg mem_fcc_mode_end 
+01af d8a0104b arg mem_fcc_mode_start ,contw 
+01b0 98a67200 isub contw ,loopcnt 
+01b1 20407d9b call clear_mem 
+01b2 204001b5 call p_pn9 
+01b3 70105019 jam 0x19 ,mem_fcc_data_length_new 
+01b4 202001c8 branch p_test_tx_new_param 
 
 p_pn9:
-01b1 df2003fe arg 1022 ,loopcnt 
-01b2 d8a01063 arg mem_pn9 ,contw 
-01b3 580001ff setarg 0x1ff 
-01b4 18002400 force 0 ,regb 
+01b5 df2003fe arg 1022 ,loopcnt 
+01b6 d8a01063 arg mem_pn9 ,contw 
+01b7 580001ff setarg 0x1ff 
+01b8 18002400 force 0 ,regb 
 
 p_pn9_loop:
-01b5 1fe92200 rshift3 pdata ,rega 
-01b6 1a232200 rshift rega ,rega 
-01b7 9a22a200 ixor rega ,rega 
-01b8 2a2ffe00 isolate1 0 ,rega 
-01b9 7920fe09 setflag true ,9 ,pdata 
-01ba 18430400 rshift temp ,temp 
-01bb 2feffe00 isolate1 0 ,pdata 
-01bc 79208407 setflag true ,7 ,temp 
-01bd 1fe37e00 rshift pdata ,pdata 
-01be 1a40a401 increase 1 ,regb 
-01bf 2a400e00 compare 0 ,regb ,0x7 
-01c0 242081b5 nbranch p_pn9_loop ,true 
-01c1 e0408005 istoret 1 ,contw 
-01c2 c20001b5 loop p_pn9_loop 
-01c3 20600000 rtn 
+01b9 1fe92200 rshift3 pdata ,rega 
+01ba 1a232200 rshift rega ,rega 
+01bb 9a22a200 ixor rega ,rega 
+01bc 2a2ffe00 isolate1 0 ,rega 
+01bd 7920fe09 setflag true ,9 ,pdata 
+01be 18430400 rshift temp ,temp 
+01bf 2feffe00 isolate1 0 ,pdata 
+01c0 79208407 setflag true ,7 ,temp 
+01c1 1fe37e00 rshift pdata ,pdata 
+01c2 1a40a401 increase 1 ,regb 
+01c3 2a400e00 compare 0 ,regb ,0x7 
+01c4 242081b9 nbranch p_pn9_loop ,true 
+01c5 e0408005 istoret 1 ,contw 
+01c6 c20001b9 loop p_pn9_loop 
+01c7 20600000 rtn 
 
 p_test_tx_new_param:
-01c4 6fe3904b fetch 7 ,mem_fcc_param_new 
-01c5 67e39052 store 7 ,mem_fcc_param 
+01c8 6fe3904b fetch 7 ,mem_fcc_param_new 
+01c9 67e39052 store 7 ,mem_fcc_param 
 
 p_test_tx_or_rx:
-01c6 6fe09054 fetch 1 ,mem_fcc_txrx 
-01c7 c00081cb beq 0x01 ,p_test_tx_start 
-01c8 c00101f0 beq 0x02 ,p_test_rx_start 
-01c9 20400160 call p_dongle_usb_dispatch 
-01ca 202001c4 branch p_test_tx_new_param 
+01ca 6fe09054 fetch 1 ,mem_fcc_txrx 
+01cb c00081cf beq 0x01 ,p_test_tx_start 
+01cc c00101f4 beq 0x02 ,p_test_rx_start 
+01cd 20400164 call p_dongle_usb_dispatch 
+01ce 202001c8 branch p_test_tx_new_param 
 
 p_test_tx_start:
 
 p_test_ble_tx_on:
-01cb 2040115d call set_sync_on 
-01cc 68489052 fetcht 1 ,mem_fcc_ch 
-01cd 20401201 call set_freq_tx 
-01ce 20401651 call le_enable 
-01cf 79202a00 set1 txgfsk ,radio_ctrl 
-01d0 782efc00 enable encode_fec0 
-01d1 78307c00 enable is_tx 
-01d2 7850fc00 disable is_rx 
-01d3 204016f0 call le_wait_tx 
-01d4 6fe09056 fetch 1 ,mem_fcc_data 
-01d5 67f0890d store 1 ,core_tx_test_mode 
-01d6 c00001d9 beq 0x00 ,p_test_carrier_tx 
-01d7 c01101e4 beq 0x22 ,p_test_non_carrier_tx 
-01d8 20600000 rtn 
+01cf 2040115d call set_sync_on 
+01d0 68489052 fetcht 1 ,mem_fcc_ch 
+01d1 20401201 call set_freq_tx 
+01d2 20401651 call le_enable 
+01d3 79202a00 set1 txgfsk ,radio_ctrl 
+01d4 782efc00 enable encode_fec0 
+01d5 78307c00 enable is_tx 
+01d6 7850fc00 disable is_rx 
+01d7 204016f0 call le_wait_tx 
+01d8 6fe09056 fetch 1 ,mem_fcc_data 
+01d9 67f0890d store 1 ,core_tx_test_mode 
+01da c00001dd beq 0x00 ,p_test_carrier_tx 
+01db c01101e8 beq 0x22 ,p_test_non_carrier_tx 
+01dc 20600000 rtn 
 
 p_test_carrier_tx:
 
 p_test_tx_carrier_loop:
-01d9 6f209057 fetchr loopcnt ,1 ,mem_fcc_data_length 
-01da d8c01063 arg mem_pn9 ,contr 
+01dd 6f209057 fetchr loopcnt ,1 ,mem_fcc_data_length 
+01de d8c01063 arg mem_pn9 ,contr 
 
 p_pnloop_carrier:
-01db efe08006 ifetch 1 ,contr 
-01dc 08008608 inject mod ,8 
-01dd c20001db loop p_pnloop_carrier 
-01de 20400160 call p_dongle_usb_dispatch 
-01df 6fe39052 fetch 7 ,mem_fcc_param 
-01e0 684b904b fetcht 7 ,mem_fcc_param_new 
-01e1 98467c00 isub temp ,null 
-01e2 202281d9 branch p_test_tx_carrier_loop ,zero 
-01e3 202001c4 branch p_test_tx_new_param 
+01df efe08006 ifetch 1 ,contr 
+01e0 08008608 inject mod ,8 
+01e1 c20001df loop p_pnloop_carrier 
+01e2 20400164 call p_dongle_usb_dispatch 
+01e3 6fe39052 fetch 7 ,mem_fcc_param 
+01e4 684b904b fetcht 7 ,mem_fcc_param_new 
+01e5 98467c00 isub temp ,null 
+01e6 202281dd branch p_test_tx_carrier_loop ,zero 
+01e7 202001c8 branch p_test_tx_new_param 
 
 p_test_non_carrier_tx:
 
 p_tx_data:
-01e4 df200035 arg 53 ,loopcnt 
-01e5 d8c01063 arg mem_pn9 ,contr 
+01e8 df200035 arg 53 ,loopcnt 
+01e9 d8c01063 arg mem_pn9 ,contr 
 
 p_pnloop_stable:
-01e6 efe08006 ifetch 1 ,contr 
-01e7 08008608 inject mod ,8 
-01e8 c20001e6 loop p_pnloop_stable 
+01ea efe08006 ifetch 1 ,contr 
+01eb 08008608 inject mod ,8 
+01ec c20001ea loop p_pnloop_stable 
 
 p_stable_stop:
-01e9 20400160 call p_dongle_usb_dispatch 
-01ea 6fe39052 fetch 7 ,mem_fcc_param 
-01eb 684b904b fetcht 7 ,mem_fcc_param_new 
-01ec 98467c00 isub temp ,null 
-01ed 202281e4 branch p_tx_data ,zero 
-01ee 2040114b call shutdown_radio 
-01ef 202001c4 branch p_test_tx_new_param 
+01ed 20400164 call p_dongle_usb_dispatch 
+01ee 6fe39052 fetch 7 ,mem_fcc_param 
+01ef 684b904b fetcht 7 ,mem_fcc_param_new 
+01f0 98467c00 isub temp ,null 
+01f1 202281e8 branch p_tx_data ,zero 
+01f2 2040114b call shutdown_radio 
+01f3 202001c8 branch p_test_tx_new_param 
 
 p_test_rx_start:
-01f0 204001f7 call p_test_ble_rx_on 
+01f4 204001fb call p_test_ble_rx_on 
 
 p_test_rx_loop:
-01f1 20400160 call p_dongle_usb_dispatch 
-01f2 6fe39052 fetch 7 ,mem_fcc_param 
-01f3 684b904b fetcht 7 ,mem_fcc_param_new 
-01f4 98467c00 isub temp ,null 
-01f5 202281f1 branch p_test_rx_loop ,zero 
-01f6 202001c4 branch p_test_tx_new_param 
+01f5 20400164 call p_dongle_usb_dispatch 
+01f6 6fe39052 fetch 7 ,mem_fcc_param 
+01f7 684b904b fetcht 7 ,mem_fcc_param_new 
+01f8 98467c00 isub temp ,null 
+01f9 202281f5 branch p_test_rx_loop ,zero 
+01fa 202001c8 branch p_test_tx_new_param 
 
 p_test_ble_rx_on:
-01f7 2040114b call shutdown_radio 
-01f8 68489052 fetcht 1 ,mem_fcc_ch 
-01f9 20201674 branch le_rf_rx_enable 
+01fb 2040114b call shutdown_radio 
+01fc 68489052 fetcht 1 ,mem_fcc_ch 
+01fd 20201674 branch le_rf_rx_enable 
               org 0x800
 
 start:
Index: output/ramcode.rom
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K/output/ramcode.rom	(revision 1876)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K/output/ramcode.rom	(working copy)
@@ -5,7 +5,7 @@
 c045803c
 c04600a4
 c0568011
-c05d0160
+c05d0164
 c05d8074
 2020137e
 c04600bf
@@ -333,7 +333,7 @@
 6fe0c897
 c0008151
 c001240e
-c07f815e
+c07f8162
 202023fa
 204023ca
 2040255c
@@ -344,10 +344,14 @@
 67e0c8b7
 c000815a
 20202407
-20402414
+6fe0c09a
+1fe67c0e
+2042b4f0
+6fe0c941
+247a0000
 70494101
-7048d701
-20600000
+6fe2489f
+202025c4
 204023d8
 2020012f
 204079fc
@@ -362,18 +366,18 @@
 c0533756
 c053b758
 c054b75e
-c058016e
+c0580172
 20203742
 6fe08b63
-c0588171
+c0588175
 20600000
-2040017b
+2040017f
 6fe08b66
-c0790185
-c0798194
-c0400181
-c0408184
-2020017e
+c0790189
+c0798198
+c0400185
+c0408188
+20200182
 684c105a
 604c0b61
 20600000
@@ -384,33 +388,33 @@
 67e18ba1
 20203748
 7048c302
-20400178
-202001a9
+2040017c
+202001ad
 20205e29
-2040019a
-24610000
+2040019e
+20610000
 6fe0904b
 67e09059
 68488b64
 6048904b
 6fe08b65
-20400178
-c001019e
-c00181a1
-c00201a3
-c00281a6
+2040017c
+c00101a2
+c00181a5
+c00201a7
+c00281aa
 6fe09059
 67e0904b
 20600000
 6fe08b65
 c1f80000
-2040019a
-24610000
+2040019e
+20610000
 67e0904b
-20200178
+2020017c
 6fe08b64
 d8400050
-9fe67c00
+98467c00
 20600000
 70104f00
 70104d01
@@ -428,9 +432,9 @@
 d8a0104b
 98a67200
 20407d9b
-204001b1
+204001b5
 70105019
-202001c4
+202001c8
 df2003fe
 d8a01063
 580001ff
@@ -446,17 +450,17 @@
 1fe37e00
 1a40a401
 2a400e00
-242081b5
+242081b9
 e0408005
-c20001b5
+c20001b9
 20600000
 6fe3904b
 67e39052
 6fe09054
-c00081cb
-c00101f0
-20400160
-202001c4
+c00081cf
+c00101f4
+20400164
+202001c8
 2040115d
 68489052
 20401201
@@ -468,39 +472,39 @@
 204016f0
 6fe09056
 67f0890d
-c00001d9
-c01101e4
+c00001dd
+c01101e8
 20600000
 6f209057
 d8c01063
 efe08006
 08008608
-c20001db
-20400160
+c20001df
+20400164
 6fe39052
 684b904b
 98467c00
-202281d9
-202001c4
+202281dd
+202001c8
 df200035
 d8c01063
 efe08006
 08008608
-c20001e6
-20400160
+c20001ea
+20400164
 6fe39052
 684b904b
 98467c00
-202281e4
+202281e8
 2040114b
-202001c4
-204001f7
-20400160
+202001c8
+204001fb
+20400164
 6fe39052
 684b904b
 98467c00
-202281f1
-202001c4
+202281f5
+202001c8
 2040114b
 68489052
 20201674
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K/program/patch.prog	(revision 1876)
+++ /YC1308AC/branch/mouse_project/AiTanSi_Project/1303-f-1m-dongle/USB-64K/program/patch.prog	(working copy)
@@ -499,10 +499,14 @@
 	branch g24_data_device1+8
 	
 p_g24_data_attemp_device1_abort:
-	call g24_data_attemp_device1_abort
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_car,null
+	call car_stop_blink,zero
+	fetch 1,mem_24g_mouse_bind_enable
+	nrtn blank
 	jam 1,mem_24g_mouse_bind_enable
-	jam 1,mem_24g_B_S_mode_switch_disable
-	rtn
+	fetch 4,mem_24g_rxdata_temp+10
+	branch g24_store_device1_addr
 	
 p_g24_data_receive_attemp:
 	call g24_bind_device_status		//works on auto pair only
@@ -572,7 +576,7 @@
 	
 p_dongle_dispose_cmd_fixed_freq:
 	call p_dongle_dispose_cmd_value_judge
-	nrtn positive
+	rtn positive
 	fetch 1,mem_fcc_ch_new
 	store 1,mem_fcc_ch_last_value
 	
@@ -597,7 +601,7 @@
 	rtnne COMMAND_TYPE_ASSIGN_FREQ_MODE
 	
 	call p_dongle_dispose_cmd_value_judge
-	nrtn positive
+	rtn positive
 	store 1,mem_fcc_ch_new
 	branch p_dongle_set_report_data_clear
 
@@ -605,7 +609,7 @@
 p_dongle_dispose_cmd_value_judge:
 	fetch 1,mem_usb0_set_report_data+3
 	arg 0x50,temp
-	isub pdata,null
+	isub temp,null
 	rtn
 	
 p_dongle_dispose_cmd_modulation_send:
