Use RTMU86 with ZKTeco access control panel via Wiegand interface

for access control system

RTMU86 is a scanner specially designed for access control systems. It can scan 1D 2D bar codes and read NFC cards, and supports Wiegand 26 and Wiegand 34 output. The read information is transmitted to the access controller through the Wiegand signal and the control door to be opened.

In theory, RTMU86 can be connected to any Wiegand controller. In this article, we will take ZKTeco’s access control panel as an example to demonstrate the hardware connection method and software configuration.

Hardware:

The ZK access control panel

RTMU86 reader

 

Hardware connecting

Use RTMU86 Wiegand cable to connect to the READER interface of the ZK access control panel

Connect lock with access control panel:

Connect the network cable on the control board to the router lan port or directly plug it into the network port of the computer:

Software preparation

ZKAccess3.5.16

ScannerConfigV2.3.7

 

RTMU86 settings

Manually select the scanner model to RTMU86

Click Next

Work mode settings

  • Word mode: Wigan,
  • Development mode: Protocol
  • Wiegand format: Wigan34

Click Next

Select Advanced->Output format->Digital Char turn Hex

Click config code to generate a configuration QR code, use the MU86 to read the QR code to complete the configuration

ZK Access control system software installation and setting

1. Install ZKAccess3.5.16

2. Log in to the ZKAccess control management system

The default account is admin and the password is admin

3. Add access controller device

Click Devie->Search Device-> Search to find and add the ZK controller device in the LAN

Modify the file controller IP.

Select the found controller, right-click and choose Modify Address to configure the device IP address, or you can also specify the IP address for the device in the router DHCP server.

Click Add Device to add the device

4. Add personnel and card number

Select Personnel->Personnel->Add to add personnel and information

Add card number

Click the card icon behind Card Number to select the device that reads the card number, and wait a moment

Swipe the card or scan the bar code to add the card number

5. Personnel registration and access control binding

Add working time zone, Access Control ->Time zone

Add group

Add the previously added personnel to the group, then the personnel have the privilege to open and close doors

6. Real-time monitoring of access control

Click Access Control -> Real-Time Monitoring

Swipe card or read bar code to control the switch

7. Attention!

Once the configuration is changed, the configuration needs to be synchronized to the device

 

Related Products:


 

Read More


Simple Access Control System: Use Barcode Scanner RTMU86 Control The Lock Directly, Without Use Access Control Panel.

RTMU86 uploads the scan data to the server and controls the door lock

 

In most cases, the composition of the access control system is like this: barcode scanner / NFC reader + access control panel + lock + control software/server.

However, if you use our RTMU86, we can make the system more simple.

Firstly, connect use RTMU86 scanner with the lock, and then connect RTMU86 to the server via Ethernet. The scanned content is sent to the server through the Ethernet. After the server verifies the content and sends the unlock command to the RTMU86, the RTMU86 directly controls the lock to be opened. So the solution becomes:

barcode scanner / NFC reader+ lock + control software/server.

 

Through this solution, we do not need to use the access control panel, thereby reducing the cost and greatly simplifying the difficulty of system integration. So

Tips:

  1. If you use this solution, customers need to develop/build their own access control management software.
  2. In this article, we introduce a solution without the use of an access controller, but you can also use the RTMU86 to work together with the access controller and then connect with the lock. To learn more about this solution, please read:  https://www.rtscan.net/wiegand-barcode-scanner-and-zkteco-access-control-system/

Below, we describe the hardware connection and scanner configuration in detail.

 

1. Hardware connection

(1) RTMU86 connection with a lock

12V is connected to the RTMU86 com terminal input, and NO is connected to the positive pole of the electromagnetic lock power supply. After mu86 receives the unlock command, the com and no ports are turned on, and the electromagnetic lock is energized and unlocked.

Door lock connection diagram

(2) RTMU86 network port connection

The RTMU86 Ethernet version (the other version is the Wiegand version) directly leads out four network cable pins, which can be connected to four of the standard eight-core network cables according to the color. The network cable adopts the 568B connection method. Please refer to the table for wiring according to the color.

RTMU86 pins Pin4 Pin3 Pin2 Pin1
Network cable color Orange Orange white Green Green white
Network cable color icon

 

