CN109246203B - Data communication method, device, computer equipment and storage medium - Google Patents

Data communication method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109246203B
CN109246203B CN201810972301.9A CN201810972301A CN109246203B CN 109246203 B CN109246203 B CN 109246203B CN 201810972301 A CN201810972301 A CN 201810972301A CN 109246203 B CN109246203 B CN 109246203B
Authority
CN
China
Prior art keywords
address table
terminal
data
communication
sending
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
CN201810972301.9A
Other languages
Chinese (zh)
Other versions
CN109246203A (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.)
Hitachi Building Technology Guangzhou Co Ltd
Original Assignee
Hitachi Building Technology Guangzhou 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 Hitachi Building Technology Guangzhou Co Ltd filed Critical Hitachi Building Technology Guangzhou Co Ltd
Priority to CN201810972301.9A priority Critical patent/CN109246203B/en
Publication of CN109246203A publication Critical patent/CN109246203A/en
Application granted granted Critical
Publication of CN109246203B publication Critical patent/CN109246203B/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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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

Abstract

The invention relates to a data communication method, a data communication device, computer equipment and a storage medium, and belongs to the technical field of computer networks. The method comprises the following steps: receiving data acquisition information sent by a first terminal; the data acquisition information is obtained by the first terminal according to an address table; when the address table of the first terminal is determined to be empty according to the data acquisition information, acquiring a candidate address table; sending the candidate address table to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table. By the technical scheme, the problem that data communication is not flexible enough and difficult to expand in the later period is solved. The first terminal determines communication data according to the address table, and the communication data can be flexibly defined through the address table, so that continuous improvement and expansion are facilitated.

Description

