Biometric Attendance: Matrix COSEC Terminals (Device API) - Event Import, User Sync, Time Sync
by Viyug Infotech https://viyuginfotech.com$ 184.08

Matrix COSEC terminals in Odoo Attendances.
Read Matrix COSEC door controllers and attendance terminals directly with the COSEC Devices API, without a COSEC CENTRA server. Odoo follows the device event log with its roll-over and sequence cursor, turns user allowed events into punches, uses the Clock-IN / Clock-OUT special functions as keys and sends employees as COSEC users.
No CENTRA needed Roll-over cursor Clock-IN / OUT keys
Free setup call with every purchase
After you buy, book a free 30-minute online call: we install the app with you and set it up for your company. Questions are answered within 24 hours, Monday to Saturday, at support@viyuginfotech.com or on WhatsApp (QR code at the end of this page).
COSEC data usually goes through another server first
Indian factories and offices run COSEC terminals with a CENTRA server and export attendance into payroll by hand.
Before
- CENTRA export, then import into Odoo
- Users created twice, in CENTRA and Odoo
- Clock differences between doors
After
- Odoo reads the terminal directly
- Employees sent from Odoo
- Drift alarm and time sync per door
How it works
Connect
IP and the device web login; the wizard reads the device.
Import
Events are read in pages of 100 from the stored cursor.
Users
Employees are sent as COSEC users.
Attendance
Punches are paired by your policy, night shifts included.
What you get
COSEC Devices API
device.cgi requests with basic authentication over HTTP or HTTPS.
Event cursor
Roll-over count and sequence number stored per device: no event read twice, none skipped when the sequence wraps.
Special functions as keys
Clock-IN / Clock-OUT, official and overtime IN / OUT codes give the in / out direction.
Users from employees
Employees sent as COSEC users with numeric reference ID and name; delete users.
Time sync
Device clock read (GMT) for drift, set from Odoo.
Same engine
Pairing policies, night shifts, exceptions and live monitor of Biometric Attendance.
How it compares
| Feature | This app | Typical alternatives |
|---|---|---|
| Direct device API, no CENTRA server | Yes | Rarely |
| Roll-over / sequence cursor | Yes | No |
| Clock-IN / OUT special functions | Yes | No |
| Users sent from employees | Yes | No |
| Pairing policies, exceptions queue | Yes | No |
Setup in 5 steps
Install Matrix COSEC Terminals (Biometric Attendance is installed with it).
Enable the device API and note its web login.
Biometric > Configuration > Setup Wizard > Matrix COSEC, Test Connection.
Send Employees to the device.
Choose which event detail holds the special function code.
Workflow walkthrough
Step by step through a real run. Real Odoo screens, fictional company and employees; terminal traffic from protocol-accurate device simulators.
Connect the COSEC terminal
Setup Wizard > Matrix COSEC: IP and the device web login. Test Connection reads the device and its clock.

Event cursor per device
The device form shows the roll-over count and next sequence number Odoo continues from, and which event detail holds the Clock-IN / OUT code.

User allowed events become punches
Events read in pages of 100: Clock-IN and Clock-OUT special functions give the key of each punch.

Users and time from Odoo
Employees sent as COSEC users and the device clock set, through the same command queue.

Night shift paired correctly
The night guard checks in at 20:00 and out after 05:00 on the plant door: one attendance per shift thanks to the night shift policy.

What you need
This app is built on Biometric Attendance, another Viyug Infotech app. Odoo installs it together with this app, so you also get everything below.
Biometric Attendance
Technical name viyug_biometric_attendance
The attendance engine: ZKTeco / eSSL push and LAN devices, pairing engine and exceptions queue.
- ADMS push endpoint (cloud server mode) and LAN pull over port 4370
- Raw punch log stored once; resends after reboots are ignored
- Pairing engine: first in / last out, split shifts, device keys, night shifts, breaks
- Exceptions queue for unknown users, missing check-outs, offline devices and clock drift
- Send or delete employees on devices, copy fingerprints, sync the time
- Command queue with retry, live monitor and setup wizard



Questions
Which COSEC models?
Terminals and door controllers answering the COSEC Devices API (device.cgi): ARGO, VEGA, PATH and Door series.
Event times in local time or GMT?
Local time by default; tick "Event Times in GMT" on the device if your firmware reports GMT.
Can Odoo list the users of the terminal?
The device API reads one user at a time, so users are managed from Odoo: send and delete.
Has it been tested on a real COSEC terminal?
It follows the public COSEC Devices API guide and is tested against a simulator of that API; tell us your model and we validate with you.
Extensions
One engine, one add-on per device brand. Each add-on includes the Biometric Attendance engine.
Biometric Attendance
The engine: ZKTeco / eSSL push (ADMS) and LAN pull, pairing engine, exceptions, live monitor, command queue.
View appHikvision Face Terminals
ISAPI with digest login, real-time event push, event log import, persons with face photo and card.
View appMatrix COSEC Terminals
COSEC device API: event import with roll-over cursor, Clock-IN / OUT keys, user and time sync.
You are hereNeed a hand?
Questions about your terminal model, cloud server settings or pairing rules? Write to us and Viyug Infotech will get back to you.
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to chat on WhatsApp or write us an email:

+91 83207 42187

Send us an email
Release notes
Initial release
- COSEC Devices API client
- Event import with roll-over cursor
- Special function keys
- Users and time from Odoo
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Attendances (hr_attendance)
• Discuss (mail) • Employees (hr) |
| Community Apps Dependencies | Show |
| Lines of code | 3673 |
| Technical Name |
viyug_biometric_matrix |
| License | OPL-1 |
| Website | https://viyuginfotech.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module