2.RTMU86 Configuration

(1).Select RTMU86

Click next

(2)Setup work mode

work mode:Develop,

Output: Ethernet

Development:Protocol

WIFI/Ethernet/2G output: TCP

(3) Set NET

SuccessAction:flash Green (Optional)

FailAction:flash red(Optional)

Set the service address and port to which the data is uploaded (*necessary settings)

Address: server address, such as 192.168.4.1

Port num: server port

IP mode setting

Dynamic IP: dynamic IP, IP address is automatically assigned by the router

Static IP: manually specify the IP address, when set to static IP, you must specify the IP address, Subnet mask, Gateway, the format is as follows

(4) Device scan code configuration

Click config code to generate configuration code. Device scan code configuration code to complete the configuration

For detailed usage of the configuration tool, please refer to “ScannerConfig Configuration Tool User Manual”.

After the configuration is complete, the device automatically connects to the specified server, and then reports the scan data after scanning the code.

3. Connect to the server

As a client, the MU86 scanner can establish a long TCP connection to the server and process the response returned by the server. The interface specification is defined as follows

TCP/TCP protocol

The format of the requested TCP/IP server IP address is: xxx.xxx.xxx.xxx

The format of the requested TCP/IP server port is: 0-65535

The scanner sends the original scanned data to the server

server:

4. Register account and control door lock

Use the server to build TCP server, accept the data reported by the scanner, determine the uploaded data, and issue the unlock command

Relay control command: (command is a hexadecimal array)

Command header Command word Data length Byte 1 Byte 2 Check word
2Byte 1Byte 2Byte 1Byte 1Byte 1Byte
0X55 0XAA 0x2a 0X02 0X00 0x01 On

0x00 Off

Duration (unit: 50MS) 0x00: Default time

E.g:

55 aa 2a 02 00 01 02 d4 Relay on 100ms

55 aa 2a 02 00 00 02 d5 off relay

More instructions reference<>

In this test, the server side uses python to build tcpsever, reads the data uploaded by the device, and judges whether it meets the registered id and is in compliance with the issued unlock instruction

Run py

The device establishes a connection

Uploaded data received

ID is the same as the saved id, issue the unlock command

Reference source code

import binascii

from quopri import HEX

from socket import *

from time import ctime

HOST = '192.168.4.1'

PORT = 8888

BUFSIZ = 1024

ADDR = (HOST, PORT)

tcpSerSock = socket(AF_INET, SOCK_STREAM)

tcpSerSock.bind(ADDR)

tcpSerSock.listen(5)

id_list = ["12345678", "abcdefg"]


def calculate_bbc(data, len):
    bbc = 0
    for i in range(len):
        bbc ^= data[i]
    return bbc


def detection_id(data):
    data_len = len(data)
    if data_len < 8:
        return 0

    if data[0] == 0x55 and data[1] == 0xaa and data[2] == 0x30 and data[3] == 0x00:

        bbc = calculate_bbc(data, data_len - 1)

        if bbc == data[data_len - 1]:
            id_len = data[4] + data[5] * 256
            read_id = data[6:6 + id_len]
            print("read id=", read_id)

            for cid in id_list:
                if read_id == cid.encode("UTF-8"):
                    return 1
                else:
                    print("Id not registered:", read_id)
                    return 0
    return 0


def send_lock_open(client, ms):
    buf = [0x55, 0xaa, 0x2a, 0x02, 0x00, 0x01, 0x00, 0x00]

    if ms < 50:
        ms = 50

    buf[6] = int(ms / 50)
    buf[7] = calculate_bbc(buf, 7)

    # print("send:", bytes(buf))

    client.send(bytes(buf))

    recv = client.recv(BUFSIZ)

    if not recv:
        return -1

    # print(recv)

    if recv == b'\x55\xaa\x2a\x00\x00\x00\xd5':
        return 1
    else:
        return 0


def send_lock_close(client):
    buf = [0x55, 0xaa, 0x2a, 0x02, 0x00, 0x00, 0x00]

    buf[6] = calculate_bbc(buf, 6)

    client.send(bytes(buf))


