CN109523675A - A kind of rail traffic disengaging lock control system and method - Google Patents

A kind of rail traffic disengaging lock control system and method Download PDF

Info

Publication number
CN109523675A
CN109523675A CN201811408374.1A CN201811408374A CN109523675A CN 109523675 A CN109523675 A CN 109523675A CN 201811408374 A CN201811408374 A CN 201811408374A CN 109523675 A CN109523675 A CN 109523675A
Authority
CN
China
Prior art keywords
information
user terminal
gate
bluetooth
station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811408374.1A
Other languages
Chinese (zh)
Inventor
赖章勇
谭宁
杨晓添
黄蛟腾
周剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Jiadu Marketing Data Services Ltd
Original Assignee
Guangzhou Jiadu Marketing Data Services Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Jiadu Marketing Data Services Ltd filed Critical Guangzhou Jiadu Marketing Data Services Ltd
Priority to CN201811408374.1A priority Critical patent/CN109523675A/en
Publication of CN109523675A publication Critical patent/CN109523675A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • G07C9/27Individual registration on entry or exit involving the use of a pass with central registration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Abstract

The invention discloses a kind of rail traffic disengaging lock control system and methods, the system includes gate: the two dimensional code that enters the station that gate is used to scan user terminal obtains the information that enters the station, and bluetooth connection is established according to bluetooth manufacturer field and user terminal, wherein, the information that enters the station includes bluetooth manufacturer field, user information and the signaling information of user terminal;Gate establishes bluetooth connection by bluetooth manufacturer field user terminal corresponding with user information, and write back information is sent to the user terminal so that user terminal updates signaling information according to write back information, and after the completion of user terminal updates, gate is opened.Write back information is transmitted to user terminal by way of bluetooth by the present invention, shortens the write-back time, improves the disengaging same line efficiency of lock.

Description

