bulentv / js_zklib

Attendance Machine Library for NodeJS with a connection to the network using the UDP protocol and port 4370
GNU General Public License v2.0
56 stars 46 forks source link

getuser function with no data #7

Open windgaucho opened 6 years ago

windgaucho commented 6 years ago

Hello, I am trying to get all my users from my device. I am executing the following code:

import ZKLib from 'zklib';

class ZKLector {
  constructor() {
    this.zk = new ZKLib({
      ip: '192.168.1.201',
      port: 4370,
      inport: 5200
    });
  }

  getUsers() {
    console.log('getUsers');
    this.zk.connect((err, buffer) => {
      if (err) {
        return console.log('Error connect', err);
      }
      this.zk.getuser((err, data) => {
        if (err) {
          console.log('error getUser', err);
        }
        console.log('DATA GETUSER ====>', data);
      });
    });
  }
}

When I call my class method getUsers() nothing happens. So I try to debug the zklib getuser() function. In the getuser() function of the library and in the case self.STATE_PACKET: I printed a console.log() inside the while in order to print the user variable and I can confirm that the function is getting all my users from the device, but in my case the function never reach the case self.STATE_FINISHED: statement so I think that it never execute the callback function and I that is why (I think) I am not getting the data inside my class function.

The case sentence of the getuser function that is never reached:

        case self.STATE_FINISHED:
          self.socket.removeAllListeners('message');
          self.socket.close();
          cb(null,users);
          break;

Can you please help me whit this problem ?

windgaucho commented 6 years ago

I was trying to debug a little bit more and I found that the var total_bytes never gets equals to bytes_recv, so the var state is never set toSTATE_FINISHED value (state = self.STATE_FINISHED;). In my test the total_bytes = 9888 and the var bytes_recv reach a value of 9868.

Maybe my device is not compatible with this library?

Can you please point me in the right direction?

mribichich commented 6 years ago

@windgaucho Please check with the latest version on master, because we fixed an issue justo today exactly for the same reason

I tested it and it works fine. My zk firmware version is 6.60

windgaucho commented 6 years ago

@mribichich thank you, I will check it out and let you know

mribichich commented 6 years ago

@windgaucho Were you able to test this? thanks

windgaucho commented 6 years ago

@mribichich Sorry about the delay, I am working in the front end part of my app, so I have no time to test it. In the next couple of days, I will test the library and I will let you know.

mribichich commented 6 years ago

@windgaucho Have any news?

windgaucho commented 6 years ago

Hello!! please forgive me for de long delay, I was not able to get the device for test the library. Finally I could get the device for this weekend so here I am testing the library.

When I execute the getUser function I can not get any result. Nevertheless, I am debuggin with console.log inside of the getUser function, in the line 185 if I place a:

console.log('USER', user)

I am getting the users from the device with the following format:

USER { uid: 19712,
  role: 0,
  password: '',
  name: '',
  cardno: 4907776,
  userid: 'SALAZAR,' }
USER { uid: 255,
  role: 65535,
  password: ':GAITAN,',
  name: ' ',
  cardno: 1329811009,
  userid: '{H' }
USER { uid: 17237,
  role: 53569,
  password: 'N',
  name: '',
  cardno: 65536,
  userid: ':ADRIANA,' }
USER { uid: 117,
  role: 18432,
  password: '',
  name: ':LEON, MA',
  cardno: 4294967040,
  userid: '' }

I don't know from where the value of the role field come... and also why some values have the password set (I never set the password value).... also the card number is never seted in the device....

