CN112911005B - Data synchronization system and method and parking lot data updating method - Google Patents

Data synchronization system and method and parking lot data updating method Download PDF

Info

Publication number
CN112911005B
CN112911005B CN202110150231.0A CN202110150231A CN112911005B CN 112911005 B CN112911005 B CN 112911005B CN 202110150231 A CN202110150231 A CN 202110150231A CN 112911005 B CN112911005 B CN 112911005B
Authority
CN
China
Prior art keywords
data
yard
management system
communication protocol
synchronization
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.)
Active
Application number
CN202110150231.0A
Other languages
Chinese (zh)
Other versions
CN112911005A (en
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.)
Shenzhen Acme Technology Co ltd
Original Assignee
Shenzhen Acme 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 Shenzhen Acme Technology Co ltd filed Critical Shenzhen Acme Technology Co ltd
Priority to CN202110150231.0A priority Critical patent/CN112911005B/en
Publication of CN112911005A publication Critical patent/CN112911005A/en
Application granted granted Critical
Publication of CN112911005B publication Critical patent/CN112911005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a data synchronization system and method and a parking lot data updating method, and relates to the technical field of data communication. The system comprises a community management system, a property management system and a parking lot management system without a fixed IP address, synchronous data are divided into a data type, an instruction type, a file type and a service request type according to different service types, different types adopt different synchronous schemes according to different timeliness requirements and fault tolerance requirements, and the parking lot management system, the property management system and the community management system perform one-way or two-way data synchronization so as to solve the problem that the existing method cannot be suitable for different service scenes to cause inconvenience.

Description