A kind of rail traffic disengaging lock control system and method
Technical field
The present invention relates to technical field of rail traffic, in particular to a kind of rail traffic pass in and out lock control system and Method.
Background technique
With the development of mobile payment, earth-shaking variation, traditional branch of swiping the card is had occurred in the rail traffic means of payment Pay the demand of passenger of can no longer meet, mobile-phone payment occurs gradually over rail traffic payment technical field, two dimensional code payment meet the tendency of and Raw, use is more and more extensive.
In current orbit traffic, passenger generates the two dimensional code that enters the station by rail traffic APP, and the two dimension that enters the station is scanned at gate Code, gate obtains the information that enters the station according to the two dimensional code that enters the station, then the information for needing write-back is sent to background server, then services The rail traffic APP that device will need the information of write-back to be sent to the user terminal again, rail traffic APP are according to the information update of write-back Enter the station information.The time expended during this is long, and increases the burden of server.
Summary of the invention
In view of the above problems, the embodiment of the present invention is designed to provide a kind of rail traffic disengaging lock control system and side Method, so as to solve the deficiencies in the prior art.
According to embodiment of the present invention, a kind of rail traffic disengaging lock control system, including gate are provided:
The two dimensional code that enters the station that the gate is used to scan user terminal obtains the information that enters the station, and according to bluetooth manufacturer word Section with the user terminal establish bluetooth connection, wherein the information that enters the station include the user terminal bluetooth manufacturer field, User information and signaling information;
The gate establishes bluetooth connection by bluetooth manufacturer field user terminal corresponding with the user information, and will Write back information is sent to the user terminal, and after user terminal is properly received the write back information, the gate is opened.
Further include code system in above-mentioned rail traffic disengaging lock control system:
The user terminal initiates offline raw code authorized application to the code system, wherein the offline raw code authorization Application includes the user information of the user terminal;
Signaling information is issued to the user terminal so that the user according to the user information by the code system Terminal enters the station bluetooth manufacturer field, the user information and the signaling information as the information that enters the station, and according to described Information generates the two dimensional code that enters the station.
Further include the user terminal in above-mentioned rail traffic disengaging lock control system:
The user terminal is digitally signed the information that enters the station, and by client public key to the letter that enters the station after signature Breath is encrypted, and generates the two dimensional code that enters the station according to the encrypted information that enters the station;
" two dimensional code that enters the station that the gate is used to scan the user terminal obtains the information that enters the station " includes:
The gate is decrypted the information that enters the station by gate private key, and to the number of the information that enters the station after decryption Signature is verified;
If digital signature authentication success, the gate information that enters the station according to parses bluetooth manufacturer word Section, the user information and the signaling information.
In above-mentioned rail traffic disengaging lock control system, further includes:
The gate scans the broadcast message of surrounding bluetooth and storage, wherein the broadcast message includes the bluetooth factory Quotient's field and Bluetooth MAC address;
" the establishing bluetooth connection according to bluetooth manufacturer field and the user terminal " includes:
The gate determines the corresponding Bluetooth MAC address of bluetooth manufacturer field according to the broadcast message of storage, and Bluetooth connection is established by the Bluetooth MAC address and the user terminal.
In above-mentioned rail traffic disengaging lock control system, " the broadcast message of the gate scanning surrounding bluetooth And store " include:
The broadcast message of the gate scanning surrounding bluetooth, and judge whether have this wide in stored all broadcast messages Broadcast the corresponding record of information;
If there is no the corresponding record of the broadcast message in stored all broadcast messages, the broadcast message is stored;
If there is the corresponding record of the broadcast message in stored all broadcast messages, storage operation is not executed.
In above-mentioned rail traffic disengaging lock control system, described " write back information is sent to the user terminal, and After user terminal is properly received the write back information, the gate is opened " include:
The gate and the user terminal carry out the oneself signature data of exchange by bluetooth exchange oneself signature data Verifying;
After the gate and the user terminal succeed to the oneself signature data verification of exchange, the gate is to described time Write information is digitally signed, and is encrypted by gate public key to the write back information after signature, and by encrypted write-back Information is sent to the user terminal by bluetooth;
The user terminal is decrypted encrypted write back information according to private key for user, and believes the write-back after decryption The digital signature of breath is verified;
If the digital signature authentication success, the user terminal, which returns, is properly received message to the gate;
The gate is opened after receiving the successful reception message.
In above-mentioned rail traffic disengaging lock control system, before outbound, the user terminal returns based on the received Write information is updated the signaling information, and by bluetooth manufacturer field, the user information, the signaling information of update Outbound two dimensional code is generated as outbound information, and according to the outbound information;
When outbound, the gate scans the outbound two dimensional code to obtain the outbound information, and according to described outbound Information generates transaction, and the transaction is sent to the user terminal by bluetooth;
The user terminal is according to the corresponding expense of the transaction payment and will pay successful message and is sent to the lock Machine;
The gate is opened after receiving the successful message of payment.
In above-mentioned rail traffic disengaging lock control system, further includes:
The user terminal is digitally signed the outbound information, and by the client public key to the signature after Outbound information encrypted, and outbound two dimensional code is generated according to encrypted outbound information;
The gate is decrypted the outbound information by gate private key, and to the number of the outbound information after decryption Signature is verified;
If the digital signature authentication success, the gate parse bluetooth manufacturer word according to the outbound information Section, the user information and the signaling information of the update.
It is described " transaction to be sent to the use by bluetooth in above-mentioned rail traffic disengaging lock control system Family terminal " includes:
The gate establishes connection, and the hair according to the update according to bluetooth manufacturer field and the user terminal Code information generates transaction, and the transaction is sent to the corresponding user terminal of the user information by bluetooth.
According to another implementation of the invention, a kind of rail traffic disengaging lock control method is provided, gate is applied to, This method comprises:
The two dimensional code that enters the station that the gate scans the user terminal obtains the information that enters the station, wherein the packet that enters the station Include bluetooth manufacturer field, user information and the signaling information of the user terminal;
The gate establishes bluetooth connection by bluetooth manufacturer field user terminal corresponding with the user information, and will Write back information is sent to the user terminal, and after user terminal is properly received the write back information, the gate is opened.
Yet another embodiment according to the present invention provides a kind of rail traffic disengaging brake gear, is applied to gate, the dress It sets and includes:
Module is obtained, the two dimensional code acquisition of entering the station for scanning the user terminal for the gate is entered the station information, and according to Bluetooth manufacturer field and the user terminal establish bluetooth connection, wherein the information that enters the station includes the user terminal Bluetooth manufacturer field, user information and signaling information;
Write-back module is established for the gate by bluetooth manufacturer field user terminal corresponding with the user information Bluetooth connection, and write back information is sent to the user terminal, and after user terminal is properly received the write back information, institute State gate opening.
Yet another embodiment according to the present invention provides a kind of computer readable storage medium, described computer-readable Computer program is stored in storage medium, the computer program, which is performed, holds above-mentioned rail traffic disengaging lock controlling party Method.
The technical scheme provided by this disclosed embodiment may include it is following the utility model has the advantages that
A kind of rail traffic disengaging lock control system and method, establish bluetooth between gate and user terminal in the present invention The information of write-back, is sent to the user terminal by way of bluetooth, is transmitted by the short-range communication mode of local area network by connection Data reduce transmission time, shorten the time cycle of write-back, improve rail traffic traffic efficiency.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, letter will be made to attached drawing needed in the embodiment below It singly introduces, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as to the present invention The restriction of protection scope for those of ordinary skill in the art without creative efforts, can be with root Other relevant attached drawings are obtained according to these attached drawings.
Fig. 1 shows a kind of structural schematic diagram of rail traffic disengaging lock control system provided in an embodiment of the present invention.
Fig. 2 shows the structural schematic diagrams of another rail traffic disengaging lock control system provided in an embodiment of the present invention.
Fig. 3 shows a kind of rail traffic provided in an embodiment of the present invention into the workflow schematic diagram of lock.
Fig. 4 shows the workflow schematic diagram that a kind of rail traffic provided in an embodiment of the present invention goes out lock.
Fig. 5 shows a kind of flow diagram of rail traffic disengaging lock control method provided in an embodiment of the present invention.
Fig. 6 shows the flow diagram of another rail traffic disengaging lock control method provided in an embodiment of the present invention.
Fig. 7 shows a kind of structural schematic diagram of rail traffic disengaging brake control device provided in an embodiment of the present invention.
Component symbol explanation:
10- rail traffic passes in and out lock control system;100- user terminal;200- gate;300- code system;600- track Traffic passes in and out brake control device;610- obtains module;620- write-back module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment 1
Fig. 1 shows a kind of structural schematic diagram of rail traffic disengaging lock control system provided in an embodiment of the present invention.
It includes gate 200 and user terminal 100 that the rail traffic, which passes in and out lock control system 10,.
The gate 200 may include processing module, scan module and bluetooth module.
When entering the station, the user terminal 100 is equipped with rail traffic APP, and user is after opening rail traffic APP, root The two dimensional code that enters the station is generated according to the information that enters the station of storage, while the Bluetooth information of itself constantly being broadcasted outward.
Wherein, the Bluetooth information includes the Bluetooth broadcast title of user terminal 100, Bluetooth MAC address, bluetooth manufacturer word Section etc..
Further, the user terminal 100 is digitally signed the information that enters the station, and by client public key to institute The information that enters the station after stating signature is encrypted, and generates the two dimensional code that enters the station according to the encrypted information that enters the station.
Specifically, a set of digital signature usually defines two kinds of complementary operations, and one kind is for signing, and one kind is for verifying.
Client public key is only used for mark by the above-mentioned algorithm generation for being used to sign and used by the user terminal 100 One number of segment word string of family identity reality, is digitally signed the information that enters the station by the number of segment word string.And pass through client public key The information that enters the station after above-mentioned signature is encrypted, the security level for the information that enters the station is improved.
Two dimension that the user terminal 100 will be signed by two dimensional code generation technique, encrypted information generation of entering the station is entered the station Code.
The scan module of the gate 200 enters the station two dimensional code for scanning, with obtain include in the two dimensional code that enters the station into It stands information.
Wherein, the information that enters the station includes bluetooth manufacturer field, user information and the signaling information of the user terminal 100 Deng.
The user information includes user's name, User ID etc..
The signaling information includes that hair fastener type, key information (private key for user and client public key), Institution Code, code are effective Time etc..
The information that enters the station further includes other letters in the Bluetooth information of user terminal 100 in addition to bluetooth manufacturer field Breath.
It is further, described that " the two dimensional code acquisition of entering the station that the gate 200 is used to scan the user terminal 100 is entered the station Information " includes:
The gate 200 is decrypted the information that enters the station by gate private key, and to the information that enters the station after decryption Digital signature is verified;If the digital signature authentication success, the gate 200 parse described according to the information that enters the station Bluetooth manufacturer field, the user information and the signaling information.
Specifically, enter the station two dimensional code described in the scan module scanning of the gate 200, and the two dimensional code that will acquire includes The information that enters the station be sent to processing module, processing module is decrypted the information that enters the station by gate private key, and is decrypting After success, verified by digital signature of the gate private key to the information that enters the station, after being proved to be successful, processing module is to the letter that enters the station Breath is parsed, and bluetooth manufacturer field, user information and signaling information are extracted.
It it is worth noting that, the client public key is identical with gate public key, and is disclosed.
The data that user terminal 100 is signed by client public key, encrypted can pass through gate private key at gate 200 The data of user terminal 100 are decrypted and are verified;The data that gate 200 is signed by gate public key, encrypted, with At family terminal 100, it can be decrypted and verify by data of the private key for user to gate 200.
The gate 200 establishes bluetooth company by bluetooth manufacturer field user terminal 100 corresponding with the user information It connects.
Further, the gate 200 scans broadcast message and the storage of surrounding bluetooth, wherein the broadcast message packet Include Bluetooth broadcast title, bluetooth manufacturer field and Bluetooth MAC address.
Specifically, the bluetooth module of the gate 200 scans the broadcast message of surrounding bluetooth every preset time, and will sweep The Bluetooth information retouched is sent to processing module and is stored.
Further, described " gate 200 scans the broadcast message of surrounding bluetooth and storage " includes:
The gate 200 scans the broadcast message of surrounding bluetooth, and judges whether have in stored all broadcast messages The corresponding record of the broadcast message;If there is no the corresponding record of the broadcast message in stored all broadcast messages, institute is stored State broadcast message;If there is the corresponding record of the broadcast message in stored all broadcast messages, storage operation is not executed.
It specifically, can be in the broadcast message of the bluetooth after the processing module of gate 200 receives the broadcast message of bluetooth Any information (for example, can be Bluetooth MAC address, bluetooth manufacturer field or Bluetooth broadcast title) be index, lookup deposited The corresponding record of broadcast message that whether there is the bluetooth in the broadcast message of all bluetooths of storage, if stored all bluetooths Broadcast message in there are the corresponding record of the broadcast message of the bluetooth, do not execute the operation of storage;If stored all indigo plants There is no the corresponding record of the broadcast message of the bluetooth in the broadcast message of tooth, stores the broadcast message of the bluetooth, deposited with guaranteeing The broadcast message of all bluetooths of storage is the broadcast message of different bluetooths, reduces occupied space, in a limited space interior storage The broadcast message of bluetooth as much as possible.
The processing module of the gate 200 is using the bluetooth manufacturer field of above-mentioned parsing as index, in all indigo plants of storage The broadcast message of tooth searches the corresponding record of bluetooth manufacturer field, and searches corresponding Bluetooth MAC address in this record.
Specifically, the broadcast message of all bluetooths of the storage can be described by table.
User terminal number Bluetooth broadcast title Bluetooth manufacturer field Bluetooth MAC address
A A1 A2 A3
B B1 B2 B3
…… …… …… ……
As shown above, the broadcast message of the bluetooth of user terminal A includes Bluetooth broadcast title A1, bluetooth manufacturer field A2 And Bluetooth MAC address A3, it is index with A2, searches corresponding user terminal A in the broadcast message of all bluetooths of storage Record where the broadcast message of bluetooth finds Bluetooth MAC address A3 in this record;The broadcast of the bluetooth of user terminal B Information includes Bluetooth broadcast title B1, bluetooth manufacturer field B2 and Bluetooth MAC address B3, is index with B2, in all of storage The record where the broadcast message of the bluetooth of corresponding user terminal B is searched in the broadcast message of bluetooth, is searched in this record To Bluetooth MAC address B3, etc..
After determining the corresponding Bluetooth MAC address of bluetooth manufacturer field, the processing module of the gate 200 by searching for To Bluetooth MAC address establish bluetooth connection to corresponding user terminal 100.
For example, after processing module determines its corresponding Bluetooth MAC address A3 by bluetooth manufacturer field A2, according to A3 to right The user terminal A answered initiates Bluetooth connection request.After user terminal A receives the connection request, returns and receive successful message To gate 200, after the processing module of gate 200 receives the successful message of reception of user terminal transmission, user terminal A is indicated Have received the connection request sent from gate 200.Wherein, the indigo plant of the bluetooth module in the connection request including gate 200 The information such as tooth MAC Address.
After receiving connection request, user terminal 100 is according to the Bluetooth MAC address of bluetooth module in gate 200 and gate 200 Bluetooth module establish bluetooth connection, and after successful connection, the message of successful connection is sent to gate 200, gate 200 After processing module receives the message of successful connection, indicate that the bluetooth of user terminal 100 is connected with the bluetooth module in gate 200 Success, can be communicated by bluetooth.
Write back information is sent to the user terminal 100 by the gate 200, and is properly received institute in user terminal 100 After stating write back information, the gate 200 is opened.
It is further, described that " write back information is sent to the user terminal 100 by gate 200, and in user terminal 100 After being properly received the write back information, the gate 200 is opened " include:
The gate 200 and the user terminal 100 exchange oneself signature data by bluetooth, and to the oneself signature number of exchange According to being verified.
Specifically, after establishing bluetooth connection between user terminal 100 and gate 200, user terminal 100 leads to client public key It crosses the above-mentioned algorithm for signature and generates the number of segment word string for being only used for identity user identity reality, and by the generation Numeric string gate 200 is sent to by bluetooth, gate 200 is verified by numeric string of the gate private key to the signature;Together When, gate public key is only used for mark 200 identity of gate by the above-mentioned algorithm generation for being used to sign by the gate 200 One number of segment word string of authenticity, and the numeric string of the generation is sent to the user terminal 100 by bluetooth, user terminal 100 is logical Private key for user is crossed to verify the numeric string of the signature.
After the gate 200 and the user terminal 100 succeed to the oneself signature data verification of exchange, the gate 200 pairs of write back informations are digitally signed, and are encrypted by gate public key to the write back information after signature, and will be added Write back information after close is sent to the user terminal 100 by bluetooth.
Specifically, it is proved to be successful in oneself signature of the user terminal 100 to gate 200, and gate 200 is to user terminal 100 Oneself signature be proved to be successful after, write back information is digitally signed by gate 200 by gate public key, and will be after digital signature Write back information is encrypted by gate public key, and signature, encrypted write back information are sent to the user terminal by bluetooth 100。
Wherein, the write back information includes hair fastener type, time of entering the station, site number, number out of the station, gate number etc. Information.
The user terminal 100 is decrypted encrypted write back information according to private key for user, and to returning after decryption The digital signature of write information is verified.
Specifically, user terminal 100 passes through private key for user pair after receiving the signature, encrypted write back information The signature, encrypted write back information are decrypted, and carry out signature verification to the write back information after decryption by private key for user.
If the digital signature authentication success, the user terminal 100, which returns, is properly received message to the gate 200.
The gate 200 is opened after receiving the successful reception message, so that user is entered the station.
Further, before outbound, the user terminal 100 based on the received write back information to the signaling information into Row updates, and by bluetooth manufacturer field, the user information, signaling information of update etc. as outbound information, and according to The outbound information generates outbound two dimensional code.
Specifically, in this period between lock out, the user terminal 100 is updated according to write back information into after lock The signaling information of storage.
After being updated successfully, user terminal 100 is by the bluetooth manufacturer field of bluetooth, user terminal 100 in user terminal 100 Corresponding user information and the signaling information of update etc. are used as outbound information, and outbound information is raw by two dimensional code generation technique At outbound two dimensional code.
Further, the user terminal 100 is digitally signed the outbound information, and passes through the client public key Outbound information after the signature is encrypted, and outbound two dimensional code is generated according to encrypted outbound information.
Specifically, user terminal 100 is digitally signed outbound information by client public key, and passes through client public key pair Outbound information after signature is encrypted, and by two dimensional code generation technique that signature, the generation of encrypted outbound information is outbound Two dimensional code.
When outbound, the gate 200 scans the outbound two dimensional code to obtain the outbound information.
Further, the gate 200 is decrypted the outbound information by gate private key, and to going out after decryption The digital signature for information of standing is verified.If the digital signature authentication success, the gate 200 is according to the outbound information solution Bluetooth manufacturer field, the user information and the signaling information of the update is precipitated.
Specifically, the gate 200 solves the signature of scanning acquisition, encrypted outbound information by gate private key It is close, and the signature for including in the outbound information after decryption is verified by gate private key.After decrypting, being proved to be successful, institute It states gate 200 to parse outbound information, extracts bluetooth manufacturer field, user information and updated signaling information.
The gate 200 is generated according to the outbound information and is traded, and the transaction is sent to the use by bluetooth Family terminal 100.
Further, described " transaction is sent to the user terminal 100 by bluetooth " includes:
Specifically, after the user terminal 100 opens rail traffic APP, the broadcast message of its bluetooth is constantly broadcasted outward.
The processing module of gate 200 is received in the user terminal 100 and is stored after the broadcast message of bluetooth.Wherein, The broadcast message includes Bluetooth broadcast title, bluetooth manufacturer field and Bluetooth MAC address.
Gate 200 determines the indigo plant of bluetooth in its corresponding user terminal 100 according to the bluetooth manufacturer field in outbound information Tooth MAC Address, and bluetooth connection is established according to bluetooth in the Bluetooth MAC address and user terminal 100.
The processing module of the gate 200 is believed according to time of entering the station, site number, the state out of the station etc. in outbound information Breath generates transaction.
After establishing bluetooth connection between gate 200 and user terminal 100, the gate 200 sends the transaction of generation To user terminal 100, so that user terminal 100 pays the corresponding expense of the transaction.
The user terminal 100 according to the corresponding expense of the transaction payment and will pay successful message be sent to it is described Gate 200.The gate 200 is opened after receiving the successful message of payment.
Fig. 2 shows the structural schematic diagrams of another rail traffic disengaging lock control system provided in an embodiment of the present invention.
It further includes code system 300 that the rail traffic, which passes in and out lock control system 10,.
The user terminal 100 initiates to give birth to code authorized application offline to the code system 300, wherein the offline life Code authorized application includes the user information of the user terminal 100.The code system 300 is according to the user information by signaling Information be issued to the user terminal 100 so that the user terminal 100 by bluetooth manufacturer field, the user information and The signaling information generates the two dimensional code that enters the station as the information that enters the station, and according to the information that enters the station.
Specifically, after opening rail traffic APP, rail traffic APP is sent out the user terminal 100 to code system 300 Offline raw code authorized application is played, signaling information is sent to the corresponding user terminal 100 of the user information by code system 300.With Family terminal 100 by it includes the bluetooth manufacturer field of bluetooth, its corresponding user information and received come from code system 300 Signaling information as entering the station information, and the information that will enter the station enters the station two dimensional code according to the generation of two dimensional code generation technique.
Wherein, the signaling information include hair fastener type, key information (private key for user and client public key), Institution Code, Code effective time etc..
Fig. 3 shows a kind of rail traffic provided in an embodiment of the present invention into the workflow schematic diagram of lock.
The workflow of the rail traffic into lock includes the following steps:
The first step, the user terminal 100 open Bluetooth broadcast.
Specifically, user terminal 100 opens rail traffic APP, and controls the broadcast letter that bluetooth constantly broadcasts bluetooth outward Breath, wherein the broadcast message includes bluetooth manufacturer field and Bluetooth MAC address.
Gate 200 continually scans for the broadcast message of bluetooth and stores the broadcast message of scanning.
Second step, the user terminal 100 initiate to give birth to code authorized application offline to the code system 300.
It wherein, include the corresponding user information of user terminal 100 in the offline raw code authorized application.
Third step, the code system 300 issue signaling information.
Specifically, signaling information is issued to the corresponding user terminal 100 of the user information by the code system 300.
4th step, user terminal 100 generate the two dimensional code that enters the station.
Specifically, the user terminal 100 by it includes the bluetooth manufacturer field of bluetooth, its corresponding user information and Received signaling information generates the two dimensional code that enters the station as the information that enters the station, and according to the information that enters the station.
5th step, user terminal 100 show the two dimensional code that enters the station to gate 200.
6th step, gate 200 obtain the information that enters the station according to the two dimensional code that enters the station.
Wherein, bluetooth manufacturer field is included at least in the information that enters the station.
7th step, gate 200 initiate Bluetooth connection request to user terminal 100.
Specifically, gate 200 searches the broadcast message of all bluetooths of storage according to the bluetooth manufacturer field of acquisition, with true The fixed corresponding Bluetooth MAC address of bluetooth manufacturer field.
The gate 200 initiates Bluetooth connection request to corresponding user terminal 100 according to the Bluetooth MAC address of acquisition.
8th step, gate 200 and user terminal 100 exchange oneself signature.
Specifically, after establishing bluetooth connection between gate 200 and user terminal 100, gate 200 is raw according to gate public key 100 are sent to the user terminal by bluetooth at gate oneself signature data, and by the oneself signature data of generation.
User terminal 100 generates user terminal oneself signature data according to client public key, and the oneself signature data of generation are led to It crosses bluetooth and is sent to gate 200.
9th step, gate 200 and user terminal 100 verify oneself signature.
Specifically, gate 200 verifies user terminal oneself signature by gate private key, and user terminal 100 passes through use Family private key verifies gate oneself signature.
Tenth step, gate 200 send write back information to user terminal 100.
Specifically, after being proved to be successful, gate 200 is signed to write back information by gate public key, is encrypted, and will label Name, encrypted write back information are sent to the user terminal 100 by bluetooth.
11st step, user terminal 100, which is sent, is properly received message to gate 200.
Specifically, user terminal 100 is decrypted received message by private key for user, and verifies to signature, After decryption, verifying are successful, user terminal 100, which is sent, is properly received message to gate 200.
12nd step, gate 200 are opened.
13rd step, user terminal 100 update signaling data.
Specifically, the signaling data that user terminal 100 is updated storage according to write back information.
It is worth noting that, user terminal 100 can into after lock to any time before lock out according to write back information The signaling data updated storage.
Fig. 4 shows the workflow schematic diagram that a kind of rail traffic provided in an embodiment of the present invention goes out lock.
The workflow that the rail traffic goes out lock includes the following steps:
The first step, user terminal 100 open Bluetooth broadcast.
Specifically, user terminal 100 opens rail traffic APP, and controls the broadcast letter that bluetooth constantly broadcasts bluetooth outward Breath, wherein the broadcast message includes bluetooth manufacturer field and Bluetooth MAC address.
Gate 200 continually scans for the broadcast message of bluetooth and stores the broadcast message of scanning.
Second step, user terminal 100 generate outbound two dimensional code.
Specifically, user terminal 100 is by the bluetooth manufacturer field of itself bluetooth, itself corresponding user information and after updating Signaling information as outbound information, outbound information is generated by outbound two dimensional code by two dimensional code generation technique.
Third step, user terminal 100 show outbound two dimensional code to gate 200.
4th step, gate 200 obtain outbound information.
Specifically, gate 200 parses outbound information, extracts bluetooth manufacturer field, user information and signaling information.
5th step, gate 200 generate transaction.
Specifically, the gate 200 is according to information such as time of entering the station, site number, states out of the station in signaling information Transaction is generated, cost information, that is, user in the transaction takes the expense paid needed for the rail traffic.
6th step, gate 200 initiate Bluetooth connection request to user terminal 100.
Specifically, gate 200 searches the broadcast message of all bluetooths of storage according to the bluetooth manufacturer field of acquisition, with true The fixed corresponding Bluetooth MAC address of bluetooth manufacturer field.
The gate 200 initiates Bluetooth connection request to corresponding user terminal 100 according to the Bluetooth MAC address of acquisition.
It is worth noting that, the 5th step and the 6th step can arbitrarily exchange position, can also carry out simultaneously.
7th step, user terminal 100 and gate 200 exchange oneself signature.
Specifically, after establishing bluetooth connection between gate 200 and user terminal 100, gate 200 is raw according to gate public key 100 are sent to the user terminal by bluetooth at gate oneself signature data, and by the oneself signature data of generation.
User terminal 100 generates user terminal oneself signature data according to client public key, and the oneself signature data of generation are led to It crosses bluetooth and is sent to gate 200.
8th step, user terminal 100 and gate 200 verify oneself signature.
Specifically, gate 200 verifies user terminal oneself signature by gate private key, and user terminal 100 passes through use Family private key verifies gate oneself signature.
9th step, gate 200 send to user terminal 100 and trade.
Specifically, after the identity for being confirmed each other other side is legal, gate 200 will be generated for gate 200 and user terminal 100 Transaction be sent to the user terminal 100 by bluetooth.
Tenth step, user terminal 100 pay corresponding expense.
Specifically, user terminal 100 is according to the corresponding expense of the transaction payment.
11st step, user terminal 100, which is sent, pays successful message to gate 200.
12nd step, gate 200 are opened.
Embodiment 2
Fig. 5 shows a kind of flow diagram of rail traffic disengaging lock control method provided in an embodiment of the present invention.
Rail traffic disengaging lock control method includes the following steps:
The two dimensional code that enters the station of step S410, gate scanning user terminal obtain the information that enters the station.
Wherein, the information that enters the station includes bluetooth manufacturer field, user information and the signaling information of the user terminal.
Step S420, gate establish bluetooth connection by bluetooth manufacturer field user terminal corresponding with user information, and Write back information is sent to the user terminal, and after user terminal is properly received write back information, gate is opened.
Fig. 6 shows the flow diagram of another rail traffic disengaging lock control method provided in an embodiment of the present invention.
Rail traffic disengaging lock control method includes the following steps:
The two dimensional code that enters the station of step S510, gate scanning user terminal obtain the information that enters the station.
Step S520, gate establish bluetooth connection by bluetooth manufacturer field user terminal corresponding with user information, and Write back information is sent to the user terminal so that user terminal updates signaling information according to write back information, and updates in user terminal After the completion, gate is opened.
Step S530, before outbound, write back information is updated signaling information to user terminal based on the received, and will Bluetooth manufacturer field, user information, the signaling information of update generate outbound two dimension as outbound information, and according to outbound information Code.
Step S540, when outbound, gate scans outbound two dimensional code and generates to obtain outbound information, and according to outbound information Transaction, and transaction is sent to the user terminal by bluetooth.
Step S550, user terminal is according to the corresponding expense of transaction payment and will pay successful message and is sent to gate.
Step S560, gate are opened after receiving the successful message of payment.
Embodiment 3
Fig. 7 shows a kind of structural schematic diagram of rail traffic disengaging brake control device provided in an embodiment of the present invention.
It includes obtaining module 610 and write-back module 620 that the rail traffic, which passes in and out brake control device 600,.
Module 610 is obtained, the two dimensional code that enters the station for scanning the user terminal for the gate obtains enter the station information, and root Bluetooth connection is established according to bluetooth manufacturer field and the user terminal, wherein the information that enters the station includes that the user is whole Bluetooth manufacturer field, user information and the signaling information at end.
Write-back module 620 passes through bluetooth manufacturer field user terminal corresponding with the user information for the gate Bluetooth connection is established, and write back information is sent to the user terminal, and be properly received the write back information in user terminal Afterwards, the gate is opened.
Further, rail traffic disengaging brake control device 600 further includes update module, outbound two dimensional code generation mould Block, transaction modules, payment module and opening module.
Update module, for before outbound, the user terminal based on the received write back information to the signaling information It is updated.
Outbound two-dimensional code generation module, for the user terminal by bluetooth manufacturer field, the user information, more New signaling information generates outbound two dimensional code as outbound information, and according to the outbound information.
Transaction modules are used for when outbound, and the gate scans the outbound two dimensional code to obtain the outbound information, and It is generated and is traded according to the outbound information, and the transaction is sent to the user terminal by bluetooth.
Payment module according to the corresponding expense of the transaction payment and will pay successful message for the user terminal It is sent to the gate.
Module is opened, is opened after receiving the successful message of payment for the gate.
The embodiment of the present invention also provides a kind of computer readable storage medium, stores in the computer readable storage medium There is computer program, the computer program, which is performed, holds above-mentioned rail traffic disengaging lock control method.
So far, the present invention provides a kind of rail traffic disengaging lock control system and methods, when entering the station, in gate and use Bluetooth connection is established between the terminal of family, the information of write-back is sent to the user terminal by way of bluetooth, passes through local area network Short-range communication mode transmits data, reduces transmission time, shortens the time cycle of write-back, improves rail traffic traffic efficiency; When outbound, bluetooth connection is established between gate and user terminal, is sent to the user terminal transaction by way of bluetooth, Data are transmitted by the short-range communication mode of local area network, transmission time is reduced, shortens the time cycle of transaction, track is improved and hands over Line efficiency all;By near radio transmission mode, compared to internet, security performance is higher.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and structure in attached drawing Figure shows the system frame in the cards of the device of multiple embodiments according to the present invention, method and computer program product Structure, function and operation.In this regard, each box in flowchart or block diagram can represent a module, section or code A part, a part of the module, section or code includes one or more for implementing the specified logical function Executable instruction.It should also be noted that function marked in the box can also be to be different from the implementation as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that in structure chart and/or flow chart The combination of each box and the box in structure chart and/or flow chart, can function or movement as defined in executing it is dedicated Hardware based system realize, or can realize using a combination of dedicated hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention can integrate one independence of formation together Part, be also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be intelligence Can mobile phone, personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic or disk etc. be various to can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.