Data communication method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer network technology, and in particular, to a data communication method, apparatus, computer device, and storage medium.
Background
In current communication, the communication protocol is usually fixed, that is, each byte and each bit of the communication data have a fixed state definition. Therefore, under the condition of appointing a communication protocol, taking elevator monitoring communication as an example, the communication terminal and the elevator main control board need to modify a program to change or increase the content of communication. Such a method will result in data communication that is not flexible enough and difficult to expand later.
Disclosure of Invention
Based on the above, the invention provides a data communication method, a data communication device, computer equipment and a storage medium, which can realize flexible data communication and facilitate later modification or expansion.
The content of the embodiment of the invention is as follows:
a method of data communication, comprising the steps of: receiving data acquisition information sent by a first terminal; the data acquisition information is obtained by the first terminal according to an address table; when the address table of the first terminal is determined to be empty according to the data acquisition information, acquiring a candidate address table; sending the candidate address table to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table.
In one embodiment, the step of sending the candidate address table to the first terminal includes: judging whether an address table stored in the local terminal is empty or not; and if not, sending the stored address table serving as a candidate address table to the first terminal.
In one embodiment, after the step of determining whether the address table stored in the local terminal is empty, the method further includes: if yes, sending an address table acquisition request to the second terminal; the address table acquisition request is used for triggering the second terminal to return an address table; and sending the address table returned by the second terminal to the first terminal as a candidate address table.
In one embodiment, after the step of sending the address table obtaining request to the second terminal, the method further includes: and if the address table returned by the second terminal is not received, ending the data communication.
In one embodiment, after the step of receiving the data acquisition information sent by the first terminal, the method further includes: when the address table of the first terminal is determined to be non-empty according to the data acquisition information, determining communication data sent by the first terminal according to the data acquisition information; and sending the communication data to the second terminal.
In one embodiment, the second terminal is a cloud server; the step of sending an address table acquisition request to the second terminal includes: and sending an address table acquisition request to the cloud server through the wireless GPRS module.
In one embodiment, the first terminal is an elevator main control board; the step of receiving the data acquisition information sent by the first terminal includes: and receiving data acquisition information sent by the elevator main control board through an RS485 interface.
Accordingly, an embodiment of the present invention provides a data communication device, including: the request sending module is used for receiving data acquisition information sent by a first terminal; the data acquisition information is obtained by the first terminal according to an address table; the address table acquisition module is used for acquiring a candidate address table when the address table of the first terminal is determined to be empty according to the data acquisition information; the address table sending module is used for sending the candidate address table to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table.
According to the data communication method and the data communication device, the first terminal determines the communication data according to the address table, and the communication data can be flexibly defined through the address table, so that continuous improvement and expansion are facilitated.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: receiving data acquisition information sent by a first terminal; the data acquisition information is obtained by the first terminal according to an address table; when the address table of the first terminal is determined to be empty according to the data acquisition information, acquiring a candidate address table; sending the candidate address table to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table.
According to the computer equipment, the first terminal determines the communication data according to the address table, and the communication data can be flexibly defined through the address table, so that continuous improvement and expansion are facilitated.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: receiving data acquisition information sent by a first terminal; the data acquisition information is obtained by the first terminal according to an address table; when the address table of the first terminal is determined to be empty according to the data acquisition information, acquiring a candidate address table; sending the candidate address table to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table.
According to the computer readable storage medium, the first terminal determines the communication data according to the address table, and the communication data can be flexibly defined through the address table, so that continuous improvement and expansion are facilitated.
Drawings
FIG. 1 is a diagram of an exemplary data communication method;
FIG. 2 is a flow diagram illustrating a data communication method according to an embodiment;
FIG. 3 is a diagram of an exemplary data communication method;
FIG. 4 is a flow chart illustrating a data communication method according to another embodiment;
FIG. 5 is a block diagram of an embodiment of a data communication device;
FIG. 6 shows an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The data communication method provided by the application can be applied to an elevator application environment as shown in fig. 1 (the embodiment of the invention does not limit the type, brand and ladder type of the elevator). The application environment includes a first terminal 101 and a communication terminal 102. The first terminal 101 transmits communication data to the communication terminal according to the address table. The first terminal 101 and the communication terminal 102 may be various personal computers, notebook computers, smart phones, tablet computers, main control boards, portable wearable devices, or servers.
The embodiment of the invention provides a data communication method, a data communication device, computer equipment and a storage medium. The following are detailed below.
In one embodiment, as shown in FIG. 2, a method of data communication is provided. Taking the application of the method to the communication terminal in fig. 1 as an example for explanation, the method comprises the following steps:
s201, receiving data acquisition information sent by a first terminal; and the data acquisition information is obtained by the first terminal according to the address table.
The first terminal refers to a data sending terminal in the data communication process. Can be various personal computers, notebook computers, smart phones, tablet computers, main control boards and portable wearable devices.
Stored in the address table is a register address. The address table may define the content, sequence, etc. stored in each address according to the communication protocol. The first terminal fills data into the corresponding addresses according to the address sequence, and then the data to be transmitted to the communication terminal can be obtained. When the format, content, etc. of a certain address are changed, the corresponding communication data are also changed correspondingly. Therefore, with the delivery of the address table, the communication data can be changed or added without modifying the program of the communication terminal and the first terminal.
The data acquisition information refers to information returned to the communication terminal determined according to the address table, and may be specific communication data, or may be status information of the address table, or the like. When the address table in the first terminal is non-empty, communication data is generated according to the address table, so that the data acquisition information can be communication data; when the address table in the first terminal is empty (there is no address table or there is no content in the address table), the information that the address table is empty is returned to the communication terminal, and therefore, the data acquisition information may be information that the address table of the first terminal is empty.
In addition, the first terminal can automatically send data acquisition information to the communication terminal when data communication is carried out. Of course, before the communication terminal receives the data acquisition information sent by the first terminal, the communication terminal may also send a data acquisition request to the first terminal to acquire communication data from the first terminal.
S202, when the address table of the first terminal is determined to be empty according to the data acquisition information, a candidate address table is acquired.
The candidate address table refers to an address definition table which is acquired by the communication terminal in advance and used for identifying communication data. When the address table of the first terminal is empty, the first terminal needs to acquire the address table in order to generate communication data, and therefore the communication terminal needs to acquire the candidate address table and send the candidate address table to the first terminal. The candidate address table may be obtained from a memory of the communication terminal, may be obtained from a server, or may be generated by the communication terminal.
Further, when the address table of the first terminal is determined to be non-empty according to the data acquisition information, determining communication data sent by the first terminal according to the data acquisition information; and sending the communication data to the second terminal.
The communication data refers to data that the first terminal needs to send to the communication terminal or needs to send to other terminals through the communication terminal. Taking the first terminal as an elevator main control board as an example, the communication data may be elevator state data, elevator abnormal data, elevator operation data (elevator operation direction, elevator operation time, and the like), elevator control data, elevator detection data, and the like.
In addition, the second terminal refers to an acquisition end of the communication data, and can also be a definition end of the address table. The second terminal can be a computer, a control center server, a cloud server and the like.
And when the communication terminal receives the data acquisition information, the communication terminal can determine the communication data according to the rules of the address table. If the communication data needs to be sent to the second terminal, the communication terminal sends the acquired communication data to the second terminal, and data communication between the first terminal and the second terminal is achieved. Certainly, the communication data may not be sent to the second terminal, and data communication between the first terminal and the communication terminal is realized.
S203, sending the candidate address list to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table.
In this step, after receiving the candidate address table, the first terminal fills the corresponding data according to the definition of the address table to obtain the communication data, and returns the communication data to the communication terminal. When the communication terminal acquires the communication data, corresponding operation can be executed according to the communication data.
In this embodiment, the first terminal determines the communication data according to the address table, and the communication data can be flexibly defined through the address table, thereby facilitating continuous improvement and expansion.
In one embodiment, the step of sending the candidate address table to the first terminal includes: judging whether an address table stored in the local terminal is empty or not; if not, the stored address table is used as a candidate address table and sent to the first terminal; if yes, sending an address table acquisition request to the second terminal; the address table acquisition request is used for triggering the second terminal to return an address table; and sending the address table returned by the second terminal to the first terminal as a candidate address table.
The embodiment realizes the acquisition of the candidate address table, and the communication terminal judges whether the address table of the terminal is empty when the address table in the first terminal is empty, and if not, the address table is used as the candidate address table and sent to the address terminal; if yes, a request needs to be sent to an address table providing end (a second terminal) to obtain a candidate address table. The method and the device can ensure that the address table in the first terminal is timely acquired and corresponding communication data are generated when the address table is empty.
In one embodiment, the address table may also include version information. When the communication terminal receives the data acquisition information, if the address table of the first terminal is determined to be non-empty according to the data acquisition information, whether the address table is the latest version is judged. If the address table is the latest version, the communication data in the address table can be acquired. If the address table is not the latest version and the communication terminal stores the latest version of the address table, the communication terminal can send the latest version of the address table stored in the local terminal to the first terminal; if the communication terminal does not store the address table of the latest version, the address table of the latest version can be acquired from the second terminal. The method for acquiring the address table can ensure the real-time property of the address table so as to obtain reliable communication data. In addition, the address table can be updated according to the needs, so that the purpose of modifying the communication data is achieved.
In one embodiment, after the step of sending the address table obtaining request to the second terminal, the method further includes: and if the address table returned by the second terminal is not received, ending the data communication.
In this embodiment, the communication terminal requests the second terminal to acquire the address table without storing the address table. If the second terminal does not store the address table or the address table returns an error, the first terminal cannot acquire the address table, and the data communication can be ended at this time. And then, if the second terminal acquires or generates the address table, the address table can be automatically sent to the communication terminal. The communication terminal may also automatically send the received address table to the first terminal.
In an embodiment, when detecting that the address table of the first terminal is empty, the first terminal may also actively acquire the address table from the communication terminal or from other related terminals.
In one embodiment, as shown in fig. 3, the second terminal is a cloud server; the step of sending an address table acquisition request to the second terminal includes: and sending an address table acquisition request to the cloud server through the wireless GPRS module. The first terminal is an elevator main control board; the step of receiving the data acquisition information sent by the first terminal includes: and receiving data acquisition information sent by the elevator main control board through an RS485 interface.
Wherein, the elevator main control board and the communication terminal can also communicate through an RS232 interface and the like. The communication terminal and the cloud server can also communicate in other modes except the wireless GPRS module.
In this embodiment, the communication terminal communicates with the cloud server in a GPRS manner, and acquires an address table from the communication terminal or sends acquired communication data to the cloud server; and the communication terminal is in data communication with the elevator main control board through an RS485 interface. The data transmission efficiency between the communication terminal and the cloud server and between the communication terminal and the elevator main control board can be effectively ensured.
In order to better understand the above method, an application example of the data communication method of the present invention is described in detail below, as shown in fig. 4. In this application example, the elevator main control board passes through the RS485 interface and is connected with communication terminal, and communication terminal passes through wireless GPRS module and is connected with the high in the clouds server.
1. And the communication terminal sends a data acquisition request to the elevator main control board. If the address table of the elevator main control board is empty, the elevator main control board returns data acquisition information with the empty address table to the communication terminal to request the communication terminal to issue the address table; and if the address table is not empty, the elevator main control board determines corresponding communication data according to the definition of the address table and returns data acquisition information to the communication terminal according to the communication data.
2. The communication terminal inquires the data acquisition information of the elevator main control board, and if the elevator main control board returns the communication data, the communication terminal continues to circularly inquire the data acquisition information.
3. If the elevator main control board returns data acquisition information that the address table is empty, the communication terminal judges whether the address table is empty locally. If not, the stored address list is sent to the elevator main control board, and then the step 1 is repeated.
4. And if the address table of the communication terminal is empty, requesting the cloud server to issue the address table.
5. And if the address table of the cloud server is not empty, the cloud server issues the address table to the communication terminal. The communication terminal issues the acquired address table to the elevator main control board; and if the address table of the cloud server is empty, ending the process, generating the address table by manual processing, and continuing the step 1.
In the current elevator monitoring communication, the communication protocol is fixed, and each byte and each bit of the communication data have fixed state definitions. After the communication protocol is agreed, if the communication content needs to be changed or increased, the communication protocol can be realized only by modifying the programs of the communication terminal and the elevator main control board. Such communication mode is difficult to later stage extension, is unfavorable for the continuous improvement and the upgrading of product. The communication method provided by the embodiment increases the transmission of the address table and the content of data communication according to the address table, communication data acquired by the communication terminal can be flexibly defined through the address table, continuous improvement and expansion are facilitated, and the practical application effect is good. Meanwhile, the data communication method provided by the embodiment can be suitable for different ladders and different communication data, and is high in compatibility.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention.
Based on the same idea as the data communication method in the above embodiment, the present invention also provides a data communication apparatus, which can be used to execute the above data communication method. For convenience of illustration, the data communication device is shown only in the related part of the embodiment of the invention, and those skilled in the art will understand that the structure shown in the figure does not limit the device, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.
As shown in fig. 5, the data communication device includes a request sending module 501, an address table obtaining module 502, and an address table sending module 503, which are described in detail as follows:
a request sending module 501, configured to receive data acquisition information sent by a first terminal; and the data acquisition information is obtained by the first terminal according to the address table.
An address table obtaining module 502, configured to obtain a candidate address table when it is determined that the address table of the first terminal is empty according to the data obtaining information.
And an address table sending module 503, configured to send the candidate address table to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table.
In this embodiment, the first terminal determines the communication data according to the address table, and the communication data can be flexibly defined through the address table, thereby facilitating continuous improvement and expansion.
In one embodiment, the address table sending module 503 includes: the address judgment submodule is used for judging whether an address table stored in the local terminal is empty or not; and the first address sending submodule is used for sending the stored address table serving as a candidate address table to the first terminal if the address is not the candidate address table.
In one embodiment, the address table sending module 503 further includes: the address table acquisition submodule is used for sending an address table acquisition request to the second terminal if the address table acquisition submodule is used for sending the address table acquisition request to the second terminal; the address table acquisition request is used for triggering the second terminal to return an address table; and the first address sending submodule is used for sending the address table returned by the second terminal to the first terminal as a candidate address table.
In one embodiment, the address table sending module 503 further includes: and the communication ending submodule is used for ending the data communication if the address table returned by the second terminal is not received.
In one embodiment, further comprising: the communication data acquisition module is used for determining communication data sent by the first terminal according to the data acquisition information when the address table of the first terminal is determined to be non-empty according to the data acquisition information; and the communication data sending module is used for sending the communication data to the second terminal.
In one embodiment, the second terminal is a cloud server; and the address table acquisition submodule is also used for sending an address table acquisition request to the cloud server through the wireless GPRS module.
In one embodiment, the first terminal is an elevator main control board; the step of receiving the data acquisition information sent by the first terminal includes: and receiving data acquisition information sent by the elevator main control board through an RS485 interface.
It should be noted that, the data communication apparatus of the present invention corresponds to the data communication method of the present invention one to one, and the technical features and the advantageous effects described in the embodiments of the data communication method are all applicable to the embodiments of the data communication apparatus, and specific contents may refer to the description in the embodiments of the method of the present invention, which is not described herein again, and thus, the present invention is claimed.
In addition, in the above-mentioned exemplary embodiments of the data communication device, the logical division of the program modules is only an example, and in practical applications, the above-mentioned functions may be distributed by different program modules according to needs, for example, due to the configuration requirements of the corresponding hardware or the convenience of the implementation of software, that is, the internal structure of the data communication device is divided into different program modules to implement all or part of the above-mentioned functions.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data communication method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: receiving data acquisition information sent by a first terminal; the data acquisition information is obtained by the first terminal according to an address table; when the address table of the first terminal is determined to be empty according to the data acquisition information, acquiring a candidate address table; sending the candidate address table to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table.
In one embodiment, the processor, when executing the computer program, further performs the steps of: judging whether an address table stored in the local terminal is empty or not; and if not, sending the stored address table serving as a candidate address table to the first terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if yes, sending an address table acquisition request to the second terminal; the address table acquisition request is used for triggering the second terminal to return an address table; and sending the address table returned by the second terminal to the first terminal as a candidate address table.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the address table returned by the second terminal is not received, ending the data communication.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the address table of the first terminal is determined to be non-empty according to the data acquisition information, determining communication data sent by the first terminal according to the data acquisition information; and sending the communication data to the second terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and sending an address table acquisition request to the cloud server through the wireless GPRS module.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and receiving data acquisition information sent by the elevator main control board through an RS485 interface.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving data acquisition information sent by a first terminal; the data acquisition information is obtained by the first terminal according to an address table; when the address table of the first terminal is determined to be empty according to the data acquisition information, acquiring a candidate address table; sending the candidate address table to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table.
In one embodiment, the computer program when executed by the processor further performs the steps of: judging whether an address table stored in the local terminal is empty or not; and if not, sending the stored address table serving as a candidate address table to the first terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of: if yes, sending an address table acquisition request to the second terminal; the address table acquisition request is used for triggering the second terminal to return an address table; and sending the address table returned by the second terminal to the first terminal as a candidate address table.
In one embodiment, the computer program when executed by the processor further performs the steps of: and if the address table returned by the second terminal is not received, ending the data communication.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the address table of the first terminal is determined to be non-empty according to the data acquisition information, determining communication data sent by the first terminal according to the data acquisition information; and sending the communication data to the second terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of: and sending an address table acquisition request to the cloud server through the wireless GPRS module.
In one embodiment, the computer program when executed by the processor further performs the steps of: and receiving data acquisition information sent by the elevator main control board through an RS485 interface.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium and sold or used as a stand-alone product. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
The terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or (module) elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-described examples merely represent several embodiments of the present invention and should not be construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A data communication method, comprising the steps of:
receiving data acquisition information sent by a first terminal; the data acquisition information is obtained by the first terminal according to an address table; the first terminal is an elevator main control board;
when the address table of the first terminal is determined to be empty according to the data acquisition information, acquiring a candidate address table;
sending the candidate address table to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table;
after receiving the data acquisition information sent by the first terminal, the method further includes:
if the address table of the first terminal is determined to be non-empty according to the data acquisition information, judging whether the address table is the latest version, if so, acquiring communication data sent by the first terminal, and if not, sending the address table of the latest version stored in the local terminal to the first terminal; if the address table of the first terminal is determined to be empty according to the data acquisition information, sending an address table acquisition request to the second terminal to acquire the address table of the latest version and sending the acquired address table of the latest version to the first terminal; and the second terminal is a definition end of the address table.
2. The data communication method according to claim 1, wherein after the step of sending the address table acquisition request to the second terminal, the method further comprises:
and if the address table returned by the second terminal is not received, ending the data communication.
3. The data communication method according to claim 1, wherein the second terminal is a cloud server;
the step of sending an address table acquisition request to the second terminal includes:
and sending an address table acquisition request to the cloud server through the wireless GPRS module.
4. The data communication method according to any one of claims 1 to 3, wherein the step of receiving the data acquisition information sent by the first terminal comprises:
and receiving data acquisition information sent by the elevator main control board through an RS485 interface.
5. A data communication device, comprising:
the request sending module is used for receiving data acquisition information sent by a first terminal; the data acquisition information is obtained by the first terminal according to an address table; the first terminal is an elevator main control board;
the address table acquisition module is used for acquiring a candidate address table when the address table of the first terminal is determined to be empty according to the data acquisition information;
the address table sending module is used for sending the candidate address table to the first terminal; the candidate address table is used for triggering the first terminal to return corresponding communication data according to the candidate address table;
the apparatus also includes means for performing the steps of:
if the address table of the first terminal is determined to be non-empty according to the data acquisition information, judging whether the address table is the latest version, if so, acquiring communication data, and if not, sending the address table of the latest version stored in the local terminal to the first terminal; if the address table of the first terminal is determined to be empty according to the data acquisition information, sending an address table acquisition request to the second terminal to acquire the address table of the latest version and sending the acquired address table of the latest version to the first terminal; and the second terminal is a definition end of the address table.
6. The data communication device of claim 5, wherein the address table sending module further comprises: and the communication ending submodule is used for ending the data communication if the address table returned by the second terminal is not received.
7. The data communication device according to claim 5, wherein the second terminal is a cloud server; and the address table acquisition submodule is also used for sending an address table acquisition request to the cloud server through the wireless GPRS module.
8. The data communication device according to any one of claims 5 to 7, wherein the request sending module is further configured to receive data acquisition information sent by the elevator main control board through an RS485 interface.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN201810972301.9A 2018-08-24 2018-08-24 Data communication method, device, computer equipment and storage medium Active CN109246203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810972301.9A CN109246203B (en) 2018-08-24 2018-08-24 Data communication method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810972301.9A CN109246203B (en) 2018-08-24 2018-08-24 Data communication method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109246203A CN109246203A (en) 2019-01-18
CN109246203B true CN109246203B (en) 2021-07-06

