如何使用串行端口连接到访问ID OCR316 [英] How can I connect to access-ID OCR316 using serial port

查看:65
本文介绍了如何使用串行端口连接到访问ID OCR316的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,

我有OCR316护照阅读器,但我无法将其与我的C#应用​​程序集成我已经下载了MTTTY.exe应用程序并测试了该设备并且它正在工作正确。



有谁知道如何连接到这个设备?

谢谢。



我尝试了什么:



我尝试使用串口连接,因为我通常会这样做但是仍然没有能够接收数据。

谢谢。

Dear Sir,
I have OCR316 passport reader, but I am not able to integrate it with my C# application I already downloaded the "MTTTY.exe" application and tested the device and it is working properly.

Do anyone have an idea how can I connect to this device?
Thanks.

What I have tried:

I tried to connect using serial port as I do usually but no still not able to receive data.
Thanks.

推荐答案

从数据表:

From the datasheet:
引用:

USB 2.0接口(USB HID,键盘和虚拟串行接口)

USB 2.0 interface (USB HID, keyboard and virtual serial interfaces)



相关文档可在入门:ID文档读者 [ ^ ]。

下载并阅读提供的文档和软件。快速查看软件档案显示其中包含其他文档(例如,ASPS驱动程序存档中有 ASPS_InstallationAndConfiguration.pdf 文件)。



本手册和上述PDF说明了如何设置设备。他们还解释了大多数操作模式都是单向的(仅限PC输入)。因此,在扫描开始后,您应该在侦听虚拟键盘或串行端口时接收数据。



以上PDF还说明了使用MTTY程序时波特率,数据位,停止位和奇偶校验无关紧要。这表示程序使用必须确定的固定设置(通过阅读其他文档或联系制造商支持)。但是,MTTTY手册中的屏幕截图显示为9600 8N1。它还提到CR应该转换为CR-LF。这表示数据被发送CR终止,这反过来表明数据是作为文本发送的。



知道这一点,你应该能够在实现串行通信时接收数据。设备使用的虚拟端口。


Related documents can be found at Getting Started: ID Document Readers[^].
Download and read the provided documentation and software. A quick look into the software archives show that those contain additional documentation (e.g. there is a ASPS_InstallationAndConfiguration.pdf file in the ASPS driver archive).

The manual and the above PDF explain how to setup the device. They also explain that most operation modes are unidirectional (PC input only). So you should receive data when listening on the virtual keyboard or serial port after a scan has been started.

The above PDF states also that baud rate, data bits, stop bits, and parity does not care when using the MTTY program. This indicates that the program uses fixed settings which must be determined (by reading other documentation or contacting the manufacturer support). However, the screen shots in th MTTTY manual show 9600 8N1. It mentions also that CR should be converted to CR-LF. This indicates that data are send CR terminated which in turn indicates that data are send as text.

Knowing this you should be able to receive data when implementing serial communication on the virtual port used by the device.


这篇关于如何使用串行端口连接到访问ID OCR316的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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