CN109246203A - 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
CN109246203A
CN109246203A CN201810972301.9A CN201810972301A CN109246203A CN 109246203 A CN109246203 A CN 109246203A CN 201810972301 A CN201810972301 A CN 201810972301A CN 109246203 A CN109246203 A CN 109246203A
Authority
CN
China
Prior art keywords
terminal
address table
data
sent
candidate site
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.)
Granted
Application number
CN201810972301.9A
Other languages
Chinese (zh)
Other versions
CN109246203B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to data communication method, device, computer equipment and storage mediums, belong to technical field of the computer network.The described method includes: receiving the data acquisition information that first terminal is sent;The data acquisition information is obtained by first terminal according to address table;When it is empty for determining the address table of the first terminal according to the data acquisition information, candidate site table is obtained;The candidate site table is sent to the first terminal;The candidate site table returns to corresponding communication data according to the candidate site table for triggering the first terminal.Above-mentioned technical proposal solves the problems, such as that data communication is inflexible and is difficult to later period extension.First terminal determines that communication data, communication data can flexibly be defined by address table, conveniently be continuously improved and extend according to address table.

Description

Data communication method, device, computer equipment and storage medium
Technical field
The present invention relates to technical field of the computer network, more particularly to data communication method, device, computer equipment and Storage medium.
Background technique
In current communication, communications protocol be often it is fixed, i.e., each byte of communication data and each There is fixed state definition in position.Therefore, in the case where having arranged communications protocol, by taking elevator monitoring communicates as an example, communication is eventually End and elevator main control board just need to modify program and could change or increase the content of communication.Such mode will lead to data communication It is inflexible, it is difficult to later period extension.
Summary of the invention
Based on this, the present invention provides data communication method, device, computer equipment and storage medium, it is able to achieve flexibly Data communication, facilitate the later period modify or extension.
The content of the embodiment of the present invention is as follows:
A kind of data communication method, comprising the following steps: receive the data acquisition information that first terminal is sent;The data Information is obtained to be obtained by first terminal according to address table;When the address for determining the first terminal according to the data acquisition information When table is empty, candidate site table is obtained;The candidate site table is sent to the first terminal;The candidate site table is for touching It sends out first terminal described and corresponding communication data is returned to according to the candidate site table.
Described the step of sending the candidate site table to the first terminal in one of the embodiments, comprising: sentence Whether the address table of disconnected local terminal storage is empty;If it is not, being sent to described first for the address table stored as candidate site table Terminal.
After whether the address table for judging local terminal storage is empty step in one of the embodiments, further includes: If so, sending address table acquisition request to second terminal;The address table acquisition request is returned for triggering the second terminal Address table;The address table that second terminal returns is sent to the first terminal as candidate site table.
In one of the embodiments, after described the step of sending address table acquisition request to second terminal, further includes: If not receiving the address table that the second terminal returns, terminate this data communication.
In one of the embodiments, after described the step of receiving the data acquisition information that first terminal is sent, also wrap It includes: when the address table for determining the first terminal according to the data acquisition information is non-empty, being believed according to the data acquisition Breath determines the communication data that the first terminal is sent;The communication data is sent to the second terminal.
The second terminal is cloud server in one of the embodiments,;It is described to send address table to second terminal The step of acquisition request, comprising: address table acquisition request is sent to cloud server by wireless GPRS module.
The first terminal is elevator main control board in one of the embodiments,;The number for receiving first terminal and sending According to the step of obtaining information, comprising: the data acquisition information sent by RS485 interface elevator main control board.
Correspondingly, the embodiment of the present invention provides a kind of data communication apparatus, comprising: request sending module, for receiving the The data acquisition information that one terminal is sent;The data acquisition information is obtained by first terminal according to address table;Address table obtains Module, for obtaining candidate site table when it is empty for determining the address table of the first terminal according to the data acquisition information; And address table sending module, for sending the candidate site table to the first terminal;The candidate site table is for touching It sends out first terminal described and corresponding communication data is returned to according to the candidate site table.
Above-mentioned data communication method and device, first terminal determine that communication data, communication data can according to address table It is flexibly defined by address table, is conveniently continuously improved and extends.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage Computer program, the processor performs the steps of when executing the computer program receives the data that first terminal is sent Obtain information;The data acquisition information is obtained by first terminal according to address table;It is determined when according to the data acquisition information When the address table of the first terminal is empty, candidate site table is obtained;The candidate site table is sent to the first terminal;Institute It states candidate site table and corresponding communication data is returned to according to the candidate site table for triggering the first terminal.
Above-mentioned computer equipment, first terminal determine that communication data, communication data can pass through address according to address table Table flexibly defines, and is conveniently continuously improved and extends.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row and receives the data acquisition information that first terminal is sent;The data acquisition information is by first terminal root It is obtained according to address table;When it is empty for determining the address table of the first terminal according to the data acquisition information, candidate ground is obtained Location table;The candidate site table is sent to the first terminal;The candidate site table for trigger the first terminal according to The candidate site table returns to corresponding communication data.
Above-mentioned computer readable storage medium, first terminal determine that communication data, communication data can according to address table It is flexibly defined by address table, is conveniently continuously improved and extends.
Detailed description of the invention
Fig. 1 is the applied environment figure of data communication method in one embodiment;
Fig. 2 is the flow diagram of data communication method in one embodiment;
Fig. 3 is the applied environment figure of data communication method in another embodiment;
Fig. 4 is the flow diagram of data communication method in another embodiment;
Fig. 5 is the structural block diagram of data communication apparatus in one embodiment;
Fig. 6 is the internal structure of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Data communication method provided by the present application can be applied in elevator applications environment as shown in Figure 1 (present invention reality Example is applied to the type, brand, ladder type of elevator with no restrictions).It include first terminal 101 and communicating terminal 102 in the application environment. First terminal 101 sends communication data to communicating terminal according to address table.Wherein, first terminal 101 and communicating terminal 102 To be various personal computers, laptop, smart phone, tablet computer, master control borad and portable wearable device, may be used also To be server.
The embodiment of the present invention provides a kind of data communication method, device, computer equipment and storage medium.Individually below into Row is described in detail.
In one embodiment, as shown in Fig. 2, providing a kind of data communication method.It is applied in Fig. 1 in this way It is illustrated for communicating terminal, comprising the following steps:
S201, the data acquisition information that first terminal is sent is received;The data acquisition information is by first terminal base area Location table obtains.
Wherein, first terminal refers to the data sending terminal in process of data communication.It can be various personal computers, pen Remember this computer, smart phone, tablet computer, master control borad and portable wearable device.
What is stored in address table is register address.In address table can store each address according to communications protocol Appearance, sequence etc. are defined.First terminal fills data to corresponding address according to sequence of addresses, can obtain needing to communication The data of terminal transmission.When the format of some address, content etc. change, corresponding communication data can also occur accordingly Variation.Therefore, there is the transmitting of address table, the program for not needing modification communicating terminal and first terminal can change or increase Add communication data.
Data acquisition information refers to the information that communicating terminal is returned to according to determined by address table, can be specific Communication data is also possible to the status information etc. of address table.When the address table in first terminal is non-empty, according to the address table Therefore generating communication data can be communication data in the data acquisition information;When the address table in first terminal be it is empty (no There are do not have content in address table or address table) when, it is that empty information returns to communicating terminal by address table, therefore, the number It can be the information of " address table of first terminal is empty " according to information is obtained.
In addition, first terminal can send data acquisition information from trend communicating terminal when carrying out data communication.Certainly, Before the data acquisition information that communicating terminal receives that first terminal is sent, communicating terminal can also send data to first terminal Acquisition request, to obtain communication data to first terminal.
S202, when it is empty for determining the address table of the first terminal according to the data acquisition information, obtain candidate ground Location table.
Wherein, candidate site table refers to that the address for the communication data for identification that communicating terminal obtains in advance defines table. When the address table of first terminal is empty, first terminal needs to obtain address table to generate communication data, therefore communicating terminal It needs to obtain candidate site table and is sent to first terminal.The acquisition of the candidate site table can be the memory from communicating terminal Middle acquisition is also possible to obtain from server, can also be that communicating terminal generates.
Further, when the address table for determining the first terminal according to the data acquisition information is non-empty, according to The data acquisition information determines the communication data that the first terminal is sent;The communication data is sent to described second eventually End.
The communication data refers to that first terminal needs to be sent to communicating terminal or needs to be sent to by communicating terminal The data of other terminals.By taking first terminal is elevator main control board as an example, communication data can be elevator status data, abnormal elevator Data, car movement data (elevator traffic direction, elevator runing time etc.), elevator control data, elevator detection data etc..
In addition, second terminal refers to the acquisition end of communication data, it may also is that the definition end of address table.Second terminal It can be computer, control centre's server, cloud server etc..
Communicating terminal can therefrom determine communication number when receiving data acquisition information, according to the rule of address table According to.If desired the communication data is sent to second terminal, then acquired communication data is sent to second eventually by communicating terminal The data communication between first terminal and second terminal is realized at end.Certainly, communication data can not also be sent to second terminal, Realize the data communication between first terminal and communicating terminal.
S203, the candidate site table is sent to the first terminal;The candidate site table is for triggering described first Terminal returns to corresponding communication data according to the candidate site table.
In this step, first terminal is filled corresponding after receiving candidate site table according to the definition of address table Data can obtain communication data, and return to communicating terminal.Communicating terminal, can be logical according to this when getting communication data It interrogates data and executes corresponding operation.
The present embodiment, first terminal determine that communication data, communication data can be flexible by address table according to address table Definition, is conveniently continuously improved and extends.
In one embodiment, described the step of sending the candidate site table to the first terminal, comprising: judgement is originally Whether the address table for holding storage is empty;If it is not, being sent to the first terminal for the address table stored as candidate site table; If so, sending address table acquisition request to second terminal;The address table acquisition request is returned for triggering the second terminal Address table;The address table that second terminal returns is sent to the first terminal as candidate site table.
The present embodiment is accomplished that the acquisition of candidate site table, when address table of the communicating terminal in first terminal is empty, Whether the address table for judging local terminal is sky, if it is not, being sent to End of Address for the address table as candidate site table;If so, It needs to provide end (second terminal) to address table and sends a request for candidate site table.It can guarantee the address in first terminal Table gets address table in time and generates corresponding communication data when being empty.
In one embodiment, address table also may include version information.Communicating terminal is receiving data acquisition information When, if determine that the address table of first terminal is non-empty according to data acquisition information, judge whether its address table is latest edition. If the address table is latest edition, available communication data therein.If not latest edition, and stored in communicating terminal When having the address table of latest edition, then the address table for the latest edition that local terminal stores can be sent to first eventually by communicating terminal End;If the address table of the not stored latest edition of communicating terminal, the address table of latest edition can be obtained to second terminal.Pass through The method of the present embodiment acquisition address table, it is ensured that the real-time of address table, to obtain reliable communication data.In addition, can To be as needed updated address table, achieve the purpose that modify communication data.
In one embodiment, after described the step of sending address table acquisition request to second terminal, further includes: if not The address table that the second terminal returns is received, this data communication is terminated.
The present embodiment, communicating terminal is in the case where not stored address table to second terminal request address table.If the Also not stored address table or address table return to error to two terminals, then first terminal is obtained less than address table, can be terminated at this time This data communication.Later, if second terminal gets or generate address table, the ground can be sent from trend communicating terminal Location table.Communicating terminal can also send the received address table of institute from trend first terminal.
In one embodiment, first terminal, can also be actively whole to communication when the address table for detecting local terminal is empty End obtains address table to other relevant terminals.
In one embodiment, as shown in figure 3, second terminal is cloud server;It is described to send address to second terminal The step of table acquisition request, comprising: address table acquisition request is sent to cloud server by wireless GPRS module.First terminal For elevator main control board;Described the step of receiving the data acquisition information that first terminal is sent, comprising: pass through RS485 interface The data acquisition information that elevator main control board is sent.
Wherein, elevator main control board and communicating terminal can also be communicated by RS232 interface etc..Communicating terminal and cloud Server can also be communicated by the other modes except wireless GPRS module.
The present embodiment, communicating terminal are communicated by way of GPRS with cloud server, to its obtain address table or Acquired communication data is sent to cloud server by person;Communicating terminal is counted by RS485 interface with elevator main control board According to communication.It can be effectively ensured between communicating terminal and cloud server, the data transmission between communicating terminal and elevator main control board Efficiency.
The above method in order to better understand, as shown in figure 4, a data communication method of the present invention detailed below Application example.In this application example, elevator main control board is connected by RS485 Interface and Communication terminal, and communicating terminal passes through nothing Line GPRS module is connect with cloud server.
1, communicating terminal sends data acquisition request to elevator main control board.If the address table of elevator main control board is sky, electricity Terraced master control borad to communicating terminal return address table be empty data acquisition information, to request communicating terminal to issue address table;If Address table is non-empty, then elevator main control board according to the definition of address table determine corresponding communication data and according to the communication data to Communicating terminal returned data obtains information.
2, the data acquisition information of querying communication terminal elevator main control board, if elevator main control board returns communication data, Then communicating terminal continues cycling through inquiry data acquisition information.
If it is empty data acquisition information that 3, elevator main control board, which returns address table, whether communicating terminal judges local Address table whether be empty.If being not sky, the address table stored is handed down to elevator main control board, then repeatedly step 1.
If 4, the address table of communicating terminal is sky, cloud server is requested to issue address table.
If 5, the address table of cloud server is not empty, cloud server issues address table to communicating terminal.Communication Acquired address table is handed down to elevator main control board by terminal;If the address table of cloud server is sky, process terminates, and needs It wants artificial treatment to generate address table and is further continued for step 1.
In current elevator monitoring communication, communications protocol is fixed, each byte of communication data and each There is fixed state definition in a position.After arranging communications protocol, if to change or increase the content of communication, need to modify The program of communicating terminal and elevator main control board is just able to achieve.Such communication modes are difficult to later period extension, are unfavorable for holding for product It is continuous to improve and upgrade.The means of communication that the present embodiment proposes increase the transmission of address table and carry out data communication according to address table Content, communicating terminal obtain communication data can flexibly be defined by address table, be conveniently continuously improved and extend, actually answer It is good with effect.Meanwhile data communication method provided in this embodiment can be adapted for different ladder types and different communication numbers According to compatibility is strong.
It should be noted that for the various method embodiments described above, describing for simplicity, it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, because according to According to the present invention, certain steps can use other sequences or carry out simultaneously.
Based on thought identical with the data communication method in above-described embodiment, the present invention also provides data communication apparatus, The device can be used for executing above-mentioned data communication method.For ease of description, the structural schematic diagram of data communication apparatus embodiment In, it illustrate only part related to the embodiment of the present invention, it will be understood by those skilled in the art that schematic structure is not constituted Restriction to device may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
As described in Figure 5, data communication apparatus includes request sending module 501, address table obtains module 502 and address table is sent out Module 503 is sent, detailed description are as follows:
Request sending module 501, for receiving the data acquisition information of first terminal transmission;The data acquisition information by First terminal is obtained according to address table.
Address table obtains module 502, for when the address table for determining the first terminal according to the data acquisition information When for sky, candidate site table is obtained.
And address table sending module 503, for sending the candidate site table to the first terminal;The candidate Address table returns to corresponding communication data according to the candidate site table for triggering the first terminal.
The present embodiment, first terminal determine that communication data, communication data can be flexible by address table according to address table Definition, is conveniently continuously improved and extends.
In one embodiment, address table sending module 503, comprising: address judging submodule, for judging that local terminal stores Address table whether be empty;First address sending submodule, for if it is not, being sent out the address table stored as candidate site table Give the first terminal.
In one embodiment, address table sending module 503, further includes: address table acquisition submodule, be used for if so, to Second terminal sends address table acquisition request;The address table acquisition request is for triggering second terminal return address table; First address sending submodule, the address table for returning to second terminal are sent to described first eventually as candidate site table End.
In one embodiment, address table sending module 503, further includes: communication terminates submodule, if for not receiving The address table that the second terminal returns, terminates this data communication.
In one embodiment, further includes: communication data obtains module, for determining when according to the data acquisition information When the address table of the first terminal is non-empty, the communication number that the first terminal is sent is determined according to the data acquisition information According to;Communication data sending module, for the communication data to be sent to the second terminal.
In one embodiment, the second terminal is cloud server;Address table acquisition submodule is also used to pass through nothing Line GPRS module sends address table acquisition request to cloud server.
In one embodiment, the first terminal is elevator main control board;The data for receiving first terminal transmission obtain Win the confidence breath the step of, comprising: pass through RS485 interface elevator main control board send data acquisition information.
It should be noted that data communication apparatus of the invention and data communication method of the invention correspond, upper The technical characteristic and its advantages of stating the embodiment elaboration of data communication method are suitable for the embodiment of data communication apparatus In, for details, please refer to the description in the embodiment of the method for the present invention, and details are not described herein again, hereby give notice that.
In addition, the logical partitioning of each program module is only citing in the embodiment of the data communication apparatus of above-mentioned example Illustrate, can according to need in practical application, such as is examined for the convenience of the realization of the configuration requirement or software of corresponding hardware Consider, above-mentioned function distribution is completed by different program modules, i.e., is divided into the internal structure of the data communication apparatus not Same program module, to complete all or part of the functions described above.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 6.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of data communication method.The display screen of the computer equipment can be liquid crystal display or electric ink display screen, The input unit of the computer equipment can be the touch layer covered on display screen, be also possible to be arranged on computer equipment shell Key, trace ball or Trackpad, can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor perform the steps of reception first eventually when executing computer program Hold the data acquisition information sent;The data acquisition information is obtained by first terminal according to address table;When according to the data When acquisition information determines that the address table of the first terminal is empty, candidate site table is obtained;To described in first terminal transmission Candidate site table;The candidate site table returns to corresponding communication according to the candidate site table for triggering the first terminal Data.
In one embodiment, the ground for judging local terminal storage is also performed the steps of when processor executes computer program Whether location table is empty;If it is not, being sent to the first terminal for the address table stored as candidate site table.
In one embodiment, it is also performed the steps of when processor executes computer program if so, being sent out to second terminal Send address table acquisition request;The address table acquisition request is for triggering second terminal return address table;By second terminal The address table of return is sent to the first terminal as candidate site table.
In one embodiment, if processor also performs the steps of when executing computer program does not receive described the The address table that two terminals return, terminates this data communication.
In one embodiment, it also performs the steps of to work as when processor executes computer program and be obtained according to the data When breath of winning the confidence determines that the address table of the first terminal is non-empty, determine that the first terminal is sent out according to the data acquisition information The communication data sent;The communication data is sent to the second terminal.
In one embodiment, it also performs the steps of when processor executes computer program through wireless GPRS module Address table acquisition request is sent to cloud server.
In one embodiment, it also performs the steps of when processor executes computer program through RS485 interface The data acquisition information that elevator main control board is sent.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor receives the data acquisition information that first terminal is sent;The data acquisition Information is obtained by first terminal according to address table;When the address table for determining the first terminal according to the data acquisition information is When empty, candidate site table is obtained;The candidate site table is sent to the first terminal;The candidate site table is for triggering institute It states first terminal and corresponding communication data is returned to according to the candidate site table.
In one embodiment, it is also performed the steps of when computer program is executed by processor and judges local terminal storage Whether address table is empty;If it is not, being sent to the first terminal for the address table stored as candidate site table.
In one embodiment, it also performs the steps of when computer program is executed by processor if so, to second terminal Send address table acquisition request;The address table acquisition request is for triggering second terminal return address table;Eventually by second The address table that end returns is sent to the first terminal as candidate site table.
In one embodiment, if also performed the steps of when computer program is executed by processor do not receive it is described The address table that second terminal returns, terminates this data communication.
In one embodiment, it also performs the steps of when computer program is executed by processor when according to the data When acquisition information determines that the address table of the first terminal is non-empty, the first terminal is determined according to the data acquisition information The communication data of transmission;The communication data is sent to the second terminal.
In one embodiment, it also performs the steps of when computer program is executed by processor through wireless GPRS mould Block sends address table acquisition request to cloud server.
In one embodiment, it also performs the steps of when computer program is executed by processor and is connect by RS485 interface Receive the data acquisition information that elevator main control board is sent.
It will appreciated by the skilled person that realizing all or part of the process in above-described embodiment method, being can It is completed with instructing relevant hardware by computer program, the program can be stored in a computer-readable storage and be situated between In matter, sells or use as independent product.The more specific example (non-exhaustive list) of computer-readable medium includes Below: there is the electrical connection section (electronic device) of one or more wirings, portable computer diskette box (magnetic device), arbitrary access Memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), optical fiber dress It sets and portable optic disk read-only storage (CDROM).In addition, computer-readable medium, which can even is that, to be printed on it The paper of described program or other suitable media, because can be for example by carrying out optical scanner to paper or other media, then It edited, interpreted or is handled when necessary with other suitable methods electronically to obtain described program, then by it Storage is in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
The term " includes " of the embodiment of the present invention and " having " and their any deformations, it is intended that cover non-exclusive Include.Such as contain series of steps or the process, method, system, product or equipment of (module) unit are not limited to The step of listing or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these The intrinsic other step or units of process, method, product or equipment.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, should not be understood as to the invention patent range Limitation.It should be pointed out that for those of ordinary skill in the art, without departing from the inventive concept of the premise, Various modifications and improvements can be made, and these are all within the scope of protection of the present invention.Therefore, the scope of protection of the patent of the present invention It should be determined by the appended claims.

