Click here to Skip to main content
15,905,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

C#
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
Posted
Updated 22-Oct-13 21:39pm
v2
Comments
Richard MacCutchan 23-Oct-13 3:40am    
Contact the manufacturer and ask for their technical documentation. They may also provide support libraries as well.
CPallini 23-Oct-13 3:46am    
(virtual) 5.
Richard MacCutchan 23-Oct-13 3:52am    
Thanks, you have to wonder at some of these "developers" :(
BillWoodruff 23-Oct-13 4:25am    
I have always wondered (well, since the 1970's, anyway) at the way today's hardware hackers turn out to be the future's programmers :)
Richard MacCutchan 23-Oct-13 9:11am    
Is it just because the internet exists that we see this sort of question, or is there something fundamental missing from modern education?

1 solution

Hi Tarun,

Let know if you found something related to this.

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900