阅读:1831回复:6
大家谁有USB Modem 驱动的源代码?
大家谁有USB Modem 驱动的源代码?发给小弟一份。。。
不胜感激。。。Email: paul.jiao@mic.com.tw 谢谢 |
|
沙发#
发布于:2003-06-13 12:57
分数已给各位大虾。。。谢谢。。
|
|
板凳#
发布于:2003-06-13 11:58
1-device descriptor
1-configuration 2-interface--| 1--COMM interface--2 endpoint--ep0 & epx(interrupt) 2--DATA interface--2 endpoint--epx( bulk in & bulk out ) And: >1. How to know what function is needed to implement for EPx(Interrupt)? >Like set_DTR() function, what should i DO ? Set an event to kernel? You can refer to the USB CDC ACM Spec, and follow \"Line Discipline\". To vistul tty layer you can just consult \"/usr/src/linux/drivers/usb/acm.c\" >帮忙分析一下我写的descriptor... You\'d better to get a USB Modem and captuer the usb descriptor by using usbview. Then you just need change the VID/PID, i think the usb enumeration should be OK. 给分吧^_^ Good Luck! |
|
地板#
发布于:2003-06-12 19:10
Levis75Hi,
非常感谢你的回复!! 你的回答和你的英语很有水平,在下很为钦佩。我也在看你说的USB CDC document. 也注意到要使用ACM emulation . 但我才疏学浅,不太明白具体如何实现代码。是不是需要一个Communaction Interfac discriptor. 然后2个Endpoint 作为Bulk 传输,一个Endpoint 作为Interrupt . 然后需要在驱动中如何完成。真的很模糊。如果可能把你的大体思路和描述符的配置,告诉我好吗?我将十分感激。奉上分数。 |
|
地下室#
发布于:2003-06-12 14:10
For PC(win2k) side, Activesync and Modem just use virtual COMM to develop related APP.
For Device side, Activesync and Modem just use virtual ttySxxx over usb to develop related APP. You just need develop a usb modem device driver following USB CDC ACM Spec. I\'ve finished this driver in embed linux OS for cell phone.But i cannot give you the source codes cause of license. Any question, we can discuss in the form. Good Luck! |
|
5楼#
发布于:2003-06-02 19:58
wd1394, 谢谢大虾指点。我正是基于Smartphone 平台。 Smartphone 2003要求可以实现将Smartphone Device 通过USB 作为NB, PC 的Modem 。 我的平台已经实现了,Activesync 连接,当然也可以透过Activesync 上网。 但是MS要求, 在Activesync 禁掉的情况下,在Smartphone 上运行它提供的一个程序,透过USB ,作为一个Modem, 提供给所连接的设备,如PC 等,作为Modem。当然,PC端也需要加载相应的驱动。我可以发送不同的Discriptor 给PC,让PC 加载驱动吗?
再次谢谢Wd1394, |
|
6楼#
发布于:2003-06-02 19:12
你要的似乎是USB Modem的Firmware.
若你的开发平台是Microsoft的Smartphone, 我觉得你不应该将Device向PC报告成Modem, 你的Smartphone只有一个USB接口吧? 而且ActiveSync要用, 这样一个USB接口要向PC报告成两个不同的设备, 驱动可能没有办法实现. 我觉得你的方向似乎要看看PC如何透过ActiveSync再通过Smartphone上网, 不过我对ActiveSync也不熟, 感觉上微软应该有实现吧. |
|