CN112419524A - Hot standby method of intelligent parking integrated machine - Google Patents

Hot standby method of intelligent parking integrated machine Download PDF

Info

Publication number
CN112419524A
CN112419524A CN202011397441.1A CN202011397441A CN112419524A CN 112419524 A CN112419524 A CN 112419524A CN 202011397441 A CN202011397441 A CN 202011397441A CN 112419524 A CN112419524 A CN 112419524A
Authority
CN
China
Prior art keywords
host
machine
database
standby
parking
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
CN202011397441.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.)
Hangzhou Huawin Technology Co ltd
Original Assignee
Hangzhou Huawin Technology Co 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 Hangzhou Huawin Technology Co ltd filed Critical Hangzhou Huawin Technology Co ltd
Priority to CN202011397441.1A priority Critical patent/CN112419524A/en
Publication of CN112419524A publication Critical patent/CN112419524A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B15/00Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points
    • G07B15/02Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points taking into account a variable factor such as distance or time, e.g. for passenger transport, parking systems or car rental systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The invention discloses a hot standby method of an intelligent parking integrated machine, which comprises a host machine and a standby machine, wherein the host machine and the standby machine share a database, and the hot standby method is characterized in that: the front end of the database is connected with a Web visual interface, and the rear end of the database is connected with a java background; parameters of configuration files in the database are modified through java background operation to serve as constants and variables required by the host and the standby machine, the database is closed and started through matching with the bat script according to a fixed sequence, and dual-machine hot standby of the host and the standby machine is achieved. The intelligent parking integrated machine can realize hot backup and additional recording of data, and ensure the integrity of the stored data of the intelligent parking integrated machine during a short-term fault, thereby ensuring the normal operation of parking lot services.

Description

