Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/usb/output/eeprom.dat	(revision 1262)
+++ /YC1308AC/branch/usb/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-5e
-04
+3e
+02
 c2
 84
 00
@@ -11,33 +11,37 @@
 c0
 41
 80
-1e
+23
 c0
 45
 80
-14
+19
 c0
 46
 00
-76
+72
 c0
 57
 00
-25
+2a
 c0
 5d
 80
-35
+3a
 c0
 5e
 00
-37
+3c
 20
 20
 13
 7c
 c0
 47
+00
+15
+c0
+47
 fa
 26
 c0
@@ -47,15 +51,15 @@
 c0
 48
 00
-61
+5d
 c0
 4a
 80
-8b
+87
 c0
 54
 80
-0e
+0f
 20
 20
 13
@@ -86,6 +90,22 @@
 00
 20
 40
+6d
+f3
+20
+40
+79
+bc
+70
+0a
+a8
+03
+20
+20
+79
+a0
+20
+40
 12
 d1
 20
@@ -171,7 +191,7 @@
 58
 00
 00
-91
+8d
 67
 e1
 48
@@ -219,7 +239,7 @@
 20
 40
 00
-33
+38
 20
 20
 36
@@ -234,48 +254,12 @@
 00
 20
 40
-00
-df
-20
-40
-00
-e5
-6f
-e0
-8b
-f9
-2f
-ef
-fe
-02
-24
-40
-80
-ba
-6f
-e0
-8b
-f9
-2f
-ef
-fe
-02
 24
-40
-a4
 91
-6f
-e0
-c8
-b3
-24
-5a
-01
-0c
 20
 40
 00
-45
+41
 20
 20
 36
@@ -287,11 +271,11 @@
 20
 40
 00
-48
+44
 20
 20
 00
-54
+50
 6f
 e0
 c9
@@ -407,7 +391,7 @@
 c0
 00
 00
-66
+62
 20
 20
 7a
@@ -431,7 +415,7 @@
 c0
 00
 80
-6c
+68
 20
 20
 7a
@@ -443,7 +427,7 @@
 c0
 04
 80
-6f
+6b
 20
 20
 7a
@@ -523,7 +507,7 @@
 20
 40
 00
-71
+6d
 1f
 e6
 7e
@@ -547,7 +531,7 @@
 24
 20
 80
-89
+85
 58
 00
 00
@@ -588,596 +572,68 @@
 40
 37
 01
-6f
-e3
-c8
-94
-67
-e3
-c9
-89
 20
-40
+60
 00
-97
-20
+00
+cd
+4d
+aa
+55
 40
 00
-9d
-20
-20
 00
-a4
-6f
-e0
-c9
-68
-1f
-e0
-fe
-01
-67
-e0
-c9
-68
-1b
-22
-7e
+40
 00
-67
-e3
-49
-6b
-20
-20
-01
-01
-6f
-e0
-c9
-69
-1f
-e0
-fe
-01
-67
-e0
-c9
-69
-c1
-80
-80
 00
-1b
-22
-7e
 00
-67
-e3
-49
-71
-20
-60
 00
 00
-6f
-e0
-c9
-6a
-1f
-e0
-fe
-01
-67
-e0
-c9
-6a
-20
-60
 00
 00
-6f
-e0
-c9
-69
-c1
-be
-80
 00
-70
-49
-69
 00
-68
-4b
-49
-71
-1b
-22
-7e
 00
-20
-40
-7d
-95
-1f
-e2
-04
 00
-58
-80
-2c
-80
-98
-46
-7c
 00
-20
-21
 00
-b6
-6f
-e1
-c9
-86
-24
-7a
 00
 00
-58
-01
-77
 00
-20
-20
+08
+18
+00
 00
-b7
-58
 00
-bb
-80
-67
-e1
-c9
-86
-20
 40
-01
-06
-20
-20
-01
-0e
-6f
-e1
-c9
-86
-20
-7a
 00
+18
 00
-68
-48
-c9
-85
-98
-4f
-de
 00
-1f
-f1
-fe
 00
-9d
-e0
-de
 00
-68
-4b
-49
-77
-18
-46
-7c
 00
-20
-62
-80
 00
-1b
-22
-7e
 00
-20
-40
-7d
-95
-68
-4a
-49
-81
-98
-40
-fe
 00
-9d
-e6
-04
 00
-24
-61
-00
-00
-58
-12
-4f
-80
-98
-46
-7c
 00
-24
-21
-01
-0e
-60
-4a
-49
-81
-1b
-22
-7e
-00
-67
-e3
-49
-77
-6f
-e0
-c9
-85
-68
-48
-c9
-90
-98
-40
-fe
-00
-68
-48
-c9
-6a
-70
-49
-6a
-00
-98
-46
-7e
 00
