Index: d.bat
===================================================================
--- /branch/usb/usb_public/d.bat	(revision 204)
+++ /branch/usb/usb_public/d.bat	(working copy)
@@ -1,10 +1,12 @@
-call do.bat eep
+call do eep
 e pu
 e 8043 00
-e 8070 3e6c6d
 e er 0 10
-e ew 0 112233
+e 8070 3e6c6d
+e 8070l10
+set eepage=32  
+e ew 0 11223344
 e er 0 10
-e ep ./output/eeprom.dat
+e ep
 e er 0 10
 e ku
Index: format/app_dongle.format
===================================================================
--- /branch/usb/usb_public/format/app_dongle.format	(revision 204)
+++ /branch/usb/usb_public/format/app_dongle.format	(working copy)
@@ -133,11 +133,6 @@
 5 DG_ENABLE_EEPROM
 4 DG_ENABLE_KB_ICON
 3 DG_ENABLE_24G_2M
-)
-
-(
-0x04 HVIN_VIN_LESS_THAN_4V2
-0x06 HVIN_GREATER_THAN_4V2_AND_VIN_LESS_THAN_4V2
-0x3a HVIN_VIN_GREATER_THAN_4V2
+0 DG_ENABLE_NEW_REVISION
 )
 
Index: format/bt.format
===================================================================
--- /branch/usb/usb_public/format/bt.format	(revision 204)
+++ /branch/usb/usb_public/format/bt.format	(working copy)
@@ -558,6 +558,7 @@
 48 mark_ble_crc_fail
 50 mark_ble_encryption
 51 mark_first_packet