Data synchronization system and method and parking lot data updating method
Technical Field
The application relates to the technical field of data communication, in particular to a data synchronization system and method and a parking lot data updating method.
Background
The community management system, the property management system and the parking lot management system usually need frequent data transmission, the problem of data queuing is usually caused by treating various data equally, and if instruction data or specific requirements need to be synchronized instantly, the data cannot be processed in time due to queuing, so that the existing method cannot be suitable for different service scenes, and inconvenience is caused.
Disclosure of Invention
The embodiment of the application aims to provide a data synchronization system, a data synchronization method and a parking lot data updating method, wherein different data synchronization modes are adopted for data with different timeliness according to different data types, and the problem that the existing method cannot be suitable for different service scenes and is inconvenient is solved.
The embodiment of the application provides a data synchronization system, which comprises a community management system, a property management system and a parking lot management system without a fixed IP address:
the community management system comprises an APP service client and a community service system which are connected through a second communication protocol;
the property management system comprises a property synchronization server and a property service system which are in communication connection with each other through a first communication protocol;
when the property synchronization server sends the recorded data and the file data to the yard synchronization client, the recorded data and the file data are stored in a data stack and are notified to the yard synchronization client through a third communication protocol, and the yard synchronization client pulls the recorded data and the file data through a second communication protocol;
when the property synchronization server sends the instruction data to the yard synchronization client, the instruction data is generated into first Json data and sent to the yard synchronization client through a third communication protocol, so that the yard synchronization client sends the first Json data to the yard service system through the first communication protocol for service processing and response.
When the property synchronization server receives a data request from the parking lot management system, related business processing is carried out according to the request type, and a request result is returned by directly using a second communication protocol for the data needing to be returned directly and synchronously; generating a community synchronization stack for the specified data type, and synchronously uploading the community synchronization stack to a community management system through a second communication protocol;
when the property synchronization server receives data from the community management system, the property synchronization server performs related business processing according to the data type, generates a data stack for the data needing to be synchronized and sends the data stack to the yard management system; and simultaneously generating instruction data for specific required service data, and immediately issuing the instruction data to the yard management system.
In the implementation process, data are reliably transmitted in multiple channels through different communication protocols, and the yard management system adopts the setting without a fixed IP address, so that the operation cost can be reduced; the instruction data, the record data, the file data and the service request data are transmitted separately, namely, different communication protocols are adopted to carry out data synchronization according to different data application scenes, so that the reliability of data synchronization can be ensured, the timeliness of different scene data is considered, and the problem that the existing method cannot be suitable for different service scenes to cause inconvenience is solved.
Further, the yard synchronization client uploads the change data to the property management system in a transmission mode of a second communication protocol.
In the implementation process, the yard synchronization client can upload the generated change data to the property management system through the second communication, so that the data synchronization of the yard management system and the property management system is realized.
The embodiment of the application also provides a parking lot data synchronization method, which is applied to a property synchronization server of a property management system, and the method comprises the following steps:
when recording data and file data are issued to the yard synchronization client, the recording data and the file data are stored in a data stack and are notified to the yard synchronization client through a third communication protocol, so that the yard synchronization client pulls the recording data and the file data through a second communication protocol;
when the command data are issued to the yard synchronous client, the command data are generated into first Json data and issued to the yard synchronous client through a third communication protocol, so that the yard synchronous client issues the first Json data to the yard service system through the first communication protocol for service processing and response.
And when receiving service request data sent by the yard management system, sending service processing data corresponding to the service request data to the yard management system through a second communication protocol.
In the implementation process, if the data are recorded data and the file data, the notification is carried out through a third communication protocol, so that the yard synchronization client pulls the recorded data and the file data through a second communication protocol; if the instruction data is the instruction data, the instruction data is directly transmitted to the yard synchronous client through a third communication protocol, so that a yard service system performs service processing and quick response, the data transmission efficiency is improved, and the waiting of clients is avoided; different data synchronization modes are adopted according to data with different timeliness, and the problem that the existing method cannot be suitable for different service scenes and is inconvenient is solved.
Further, the method further comprises:
analyzing the changed data uploaded by the yard management system in a transmission mode of a second communication protocol, and performing deserialization to obtain the update type of the changed data, wherein the update type comprises new addition, modification and deletion; the change data is serialized change data in a Json format;
inquiring corresponding data to be synchronized in a data table according to the identification information of the changed data, and performing corresponding operation on the data to be synchronized according to the change type;
and saving the updated data table and returning to a processing confirmation state.
In the implementation process, after receiving the change data sent by the yard management system, the property management system performs corresponding addition, modification or deletion operations on the data to be synchronized according to the update data, so that the property management system data and the yard management system keep synchronous.
Further, when issuing the record data and the file data to the yard synchronization client, storing the record data and the file data to a data stack, and notifying the yard synchronization client through a third communication protocol, so that the yard synchronization client pulls the record data and the file data through a second communication protocol, including:
establishing communication connection with the parking lot management system through a TCP (transmission control protocol) communication protocol;
storing the recorded data and the file data to a data stack, and acquiring data information of the recorded data and the file data of a set number of corresponding database account sets through periodic polling;
and generating second Json data from the data information of each piece of recorded data and each piece of file data, and issuing TCP (transmission control protocol) notifications one by one in a circulating mode so that the yard management system pulls the data contents of the recorded data and the file data through an HTTP (hyper text transport protocol) communication protocol.
In the implementation process, the recorded data and the file data are issued in a data stack queuing mode, and since the yard management system does not have a fixed IP address or a domain name, and an external network cannot directly access the yard, a set number of recorded data can be taken out according to the processing performance of the system, and the file data sequentially issues TCP notifications to the yard management system by adopting for circulation, so that the yard management system pulls the data contents of the recorded data and the file data through an HTTP communication protocol, and the issuing of the recorded data and the file data is realized.
Further, when the command data is issued to the yard synchronization client, the command data is generated into first Json data, and the first Json data is issued to the yard synchronization client through a third communication protocol, so that the yard synchronization client issues the first Json data to the yard service system through the first communication protocol for service processing and responding, including:
receiving a UDP message sent by a property service system;
analyzing the UDP message to acquire the data type and the yard code of the instruction data, and repackaging the instruction data to generate the first Json data;
and sending the first Json data to the yard synchronous client through a TCP (transmission control protocol) so that the yard synchronous client sends the first Json data to the yard business system for business processing and response.
In the implementation process, for the issue of the instruction data, due to the requirement of time efficiency, the instruction data is directly sent to the yard management system from the property management system through the TCP communication protocol, so that the hardware equipment of the yard management system can rapidly process and respond.
The embodiment of the application also provides a method for updating the data of the parking lot, which is applied to a parking lot synchronization client of a parking lot management system, and the method comprises the following steps:
when receiving the recorded data and the file data, receiving a notice issued by the property synchronization server through a third communication protocol, and pulling the recorded data and the file data through a second communication protocol;
when instruction data are received, first Json data generated by the instruction data are received through a third communication protocol, and the first Json data are issued to the yard service system through the first communication protocol to be subjected to service processing and responding.
In the implementation process, when the yard management system receives the instruction data, records the data and the file data, different channels and communication protocols are adopted for data synchronization, the reliability of the data synchronization is ensured, the timeliness of special scene data is considered, a mode that a general yard management system does not need to use a fixed IP address is considered, and the operation cost of a user is reduced.
Further, the method further comprises:
storing the changed data to a data stack;
periodically polling the data stack to obtain a set amount of the changed data;
for each piece of changed data, acquiring identification information and a data stack ID of the changed data, and generating third Json data;
and accessing a corresponding uploading interface through a transmission mode of an HTTP protocol to upload the third Json data to a property synchronization server of the property management system.
In the implementation process, the changed data is uploaded to the property synchronization server side by adopting a transmission mode of an HTTP (hyper text transport protocol) protocol for the uploaded data, so that the data synchronization of the parking lot management system and the property management system is realized.
Further, when receiving the recorded data and the file data, receiving a notification issued by the property synchronization server through a third communication protocol, and pulling the recorded data and the file data through a second communication protocol, includes:
receiving a TCP notification sent by the property synchronization server and analyzing the received second Json data;
deserializing the second Json data and acquiring data information of the recorded data and the file data to acquire a corresponding data pulling interface, wherein the data information comprises identification information, a data table ID and account set information;
requesting the property management system to send the data contents of the recorded data and the file data by utilizing an HTTP (hyper text transport protocol) through the data pulling interface;
and receiving and storing the data content and returning confirmation information to the property management system so that the property management system deletes the data information corresponding to the recorded data and the file data from the data stack.
In the implementation process, after receiving a TCP notification sent by the property synchronization server, the data content of the recorded data and the file data is obtained through an HTTP protocol, and the reliability of the data is ensured by adopting a response sending mode.
Further, when receiving the instruction data, receiving first Json data generated by the instruction data through a third communication protocol, and issuing the first Json data to the yard service system through the first communication protocol for service processing and responding, includes:
receiving first Json data sent by a property synchronization server through a TCP (transmission control protocol) and returning a received state to the property synchronization server;
analyzing the first Json data and converting the first Json data into local record data;
repackaging the converted first Json data and sending the repackaged first Json data to a parking lot service processing system through a UDP (user Datagram protocol) communication protocol so that the parking lot service processing system controls corresponding hardware equipment to respond according to the first Json data.
In the implementation process, the receiving of the instruction data is transmitted to the parking lot management system through the TCP communication protocol, the mode is reliable, the reliable transmission of the instruction data is ensured, the internal transmission of the parking lot management system is carried out through the UDP communication protocol, and the hardware equipment can respond in time.
In the implementation process, the parking lot management system needs to actively acquire the service data of the property management system in a specific scene, the parking lot management system requests the property system to synchronize the specified service data through the second communication protocol, and the property management system immediately queries and immediately returns after receiving the request, so that the response speed is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a block diagram of a data synchronization system according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of issuing record data and file data provided in the embodiment of the present application;
fig. 3 is a schematic diagram illustrating instruction data issuing provided in an embodiment of the present application;
fig. 4 is a schematic diagram of data uploading provided in an embodiment of the present application;
FIG. 5 is a flow chart of a yard data synchronization method according to an embodiment of the present application;
fig. 6 is a flowchart of issuing record data and file data according to the embodiment of the present application;
fig. 7 is a flowchart of issuing instruction data according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a field side uploading of change data to a property management system according to an embodiment of the present application;
fig. 9 is a flowchart of a yard data updating method provided in the embodiment of the present application;
fig. 10 is a flowchart of uploading changed data according to an embodiment of the present application.
Fig. 11 is a flowchart of an active request data of a yard according to an embodiment of the present application.
Icon:
100-property synchronization server; 200-yard synchronization client; 300-property business system; 400-community business system; 500-yard service system.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
Referring to fig. 1, fig. 1 is a block diagram of a data synchronization system according to an embodiment of the present disclosure. The system is applied to data transmission of a parking lot management system, a property management system and a community management system, and is convenient for timely and reliable updating of data of the parking lot system.
The system specifically comprises a community management system, a property management system and a parking lot management system without a fixed IP address, wherein the parking lot management system can adopt a private network, does not need a fixed IP address and a fixed domain name, only needs to open an external network access authority, and has the advantage of being suitable for different timeliness and service scenes and simultaneously reducing the operation cost.
Wherein, the parking lot management system includes parking lot business system 500 and the synchronous client 200 in parking lot with first communication protocol communication connection, the property management system includes synchronous server 100 and property business system 300 with the property of first communication protocol communication connection, the community management system includes community business system 400 and each APP, public number, little communication program etc. APP business client with second communication protocol communication connection.
For example, the first communication protocol in this embodiment may adopt a UDP communication protocol, and the property service system 300 may include an interface service system, a service management system, a hardware management system, and the like, and a plurality of interfaces are provided for a mobile terminal (APP) and a community terminal to call, for example, when a car owner of the yard management system performs mobile payment, the interface of the property management system needs to be called to send payment information to the property management system.
The community service system 400 includes sites required for synchronization with the property management system, provides multiple interfaces for the property management system to request and respond to the request synchronously, and provides multiple interfaces for the mobile terminal (APP) to call, such as the owner to check and pay the fee and the monthly card parking stall card to delay.
The yard service system 500 includes a yard system management service system and a yard hardware management service system, and mainly relates to communication between software and hardware, wherein hardware devices such as a camera, a voice display control panel, a display screen, a gateway, a ticket box and the like inform a camera of opening a gate or a main control panel of opening a gate, inform the voice display control panel of broadcasting information, displaying related information and the like after receiving payment information sent by the property management system, and the adopted hardware devices for making responses are not limited here.
Dividing data which is generated under different scenes and needs to be transmitted and has different timeliness into recorded data, file data, instruction data and service request data, wherein the recorded data which needs to be sent to a parking lot management system for synchronization can be sent in a data queue mode, and the service data is generated by property management systems such as newly added user registration data, added lanes and the like; if the payment data generated by the vehicle entering and leaving the parking lot for payment needs to be quickly sent to the parking lot management system by the property management system, the hardware equipment of the parking lot management system can quickly respond to instruction data such as opening a barrier gate. The recording data, the file data, the instruction data and the service request data generated under different scenes are transmitted by using different transmission channels, so that the high efficiency and the convenience of data transmission can be improved.
As shown in fig. 2, it is a schematic diagram for issuing recorded data and file data, when the property synchronization server 100 issues the recorded data and the file data to the yard synchronization client 200, the recorded data and the file data are stored in a data stack, and the yard synchronization client 200 is notified through a third communication protocol, in this application, the third communication protocol is a TCP communication protocol, that is, the property synchronization server 100 issues a TCP notification to the yard synchronization server, the yard synchronization client 200 pulls the recorded data and the file data through the second communication protocol, in this application, the second communication protocol is an HTTP communication protocol, that is, the recorded data and the file data are pulled through the HTTP communication protocol, and confirmation information is returned through the HTTP communication protocol, so that the property synchronization server 100 deletes a data stack, and issues the recorded data and the file data; and a response sending mode is adopted for each step of issuing the recorded data and the file data, so that the reliability of the recorded data and the file data is ensured.
And if a specific service request needs to be communicated instantly, the parking lot management system sends the service request to the property management system through a second communication protocol, immediately carries out the service request and returns a processing result.
For example, a specific service request is a service request which needs to be responded in time, for example, if a charging box is popped up when a vehicle leaves, a property management system can be requested to detect whether a nearest specified license plate payment record exists; if the abnormal data checking request can be actively initiated in the parking lot management system, the property management system returns to query the abnormal data set according to the preset conditions, and the parking lot system can actively trigger the data resynchronization again.
As shown in fig. 3, which is a schematic diagram of instruction data issuing, when the property synchronization server 100 issues the instruction data to the yard synchronization client 200, the property synchronization server generates the instruction data into first Json data, and issues the first Json data to the yard synchronization client 200 through a TCP communication protocol, so that the yard synchronization client 200 issues the first Json data to the yard service system 500 through the first communication protocol for service processing and response, and the instruction data, such as payment information, can be quickly issued to the yard synchronization client 200 through a TCP notification, so that hardware devices in the yard can quickly respond.
Therefore, based on different service scenes, the data can be divided into recording data, file data, instruction data and service request data according to the time efficiency, and the recording data, the file data, the instruction data and the service request data are sent and received through different channels, so that the problem that the existing method cannot be suitable for different service scenes and is inconvenient is solved.
When receiving a data request from the yard management system, the property synchronization server 100 performs corresponding service processing according to the request type, and directly returns a request result by using a second communication protocol for data needing to be directly and synchronously returned; generating a community synchronization stack for the specified data type, and synchronously uploading the community synchronization stack to a community management system through a second communication protocol;
illustratively, an abnormal data checking service request is actively initiated in the yard management system, the property management system returns to query an abnormal data set according to preset conditions, the yard system performs data synchronization on specified records of a specified data table to the property management system according to return results, and the property management system rewrites the records, generates a community synchronization stack, and synchronously uploads the community synchronization stack to the community management system through a second communication protocol.
When the property business system 300 receives the data from the community management system, corresponding business processing is carried out according to the data type, and a data stack is generated for the data needing synchronization and is sent to the yard management system; and simultaneously generating instruction data for specific required service data, and immediately issuing the instruction data to the yard management system.
Exemplarily, a vehicle owner scans a lane two-dimensional code to perform mobile payment, and after the payment is successful, the community management system pushes payment record information to the property management system to perform payment data verification and property management, generates a charging receipt, generates a data stack and sends charging data to the vehicle yard management system; and meanwhile, according to lane information carried in the lane two-dimensional code, generating rapid brake opening instruction data and immediately sending the rapid brake opening instruction data to the parking lot management system.
As shown in fig. 4, which is a schematic diagram of data uploading, license plate identification information, entry records, license plate types, and the like generated by the yard management system when a vehicle enters and exits are required to be uploaded to the property management system as change data for data synchronization, and the yard synchronization client 200 uploads the change data to the property management system in a transmission manner of an HTTP communication protocol to implement synchronous update of the change data.
The community management system receives the business data of a plurality of companies from the property management system and is responsible for pushing the business request from the mobile terminal to the property; the property management system can receive the service processing of the system and receive various synchronous requests from the train yard to perform service processing, and performs data synchronization with the community management system or the train yard management system according to different service processing modes. Meanwhile, the property management system can receive the service request of the system and receive the service request from the community management system, processes the service, and synchronizes with the parking lot management system according to the data type, the instruction type, the file type and the service request type which are divided into different service requirements. The synchronous data are divided into data types, instruction types, file types and service request types according to different service types, different types adopt different synchronous schemes according to different timeliness requirements and fault tolerance requirements, and unidirectional or bidirectional data synchronization can be performed between the parking lot management system and the property management system as well as between the property management system and the community management system.
Example 2
An embodiment of the present application provides a method for synchronizing yard data, as shown in fig. 5, which is a flowchart of the method for synchronizing yard data, and is applied to a property synchronization server 100 of a property management system in embodiment 1, where the method includes:
step S100: when issuing the recorded data and the file data to the yard synchronization client 200, storing the recorded data and the file data to a data stack, and notifying the yard synchronization client 200 through a third communication protocol, so that the yard synchronization client 200 pulls the recorded data and the file data through a second communication protocol; the recording data and the file data adopt different package forms and fault-tolerant processing modes.
As shown in fig. 6, a flowchart for issuing record data and file data may specifically include:
step S101: establishing communication connection with a parking lot management system through a TCP (transmission control protocol) communication protocol;
the property synchronization server 100 receives all the information of the yard synchronization clients 200 connected with the property synchronization server and generates a connection terminal memory set which comprises a port number, a matched database account set and the like.
Step S102: storing recorded data and file data to a data stack, and acquiring data information of the recorded data and the file data of a set number of corresponding database account sets through periodic polling;
periodically polling a memory set of the connection terminal, acquiring the corresponding ActSetNum of the database account set aiming at each connection terminal (the yard synchronization client 200), and inquiring the data information of the first 20 recorded data and the file data of the database account set from the data stack.
Step S103: and generating second Json data from the data information of each piece of recorded data and each piece of file data, and issuing TCP (transmission control protocol) notifications one by one in a circulating mode so that the parking lot management system pulls the data contents of the recorded data and the file data through an HTTP (hyper text transport protocol) communication protocol.
Specifically, the data content of the record data and the file data refers to specific service data, each piece of record data and each piece of file data are issued by using a for loop, specifically, data information of the record data and the file data, such as currently recorded ID information, a data table EntityID, a recorded GUID (globally unique identifier), an update type and the like, is acquired, second Json data is generated, the second Json data is serialized and sent, the yard synchronization service client receives a TCP notification and returns a received state, and the operation is executed in a loop until the sending is completed.
For the parking lot synchronization service client, after receiving second Json data, deserializing the second Json data, acquiring a transmission type, an entity table ID, a record GUID, a message Msgguid and a corresponding database account set, acquiring a property server IIS site URL and a port number through configuration information, accessing a corresponding data pull interface by using an HTTP protocol to request to send data, after receiving the request, the property synchronization service end 100 sends data contents of the record data and the file data through the HTTP communication protocol, and the parking lot synchronization service client detects, verifies and stores the received data contents; and after the storage is successful, accessing the corresponding data pulling confirmation interface by using an HTTP communication protocol through the URL and the port number of the IIS site of the property server so as to send the successfully processed stack data ID through the interface, and after receiving the stack data ID, deleting the corresponding record from the data stack by the property management system according to the stack data ID.
Step S200: when issuing the instruction data to the yard synchronization client 200, generating first Json data from the instruction data, and issuing the first Json data to the yard synchronization client 200 through a third communication protocol, so that the yard synchronization client 200 issues the first Json data to the yard service system 500 through the first communication protocol for service processing and response.
As shown in fig. 7, a flowchart of issuing instruction data may specifically include:
step S201: receiving a UDP message sent by the property service system 300;
the property synchronization server 100 establishes a TCP communication connection with the yard synchronization client 200, and simultaneously, the property synchronization server 100 starts UDP monitoring to receive various UDP messages, the property service system 300 generates data to be issued, if the data is command data such as payment data, first Json data is generated and the property synchronization server 100 is notified in a UDP manner, and the property synchronization server 100 receives the UDP messages and returns the received state.
Step S202: analyzing a UDP message to obtain the data type and the yard code of the instruction data, and repackaging the instruction data to generate the first Json data;
the property synchronization server 100 analyzes the received UDP message, obtains the data type and the yard code of the instruction data, repackages the instruction data, and sends the repackaged instruction data to the yard synchronization client 200 through the TCP communication protocol.
Step S203: and sending the first Json data to the yard synchronization client 200 through a TCP communication protocol, so that the yard synchronization client 200 sends the first Json data to the yard service system 500 for service processing and response.
The yard synchronization client 200 receives the first Json data and immediately returns the received state, analyzes the first Json data and converts the first Json data into local recording data according to the GUID in the instruction, the yard synchronization client 200 repackages the converted data and forwards the repackaged data to the yard service system 500 through the UDP communication protocol, the yard service system 500 receives and sends the UDP message and returns the received state, and performs service processing such as controlling the opening of the barrier gate according to the received data.
Step S300: and when receiving service request data sent by the yard management system, sending service processing data corresponding to the service request data to the yard management system through a second communication protocol.
When the business data generated by the community management system is issued, the record data, the file data and the instruction data can be generated at the same time; the different types of data can be transmitted to the yard management system by adopting the different transmission modes.
The method further includes the following steps that the parking lot management system uploads the change data to the property management system, as shown in fig. 8, the method is a flow chart for uploading the change data to the property management system by the parking lot management system, and specifically includes the following steps:
step 301: analyzing the changed data uploaded by the yard management system in a transmission mode of a second communication protocol, and performing deserialization to obtain the update type of the changed data, wherein the update type comprises new addition, modification and deletion; the change data is serialized change data in a Json format;
step 302: inquiring corresponding data to be synchronized in a data table according to the identification information of the changed data, and performing corresponding operation on the data to be synchronized according to the change type;
step 303: and saving the updated data table and returning to a processing confirmation state.
For example, if the Update type is an add-new type or a modify type, a GUID value in the data is used to query whether a record of the GUID value exists from the corresponding table by using a Select instruction, if so, the data is updated by using an Update instruction, otherwise, an Insert intro is used to add a new record; if the type of the deletion is the type of the deletion, a GUID value in the data is used for inquiring whether a record of the GUID value exists from a corresponding table by using a Select instruction, and if the record exists, the GUID value is deleted by using a Delete instruction.
The property management system stores the changed data, if the storage is successful, a successful state is returned, otherwise, a failed state is returned; the parking lot management system receives the return state, and if the return state is successful, the record is deleted from the stack table according to the ID; if the failure occurs, the error log information is output for inspection.
Example 3
The embodiment of the present application provides a method for updating yard data, which is applied to a yard synchronization client 200 of a yard management system in embodiments 1 and 2, and as shown in fig. 9, is a flowchart of a method for updating yard data, where the method includes:
step S400: when receiving the recorded data and the file data, receiving a notification issued by the property synchronization server 100 through a third communication protocol, and pulling the recorded data and the file data through a second communication protocol;
as shown in fig. 6, the flowchart after the yard synchronization client 200 receives the recorded data and the file data specifically includes the following steps:
step S401: receiving a TCP notification sent by the property synchronization server 100 and analyzing the received second Json data;
step S402: deserializing the second Json data and acquiring data information of the recorded data and the file data to acquire a corresponding data pulling interface, wherein the data information comprises identification information, a data table ID and account set information;
step S403: requesting the property management system to send the data contents of the recorded data and the file data by utilizing an HTTP (hyper text transport protocol) through the data pulling interface;
step S404: and receiving and storing the data content and returning confirmation information to the property management system so that the property management system deletes the data information corresponding to the recorded data and the file data from the data stack.
Step S500: when receiving the instruction data, receiving first Json data generated by the instruction data through a (TCP) third communication protocol, and issuing the first Json data to the yard service system 500 through the first communication protocol for service processing and response.
As shown in fig. 7, a flowchart after the yard synchronization client 200 receives the instruction data specifically includes the following steps:
step S501: receiving first Json data sent by the property synchronization server 100 through a TCP (transmission control protocol) and returning a received state to the property synchronization server 100;
step S502: analyzing the first Json data and converting the first Json data into local record data;
step S503: repackaging the converted first Json data and sending the repackaged first Json data to a parking lot service processing system through a UDP (user Datagram protocol) communication protocol so that the parking lot service processing system controls corresponding hardware equipment to respond according to the first Json data.
The method further includes uploading the change data to the property management system by the yard management system, as shown in fig. 10, which is a flow chart for uploading the change data, and specifically includes the following steps:
step S601: storing the changed data to a data stack;
step S602: periodically polling the data stack to obtain a set amount of the changed data;
step S603: for each piece of changed data, acquiring identification information and a data stack ID of the changed data, and generating third Json data;
step S604: and accessing a corresponding uploading interface through a transmission mode of an HTTP protocol to upload the third Json data to the property synchronization server 100 of the property management system.
The yard service system 500 stores the changed data into a data stack, obtains system parameter information such as an organization ID (which may be identification information of a parking lot), a server database account set code, and the like, and the yard synchronization client 200 starts regular polling, and sequentially obtains the first 20 changed data from the database every time of polling, and uses a For cycle to perform the following processing on each changed data: acquiring an ID value recorded in a data stack at present, inquiring a table structure corresponding to data according to an EntityID column value in a recording table, converting a quoted column value ID into a GUID corresponding to the quoted data, generating third Json data according to the configuration information, accessing a corresponding uploading interface by using an HTTP (hyper text transport protocol) according to a property management system IIS (inter-integrated service) site URL and a port number configured in system parameters, serializing and uploading the third Json data, analyzing and storing the third Json data after the property management system receives the third Json data, deleting the stack by the yard management system after the storage is successful, wherein the specific process is shown in embodiment 2, and is not repeated herein.
In a specific service requirement, the yard service system 500 may need to request the data of the property service system 300 in real time, as shown in fig. 11, the yard management system packages the request data into a Json data packet, requests the property service system 300 through a second communication protocol, the property service system 300 receives the data, analyzes the transmitted Json data and performs service processing, and a processing result is returned to the yard service system 500 through an original request line in real time.
An embodiment of the present application further provides an electronic device, where the electronic device includes a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the computer device to execute the yard data synchronization method described in embodiment 1 and the yard data update method described in embodiment 2.
The embodiment of the present application further provides a readable storage medium, in which computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the method for synchronizing the yard data described in embodiment 1 and the method for updating the yard data described in embodiment 2 are performed.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A data synchronization system is characterized by comprising a community management system, a property management system and a parking lot management system without a fixed IP address:
the property management system comprises a property synchronization server and a property service system which are in communication connection with each other through a first communication protocol;
the community management system comprises an APP service client and a community service system which are in communication connection through a second communication protocol;
when the property synchronization server sends the recorded data and the file data to the yard synchronization client, storing the main key information of the recorded data and the file data to a data stack, and informing the yard synchronization client through a third communication protocol, wherein the yard synchronization client pulls the recorded data and the file data through a second communication protocol;
when the property synchronization server sends instruction data to the yard synchronization client, the instruction data is generated into first Json data and sent to the yard synchronization client through a third communication protocol, so that the yard synchronization client sends the first Json data to the yard service system through the first communication protocol for service processing and response;
when the property synchronization server receives a data request from the parking lot management system, corresponding business processing is carried out according to the request type, and a request result is returned by directly using a second communication protocol for the data needing to be directly and synchronously returned; generating a community synchronization stack for the specified data type, and synchronously uploading the community synchronization stack to a community management system through a second communication protocol;
when the property synchronization server receives the data from the community management system, corresponding business processing is carried out according to the data types, data needing to be synchronized are generated into data stacks and sent to the yard management system, instruction data are generated simultaneously for specific business data needing to be synchronized, and the instruction data are sent to the yard management system immediately.
2. The data synchronization system of claim 1, wherein:
the parking lot synchronization client uploads the change data to the property management system in a transmission mode of a second communication protocol;
and if a specific service request needs instant communication, the parking lot management system sends a service request type synchronous request to the property management system through a second communication protocol, immediately carries out the service request and returns a processing result.
3. A data synchronization method applied to the property synchronization server of the property management system according to any one of claims 1-2, the method comprising:
when recording data and file data are issued to the yard synchronization client, storing the primary key information of the recording data and the file data to a data stack, and informing the yard synchronization client through a third communication protocol so that the yard synchronization client pulls the recording data and the file data through a second communication protocol;
when issuing instruction data to a yard synchronization client, generating first Json data from the instruction data, and issuing the first Json data to the yard synchronization client through a third communication protocol, so that the yard synchronization client issues the first Json data to the yard service system through the first communication protocol for service processing and response;
and when receiving service request data sent by the yard management system, sending service processing data corresponding to the service request data to the yard management system through a second communication protocol.
4. The data synchronization method of claim 3, further comprising:
analyzing the changed data uploaded by the yard management system in a transmission mode of a second communication protocol, and performing deserialization to obtain the update type of the changed data, wherein the update type comprises new addition, modification and deletion; the change data is serialized change data in a Json format;
inquiring corresponding data to be synchronized in a data table according to the identification information of the changed data, and performing corresponding operation on the data to be synchronized according to the change type;
and saving the updated data table and returning to a processing confirmation state.
5. The data synchronization method according to claim 3, wherein when the recorded data and the file data are sent to the yard synchronization client, the recorded data and the file data are stored in a data stack and are notified to the yard synchronization client through a third communication protocol, so that the yard synchronization client pulls the recorded data and the file data through a second communication protocol, and the method comprises the following steps:
establishing communication connection with the parking lot management system through a TCP (transmission control protocol) communication protocol;
storing the recorded data and the file data to a data stack, and acquiring data information of the recorded data and the file data of a set number of corresponding database account sets through periodic polling;
and generating second Json data from the data information of each piece of recorded data and each piece of file data, and issuing TCP (transmission control protocol) notifications one by one in a circulating mode so that the yard management system pulls the data contents of the recorded data and the file data through an HTTP (hyper text transport protocol) communication protocol.
6. The data synchronization method of claim 5, wherein when the command data is issued to the yard synchronization client, the command data is generated into first Json data, and the first Json data is issued to the yard synchronization client through a third communication protocol, so that the yard synchronization client issues the first Json data to the yard service system through the first communication protocol for service processing and response, and the method comprises the following steps:
receiving a UDP message sent by a property service system;
analyzing the UDP message to acquire the data type and the yard code of the instruction data, and repackaging the instruction data to generate the first Json data;
and sending the first Json data to the yard synchronous client through a TCP (transmission control protocol) so that the yard synchronous client sends the first Json data to the yard business system for business processing and response.
7. A yard data updating method applied to the yard synchronization client of the yard management system according to any one of claims 1 to 2, the method comprising:
when receiving the recorded data and the file data, receiving a notice issued by the property synchronization server through a third communication protocol, and pulling the recorded data and the file data through a second communication protocol;
when instruction data are received, first Json data generated by the instruction data are received through a third communication protocol, and the first Json data are issued to the yard service system through the first communication protocol to be subjected to service processing and responding.
8. The yard data updating method according to claim 7, wherein the method further comprises:
storing the changed data to a data stack;
periodically polling the data stack to obtain a set amount of the changed data;
for each piece of changed data, acquiring identification information and a data stack ID of the changed data, and generating third Json data;
and accessing a corresponding uploading interface through a transmission mode of an HTTP protocol to upload the third Json data to a property synchronization server of the property management system.
9. The method for updating the data of the parking lot according to claim 7, wherein when receiving the recorded data and the file data, receiving a notification issued by the property synchronization server through a third communication protocol, and pulling the recorded data and the file data through a second communication protocol, comprises:
receiving a TCP notification sent by the property synchronization server and analyzing the received second Json data;
deserializing the second Json data and acquiring data information of the recorded data and the file data to acquire a corresponding data pulling interface, wherein the data information comprises identification information, a data table ID and account set information;
requesting the property management system to send the data contents of the recorded data and the file data by utilizing an HTTP (hyper text transport protocol) through the data pulling interface;
and receiving and storing the data content and returning confirmation information to the property management system so that the property management system deletes the data information corresponding to the recorded data and the file data from the data stack.
10. The method for updating the data of the train yard according to claim 7, wherein when receiving the instruction data, receiving first Json data generated by the instruction data through a third communication protocol, and sending the first Json data to the train yard service system through the first communication protocol for service processing and response, comprises:
receiving first Json data sent by a property synchronization server through a TCP (transmission control protocol) and returning a received state to the property synchronization server;
analyzing the first Json data and converting the first Json data into local record data;
repackaging the converted first Json data and sending the repackaged first Json data to a parking lot service processing system through a UDP (user Datagram protocol) communication protocol so that the parking lot service processing system controls corresponding hardware equipment to respond according to the first Json data.
CN202110150231.0A 2021-02-03 2021-02-03 Data synchronization system and method and parking lot data updating method Active CN112911005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110150231.0A CN112911005B (en) 2021-02-03 2021-02-03 Data synchronization system and method and parking lot data updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110150231.0A CN112911005B (en) 2021-02-03 2021-02-03 Data synchronization system and method and parking lot data updating method

