Open dev-iot-jogja opened 3 years ago
getRealTimeLogs is not working with me too
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
Not working for me too, there is only one machine connected to the device. @dev-iot-jogja did you manage to fix this?
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
No other machine is connected. but still not working
@caobo171 any news here for this bug . still getting nothing with getRealTimeLogs
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?
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.
No, haven't found any resolution regarding this. still my work is pending on getRealTimeLogs issue
the python lib works fine
@danishthetechie encontraste alguna solución?
@dev-iot-jogja did you find a solution?
@dev-iot-jogja did you find a solution?
No, no solution found for real time logs
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
the python lib works fine which lib?
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 ?
No fix for this one?
Nope still On Wed, 7 Jun 2023 at 13:27 catajoynick @.***> wrote:
No fix for this one?
— Reply to this email directly, view it on GitHub https://github.com/caobo171/node-zklib/issues/26#issuecomment-1580714564, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMH6H3OLKI72AZ3FFYDFYM3XKBXSNANCNFSM4PHJQXYQ . You are receiving this because you commented.Message ID: @.***>
Oh, then I cant use this library then. Thanks for reply.
the python lib works fine
can you share with us code ?
Here my code
when I try to log, I found that checkNotEventTCP on getRealTimeLogs return CMD_ACK_OK not EF_ATTLOG or CMD_REG_EVENT
what should I do to make getRealTimeLogs working?