Claims (10)

1. a kind of rail traffic passes in and out lock control system, which is characterized in that including gate:
The two dimensional code that enters the station that the gate is used to scan user terminal obtains the information that enters the station, wherein the information that enters the station includes institute State bluetooth manufacturer field, user information and the signaling information of user terminal;
The gate establishes bluetooth connection by bluetooth manufacturer field user terminal corresponding with the user information, and by write-back Information is sent to the user terminal, and after user terminal is properly received the write back information, the gate is opened.
2. rail traffic according to claim 1 passes in and out lock control system, which is characterized in that further include code system:
The user terminal initiates offline raw code authorized application to the code system, wherein the offline raw code authorized application User information including the user terminal;
Signaling information is issued to the user terminal so that the user terminal according to the user information by the code system Using bluetooth manufacturer field, the user information and the signaling information as the information that enters the station, and according to the information that enters the station Generation is entered the station two dimensional code.
3. rail traffic according to claim 2 passes in and out lock control system, which is characterized in that further include that the user is whole End:
The user terminal is digitally signed the information that enters the station, and by client public key to after signature enter the station information into Row encryption, and the two dimensional code that enters the station is generated according to the encrypted information that enters the station;
" two dimensional code that enters the station that the gate is used to scan the user terminal obtains the information that enters the station " includes:
The gate is decrypted the information that enters the station by gate private key, and to the digital signature of the information that enters the station after decryption It is verified;
If digital signature authentication success, the gate information that enters the station according to parses bluetooth manufacturer field, institute State user information and the signaling information.
4. rail traffic according to claim 1 passes in and out lock control system, which is characterized in that further include:
The gate scans the broadcast message of surrounding bluetooth and storage, wherein the broadcast message includes bluetooth manufacturer word Section and Bluetooth MAC address;
" the establishing bluetooth connection according to bluetooth manufacturer field and the user terminal " includes:
The gate determines the corresponding Bluetooth MAC address of bluetooth manufacturer field according to the broadcast message of storage, and passes through The Bluetooth MAC address and the user terminal establish bluetooth connection.
5. rail traffic according to claim 4 passes in and out lock control system, which is characterized in that " the gate scanning The broadcast message of surrounding bluetooth and storage " include:
The broadcast message of the gate scanning surrounding bluetooth, and judge whether there is broadcast letter in stored all broadcast messages Cease corresponding record;
If there is no the corresponding record of the broadcast message in stored all broadcast messages, the broadcast message is stored;
If there is the corresponding record of the broadcast message in stored all broadcast messages, storage operation is not executed.
6. rail traffic according to claim 3 passes in and out lock control system, which is characterized in that described " to send out write back information Send to the user terminal, and after user terminal is properly received the write back information, the gate is opened " include:
The gate and the user terminal test the oneself signature data of exchange by bluetooth exchange oneself signature data Card;
After the gate and the user terminal succeed to the oneself signature data verification of exchange, the gate believes the write-back Breath is digitally signed, and is encrypted by gate public key to the write back information after signature, and by encrypted write back information The user terminal is sent to by bluetooth;
The user terminal is decrypted encrypted write back information according to private key for user, and to the write back information after decryption Digital signature is verified;
If the digital signature authentication success, the user terminal, which returns, is properly received message to the gate;
The gate is opened after receiving the successful reception message.
7. rail traffic according to claim 6 passes in and out lock control system, which is characterized in that before outbound, the use Write back information is updated the signaling information to family terminal based on the received, and by bluetooth manufacturer field, the user Information, the signaling information of update generate outbound two dimensional code as outbound information, and according to the outbound information;
When outbound, the gate scans the outbound two dimensional code to obtain the outbound information, and according to the outbound information Transaction is generated, and the transaction is sent to the user terminal by bluetooth;
The user terminal is according to the corresponding expense of the transaction payment and will pay successful message and is sent to the gate;
The gate is opened after receiving the successful message of payment.
8. rail traffic according to claim 7 passes in and out lock control system, which is characterized in that further include:
The user terminal is digitally signed the outbound information, and by the client public key to going out after the signature Information of standing is encrypted, and generates outbound two dimensional code according to encrypted outbound information;
The gate is decrypted the outbound information by gate private key, and to the digital signature of the outbound information after decryption It is verified;
If the digital signature authentication success, the gate parse bluetooth manufacturer field, institute according to the outbound information State the signaling information of user information and the update.
9. rail traffic as claimed in claim 8 passes in and out lock control system, which is characterized in that described " to pass through the transaction Bluetooth is sent to the user terminal " include:
The gate establishes connection according to bluetooth manufacturer field and the user terminal, and is believed according to the signaling of the update Breath generates transaction, and the transaction is sent to the corresponding user terminal of the user information by bluetooth.
10. a kind of rail traffic passes in and out lock control method, which is characterized in that it is applied to gate, this method comprises:
The two dimensional code that enters the station that the gate scans the user terminal obtains the information that enters the station, wherein the information that enters the station includes institute State bluetooth manufacturer field, user information and the signaling information of user terminal;
The gate establishes bluetooth connection by bluetooth manufacturer field user terminal corresponding with the user information, and by write-back Information is sent to the user terminal, and after user terminal is properly received the write back information, the gate is opened.
CN201811408374.1A 2018-11-23 2018-11-23 A kind of rail traffic disengaging lock control system and method Pending CN109523675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811408374.1A CN109523675A (en) 2018-11-23 2018-11-23 A kind of rail traffic disengaging lock control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811408374.1A CN109523675A (en) 2018-11-23 2018-11-23 A kind of rail traffic disengaging lock control system and method