Hot standby method of intelligent parking integrated machine
Technical Field
The invention relates to the technical field of parking charging, in particular to a hot standby method of an intelligent parking all-in-one machine.
Background
The existing parking lot is provided with cameras, LEDs and barriers, generally speaking, a set top box provided with a parking lot charging system computer or a professional charging function is arranged on the spot, the parking lot charging system computer or the professional charging function is connected to a cloud end through a wired network, and the cloud end is utilized for interactive payment. However, in practice, the computer is abnormal due to the fact that the parking lot shifts or some emergency situations such as the shift change, data confusion of the parking lot can be caused, and operation of the parking lot can be affected. And traditional control system in parking area sets up in the computer, if the problem can cause the unable pole-lifting charge scheduling problem in parking area, great influence user experience.
Disclosure of Invention
The invention aims to provide a hot standby method of an intelligent parking integrated machine. The intelligent parking integrated machine can realize hot backup and additional recording of data, and ensure the integrity of the stored data of the intelligent parking integrated machine during a short-term fault, thereby ensuring the normal operation of parking lot services.
The technical scheme of the invention is as follows: the hot standby method of the intelligent parking integrated machine comprises a host machine and a standby machine, wherein the host machine and the standby machine share a database, the front end of the database is connected with a Web visual interface, and the rear end of the database is connected with a java background; parameters of configuration files in the database are modified through java background operation to serve as constants and variables required by the host and the standby machine, the database is closed and started through matching with the bat script according to a fixed sequence, and dual-machine hot standby of the host and the standby machine is achieved.
According to the hot standby method of the intelligent parking all-in-one machine, the host machine and the standby machine independently process the respective entrance and exit and parking payment related logics so as to be simultaneously provided for customers to use.
According to the hot standby method of the intelligent parking all-in-one machine, when the host fails under abnormal conditions, the standby machine automatically takes effect and automatically switches ip to set the host as the host, so that seamless use of customers is provided.
According to the hot standby method of the intelligent parking integrated machine, after the standby machine detects that the host machine does not respond through heartbeat, the IP of the standby machine is modified into the original IP of the host machine in the database, the configuration file in the database is automatically modified through the java background, the configuration is enabled to take effect through the bat script, and then the IP configuration data of the host machine and the standby machine in the database are updated to enable the parking logic to be normally available.
According to the hot standby method of the intelligent parking integrated machine, after the host machine and the standby machine are switched, if the abnormal host machine is recovered to be normal, the current host machine and the abnormal host machine obtain a working host machine through negotiation, the configuration file in the database is automatically modified through the java background, the configuration is enabled to take effect through the bat script, and then the IP configuration data of the host machine and the standby machine in the database are updated to enable the parking logic to be normally available.
According to the hot standby method of the intelligent parking integrated machine, the host machine and the standby machine are connected through the switch, and the switch is in wired connection with the database; the host and the standby machine are respectively provided with a 5G module, and the 5G module is wirelessly connected with the database; the host and the standby machine are respectively provided with a parking charging system, a visual intercom system and a monitoring system; the monitoring system is connected with a video gateway through a switch, and the video gateway is connected with a database;
when the wired network is normal, the parking lot video data shot by the host monitoring system is transmitted to the database from the switch and the video gateway in a wired mode; the vehicle data of the parking charging system and the visual talkback data of the visual talkback system are transmitted to the database in a wired mode through the switchboard; when the host computer fails, the standby computer is started to work;
when the wired network fails, the video data of the parking lot shot by the monitoring system in the host computer is temporarily uploaded and stored in the monitoring system; the host is switched into a 5G module to wirelessly transmit vehicle data of the parking charging system and visual intercom data of the visual intercom system to the database, and the parking lot video data stored in the monitoring system are uploaded to the database in a wired mode after being recovered through a wired network; and when the main machine fails, the standby machine is started to work.
Compared with the prior art, the method and the system have the advantages that the parameters of the configuration files in the database are modified through java background operation to serve as the constant and variable needed by the host and the standby machine, the database is closed and started according to the fixed sequence and the bat script, and the dual-machine hot standby of the host and the standby machine is realized. In addition, the host and the standby machine of the invention can be used simultaneously, the conflict problem of ActiveMQ of the multi-machine message queue technical component is solved, and the invention can automatically take effect and automatically switch IP and set the standby machine as the host when the host fails due to abnormal conditions, and the standby machine is provided for the client to use seamlessly. In addition, the invention can utilize the 5G module to communicate when the host and the standby machine have a cable network fault through a dual-network switching mode, thereby facilitating the data storage of the database and ensuring the basic operation of the parking lot.
Drawings
FIG. 1 is a schematic flow-out diagram of example 2 of the present invention.
Detailed Description
The present invention will be further described with reference to the following examples and drawings, but the present invention is not limited thereto.
Example 1: the hot standby method of the intelligent parking integrated machine comprises a host machine and a standby machine, wherein the host machine and the standby machine are connected through a TCP/IP network, the host machine and the standby machine share a database, the front end of the database is connected with a Web visual interface, and the rear end of the database is connected with a java background; parameters of configuration files in the database are modified through java background operation to serve as constants and variables required by the host and the standby machine, the database is closed and started through matching with the bat script according to a fixed sequence, and dual-machine hot standby of the host and the standby machine is achieved. Specifically, parameters of configuration files in a database, server-id (server numbers are changed into nonrepeating values), replay-align-table (a synchronization table needing service addition and being ignored), bind-address (a database ip address is added), slave-skip-errors (a parameter that the main database and the standby database cannot stop due to abnormal shutdown of the configuration server is all) are modified, the configuration of the main database is modified, the data of the main database is remotely backed up, the remote data is restored to the standby database, the main database is restarted, the synchronization node of the main database is obtained through an SQL statement, the synchronization node of the main database is set to the standby database through an SQL statement, and the standby database is restarted to realize the hot standby of the main computer and the standby computer. The host and the slave are connected through a TCP/IP network, the host is in a working state under normal conditions, the slave is in a monitoring state, once the slave finds that the host is abnormal, the slave can replace the host within a short time, and the function of the host is completely realized.
Further, the host and the standby machine independently process respective entrance and exit and parking payment related logic for simultaneous use by the client, and the logic that the ActiveMQ receives the message to modify the database is suspended if the host and the standby machine are detected as the host of the standby database by analyzing the configuration file.
When the host fails under abnormal conditions, the standby computer automatically takes effect and automatically switches ip to set the host as the host, so that seamless use of clients is provided. Specifically, after the standby machine does not respond to the host machine through heartbeat detection (namely a heartbeat mechanism, the heartbeat mechanism is a mechanism for regularly sending a self-defined structure body (heartbeat packet) to enable the opposite side to know that the standby machine is still alive so as to ensure the connection validity), the local IP is modified into the original IP of the host machine in the database, the configuration file in the database is automatically modified through a java background, the configuration is enabled to take effect through a bat script, and then the IP configuration data of the host machine and the standby machine in the database are updated so that the parking logic can be normally used.
And further, after the host and the standby machine are switched, if the abnormal host is recovered to be normal, the current host and the abnormal host obtain a working host through negotiation, the configuration file in the database is automatically modified through the java background, the configuration is enabled to take effect through the bat script, and then the IP configuration data of the host and the standby machine in the database are updated to enable the parking logic to be normally available.
Example 2: on the basis of the embodiment 1, as shown in fig. 1, the host and the standby machine are connected through a switch, and the switch is in wired connection with the database; the host and the standby machine are respectively provided with a 5G module, and the 5G module is wirelessly connected with the database; the host and the standby machine are respectively provided with a parking charging system, a visual intercom system and a monitoring system; the monitoring system is connected with a video gateway through a switch, and the video gateway is connected with a database;
when the wired network is normal, the parking lot video data shot by the host monitoring system is transmitted to the database from the switch and the video gateway in a wired mode; the vehicle data of the parking charging system (the vehicle data comprises parking duration, vehicle number plate and parking amount) and the visual intercom data of the visual intercom system are transmitted to the database in a wired mode through the exchanger; when the host computer fails, the standby computer is started to work;
when the wired network fails, the video data of the parking lot shot by the monitoring system in the host computer is temporarily uploaded and stored in a storage hard disk of the monitoring system; the host is switched into a 5G module to wirelessly transmit vehicle data of the parking charging system and visual intercom data of the visual intercom system to the database, and the parking lot video data stored in the monitoring system are uploaded to the database in a wired mode after being recovered through a wired network, so that the flow consumption of the 5G module is saved, and the effective operation of the parking lot can be guaranteed; and when the main machine fails, the standby machine is started to work.
In conclusion, the intelligent parking integrated machine can realize hot backup and additional recording of data, and ensure the integrity of data stored by the intelligent parking integrated machine during a short-term fault, thereby ensuring the normal operation of parking lot services.

