Giter Club home page Giter Club logo

Comments (7)

kamshory avatar kamshory commented on July 27, 2024

The device that I used to develop this library is not support RFID card.

from zklibrary.

kemboidickson avatar kemboidickson commented on July 27, 2024

has anyone managed to add the $cardNumber field?

from zklibrary.

not-mounam avatar not-mounam commented on July 27, 2024

has anyone find a solution to get or set the cardNumber?

from zklibrary.

anditsung avatar anditsung commented on July 27, 2024

$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.

kamshory avatar kamshory commented on July 27, 2024

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.

tehceen avatar tehceen commented on July 27, 2024

Does anyone found solution for how to read RFID card no and also write it on device? thanks

from zklibrary.

kemboidickson avatar kemboidickson commented on July 27, 2024

from zklibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.