while True:

    print('waiting for connection...')

    tcpCliSock, addr = tcpSerSock.accept()

    print('...connnecting from:', addr)

    while True:

        data = tcpCliSock.recv(BUFSIZ)

        if not data:
            break

        # print(data)

        if detection_id(data):

            print('open the door')

            if send_lock_open(tcpCliSock, 1000):
                print('open the door success')

tcpCliSock.close()
tcpSerSock.close()

 

Related Products:


For any questions, please consult our sales engineer sales@rtscan.net or support team support@rtscan.net.

Thanks!

 

Read More


WI-FI Wireless or Ethernet Barcode Scanner Solution

Introduction

Wireless or Ethernet access control will be more and more popular in the future. Most traditional barcode scanners or NFC card reader without wireless or Ethernet feature. So RTscan developed a kit board that can convert a common USB barcode scanner or NFC reader into a Wi-Fi barcode scanner/Ethernet barcode scanner or a Bluetooth barcode scanner.

The barcode scanner is connected to RT001 via a USB cable, RT001 is connected to the router via WIFI or Ethernet (or connected to table/cell phone terminals via Bluetooth). And then transfer to read data to MQTT topic via remote MQTT server by the Internet.

This article takes the RT870 barcode scanner as an example, introduces how to use the RT870 barcode scanner together with RT001 to upload barcode decoded data via Wi-fi or Ethernet (MQTT server).

 

Connection diagram

 

Hardware preparation

    1. RT870 Barcode Scanner
    2. RT001 WIFI/Ethernet kit
    3. 5V power supply, it can be a mobile phone charger or other DC 5V power supply

Hardware connection

 

  1. RT870 connects to RT001 via USB cable

  1. RT001 connects to the router via network cable or WIFI

  1. Connect the power supply to RT001

Software prepare

1. RT001 configuration software:

RTSCAN Config ToolV1.2

Later, we can scan the configuration code generated by RTSCAN Config ToolV1.2 to set RT001 parameters.

2. MQTT server

Here we use a public MQTT server (MQTT Public Brokers), you can fill in your own MQTT server address port and other parameter information as needed.

Here we use the broker.hivemq.com server, the official website is http://www.mqtt-dashboard.com/, the MQTT TCP port is 1883, and the MQTT WebSocket port is 8000

Its server requirements are as follows:

  • The server address is: broker.hivemq.com
  • Port: 1883
  • No username and password required
  • Custom client id
  • Free subscription to publish topics

According to this rule, the parameters we fill in are:

  • Address: broker.hivemq.com
  • Port: 1883
  • ClientID: Generate random id
  • Username: (NULL) leave it blank
  • UserPSW: (NULL) Leave it blank without filling in
  • Publish: /rtscan/rt870/pubtopic can be customized
  • Subscribe: /rtscan/rt870/subscribe can be customized

Scanner settings

You need to set the RT870 scanner to USB-CDC output: from the user manual, scan the USB-CDC setting code will be ok.

If you need others setting, please use RT870 to scan the corresponding settings codes from the RT870 user manual.

RT001 terminal parameter setting

RT001 provides a variety of connection methods. Here we use WIFI connection routing to establish an MQTT connection with broker.hivemq.com:

  1. Output mode is WIFI or Ethernet

Or

2.When setting to Wi-Fi mode, you need to configure wireless router SSID and password

The encryption method is WPA2, no password, WIFI PSW does not fill in the content

For WIFI connection, fill in your Wi-Fi name (SSID) and password

3. In IP mode, it is recommended to obtain IP dynamically, and the router will assign IP. When set to static IP, three parameters need to be set correctly

OR

Here we use the dynamic acquisition of IP

  1. NET Mode is set to MQTT mode

4. Enter the relevant parameters required by the MQTT server, address port client publish-subscribe option is required, Username, the user password is optional.

  • Address: broker.hivemq.com
  • Port: 1883
  • ClientID: Generate random id
  • Username: (NULL) leave it blank
  • UserPSW: (NULL) Leave it blank without filling in
  • Publish: /rtscan/rt870/pubtopic can be customized
  • Subscribe: /rtscan/rt870/subscribe can be customized

5. Generate setting code

