Paul_Jiao
驱动牛犊
驱动牛犊
  • 注册日期2003-02-28
  • 最后登录2005-12-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1830回复:6

大家谁有USB Modem 驱动的源代码?

楼主#
更多 发布于:2003-05-29 16:01
大家谁有USB Modem 驱动的源代码?发给小弟一份。。。
不胜感激。。。Email: paul.jiao@mic.com.tw    谢谢
wd1394
驱动牛犊
驱动牛犊
  • 注册日期2001-09-08
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分5分
  • 威望48点
  • 贡献值0点
  • 好评度16点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-06-02 19:12
你要的似乎是USB Modem的Firmware.
若你的开发平台是Microsoft的Smartphone, 我觉得你不应该将Device向PC报告成Modem, 你的Smartphone只有一个USB接口吧? 而且ActiveSync要用, 这样一个USB接口要向PC报告成两个不同的设备, 驱动可能没有办法实现. 我觉得你的方向似乎要看看PC如何透过ActiveSync再通过Smartphone上网, 不过我对ActiveSync也不熟, 感觉上微软应该有实现吧.
Paul_Jiao
驱动牛犊
驱动牛犊
  • 注册日期2003-02-28
  • 最后登录2005-12-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于: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,
Levis75
驱动小牛
驱动小牛
  • 注册日期2001-08-06
  • 最后登录2006-06-28
  • 粉丝0
  • 关注0
  • 积分68分
  • 威望7点
  • 贡献值0点
  • 好评度4点
  • 原创分0分
  • 专家分0分
地板#
发布于: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!
Paul_Jiao
驱动牛犊
驱动牛犊
  • 注册日期2003-02-28
  • 最后登录2005-12-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2003-06-12 19:10
Levis75Hi,
非常感谢你的回复!!
你的回答和你的英语很有水平,在下很为钦佩。我也在看你说的USB CDC document. 也注意到要使用ACM emulation . 但我才疏学浅,不太明白具体如何实现代码。是不是需要一个Communaction Interfac discriptor. 然后2个Endpoint 作为Bulk 传输,一个Endpoint 作为Interrupt . 然后需要在驱动中如何完成。真的很模糊。如果可能把你的大体思路和描述符的配置,告诉我好吗?我将十分感激。奉上分数。



  
Levis75
驱动小牛
驱动小牛
  • 注册日期2001-08-06
  • 最后登录2006-06-28
  • 粉丝0
  • 关注0
  • 积分68分
  • 威望7点
  • 贡献值0点
  • 好评度4点
  • 原创分0分
  • 专家分0分
5楼#
发布于: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!
Paul_Jiao
驱动牛犊
驱动牛犊
  • 注册日期2003-02-28
  • 最后登录2005-12-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2003-06-13 12:57
分数已给各位大虾。。。谢谢。。
游客

返回顶部