Claims (10)

1. a kind of data communication method, which comprises the following steps:
Receive the data acquisition information that first terminal is sent;The data acquisition information is obtained by first terminal according to address table;
When it is empty for determining the address table of the first terminal according to the data acquisition information, candidate site table is obtained;
The candidate site table is sent to the first terminal;The candidate site table is for triggering the first terminal according to institute It states candidate site table and returns to corresponding communication data.
2. data communication method according to claim 1, which is characterized in that described to send the time to the first terminal The step of selecting address table, comprising:
Whether the address table for judging local terminal storage is empty;
If it is not, being sent to the first terminal for the address table stored as candidate site table.
3. data communication method according to claim 2, which is characterized in that whether the address table for judging local terminal storage After empty step, further includes:
If so, sending address table acquisition request to second terminal;The address table acquisition request is for triggering the second terminal Return address table;
The address table that second terminal returns is sent to the first terminal as candidate site table.
4. data communication method according to claim 2, which is characterized in that described to send address table acquisition to second terminal After the step of request, further includes:
If not receiving the address table that the second terminal returns, terminate this data communication.
5. data communication method according to claim 3, which is characterized in that the data for receiving first terminal transmission obtain Win the confidence breath the step of after, further includes:
When the address table for determining the first terminal according to the data acquisition information is non-empty, believed according to the data acquisition Breath determines the communication data that the first terminal is sent;
The communication data is sent to the second terminal.
6. data communication method according to claim 3, which is characterized in that the second terminal is cloud server;
Described the step of sending address table acquisition request to second terminal, comprising:
Address table acquisition request is sent to cloud server by wireless GPRS module.
7. data communication method according to any one of claims 1 to 6, which is characterized in that the first terminal is elevator Master control borad;
Described the step of receiving the data acquisition information that first terminal is sent, comprising:
The data acquisition information sent by RS485 interface elevator main control board.
8. a kind of data communication apparatus characterized by comprising
Request sending module, for receiving the data acquisition information of first terminal transmission;The data acquisition information is whole by first End is obtained according to address table;
Address table obtains module, for when it is empty for determining the address table of the first terminal according to the data acquisition information, Obtain candidate site table;
And address table sending module, for sending the candidate site table to the first terminal;The candidate site table is used Corresponding communication data is returned to according to the candidate site table in triggering the first terminal.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor is realized described in any one of claim 1 to 7 when executing the computer program Method the step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of claim 1 to 7 described in any item methods are realized when being executed by processor.
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 true CN109246203A (en) 2019-01-18
CN109246203B 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090135816A1 (en) * 2007-11-28 2009-05-28 Thyagarajan Nandagopal Method and apparatus for assigning ip addresses
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090135816A1 (en) * 2007-11-28 2009-05-28 Thyagarajan Nandagopal Method and apparatus for assigning ip addresses
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
CN109246203B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN103294047B (en) For diagnosing the method and system of vehicle
CN108345543B (en) Data processing method, device, equipment and storage medium
CN108228305A (en) Display methods, device, storage medium and the electronic equipment of five application page
CN112350872B (en) Network architecture configuration information generation method and device, storage medium and electronic equipment
CN108038112A (en) Document handling method, mobile terminal and computer-readable recording medium
CN108055320A (en) Processing method, terminal device and the computer readable storage medium of resource downloading
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN108280099A (en) Data dictionary management method, apparatus and server
CN109460003A (en) Vehicle trouble predicts modeling method and system
CN107889183A (en) Data transmission method and device
CN108932057A (en) Method of controlling operation thereof, device, storage medium and electronic equipment
WO2013032937A1 (en) Host computing devices control component status display
CN109428839A (en) A kind of CDN dispatching method, equipment and system
CN110223615B (en) Advertisement display control method, device, medium and advertisement push server
CN109818994A (en) Information processing method and device for agent side
CN107624211A (en) Charging method and device
CN108733440A (en) interface icon configuration method, device and terminal device
CN117371936A (en) Auxiliary billing method, system and equipment for overhaul work ticket of transformer substation
CN110309462B (en) Data display method and system
CN109246203A (en) Data communication method, device, computer equipment and storage medium
CN117971397B (en) Model processing method, device, terminal equipment and storage medium
CN107679222A (en) Image processing method, mobile terminal and computer-readable recording medium
CN109413714B (en) User agent information processing method, device, storage medium and terminal
CN104951325B (en) A kind of information display method and electronic equipment
CN116205744A (en) Linkage recommendation display system, device and method

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