Publications (2)

Publication Number Publication Date
CN112911005A CN112911005A (en) 2021-06-04
CN112911005B true CN112911005B (en) 2022-02-15

Family

ID=76121863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110150231.0A Active CN112911005B (en) 2021-02-03 2021-02-03 Data synchronization system and method and parking lot data updating method

Country Status (1)

Country Link
CN (1) CN112911005B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550432A (en) * 2022-10-27 2022-12-30 浪潮云信息技术股份公司 Method and system for subscribing and pushing dynamic data
CN116204593A (en) * 2023-03-17 2023-06-02 北京金和网络股份有限公司 Method, system, equipment and storage medium for real-time synchronization of data

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101430517B1 (en) * 2008-01-31 2014-08-19 삼성전자주식회사 Device and mehtod for synchronizing data in data communication devices
CN104050530A (en) * 2014-05-30 2014-09-17 深圳市道尔智控科技股份有限公司 Cloud platform management system for parking lots
CN107403396A (en) * 2016-05-19 2017-11-28 镇江市住房和城乡建设局 A kind of wisdom estate management platform based on wechat
CN107835178B (en) * 2017-11-13 2020-10-30 北京奇艺世纪科技有限公司 Multi-protocol service communication method and device and electronic equipment
CN110599745A (en) * 2019-08-08 2019-12-20 南通鑫铭环保技术有限公司 Noise detection early warning method based on multi-layer office building
CN111028110A (en) * 2019-12-24 2020-04-17 苏州工业园区建屋发展集团有限公司 Multi-object-oriented intelligent community integrated management system