6. Use the device to scan the QR setting code to complete the configuration

Connect the scanner to RT001, scan the generated QR code, RT001 completes the configuration after receiving the configuration data sent by the scanner, and the device automatically connects to the set MQTT broker

7.Transparently transmit the scan code information to the MQTT server

Scan any barcode, the device uploads the barcode data to the set publishing topic and controls the device to upload data to the subject of the device subscription.

Receive data released by the device

After the device is set up, it will automatically connect to the MQTT server, subscribe to the set topic, and upload messages to the set topic.

To receive the scanned code data uploaded by RT001, we need to connect to the same MQTT Broker as RT001. The user can receive the scan code content uploaded by RT001 by subscribing to the topic published by RT001. When a command is sent to the scanner, the user publishes a message to RT001 subscription After receiving the data, RT001 transparently transmits it to the scanner.

MQTT test tool recommends online and PC software, such as:

Online tools http://api.easylink.io/tools/mqtt/

Pc software Mqtt. fx http://mqttfx.jensd.de/

Easylink

 

Easylink uses MQTT Websocket to connect to MQTT broker, the MQTT Websocket port of broker.hivemq.com is 8000

After connection, Subscribe to the topic published by the device

Publish messages to topics subscribed by the device

The device scans the 2d code, and the subscribed topic receives the data sent by the device

Mqttfx

MQTT FX uses MQTT TCP to connect to MQTT broker, the MQTT TCP port of “broker.hivemq.com” is 1883

Subscribe to the topic published by the device after connection /rtscan/rt870/pubtopic

The device scans the 2d code, and the subscribed topic receives the data sent by the device

Publish the message to the topic subscribed by the device: /rtscan/rt870/subscribe

Important tip

You need to set the barcode scanner to USB-CDC output first to successfully communicate with RT001

For any questions, please consult our sales engineer sales@rtscan.net or support team support@rtscan.net.

Thanks!

 

Read More


Wiegand Barcode Scanner & NFC reader And Access Control Solution

 

Introduction:

Most of the barcode scanners do not have Wiegand output. In addition, much often when we configure a barcode scanner with an access control panel,  we would meet these problems: 1. the output data are wrong–different from the original bar code content. 2. no output. These problems are usually because the data format does not match the requirements of the control panel. For example data length, ASCII, hex, or direct output data, with or without prefix/ suffix…

Now we can use the RTWG01 Wiegand converter to achieve Wiegand output and solve the above problems. Via this RTWG01, we can easily customize the output data transferred to the access controller board. Data length, ASCII, hex, or direct output data, with or without prefix/ suffix… For example: if a barcode includes information: “William zhang, 2345666677, ****224455555*…” we can pick up number “34566667” or “23456666” or “5666677”…

 

Firstly, we have the RTMU86 that output by the Wiegand interface directly:

 

Wiegand NFC and 2D Barcode Scanner: RTMU86

 

 

 

And we also developed solutions for three types of barcode scanners:

1. Wiegand solution for barcode scan engines:

2. Wiegand solution for embedded barcode scanner:

3. Wiegand solution for NFC & barcode scanner:

 

 

In this article, we take barcode & NFC reader RTX200 as an example and tell you how to build the solution: configure the scanner and RTWG01 converter, detailed introduction for program the access control software. If you want to learn more about the above solutions for scan engines or embedded scanners, please email us: sales@rtscan.net.

 

A. Hardware preparation:

  • RTX200 Barcode& NFC Scanner
  • RTWG01 converter
  • Type 5 and above 8 core RT45 wire

 

Hardware connection

Connection diagram

RTX200 output the TTL signal through the RJ45 network cable, the other side of the network cable is connected to the RTWG01 which output with Wiegand signal and then connect to the access controller

Connect RTX200 with Wiegand Converter RTWG01 via RT45 wire cable

Connect RTWG01 Wiegand port using wire to access control board Wiegand port

 

B. Software preparation

  • Access control system:  AccessControlV7.61en(ask RTscan sales engineers sales@rtscan.net to learn more about this system)
  • RTX200 Scanner Configuration Software:
  • Config Tool V2.3.12_JF
  • RTWG01 configuration software:
  • RTSCAN RTWG01Config Tool V1.1