+52 mark_pllon
 )
 
 (
Index: output/eeprom.dat
===================================================================
--- /branch/usb/usb_public/output/eeprom.dat	(revision 204)
+++ /branch/usb/usb_public/output/eeprom.dat	(working copy)
@@ -2,52 +2,32 @@
 02
 aa
 55
-fe
+1a
 02
 c2
 84
 00
-0c
+07
 c0
 00
 00
-10
+0d
 c0
-01
+0a
 80
-94
-c0
-0b
-b9
-ff
+33
 c0
-31
+1b
 00
-15
-c0
-4a
-80
-b1
+19
 c0
 5c
 80
-1e
+1d
 c0
 6a
 80
-77
-c0
-6f
-00
-7c
-c0
-71
-00
-97
-c0
-74
-00
-a1
+2e
 20
 20
 3a
@@ -59,19 +39,27 @@
 c0
 14
 00
-2f
+3a
 c0
 1d
 80
+44
+c0
+22
+00
+7b
+c0
 40
+00
+12
 20
 20
 3a
 ba
 20
-35
-b8
-02
+80
+00
+00
 6f
 e2
 40
@@ -87,43 +75,51 @@
 20
 20
 38
-02
-6f
-e0
-c0
-95
-20
-3a
-4d
-9b
+03
 20
-75
-80
-00
-70
 40
-cc
-3a
+52
+55
+70
+45
+10
+00
 20
 40
-3c
-41
-70
-44
-fd
-02
-70
-44
-fe
-02
+49
+2b
+6f
+e0
+c5
+ab
+c4
+00
+00
+00
 70
 45
 10
 01
 20
 20
-52
 49
+2e
+20
+40
+00
+1b
+20
+20
+52
+ee
+58
+00
+00
+10
+20
+20
+6d
+e1
 20
 40
 6f
@@ -192,34 +188,26 @@
 20
 71
 92
-6f
-e0
-c4
-fe
+18
+42
+7e
+00
+c2
+80
+80
+31
+20
 20
-40
 3d
-16
-6f
-e2
-44
-d5
-98
-00
-12
-00
+19
+70
+8a
+6d
+89
 20
-40
-47
-c7
 20
-40
-39
-25
-68
-48
-c4
-d3
+3d
+1f
 70
 8a
 3d
@@ -236,14 +224,46 @@
 40
 39
 8e
+c5
+1a
+39
+cf
+20
+00
+03
+c0
+20
 20
-40
 39
 cf
+6f
+e0
+c5
+ab
+c3
+00
+48
+1c
 20
 00
 01
 2c
+6f
+e0
+c4
+3e
+79
+20
+7e
+00
+67
+e0
+c4
+3e
+79
+20
+00
+34
 20
 40
 4a
@@ -253,13 +273,9 @@
 48
 8f
 20
-40
-48
-46
-20
 20
 48
-1c
+3f
 6f
 e0
 c5
@@ -267,15 +283,15 @@
 c0
 55
 00
-45
+49
 c0
 2a
 80
-4f
+53
 c0
 11
 00
-5f
+63
 20
 20
 49
@@ -287,11 +303,11 @@
 c0
 00
 80
-49
+4d
 c0
 01
 00
-4c
+50
 20
 60
 00
@@ -327,7 +343,7 @@
 20
 3a
 00
-55
+59
 6f
 e2
 45
@@ -351,11 +367,11 @@
 c0
 00
 80
-59
+5d
 c0
 01
 00
-5c
+60
 20
 60
 00
@@ -391,7 +407,7 @@
 20
 3a
 00
-65
+69
 6f
 e2
 45
@@ -415,11 +431,11 @@
 c0
 00
 80
-69
+6d
 c0
 01
 00
-70
+74
 20
 60
 00
@@ -439,7 +455,7 @@
 c0
 01
 00
-6e
+72
 20
 60
 00
@@ -467,7 +483,7 @@
 c0
 80
 00
-75
+79
 20
 60
 00
@@ -480,306 +496,67 @@
 20
 4a
 0c
-18
-42
-7e
-00
-c2
-80
+6f
+e0
+c5
+59
+c1
+83
 80
-7a
-20
-20
-3d
-19
-70
-8a
-6d
-89
+00
 20
+40
+00
+7f
 20
-3d
-1f
 20
-40
-3d
-3c
+4b
+1b
+6f
+e0
 c5
-97
+58
+c3
+83
 80
-82
-78
-3c
-fc
 00
+79
 20
-00
-00
-1e
+7e
+07
+67
+e0
+c5
+58
+6f
+e0
+c5
+66
+67
+e0
+c1
+16
 20
+20
+4b
+0b
+cb
+d8
+aa
+55
 40
-3d
-3c
-19
-69
-96
 00
-78
-56
-fc
-00
-78
-26
-fc
 00
-78
-30
-fc
-00
-78
-50
-7c
-00
-19
-62
-36
-00
-37
-c1
-84
-00
-20
-37
-00
-8b
-1b
-42
-04
-00
-60
-4b
-00
-0f
-24
-2c
-3e
-75
-78
-28
-7c
-00
-db
-60
-4e
-ab
-6f
-e0
-c1
-1d
-9b
-6f
-84
-00
-98
-40
-b6
-00
-20
-20
-3d
-e9
-70
-00
-06
-00
-20
-20
-38
-22
-20
-40
-38
-63
-24
-22
-80
-92
-20
-20
-38
-1d
-20
-40
-6f
-09
-6f
-e0
-81
-98
-7d
-3e
-7e
-07
-67
-e0
-81
-98
-78
-46
-fc
-00
-20
 40
-39
-25
-70
-8a
-3d
-12
-68
-48
-80
-08
-18
-40
-a2
-02
-20
-20
-39
-8e
-20
-40
-3d
-3c
-20
-40
-3d
-4b
-20
-40
-64
-51
-79
-20
-2a
-00
-78
-2e
-fc
-00
-78
-30
-7c
-00
-78
-50
-fc
-00
-20
-40
-3d
-c2
-78
-5d
-7c
-00
-c5
-17
-be
-ff
-c5
-16
-80
-ad
-20
-20
-3e
-c8
-6f
-20
-c1
-1d
-20
-00
-00
 01
-c2
-00
 00
-ae
-20
-20
-3f
-15
-6a
-50
-8a
-12
-70
-8a
-12
-3d
-70
-8a
-11
-aa
-70
-8a
-0a
-0c
-6f
-f0
-8a
-09
-79
-20
-7e
-07
-67
-f0
-8a
-09
-70
-8a
-0b
-04
 20
 00
 00
-3c
-70
-8a
-16
 00
-70
-8a
-17
-06
-20
-40
-6c
-b4
-67
-f0
-8a
-97
-20
-20
-6c
-a7
-8e
-03
-aa
-55
 40
 00
 00
-40
-09
-00
-80
-00
 00
 00
 00
@@ -788,24 +565,19 @@
 00
 00
 00
-04
 00
 00
 00
 00
 00
-20
 00
+02
 00
 00
+20
 00
-02
 00
 00
-20
-40
-04
-01
 00
 00
 00
@@ -816,6 +588,7 @@
 01
 00
 08
+10
 00
 00
 00
@@ -823,8 +596,7 @@
 00
 00
 00
-00
-00
+01
 00
 00
 00
@@ -860,14 +632,14 @@
 00
 ab
 45
-00
+01
 aa
 55
 01
 00
 d6
 45
-06
+0a
 aa
 55
 06
@@ -892,9 +664,9 @@
 55
 01
 00
-de
+eb
+43
 01
-5a
 aa
 55
 08
@@ -902,7 +674,7 @@
 16
 00
 00
-10
+20
 00
 00
 00
@@ -918,43 +690,13 @@
 88
 0b
 ca
-70
+35
 3f
 0c
 33
 03
 aa
 55
-03
-00
-cd
-40
-9d
-10
-22
-aa
-55
-01
-00
-a8
-40
-00
-aa
-55
-01
-00
-1f
-41
-18
-aa
-55
-01
-00
-9a
-40
-18
-aa
-55
 01
 00
 e9
@@ -964,60 +706,37 @@
 55
 01
 00
-e8
+e6
 43
 00
 aa
 55
-01
+04
 00
-e7
-43
-29
+cc
+40
+3a
+80
+10
+24
 aa
 55
 01
 00
-e6
-43
-01
-aa
-55
-05
-00
-18
-41
-ff
-88
-66
-44
-00
-aa
-55
-02
-00
-9b
+a8
 40
 00
-0c
 aa
 55
 05
 00
-20
+18
 41
-09
-0e
-05
-04
+ff
+08
 00
-aa
-55
-01
 00
-e3
-43
-7f
+08
 aa
 55
 01
@@ -1039,13 +758,13 @@
 00
 ec
 43
-06
-07
+85
+86
 55
 aa
 aa
 55
-fd
-38
-9d
-ea
+4d
+2a
+2e
+8d
Index: output/program.lis
===================================================================
--- /branch/usb/usb_public/output/program.lis	(revision 204)
+++ /branch/usb/usb_public/output/program.lis	(working copy)
@@ -1,260 +1,191 @@
               include "bt_format "
               org 0x0000
-0000 c284000c bbit1 8 ,pf_patch_ext 
-0001 c0000010 beq patch00_0 ,p_soft_reset 
-0002 c0018094 beq patch00_3 ,p_connection_incontext 
-0003 c00bb9ff beq patch02_7 ,set_tx_power_10db 
-0004 c0310015 beq patch0c_2 ,p_app_init 
-0005 c04a80b1 beq patch12_5 ,p_enable_adc 
-0006 c05c801e beq patch17_1 ,p_usb_init 
-0007 c06a8077 beq patch1a_5 ,p_le_enable_phy_by_pdata 
-0008 c06f007c beq patch1b_6 ,p_le_receive_rxon 
-0009 c0710097 beq patch1c_2 ,p_le_crc_fail_tx 
-000a c07400a1 beq patch1d_0 ,p_le_transmit 
-000b 20203aba branch assert 
+0000 c2840007 bbit1 8 ,pf_patch_ext 
+0001 c000000d beq patch00_0 ,p_soft_reset 
+0002 c00a8033 beq patch02_5 ,p_set_freq_tx 
+0003 c01b0019 beq patch06_6 ,p_dongle_usb_dispatch 
+0004 c05c801d beq patch17_1 ,p_usb_init 
+0005 c06a802e beq patch1a_5 ,p_le_enable_phy_by_pdata 
+0006 20203aba branch assert 
 
 pf_patch_ext:
-000c c17f8000 rtneq patch3f_7 
-000d c014002f beq patch25_0 ,p_g24_receive_skip_end 
-000e c01d8040 beq patch27_3 ,p_g24_bind_data_parse_next 
-000f 20203aba branch assert 
+0007 c17f8000 rtneq patch3f_7 
+0008 c014003a beq patch25_0 ,p_g24_receive_skip_end 
+0009 c01d8044 beq patch27_3 ,p_g24_bind_data_parse_next 
+000a c022007b beq patch28_4 ,p_g24_search_mode_auto 
+000b c0400012 beq patch30_0 ,p_dongle_default_init 
+000c 20203aba branch assert 
 
 p_soft_reset:
-0010 2035b802 branch soft_reset + 1 ,wake 
-0011 6fe240cc fetch 4 ,mem_lpm_ctrl3 
-0012 67f2004c store 4 ,core_lpm_reg 
-0013 20403c49 call lpm_write_ctrl3 
-0014 20203802 branch soft_reset + 1 
-
-p_app_init:
-0015 6fe0c095 fetch 1 ,mem_device_option 
-0016 203a4d9b branch app_init ,blank 
-
-p_dongle_init:
-0017 20758000 rtn wake 
-0018 7040cc3a jam hvin_vin_greater_than_4v2 ,mem_lpm_ctrl3 
-0019 20403c41 call lpm_write_sel_vdd 
-001a 7044fd02 jam 0x02 ,mem_24g_rx_phy 
-001b 7044fe02 jam 0x02 ,mem_24g_tx_phy 
-001c 70451001 jam 0x01 ,mem_24g_disable_fec1 
-001d 20205249 branch dongle_init 
+000d 20800000 clear_stack 
+000e 6fe240cc fetch 4 ,mem_lpm_ctrl3 
+000f 67f2004c store 4 ,core_lpm_reg 
+0010 20403c49 call lpm_write_ctrl3 
+0011 20203803 branch soft_reset + 2 
+
+p_dongle_default_init:
+0012 20405255 call dongle_default_init + 1 
+0013 70451000 jam off ,mem_24g_disable_fec1 
+0014 2040492b call g24_enable_1m 
+0015 6fe0c5ab fetch 1 ,mem_dg_sys_config 
+0016 c4000000 rtnbit0 dg_enable_new_revision 
+0017 70451001 jam on ,mem_24g_disable_fec1 
+0018 2020492e branch g24_enable_2m 
+
+p_dongle_usb_dispatch:
+0019 2040001b call p_wdt_kick 
+001a 202052ee branch dongle_usb_dispatch + 1 
+
+p_wdt_kick:
+001b 58000010 setarg 16 
+001c 20206de1 branch wdt_init_config 
 
 p_usb_init:
-001e 20406fd3 call enable_authrom 
-001f 204071a1 call usb_init_param 
-0020 70061003 jam 0x03 ,mem_devicedesc + 17 
-0021 708c0000 jam 0x00 ,core_usb_config 
-0022 20002710 nop 10000 
-0023 708c1800 jam 0x00 ,core_usb_trig 
-0024 6ff10050 fetch 2 ,core_clkoff 
-0025 793ffe0a set0 clock_off_usb ,pdata 
-0026 67f10050 store 2 ,core_clkoff 
-0027 708c1100 jam 0x0 ,core_usb_hmode 
-0028 708c003c jam 0x3c ,core_usb_config 
-0029 58000bb3 setarg mem_usb_rxbuf_new 
-002a 67f10c03 store 2 ,core_usb_rx_saddr 
-002b 67f10c07 store 2 ,core_usb_rxptr 
-002c 58000bf7 setarg mem_usb_rxbuf_new_end 
-002d 67f10c05 store 2 ,core_usb_rx_eaddr 
-002e 20207192 branch usb_init + 16 
+001d 20406fd3 call enable_authrom 
+001e 204071a1 call usb_init_param 
+001f 70061003 jam 0x03 ,mem_devicedesc + 17 
+0020 708c0000 jam 0x00 ,core_usb_config 
+0021 20002710 nop 10000 
+0022 708c1800 jam 0x00 ,core_usb_trig 
+0023 6ff10050 fetch 2 ,core_clkoff 
+0024 793ffe0a set0 clock_off_usb ,pdata 
+0025 67f10050 store 2 ,core_clkoff 
+0026 708c1100 jam 0x0 ,core_usb_hmode 
+0027 708c003c jam 0x3c ,core_usb_config 
+0028 58000bb3 setarg mem_usb_rxbuf_new 
+0029 67f10c03 store 2 ,core_usb_rx_saddr 
+002a 67f10c07 store 2 ,core_usb_rxptr 
+002b 58000bf7 setarg mem_usb_rxbuf_new_end 
+002c 67f10c05 store 2 ,core_usb_rx_eaddr 
+002d 20207192 branch usb_init + 16 
+
+p_le_enable_phy_by_pdata:
+002e 18427e00 copy temp ,pdata 
+002f c2808031 bbit1 bit_le_2m_phy ,p_le_enable_2m 
+0030 20203d19 branch le_enable_phy_by_pdata + 3 
+
+p_le_enable_2m:
+0031 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+0032 20203d1f branch le_enable_2m 
+
+p_set_freq_tx:
+0033 708a3d12 jam 0x12 ,core_syn_top_ctrl 
+0034 60488008 storet 1 ,mem_last_freq 
+0035 1840a202 add temp ,2 ,rega 
+0036 2040398e call rf_tx_write_freq 
+0037 c51a39cf bmark1 mark_pllon ,txon 
+0038 200003c0 nop 0x3c0 
+0039 202039cf branch txon 
 
 p_g24_receive_skip_end:
-002f 6fe0c4fe fetch 1 ,mem_24g_tx_phy 
-0030 20403d16 call le_enable_phy_by_pdata 
-0031 6fe244d5 fetch 4 ,mem_24g_addr 
-0032 98001200 iforce access 
-0033 204047c7 call g24_prep 
-0034 20403925 call set_sync_on 
-0035 6848c4d3 fetcht 1 ,mem_24g_ch 
-0036 708a3d12 jam 0x12 ,core_syn_top_ctrl 
-0037 60488008 storet 1 ,mem_last_freq 
-0038 1840a202 add temp ,2 ,rega 
-0039 2040398e call rf_tx_write_freq 
-003a 204039cf call txon 
-003b 2000012c nop 300 
-003c 20404a3b call g24_ackpayload_prep 
-003d 2040488f call g24_transmit_prep 
-003e 20404846 call g24_transmit + 7 
-003f 2020481c branch g24_receive_skip_end 
+003a 6fe0c5ab fetch 1 ,mem_dg_sys_config 
+003b c300481c bbit0 dg_enable_new_revision ,g24_receive_skip_end 
+003c 2000012c nop 300 
+003d 6fe0c43e fetch 1 ,mem_24g_rxbuf + 1 
+003e 79207e00 set1 bit_ack_24g ,pdata 
+003f 67e0c43e store 1 ,mem_24g_rxbuf + 1 
+0040 79200034 set1 mark_pllon ,mark 
+0041 20404a3b call g24_ackpayload_prep 
+0042 2040488f call g24_transmit_prep 
+0043 2020483f branch g24_transmit 
 
 p_g24_bind_data_parse_next:
-0040 6fe0c52d fetch 1 ,mem_24g_rxdata_temp + 2 
-0041 c0550045 beq datatype_bind ,p_g24_bind_first_step 
-0042 c02a804f beq datatype_config ,p_g24_bind_second_step 
-0043 c011005f beq datatype_ok ,p_g24_bind_third_step 
-0044 202049c8 branch g24_bind_data_parse_next + 4 
+0044 6fe0c52d fetch 1 ,mem_24g_rxdata_temp + 2 
+0045 c0550049 beq datatype_bind ,p_g24_bind_first_step 
+0046 c02a8053 beq datatype_config ,p_g24_bind_second_step 
+0047 c0110063 beq datatype_ok ,p_g24_bind_third_step 
+0048 202049c8 branch g24_bind_data_parse_next + 4 
 
 p_g24_bind_first_step:
-0045 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
-0046 c0008049 beq datatype_device1 ,p_g24_bind_first_step_device1 
-0047 c001004c beq datatype_device2 ,p_g24_bind_first_step_device2 
-0048 20600000 rtn 
+0049 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
+004a c000804d beq datatype_device1 ,p_g24_bind_first_step_device1 
+004b c0010050 beq datatype_device2 ,p_g24_bind_first_step_device2 
+004c 20600000 rtn 
 
 p_g24_bind_first_step_device1:
-0049 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-004a 247a0000 nrtn blank 
-004b 202049ce branch g24_bind_first_step_device1 
+004d 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+004e 247a0000 nrtn blank 
+004f 202049ce branch g24_bind_first_step_device1 
 
 p_g24_bind_first_step_device2:
-004c 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
-004d 247a0000 nrtn blank 
-004e 202049d4 branch g24_bind_first_step_device2 
+0050 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
+0051 247a0000 nrtn blank 
+0052 202049d4 branch g24_bind_first_step_device2 
 
 p_g24_bind_second_step:
-004f 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
-0050 203a0055 branch p_g24_bind_second_step_skip ,blank 
-0051 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
-0052 684a4437 fetcht 4 ,mem_24g_lap 
-0053 98467c00 isub temp ,null 
-0054 24628000 nrtn zero 
+0053 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
+0054 203a0059 branch p_g24_bind_second_step_skip ,blank 
+0055 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
+0056 684a4437 fetcht 4 ,mem_24g_lap 
+0057 98467c00 isub temp ,null 
+0058 24628000 nrtn zero 
 
 p_g24_bind_second_step_skip:
-0055 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
-0056 c0008059 beq datatype_device1 ,p_g24_bind_second_step_device1 
-0057 c001005c beq datatype_device2 ,p_g24_bind_second_step_device2 
-0058 20600000 rtn 
+0059 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
+005a c000805d beq datatype_device1 ,p_g24_bind_second_step_device1 
+005b c0010060 beq datatype_device2 ,p_g24_bind_second_step_device2 
+005c 20600000 rtn 
 
 p_g24_bind_second_step_device1:
-0059 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-005a 247a0000 nrtn blank 
-005b 202049e1 branch g24_bind_second_step_device1 
+005d 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+005e 247a0000 nrtn blank 
+005f 202049e1 branch g24_bind_second_step_device1 
 
 p_g24_bind_second_step_device2:
-005c 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
-005d 247a0000 nrtn blank 
-005e 202049ec branch g24_bind_second_step_device2 
+0060 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
+0061 247a0000 nrtn blank 
+0062 202049ec branch g24_bind_second_step_device2 
 
 p_g24_bind_third_step:
-005f 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
-0060 203a0065 branch p_g24_bind_third_step_skip ,blank 
-0061 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
-0062 684a456f fetcht 4 ,mem_24g_transmitter_addr 
-0063 98467c00 isub temp ,null 
-0064 24628000 nrtn zero 
+0063 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
+0064 203a0069 branch p_g24_bind_third_step_skip ,blank 
+0065 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
+0066 684a456f fetcht 4 ,mem_24g_transmitter_addr 
+0067 98467c00 isub temp ,null 
+0068 24628000 nrtn zero 
 
 p_g24_bind_third_step_skip:
-0065 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
-0066 c0008069 beq datatype_device1 ,p_g24_bind_third_step_device1 
-0067 c0010070 beq datatype_device2 ,p_g24_bind_third_step_device2 
-0068 20600000 rtn 
+0069 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
+006a c000806d beq datatype_device1 ,p_g24_bind_third_step_device1 
+006b c0010074 beq datatype_device2 ,p_g24_bind_third_step_device2 
+006c 20600000 rtn 
 
 p_g24_bind_third_step_device1:
-0069 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-006a 247a0000 nrtn blank 
-006b 6fe0c518 fetch 1 ,mem_24g_device1_bind_step 
-006c c001006e beq 2 ,p_g24_bind_dvc1_step_success 
-006d 20600000 rtn 
+006d 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+006e 247a0000 nrtn blank 
+006f 6fe0c518 fetch 1 ,mem_24g_device1_bind_step 
+0070 c0010072 beq 2 ,p_g24_bind_dvc1_step_success 
+0071 20600000 rtn 
 
 p_g24_bind_dvc1_step_success:
-006e 7045d701 jam 1 ,mem_24g_device1_bind_disable 
-006f 20204a01 branch g24_bind_dvc1_step_success 
+0072 7045d701 jam 1 ,mem_24g_device1_bind_disable 
+0073 20204a01 branch g24_bind_dvc1_step_success 
 
 p_g24_bind_third_step_device2:
-0070 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
-0071 247a0000 nrtn blank 
-0072 6fe0c519 fetch 1 ,mem_24g_device2_bind_step 
-0073 c0800075 bne 0 ,p_g24_bind_dvc2_step_success 
-0074 20600000 rtn 
+0074 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
+0075 247a0000 nrtn blank 
+0076 6fe0c519 fetch 1 ,mem_24g_device2_bind_step 
+0077 c0800079 bne 0 ,p_g24_bind_dvc2_step_success 
+0078 20600000 rtn 
 
 p_g24_bind_dvc2_step_success:
-0075 7045d801 jam 1 ,mem_24g_device2_bind_disable 
-0076 20204a0c branch g24_bind_dvc2_step_success 
-
-p_le_enable_phy_by_pdata:
-0077 18427e00 copy temp ,pdata 
-0078 c280807a bbit1 bit_le_2m_phy ,p_le_enable_2m 
-0079 20203d19 branch le_enable_phy_by_pdata + 3 
-
-p_le_enable_2m:
-007a 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
-007b 20203d1f branch le_enable_2m 
+0079 7045d801 jam 1 ,mem_24g_device2_bind_disable 
+007a 20204a0c branch g24_bind_dvc2_step_success 
 
-p_le_receive_rxon:
-007c 20403d3c call le_prep 
-007d c5978082 bmark0 mark_ble_lr ,p_le_receive_nolr 
-007e 783cfc00 pulse dewhiten_code_calc 
-007f 2000001e nop 30 
-0080 20403d3c call le_prep 
-0081 19699600 lshift3 timeup ,timeup 
-
-p_le_receive_nolr:
-0082 7856fc00 disable match 
-0083 7826fc00 enable decode_fec0 
-0084 7830fc00 enable is_rx 
-0085 78507c00 disable is_tx 
-0086 19623600 copy timeup ,stop_watch 
-0087 37c18400 correlate null ,timeout 
-0088 2037008b branch p_le_receive_on_attempt ,attempt 
-0089 1b420400 copy clke ,temp 
-008a 604b000f storet 6 ,mem_sync_clke 
-
-p_le_receive_on_attempt:
-008b 242c3e75 nbranch le_unsync_end ,sync 
-008c 78287c00 enable swfine 
-008d db604eab arg param_t_ifs_150us + param_20ms_init + param_sync_time_difference ,stop_watch 
-008e 6fe0c11d fetch 1 ,mem_system_clk 
-008f 9b6f8400 imul32 stop_watch ,temp 
-0090 9840b600 iadd temp ,stop_watch 
-0091 20203de9 branch le_receive_on_attempt + 6 
-
-p_connection_nosniff:
-0092 70000600 jam 0 ,mem_current_context 
-0093 20203822 branch connection_nosniff 
-
-p_connection_incontext:
-0094 20403863 call context_search_insniff 
-0095 24228092 nbranch p_connection_nosniff ,zero 
-0096 2020381d branch connection_incontext + 3 
-
-p_le_crc_fail_tx:
-0097 20406f09 call ccm_ctrl_clr 
-0098 6fe08198 fetch 1 ,mem_le_rx_phy 
-0099 7d3e7e07 nsetflag ble_coded_info ,bit_le_coded_phy_s8 ,pdata 
-009a 67e08198 store 1 ,mem_le_rx_phy 
-009b 7846fc00 disable decode_fec0 
-009c 20403925 call set_sync_on 
-009d 708a3d12 jam 0x12 ,core_syn_top_ctrl 
-009e 68488008 fetcht 1 ,mem_last_freq 
-009f 1840a202 add temp ,2 ,rega 
-00a0 2020398e branch rf_tx_write_freq 
-
-p_le_transmit:
-00a1 20403d3c call le_prep 
-00a2 20403d4b call le_tx_setfreq 
-00a3 20406451 call rf_debug_tx_on_line 
-00a4 79202a00 set1 txgfsk ,radio_ctrl 
-00a5 782efc00 enable encode_fec0 
-00a6 78307c00 enable is_tx 
-00a7 7850fc00 disable is_rx 
-00a8 20403dc2 call le_wait_tx 
-00a9 785d7c00 disable lr_s2en 
-00aa c517beff bmark1 mark_ble_lr ,le_transmit_lr 
-00ab c51680ad bmark1 mark_ble_2m ,p_le_transmit_2m 
-00ac 20203ec8 branch le_transmit + 12 
-
-p_le_transmit_2m:
-00ad 6f20c11d fetchr loopcnt ,1 ,mem_system_clk 
-
-p_le_transmit_2m_dealy:
-00ae 20000001 nop 1 
-00af c20000ae loop p_le_transmit_2m_dealy 
-00b0 20203f15 branch le_transmit_2m_dealy + 2 
-
-p_enable_adc:
-00b1 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
-00b2 708a123d jam 0x3d ,core_rf_ldo_cfg6 
-00b3 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
-00b4 708a0a0c jam 0x0c ,core_rf_ldo_en0 
-00b5 6ff08a09 fetch 1 ,core_clkpll_cfg6 
-00b6 79207e07 set1 7 ,pdata 
-00b7 67f08a09 store 1 ,core_clkpll_cfg6 
-00b8 708a0b04 jam 0x04 ,core_rf_ldo_en1 
-00b9 2000003c nop 60 
-00ba 708a1600 jam 0 ,core_syn_en 
-00bb 708a1706 jam 6 ,core_rx_en0 
-00bc 20406cb4 call read_adc_mode 
-00bd 67f08a97 store 1 ,core_gpadc_ctrl 
-00be 20206ca7 branch enable_adc + 15 
+p_g24_search_mode_auto:
+007b 6fe0c559 fetch 1 ,mem_24g_work_mode 
+007c c1838000 rtnne dongle_search 
+007d 2040007f call p_g24_search_mode_init 
+007e 20204b1b branch g24_search_mode_auto + 4 
+
+p_g24_search_mode_init:
+007f 6fe0c558 fetch 1 ,mem_24g_mode_init 
+0080 c3838000 rtnbit1 dongle_search 
+0081 79207e07 set1 dongle_search ,pdata 
+0082 67e0c558 store 1 ,mem_24g_mode_init 
+0083 6fe0c566 fetch 1 ,mem_tx_power_temp 
+0084 67e0c116 store 1 ,mem_tx_power 
+0085 20204b0b branch g24_search_mode_init + 4 
               org 0x3800
 
 start:
Index: program/patch.prog
===================================================================
--- /branch/usb/usb_public/program/patch.prog	(revision 204)
+++ /branch/usb/usb_public/program/patch.prog	(working copy)
@@ -1,54 +1,47 @@
 
 	bbit1 8,pf_patch_ext
 	beq patch00_0,p_soft_reset
-	beq patch00_3,p_connection_incontext
-	beq patch02_7,set_tx_power_10db
-//	beq patch06_6,p_dongle_usb_dispatch
-	beq patch0c_2,p_app_init
-	beq patch12_5,p_enable_adc
+	beq patch02_5,p_set_freq_tx
+	beq patch06_6,p_dongle_usb_dispatch
 	beq patch17_1,p_usb_init
 	beq patch1a_5,p_le_enable_phy_by_pdata
-	beq patch1b_6,p_le_receive_rxon
-	beq patch1c_2,p_le_crc_fail_tx
-	beq patch1d_0,p_le_transmit
 	branch assert
 
 pf_patch_ext:
 	rtneq patch3f_7
 	beq patch25_0,p_g24_receive_skip_end
 	beq patch27_3,p_g24_bind_data_parse_next
+	beq patch28_4,p_g24_search_mode_auto
+	beq patch30_0,p_dongle_default_init
 	branch assert
 
 
 p_soft_reset:
-	branch soft_reset+1,wake
+	clear_stack
 	fetch 4,mem_lpm_ctrl3
 	store 4,core_lpm_reg
 	call lpm_write_ctrl3
-	branch soft_reset+1
+	branch soft_reset+2
+
+
+p_dongle_default_init:
+	call dongle_default_init+1
+	jam OFF,mem_24g_disable_fec1
+	call g24_enable_1M
+	fetch 1,mem_dg_sys_config
+	rtnbit0 DG_ENABLE_NEW_REVISION
+	jam ON,mem_24g_disable_fec1
+	branch g24_enable_2M
+
+
+p_dongle_usb_dispatch:
+	call p_wdt_kick
+	branch dongle_usb_dispatch+1
+
+p_wdt_kick:
+	setarg 16	//about 148ms
+	branch wdt_init_config
 
-p_app_init:
-	fetch 1,mem_device_option
-	branch app_init,blank
-p_dongle_init:
-	rtn wake
-	jam HVIN_VIN_GREATER_THAN_4V2,mem_lpm_ctrl3
-	call lpm_write_sel_vdd
-	jam 0x02,mem_24g_rx_phy
-	jam 0x02,mem_24g_tx_phy
-	jam 0x01,mem_24g_disable_fec1
-	branch dongle_init
-
-	//watch dog enable
-//	call wdt_set_enable
-//p_wdt_kick:
-	//about 125ms
-//	setarg 16
-//	branch wdt_init_config
-
-//p_dongle_usb_dispatch:
-//	call p_wdt_kick
-//	branch dongle_usb_dispatch+1
 
 p_usb_init:
 	call enable_authrom
@@ -70,25 +63,37 @@
 	branch usb_init+16
 
 
+p_le_enable_phy_by_pdata:
+	copy temp,pdata
+	bbit1 BIT_LE_2M_PHY,p_le_enable_2M
+	branch le_enable_phy_by_pdata+3
+p_le_enable_2M:
+	jam 0x89,core_rx_bq_cfg0	//bit7 set1,improve 2M rx sensitivity
+	branch le_enable_2M
 
-p_g24_receive_skip_end:
-	fetch 1,mem_24g_tx_phy
-	call le_enable_phy_by_pdata
-	fetch 4,mem_24g_addr
-	iforce access
-	call g24_prep
-	call set_sync_on
-	fetcht 1,mem_24g_ch
+
+p_set_freq_tx:
 	jam 0x12,core_syn_top_ctrl
 	storet 1,mem_last_freq
 	add temp,2,rega
 	call rf_tx_write_freq
-	call txon
+	bmark1 mark_pllon,txon
+	nop 0x3c0
+	branch txon
+
+
+p_g24_receive_skip_end:
+	fetch 1,mem_dg_sys_config
+	bbit0 DG_ENABLE_NEW_REVISION,g24_receive_skip_end
 	nop 300
+	fetch 1,mem_24g_rxbuf+1
+	set1 bit_ack_24g,pdata
+	store 1,mem_24g_rxbuf+1	//sending ack once
+	set1 mark_pllon,mark	//not waiting pll on	
 	call g24_ackpayload_prep
 	call g24_transmit_prep
-	call g24_transmit+7
-	branch g24_receive_skip_end
+	branch g24_transmit
+
 
 p_g24_bind_data_parse_next:
 	fetch 1,mem_24g_rxdata_temp+2
@@ -144,6 +149,7 @@
 	beq DATATYPE_DEVICE1,p_g24_bind_third_step_device1
 	beq DATATYPE_DEVICE2,p_g24_bind_third_step_device2
 	rtn
+
 p_g24_bind_third_step_device1:
 	fetch 1,mem_24g_device1_bind_disable
 	nrtn blank
@@ -159,107 +165,29 @@
 	nrtn blank
 	fetch 1,mem_24g_device2_bind_step
 	bne 0,p_g24_bind_dvc2_step_success
-	rtn	
+	rtn
 p_g24_bind_dvc2_step_success:
 	jam 1,mem_24g_device2_bind_disable
 	branch g24_bind_dvc2_step_success
 
-	
 
-p_le_enable_phy_by_pdata:
-	copy temp,pdata
-	bbit1 BIT_LE_2M_PHY,p_le_enable_2M
-	branch le_enable_phy_by_pdata+3
-p_le_enable_2M:
-	jam 0x89,core_rx_bq_cfg0	//bit7 set1,improve 2M rx sensitivity
-	branch le_enable_2M
-	
-p_le_receive_rxon:
-	call le_prep
-	bmark0 mark_ble_lr,p_le_receive_nolr
-	pulse dewhiten_code_calc
-	nop 30
-	call le_prep
-	lshift3 timeup,timeup
-p_le_receive_nolr:
-	disable match
-	enable decode_fec0
-	enable is_rx
-	disable is_tx
-	copy timeup,stop_watch
-	correlate null,timeout	
-	branch p_le_receive_on_attempt,attempt
-	copy clke,temp
-	storet 6,mem_sync_clke
-//	branch p_le_receive_on_attempt	
-p_le_receive_on_attempt:
-	nbranch le_unsync_end,sync
-	enable swfine
-	arg PARAM_T_IFS_150US+PARAM_20MS_INIT+PARAM_SYNC_TIME_DIFFERENCE,stop_watch
-	fetch 1,mem_system_clk
-	imul32 stop_watch,temp
-//	rshift pdata,pdata
-	iadd temp,stop_watch
-	branch le_receive_on_attempt+6
-
-
-p_connection_nosniff:
-	jam 0,mem_current_context
-	branch connection_nosniff
-	
-p_connection_incontext:
-	call context_search_insniff
-	nbranch p_connection_nosniff,zero
-	branch connection_incontext+3
-
-p_le_crc_fail_tx:
-	call ccm_ctrl_clr
-	fetch 1,mem_le_rx_phy
-	nsetflag ble_coded_info,BIT_LE_CODED_PHY_S8,pdata
-	store 1,mem_le_rx_phy
-	disable decode_fec0
-	call set_sync_on
-	jam 0x12,core_syn_top_ctrl
-	fetcht 1,mem_last_freq
-	add temp,2,rega
-	branch rf_tx_write_freq
+p_g24_search_mode_auto:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_SEARCH
+	call p_g24_search_mode_init
+	branch g24_search_mode_auto+4
+
+p_g24_search_mode_init:
+	fetch 1,mem_24g_mode_init
+	rtnbit1 DONGLE_SEARCH
+	set1 DONGLE_SEARCH,pdata
+	store 1,mem_24g_mode_init
+	fetch 1,mem_tx_power_temp	//reinit tx power when "search-pair-switch"  is enable
+	store 1,mem_tx_power
+	branch g24_search_mode_init+4
+
+
+
+
 
-p_le_transmit:
-//	bpatch patch1d_0,mem_patch1d
-	call le_prep
-	call le_tx_setfreq
-	call rf_debug_tx_on_line	//H
-	set1 TXGFSK,radio_ctrl
-	enable encode_fec0
-	enable is_tx
-	disable is_rx
-	call le_wait_tx
-	disable lr_s2en
-	bmark1 mark_ble_lr,le_transmit_lr
-	bmark1 mark_ble_2M,p_le_transmit_2M
-	branch le_transmit+12
-	
-p_le_transmit_2M:
-	fetchr loopcnt, 1,mem_system_clk
-p_le_transmit_2M_dealy:
-	nop 1
-	loop p_le_transmit_2M_dealy
-	branch le_transmit_2M_dealy+2
-
-p_enable_adc:
-	fetchr regb,1,core_rf_ldo_cfg6
-	jam 0x3d,core_rf_ldo_cfg6
-	jam 0xaa,core_rf_ldo_cfg5
-	jam 0x0c,core_rf_ldo_en0
-	fetch 1,core_clkpll_cfg6
-	set1 7,pdata
-	store 1,core_clkpll_cfg6
-	jam 0x04,core_rf_ldo_en1
-	nop 60
-	jam 0,core_syn_en
-	jam 6,core_rx_en0
-	call read_adc_mode
-	store 1,core_gpadc_ctrl
-	branch enable_adc+15
-	
 
Index: sched/1306.dat
===================================================================
--- /branch/usb/usb_public/sched/1306.dat	(revision 204)
+++ /branch/usb/usb_public/sched/1306.dat	(working copy)
@@ -1,26 +1,21 @@
 
-mem_gpio_wakeup_low:00 10 00 00 00 00 00 00
+mem_gpio_wakeup_low:00 20 00 00 00 00 00 00
 mem_lpm_config:88 0b ca	#4khz
-mem_lpm_xtalcnt:70 3f 0c 33 03
-mem_lpm_ctrl3_aon_vsel:9d 10 22
+mem_lpm_xtalcnt:35 3f 0c 33 03
+mem_rc_cal:d3
+mem_dig_aon_vsel:
+00	#bit5-4;00:1.2V;01:1.08V;02:0.96V;03:0.84V
+mem_lpm_ctrl3_app_vsel:
+3a	#04:HVIN_VIN_LESS_THAN_4V2;06:HVIN_GREATER_THAN_4V2_AND_VIN_LESS_THAN_4V2;3a:HVIN_VIN_GREATER_THAN_4V2
+80	#80:aon vsel 1.2v;9d:aon vsel 1.08v
+10
+24	#24:ldo vsel 1.2v;22:ldo vsel 1.1v
 mem_lpm_hibernate_switch:00
-mem_xtal_freq:18
-
-mem_fcomp_div:18
 
-mem_rc_cal:d3
-mem_rf_ldo_cfg1:00
-mem_syn_afc_cfg1:29
-mem_dig_aon_vsel:01	#bit5-4;00:1.2V;01:1.08V;02:0.96V;03:0.84V
 
 mem_gain_fix:ff	#00:soft agc; ff:hw agc
-mem_gain_table:88 66 44
-mem_gain_second_agc_en:00	#hw agc: 0:second agc disable
-
-mem_rx_window_sniff:00 0c
-
-mem_version:09 0e 05 04 00
-mem_seqi:7f
+mem_gain_table:08 00 00
+mem_gain_second_agc_en:08	#hw agc: 0:second agc disable
 
 
 mem_rf_init_data:
@@ -29,7 +24,7 @@
 
 
 #bit7:0 means disable rf debug function
-mem_rf_debug_rx_gpio:06
-mem_rf_debug_tx_gpio:07
+#mem_rf_debug_rx_gpio:85
+#mem_rf_debug_tx_gpio:86
 
 
Index: sched/DM_module.dat
===================================================================
--- /branch/usb/usb_public/sched/DM_module.dat	(revision 204)
+++ /branch/usb/usb_public/sched/DM_module.dat	(nonexistent)
@@ -1,244 +0,0 @@
-
-
-mem_device_option:0a
-
-mem_module_connect_state_gpio:FF
-mem_module_mcu_wake_pin:FF
-##############ADC CONFIG##############
-mem_module_read_vdd_count:01
-mem_module_read_vdd_flag:01
-#####################################
-
-##############NVRAM CONFIG##############
-mem_nv_data_ptr:mem_module_nv_data
-mem_nv_data_number:05
-#####################################
-
-
-#####################################
-
-##############UART CONFIG##############
-mem_module_uarta_baud_rate:D0 00
-mem_module_uart_rx_buffer:00 4d
-mem_module_uart_rx_buffer_end:7f 4e
-mem_module_uart_tx_buffer:80 4e
-mem_module_uart_tx_buffer_end:ef 4f
-#####################################
-
-
-
-##############BLUETOOTH CONFIG##############
-###commom###
-mem_soft_version_num:00 01
-mem_module_state:03
-mem_module_bluetooth_stauts_by_command:07
-
-mem_module_flag:00 00
-#bit0 MODULE_FLAG_UART_FLOW_CONTROL
-#bit1 MODULE_FLAG_BLE_SEND_MTU23
-#bit2 MODULE_FLAG_BLE_DATA_ENCRYPT
-
-mem_ui_button_gpio:ff
-mem_lpm_mode:00
-mem_lpm_interval:00 01
-mem_lpm_overhead:08
-mem_lpm_mult_timeout:02
-
-mem_module_wake_up_gpio:0b
-
-
-
-###ble###
-mem_le_pairing_handle:2a 00
-mem_le_configuration:08
-
-mem_le_adv_channel_map:07
-mem_le_pairing_mode:01
-
-mem_module_ble_data_uart_max_length:f0
-
-mem_le_scan_enable:00
-mem_le_scan_type:01
-mem_le_scan_interval:00 02
-mem_le_scan_window:00 01
-#mem_le_conn_peer_addr:2a 31 00 33 02 3b
-#mem_cmd_le_create_conn:1b
-
-mem_le_adv_enable:01
-mem_le_adv_interval:f0 00
-mem_module_le_lpm_mult:05
-mem_le_lap:11 fa 21 43 11 11
-mem_le_name_len:
-'Yichip 1306 le
-
-mem_le_adv_data_len:03
-mem_le_adv_data:
-02 01 0e
-
-mem_le_scan_data_len:0e
-
-mem_le_scan_data:# 1 byte length + 1 byte type + N bytes data
-'\09Yichip 1306 le
-
-mem_le_pres:02 03 00 05 10 02 03
-
-mem_le_interval_min:
-08 00 #min interval
-10 00 #max interval
-00 00 #latency
-2c 01 #timeout
-
-
-mem_le_local_mtu:20 00
-mem_le_remote_mtu:17
-mem_local_rx_max_octets:fb 00 48 08 fb 00 48 08  # 1b
-mem_le_local_feature:21 09 
-mem_le_tx_phys:0707
-#####################################
-
-
-mem_ui_le_uuid_table:mem_module_le_att_list
-
-#attribute list: handle 2bytes, uuid 2bytes, length 1bytes, attribute Nbytes
-mem_module_le_att_list:
-#Primary service GAP ------
-01 00 02 00 28 02 00 18
-
-
-#Appearance
-02 00 02 03 28 01 02
-03 00 02 01 2a 02 c8 00 #3c2=hid mouse
-
-#Device name
-04 00 02 03 28 01 02
-05 00 02 00 2a 14 41 73 74 20 4c 45 20 4d 6f 75 73 65 20 20 20 20 20 20 20 20
-
-
-#Peripheral Preferred Connection Parameters
-06 00 02 03 28 01 02
-07 00 02 04 2a 08 06 00 06 00 64 00 2c 01 # interval 6ms, latency 100, timeout 300
-
-
-#privcy flag
-08 00 02 03 28 01 02
-09 00 02 02 2a 01 01
-
-#reconnecting addr 
-0a 00 02 03 28 01 08
-0b 00 02 03 2a 06 00 00 00 00 00 00
-
-#Primary service GATT ------
-0c 00 02 00 28 02 01 18
-
-#Service changed
-0d 00 02 03 28 01 20
-0e 00 02 05 2a 00
-#Client Characteristic Configuration
-0f 00 02 02 29 02 00 00
-
-#Primary service TX power ------
-10 00 02 00 28 02 04 18
-#Characteristic Tx power level
-11 00 02 03 28 01 16
-12 00 02 07 2a 01 00
-13 00 02 02 29 02 00 00
-
-#Primary service Battery ------
-14 00 02 00 28 02 0f 18
-#Characteristic Battery level
-15 00 02 03 28 01 12
-16 00 02 19 2a 01 38
-
-#Primary service device infomation
-17 00 02 00 28 02 0a 18
-#Characteristic system id
-18 00 02 03 28 01 02
-19 00 02 23 2a 03 00 00 00
-
-#Characteristic manufactor name
-1a 00 02 03 28 01 02
-1b 00 02 29 2a 06 79 69 63 68 69 70
-
-#Characteristic module number
-1c 00 02 03 28 01 02
-1d 00 02 24 2a 06 79 69 63 68 69 70
-
-#Characteristic serial number
-1e 00 02 03 28 01 02
-1f 00 02 25 2a 04 63 6f 6d 33
-
-#Characteristic firmware version
-20 00 02 03 28 01 02
-21 00 02 26 2a 03 31 2e 30
-
-#Characteristic software version
-22 00 02 03 28 01 02
-23 00 02 28 2a 03 31 2e 30
-
-#Characteristic hardware version
-24 00 02 03 28 01 02
-25 00 02 2a 2a 03 31 2e 30
-
-#Characteristic regulatory version
-26 00 02 03 28 01 02
-27 00 02 25 2a 04 63 6f 6d 33
-
-#Primary service yichip transmit ------
-28 00 02 00 28 10 55 e4 05 d2 af 9f a9 8f e5 4a 7d fe 43 53 53 49
-#Characteristic tx--notify read
-29 00 02 03 28 01 12
-2a 00 10 16 96 24 47 C6 23 61 BA D9 4B 4D 1E 43 53 53 49 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-#Client Characteristic Configuration
-2b 00 02 02 29 02 00 00
-
-#Characteristic rx--write
-2c 00 02 03 28 01 08
-2d 00 10 b3 9b 72 34 be ec d4 a8 f4 43 41 88 43 53 53 49 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-
-#Characteristic rx-- write without Response
-2e 00 02 03 28 01 04
-2f 00 10 fe 69 ca 9a 56 19 f6 ab 02 4d aa 6d 43 53 53 49 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-
-#Characteristic rx tx --read write notify
-30 00 02 03 28 01 2a
-31 0010 18 03 A6 28 5E D8 EC 91 1C 48 A3 AC 43 53 53 49 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-#Client Characteristic Configuration
-32 00 02 02 29 02 00 00
-
-
-#End of Attribute list
-00 00
-
-#mem_le_wechat_air_sync_ptr:mem_module_wechat_indication_handle
-#mem_module_wechat_indication_handle:35 38 
-
-#mem_module_wechat_tx_buffer_ptr:mem_wechat_tx_buffer
-#mem_module_wechat_rx_buffer_ptr:mem_wechat_rx_buffer
-
-#mem_le_adv_data_len:03
-#mem_le_adv_data:
-#02 
-#01 #GAP_ADTYPE_FLAGS
-#06 #GAP_ADTYPE_FLAGS_GENERAL |GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED
-
-#05 
-#02 #GAP_ADTYPE_16BIT_MORE
-#E7 FE 00 18
-
-#09 
-#FF #GAP_ADTYPE_MANUFACTURER_SPECIFIC
-#0e 05 #Yichip Microelectronics (Hangzhou) Co.,Ltd.
-#81 E8 2F 96 FD 64
-
-#mem_le_scan_data_len:0e
-
-#mem_le_scan_data:# 1 byte length + 1 byte type + N bytes data
-#'\09Yichip 1306 le
-
-
-
-#eeprom gpio config
-mem_eeprom_wp_gpio:06
-mem_eeprom_scl_gpio:07
-mem_eeprom_sda_gpio:08
-
Index: sched/authrom/ble_car_att_list.dat
===================================================================
--- /branch/usb/usb_public/sched/authrom/ble_car_att_list.dat	(nonexistent)
+++ /branch/usb/usb_public/sched/authrom/ble_car_att_list.dat	(working copy)
@@ -0,0 +1,204 @@
+01
+00
+02
+00
+28
+02
+01
+18
+02
+00
+02
+03
+28
+01
+20
+03
+00
+02
+05
+2a
+01
+00
+04
+00
+02
+02
+29
+02
+00
+00
+05
+00
+02
+00
+28
+02
+00
+18
+06
+00
+02
+03
+28
+01
+02
+07
+00
+02
+00
+2a
+11
+55
+43
+48
+4f
+4e
+20
+30
+31
+20
+20
+20
+20
+20
+20
+20
+20
+20
+08
+00
+02
+03
+28
+01
+02
+09
+00
+02
+01
+2a
+02
+c8
+00
+0a
+00
+02
+03
+28
+01
+02
+0b
+00
+02
+04
+2a
+08
+06
+00
+06
+00
+64
+00
+2c
+01
+0c
+00
+02
+00
+28
+02
+0a
+18
+0d
+00
+02
+03
+28
+01
+02
+0e
+00
+02
+50
+2a
+07
+02
+8a
+24
+66
+82
+01
+00
+0f
+00
+02
+00
+28
+02
+f0
+ff
+10
+00
+02
+03
+28
+01
+12
+11
+00
+02
+f1
+ff
+0e
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+12
+00
+02
+02
+29
+02
+00
+00
+13
+00
+02
+03
+28
+01
+08
+14
+00
+02
+f2
+ff
+0e
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
\ No newline at end of file
Index: sched/authrom/ble_shutter_gatt_list.dat
===================================================================
--- /branch/usb/usb_public/sched/authrom/ble_shutter_gatt_list.dat	(nonexistent)
+++ /branch/usb/usb_public/sched/authrom/ble_shutter_gatt_list.dat	(working copy)
@@ -0,0 +1,313 @@
+01
+00
+02
+00
+28
+02
+01
+18
+02
+00
+02
+03
+28
+01
+20
+03
+00
+02
+05
+2a
+01
+00
+04
+00
+02
+02
+29
+02
+00
+00
+05
+00
+02
+00
+28
+02
+00
+18
+06
+00
+02
+03
+28
+01
+02
+07
+00
+02
+00
+2a
+13
+43
+68
+69
+70
+73
+65
+61
+2d
+42
+4c
+45
+20
+20
+20
+20
+20
+20
+20
+20
+08
+00
+02
+03
+28
+01
+02
+09
+00
+02
+01
+2a
+02
+c1
+03
+0a
+00
+02
+03
+28
+01
+02
+0b
+00
+02
+04
+2a
+08
+06
+00
+06
+00
+64
+00
+2c
+01
+0c
+00
+02
+00
+28
+02
+0a
+18
+0d
+00
+02
+03
+28
+01
+02
+0e
+00
+02
+50
+2a
+07
+02
+8a
+24
+66
+82
+01
+00
+0f
+00
+02
+00
+28
+02
+12
+18
+10
+00
+02
+03
+28
+01
+06
+11
+00
+02
+4e
+2a
+01
+01
+12
+00
+02
+03
+28
+01
+12
+13
+00
+02
+4d
+2a
+02
+00
+00
+14
+00
+02
+02
+29
+02
+00
+00
+15
+00
+02
+08
+29
+02
+02
+01
+16
+00
+02
+03
+28
+01
+12
+17
+00
+02
+4d
+2a
+02
+00
+00
+18
+00
+02
+02
+29
+02
+00
+00
+19
+00
+02
+08
+29
+02
+03
+01
+1a
+00
+02
+03
+28
+01
+02
+1b
+00
+02
+4b
+2a
+1b
+05
+0c
+09
+01
+a1
+01
+85
+02
+09
+e9
+09
+ea
+09
+e2
+09
+30
+15
+01
+25
+0c
+75
+10
+95
+01
+81
+00
+c0
+1c
+00
+02
+03
+28
+01
+02
+1d
+00
+02
+4a
+2a
+04
+11
+01
+00
+01
+1e
+00
+02
+03
+28
+01
+04
+1f
+00
+02
+4c
+2a
+01
+00
+20
+00
+02
+00
+28
+02
+0f
+18
+21
+00
+02
+03
+28
+01
+12
+22
+00
+02
+19
+2a
+01
+63
+00
+00
\ No newline at end of file
Index: sched/authrom/ble_shutter_key_value_list.dat
===================================================================
--- /branch/usb/usb_public/sched/authrom/ble_shutter_key_value_list.dat	(nonexistent)
+++ /branch/usb/usb_public/sched/authrom/ble_shutter_key_value_list.dat	(working copy)
@@ -0,0 +1,40 @@
+02
+13
+00
+02
+00
+02
+13
+00
+01
+00
+02
+13
+00
+04
+00
+02
+13
+00
+06
+00
+02
+13
+00
+05
+00
+02
+13
+00
+00
+00
+02
+17
+00
+00
+28
+02
+17
+00
+00
+00
Index: sched/authrom/mouse_ble_att_list.dat
===================================================================
--- /branch/usb/usb_public/sched/authrom/mouse_ble_att_list.dat	(nonexistent)
+++ /branch/usb/usb_public/sched/authrom/mouse_ble_att_list.dat	(working copy)
@@ -0,0 +1,626 @@
+01
+00
+02
+00
+28
+02
+00
+18
+02
+00
+02
+03
+28
+01
+0a
+03
+00
+02
+00
+2a
+14
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+00
+02
+03
+28
+01
+02
+05
+00
+02
+01
+2a
+02
+c2
+03
+06
+00
+02
+03
+28
+01
+02
+07
+00
+02
+04
+2a
+08
+06
+00
+06
+00
+64
+00
+2c
+01
+08
+00
+02
+00
+28
+02
+01
+18
+09
+00
+02
+03
+28
+01
+20
+0a
+00
+02
+05
+2a
+00
+0b
+00
+02
+02
+29
+02
+00
+00
+0c
+00
+02
+00
+28
+02
+0a
+18
+0d
+00
+02
+03
+28
+01
+02
+0e
+00
+02
+29
+2a
+06
+59
+69
+43
+68
+69
+70
+0f
+00
+02
+03
+28
+01
+02
+10
+00
+02
+50
+2a
+07
+02
+35
+12
+22
+aa
+01
+00
+11
+00
+02
+00
+28
+02
+12
+18
+12
+00
+02
+03
+28
+01
+06
+13
+00
+02
+4e
+2a
+01
+01
+14
+00
+02
+03
+28
+01
+12
+15
+00
+02
+4d
+2a
+08
+00
+00
+00
+00
+00
+00
+00
+00
+16
+00
+02
+02
+29
+02
+00
+00
+17
+00
+02
+08
+29
+02
+02
+01
+18
+00
+02
+03
+28
+01
+1a
+19
+00
+02
+4d
+2a
+07
+00
+00
+00
+00
+00
+00
+00
+1a
+00
+02
+02
+29
+02
+00
+00
+1b
+00
+02
+08
+29
+02
+01
+01
+1c
+00
+02
+03
+28
+01
+12
+1d
+00
+02
+4d
+2a
+02
+00
+00
+1e
+00
+02
+02
+29
+02
+00
+00
+1f
+00
+02
+08
+29
+02
+03
+01
+20
+00
+02
+03
+28
+01
+12
+21
+00
+02
+4d
+2a
+02
+00
+00
+22
+00
+02
+02
+29
+02
+00
+00
+23
+00
+02
+08
+29
+02
+04
+01
+24
+00
+02
+03
+28
+01
+0e
+25
+00
+02
+4d
+2a
+02
+00
+00
+26
+00
+02
+08
+29
+02
+02
+02
+27
+00
+02
+03
+28
+01
+02
+28
+00
+02
+4b
+2a
+bd
+05
+01
+09
+02
+a1
+01
+85
+01
+09
+01
+a1
+00
+05
+09
+19
+01
+29
+08
+15
+00
+25
+01
+75
+01
+95
+08
+81
+02
+05
+01
+09
+30
+09
+31
+16
+01
+f8
+26
+ff
+07
+75
+10
+95
+02
+81
+06
+09
+38
+15
+81
+25
+7f
+75
+08
+95
+01
+81
+06
+05
+0c
+0a
+38
+02
+95
+01
+81
+06
+c0
+c0
+05
+01
+09
+06
+a1
+01
+85
+02
+75
+01
+95
+08
+05
+07
+19
+e0
+29
+e7
+15
+00
+25
+01
+81
+02
+95
+01
+75
+08
+81
+03
+95
+05
+75
+01
+05
+08
+19
+01
+29
+05
+91
+02
+95
+01
+75
+03
+91
+03
+95
+06
+75
+08
+15
+00
+26
+ff
+00
+05
+07
+19
+00
+29
+ff
+81
+00
+c0
+05
+0c
+09
+01
+a1
+01
+85
+03
+19
+00
+2a
+ff
+03
+15
+00
+26
+ff
+03
+95
+01
+75
+10
+81
+00
+c0
+05
+01
+09
+80
+A1
+01
+85
+04
+15
+00
+25
+01
+75
+01
+95
+03
+19
+81
+29
+83
+81
+02
+95
+01
+75
+05
+81
+03
+C0
+29
+00
+02
+03
+28
+01
+1a
+2a
+00
+02
+33
+2a
+08
+00
+00
+00
+00
+00
+00
+00
+00
+2b
+00
+02
+02
+29
+02
+01
+00
+2c
+00
+02
+03
+28
+01
+02
+2d
+00
+02
+4a
+2a
+04
+01
+01
+00
+03
+2e
+00
+02
+00
+28
+02
+0f
+18
+2f
+00
+02
+03
+28
+01
+12
+30
+00
+02
+19
+2a
+01
+64
+31
+00
+02
+02
+29
+02
+00
+00
+32
+00
+02
+03
+28
+01
+04
+33
+00
+02
+4c
+2a
+00
+00
+00
Index: sched/authrom/usb_confdata.dat
===================================================================
--- /branch/usb/usb_public/sched/authrom/usb_confdata.dat	(nonexistent)
+++ /branch/usb/usb_public/sched/authrom/usb_confdata.dat	(working copy)
@@ -0,0 +1,60 @@
+3b
+09
+02
+3b
+00
+02
+01
+00
+a0
+32
+09
+04
+00
+00
+01
+03
+01
+01
+00
+09
+21
+00
+02
+00
+01
+22
+1a
+00
+07
+05
+81
+03
+40
+00
+02
+09
+04
+01
+00
+01
+03
+01
+02
+00
+09
+21
+00
+02
+00
+01
+22
+a3
+00
+07
+05
+82
+03
+40
+00
+02
\ No newline at end of file
Index: sched/authrom/usb_devicedata.dat
===================================================================
--- /branch/usb/usb_public/sched/authrom/usb_devicedata.dat	(nonexistent)
+++ /branch/usb/usb_public/sched/authrom/usb_devicedata.dat	(working copy)
@@ -0,0 +1,19 @@
+12
+12
+01
+00
+02
+00
+00
+00
+40
+51
+31
+20
+10
+02
+00
+01
+02
+00
+01
\ No newline at end of file
Index: sched/authrom/usb_kbdata.dat
===================================================================
--- /branch/usb/usb_public/sched/authrom/usb_kbdata.dat	(nonexistent)
+++ /branch/usb/usb_public/sched/authrom/usb_kbdata.dat	(working copy)
@@ -0,0 +1,64 @@
+3f
+05
+01
+09
+06
+a1
+01
+75
+01 
+95
+08
+05
+07
+19
+e0 
+29
+e7
+15
+00
+25
+01
+81
+02
+95
+01 
+75
+08
+81
+03
+95
+05
+75
+01
+05
+08
+19
+01
+29
+05  
+91
+02 
+95
+01  
+75
+03  
+91
+03
+95
+06 
+75
+08 
+15
+00 
+25
+ff
+05
+07
+19
+00
+29
+ff 
+81
+00
+c0
Index: sched/authrom/usb_kbdata_vendor_define.dat
===================================================================
--- /branch/usb/usb_public/sched/authrom/usb_kbdata_vendor_define.dat	(nonexistent)
+++ /branch/usb/usb_public/sched/authrom/usb_kbdata_vendor_define.dat	(working copy)
@@ -0,0 +1,27 @@
+1a
+06
+bc
+ff
+09
+88
+a1
+01
+85
+04
+19
+00
+2a
+ff
+00
+15
+00
+26
+ff
+00
+75
+08
+95
+01
+81
+00
+c0
\ No newline at end of file
Index: sched/authrom/usb_msdata.dat
===================================================================
--- /branch/usb/usb_public/sched/authrom/usb_msdata.dat	(nonexistent)
+++ /branch/usb/usb_public/sched/authrom/usb_msdata.dat	(working copy)
@@ -0,0 +1,164 @@
+a3
+05
+01
+09
+02
+a1
+01
+85
+01
+09
+01
+a1
+00
+05
+09
+19
+01
+29
+05
+15
+00
+25
+01
+95
+05
+75
+01
+81
+02
+95
+01
+75
+03
+81
+01
+05
+01
+09
+30
+09
+31
+16
+01
+F8
+26
+FF
+07
+75
+10
+95
+02
+81
+06
+09
+38
+15
+81
+25
+7f
+75
+08
+95
+01
+81
+06
+05
+0c
+0a
+38
+02
+95
+01
+81
+06
+c0
+c0
+05
+01
+09
+80
+a1
+01
+85
+02
+05
+01
+19
+81
+29
+88
+15
+00
+25
+01
+95
+08
+75
+01
+81
+06
+c0
+05
+0c
+09
+01
+a1
+01
+85
+03
+15
+00
+26
+80
+03
+19
+00
+2a
+80
+03
+75
+10
+95
+01
+81
+00
+c0
+06
+00
+ff
+09
+0e
+a1
+01
+85
+BA
+95
+1f
+75
+08
+26
+ff
+00
+15
+00
+09
+01
+91
+02
+85
+BA
+95
+1f
+75
+08
+26
+ff
+00
+15
+00
+09
+01
+81
+02
+C0
\ No newline at end of file
Index: sched/ble_car_att_list.dat
===================================================================
--- /branch/usb/usb_public/sched/ble_car_att_list.dat	(revision 204)
+++ /branch/usb/usb_public/sched/ble_car_att_list.dat	(nonexistent)
@@ -1,204 +0,0 @@
-01
-00
-02
-00
-28
-02
-01
-18
-02
-00
-02
-03
-28
-01
-20
-03
-00
-02
-05
-2a
-01
-00
-04
-00
-02
-02
-29
-02
-00
-00
-05
-00
-02
-00
-28
-02
-00
-18
-06
-00
-02
-03
-28
-01
-02
-07
-00
-02
-00
-2a
-11
-55
-43
-48
-4f
-4e
-20
-30
-31
-20
-20
-20
-20
-20
-20
-20
-20
-20
-08
-00
-02
-03
-28
-01
-02
-09
-00
-02
-01
-2a
-02
-c8
-00
-0a
-00
-02
-03
-28
-01
-02
-0b
-00
-02
-04
-2a
-08
-06
-00
-06
-00
-64
-00
-2c
-01
-0c
-00
-02
-00
-28
-02
-0a
-18
-0d
-00
-02
-03
-28
-01
-02
-0e
-00
-02
-50
-2a
-07
-02
-8a
-24
-66
-82
-01
-00
-0f
-00
-02
-00
-28
-02
-f0
-ff
-10
-00
-02
-03
-28
-01
-12
-11
-00
-02
-f1
-ff
-0e
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-12
-00
-02
-02
-29
-02
-00
-00
-13
-00
-02
-03
-28
-01
-08
-14
-00
-02
-f2
-ff
-0e
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
\ No newline at end of file
Index: sched/ble_shutter_gatt_list.dat
===================================================================
--- /branch/usb/usb_public/sched/ble_shutter_gatt_list.dat	(revision 204)
+++ /branch/usb/usb_public/sched/ble_shutter_gatt_list.dat	(nonexistent)
@@ -1,313 +0,0 @@
-01
-00
-02
-00
-28
-02
-01
-18
-02
-00
-02
-03
-28
-01
-20
-03
-00
-02
-05
-2a
-01
-00
-04
-00
-02
-02
-29
-02
-00
-00
-05
-00
-02
-00
-28
-02
-00
-18
-06
-00
-02
-03
-28
-01
-02
-07
-00
-02
-00
-2a
-13
-43
-68
-69
-70
-73
-65
-61
-2d
-42
-4c
-45
-20
-20
-20
-20
-20
-20
-20
-20
-08
-00
-02
-03
-28
-01
-02
-09
-00
-02
-01
-2a
-02
-c1
-03
-0a
-00
-02
-03
-28
-01
-02
-0b
-00
-02
-04
-2a
-08
-06
-00
-06
-00
-64
-00
-2c
-01
-0c
-00
-02
-00
-28
-02
-0a
-18
-0d
-00
-02
-03
-28
-01
-02
-0e
-00
-02
-50
-2a
-07
-02
-8a
-24
-66
-82
-01
-00
-0f
-00
-02
-00
-28
-02
-12
-18
-10
-00
-02
-03
-28
-01
-06
-11
-00
-02
-4e
-2a
-01
-01
-12
-00
-02
-03
-28
-01
-12
-13
-00
-02
-4d
-2a
-02
-00
-00
-14
-00
-02
-02
-29
-02
-00
-00
-15
-00
-02
-08
-29
-02
-02
-01
-16
-00
-02
-03
-28
-01
-12
-17
-00
-02
-4d
-2a
-02
-00
-00
-18
-00
-02
-02
-29
-02
-00
-00
-19
-00
-02
-08
-29
-02
-03
-01
-1a
-00
-02
-03
-28
-01
-02
-1b
-00
-02
-4b
-2a
-1b
-05
-0c
-09
-01
-a1
-01
-85
-02
-09
-e9
-09
-ea
-09
-e2
-09
-30
-15
-01
-25
-0c
-75
-10
-95
-01
-81
-00
-c0
-1c
-00
-02
-03
-28
-01
-02
-1d
-00
-02
-4a
-2a
-04
-11
-01
-00
-01
-1e
-00
-02
-03
-28
-01
-04
-1f
-00
-02
-4c
-2a
-01
-00
-20
-00
-02
-00
-28
-02
-0f
-18
-21
-00
-02
-03
-28
-01
-12
-22
-00
-02
-19
-2a
-01
-63
-00
-00
\ No newline at end of file
Index: sched/ble_shutter_key_value_list.dat
===================================================================
--- /branch/usb/usb_public/sched/ble_shutter_key_value_list.dat	(revision 204)
+++ /branch/usb/usb_public/sched/ble_shutter_key_value_list.dat	(nonexistent)
@@ -1,40 +0,0 @@
-02
-13
-00
-02
-00
-02
-13
-00
-01
-00
-02
-13
-00
-04
-00
-02
-13
-00
-06
-00
-02
-13
-00
-05
-00
-02
-13
-00
-00
-00
-02
-17
-00
-00
-28
-02
-17
-00
-00
-00
Index: sched/car.dat
===================================================================
--- /branch/usb/usb_public/sched/car.dat	(revision 204)
+++ /branch/usb/usb_public/sched/car.dat	(nonexistent)
@@ -1,234 +0,0 @@
-mem_device_option:0e
-mem_le_adv_channel_map:07 
-mem_le_adv_enable:00
-
-
-mem_spi_ncs_gpio:ff
-
-mem_le_pres_auth:01
-mem_le_local_mtu:17
-mem_le_adv_interval:60 01 
-mem_local_rx_max_octets:fb 00 48 08 fb 00 48 08  # 1b
-
-
-mem_le_lap:34 75 07 99 07 2b
-mem_le_name_len:
-'YC-CAR-34
-
-mem_le_adv_data_len:1f
-mem_le_adv_data:
-17 09 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 02 01 05 03 02 ff f0
-
-mem_le_scan_data_len:1f
-mem_le_scan_data:
-1e 09 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
-
-
-mem_le_interval_min:
-18 00 #min interval
-20 00 #max interval
-10 00 #latency
-2c 01 #timeout
-
-
-#mem_ui_le_uuid_table:21 95  #0x9E62 BLE_CAR_ATT_LIST
-mem_ui_le_uuid_table:mem_ble_att_list
-
-
-mem_ble_att_list:
-#Primary service GAP ------
-01 00 02 00 28 02 00 18
-#Device name
-02 00 02 03 28 01 0a
-03 00 02 00 2a
-'CAR-BLE-OTA
-
-#Appearance
-04 00 02 03 28 01 02
-05 00 02 01 2a 02 40 14
-#Peripheral Preferred Connection Parameters
-06 00 02 03 28 01 02
-07 00 02 04 2a 08 08 00 20 00 10 00 58 02 # interval 6ms, latency 100, timeout 600
-
-#Primary service device information ------
-08 00 02 00 28 02 0a 18
-
-#Manufacturer Name
-09 00 02 03 28 01 02
-0a 00 02 29 2a 06 59 69 43 68 69 70
-
-#Model Number
-0b 00 02 03 28 01 02
-0c 00 02 24 2a 04 4c 52 32 31
-
-#Software Revision
-0d 00 02 03 28 01 02
-0e 00 02 28 2a 04 56 2e 30 31
-
-#Hardware Revision
-0f 00 02 03 28 01 02
-10 00 02 27 2a 04 56 2e 30 31
-
-#PNP id
-11 00 02 03 28 01 02
-12 00 02 50 2a 07 02 35 12 22 aa 51 31
-
-#Client Characteristic
-13 00 02 02 29 02 00 00
-
-#Primary service yichip transmit ------
-14 00 02 00 28 02 f0 ff
-
-15 00 02 03 28 01 12
-16 00 02 f1 ff 08 00 00 00 00 00 00 00 00
-17 00 02 02 29 02 00 00
-
-18 00 02 03 28 01 08
-19 00 02 f2 ff 08 00 00 00 00 00 00 00 00
-00 00    
-
-##############BLE ATT LIST END####################
-
-mem_lpm_mode:00
-mem_lpm_overhead:06
-mem_lpm_mult_timeout:02
-mem_car_hard_soft_switch:00
-
-mem_power_param_ptr:mem_car_soft_power
-mem_car_power_off_timeout:0c 0c
-
-mem_ui_button_gpio:ff
-mem_ui_button_timeout:14
-mem_ui_button_last_state:01
-
-
-mem_ui_led_struct_ptr:mem_car_style1_led_type
-mem_ui_led_struct_num:01
-
-#style:01
-mem_car_style1_blink_count:ff
-mem_car_style1_struct_led_gpio:05
-mem_car_style1_on_time:20 03
-mem_car_style1_off_time:20 03
-
-#style:02
-mem_car_style2_blink_count:ff
-mem_car_style2_struct_led_gpio:ff
-mem_car_style2_on_time:20 03
-mem_car_style2_off_time:20 03
-
-mem_car_led_num:01
-mem_car_led_map:
-05
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-
-mem_car_config_blood_led1_gpio:ff
-mem_car_config_pairing_led_gpio:ff
-mem_car_config_low_voltage_led_gpio:ff
-
-mem_keyscan_ptr:mem_car_keyscan
-mem_car_key_num:00
-
-
-mem_car_queue_each_size:14 06
-
-mem_queue_ptr:mem_car_queue_each_size
-
-mem_car_config_pairing_led_conn_status:00
-mem_car_config_soft_switch_enable:00
-mem_car_config_pairing_led_gpio:ff
-mem_car_config_low_voltage_led_gpio:ff
-mem_car_config_soft_switch_gpio:ff
-mem_car_config_low_voltage_percent:14
-mem_car_config_bat_notify_enable:01
-mem_car_config_device_select:03
-mem_car_config_ir_enable:00
-mem_car_config_motor_layout:03
-mem_car_config_ir_rx_gpio:ff
-mem_car_config_led_num:ff
-mem_car_config_blood_led_gpio:ff 09 0a 0b 0c 0d 0e 0f
-
-
-mem_motor1_speed:04
-mem_motor2_speed:04
-mem_motor3_speed:09
-mem_motor1_pwm_set:ff ff 00 05 e8 03 00 00
-mem_motor2_pwm_set:ff ff 00 04 e8 03 00 00
-mem_motor3_pwm_set:ff ff 00 03 e8 03 00 00
-mem_motor_pwm_pin1_set:ff ff 00 02 e8 03 00 00
-
-
-mem_car_notify_vdd_count:14
-mem_notify_bat_packet:07 11 00 5a 6b 01 00 01 00 00
-
-mem_vdd_calculate_set:e0 01 90 01 9a 01 00 00	#full_vol;	empty_vol;	low_vol;	now_vol
-
-mem_ir_notify_data:08 11 00 5a 6b 06 00 02 00 00 00
-
-mem_adc_config_flag:01
-
-mem_car_info_request:0e 11 00 5a 6b 08 00 08 00 00 00 00 00 00 00 00 00
-
-mem_car_led_control_timer:05
-
-
-#mem_car_led_control:01 01 01 01 01 01 01 01
-
-mem_car_motor_gpio_num:04
-mem_car_motor_gpio_map:
-00		#left	INC
-01		#right	IND
-02 		#front	INA
-09		#back	INB
-
-#eeprom config
-mem_eeprom_base:80 1f
-mem_eeprom_wp_gpio:06
-mem_eeprom_scl_gpio:07
-mem_eeprom_sda_gpio:08
-
-
-
-
-#rf config
-mem_24g_data_type:01        #mouse 1,kb 2
-mem_24g_lap:38 74 2f 74 07 2b#low 4B used for 24g rxaddr
-mem_tx_power:03	#3dBm
-mem_24g_tx_phy:84#0x01:1M/0x02:2M/0x04:S2/0x84:S8
-mem_24g_rx_phy:84#0x01:1M/0x02:2M/0x04:S2/0x84:S8
-mem_24g_no_ack:00#no ack
-mem_24g_rx_window:60 ea#rx
-mem_24g_hop_interval:1e
-mem_24g_ackpayload_enable:00#ack payload enable
-mem_24g_ch_map1:00 13 2c 42
-mem_24g_ch_map2:06 15 36 48
-mem_24g_ch_map3:0f 1a 3a 4c
-mem_24g_ch_map4:11 23 31 4d
-mem_24g_pair_switch:01
-mem_24g_pair_mode:00
-mem_24g_pair_ch:4e
-mem_24g_pair_tx_power:85 #-5dBm
-mem_24g_pair_addr:56 34 02 01
-mem_24g_enter_hibernate:00 48 60#200ms
-mem_rssi_buff_index:07
-mem_rssi_noise_buffer_ptr:mem_car_rssi_noise_buffer
-mem_rssi_noise_self_buffer_ptr:mem_car_rssi_noise_car_buffer
-mem_rssi_noise_device1_buffer_ptr:mem_car_rssi_noise_remote_buffer
-
-#24g rx init end
-
-mem_car_24g_bind_enable_delay_count:0a#500ms
-mem_car_24g_no_data_timeout_count:64 00#10s
-mem_car_enter_lpm_timer_count:b8 0b#5min
-
-mem_car_save_addr_flag:00
-
-
Index: sched/dongle.dat
===================================================================
--- /branch/usb/usb_public/sched/dongle.dat	(revision 204)
+++ /branch/usb/usb_public/sched/dongle.dat	(working copy)
@@ -2,21 +2,18 @@
 mem_device_option:04
 mem_ui_button_gpio:ff
 
-
-#efuse size:28 bytes
-
 #sys config
 #bit7:enable 16M xtal#0:24M#1:16M
 #bit6:enable new channel map
 #bit5:enable eeprom
 #bit4:enable kb icon
 #bit3:enable 24g 2M
-#bit2-0:retention
-mem_dg_sys_config:00  #24M
+#bit2-1:padding
+#bit0:enable new revision
+mem_dg_sys_config:01  #24M
 
-#24g new process #default value 00,if need new process set value 01
-#mem_24g_disable_fec1:00
-mem_dg_24g_tx_power_default:06	#6dBm
+#work mode rf tx power
+mem_dg_24g_tx_power_default:0a	#10dBm
 
 #usb config
 #mem_dg_usb_vid_pid:
@@ -61,7 +58,9 @@
 #mem_rssi_noise_device1_buffer_ptr:mem_dg_rssi_noise_ms_buffer
 #mem_rssi_noise_device2_buffer_ptr:mem_dg_rssi_noise_kb_buffer
 
-mem_load_check_sum:5a
+#mem_load_check_sum:5a
+mem_wdt_always_work:01
+
 
 
 
Index: sched/ff.dat
===================================================================
--- /branch/usb/usb_public/sched/ff.dat	(revision 204)
+++ /branch/usb/usb_public/sched/ff.dat	(nonexistent)
@@ -1,88 +0,0 @@
-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
Index: sched/fpga.dat
===================================================================
--- /branch/usb/usb_public/sched/fpga.dat	(revision 204)
+++ /branch/usb/usb_public/sched/fpga.dat	(nonexistent)
@@ -1,28 +0,0 @@
-mem_xtal_freq:18
-mem_le_adv_enable:01
-
-mem_rx_window_sniff:00 0e
-
-mem_version:08 0e 05 03 00
-
-mem_le_lap:11 22 33
-mem_le_adv_data_len:03
-mem_le_adv_data:
-02 01 0e
-
-mem_le_scan_data_len:0a
-mem_le_scan_data:
-'\09FPGA1306
-
-mem_le_adv_interval:20 00
-mem_le_scan_window:20 00
-mem_le_scan_type:01
-mem_le_adv_own_addr_type:01
-mem_le_adv_channel_map:07
-
-mem_device_option:05
-
-mem_rf_init_data:
-ff
-mem_rf_init_ptr:mem_rf_init_data
-
Index: sched/gatt.dat
===================================================================
--- /branch/usb/usb_public/sched/gatt.dat	(revision 204)
+++ /branch/usb/usb_public/sched/gatt.dat	(nonexistent)
@@ -1,85 +0,0 @@
-
-#attribute list: handle 2bytes, uuid 2bytes, length 1bytes, attribute Nbytes
-mem_le_att_list:
-
-#Primary service GAP ------
-01 00 00 28 02 00 18
-
-#Device name
-02 00 03 28 01 0a
-03 00 00 2a 0c 41 73 74 20 4c 45 20 4d 6f 75 73 65
-
-#Appearance
-04 00 03 28 01 02
-05 00 01 2a 02 c2 03 #3c2=hid mouse
-
-#Peripheral Preferred Connection Parameters
-06 00 03 28 01 02
-07 00 04 2a 08 06 00 06 00 64 00 2c 01 # interval 6ms, latency 100, timeout 300
-
-#Primary service GATT ------
-08 00 00 28 02 01 18
-
-#Service changed
-09 00 03 28 01 20
-0a 00 05 2a 00
-
-#Client Characteristic Configuration
-0b 00 02 29 02 00 00
-
-#Primary service TX power ------
-0c 00 00 28 02 04 18
-#Characteristic Tx power level
-0d 00 03 28 01 06
-0e 00 07 2a 01 00
-
-
-#Primary service Battery ------
-0f 00 00 28 02 0f 18
-#Characteristic Battery level
-10 00 03 28 01 12
-11 00 19 2a 01 38
-
-#Primary service yichip transmit ------
-12 00 00 28 02 f0 18
-#Characteristic tx--notify
-13 00 03 28 01 12
-14 00 f1 2a 14	# for Android device, ATT MTU is just 23 bytes, so payload is 20 bytes max
-'Test read initial va
-#Client Characteristic Configuration
-15 00 02 29 02 00 00
-#Characteristic rx--write
-16 00 03 28 01 0c
-17 00 f0 2a 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-
-#End of Attribute list
-00 00
-
-mem_le_adv_enable:01
-mem_le_adv_data_len:03
-
-mem_le_adv_data:02 01 05
-#flags NOTE: should be included here, or Android will not do connectgatt()
-
-
-mem_le_scan_data_len:17
-
-mem_le_scan_data:	# 1 byte length + 1 byte type + N bytes data
-
-#complete local name
-0e 09 
-#'Ast LE2Serial
-'YiChip BLE2IR
-
-#16bit uuid
-03 03 00 f0
-
-#Apperance
-03 19 40 02
-
-
-mem_le_adv_interval:00 08 
-mem_le_adv_channel_map:07 
-
-mem_24g_lap:77 11 00 33 00 00
-
Index: sched/hci_boot.dat
===================================================================
--- /branch/usb/usb_public/sched/hci_boot.dat	(revision 204)
+++ /branch/usb/usb_public/sched/hci_boot.dat	(nonexistent)
@@ -1,7 +0,0 @@
-
-mem_device_option:0c
-
-mem_rf_init_data:
-ff
-mem_rf_init_ptr:mem_rf_init_data
-
Index: sched/le_prcp.dat
===================================================================
--- /branch/usb/usb_public/sched/le_prcp.dat	(revision 204)
+++ /branch/usb/usb_public/sched/le_prcp.dat	(nonexistent)
@@ -1,77 +0,0 @@
-#attribute list: handle 2bytes, uuid 2bytes, length 1bytes, attribute Nbytes
-mem_le_att_list:
-
-#Primary service GAP ------
-01 00 00 28 02 00 18
-
-#Device name
-02 00 03 28 01 0a
-03 00 00 2a 0c 41 73 74 20 4c 45 20 4d 6f 75 73 65
-
-#Appearance
-04 00 03 28 01 02
-05 00 01 2a 02 c2 03 #3c2=hid mouse
-
-#Peripheral Preferred Connection Parameters
-06 00 03 28 01 02
-07 00 04 2a 08 06 00 06 00 64 00 2c 01 # interval 6ms, latency 100, timeout 300
-
-#Primary service GATT ------
-08 00 00 28 02 01 18
-
-#Service changed
-09 00 03 28 01 20
-0a 00 05 2a 00
-
-#Client Characteristic Configuration
-0b 00 02 29 02 00 00
-
-#Primary service TX power ------
-0c 00 00 28 02 04 18
-#Characteristic Tx power level
-0d 00 03 28 01 06
-0e 00 07 2a 01 00
-
-
-#Primary service Battery ------
-0f 00 00 28 02 0f 18
-#Characteristic Battery level
-10 00 03 28 01 12
-11 00 19 2a 01 38
-
-#Primary service yichip PRCP ------
-12 00 00 28 02 f1 18
-#Characteristic device tx
-13 00 03 28 01 12
-14 00 f3 2a 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-#Client Characteristic Configuration
-15 00 02 29 02 00 00
-#Characteristic device rx
-16 00 03 28 01 0e
-17 00 f2 2a 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-#End of Attribute list
-00 00
-
-mem_le_adv_data_len:1b
-mem_le_adv_data:0c 09
-'Yichip Temp
- 03 19 40 02 02 01 05 02 0a 00 03 03 f1 18
-mem_le_scan_data_len:00
-#mem_le_adv_param:00 08 00 08 00 01 00 00 00 00 00 00 00 07 00
-mem_le_adv_enable:01
-
-
-mem_le_adv_interval:20 00 
-mem_le_adv_type:00 
-mem_le_adv_own_addr_type:01 
-mem_le_adv_direct_addr:00 00 00 00 00 00 
-mem_le_adv_channel_map:07 
-
-mem_le_notify_handle:14
-
-mem_lpm_mode:00
-#mem_lpm_ctrl:0f 0f 10 06
-mem_lpm_xtalcnt:0c 10 ca 1f
-mem_device_option:0d
-mem_le_lap:45 67 78 89 90 56
-
Index: sched/le_transmit_uuid.dat
===================================================================
--- /branch/usb/usb_public/sched/le_transmit_uuid.dat	(revision 204)
+++ /branch/usb/usb_public/sched/le_transmit_uuid.dat	(nonexistent)
@@ -1,62 +0,0 @@
-mem_device_option: 01
-
-#attribute list: handle 2bytes, uuid 2bytes, length 1bytes, attribute Nbytes
-mem_le_att_list:
-
-#Primary service GAP ------
-01 00 00 28 02 00 18
-
-#Device name
-02 00 03 28 01 0a
-03 00 00 2a 0c 41 73 74 20 4c 45 20 4d 6f 75 73 65
-
-#Appearance
-04 00 03 28 01 02
-05 00 01 2a 02 c2 03 #3c2=hid mouse
-
-#Peripheral Preferred Connection Parameters
-06 00 03 28 01 02
-07 00 04 2a 08 06 00 06 00 64 00 2c 01 # interval 6ms, latency 100, timeout 300
-
-#Primary service GATT ------
-08 00 00 28 02 01 18
-
-#Service changed
-09 00 03 28 01 20
-0a 00 05 2a 00
-
-#Client Characteristic Configuration
-0b 00 02 29 02 00 00
-
-#Primary service TX power ------
-0c 00 00 28 02 04 18
-#Characteristic Tx power level
-0d 00 03 28 01 06
-0e 00 07 2a 01 00
-
-
-#Primary service Battery ------
-0f 00 00 28 02 0f 18
-#Characteristic Battery level
-10 00 03 28 01 12
-11 00 19 2a 01 38
-
-#Primary service yichip transmit ------
-12 00 00 28 02 f0 18
-#Characteristic tx--notify
-13 00 03 28 01 12
-14 00 f1 2a 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-#Client Characteristic Configuration
-15 00 02 29 02 00 00
-#Characteristic rx--write
-16 00 03 28 01 0c
-17 00 f0 2a 17 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-
-#End of Attribute list
-00 00
-
-mem_le_adv_data_len:1b
-mem_le_adv_data:0c 09 52 74 72 69 76 72 5f 52 36 32 31 03 19 40 02 02 01 05 02 0a 00 03 03 00 f0
-mem_le_scan_data_len:00
-mem_le_adv_param:00 08 00 08 00 01 00 00 00 00 00 00 00 07 00
-mem_le_adv_enable:01
Index: sched/mouse.dat
===================================================================
--- /branch/usb/usb_public/sched/mouse.dat	(revision 204)
+++ /branch/usb/usb_public/sched/mouse.dat	(nonexistent)
@@ -1,354 +0,0 @@
-mem_mouse_flag:
-#mouse flag byte1
-#bit0 MOUSE_SELECT_DEVICE_FLAG
-#bit1 MOUSE_24G_PAIRING_FLAG
-#bit2 MOUSE_STORE_EEPROM_FLAG
-#bit3 MOUSE_BT_CANNEL_RECONN_FLAG
-#bit4 MOUSE_LOW_VOLTAGE_FLAG
-#bit5 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
-#bit6 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
-04
-
-#mouse flag byte2
-#bit0 MOUSE_ENABLE_BLE_RANDOM_ADDRE
-#bit1 MOUSE_ENABLE_2K_EEPROM
-#bit2 MOUSE_ENABLE_INIT_DELAY
-#bit3 MOUSE_ENABLE_WAKEUP_FROM_POWER
-#bit4 MOUSE_ENABLE_16M
-#bit5 MOUSE_ENABLE_USB
-09
-
-#mouse flag byte3
-#bit0 MOUSE_ENABLE_SPI2
-#bit1 MOUSE_ENABLE_24G
-#bit2 MOUSE_ENABLE_FLASH
-#bit3 MOUSE_ENABLE_EEPROM
-#bit4 MOUSE_ENABLE_ADC
-#bit5 MOUSE_ENABLE_KEYBOARD
-#bit6 MOUSE_ENABLE_24G_SEARCH_DONGLE
-4a
-
-#mouse flag byte4
-#bit0 MOUSE_ENABLE_24G_250Hz
-#bit1 MOUSE_ENABLE_24G_500Hz
-#bit2 MOUSE_ENABLE_24G_1000
-#bit3 MOUSE_ENABLE_BT_125Hz
-#bit4 MOUSE_ENABLE_DPI_LEVEL_4
-#bit5 MOUSE_ENABLE_USB_250
-#bit6 MOUSE_ENABLE_USB_500
-#bit7 MOUSE_ENABLE_USB_1000
-00
-
-#mouse flag byte5
-#bit0 MOUSE_ENABLE_POWER_ON_LED
-#bit1 MOUSE_ENABLE_LOW_VOLTAGE_LED
-#bit2 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED
-#bit3 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND
-#bit4 MOUSE_ENABLE_4_LED
-#bit5 MOUSE_ENABLE_DPI_FOR_4_LED
-#bit6 MOUSE_ENABLE_BT2_FOR_4_LED
-#bit7 MOUSE_ENABLE_LOW_V_FOR_4_LED
-01
-
-#mouse flag byte6 
-#bit0 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
-#bit1 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON
-#bit2 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO
-#bit3 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC
-#bit4 MOUSE_ENABLE_DPI_KEY_CONNECT_GND
-#bit5 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
-#bit6 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
-#bit7 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING
-80
-
-#mouse flag byte7
-#bit0 MOUSE_ENABLE_AUTO_24G_PARING
-#bit1 MOUSE_ENABLE_24G_POWER_ON_PAIRING
-#bit2 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
-#bit3 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY
-#bit4 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
-#bit5 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
-#bit6 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
-#bit7 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY
-03
-
-#mouse flag byte8
-#bit0 MOUSE_ENABLE_SMOOTHER
-#bit1 MOUSE_ENABLE_XY_OFFSET
-#bit2 MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED
-#bit3 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
-#bit4 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
-#bit5 MOUSE_ENABLE_24G_2M_PHY
-03
-
-#bit6-7:custom_key_set:00--win+d     01--ctrl+alt+a    02--ie home    03--play
-#bit5:MOUSE_ENABLE_KEYBOARD				1--enable  0--disable
-#bit4:MOUSE_ENABLE_DPI_LEVEL_4				1--4level   0--3level
-#bit3:MOUSE_ENABLE_16M						1--16M     0--24M
-#bit2:MOUSE_ENABLE_24G_250Hz   				1--250Hz   0--125Hz
-#bit1:MOUSE_ENABLE_24G_SEARCH_DONGLE    	1--enable  0--disable
-#bit0:MOUSE_ENABLE_ADC   					1--enable  0--disable
-mem_mouse_enable_flag:02
-
-
-mem_mouse_param_config:
-0a  #mem_lbutton_gpio
-0b  #mem_mbutton_gpio
-0c  #mem_rbutton_gpio
-0c  #mem_bk_button_gpio
-0b  #mem_fw_button_gpio
-0a  #mem_dpi_button_gpio
-04  #mem_whee_a_data_gpio
-03  #mem_whee_b_data_gpio
-05  #mem_mouse_sensor_sclk_gpio
-06  #mem_mouse_sensor_sdio_gpio
-ff  #mem_select_sensor_angle_gpio
-02  #mem_sensor_angle_default
-01  #mem_sensor_angle_switch
-00  #mem_config_sensor_dpi	#power on default dpi 00--1200  01--1600
-ff  #mem_whee_ta_data_gpio
-ff  #mem_whee_tb_data_gpio
-08  #mem_matrix_public_gpio
-ff  #mem_config_select_device_button_gpio
-ff  #mem_customer_key_gpio
-ff  #mem_sensor_motion_gpio
-ff  #mem_device_switch_gpio
-ff  #mem_mouse_reuse_2ice_gpio
-ff  #mem_config_low_voltage_alarm_gpio
-89  #mem_config_device_24g_led_gpio
-89  #mem_config_device_bt1_led_gpio
-ff  #mem_config_device_bt2_led_gpio	
-ff  #mem_dpi_led_gpio 
-
-#mouse sensor angle
-#0x00 MOUSE_6CLK_ANGLE
-#0X01 MOUSE_9CLK_ANGLE
-#0X02 MOUSE_12CLK_ANGLE
-#0X03 MOUSE_3CLK_ANGLE
-
-
-mem_device_option:08
-mem_device_number:02   #01--only 2.4g   10--2.4g+ble
-
-#ui
-mem_ui_button_gpio:ff
-mem_ui_button_timeout:1e
-mem_ui_led_struct_num:01
-mem_ui_led_struct_ptr:mem_mouse_led_type
-
-#rf
-mem_tx_power:00	#00--0db 01--3db  02--5db  03--f3db  04--f5db
-mem_rssi_buff_index:07
-mem_rssi_signal_buf_ptr:mem_mouse_rssi_signal_buf
-mem_rssi_dis_min_24g_init:85
-mem_rssi_dis_max_24g_init:90
-mem_rssi_dis_min_ble_init:75
-mem_rssi_dis_max_ble_init:80
-mem_rssi_hex_received_max_value_init:63
-mem_power_ctrl_pac_succ_cnt_init:7d
-
-
-#led
-mem_mouse_low_v_led_blink_time:90 01		#200ms on,200ms off
-mem_mouse_dpi_led_blink_time:90 01			#200ms on,200ms off
-mem_mouse_disconvey_led_blink_time:e8 03
-mem_mouse_device_poweron_timer_count_init:14
-
-
-#usb
-mem_usb_offline_check_gpio:ff
-
-#adc
-mem_adc_read_time_init:0a
-mem_adc_config_flag_init:02   #00-vinlpm   01-hvin   02-gpio
-mem_adc_low_volatage_led_blink_timer:64 00
-mem_adc_channel:04       
-#00-gpio4   
-#01-gpio5   
-#02-gpio6  
-#03-gpio7
-#04-gpio9  
-#05-gpio10  
-#06-gpio11  
-#07-gpio12
-
-
-#2.4g
-mem_24g_data_type:01	#01--mouse  02--keyboard
-mem_24g_fast_conn_enable:01
-mem_24g_fast_conn_addr:0f 0f 0f 0f
-mem_mouse_commbination_key_24g:03 #03--LR  05--LM  06--RM  07---LMR
-mem_24g_ch_map_update:00   #00--disable   01--enable
-mem_24g_long_sleep_set_level:02    #00--30ms   01--50ms  02--80ms  03--100ms
-mem_24g_disable_fec1:00	 #00--default mode  01--new process
-
-mem_mouse_24g_pair_tx_power:94 #-20dBm
-mem_mouse_24g_pair_timeout_init:2c 01  #30s	    24g reconn timer&pair timer
-
-mem_24g_enter_hibernate:00 48 60
-mem_24g_long_sleep_param_update_timer_init:2c 01	#30s
-mem_24g_transmit_by_interrupt_exit_count_init:50 00
-mem_mouse_24g_reconn_timeout_init:05 #500ms
-mem_mouse_24g_power_on_fast_conn_timer:05 00	#500ms
-mem_mouse_24g_search_dongle_time_init:64 00	#10s
-mem_store_information_delay_timer_init:05
-
-
-#bt
-mem_24g_lap: 11 21 31 41 51 61
-mem_lpm_mode:01
-mem_lpm_mult:20
-mem_lpm_mult_init:20
-
-
-#ble
-mem_le_lap:71 81 91 a1 b1 c1
-mem_le_adv_channel_map:07
-mem_mouse_direct_timeout:32  #05s
-mem_mouse_discovery_timeout:b0 04	#2min
-mem_mouse_no_data_timeout:70 17   #10mins
-mem_local_rx_max_octets:fb 00 48 08 fb 00 48 08  # 1b
-mem_le_battery_level_updata_timer_init:96 00
-
-mem_le_keyboard_handle:15 00
-mem_le_notify_handle:19 00
-mem_le_multimedia_handle:1d 00
-mem_le_systemctrl_handle:21 00
-mem_le_pairing_handle:2d 00
-mem_le_battery_level_handle:30 00
-
-mem_le_adv_data_len:1f
-mem_le_adv_data:
-#flag
-02 01 05 
-#uuid
-03 03 12 18 
-#appearance
-03 19 c2 03
-
-mem_le_adv_swift_pair:
-#microsoft swift pair
-06 ff 06 00 03 00 80	
-#name
-'\09BT5.2 Mouse
-
-mem_le_scan_data_len:1f
-mem_le_scan_data:
-#name
-'\09BT5.2 Mouse
-
-#max 20bytes, att list data rom limits
-mem_le_name_len:
-'BT5.2 Mouse
-
-mem_le_interval_min:
-07 00 #min interval
-07 00 #max interval
-20 00 #latency
-2c 01 #timeout
-
-mem_le_adv_ind:03 12 18
-mem_le_adv_direct_ind:ff 00 00
-
-mem_device_flag:00	#00--24g 01--bt
-mem_device1_type:34
-mem_device1_locall_addr:71 81 91 a1 b1 c1
-
-mem_flash_base:00 50 00
-mem_eeprom_base:80 1f
-mem_eeprom_block_size:80
-
-mem_mouse_dpi_seting:
-03	#mem_320x_dpi_0
-04	#mem_320x_dpi_1
-01	#mem_320x_dpi_2
-02	#mem_320x_dpi_3
-
-20	#mem_3212_dpi_0
-2a	#mem_3212_dpi_1
-3f	#mem_3212_dpi_2
-15	#mem_3212_dpi_3
-
-22	#mem_ka8g2_dpi_0
-33	#mem_ka8g2_dpi_1
-44	#mem_ka8g2_dpi_2
-11	#mem_ka8g2_dpi_3
-
-mem_sensor_3212_init:
-09 5a
-26 34
-19 04
-09 00
-ff ff
-
-mem_sensor_3205_init:
-09 5a
-0d 10
-1d ed
-7d 80
-ff ff
-
-mem_sensor_8650_init:
-09 5a
-ff 27
-ab 40
-b3 56
-9b e6
-a8 12
-a9 c0
-be e6
-a5 af
-a0 21
-a1 02
-b8 10
-b9 0b
-a7 ff
-b5 d0
-b6 00
-ff 00
-09 00
-ff ff	
-
-mem_sensor_ka8ul_init:
-09 5a
-0d 10
-0e c5
-5b 9a
-10 38
-11 42
-28 28
-41 23
-49 39
-4a b0
-4b a0
-4c 90
-4d 70
-09 00
-ff ff	
-
-mem_sensor_ka8g2_init:
-09 a5
-46 34
-60 07
-69 04
-7d 20
-7e 00
-09 00
-ff ff
-
-mem_sensor_8009_init:
-09 5a
-06 02
-09 69
-0d 48
-0e 9f
-0f ba
-09 00
-ff ff	
-
-mem_sensor_poweron_init:
-09 5a
-0b f3
-09 00
-ff ff
-
Index: sched/mouse_ble_att_list.dat
===================================================================
--- /branch/usb/usb_public/sched/mouse_ble_att_list.dat	(revision 204)
+++ /branch/usb/usb_public/sched/mouse_ble_att_list.dat	(nonexistent)
@@ -1,626 +0,0 @@
-01
-00
-02
-00
-28
-02
-00
-18
-02
-00
-02
-03
-28
-01
-0a
-03
-00
-02
-00
-2a
-14
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-04
-00
-02
-03
-28
-01
-02
-05
-00
-02
-01
-2a
-02
-c2
-03
-06
-00
-02
-03
-28
-01
-02
-07
-00
-02
-04
-2a
-08
-06
-00
-06
-00
-64
-00
-2c
-01
-08
-00
-02
-00
-28
-02
-01
-18
-09
-00
-02
-03
-28
-01
-20
-0a
-00
-02
-05
-2a
-00
-0b
-00
-02
-02
-29
-02
-00
-00
-0c
-00
-02
-00
-28
-02
-0a
-18
-0d
-00
-02
-03
-28
-01
-02
-0e
-00
-02
-29
-2a
-06
-59
-69
-43
-68
-69
-70
-0f
-00
-02
-03
-28
-01
-02
-10
-00
-02
-50
-2a
-07
-02
-35
-12
-22
-aa
-01
-00
-11
-00
-02
-00
-28
-02
-12
-18
-12
-00
-02
-03
-28
-01
-06
-13
-00
-02
-4e
-2a
-01
-01
-14
-00
-02
-03
-28
-01
-12
-15
-00
-02
-4d
-2a
-08
-00
-00
-00
-00
-00
-00
-00
-00
-16
-00
-02
-02
-29
-02
-00
-00
-17
-00
-02
-08
-29
-02
-02
-01
-18
-00
-02
-03
-28
-01
-1a
-19
-00
-02
-4d
-2a
-07
-00
-00
-00
-00
-00
-00
-00
-1a
-00
-02
-02
-29
-02
-00
-00
-1b
-00
-02
-08
-29
-02
-01
-01
-1c
-00
-02
-03
-28
-01
-12
-1d
-00
-02
-4d
-2a
-02
-00
-00
-1e
-00
-02
-02
-29
-02
-00
-00
-1f
-00
-02
-08
-29
-02
-03
-01
-20
-00
-02
-03
-28
-01
-12
-21
-00
-02
-4d
-2a
-02
-00
-00
-22
-00
-02
-02
-29
-02
-00
-00
-23
-00
-02
-08
-29
-02
-04
-01
-24
-00
-02
-03
-28
-01
-0e
-25
-00
-02
-4d
-2a
-02
-00
-00
-26
-00
-02
-08
-29
-02
-02
-02
-27
-00
-02
-03
-28
-01
-02
-28
-00
-02
-4b
-2a
-bd
-05
-01
-09
-02
-a1
-01
-85
-01
-09
-01
-a1
-00
-05
-09
-19
-01
-29
-08
-15
-00
-25
-01
-75
-01
-95
-08
-81
-02
-05
-01
-09
-30
-09
-31
-16
-01
-f8
-26
-ff
-07
-75
-10
-95
-02
-81
-06
-09
-38
-15
-81
-25
-7f
-75
-08
-95
-01
-81
-06
-05
-0c
-0a
-38
-02
-95
-01
-81
-06
-c0
-c0
-05
-01
-09
-06
-a1
-01
-85
-02
-75
-01
-95
-08
-05
-07
-19
-e0
-29
-e7
-15
-00
-25
-01
-81
-02
-95
-01
-75
-08
-81
-03
-95
-05
-75
-01
-05
-08
-19
-01
-29
-05
-91
-02
-95
-01
-75
-03
-91
-03
-95
-06
-75
-08
-15
-00
-26
-ff
-00
-05
-07
-19
-00
-29
-ff
-81
-00
-c0
-05
-0c
-09
-01
-a1
-01
-85
-03
-19
-00
-2a
-ff
-03
-15
-00
-26
-ff
-03
-95
-01
-75
-10
-81
-00
-c0
-05
-01
-09
-80
-A1
-01
-85
-04
-15
-00
-25
-01
-75
-01
-95
-03
-19
-81
-29
-83
-81
-02
-95
-01
-75
-05
-81
-03
-C0
-29
-00
-02
-03
-28
-01
-1a
-2a
-00
-02
-33
-2a
-08
-00
-00
-00
-00
-00
-00
-00
-00
-2b
-00
-02
-02
-29
-02
-01
-00
-2c
-00
-02
-03
-28
-01
-02
-2d
-00
-02
-4a
-2a
-04
-01
-01
-00
-03
-2e
-00
-02
-00
-28
-02
-0f
-18
-2f
-00
-02
-03
-28
-01
-12
-30
-00
-02
-19
-2a
-01
-64
-31
-00
-02
-02
-29
-02
-00
-00
-32
-00
-02
-03
-28
-01
-04
-33
-00
-02
-4c
-2a
-00
-00
-00
Index: sched/remote_car.dat
===================================================================
--- /branch/usb/usb_public/sched/remote_car.dat	(revision 204)
+++ /branch/usb/usb_public/sched/remote_car.dat	(nonexistent)
@@ -1,46 +0,0 @@
-
-mem_device_option:0d
-mem_ui_button_gpio:ff
-
-mem_remote_style_struct_led_gpio:06
-mem_remote_car_led_num:01
-mem_remote_car_led_map:
-06
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-
-
-mem_remote_car_key_num:04
-mem_remote_car_key_conf0:
-#0
-03
-#1
-04
-#2
-05
-#3
-07
-#4
-02
-#5
-0a
-#6
-17
-
-mem_24g_tx_phy:84#0x01:1M/0x02:2M/0x04:S2/0x84:S8
-mem_24g_rx_phy:84#0x01:1M/0x02:2M/0x04:S2/0x84:S8
-mem_24g_pair_tx_power:85 #-5dBm
-
-
-mem_24g_lap:01 02 03 04 05 06
-mem_24g_pair_addr:56 34 02 01
-mem_eeprom_base:80 1f		//2keeprom:f0 00
-mem_24g_pair_ch:4e
-
-mem_remote_save_addr_flag: 01
-
Index: sched/rtrivr_uuid.dat
===================================================================
--- /branch/usb/usb_public/sched/rtrivr_uuid.dat	(revision 204)
+++ /branch/usb/usb_public/sched/rtrivr_uuid.dat	(nonexistent)
@@ -1,75 +0,0 @@
-#attribute list: handle 2bytes, uuid 2bytes, length 1bytes, attribute Nbytes
-mem_le_att_list:
-
-#Primary service GAP ------
-01 00 00 28 02 00 18
-
-#Device name
-02 00 03 28 01 0a
-03 00 00 2a 0c 41 73 74 20 4c 45 20 4d 6f 75 73 65
-
-#Appearance
-04 00 03 28 01 02
-05 00 01 2a 02 c2 03 #3c2=hid mouse
-
-#Peripheral Preferred Connection Parameters
-06 00 03 28 01 02
-07 00 04 2a 08 06 00 06 00 64 00 2c 01 # interval 6ms, latency 100, timeout 300
-
-#Primary service GATT ------
-08 00 00 28 02 01 18
-
-#Service changed
-09 00 03 28 01 20
-0a 00 05 2a 00
-
-#Client Characteristic Configuration
-0b 00 02 29 02 00 00
-
-#Primary service TX power ------
-0c 00 00 28 02 04 18
-#Characteristic Tx power level
-0d 00 03 28 01 06
-0e 00 07 2a 01 00
-
-#Primary service Immediate alert ------
-0f 00 00 28 02 02 18
-#Characteristic Alert level
-10 00 03 28 01 04
-11 00 06 2a 01 00
-
-#Primary service UUID:f003 ------
-12 00 00 28 02 03 f0
-#Characteristic UUID:f803
-13 00 03 28 01 04
-14 00 03 f8 01 00
-
-
-#Primary service Link loss alert ------
-15 00 00 28 02 03 f0
-#Characteristic Alert level
-16 00 03 28 01 0a
-17 00 06 2a 01 00
-
-#Primary service UUID:f002 ------
-18 00 00 28 02 02 f0
-#Characteristic UUID:f802
-19 00 03 28 01 12
-1a 00 02 f8 01 28
-1b 00 02 29 02 00 00
-
-#Primary service Battery ------
-1c 00 00 28 02 0f 18
-#Characteristic Battery level
-1d 00 03 28 01 12
-1e 00 19 2a 01 38
-
-
-#End of Attribute list
-00 00
-
-mem_le_adv_data_len:1b
-mem_le_adv_data:0c 09 52 74 72 69 76 72 5f 52 36 32 31 03 19 40 02 02 01 05 02 0a 00 03 03 00 f0
-mem_le_scan_data_len:00
-mem_le_adv_param:00 08 00 08 00 01 00 00 00 00 00 00 00 07 00
-mem_le_adv_enable:01
Index: sched/shutter.dat
===================================================================
--- /branch/usb/usb_public/sched/shutter.dat	(revision 204)
+++ /branch/usb/usb_public/sched/shutter.dat	(nonexistent)
@@ -1,12 +0,0 @@
-mem_device_option:09
-mem_ui_button_gpio:ff
-
-mem_le_lap:38 31 20 98 07 2a
-mem_le_name_len:
-'AB Shutter3
-
-mem_shutter_key_conf0_temp:04 06 05 00 06
-
-mem_shutter_soft_switch_first_power_on:00
-
-
Index: sched/sim.dat
===================================================================
--- /branch/usb/usb_public/sched/sim.dat	(revision 204)
+++ /branch/usb/usb_public/sched/sim.dat	(nonexistent)
@@ -1,53 +0,0 @@
-
-
-mem_lpm_xtalcnt:33 0a 1b af 07
-mem_lpm_ctrl3:30 80 10 24
-mem_fcomp_div:24
-
-mem_xtal_freq:18	#24MHz
-mem_set_cdb_on:00
-mem_syn_cal_ctrl:00
-
-mem_le_lap:11 22 33
-mem_le_adv_data_len:1b
-mem_le_adv_data:0c 09
-'Yichip Temp
- 03 19 40 02 02 01 05 02 0a 00 03 03 f1 18
-mem_le_ch_mapped:24
-mem_le_adv_interval:20 00
-mem_le_scan_window:20 00
-mem_le_scan_type:01
-mem_le_adv_own_addr_type:01
-
-
-mem_patch00:01
-
-4580:ff
-mem_rf_init_ptr:80 45		
-
-
-
-
-
-
-#ecb enc data
-4f00:
-0a94 0bb5 416e f045 f1c3 9458 c653 ea5a 
-
-
-#cbc xor data
-4e00:
-5a5a 5a5a 5a5a 5a5a 6363 6363 6363 6363
-
-#cbc enc data1
-4e20:
-7033 eafa b089 698f 43cb 1050 1e73 1109 
-
-#cbc enc data2
-4e30:
-3cfd e1a1 eb69 42b0 2593 3009 5238 53f9 
-
-
-
-
-
Index: sched/spp.dat
===================================================================
--- /branch/usb/usb_public/sched/spp.dat	(revision 204)
+++ /branch/usb/usb_public/sched/spp.dat	(nonexistent)
@@ -1,206 +0,0 @@
-#device option
-mem_device_option:04
-
-#spp uuid
-mem_uuid_list:
-04
-10
-02
-12
-00
-01
-00
-00
-01
-00
-01
-00
-01
-36
-00
-5a
-09
-00
-00
-0a
-00
-01
-00
-01
-09
-00
-01
-35
-03
-19
-12
-00
-09
-00
-04
-35
-0d
-35
-06
-19
-01
-00
-09
-00
-01
-35
-03
-19
-00
-01
-09
-00
-05
-35
-03
-19
-10
-02
-09
-00
-09
-35
-08
-35
-06
-19
-12
-00
-09
-01
-00
-09
-02
-00
-09
-01
-03
-09
-02
-01
-09
-05
-ac
-09
-02
-02
-09
-02
-39
-09
-02
-03
-09
-06
-44
-09
-02
-04
-28
-01
-09
-02
-05
-09
-00
-02
-03
-11
-01
-00
-03
-01
-00
-00
-01
-00
-03
-36
-00
-4e
-09
-00
-00
-0a
-00
-01
-00
-03
-09
-00
-01
-35
-03
-19
-11
-01
-09
-00
-02
-0a
-00
-00
-00
-00
-09
-00
-04
-35
-0c
-35
-03
-19
-01
-00
-35
-05
-19
-00
-03
-08
-01
-09
-00
-05
-35
-03
-19
-10
-02
-09
-00
-06
-35
-09
-09
-65
-6e
-09
-00
-6a
-09
-01
-00
-09
-01
-00
-25
-0a
-53
-50
-50
-20
-73
-6c
-61
-76
-65
-00
-00
-00
-01
Index: sched/test.dat
===================================================================
--- /branch/usb/usb_public/sched/test.dat	(revision 204)
+++ /branch/usb/usb_public/sched/test.dat	(nonexistent)
@@ -1,161 +0,0 @@
-mem_lap:77 11 00 33 00 00
-mem_le_lap:88 11 00 33 00 00
-mem_device_option:05
-mem_local_name_length:
-'1308AA
-
-
-mem_lpm_mult:0
-mem_lpm_mult_timeout:03
-mem_lpm_overhead:05
-mem_lpm_mode:01
-mem_scan_mode:03
-mem_le_adv_enable:00
-
-mem_class:cc 25 00
-mem_features:
-ff
-ff
-8f
-f8	#fe--EDR  F8--BR
-9b	#AFHclose 83
-9d
-59
-83
-
-mem_le_adv_interval:00 02 
-mem_le_adv_channel_map:07
-mem_le_adv_data_len:03
-mem_le_adv_data:
-02 01 0e
-
-mem_le_scan_data_len:0a
-mem_le_scan_data:
-'\09test1308
-
-mem_ui_le_uuid_table:mem_module_le_att_list
-
-#attribute list: handle 2bytes, uuid 2bytes, length 1bytes, attribute Nbytes
-mem_module_le_att_list:
-#Primary service GAP ------
-01 00 02 00 28 02 00 18
-
-
-#Appearance
-02 00 02 03 28 01 02
-03 00 02 01 2a 02 c8 00 #3c2=hid mouse
-
-#Device name
-04 00 02 03 28 01 0a
-05 00 02 00 2a 14 41 73 74 20 4c 45 20 4d 6f 75 73 65 20 20 20 20 20 20 20 20
-
-
-#Peripheral Preferred Connection Parameters
-06 00 02 03 28 01 02
-07 00 02 04 2a 08 06 00 06 00 64 00 2c 01 # interval 6ms, latency 100, timeout 300
-
-
-#privcy flag
-08 00 02 03 28 01 02
-09 00 02 02 2a 01 01
-
-#reconnecting addr 
-0a 00 02 03 28 01 08
-0b 00 02 03 2a 06 00 00 00 00 00 00
-
-#Primary service GATT ------
-0c 00 02 00 28 02 01 18
-
-#Service changed
-0d 00 02 03 28 01 20
-0e 00 02 05 2a 00
-#Client Characteristic Configuration
-0f 00 02 02 29 02 00 00
-
-#Primary service TX power ------
-10 00 02 00 28 02 04 18
-#Characteristic Tx power level
-11 00 02 03 28 01 16
-12 00 02 07 2a 01 00
-13 00 02 02 29 02 00 00
-
-#Primary service Battery ------
-14 00 02 00 28 02 0f 18
-#Characteristic Battery level
-15 00 02 03 28 01 12
-16 00 02 19 2a 01 38
-
-#Primary service device infomation
-17 00 02 00 28 02 0a 18
-#Characteristic system id
-18 00 02 03 28 01 02
-19 00 02 23 2a 03 00 00 00
-
-#Characteristic manufactor name
-1a 00 02 03 28 01 02
-1b 00 02 29 2a 08 46 6c 61 67 74 72 69 70
-
-#Characteristic module number
-1c 00 02 03 28 01 02
-1d 00 02 24 2a 06 79 69 63 68 69 70
-
-#Characteristic serial number
-1e 00 02 03 28 01 02
-1f 00 02 25 2a 04 63 6f 6d 33
-
-#Characteristic firmware version
-20 00 02 03 28 01 02
-21 00 02 26 2a 03 31 2e 30
-
-#Characteristic software version
-22 00 02 03 28 01 02
-23 00 02 28 2a 03 31 2e 30
-
-#Characteristic hardware version
-24 00 02 03 28 01 02
-25 00 02 2a 2a 03 31 2e 30
-
-#Characteristic regulatory version
-26 00 02 03 28 01 02
-27 00 02 25 2a 04 63 6f 6d 33
-
-#Primary service yichip transmit ------
-28 00 02 00 28 10 55 e4 05 d2 af 9f a9 8f e5 4a 7d fe 43 53 53 49
-#Characteristic tx--notify read
-29 00 02 03 28 01 12
-2a 00 10 16 96 24 47 C6 23 61 BA D9 4B 4D 1E 43 53 53 49 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-#Client Characteristic Configuration
-2b 00 02 02 29 02 00 00
-
-#Characteristic rx--write
-2c 00 02 03 28 01 08
-2d 00 10 b3 9b 72 34 be ec d4 a8 f4 43 41 88 43 53 53 49 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-
-#Characteristic rx-- write without Response
-2e 00 02 03 28 01 04
-2f 00 10 fe 69 ca 9a 56 19 f6 ab 02 4d aa 6d 43 53 53 49 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-
-#Characteristic rx tx --read write notify
-30 00 02 03 28 01 2a
-31 0010 18 03 A6 28 5E D8 EC 91 1C 48 A3 AC 43 53 53 49 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-#Client Characteristic Configuration
-32 00 02 02 29 02 00 00
-
-#Primary service yichip transmit ------
-33 00 02 00 28 02 e7 fe 
-#Characteristic tx--indicate
-34 00 02 03 28 01 20
-35 00 02 c8 fe 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-#Client Characteristic Configuration
-36 00 02 02 29 02 00 00
-
-#Characteristic rx--write,read
-37 00 02 03 28 01 0a
-38 00 02 c7 fe 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-
-#Characteristic - read
-39 00 02 03 28 01 02
-3a 00 02 c9 fe 06 11 22 33 44 55 66
-
-#End of Attribute list
-00 00
Index: sched/usb_confdata.dat
===================================================================
--- /branch/usb/usb_public/sched/usb_confdata.dat	(revision 204)
+++ /branch/usb/usb_public/sched/usb_confdata.dat	(nonexistent)
@@ -1,60 +0,0 @@
-3b
-09
-02
-3b
-00
-02
-01
-00
-a0
-32
-09
-04
-00
-00
-01
-03
-01
-01
-00
-09
-21
-00
-02
-00
-01
-22
-1a
-00
-07
-05
-81
-03
-40
-00
-02
-09
-04
-01
-00
-01
-03
-01
-02
-00
-09
-21
-00
-02
-00
-01
-22
-a3
-00
-07
-05
-82
-03
-40
-00
-02
\ No newline at end of file
Index: sched/usb_devicedata.dat
===================================================================
--- /branch/usb/usb_public/sched/usb_devicedata.dat	(revision 204)
+++ /branch/usb/usb_public/sched/usb_devicedata.dat	(nonexistent)
@@ -1,19 +0,0 @@
-12
-12
-01
-00
-02
-00
-00
-00
-40
-51
-31
-20
-10
-02
-00
-01
-02
-00
-01
\ No newline at end of file
Index: sched/usb_kbdata.dat
===================================================================
--- /branch/usb/usb_public/sched/usb_kbdata.dat	(revision 204)
+++ /branch/usb/usb_public/sched/usb_kbdata.dat	(nonexistent)
@@ -1,64 +0,0 @@
-3f
-05
-01
-09
-06
-a1
-01
-75
-01 
-95
-08
-05
-07
-19
-e0 
-29
-e7
-15
-00
-25
-01
-81
-02
-95
-01 
-75
-08
-81
-03
-95
-05
-75
-01
-05
-08
-19
-01
-29
-05  
-91
-02 
-95
-01  
-75
-03  
-91
-03
-95
-06 
-75
-08 
-15
-00 
-25
-ff
-05
-07
-19
-00
-29
-ff 
-81
-00
-c0
Index: sched/usb_kbdata_vendor_define.dat
===================================================================
--- /branch/usb/usb_public/sched/usb_kbdata_vendor_define.dat	(revision 204)
+++ /branch/usb/usb_public/sched/usb_kbdata_vendor_define.dat	(nonexistent)
@@ -1,27 +0,0 @@
-1a
-06
-bc
-ff
-09
-88
-a1
-01
-85
-04
-19
-00
-2a
-ff
-00
-15
-00
-26
-ff
-00
-75
-08
-95
-01
-81
-00
-c0
\ No newline at end of file
Index: sched/usb_msdata.dat
===================================================================
--- /branch/usb/usb_public/sched/usb_msdata.dat	(revision 204)
+++ /branch/usb/usb_public/sched/usb_msdata.dat	(nonexistent)
@@ -1,164 +0,0 @@
-a3
-05
-01
-09
-02
-a1
-01
-85
-01
-09
-01
-a1
-00
-05
-09
-19
-01
-29
-05
-15
-00
-25
-01
-95
-05
-75
-01
-81
-02
-95
-01
-75
-03
-81
-01
-05
-01
-09
-30
-09
-31
-16
-01
-F8
-26
-FF
-07
-75
-10
-95
-02
-81
-06
-09
-38
-15
-81
-25
-7f
-75
-08
-95
-01
-81
-06
-05
-0c
-0a
-38
-02
-95
-01
-81
-06
-c0
-c0
-05
-01
-09
-80
-a1
-01
-85
-02
-05
-01
-19
-81
-29
-88
-15
-00
-25
-01
-95
-08
-75
-01
-81
-06
-c0
-05
-0c
-09
-01
-a1
-01
-85
-03
-15
-00
-26
-80
-03
-19
-00
-2a
-80
-03
-75
-10
-95
-01
-81
-00
-c0
-06
-00
-ff
-09
-0e
-a1
-01
-85
-BA
-95
-1f
-75
-08
-26
-ff
-00
-15
-00
-09
-01
-91
-02
-85
-BA
-95
-1f
-75
-08
-26
-ff
-00
-15
-00
-09
-01
-81
-02
-C0
\ No newline at end of file
Index: util/mergepatch.pl
===================================================================
--- /branch/usb/usb_public/util/mergepatch.pl	(revision 204)
+++ /branch/usb/usb_public/util/mergepatch.pl	(working copy)
@@ -296,7 +296,7 @@
 sub authrom {
 	$addr = 0x9000;
 	foreach $s (@ARGV) {
-		open f, "../sched/" . $s . ".dat" or die "cannot open dat file $s";
+		open f, "../sched/authrom/" . $s . ".dat" or die "cannot open dat file $s";
 		@ff = <f>;
 		close f;
 		foreach (@ff) { $_ =~ s/\s//g;push @auth, $_ . "\n"; }
