-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please solve my problem. It's important #2
Comments
Same problem for me please help |
which method ? |
@JubaerHossain While running your sample code, the device connects but on getAttendances function, this error comes up. These are my logs
|
Basically, the response Header commandId is coming in to be 2005 (CMD_ACK_UNAUTH) where as the expected commandId is 1501 (CMD_DATA) Any idea why this is happening? |
@aqibbangash @JubaerHossain can you solve the problem? TypeError: Cannot read properties of undefined (reading 'subarray') Node.js v21.1.0 |
I am working to acquire the registration reports for an access control and attendance model SpeedFace-V5L from the zkteco brand. I have another K20 model device and the code works perfectly, it can recover information about the device, user, and most importantly the attendance records, but when trying the same on the SpeedFace-V5L it recovers information about the device, users, but not the sold records. . Already review the structure of the library and it is very simple, there is a function that is responsible for reading all the outputs of the socket after connecting to the device. This connection collects all the available elements, as follows: requestData(msg) {
the variable responseBuffer = Buffer.concat([replyBuffer, data]) is responsible for storing available elements that the socket throws through the buffer into an array, when debugging the contestBuffer array of the k20 device it contains 27 elements, while the device SpeedFace- V5L only selects 16, the curious thing here is that when pairing selects the elements under the 'data' statement that is declared in: |
its not working and shows the error below..
ok tcp
Promise Rejected
c:\node-zklib\node_modules\zk-jubaer\src\jtcp.js:246
const header = decodeTCPHeader(reply.subarray(0, 16))
^
TypeError: Cannot read properties of undefined (reading 'subarray')
at c:\node-zklib\node_modules\zk-jubaer\src\jtcp.js:246:44
Node.js v21.1.0
here the reply is null.what can i do?If any other settings required tell me. I give my ip adress which is connected with my device and it's also connected with zkteco software.
The text was updated successfully, but these errors were encountered: