如何在不引发事件的情况下从BioTime4机器读取数据 [英] How to read data from BioTime4 machine without raising an event

查看:56
本文介绍了如何在不引发事件的情况下从BioTime4机器读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在开展一个项目,当有人从办公室进出时,我需要从冲床上读取数据

并将该数据添加到数据库中。

我们有一台来自Mantra Tech Software的BioTime4机器。当某人在机器上打卡时,它只会将数据保存在机器内部。

但是我不知道以哪种格式或在哪里?

我创建了一个示例项目并成功连接到端口5005上的机器

当该机器连接在该端口上时。

但是我不知道如何从那台机器上读取数据,即使那台机器在有人拿卡时没有发生任何事件。

当管理员点击按钮时,他们的系统使用ocx读取数据但是该代码在ocx文件中,因此无法从那里找到。



我们想要从系统中删除手动干预,并希望在我们公司的主数据库中获得实时数据。

我发布的示例代码使用端口连接到机器。



Hello,

I am working on a project where I need to read the data from punching machine when someone in/out from the to/from office
and add that data to the data base.
We have a BioTime4 machine from Mantra Tech Software. When some one punch the card on machine it will save the data inside machine only.
But I don't know in which format or where?
I create a sample project and get connected successfully to the machine on port 5005
as that machine connected on that port.
But I don't know how to read data from that machine, even that machine not rasing any event when someone puch the card.
Their system reading data using ocx when admin click on button but that code is in ocx file so not able find from there.

We want to remove manual intervention from the system and want real time data in our company master database.
I am posting my sample code which gets connected to the machine using port.

using System.Net;
using System.Net.Sockets;

try
{
    var endpoint = new IPEndPoint(new IPAddress(new byte[] { 192, 168, 0, 232 }), 5005);
    var socket = new Socket(endpoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
    socket.Bind(new IPEndPoint(new IPAddress(new byte[] { 192, 168, 0, 67 }), 5005));

    socket.Connect(endpoint);
    MessageBox.Show("Connected...");
}
catch (Exception ex)
{
    MessageBox.Show(ex.Message);
}







有人可以提供想法或其他链接,我可以继续前进。



谢谢




Can some one give idea or other link where I can proceed further.

Thanks

推荐答案

嗨Tarun,



如果您发现了与此相关的内容,请告诉我们。



谢谢
Hi Tarun,

Let know if you found something related to this.

Thanks


这篇关于如何在不引发事件的情况下从BioTime4机器读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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