Support Home Portal Log in
Open navigation

Connect Hivision Keypad to G70

This article shows configuration steps to enable a Hikvision keypad to be read by the G70. Consult the keypad manufacturer for detailed technical information.

Key functionality:

  • IP65 keypad
  • Good form factor - easily mounted with 2 x screws. 
  • Built in buzzer, which can be made to buzz in the same way as DM RFID readers with the correct wiring setup. 

Warning - 12V Keypad

This keypad has an input voltage of 12V - ensure you do not exceed this!

This keypad sends each key press as soon as it is sent - but we have integrated it into the device firmware, so that when a certain parameter is enabled, the device stores each key press and only send through a completed code once the # key is pressed.

Note - there are 2 variants

DS-K1107 - EK
This has both a Keypad for PIN input, and will read 125kHz EM4001 cards and fobs - which is the format used by our RFID readers
DS-K11078 - MK
Has a keypad and reads MiFare cards.

Wiring

This a guide based on what DM have seen working, consult the manual for full details. 


Hikvision Keypad Wire
Connect to
Red wire (PWR)12V DC power
Black (GND)Chassis GND
Green (W0)G70 Wiegand D0 - Purple on 4 way driver ID connector
White (W1)G70 Wiegand D1 Brown on 4 way driver ID connector

Parameter Setup

Ensure the 4 Wire Plug function is set to Wiegand

 

Ensure Interpret DS-K1107 Key Presses is set to Yes under the Wiegand Parameters

Operation and Usage

  • The # key is "Enter" and * is clear. So to enter the code "1234" press 1234#
  • If a few keys are pressed and are not followed by # - after 30 seconds whatever keys have been pressed will be sent as the code.
  • The very first tag scan/entry after power on is ignored. This is not a problem in practice as the keypad should remain powered once installed as it requires 12V power, which would be supplied from a constant source.
  • Number 6 on the DIP switches on the rear of the device must be on (this sets the keypad to output codes via the Wiegand interface) - the rest can be off. 
  • DIP switch 7 toggles between 34 and 26 bit Wiegand codes - default position (off) is 34 bit.
  • Consult the manual for further information. 

Driver ID Encoding

Wiegand IDs are typically made up of 2 bits to indicate the length of the data, 8 bits for a site code, then some data bits and finally a couple of check bits for error correction. So 12345# - i.e. entering the code 12345, is not sent by the device in this form. We can use the attached DS-K1107 input code -> end code converter. 

An example:

To give out this ID for the DS-K1107 keypad.

  • Driver Name: Peter
  • ID - PIN code 12345

We would set up this keypad as per the instructions above.

Then we enter the code into the converter

1 - PIN code we wish to use

2 - Wiegand binary representation

3 - Hex representation for use in TG

We then copy (3) into TG. This is what will be sent as the driver ID.

It is worth testing a few codes to ensure the values returned by the converter are correct.
We can use the Driver Code Field to provide a reference to what their PIN code is

Then it will display in the driver list for easy reference. 

The 10 digits available on the keypad mean a Licence number can be used as the PIN.

Then it will display in the driver list for easy reference. 

The 10 digits available on the keypad mean a Licence number can be used as the PIN.

Testing and basic troubleshooting

To test for reads, it is best to keep the process simple. Various driver ID settings can mean that if a tag is not in the devices driver list - when it is scanned it is rejected on the device and not uploaded to the server. So it is hard to see if the reads work.

To test:

  1. Reset all parameters to default (remove the tabs)
  2. Only apply the 4 wire plug function = Wiegand parameter, and Interpret Key presses for simplicity
  3. Connect the reader
  4. Scan your tags - the reader should give some indication
  5. Tag scans don't cause an immediate upload - so to test it is good to put the device in trip by providing over 5V to the ignition line (this is how it will work in practice) - so scans will be immediately uploaded.
  6. Either Turn on Data Capture in OEM, or check the Driver ID column in Telemetry in Telematics Guru (Assets -> Telemetry) Successful reads will appear here. 

If you don't get any reads here

  • Try swapping the W0 and W1 connections in case they are mixed up
  • Check all connections are OK, including power supply to the reader
  • Try other cards - maybe the one you are testing isn't the format you think it is or is dead
  • If all else fails, further debugging is difficult, contact DM and the end result be you will need to send us a card and reader to test.
  • Increase the maximum bit length in parameters to 40.
  • 37 is the default and is the longest we expect to receive. This provides some error correction, extremely long codes are probably errors and are ignored. However some readers may send longer codes - the maximum that can be read by the device is 40 bits. 

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.