Giter Club home page Giter Club logo

Comments (20)

AlifElahi avatar AlifElahi commented on September 24, 2024 1

Hey, I am also facing the same issue. Has anyone found any workaround? (@danishthetechie, @MoradAbdelgaber )
@caobo171 brother have you happened to have some time to look at this?

from node-zklib.

mahrous78 avatar mahrous78 commented on September 24, 2024

getRealTimeLogs is not working with me too

from node-zklib.

caobo171 avatar caobo171 commented on September 24, 2024

Sorry for responding lately, but did you guys make sure that there'is no another machine connect to that device. Because even if it connected successfully but realtime event is not allowed for multiple devices

from node-zklib.

herormo avatar herormo commented on September 24, 2024

Not working for me too, there is only one machine connected to the device. @dev-iot-jogja did you manage to fix this?

from node-zklib.

danishthetechie avatar danishthetechie commented on September 24, 2024

No it is not connected. Could you please have a look, I tried several times.. I really need to do this pal. We can even skype, or call

from node-zklib.

danishthetechie avatar danishthetechie commented on September 24, 2024

No other machine is connected. but still not working

from node-zklib.

MoradAbdelgaber avatar MoradAbdelgaber commented on September 24, 2024

@caobo171 any news here for this bug . still getting nothing with getRealTimeLogs

from node-zklib.

ebgutierrez avatar ebgutierrez commented on September 24, 2024

Hi, I'm having the same issue here. Is there any update on this or any work around? I'm afraid to touch the core codes, also not that good with buffers and packets.

from node-zklib.

danishthetechie avatar danishthetechie commented on September 24, 2024

No, haven't found any resolution regarding this. still my work is pending on getRealTimeLogs issue

from node-zklib.

mahrous78 avatar mahrous78 commented on September 24, 2024

the python lib works fine

from node-zklib.

JorgeSolisC avatar JorgeSolisC commented on September 24, 2024

@danishthetechie encontraste alguna solución?

from node-zklib.

JorgeSolisC avatar JorgeSolisC commented on September 24, 2024

@dev-iot-jogja did you find a solution?

from node-zklib.

danishthetechie avatar danishthetechie commented on September 24, 2024

@dev-iot-jogja did you find a solution?

No,
no solution found for real time logs

from node-zklib.

aadrsh avatar aadrsh commented on September 24, 2024

when I try to log, I found that checkNotEventTCP on getRealTimeLogs return CMD_ACK_OK not EF_ATTLOG or CMD_REG_EVENT

@caobo171 @dev-iot-jogja
Yeah same here, Found that getRealTimeLogs function is exiting after checkNotEventTCP check
so I tried commenting out the check
I found out that the packet returned by machine is Regular Packet instead of a Realtime Packet,

Machine Reply after requesting Realtime data is still a Regular Packet
<Buffer 50 50 82 7d 08 00 00 00 d0 07 45 e5 e7 12 03 00>

Referring to https://github.com/adrobinoga/zk-protocol/blob/master/protocol.md
First 2 bytes of Regular Packet is Command ID, next 2 Bytes are Checksum, next 2 are sessionId and rest are reply number and data

But in case of realtime packet CommandID should be 500 But it is ACK_OK i.e. 2000 and instead of realtime event id it sends session ID thats why checkEventNotTCP is true

So.. what I think is the machine isn't sending realtime packets or if its sending then we are not receiving it
I am not good with sockets or js but this is what i came up with

from node-zklib.

shahria7k avatar shahria7k commented on September 24, 2024

the python lib works fine
which lib?

from node-zklib.

daoues1 avatar daoues1 commented on September 24, 2024

the python lib works fine
@mahrous78 it is'nt working for me with the python lib could you explain how did u make it work ?

from node-zklib.

catajoynick avatar catajoynick commented on September 24, 2024

No fix for this one?

from node-zklib.

daoues1 avatar daoues1 commented on September 24, 2024

from node-zklib.

catajoynick avatar catajoynick commented on September 24, 2024

Oh, then I cant use this library then. Thanks for reply.

from node-zklib.

Muddasir1 avatar Muddasir1 commented on September 24, 2024

the python lib works fine

can you share with us code ?

from node-zklib.

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.