使用USB设备,海洋光学STS光谱仪 [英] using USB Device, Ocean Optics STS Spectrometer
问题描述
我想要to comunicate,我的Windows CE到光谱仪,从海洋光学模型STS。
我正在阅读他们的数据表,
STS数据表
我已经编写了一些函数,并使用句柄读取串行接口。但即使我使用最大速度 (115kbps )
与光谱仪的通信仍然非常慢,
现在我正在尝试使用USB通讯 (完全
速度12Mbit / s ),
在第12页,它显示usb端点
USB端点 (OUT上的任何
数据查询都会在相应的IN上产生响应 ):
EP1 OUT?EP1 IN
EP2 OUT?EP2 IN
Ocean Optics供应商ID号为0x2457,产品ID为0x4000。
我想我拥有所需的所有信息,但我从不使用USB驱动程序 (wince上的
)与其他设备通信,
所以我的怀疑是,
我可以使用现有的设备驱动程序,如USB HOST控制器,使用流来直接与它进行通信吗?你有没有任何例子?
我是否必须在注册表上创建一个条目才能使我的WinCe识别出这个驱动程序? 我该怎么做?我应该新建一个
DLL驱动程序吗?
非常感谢任何帮助
你需要实现一个USB主机驱动程序来与以下链接可以帮助您入门:
http://msdn.microsoft.com/en-us/library/ee483089(v = winembedded.60).aspx
http://msdn.microsoft.com/en-us/library/ee481082.aspx
另请参阅< WINCE安装目录> / public / common / oak / drivers / usb / class
中的其他驱动程序实现
Hi ,
I want to comunicate, my windows CE to a spectrometer , model STS from Ocean Optics.
I am reading their datasheet,
STS Data Sheet
I already have made some functions to write, and Reading with Serial interface using a handle. But even I use the maximum velocity (115kbps)
the communication with the spectrometter are still very slow,
Now I am trying to use USB comunications (Full
speed 12Mbit/s),
On page 12, It is show me the usb endpoints
USB Endpoints (any
data query on either OUT will cause a response on the corresponding IN):
EP1 OUT ? EP1 IN
EP2 OUT ? EP2 IN
Ocean Optics Vendor ID number is 0x2457 and the Product ID is 0x4000.
I think I have all information that I need, but I never use a USB driver (
on wince) to communicate with other device,
So my doubts are,
Can I use a existent device Driver Like USB HOST Controller to communicate directly with it using streams to handle ? Do u have any example?
Do I have to make a entry on registry to make my WinCe to recognize this driver? How can I do that? Should I Do a new DLL Driver?
Thanks a lot for any help
You'll need to implement a USB host driver to communicate with the device. The following links can get you started:
http://msdn.microsoft.com/en-us/library/ee483089(v=winembedded.60).aspx
http://msdn.microsoft.com/en-us/library/ee481082.aspx
Also take a look at other drivers implementation in <WINCE installation directory>/public/common/oak/drivers/usb/class
这篇关于使用USB设备,海洋光学STS光谱仪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!