Claims (6)

1. The hot standby method of the intelligent parking integrated machine comprises a host machine and a standby machine, wherein the host machine and the standby machine share one database, and the hot standby method is characterized in that: the front end of the database is connected with a Web visual interface, and the rear end of the database is connected with a java background; parameters of configuration files in the database are modified through java background operation to serve as constants and variables required by the host and the standby machine, the database is closed and started through matching with the bat script according to a fixed sequence, and dual-machine hot standby of the host and the standby machine is achieved.
2. The intelligent parking integrated machine hot standby method according to claim 1, characterized in that: the host and the standby machine independently process respective entrance and exit and parking payment related logics for being simultaneously provided for customers.
3. The intelligent parking integrated machine hot standby method according to claim 1, characterized in that: when the host fails under abnormal conditions, the standby computer automatically takes effect and automatically switches ip to set the host as the host, so that seamless use of clients is provided.
4. The intelligent parking integrated machine hot standby method according to claim 4, characterized in that: and after the standby machine detects that the host does not respond through heartbeat, modifying the IP of the standby machine into the original IP of the host in the database, automatically modifying the configuration file in the database through the java background, enabling the configuration to take effect through the bat script, and then updating the IP configuration data of the host and the standby machine in the database to enable the parking logic to be normally available.
5. The intelligent parking integrated machine hot standby method according to claim 5, characterized in that: after the host and the standby machine are switched, if the abnormal host is recovered to be normal, the current host and the abnormal host obtain a working host through negotiation, the configuration file in the database is automatically modified through the java background, the configuration is enabled to take effect through the bat script, and then the IP configuration data of the host and the standby machine in the database are updated to enable the parking logic to be normally usable.
6. The intelligent parking integrated machine hot standby method according to claim 1, characterized in that: the host machine and the standby machine are connected through a switch, and the switch is in wired connection with the database; the host and the standby machine are respectively provided with a 5G module, and the 5G module is wirelessly connected with the database; the host and the standby machine are respectively provided with a parking charging system, a visual intercom system and a monitoring system; the monitoring system is connected with a video gateway through a switch, and the video gateway is connected with a database;
when the wired network is normal, the parking lot video data shot by the host monitoring system is transmitted to the database from the switch and the video gateway in a wired mode; the vehicle data of the parking charging system and the visual talkback data of the visual talkback system are transmitted to the database in a wired mode through the switchboard; when the host computer fails, the standby computer is started to work;
when the wired network fails, the video data of the parking lot shot by the monitoring system in the host computer is temporarily uploaded and stored in the monitoring system; the host is switched into a 5G module to wirelessly transmit vehicle data of the parking charging system and visual intercom data of the visual intercom system to the database, and the parking lot video data stored in the monitoring system are uploaded to the database in a wired mode after being recovered through a wired network; and when the main machine fails, the standby machine is started to work.
CN202011397441.1A 2020-12-04 2020-12-04 Hot standby method of intelligent parking integrated machine Pending CN112419524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011397441.1A CN112419524A (en) 2020-12-04 2020-12-04 Hot standby method of intelligent parking integrated machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011397441.1A CN112419524A (en) 2020-12-04 2020-12-04 Hot standby method of intelligent parking integrated machine

