阅读:3638回复:10
请使用usb-serial方式实现activesync的同行们回复一下各自的传输速度。
用usb-serial方式实现activesync的传输速率只有400kbps (bit),不知各位的实现情况怎样,有实现的,请回复一下,也让小弟知道改进的余地。
|
|
沙发#
发布于:2007-01-08 14:19
难道...
|
|
板凳#
发布于:2007-01-08 15:42
这个和你用的USB连接线的长短及质量也有很大关系的!
|
|
|
地板#
发布于:2007-01-08 20:13
请问cygarm:
你实现的速度是多少? |
|
地下室#
发布于:2007-01-12 17:11
请问楼主,我现在正在做activesync ce端驱动,我想问问楼主,实现usb serial驱动是否需要同时实现pc端驱动?谢谢
|
|
5楼#
发布于:2007-01-12 23:52
我用的是activesync自带的驱动,activesync安装后会在其目录下生成放置驱动程序的目录,在wceusbsh.inf中加入你们自已设备码即可。
|
|
6楼#
发布于:2007-01-14 17:30
十分感谢楼主的回复.我现在activesync ce驱动,碰到了一些问题,不知从哪下手?希望楼主给些资料或者指点一下!我的问题是:现在连接usb的时候,发现枚举都已经过了,但是ce这边就是不发"43 4c 49 45 - 4e 54"数据包,我即使强制ce发送这个包"43 4c 49 45 - 4e 54",pc回应"43 4c 49 45 - 4e 54 53 45 52 56 45 52 "之后我2边都开始发IN包,不知道是什么原因?下面是相关数据包:
Dev Phase Data Info Time Cmd.Phase.Ofs --- ----- ------------------------- ------------- ----- ------------------ 13 CTL a3 00 00 00 - 02 00 04 00 CLASS 0us 1.1.0 13 DI 01 01 01 00 .... 20us 1.2.0 13 CTL a3 00 00 00 - 02 00 04 00 CLASS 21us 2.1.0 13 DI 01 01 01 00 .... 16us 2.2.0 13 CTL 23 01 10 00 - 02 00 00 00 CLASS 14us 3.1.0 13 CTL a3 00 00 00 - 01 00 04 00 CLASS 63us 4.1.0 13 DI 00 01 00 00 .... 17us 4.2.0 13 CTL a3 00 00 00 - 02 00 04 00 CLASS 12us 5.1.0 13 DI 01 01 00 00 .... 16us 5.2.0 13 CTL a3 00 00 00 - 02 00 04 00 CLASS 116ms 6.1.0 13 DI 01 01 00 00 .... 29us 6.2.0 13 CTL 23 03 04 00 - 02 00 00 00 CLASS 15us 7.1.0 13 CTL a3 00 00 00 - 02 00 04 00 CLASS 26ms 8.1.0 13 DI 03 01 10 00 .... 25us 8.2.0 13 CTL 23 01 14 00 - 02 00 00 00 CLASS 3us 9.1.0 13 CTL a3 00 00 00 - 02 00 04 00 CLASS 26ms 10.1.0 13 DI 03 01 00 00 .... 30us 10.2.0 13 CTL a3 00 00 00 - 02 00 04 00 CLASS 43ms 11.1.0 13 DI 03 01 00 00 .... 24us 11.2.0 13 CTL 23 03 04 00 - 02 00 00 00 CLASS 14us 12.1.0 13 CTL a3 00 00 00 - 02 00 04 00 CLASS 26ms 13.1.0 13 DI 03 01 10 00 .... 23us 13.2.0 13 CTL 23 01 14 00 - 02 00 00 00 CLASS 4us 14.1.0 13 CTL 80 06 00 02 - 00 00 ff 00 GET DESCRIPTR 130ms 15.1.0 13 DI 09 02 20 00 - 01 01 00 40 .. ....@ 31ms 15.2.0 01 09 04 00 - 00 02 ff ff ........ 15.2.8 ff 00 07 05 - 01 02 40 00 ......@. 15.2.16 00 07 05 82 - 02 40 00 00 .....@.. 15.2.24 13 CTL 80 06 00 01 - 00 00 12 00 GET DESCRIPTR 15ms 16.1.0 13 DI 12 01 10 01 - ff ff ff 40 .......@ 24ms 16.2.0 47 05 20 27 - 00 00 00 00 G. '.... 16.2.8 00 01 .. 16.2.16 13 CTL 80 06 00 02 - 00 00 09 01 GET DESCRIPTR 36us 17.1.0 13 DI 09 02 20 00 - 01 01 00 40 .. ....@ 32ms 17.2.0 01 09 04 00 - 00 02 ff ff ........ 17.2.8 ff 00 07 05 - 01 02 40 00 ......@. 17.2.16 00 07 05 82 - 02 40 00 00 .....@.. 17.2.24 13 CTL 00 09 01 00 - 00 00 00 00 SET CONFIG 25us 18.1.0 13 CTL 21 22 01 00 - 00 00 00 00 CLASS 121ms 19.1.0 13 CTL 21 22 01 00 - 00 00 00 00 CLASS 30ms 20.1.0 |
|
7楼#
发布于:2007-01-14 21:08
楼主,再次打扰一下,请问方便贴出你的usb-serialce端的相关注册表吗?再次感谢
|
|
8楼#
发布于:2007-01-14 22:08
关于USB的帧包结构及发送时序,看过一些USB的协议,但还从未实际地调过,你是用什么工具截取的数据包?
在CE5的OS中加入usb-serial组件后,注册表用的的PB5自动生成的注册表,基本上没有改动,与之相关的注册表在common.reg中: [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers] "DefaultClientDriver"="Serial_Class" [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class] "Dll"="serialusbfn.dll" "InterfaceSubClass"=dword:ff "InterfaceProtocol"=dword:ff "DeviceName"="USBFNS1:" "Tsp"="Unimodem.dll" "Prefix"="COM" "Index"=dword:0 "DeviceArrayIndex"=dword:0 "DeviceType"=dword:0 "IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}" ; idVendor must be changed. 045E belongs to Microsoft and is only to be used for ; prototype devices in your labs. Visit http://www.usb.org to obtain a vendor id. "idVendor"=dword:045E "Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)" "idProduct"=dword:0301 "Product"="Generic Serial (PROTOTYPE--Remember to change idVendor)" "bcdDevice"=dword:0 [HKEY_LOCAL_MACHINE\Comm\USB\Linkage] "Bind"=multi_sz:"USBFNSER1" [HKEY_LOCAL_MACHINE\Comm\USBFNSER] "DisplayName"="USB Driver" "Group"="Serial" "ImagePath"="serialusbfn.dll" [HKEY_LOCAL_MACHINE\Comm\USBFNSER\Linkage] "Route"=multi_sz:"USBFNSER1" [HKEY_LOCAL_MACHINE\Comm\USBFNSER1\Parms] ; Intentionally left blank as a placeholder. |
|
9楼#
发布于:2007-01-15 11:34
谢谢,楼主真是个热心人。楼主方便贴出你驱动的注册表文件以及驱动的source文件吗, 以及连接activesync需要加哪些ce内核feature吗?然后怎么设置跟pc通信呢?对了,我用的截包工具是bus bound,在usb栏中有得下!再次感谢楼主
|
|
10楼#
发布于:2007-01-16 13:48
请参考贴子:使用usb-serial实现activesyn的完整步骤是(CE5.0)
|
|