-20
-22
-81
-0a
-24
-21
-01
-0e
-1f
-e6
-7c
-04
-24
-21
-01
-0e
-1f
-e0
-ff
-ff
-67
-e0
-c9
-90
-6f
-e0
-c9
-91
-1f
-e6
-7c
-05
-24
-21
-01
-0e
-20
-20
-01
-12
-6f
-e1
-c9
-86
-20
-3a
 00
-a8
-d8
-40
-bb
-80
-98
-46
-7c
 00
-24
-42
-80
-a8
-20
-60
 00
 00
-6f
-e1
-c9
-86
-20
-7a
 00
 00
-68
-48
-c9
-91
-18
-40
-84
-02
-98
-4f
-de
 00
-68
-4b
-49
-6b
-18
-46
-7c
 00
-20
-62
-80
 00
-1b
-22
-7e
 00
-20
-40
-7d
-95
-68
-4a
-49
-7d
-98
-40
-fe
 00
-9d
-e6
-04
 00
-24
-61
 00
 00
-58
-09
-27
 c0
-98
-46
-7c
-00
-24
-21
-01
-06
-60
-4a
-49
-7d
-6f
-e0
-c9
-91
-68
-48
-c9
-68
-98
-46
-7e
-00
-6f
-e0
-c9
-91
-1f
-e6
-7c
-05
-24
-21
-01
-06
-1f
-e0
-fe
-01
-67
-e0
-c9
-91
-20
-40
-01
-12
-20
-20
-00
-a4
-70
-49
-91
-00
-20
-20
-01
-06
-58
-00
-00
-00
-67
-e2
-49
-7d
-20
-60
-00
-00
-70
-49
-68
-00
-20
-20
-01
-03
-58
-00
-00
-00
-67
-e2
-49
-81
-70
-49
-90
-00
-20
-60
-00
-00
-70
-49
-91
-ff
-20
-60
-00
-00
-1b
-22
-7e
-00
-67
-e3
-49
-77
-70
-49
-6a
-00
-20
-20
-01
-08
-58
-00
-00
-01
-67
-e0
-8b
-ff
-6f
-e3
-c9
-89
-e7
-e3
-80
-05
-20
-20
-36
-94
-0d
-cb
-aa
-55
-40
-00
-00
-40
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-08
-18
-00
-00
-00
-40
-00
-18
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-80
 23
 00
 00
@@ -1214,7 +670,7 @@
 00
 a8
 40
-37
+3b
 28
 10
 30
@@ -1258,7 +714,7 @@
 00
 7b
 41
-1f
+15
 aa
 55
 01
@@ -1419,7 +875,7 @@
 00
 85
 49
-10
+20
 aa
 55
 05
@@ -1429,13 +885,7 @@
 02
 40
 00
-a2
-05
-55
-aa
-aa
-55
-b3
-2f
-c1
-b2
+7c
+03
+23
+61
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/usb/program/patch.prog	(revision 1262)
+++ /YC1308AC/branch/usb/program/patch.prog	(working copy)
@@ -16,6 +16,7 @@
 	beq patch31_7,p_usb_rx
 	beq patch32_1,p_usb0_request_get_descriptor
 else
+	beq patch31_6,p_usb_init
 	beq patch31_7,usb_rx+1
 	beq patch32_1,usb0_request_get_descriptor+1
 endif 
@@ -31,6 +32,12 @@
 	or pdata,0x0f,pdata
 	store 1,core_syn_cal_ctrl
 	rtn
+
+p_usb_init:
+	call enable_authrom
+	call usb_init_param
+	jam 0x03,mem_devicedesc+17	//enable iSerialNumber
+	branch usb_init_next
 	
 
 /********************rx fail patch************************/
Index: program/usb.prog
===================================================================
--- /YC1308AC/branch/usb/program/usb.prog	(revision 1262)
+++ /YC1308AC/branch/usb/program/usb.prog	(working copy)
@@ -18,6 +18,7 @@
 	bpatchx patch31_6,mem_patch31
 	call enable_authrom
 	call usb_init_param
+usb_init_next:
 	jam 0x00,core_usb_config
 ifdef SIM
 	nop 10
Index: sched/dongle.dat
===================================================================
--- /YC1308AC/branch/usb/sched/dongle.dat	(revision 1262)
+++ /YC1308AC/branch/usb/sched/dongle.dat	(working copy)
@@ -24,7 +24,7 @@
 
 
 #rf config
-mem_lap:37 28 10 30 11 12#low 4B used for 24g rxaddr
+mem_lap:3b 28 10 30 11 12#low 4B used for 24g rxaddr
 #mem_24g_tx_phy:01#0x01:1M/0x02:2M/0x04:S2/0x84:S8
 #mem_24g_rx_phy:01#0x01:1M/0x02:2M/0x04:S2/0x84:S8
 #mem_24g_no_ack:00#no ack
@@ -55,7 +55,7 @@
 
 #with eeprom
 mem_device_option:04
-mem_lpm_ctrim:1f		#xtal offset
+mem_lpm_ctrim:15		#xtal offset
 mem_lpm_xtalcnt:70
 mem_dig_aon_vsel:00
 #hw agc