Publications (1)

Publication Number Publication Date
CN112419524A true CN112419524A (en) 2021-02-26

Family

ID=74829734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011397441.1A Pending CN112419524A (en) 2020-12-04 2020-12-04 Hot standby method of intelligent parking integrated machine

Country Status (1)

Country Link
CN (1) CN112419524A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596197A (en) * 2021-09-26 2021-11-02 武汉四通信息服务有限公司 Address switching method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103280121A (en) * 2013-06-21 2013-09-04 曲占超 Intelligent parking lot system based on internet of things technology and work method thereof
CN103744809A (en) * 2013-12-23 2014-04-23 天泽信息产业股份有限公司 Method for dual-computer hot-standby of vehicle information management system on basis of VRRP
CN204695405U (en) * 2015-04-30 2015-10-07 上海临界点机电设备有限公司 Based on the no-stop charging system of HIEP payment standards
CN106027305A (en) * 2016-05-26 2016-10-12 浪潮(苏州)金融技术服务有限公司 Method for hot standby of dual servers using same IP based on ARM
CN106452864A (en) * 2016-09-30 2017-02-22 北京悦畅科技有限公司 Parking lot fault protection method, apparatus and system thereof
CN106559235A (en) * 2015-09-28 2017-04-05 西安艾润物联网技术服务有限责任公司 The switching method and apparatus of embedded server running status
CN109005228A (en) * 2018-08-01 2018-12-14 广东艾科智泊科技股份有限公司 A kind of method and system of stop field device and cloud multiplex communication

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103280121A (en) * 2013-06-21 2013-09-04 曲占超 Intelligent parking lot system based on internet of things technology and work method thereof
CN103744809A (en) * 2013-12-23 2014-04-23 天泽信息产业股份有限公司 Method for dual-computer hot-standby of vehicle information management system on basis of VRRP
CN204695405U (en) * 2015-04-30 2015-10-07 上海临界点机电设备有限公司 Based on the no-stop charging system of HIEP payment standards
CN106559235A (en) * 2015-09-28 2017-04-05 西安艾润物联网技术服务有限责任公司 The switching method and apparatus of embedded server running status
CN106027305A (en) * 2016-05-26 2016-10-12 浪潮(苏州)金融技术服务有限公司 Method for hot standby of dual servers using same IP based on ARM
CN106452864A (en) * 2016-09-30 2017-02-22 北京悦畅科技有限公司 Parking lot fault protection method, apparatus and system thereof
CN109005228A (en) * 2018-08-01 2018-12-14 广东艾科智泊科技股份有限公司 A kind of method and system of stop field device and cloud multiplex communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596197A (en) * 2021-09-26 2021-11-02 武汉四通信息服务有限公司 Address switching method and device, electronic equipment and storage medium
CN113596197B (en) * 2021-09-26 2021-12-21 武汉四通信息服务有限公司 Address switching method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102355368B (en) Fault processing method of network equipment and system
EP4365743A1 (en) Parameter backup method and apparatus for air conditioning unit, and electronic device
CN107276839A (en) A kind of cloud platform from monitoring method and system
CN105429799A (en) Server backup method and device
CN105978140B (en) Information fusion method of power equipment
CN113704341A (en) Data acquisition system and method
CN112419524A (en) Hot standby method of intelligent parking integrated machine
CN114157675A (en) Complete synchronous communication system for operation information of multiple low-voltage transformer areas
CN105847723B (en) The backup method and device of video information
CN112099878A (en) Application software configuration management method, device and system
CN105743695A (en) Monitoring method and system based on IEC 104 protocol
CN104581064A (en) Method and device for integrating camera alarm information
CN110661884A (en) Switching system and method of cloud desktop and local desktop
CN114115138A (en) Industrial field device replacement system
CN102355371A (en) Implementation method for dual hot redundancy of splicing wall control system
CN117076196A (en) Database disaster recovery management and control method and device
CN109287051B (en) Strong electricity controller and strong electricity management method thereof
CN109032673A (en) Automatically reply the method and computer system of basic input output system image shelves
CN111162938A (en) Data processing system and method
CN113949623B (en) MLAG double-master exception repairing method and device, electronic equipment and storage medium
CN106685087B (en) A kind of distribution management equipment for electrical power distribution automatization system
CN112510823B (en) Power supply remote control system
CN107942646A (en) A kind of security independence active-standby switch device and method
CN105591794B (en) The method and apparatus for managing the network equipment
CN113961398A (en) Business processing method, device, system, equipment, storage medium and product

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