Family

ID=65067867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810972301.9A Active CN109246203B (en) 2018-08-24 2018-08-24 Data communication method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109246203B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902556A (en) * 2010-08-03 2010-12-01 福建新大陆通信科技股份有限公司 Data block partition positioning method for digital television set-top box
CN102377634A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Networking method and system for access network equipment
CN104079567A (en) * 2014-06-25 2014-10-01 深圳市汇川技术股份有限公司 Protocol converter, protocol conversion method and elevator remote monitoring system
CN104580187A (en) * 2014-12-31 2015-04-29 厦门为那通信科技有限公司 Method for achieving interaction of external devices of different MODULEBUS protocols and server
CN106406251A (en) * 2016-03-28 2017-02-15 青岛海尔空调电子有限公司 Air conditioning control system, centralized control switch box and centralized control communication transfer method
CN107239483A (en) * 2017-04-14 2017-10-10 浙江工业大学 A kind of cross-domain elevator data assembled view automatic generation method based on data, services

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7835304B2 (en) * 2007-11-28 2010-11-16 Alcatel-Lucent Usa Inc. Method and apparatus for assigning IP addresses

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902556A (en) * 2010-08-03 2010-12-01 福建新大陆通信科技股份有限公司 Data block partition positioning method for digital television set-top box
CN102377634A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Networking method and system for access network equipment
CN104079567A (en) * 2014-06-25 2014-10-01 深圳市汇川技术股份有限公司 Protocol converter, protocol conversion method and elevator remote monitoring system
CN104580187A (en) * 2014-12-31 2015-04-29 厦门为那通信科技有限公司 Method for achieving interaction of external devices of different MODULEBUS protocols and server
CN106406251A (en) * 2016-03-28 2017-02-15 青岛海尔空调电子有限公司 Air conditioning control system, centralized control switch box and centralized control communication transfer method
CN107239483A (en) * 2017-04-14 2017-10-10 浙江工业大学 A kind of cross-domain elevator data assembled view automatic generation method based on data, services