Firstly, use Config Tool V2.3.12_JF to set up RTX200 parameters, then connect the RTX200 with the RTWG01 converter, and configure the RTWG01 by RTSCAN RTWG01 Config Tool V1.1.

C. RTX200 Scanner Settings

The RTX200 needs to be set up to TTL output, baud rate 9600, 8 n 1; output mode: direct output, decoded data output to TTL directly.

1. Select Product Model

Run the Config Tool V2.3.12_JF, select: TX

Click next

2. Set Working Mode

Set work mode to ordinary

  • Output T TL
  • Serial port setting
  • Baud rate:9600
  • Data Bit:8
  • Check Digit: NONE
  • Stop Bit:1

Click next

3 Setting the output format

Select Output format->Direct in the “Advanced” option

4. Save Configuration

Click config code to generate the configuration QR code, use the device to scan the QR code to complete the configuration

D. RTWG01 converter settings

RTWG01 default baud rate 9600, the output mode is the digital string to digital output, Wiegand format for automatic recognition, interception function off

1.Set output format

Select “Digital char turn Hex” output format

After scanning the barcode, “Digital char turn Hex” converts the digital string to digital output.

For example: scan a barcode “987654321”, and the access controller will also get data”987654321”.

2. Set the Wiegand format

Set the Wiegand format “auto”

Set to auto mode, automatically output the corresponding format Wiegand signal according to the input content length.

  • 0-16777216 output Wiegand 26 signal
  • 16777216-4294967296 output Wiegand 34 signal
  • 429496729-18446744073709551616 output Wiegand 66 signal

3. Save Configuration

Connect RTWG01 with RTX200 scanner, use the scanner to read the configuration code generated by the RTWG01 config Tool.

E. Installation and Setting of Access Control System Software

1. installation AccessControlV7.61en

This software comes with RTscan’s access controller board, if you want, please contact the RTscan sales team to get the controller and the software. But you can also use your own access control software & system.

 

2.Run and log in to the Access Control System

Login Control Software

Default User Name: abc, password 123

3. Add Access Controller device

Click “1. add C controllers by Searching” scan to add a master controller board inside the LAN

Or click on the Configuration>Controllers ->Search to scan the control access controller in your LAN

4. Modify file controller IP

Select the scanned controller, right-click to select “Configure” to configure the device IP address. You can also specify the device address in the router DHCP server.

Click “Add Found To Database” Add Device

5. Add Person and Card Number

Choose Configuration ->Personnel->Auto Add Add Person

Select the device to enter the door card and Click next

Add card number to the list by reading the barcode or NFC card

Click OK to enter these card numbers

You can also manually enter user information by: Configuration ->Personnel->Add manually

6. Access permissions

Click Configuration ->Access Privilege->Change Privileges to assign permissions to users

Click on > and >> to add users and access control

Click Allow And Download to save the card number to the control panel

7. Real-time monitoring

Click Operation ->Real-Time Monitoring

Read NFC card or scan bar code to control switch on/off of the access

F. Intercepting data to output Wiegand signal to access controller

More often, the bar code data or NFC card data exceeds the Wiegand length or contains other non-numeric characters. In these kinds of applications, we need to make the scanner intercept and only pick up the data we want, and then output to the Wiegand signal.

For example: If a barcode contains information “mobile:11223344, emailuser@rtscan.net “, and we need to intercept the 11223344 only to output via Wiegand interface to the access controller, then we do like this:

Run and Setup intercept function in RTWG01Config Tool

The start bit is the starting position, the length is the intercept length, for the above example: “mobile:11223344,emailuser@rtscan.net”, to intercepts 11223344, we setup:

“mobile:” length 6 byte and number “1” begin from the 7th

“11223344: “8 bytes long

So set to intercept 8 characters from bit 7

When the length is set to 0, the intercept length is all the remaining data.

For example:

If “6914068019529” and we want to intercept 068019529, it is set to:

Notes

You need to set the RTX200 scanner to TTL output of 9600 8-N-1,  then work with RTWG01.

 

 

For any questions, please consult our sales engineer sales@rtscan.net or support team support@rtscan.net.

Thanks!

 

Read More