Also Published As

Publication number Publication date
CN112911005A (en) 2021-06-04

Similar Documents

Publication Publication Date Title
US11212290B1 (en) Multiple data store authentication
US11855858B2 (en) Systems and methods for providing notifications of changes in a cloud-based file system
WO2016177285A1 (en) Data pushing method and device
CN112911005B (en) Data synchronization system and method and parking lot data updating method
CN108093015B (en) File transmission system
WO2009138001A1 (en) Method, centralized control device and system for service accounting
US8891524B2 (en) Method and apparatus of automatically providing registration information
CN101227456B (en) System and method for implementing data synchronization
CN114448686B (en) Cross-network communication device and method based on micro-service
CN113065953B (en) Futures relay trading system based on distribution type
CN114172821B (en) Service state synchronization method and device and server
CN115632815A (en) Data updating method and device, electronic equipment and storage medium
CN112084247B (en) Method and device for expanding application program service
CN112291209B (en) Method and device for acquiring front-end equipment catalog
WO2023277692A1 (en) System for processing 3d print jobs
CN115412748A (en) Service processing method and device, electronic equipment and computer readable storage medium
CN116756087A (en) Private cloud file management system based on multiple mobile devices
CN112291210A (en) Method and device for acquiring front-end equipment catalog
CN116703277A (en) Network order receiving method and device, electronic equipment and readable storage medium
CN114721841A (en) Data processing method and device, electronic equipment and storage medium
CN114064417A (en) Web integrated development method, system, equipment and storage medium of data monitoring system
JPH0588823A (en) Printing control system

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
GR01 Patent grant
GR01 Patent grant