Also Published As

Publication number Publication date
CN109246203A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109218133B (en) Network speed testing system, method, device and computer readable storage medium
CN108028833B (en) NAS data access method, system and related equipment
CN112653618B (en) Gateway registration method and device of micro-service application API (application program interface) endpoint
CN110677493B (en) Service state determination method and device, computer device and storage medium
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
CN109428839B (en) CDN scheduling method, device and system
US20170153909A1 (en) Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine
CN111181787A (en) BMC parameter configuration method, device, equipment and medium
CN111290871A (en) Method and device for acquiring crash information of application program
CN112422450A (en) Computer equipment, and flow control method and device for service request
CN111064786A (en) Account identifier management method and device
CN109246203B (en) Data communication method, device, computer equipment and storage medium
CN111176577B (en) Distributed block storage service command processing method, device, equipment and medium
CN109697166B (en) Test data preparation method and related device
CN102377793A (en) Flash interaction method and device based on mobile communication equipment terminal
CN112579191A (en) Component loading method, device and system
CN111092774A (en) Configuration method and equipment of acquisition gateway
CN116032614A (en) Container network micro-isolation method, device, equipment and medium
CN109960552B (en) Webpage interface differential rendering method and device
CN109936586B (en) Communication processing method and device
CN115269530A (en) Data synchronization method, electronic device and computer-readable storage medium
CN105142130B (en) A kind of information processing method and electronic equipment
CN114296906B (en) Business dynamic scaling method, device, equipment and storage medium
CN110046120B (en) Data processing method, device and system based on IIC protocol and storage medium
CN112069428B (en) Interface display method and device and server

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