RXD: TTL serial port receiving port
TXD: TTL serial port sending port
VCC: 5V power supply positive
GND: 5V power supply negative
OUT: Output port, when the card is recorded, it outputs high level when it is close to the sensor, and returns to low level after leaving.
KEY: Keep pressed before powering on and then power on, clear all card records
Instructions for use:
Serial communication protocol
1. ID card decoding method:
The ID card is decoded and output immediately after it is approached, and the serial port outputs the card number once. The character format is: "card number: xxXXXXXXXx@" (the card number is the 10-digit card number on the actual ID card)
2. Serial port operation delete and register card method
(1) Delete all cards, and the serial port receiving character format is: "Delete card: all@"-------reply "Delete all completed"
(2) To delete a card, the serial port receiving character format is: "Delete card: card O0@"-reply "Card 0 delete complete"
(3) When registering a certain card, the serial port receiving character format is: "registered card: card 00@"——-reply "start registering card",
The indicator light keeps flashing and waits for the card to approach, after the registration is completed --- reply "registration completed" (if card 1 has a card, it will be overwritten)
(4) Inquire about all cards, the format of serial port receiving characters is: "Inquiry card: all@"
-----The format for replying to all card numbers is:
Card number 0: xXXXXXXXXx@
Card number 2: XXXXXXXxxx@
3. Setting method of serial port baud rate:
(1) The serial port receiving format is: "Set baud rate: xxxx@"
The baud rates are: 4800, 9600, 57600, 115200. If you want to set the baud rate to 960O, send: "Set the baud rate: 9600@"
Note: Registration can only be registered according to the order. If the serial number has been registered, it can be re-registered. If the serial number has not been registered, the registration will be arranged according to the order, and the registration cannot be skipped. ―The same is true for deletion. If there are 10 cards, if the first card is deleted, there are 9 cards left, and the original card 2 becomes card 1
Supporting setting software
This software is a common serial port assistant software. Users need to pair USB to TTL and connect the module to the computer to use this software. For customers who are more proficient in the MCU serial assistant, you can also use the transceiver function of the serial assistant to realize the settings, and you don't necessarily need to use the software provided by this store. At the same time, customers who are connected to the single-chip microcomputer do not need to use this software, and can be directly operated by the single-chip microcomputer.
Use with computer:
1. Connect the USB to TTL to the ID card reader module and plug it into the computer
2. Open "RFID2 Module Setting Software", select the corresponding COM port and open the serial port
3. At this time, you can add the registration card and delete the card according to your needs.
Use with MCU:
1. First write the program of the serial communication protocol of the MCU corresponding to the ID card reader module. For example, the single-chip microcomputer can send the register card and delete the card light command to the ID card reader module, and can receive and judge the current card number and other operations through the serial port. (Can be combined with serial port assistant for debugging)
2. Connect the single-chip microcomputer and the ID card reader module, and then you can execute the serial port transceiver command according to the situation of the single-chip microcomputer.
make. If the microcontroller records the ID card number first, the next time the ID card is sensed again, the microcontroller will determine whether it is the current one.
The recorded card number, if yes, perform related operations. (Such as realizing MCU to open the door and turn on the lights, etc.)