win mobile 6.5中的USB设备检测 [英] USB device detection in win mobile 6.5

查看:101
本文介绍了win mobile 6.5中的USB设备检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我们遇到的问题是打印机和掌上电脑之间没有正确的USB连接(使用win mobile 6.5)。打印机使用USB来模拟串行打印。我们通常会在注册表中找到正确的COM端口,但在某些情况下,无法找到
端口(并且无法与其中任何一个建立连接)。我提到的这些案例是设备在打印机中重启或者进入休眠状态时(在打印机中回来时)。


我写信给打印机制造商(datamax ;这也是USB CDC驱动程序)但没有得到答案。您认为这是驱动程序问题还是与操作系统更相关?有没有办法解决这个问题?


谢谢,

解决方案

嗨adumoulin,


根据您的描述,当设备在打印机中重新启动或进入睡眠状态时,您无法找到正确的COM端口。也许它与打印机的驱动程序有关,因为这个问题会在打印机重新启动或
睡觉时发生。也许它不支持在上述条件下重新连接。当情况发生时你可以重新阅读usb。


或者你在那里接受建议: https://social.msdn.microsoft.com/Forums/en-US/196e64b1-e67b -497b-bcb4-5bde04ec255f / windows-mobile-65-usbserial-port?forum = windowsmobiledev  ,
使用蓝牙。 


" looking进入更现实的场景,例如将蓝牙与BT连接到连接到uC的串行端口适配器。"


最好的问候,


Hello,

We have an issue in which the USB connection is not properly made between a printer and an handheld computer (using win mobile 6.5). The printer use USB to emulate serial printing. We usually find the right COM port to use in the registry but, in some cases, the port cannot be found (and connection cannot be established with any of them). Theses cases I refer to are either when the device reboot while in the printer or when it goes to sleep (and came back while in the printer).

I wrote to the printer manufacturer (datamax; which also made the USB CDC driver) but did not get an answer. Do you think this is a driver issue or is it more related to the OS? Is there any way to fix this?

Thanks,

解决方案

Hi adumoulin,

From your description, you can't find the right COM port to use either when the device reboot while in the printer or when it goes to sleep. Maybe it is related with the driver of printer due to this issue will happen when then printer reboot or goes to sleep. Maybe it doesn't support the re-connect in the above condition. You can re-read the usb when the situation happens.

Or you take the suggestion there:https://social.msdn.microsoft.com/Forums/en-US/196e64b1-e67b-497b-bcb4-5bde04ec255f/windows-mobile-65-usbserial-port?forum=windowsmobiledev , using Bluetooth. 

"looking into more realistic scenarios such as using Bluetooth with BT to serial port adapter connected to uC."

Best regards,


这篇关于win mobile 6.5中的USB设备检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