ondercode
TR EN
Desktop, 2026 In progress

OnderCode Mesai

An attendance, timesheet and payroll app that drives an Anviz fingerprint terminal directly. Live scan tracking, fingerprint backup, night shifts, a device screen designer and a welcome screen on a second monitor. Built with Onda; source code not published.

OnderCode Mesai screenshot 1 OnderCode Mesai screenshot 2 OnderCode Mesai screenshot 3 OnderCode Mesai screenshot 4 OnderCode Mesai screenshot 5 OnderCode Mesai screenshot 6 OnderCode Mesai screenshot 7 OnderCode Mesai screenshot 8 OnderCode Mesai screenshot 9 OnderCode Mesai screenshot 10 OnderCode Mesai screenshot 11

A Windows app that drives an Anviz fingerprint terminal directly. Employee enrollment, live check-in/out, timesheets and payroll in one program; the vendor's own software isn't needed. Built for small shift-based businesses (shops, cafés, workshops).

The whole UI is built with Onda components. This is a personal project; the source code and installer are not published. This page explains how the app works.

Highlights

The device

Tested with an Anviz TC-series terminal that identifies itself as "TC-E-N".

Feature On this device
Verification Fingerprint; card and PIN fields also exist
Fingers per person 2 slots
Name on screen Up to 10 characters
Connection Ethernet, TCP 5010; connected straight to a PC, both get an automatic IP
Sending records Pushes each scan to the PC instantly; stores them while offline
Door Relay output (lock or bell), door sensor
Limits we found Doesn't tell check-in from check-out; its clock can drift

Talking to the device

The app connects on TCP port 5010. Each command is a frame: start byte (0xA5), device ID, command code, data length, data and a CRC16 checksum. The device answers with the same frame plus a status byte. Packets are built by the open-source MxLabs/Anviz library, which I fixed and extended for this device.

  1. If it can't connect within 6 seconds it reports "no answer" and the app keeps working.
  2. On connect, the device clock is synced to the PC.
  3. Model, serial number, firmware, capacity and pending record count are read.
  4. Scans made while the app was closed are pulled at once and marked as read on the device.
  5. After that the device pushes every scan itself; the app saves it immediately.

For reliability:

Screens

Timesheet and payroll rules

Since the device doesn't tell check-in from check-out, the rules rely on scan order:

Item Hourly Monthly
Base Normal hours × hourly wage Monthly wage (pro-rated if hired mid-month)
Overtime Overtime hours × hourly wage × 1.5 Overtime hours × (monthly / 225) × 1.5
Missing hours — Missing hours × (monthly / 225), can be turned off

Net = base + overtime − missing hours + bonus − advance − deductions. The factors can be changed in Settings. The calculation excludes social security and tax; it's for internal tracking.

Technology

Layer Technology
Language and platform C#, .NET 10 (Windows)
UI Windows Forms + Onda
Database SQLite, single file
Device protocol Built on MxLabs/Anviz (MIT)
Drawing GDI+ (device screen preview, fingerprint image, welcome screen)
Tests xUnit; 10 tests cover timesheet, night-shift and payroll rules

Timesheet and payroll logic lives in a separate layer with no UI dependency, so the rules are tested without the UI. The UI never talks to the device directly; every command goes through a single device service.

Limits

Comments

No comments yet. Be the first to share what you think.

Leave a comment

Comments appear after I review them.