And I think that I am not getting any value when I execute the getUser function, because this sentence:

 if (bytes_recv == total_bytes) {
....

is never equal !!, in this case the total variable(total_bytes) is 9888 and the max value reached by the bytes_recv variable is 9868. So the function never return de result.

Can you please help me?

I will get the device for the weekend

mribichich commented 6 years ago

Hi there, did you update to latest version? It's clear that the parsing its getting move or has an invalid offset, thats why the password field has something

I would need the buffer data to check the parsing.

Insert a console.log(reply.toString('hex')) at the beginning of the handle function, and post the result please

something like this:

const handleOnData = reply => {
     console.log(reply.toString('hex'))

      reply = this.connectionType === ConnectionTypes.UDP ? reply : removeTcpHeader(reply);
windgaucho commented 6 years ago

@mribichich thank you for your response. I am using the 0.2.10 version.

I placed the console.log like you sugest and this is the result:

dc059f18e2b60200a026000000040000
dd052bfe000002009c2600006c4d0000e61900fa414c564152455a2c00000000000100006c4d0000193e0000ffffff3a4352555a2c2041420000000000010000193e000088470100ffffff3a415a434152415445000000000001000088470000b1470100ffffff3a524f47412c20464c0000000000010000b14700002d490100ffffff3a4553434f4241522c00000000000100002d490000ac3e0000ffffff3a4d454e55544f2c200000000000010000ac3e000075450100ffffff3a444f4e414952452c000000000001000075450000234d0100ffffff3a42555354414d414e0000000000010000234d0000214d0100ffffff3a534549464552542c0000000000010000214d0000a4410100ffffff3a534944452c2043410000000000010000a4410000294d0100ffffff3a50415353414c49530000000000010000294d00009f4a0100ffffff3a494e4f5354524f5a00000000000100009f4a00000b3f0000ffffff6a44494f52494f2c2000000000000100000b3f0000774c0100ffffff3a42524944452c20520000000000010000774c00002f4d0000ffffff3a5155455243492c2000000000000100002f4d00003c410100ffffff3a434152455454412c00000000000100003c410000b83f0100ffffff3a41595a454e5a5a540000000000010000b83f0000f4490100ffffff3a52414d53455945520000000000010000f4490000224d0100ffffff3a4252414d414a4f2c0000000000010000224d000082420000ffffff3a46414c4956454e45000000000001000082420000fb4c0100ffffff3a524f4348412c204a0000000000010000fb4c0000df4b0000ffffff3a524f412c204341520000000000010000df4b0000724d0000e74800d257494c534f4e2c200000000000010000724d0000e2470100ffffff3a4752414e542c204d0000000000010000e247000006410000ffffff3a41484d45442c20520000000000010000064100005b4d0100ffffff3a5041455a2c204a4100000000000100005b4d0000144c0000ffffff3a4d41525155455a2c0000000000010000144c0000464d0000ffffff3a524f4d45524f2c200000000000010000464d0000654d0000e721005a4152414e4544412c0000000000010000654d0000fa4b0000ffffff3a4b4153544c492c200000000000010000fa4b0000ea4c0100ffffff3a53494c56412c20470000000000010000ea4c0000694d0000e72b00024241534355522c200000000000010000694d0000bd410000ffffff3a5649454c4d412c200000000000010000bd410000be410000ffffff3a50524f53542c204d0000000000010000be410000fb4b0000ffffff3a4c4156412c204a410000000000010000fb4b0000664d0000e721005a4d4152414e47454c0000000000010000664d0000a4420000ffffff3a4d415254
dd05587b01000200494e455a0000000000010000a442000044450100ffffff3a53554152455a2c20000000000001000044450000674d0000e721005a4e55d1455a2c204d0000000000010000674d0000c1420100ffffff3a53454e412c2045530000000000010000c142000019430000ffffff3a4341535441d14f2c00000000000100001943000026430000ffffff3a524f445249475545000000000001000026430000734d0000e74800d2504552455a2c20500000000000010000734d00003b4d0100ffffff3a434152555a5a4f2c00000000000100003b4d0000653f0100ffffff3a48454e52495155450000000000010000653f0000ef4c0100ffffff3a4a4152412c204d410000000000010000ef4c00001f4d0100ffffff3a4d4152444f4e455300000000000100001f4d0000274c0100ffffff3a4b4e494e4b2c204c0000000000010000274c0000fc4c0100ffffff3a5343494c49504f540000000000010000fc4c000038440000ffffff3a44454c4c27204f52000000000001000038440000574d0100ffffff3a43524553534154540000000000010000574d0000394d0100ffffff3a4241524945524f2c0000000000010000394d0000364c0100ffffff3a524f4d45524f2c200000000000010000364c00009e4b0000ffffff3a4153434f4e2c204c00000000000100009e4b0000f6440100ffffff3a524946464f2c20590000000000010000f6440000584c0100ffffff3a4755495a5a4152440000000000010000584c000064450100ffffff3a414e45534554544900000000000100006445000056440000ffffff3a4d4152444f4e4553000000000001000056440000d2450100ffffff3a4c55445545d1412c0000000000010000d2450000a2450000ffffff3a5155494a4144412c0000000000010000a2450000a0480100ffffff3a47555a4d414e2c200000000000010000a04800000c4d0100ffffff3a53414e54414e544f00000000000100000c4d00004e470000e42200624c454956412c204700000000000100004e470000264d0100ffffff3a424f52474f474e410000000000010000264d000052470000ffffff3a524f445249475545000000000001000052470000114b0100ffffff3a4e414855454c414e0000000000010000114b0000244d0100ffffff3a50454c4c454741540000000000010000244d0000684d0000e721005a43415256414a414c0000000000010000684d0000544d0100ffffff3a434849414e492c200000000000010000544d0000c84c0100ffffff3a4755495a5a4152440000000000010000c84c0000fe4c0100ffffff3a4d454e4a49444f2c0000000000010000fe4c0000304a0100ffffff3a56454c415a5155450000000000010000304a000070460100ffffff3a56415241532c2042000000000001000070460000
dd05577902000200ca4c0100ffffff3a41524455494e2c200000000000010000ca4c000052430100ffffff3a524f4a41532c2050000000000001000052430000564d0100ffffff3a43414d504f532c200000000000010000564d0000424d0100ffffff3a42414c53494d454c0000000000010000424d00006d4d0000e72a00ea544f52494e4f2c2000000000000100006d4d0000ff4c0100ffffff3a524f4348412c204a0000000000010000ff4c0000434d0000ffffff3a415049474e414e450000000000010000434d0000804d0000e3140072414755494c45524f0000000000010000804d0000264b0100ffffff3a54455354452c204d0000000000010000264b0000c34b0100ffffff3a47555a4d414e2c200000000000010000c34b00006e4c0100ffffff3a4241524741532c2000000000000100006e4c00007c460000ffffff3a4649542c20524f4200000000000100007c460000c0450100ffffff3a524f4452494755450000000000010000c0450000254d0100ffffff3a4345504544412c200000000000010000254d0000274d0100ffffff3a5641535155455a2c0000000000010000274d0000f03e0000ffffff3a54415049412c20450000000000010000f03e0000284c0100ffffff3a4755414c44412c200000000000010000284c0000004d0100ffffff3a41524f43412c20520000000000010000004d0000284d0100ffffff3a4152414e44412c200000000000010000284d00001d4d0100ffffff3a4c4f50455a2c205300000000000100001d4d00002a4d0100ffffff3a4156494c412c204a00000000000100002a4d0000884a0100ffffff3a425553544f2c20460000000000010000884a0000344d0100ffffff3a43484f52542c20530000000000010000344d00006a4d0000e72b0002424f5244412c204300000000000100006a4d0000684b0100ffffff3a43414d45524120430000000000010000684b00004d4b0000ffffff3a534f5249412c204a00000000000100004d4b00003c4d0100ffffff3a52494f532c204a5500000000000100003c4d0000f34b0000ffffff3a494e46414e54452c0000000000010000f34b0000534b0100ffffff3a415252454755492c0000000000010000534b0000564c0000ffffff3a4d49414e4f2c204d0000000000010000564c00007a4d0000e92200ba4c4552412c20434100000000000100007a4d0000014d0100ffffff3a43524553504f2c200000000000010000014d000043460100ffffff3a52455945532c2053000000000001000043460000204d0100ffffff3a4d4152444f4e45530000000000010000204d0000474d0100ffffff3a53414e4348455a2c0000000000010000474d0000da460000ffffff3a5049555452494e2c0000000000010000da4600007e4b0100ffffff3a494241d1455a2c20
dd05c1f70300020000000000000100007e4b0000594d0100ffffff3a56494c4c454741530000000000010000594d00003d4d0100ffffff3a4d415254494e2c2000000000000100003d4d0000024d0100ffffff3a4d414c4142452c200000000000010000024d0000e5470100ffffff3a424152524552412c0000000000010000e5470000834d0000e6290062544954414e54492c0000000000010000834d000056480100ffffff3a4845524e414e4445000000000001000056480000ec480100ffffff3a424f484f525155450000000000010000ec480000df4a0000e52d00b2504f524d414e2c200000000000010000df4a0000564b0100ffffff3a455350494e4f5a410000000000010000564b00006e4d0000e72a00ea524f4d45524f2c2000000000000100006e4d0000354d0100ffffff3a5a414d4252414e4f0000000000010000354d0000714d0000e92f00124c414252494e2c200000000000010000714d00005a4d0100ffffff3a4c495a41534f2c2000000000000100005a4d0000844b0000ffffff3a44555249532044550000000000010000844b0000034d0100ffffff3a4d414c4142452c200000000000010000034d000002000100ffffff3a007214753a7214750000000000010000fe4b0000364d0000ffffff3a434f5256414c414e0000000000010000364d0000044d0100ffffff3a504552455a2c20470000000000010000044d0000c04c0000ffffff3a4a494d454e455a2c0000000000010000c04c00002b4d0100ffffff3a4c4152524f51554500000000000100002b4d00006f4d0000e72a00ea524f4d45524f2c2000000000000100006f4d00003e4d0100ffffff3a5a414e455454492c00000000000100003e4d0000054d0100ffffff3a4b554c49535a2c200000000000010000054d00002c4d0100ffffff3a524f4d45524f2c2000000000000100002c4d00003a4c0100ffffff3a414c414e495a2c2000000000000100003a4c0000eb4c0100ffffff3a4645524e414e44450000000000010000eb4c0000e34b0100ffffff3a4d455a492c2053490000000000010000e34b0000064d0100ffffff3a434f524f4e412c200000000000010000064d00006f3e0000ffffff3a43414e544552412c00000000000100006f3e0000074d0100ffffff3a4d455a412c204d410000000000010000074d00008b470000ffffff3a59414e452c20524f00000000000100008b470000084d0100ffffff3a4d455a412c204d410000000000010000084d0000704d0000e72a00ea524f4d45524f2c200000000000010000704d00005c4d0100ffffff3a4d4f4e5a4f4e2c2000000000000100005c4d0000484d0100ffffff3a53414e4348455a2c0000000000010000484d0000264c0100ffffff3a534f544f2c2053410000000000010000264c0000ad4b0100
dd05f66004000200ffffff3a434f4e54524552410000000000010000ad4b0000f04c0100ffffff3a424152524f532c200000000000010000f04c00007a4b0100ffffff3a534947564152442c00000000000100007a4b00004a4d0000ffffff3a415252454755492c00000000000100004a4d00001a470100ffffff3a4b414c54454e424100000000000100001a4700005d480100ffffff3a564152454c412c2000000000000100005d480000314a0000e4220062414c42495a552c200000000000010000314a00002d4c0100ffffff3a59414e455a2c204600000000000100002d4c00008b4b0000ffffff3a4649475545524f4100000000000100008b4b00003d410100ffffff3a4e55d1455a2c204a00000000000100003d410000824d0000e52d00b2524f4c44414e2c200000000000010000824d0000c8450100ffffff3a43415354494c4c4f0000000000010000c8450000f83f0100ffffff3a434f524445524f2c0000000000010000f83f0000b54b0000e946005a464f524e45524f4e0000000000010000b54b000076460000ffffff3a47555a4d414e2c2000000000000100007646000062460100ffffff3a4c41535452412c20000000000001000062460000f64b0000ffffff3a4d415a5a4f4e492c0000000000010000f64b0000844d0000e6290062414d49434f4e452c0000000000010000844d0000dd480100ffffff3a434153494d49524f0000000000010000dd480000364a0000ffffff3a504f424c45542c200000000000010000364a0000114d0100ffffff3a56494552412c20560000000000010000114d0000f64a0100ffffff3a43494655454e54450000000000010000f64a0000174d0100ffffff3a53554152455a2c200000000000010000174d0000584d0100ffffff3a53414e444f56414c0000000000010000584d0000494d0100ffffff3a4d4f4e54455345520000000000010000494d0000c0470100ffffff3a494241d1455a2c200000000000010000c0470000374d0000ffffff3a44414c494e4745520000000000010000374d00000b4c0000ffffff3a4445204c4c414d4100000000000100000b4c0000444d0100ffffff3a43415252495a4f2c0000000000010000444d0000774b0100ffffff3a504f4e43452c20430000000000010000774b00005d4d0100ffffff3a434f5050412c204a00000000000100005d4d00008f460000ffffff3a524f5341532c204400000000000100008f460000094d0100ffffff3a5354414349554b2c0000000000010000094d0000d64c0100ffffff3a525553534f2c204a0000000000010000d64c00003f4d0100ffffff3a504552455a2c204c00000000000100003f4d00005e4d0000e42200625343414c4f52412c00000000000100005e4d00002d4d0100ffffff3a475545525245524f00000000
dd05af5f05000200000100002d4d00004b4d0000ffffff3a4d554e495a41474100000000000100004b4d00006b4a0000ffffff3a4f425245474f4e2c00000000000100006b4a0000d54c0100ffffff3a4f564945444f2c200000000000010000d54c0000744d0000e74800d24d41524941204c410000000000010000744d0000c1490100ffffff3a43415354454c4c410000000000010000c1490000004a0100ffffff3a464f4e534543412c0000000000010000004a0000404d0100ffffff3a414755495252452c0000000000010000404d0000404c0100ffffff3a4c415341474e4f2c0000000000010000404c00000a4d0100ffffff3a4d415355442c204100000000000100000a4d00005d470000ffffff3a424152424f4e412c00000000000100005d4700004c4d0000ffffff3a4d415243555a5a4900000000000100004c4d00004d4c0100ffffff3a5349d1414e45532c00000000000100004d4c00005f4d0000e4220062564152454c412c2000000000000100005f4d00004e4c0000ffffff3a5349d1414e49532c00000000000100004e4c0000304d0100ffffff3a43484156455a2c200000000000010000304d0000ae4b0100ffffff3a53555445522c20450000000000010000ae4b0000184d0100ffffff3a50494e43484549520000000000010000184d0000414d0000ffffff3a4c4f50455a2c204a0000000000010000414d0000604d0000e51e00b24c415641434152410000000000010000604d0000614d0000e51e00b24345504544412c200000000000010000614d0000a14c0100ffffff3a504552455a2c20460000000000010000a14c00002e4d0000ffffff3a53554152455a2c2000000000000100002e4d0000ab400100ffffff3a52494f532c2043410000000000010000ab400000da4c0100ffffff3a525553534f2c204c0000000000010000da4c0000624d0000e916008a495a414755494c4c0000000000010000624d00003f480000ffffff3a50415a2c204d415200000000000100003f480000634d0000ea19009256494c434156494c0000000000010000634d0000aa4c0000ffffff3a53494c56412c20460000000000010000aa4c0000644d0000e925002a4d4f52454e4f2c200000000000010000644d0000a8480000ffffff3a4d414d414e492c200000000000010000a84800006b4d0000e32600b24d454c412c20564100000000000100006b4d0000754d0000e74800d2534152434f2c20540000000000010000754d0000454d0100ffffff3a524f5353414e4f2c0000000000010000454d00001a4d0100ffffff3a4d4f52414c45532c00000000000100001a4d0000764d0000e74800d24553434f4241522c0000000000010000764d0000d14b0000ffffff3a5249564552412c200000000000010000d14b0000774d0000e74800d2
dd055c22060002004c554e412c2053410000000000010000774d0000ee4b0100ffffff3a52414d4952455a2c0000000000010000ee4b000055440000ffffff3a54454d492c20414e000000000001000055440000914b0000ffffff3a424152524f532c200000000000010000914b00007a4c0100ffffff3a4c554e412c204d4100000000000100007a4c0000794c0100ffffff3a4252454944452c200000000000010000794c0000f9480000e74800d24e4f56494f4e2c200000000000010000f9480000784d0000e74800d242415252412c20540000000000010000784d00007b4c0100ffffff3a53414e4348455a2c00000000000100007b4c00001e4d0100ffffff3a43414d504f532c2000000000000100001e4d00000b4d0100ffffff3a59414e41434f4e2c00000000000100000b4d00004d4d0100ffffff3a414c56415245532c00000000000100004d4d0000794d0000e74800d2564944414c2c204d0000000000010000794d0000030000000000000000000000000000000000000000010000f04b00007b4d0000e92200ba4c4f52454e5a4f2c00000000000100007b4d0000384d0100ffffff3a43415354524f2c200000000000010000384d0000aa3e0000e92200ba47494d454e455a2c0000000000010000aa3e0000e14c0100ffffff3a434f52444f42412c0000000000010000e14c000097490100ffffff3a414355d1412c204e00000000000100009749000077460000ffffff3a414c4c454d414e440000000000010000774600004e4d0100ffffff3a50494e4f2c20415200000000000100004e4d0000e4470000ffffff3a414355d1412c20540000000000010000e44700007c4d0000e62b00ea43415055544f2c2000000000000100007c4d00007d4d0000e62b00ea4e49455255435a4b00000000000100007d4d0000324d0100ffffff3a464c5558412059200000000000010000324d0000da4b0000ffffff3a434841504152524f0000000000010000da4b0000314d0100ffffff3a4d415254494e455a0000000000010000314d00000d4d0100ffffff3a4449415a2c20414700000000000100000d4d00003a4d0000ffffff3a41524941532c204c00000000000100003a4d00007e4d0000e41e000a53414d424543434800000000000100007e4d00008e470100ffffff3a564953494e54494e00000000000100008e470000d44b0100ffffff3a4c494e434f50414e0000000000010000d44b00007f4d0000e41e000a46554e45532c205000000000000100007f4d00004f4d0100ffffff3a524f44524947554500000000000100004f4d0000334d0100ffffff3a414755495252452c0000000000010000334d0000504d0000ffffff3a4d454e44455a2c200000000000010000504d0000814d0000e31400724c4142494e2c20500000000000010000
dd05c13207000200814d0000974b0100ffffff3a43414d49534349410000000000010000974b0000434c0100ffffff3a41524741d14152410000000000010000434c0000514d0100ffffff3a4d454e44455a2c200000000000010000514d0000554c0100ffffff3a434142455a41532c0000000000010000554c0000524d0000ffffff3a41515549544f2c200000000000010000524d000089490100ffffff3a504152454e542c200000000000010000894900000e4d0100ffffff3a47415249532c204d00000000000100000e4d0000cc4c0100ffffff3a44454955422c20430000000000010000cc4c00000a000100ffffff3a0072c4753a72c475000000000001000001490000613f0000ffffff3a48454e52495155450000000000010000613f0000534d0100ffffff3a475541595155494e0000000000010000534d0000a04a0100ffffff3a42415355414c444f0000000000010000a04a00009d470100ffffff3a4f52454c4c414e4100000000000100009d470000554d0100ffffff3a4645524e414e44450000000000010000554d00000f4d0100ffffff3a414c43415941474100000000000100000f4d00007d4c0100ffffff3a5641524741532c2000000000000100007d4c00005f4c0100ffffff3a5941d1455a2c204a00000000000100005f4c00005c4a0100ffffff3a424149434f52524500000000000100005c4a0000074c0100ffffff3a434841504152524f0000000000010000074c0000654c0100ffffff3a544f4c45444f2c200000000000010000654c0000674c0100ffffff3a4f524150454c2c200000000000010000674c0000684c0100ffffff3a42415a414e2c204d0000000000010000684c0000594c0100ffffff3a424552544f4c494e0000000000010000594c0000d44c0100ffffff3a525542494c41522c0000000000010000d44c000086490000ffffff3a4449415a2c204a55000000000001000086490000ec4a0000ffffff3a52455945532c204a0000000000010000ec4a000033490100ffffff3a4a4152414d494c4c0000000000010000334900006d4c0000ffffff3a424144494c4c4f2c00000000000100006d4c0000f24b0100ffffff3a41434f5354412c200000000000010000f24b00008b4c0100ffffff3a4d415254494e455a00000000000100008b4c000042480100ffffff3a4341535441d1454900000000000100004248000087470000ffffff3a534f544f2c204341000000000001000087470000134b0100ffffff3a524f4452494755450000000000010000134b0000ab4b0100ffffff3a54494c4c455249410000000000010000ab4b00003d4a0000ffffff3a4b4153544c492c2000000000000100003d4a0000124d0100ffffff3a43414d504f532c200000000000010000124d0000104d0100ffffff3a5a414c41
dd05ef0d080002005a41522c0000000000010000104d0000904c0100ffffff3a53494c56412c204d0000000000010000904c0000b9470000ffffff3a444f525245474f2c0000000000010000b9470000924c0000ffffff3a53494c56412c20430000000000010000924c0000e24c0000ffffff3a4f4c4156452c20410000000000010000e24c0000964c0100ffffff3a524f4452494755450000000000010000964c0000a6490100ffffff3a504552414c54412c0000000000010000a64900009a4c0100ffffff3a534141564544524100000000000100009a4c0000b64c0100ffffff3a54414d424f52494e0000000000010000b64c0000b74c0100ffffff3a5041524c415645430000000000010000b74c0000894a0100ffffff3a414755495252452c0000000000010000894a0000b94c0100ffffff3a4d4f52412c204d410000000000010000b94c0000bd4c0100ffffff3a4649475545524f410000000000010000bd4c0000be4c0000ffffff3a4341524142414a410000000000010000be4c0000bf4c0000ffffff3a504552455952412c0000000000010000bf4c000001000100ffffff3a007202753a7202750000000000010000c24c0000d94c0100ffffff3a41524455494e2c200000000000010000d94c00000c470100ffffff3a424152414c45532c00000000000100000c470000d8490100ffffff3a42414c4945524f2c0000000000010000d8490000e6470000ffffff3a424f5247484553450000000000010000e6470000e74c0100ffffff3a524f4d45524f2c200000000000010000e74c0000e84c0100ffffff3a4b4c45494e2c204c0000000000010000e84c0000704b0100ffffff3a4d415249414e4f2c0000000000010000704b0000e94c0100ffffff3a414c4d414e5a412c0000000000010000e94c0000ec4c0100ffffff3a5041494e454d494c0000000000010000ec4c0000ed4c0100ffffff3a52495155454c4d450000000000010000ed4c0000ee4c0100ffffff3a52495155454c4d450000000000010000ee4c0000f14c0100ffffff3a4649475545524f410000000000010000f14c0000f24c0100ffffff3a4d415245434f2c200000000000010000f24c0000f34c0100ffffff3a534f4d4d41444f530000000000010000f34c0000f44c0100ffffff3a534348454c4c2c200000000000010000f44c0000f54c0100ffffff3a424f4e41564954410000000000010000f54c0000f64c0100ffffff3a4845524d4f53494c0000000000010000f64c0000f74c0100ffffff3a4d454c4c41444f2c0000000000010000f74c0000f84c0100ffffff3a53414e4348455a200000000000010000f84c0000f94c0000ffffff3a515549524f47412c0000000000010000f94c0000fa4c0100ffffff3a42454c415244494e0000000000010000fa4c0000
dd05168d09000200a94b0100ffffff3a434f524e454a4f2c0000000000010000a94b0000fd4c0000ffffff3a414c4444412c20430000000000010000fd4c0000134d0100ffffff3a414755494c412c200000000000010000134d0000144d0100ffffff3a434f52444f42412c0000000000010000144d0000154d0100ffffff3a474f4e5a414c45530000000000010000154d0000164d0100ffffff3a4142454c4c4f2c200000000000010000164d000039430100ffffff3a475554494552524500000000000100003943000075480100ffffff3a434f4e5452455241000000000001000075480000e1480100ffffff3a4c454f4e2c204d410000000000010000e1480000e3480100ffffff3a515545534144412c0000000000010000e3480000194d0100ffffff3a4241534355d1414e0000000000010000194d00001b4d0100ffffff3a414c5a414d454e4400000000000100001b4d00001c4d0100ffffff3a41445249414e412c00000000000100001c4d00000c480000ffffff3a50414f4c412c204d00000000000100000c48000016480100ffffff3a4845524e414e444500000000000100001648000086470000ffffff3a4e454952412c204d000000000001000086470000e34a0100ffffff3a4d4f52414c45532c0000000000010000e34a0000e74a0100ffffff3a53414c415a41522c0000000000010000e74a00007a480100ffffff3a47414954414e2c2000000000000100007a4800007b480100ffffff3a424554414e434f5200000000000100007b480000f04a0000ffffff3a44455249415a2c200000000000010000f04a0000703e0100ffffff3a53414e204d4152540000000000010000703e00005c450100ffffff3a4d494c4c4143484500000000000100005c450000b7480100ffffff3a52494f532c204a4f0000000000010000b7480000
d0078dd1a0260200

Also I was trying to user the enrollUser function with no luck....

mribichich commented 6 years ago

I'll look at it and let you know, there's clearly a bug somewhere

On Mon, Jul 30, 2018 at 1:35 AM Luis notifications@github.com wrote:

@mribichich https://github.com/mribichich thank you for your response. I am using the 0.2.10 version.

I placed the console.log like you sugest and this is the result:

dc059f18e2b60200a026000000040000 dd052bfe000002009c2600006c4d0000e61900fa414c564152455a2c00000000000100006c4d0000193e0000ffffff3a4352555a2c2041420000000000010000193e000088470100ffffff3a415a434152415445000000000001000088470000b1470100ffffff3a524f47412c20464c0000000000010000b14700002d490100ffffff3a4553434f4241522c00000000000100002d490000ac3e0000ffffff3a4d454e55544f2c200000000000010000ac3e000075450100ffffff3a444f4e414952452c000000000001000075450000234d0100ffffff3a42555354414d414e0000000000010000234d0000214d0100ffffff3a534549464552542c0000000000010000214d0000a4410100ffffff3a534944452c2043410000000000010000a4410000294d0100ffffff3a50415353414c49530000000000010000294d00009f4a0100ffffff3a494e4f5354524f5a00000000000100009f4a00000b3f0000ffffff6a44494f52494f2c2000000000000100000b3f0000774c0100ffffff3a42524944452c20520000000000010000774c00002f4d0000ffffff3a5155455243492c2000000000000100002f4d00003c410100ffffff3a434152455454412c00000000000100003c410000b83f0100ffffff3a41595a454e5a5a540000000000010000b83f0000f4490100ffffff3a52414d53455945520000000000010000f4490000224d0100ffffff3a4252414d414a4f2c0000000000010000224d000082420000ffffff3a46414c4956454e45000000000001000082420000fb4c0100ffffff3a524f4348412c204a0000000000010000fb4c0000df4b0000ffffff3a524f412c204341520000000000010000df4b0000724d0000e74800d257494c534f4e2c200000000000010000724d0000e2470100ffffff3a4752414e542c204d0000000000010000e247000006410000ffffff3a41484d45442c20520000000000010000064100005b4d0100ffffff3a5041455a2c204a4100000000000100005b4d0000144c0000ffffff3a4d41525155455a2c0000000000010000144c0000464d0000ffffff3a524f4d45524f2c200000000000010000464d0000654d0000e721005a4152414e4544412c0000000000010000654d0000fa4b0000ffffff3a4b4153544c492c200000000000010000fa4b0000ea4c0100ffffff3a53494c56412c20470000000000010000ea4c0000694d0000e72b00024241534355522c200000000000010000694d0000bd410000ffffff3a5649454c4d412c200000000000010000bd410000be410000ffffff3a50524f53542c204d0000000000010000be410000fb4b0000ffffff3a4c4156412c204a410000000000010000fb4b0000664d0000e721005a4d4152414e47454c0000000000010000664d0000a4420000ffffff3a4d415254 dd05587b01000200494e455a0000000000010000a442000044450100ffffff3a53554152455a2c20000000000001000044450000674d0000e721005a4e55d1455a2c204d0000000000010000674d0000c1420100ffffff3a53454e412c2045530000000000010000c142000019430000ffffff3a4341535441d14f2c00000000000100001943000026430000ffffff3a524f445249475545000000000001000026430000734d0000e74800d2504552455a2c20500000000000010000734d00003b4d0100ffffff3a434152555a5a4f2c00000000000100003b4d0000653f0100ffffff3a48454e52495155450000000000010000653f0000ef4c0100ffffff3a4a4152412c204d410000000000010000ef4c00001f4d0100ffffff3a4d4152444f4e455300000000000100001f4d0000274c0100ffffff3a4b4e494e4b2c204c0000000000010000274c0000fc4c0100ffffff3a5343494c49504f540000000000010000fc4c000038440000ffffff3a44454c4c27204f52000000000001000038440000574d0100ffffff3a43524553534154540000000000010000574d0000394d0100ffffff3a4241524945524f2c0000000000010000394d0000364c0100ffffff3a524f4d45524f2c200000000000010000364c00009e4b0000ffffff3a4153434f4e2c204c00000000000100009e4b0000f6440100ffffff3a524946464f2c20590000000000010000f6440000584c0100ffffff3a4755495a5a4152440000000000010000584c000064450100ffffff3a414e45534554544900000000000100006445000056440000ffffff3a4d4152444f4e4553000000000001000056440000d2450100ffffff3a4c55445545d1412c0000000000010000d2450000a2450000ffffff3a5155494a4144412c0000000000010000a2450000a0480100ffffff3a47555a4d414e2c200000000000010000a04800000c4d0100ffffff3a53414e54414e544f00000000000100000c4d00004e470000e42200624c454956412c204700000000000100004e470000264d0100ffffff3a424f52474f474e410000000000010000264d000052470000ffffff3a524f445249475545000000000001000052470000114b0100ffffff3a4e414855454c414e0000000000010000114b0000244d0100ffffff3a50454c4c454741540000000000010000244d0000684d0000e721005a43415256414a414c0000000000010000684d0000544d0100ffffff3a434849414e492c200000000000010000544d0000c84c0100ffffff3a4755495a5a4152440000000000010000c84c0000fe4c0100ffffff3a4d454e4a49444f2c0000000000010000fe4c0000304a0100ffffff3a56454c415a5155450000000000010000304a000070460100ffffff3a56415241532c2042000000000001000070460000 dd05577902000200ca4c0100ffffff3a41524455494e2c200000000000010000ca4c000052430100ffffff3a524f4a41532c2050000000000001000052430000564d0100ffffff3a43414d504f532c200000000000010000564d0000424d0100ffffff3a42414c53494d454c0000000000010000424d00006d4d0000e72a00ea544f52494e4f2c2000000000000100006d4d0000ff4c0100ffffff3a524f4348412c204a0000000000010000ff4c0000434d0000ffffff3a415049474e414e450000000000010000434d0000804d0000e3140072414755494c45524f0000000000010000804d0000264b0100ffffff3a54455354452c204d0000000000010000264b0000c34b0100ffffff3a47555a4d414e2c200000000000010000c34b00006e4c0100ffffff3a4241524741532c2000000000000100006e4c00007c460000ffffff3a4649542c20524f4200000000000100007c460000c0450100ffffff3a524f4452494755450000000000010000c0450000254d0100ffffff3a4345504544412c200000000000010000254d0000274d0100ffffff3a5641535155455a2c0000000000010000274d0000f03e0000ffffff3a54415049412c20450000000000010000f03e0000284c0100ffffff3a4755414c44412c200000000000010000284c0000004d0100ffffff3a41524f43412c20520000000000010000004d0000284d0100ffffff3a4152414e44412c200000000000010000284d00001d4d0100ffffff3a4c4f50455a2c205300000000000100001d4d00002a4d0100ffffff3a4156494c412c204a00000000000100002a4d0000884a0100ffffff3a425553544f2c20460000000000010000884a0000344d0100ffffff3a43484f52542c20530000000000010000344d00006a4d0000e72b0002424f5244412c204300000000000100006a4d0000684b0100ffffff3a43414d45524120430000000000010000684b00004d4b0000ffffff3a534f5249412c204a00000000000100004d4b00003c4d0100ffffff3a52494f532c204a5500000000000100003c4d0000f34b0000ffffff3a494e46414e54452c0000000000010000f34b0000534b0100ffffff3a415252454755492c0000000000010000534b0000564c0000ffffff3a4d49414e4f2c204d0000000000010000564c00007a4d0000e92200ba4c4552412c20434100000000000100007a4d0000014d0100ffffff3a43524553504f2c200000000000010000014d000043460100ffffff3a52455945532c2053000000000001000043460000204d0100ffffff3a4d4152444f4e45530000000000010000204d0000474d0100ffffff3a53414e4348455a2c0000000000010000474d0000da460000ffffff3a5049555452494e2c0000000000010000da4600007e4b0100ffffff3a494241d1455a2c20 dd05c1f70300020000000000000100007e4b0000594d0100ffffff3a56494c4c454741530000000000010000594d00003d4d0100ffffff3a4d415254494e2c2000000000000100003d4d0000024d0100ffffff3a4d414c4142452c200000000000010000024d0000e5470100ffffff3a424152524552412c0000000000010000e5470000834d0000e6290062544954414e54492c0000000000010000834d000056480100ffffff3a4845524e414e4445000000000001000056480000ec480100ffffff3a424f484f525155450000000000010000ec480000df4a0000e52d00b2504f524d414e2c200000000000010000df4a0000564b0100ffffff3a455350494e4f5a410000000000010000564b00006e4d0000e72a00ea524f4d45524f2c2000000000000100006e4d0000354d0100ffffff3a5a414d4252414e4f0000000000010000354d0000714d0000e92f00124c414252494e2c200000000000010000714d00005a4d0100ffffff3a4c495a41534f2c2000000000000100005a4d0000844b0000ffffff3a44555249532044550000000000010000844b0000034d0100ffffff3a4d414c4142452c200000000000010000034d000002000100ffffff3a007214753a7214750000000000010000fe4b0000364d0000ffffff3a434f5256414c414e0000000000010000364d0000044d0100ffffff3a504552455a2c20470000000000010000044d0000c04c0000ffffff3a4a494d454e455a2c0000000000010000c04c00002b4d0100ffffff3a4c4152524f51554500000000000100002b4d00006f4d0000e72a00ea524f4d45524f2c2000000000000100006f4d00003e4d0100ffffff3a5a414e455454492c00000000000100003e4d0000054d0100ffffff3a4b554c49535a2c200000000000010000054d00002c4d0100ffffff3a524f4d45524f2c2000000000000100002c4d00003a4c0100ffffff3a414c414e495a2c2000000000000100003a4c0000eb4c0100ffffff3a4645524e414e44450000000000010000eb4c0000e34b0100ffffff3a4d455a492c2053490000000000010000e34b0000064d0100ffffff3a434f524f4e412c200000000000010000064d00006f3e0000ffffff3a43414e544552412c00000000000100006f3e0000074d0100ffffff3a4d455a412c204d410000000000010000074d00008b470000ffffff3a59414e452c20524f00000000000100008b470000084d0100ffffff3a4d455a412c204d410000000000010000084d0000704d0000e72a00ea524f4d45524f2c200000000000010000704d00005c4d0100ffffff3a4d4f4e5a4f4e2c2000000000000100005c4d0000484d0100ffffff3a53414e4348455a2c0000000000010000484d0000264c0100ffffff3a534f544f2c2053410000000000010000264c0000ad4b0100 dd05f66004000200ffffff3a434f4e54524552410000000000010000ad4b0000f04c0100ffffff3a424152524f532c200000000000010000f04c00007a4b0100ffffff3a534947564152442c00000000000100007a4b00004a4d0000ffffff3a415252454755492c00000000000100004a4d00001a470100ffffff3a4b414c54454e424100000000000100001a4700005d480100ffffff3a564152454c412c2000000000000100005d480000314a0000e4220062414c42495a552c200000000000010000314a00002d4c0100ffffff3a59414e455a2c204600000000000100002d4c00008b4b0000ffffff3a4649475545524f4100000000000100008b4b00003d410100ffffff3a4e55d1455a2c204a00000000000100003d410000824d0000e52d00b2524f4c44414e2c200000000000010000824d0000c8450100ffffff3a43415354494c4c4f0000000000010000c8450000f83f0100ffffff3a434f524445524f2c0000000000010000f83f0000b54b0000e946005a464f524e45524f4e0000000000010000b54b000076460000ffffff3a47555a4d414e2c2000000000000100007646000062460100ffffff3a4c41535452412c20000000000001000062460000f64b0000ffffff3a4d415a5a4f4e492c0000000000010000f64b0000844d0000e6290062414d49434f4e452c0000000000010000844d0000dd480100ffffff3a434153494d49524f0000000000010000dd480000364a0000ffffff3a504f424c45542c200000000000010000364a0000114d0100ffffff3a56494552412c20560000000000010000114d0000f64a0100ffffff3a43494655454e54450000000000010000f64a0000174d0100ffffff3a53554152455a2c200000000000010000174d0000584d0100ffffff3a53414e444f56414c0000000000010000584d0000494d0100ffffff3a4d4f4e54455345520000000000010000494d0000c0470100ffffff3a494241d1455a2c200000000000010000c0470000374d0000ffffff3a44414c494e4745520000000000010000374d00000b4c0000ffffff3a4445204c4c414d4100000000000100000b4c0000444d0100ffffff3a43415252495a4f2c0000000000010000444d0000774b0100ffffff3a504f4e43452c20430000000000010000774b00005d4d0100ffffff3a434f5050412c204a00000000000100005d4d00008f460000ffffff3a524f5341532c204400000000000100008f460000094d0100ffffff3a5354414349554b2c0000000000010000094d0000d64c0100ffffff3a525553534f2c204a0000000000010000d64c00003f4d0100ffffff3a504552455a2c204c00000000000100003f4d00005e4d0000e42200625343414c4f52412c00000000000100005e4d00002d4d0100ffffff3a475545525245524f00000000 dd05af5f05000200000100002d4d00004b4d0000ffffff3a4d554e495a41474100000000000100004b4d00006b4a0000ffffff3a4f425245474f4e2c00000000000100006b4a0000d54c0100ffffff3a4f564945444f2c200000000000010000d54c0000744d0000e74800d24d41524941204c410000000000010000744d0000c1490100ffffff3a43415354454c4c410000000000010000c1490000004a0100ffffff3a464f4e534543412c0000000000010000004a0000404d0100ffffff3a414755495252452c0000000000010000404d0000404c0100ffffff3a4c415341474e4f2c0000000000010000404c00000a4d0100ffffff3a4d415355442c204100000000000100000a4d00005d470000ffffff3a424152424f4e412c00000000000100005d4700004c4d0000ffffff3a4d415243555a5a4900000000000100004c4d00004d4c0100ffffff3a5349d1414e45532c00000000000100004d4c00005f4d0000e4220062564152454c412c2000000000000100005f4d00004e4c0000ffffff3a5349d1414e49532c00000000000100004e4c0000304d0100ffffff3a43484156455a2c200000000000010000304d0000ae4b0100ffffff3a53555445522c20450000000000010000ae4b0000184d0100ffffff3a50494e43484549520000000000010000184d0000414d0000ffffff3a4c4f50455a2c204a0000000000010000414d0000604d0000e51e00b24c415641434152410000000000010000604d0000614d0000e51e00b24345504544412c200000000000010000614d0000a14c0100ffffff3a504552455a2c20460000000000010000a14c00002e4d0000ffffff3a53554152455a2c2000000000000100002e4d0000ab400100ffffff3a52494f532c2043410000000000010000ab400000da4c0100ffffff3a525553534f2c204c0000000000010000da4c0000624d0000e916008a495a414755494c4c0000000000010000624d00003f480000ffffff3a50415a2c204d415200000000000100003f480000634d0000ea19009256494c434156494c0000000000010000634d0000aa4c0000ffffff3a53494c56412c20460000000000010000aa4c0000644d0000e925002a4d4f52454e4f2c200000000000010000644d0000a8480000ffffff3a4d414d414e492c200000000000010000a84800006b4d0000e32600b24d454c412c20564100000000000100006b4d0000754d0000e74800d2534152434f2c20540000000000010000754d0000454d0100ffffff3a524f5353414e4f2c0000000000010000454d00001a4d0100ffffff3a4d4f52414c45532c00000000000100001a4d0000764d0000e74800d24553434f4241522c0000000000010000764d0000d14b0000ffffff3a5249564552412c200000000000010000d14b0000774d0000e74800d2 dd055c22060002004c554e412c2053410000000000010000774d0000ee4b0100ffffff3a52414d4952455a2c0000000000010000ee4b000055440000ffffff3a54454d492c20414e000000000001000055440000914b0000ffffff3a424152524f532c200000000000010000914b00007a4c0100ffffff3a4c554e412c204d4100000000000100007a4c0000794c0100ffffff3a4252454944452c200000000000010000794c0000f9480000e74800d24e4f56494f4e2c200000000000010000f9480000784d0000e74800d242415252412c20540000000000010000784d00007b4c0100ffffff3a53414e4348455a2c00000000000100007b4c00001e4d0100ffffff3a43414d504f532c2000000000000100001e4d00000b4d0100ffffff3a59414e41434f4e2c00000000000100000b4d00004d4d0100ffffff3a414c56415245532c00000000000100004d4d0000794d0000e74800d2564944414c2c204d0000000000010000794d0000030000000000000000000000000000000000000000010000f04b00007b4d0000e92200ba4c4f52454e5a4f2c00000000000100007b4d0000384d0100ffffff3a43415354524f2c200000000000010000384d0000aa3e0000e92200ba47494d454e455a2c0000000000010000aa3e0000e14c0100ffffff3a434f52444f42412c0000000000010000e14c000097490100ffffff3a414355d1412c204e00000000000100009749000077460000ffffff3a414c4c454d414e440000000000010000774600004e4d0100ffffff3a50494e4f2c20415200000000000100004e4d0000e4470000ffffff3a414355d1412c20540000000000010000e44700007c4d0000e62b00ea43415055544f2c2000000000000100007c4d00007d4d0000e62b00ea4e49455255435a4b00000000000100007d4d0000324d0100ffffff3a464c5558412059200000000000010000324d0000da4b0000ffffff3a434841504152524f0000000000010000da4b0000314d0100ffffff3a4d415254494e455a0000000000010000314d00000d4d0100ffffff3a4449415a2c20414700000000000100000d4d00003a4d0000ffffff3a41524941532c204c00000000000100003a4d00007e4d0000e41e000a53414d424543434800000000000100007e4d00008e470100ffffff3a564953494e54494e00000000000100008e470000d44b0100ffffff3a4c494e434f50414e0000000000010000d44b00007f4d0000e41e000a46554e45532c205000000000000100007f4d00004f4d0100ffffff3a524f44524947554500000000000100004f4d0000334d0100ffffff3a414755495252452c0000000000010000334d0000504d0000ffffff3a4d454e44455a2c200000000000010000504d0000814d0000e31400724c4142494e2c20500000000000010000 dd05c13207000200814d0000974b0100ffffff3a43414d49534349410000000000010000974b0000434c0100ffffff3a41524741d14152410000000000010000434c0000514d0100ffffff3a4d454e44455a2c200000000000010000514d0000554c0100ffffff3a434142455a41532c0000000000010000554c0000524d0000ffffff3a41515549544f2c200000000000010000524d000089490100ffffff3a504152454e542c200000000000010000894900000e4d0100ffffff3a47415249532c204d00000000000100000e4d0000cc4c0100ffffff3a44454955422c20430000000000010000cc4c00000a000100ffffff3a0072c4753a72c475000000000001000001490000613f0000ffffff3a48454e52495155450000000000010000613f0000534d0100ffffff3a475541595155494e0000000000010000534d0000a04a0100ffffff3a42415355414c444f0000000000010000a04a00009d470100ffffff3a4f52454c4c414e4100000000000100009d470000554d0100ffffff3a4645524e414e44450000000000010000554d00000f4d0100ffffff3a414c43415941474100000000000100000f4d00007d4c0100ffffff3a5641524741532c2000000000000100007d4c00005f4c0100ffffff3a5941d1455a2c204a00000000000100005f4c00005c4a0100ffffff3a424149434f52524500000000000100005c4a0000074c0100ffffff3a434841504152524f0000000000010000074c0000654c0100ffffff3a544f4c45444f2c200000000000010000654c0000674c0100ffffff3a4f524150454c2c200000000000010000674c0000684c0100ffffff3a42415a414e2c204d0000000000010000684c0000594c0100ffffff3a424552544f4c494e0000000000010000594c0000d44c0100ffffff3a525542494c41522c0000000000010000d44c000086490000ffffff3a4449415a2c204a55000000000001000086490000ec4a0000ffffff3a52455945532c204a0000000000010000ec4a000033490100ffffff3a4a4152414d494c4c0000000000010000334900006d4c0000ffffff3a424144494c4c4f2c00000000000100006d4c0000f24b0100ffffff3a41434f5354412c200000000000010000f24b00008b4c0100ffffff3a4d415254494e455a00000000000100008b4c000042480100ffffff3a4341535441d1454900000000000100004248000087470000ffffff3a534f544f2c204341000000000001000087470000134b0100ffffff3a524f4452494755450000000000010000134b0000ab4b0100ffffff3a54494c4c455249410000000000010000ab4b00003d4a0000ffffff3a4b4153544c492c2000000000000100003d4a0000124d0100ffffff3a43414d504f532c200000000000010000124d0000104d0100ffffff3a5a414c41 dd05ef0d080002005a41522c0000000000010000104d0000904c0100ffffff3a53494c56412c204d0000000000010000904c0000b9470000ffffff3a444f525245474f2c0000000000010000b9470000924c0000ffffff3a53494c56412c20430000000000010000924c0000e24c0000ffffff3a4f4c4156452c20410000000000010000e24c0000964c0100ffffff3a524f4452494755450000000000010000964c0000a6490100ffffff3a504552414c54412c0000000000010000a64900009a4c0100ffffff3a534141564544524100000000000100009a4c0000b64c0100ffffff3a54414d424f52494e0000000000010000b64c0000b74c0100ffffff3a5041524c415645430000000000010000b74c0000894a0100ffffff3a414755495252452c0000000000010000894a0000b94c0100ffffff3a4d4f52412c204d410000000000010000b94c0000bd4c0100ffffff3a4649475545524f410000000000010000bd4c0000be4c0000ffffff3a4341524142414a410000000000010000be4c0000bf4c0000ffffff3a504552455952412c0000000000010000bf4c000001000100ffffff3a007202753a7202750000000000010000c24c0000d94c0100ffffff3a41524455494e2c200000000000010000d94c00000c470100ffffff3a424152414c45532c00000000000100000c470000d8490100ffffff3a42414c4945524f2c0000000000010000d8490000e6470000ffffff3a424f5247484553450000000000010000e6470000e74c0100ffffff3a524f4d45524f2c200000000000010000e74c0000e84c0100ffffff3a4b4c45494e2c204c0000000000010000e84c0000704b0100ffffff3a4d415249414e4f2c0000000000010000704b0000e94c0100ffffff3a414c4d414e5a412c0000000000010000e94c0000ec4c0100ffffff3a5041494e454d494c0000000000010000ec4c0000ed4c0100ffffff3a52495155454c4d450000000000010000ed4c0000ee4c0100ffffff3a52495155454c4d450000000000010000ee4c0000f14c0100ffffff3a4649475545524f410000000000010000f14c0000f24c0100ffffff3a4d415245434f2c200000000000010000f24c0000f34c0100ffffff3a534f4d4d41444f530000000000010000f34c0000f44c0100ffffff3a534348454c4c2c200000000000010000f44c0000f54c0100ffffff3a424f4e41564954410000000000010000f54c0000f64c0100ffffff3a4845524d4f53494c0000000000010000f64c0000f74c0100ffffff3a4d454c4c41444f2c0000000000010000f74c0000f84c0100ffffff3a53414e4348455a200000000000010000f84c0000f94c0000ffffff3a515549524f47412c0000000000010000f94c0000fa4c0100ffffff3a42454c415244494e0000000000010000fa4c0000 dd05168d09000200a94b0100ffffff3a434f524e454a4f2c0000000000010000a94b0000fd4c0000ffffff3a414c4444412c20430000000000010000fd4c0000134d0100ffffff3a414755494c412c200000000000010000134d0000144d0100ffffff3a434f52444f42412c0000000000010000144d0000154d0100ffffff3a474f4e5a414c45530000000000010000154d0000164d0100ffffff3a4142454c4c4f2c200000000000010000164d000039430100ffffff3a475554494552524500000000000100003943000075480100ffffff3a434f4e5452455241000000000001000075480000e1480100ffffff3a4c454f4e2c204d410000000000010000e1480000e3480100ffffff3a515545534144412c0000000000010000e3480000194d0100ffffff3a4241534355d1414e0000000000010000194d00001b4d0100ffffff3a414c5a414d454e4400000000000100001b4d00001c4d0100ffffff3a41445249414e412c00000000000100001c4d00000c480000ffffff3a50414f4c412c204d00000000000100000c48000016480100ffffff3a4845524e414e444500000000000100001648000086470000ffffff3a4e454952412c204d000000000001000086470000e34a0100ffffff3a4d4f52414c45532c0000000000010000e34a0000e74a0100ffffff3a53414c415a41522c0000000000010000e74a00007a480100ffffff3a47414954414e2c2000000000000100007a4800007b480100ffffff3a424554414e434f5200000000000100007b480000f04a0000ffffff3a44455249415a2c200000000000010000f04a0000703e0100ffffff3a53414e204d4152540000000000010000703e00005c450100ffffff3a4d494c4c4143484500000000000100005c450000b7480100ffffff3a52494f532c204a4f0000000000010000b7480000 d0078dd1a0260200

Also I was trying to user the enrollUser function with no luck....

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bulentv/js_zklib/issues/7#issuecomment-408744337, or mute the thread https://github.com/notifications/unsubscribe-auth/AFe3SieReBVzVisTur7v-WC_LAhOuoP2ks5uLo0rgaJpZM4SZLEs .

mribichich commented 6 years ago

@windgaucho Sorry for the delay, it seems that the buffer its different from what the library is parsing.

Could you please send a couple of things? I need your device model, and firmware version with date too, and every info of the device. Also could you send me the buffer again, and this time also send the user data already parsed.

For this use a ZkAccess software o get inside the db too to get the info. This way I can try to find a pattern in the buffer and create a new parser

caobo171 commented 4 years ago

Check my repo , I've already fixed many bugs included this bug https://github.com/caobo171/node-zklib