使用RS-232C模式在C#中读取条形码。 [英] Bar code reading in C# using RS-232C Mode.

查看:79
本文介绍了使用RS-232C模式在C#中读取条形码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想在RS-232c模式下使用扫描仪读取条形码。我使用键盘楔模式完成了相同的操作,但是相同的解决方案并不合适,因为使用此模式需要始终激活表单。我购买的扫描仪是usb扫描仪,支持键盘和RS-232模式(型号为TVS-e BSC 101星)。我搜索usb以配合Windows 7的驱动程序,但无法找到任何合适的驱动程序。有谁知道哪个驱动程序将USB转换为虚拟COM端口或者我必须购买usb到rs-232转换器。

Hi,

I want to read bar code using scanner in RS-232c Mode. I have done same using keyboard wedge mode but the same solution is not appropriate as forms need to be active at all time using this mode. The scanner i have purchased is usb scanner which supports both keyboard and RS-232 mode(Model number is TVS-e BSC 101 star). I searched for usb to comport driver for windows 7 but could'nt found any appropriate driver. Do anyone have idea which driver is there which converts usb to virtual com port or I have to purchase usb to rs-232 converter.

推荐答案

与制造商联系 - 如果该设备通过USB端口支持RS232模式,那么很可能你只需要将它设置为模式,它应该在Windows中显示为一个comport。然后,您可以通过标准的.NET SerialPort类连接到它并读取它的数据。



如果不是并需要特定的驱动程序,那么几乎可以肯定只有从制造商处获得,所以无论如何都要从它们开始!
Talk to the manufacturer's - if the device supports RS232 mode via a USB port, then very probably all you have to do is set it to the mode and it should appear as a comport in Windows. You can then connect to it via a standard .NET SerialPort class and read it's data.

If it isn't and needs a specific driver, then you will almost certainly only get that from the manufacturers, so start with them anyway!


这篇关于使用RS-232C模式在C#中读取条形码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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