3947|0

10

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

关于 usb作为虚拟com口和 PC通信 [复制链接]

hello,

i have similar problem, i get some data  from sensor and stored  in DSP C5505, and i want output these data throught usb to PC, and usb  as a virtual com port, i modify only the device descriptor and configuration descriptor, Pc can recognise the usb in a right way, but can not treat as a com port. the code below is the changed descriptor from TI CSL .

i want to ask that do i need a data interface inside this configuration descriptor, and i tried a lot of place inside and also change the cooperate endpoint  and correspond transaction code in CSL, but the PC can not recognise it anymore. so i wana know that which things i need to set and program for the purpose of communicating with PC through usb as a virtual com port .

Thanks

Uint16    deviceDesc[9] = {0x0112, 0x0200, 0x0002, 0x4000, 0x0451,
                            0x9010, 0x0000, 0x0201, 0x0103};  

  cfgDesc[60] = {0x09,0x02,0x3C,0x00,0x01,0x01,0x00,0xA0,0x00,      
configuration descriptor                                 
0x09,0x04,0x00,0x00,0x06,0x02,0x02,0x00,0x00,           interface descriptor
0x07,0x05,0x81,0x02,0x40,0x00,0x00,                              endpoint descritpor number 1  in     
0x07,0x05,0x01,0x02,0x40,0x00,0x00,                              endpoint descritpor number 1  out   
0x07,0x05,0x82,0x02,0x40,0x00,0x00,                             endpoint descritpor number 2  in   
0x07,0x05,0x02,0x02,0x40,0x00,0x00                              endpoint descritpor number 2  out

0x07,0x05,0x83,0x02,0x40,0x00,0x00,                               endpoint descritpor number 3  in   
0x07,0x05,0x03,0x02,0x40,0x00,0x00,};    endpoint descritpor number 3  out
点赞 关注
 

回复
举报
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/6 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表