Comments (7)
The device that I used to develop this library is not support RFID card.
from zklibrary.
has anyone managed to add the $cardNumber field?
from zklibrary.
has anyone find a solution to get or set the cardNumber?
from zklibrary.
$u = unpack('H144', substr($user_data, 0, 72));
$u1 = hexdec(substr($u[1], 2, 2));
$u2 = hexdec(substr($u[1], 4, 2));
$uid = $u1+($u2*256); // 2 byte
$role = hexdec(substr($u[1], 6, 2)).' '; // 1 byte
$password = hex2bin(substr( $u[1], 8, 16 )).' '; // 8 byte
$name = hex2bin(substr($u[1], 24, 48 )). ' '; // 24 byte
$card = hexdec(reverseHex(substr($u[1], 72, 8))). ' '; // 4 byte
$userid = hex2bin(substr($u[1], 98, 72)).' '; // 36 byte
$passwordArr = explode(chr(0), $password, 2); // explode to array
$password = $passwordArr[0]; // get password
$useridArr = explode(chr(0), $userid, 2); // explode to array
$userid = $useridArr[0]; // get user ID
$nameArr = explode(chr(0), $name, 3); // explode to array
$name = $nameArr[0]; // get name
how to get card from the database
from zklibrary.
Remember that this library is only to read attendance data and send it into your application. Card is not saved on the database but only on device. You are not necessary to read the card.
from zklibrary.
Does anyone found solution for how to read RFID card no and also write it on device? thanks
from zklibrary.
from zklibrary.
Related Issues (20)
- setTime() method not working as intended for me. HOT 1
- Clear Attendance Record
- How can I connect a devices with communication key (password protected devices)
- Can't connect to device with WiFi/WLAN connection
- Unable to connect to ZkTeco 4500 HOT 2
- X302-S
- How to connect with communication key / password HOT 1
- clearAttendance() HOT 4
- github provide the code for attendence machine but data not comes HOT 2
- G4 ZKTECO
- i cant push data to device (setUserTemplate )
- Webserver HOT 3
- save attendance in database HOT 2
- MB360 HOT 3
- Time out
- Disconnect function message
- Update user's attendance date/time.
- Check in/Check out
- Can not get attendance with running apache2 on Ubuntu HOT 1
- how to connect to codeigniter, please how
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zklibrary.