Publications (1)

Publication Number Publication Date
CN109523675A true CN109523675A (en) 2019-03-26

Family

ID=65777752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811408374.1A Pending CN109523675A (en) 2018-11-23 2018-11-23 A kind of rail traffic disengaging lock control system and method

Country Status (1)

Country Link
CN (1) CN109523675A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021057496A1 (en) * 2019-09-24 2021-04-01 南京熊猫信息产业有限公司 Qr-code based internet ticketing system and control method therefor

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158567A (en) * 2014-07-25 2014-11-19 天地融科技股份有限公司 Pairing method and system and data interaction method and system for Bluetooth equipment
CN104836776A (en) * 2014-02-10 2015-08-12 阿里巴巴集团控股有限公司 Data interaction method and device
CN105261071A (en) * 2015-11-13 2016-01-20 广西米付网络技术有限公司 Bluetooth and two-dimensional code-based ticket checking system and method
CN205318477U (en) * 2015-12-07 2016-06-15 广西米付网络技术有限公司 Subway ticket checking terminal based on bluetooth low energy and two -dimensional code scanning
US20160275491A1 (en) * 2015-03-17 2016-09-22 Ca, Inc. Simplified two factor authentication for mobile payments
CN206601733U (en) * 2017-07-27 2017-10-31 上海申通地铁集团有限公司 Ticket checking consumption system is sold in track traffic based on Quick Response Code off line certification
CN207068064U (en) * 2017-06-16 2018-03-02 余清 A kind of intelligent card-reading module and intelligence ticket checking terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836776A (en) * 2014-02-10 2015-08-12 阿里巴巴集团控股有限公司 Data interaction method and device
CN104158567A (en) * 2014-07-25 2014-11-19 天地融科技股份有限公司 Pairing method and system and data interaction method and system for Bluetooth equipment
US20160275491A1 (en) * 2015-03-17 2016-09-22 Ca, Inc. Simplified two factor authentication for mobile payments
CN105261071A (en) * 2015-11-13 2016-01-20 广西米付网络技术有限公司 Bluetooth and two-dimensional code-based ticket checking system and method
CN205318477U (en) * 2015-12-07 2016-06-15 广西米付网络技术有限公司 Subway ticket checking terminal based on bluetooth low energy and two -dimensional code scanning
CN207068064U (en) * 2017-06-16 2018-03-02 余清 A kind of intelligent card-reading module and intelligence ticket checking terminal
CN206601733U (en) * 2017-07-27 2017-10-31 上海申通地铁集团有限公司 Ticket checking consumption system is sold in track traffic based on Quick Response Code off line certification

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021057496A1 (en) * 2019-09-24 2021-04-01 南京熊猫信息产业有限公司 Qr-code based internet ticketing system and control method therefor

