Command 0101 (Get Employee)

Start  Zurück  Weiter

User has entered an id-card number,  retrieve employee data from server.

 

1 data field is send to the server

 

1.) id-card number

 

The id-card number is '44'

Client request:

+-------+-+-----------+-----------+

|0 1 0 1|0|0 0 0 0 1 7|4 4|0 1 0 1|

+-------+-+-----------+-----------+

 

 

Server answer:

If id-card number is valid and the employee is allowed to punch

4 datafields separated with TAB (ASCII 9)

 

1.) Company number

2.) Employee number

3.) Employee name or matchcode

4.) Employee is foreman ('0'=No,'1'=Yes)

 

 

Compay number is '0', employee number is "00002", employee name is 'Miller', employee is not a foreman

+-------+-+-----------+-------------------------------+-------+

|0 1 0 1|1|0 0 0 0 3 1|0 ¤ 0 0 0 0 2 ¤ M i l l e r ¤ 0|0 1 0 1|

+-------+-+-----------+-------------------------------+-------+

 

 

 

If id-card number is invalid (i.e. no such employee) or the employee isn't allowed to punch (retired, on vacancy etc.) the server returns an empty answer.

+-------+-+-----------+-------+

|0 1 0 1|1|0 0 0 0 1 5|0 1 0 1|

+-------+-+-----------+-------+