Similar Documents

Publication Publication Date Title
CN104134142B (en) A kind of subway booking recognized based on Quick Response Code, ticket checking method
CN109345438A (en) A kind of alliance of secret protection calls a taxi method and system
CN105741536B (en) A kind of anonymity taxi take system and mobile security method of payment
CN107194694B (en) Offline payment method based on two-dimension code
CN102306328B (en) Device and system for manufacturing bank card
CN105553654B (en) Key information processing method and device, key information management system
CN103632436B (en) A kind of method of the withdrawal based on terminal
CN103415858A (en) Mobile application bar code identification method and system
CN107194688A (en) In payment system and its method of the offline scenario based on Quick Response Code
CN107742212A (en) Assets verification method, apparatus and system based on block chain
CN110930147B (en) Offline payment method and device, electronic equipment and computer-readable storage medium
CN101547095A (en) Application service management system and management method based on digital certificate
CN103942687A (en) Data security interactive system
CN103942688A (en) Data security interactive system
CN107798531A (en) Electric paying method and system
CN108510252A (en) A kind of intelligent electric automobile power grid security payment system and method based on block chain
CN103944736A (en) Data security interactive method
CN109617675A (en) Both sides' identification authentication method and system between a kind of charge-discharge facility and user terminal
CN110060403A (en) The more ticket electronic voting methods of a people and system based on block chain
CN112508575B (en) Subway passing brake payment method and system based on digital currency
CN108460593A (en) A kind of offline Quick Response Code method of payment and device
CN107995104A (en) A kind of system and method based on instant message push service message
CN109658096A (en) A kind of digital rights proof converting system based on block chain
CN108646604A (en) A kind of vehicle maintenance system based on block chain
CN108259486A (en) End-to-end key exchange method based on certificate

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190326