CN109120731A - A kind of universal means of communication, system and device - Google Patents
A kind of universal means of communication, system and device Download PDFInfo
- Publication number
- CN109120731A CN109120731A CN201810786360.7A CN201810786360A CN109120731A CN 109120731 A CN109120731 A CN 109120731A CN 201810786360 A CN201810786360 A CN 201810786360A CN 109120731 A CN109120731 A CN 109120731A
- Authority
- CN
- China
- Prior art keywords
- address
- host computer
- communication
- computer
- data
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
Abstract
The invention discloses a kind of universal means of communication, system and device, method includes configuring to the address of host computer, and the address of the host computer includes the address of all required slave computers communicated;Host computer passes through the slave computer with the address and required communication that postpone and carries out data interaction.The present invention passes through the configuration to host computer progress address, to realize freely configuring for address interface, host computer is allowed to match multiple slave computers, it realizes and the identical slave computer versatility of required function control logic is controlled, effectively increase the flexibility of communication, and host computer resource can be maximally utilized, communication slave computer is matched for host computer automatic identification and provides possibility.It the composite can be widely applied in communication field.
Description
Technical field
The present invention relates to communication technique field more particularly to a kind of universal means of communication, system and device.
Background technique
It needs to be used for data exchange according to communication rule setting communications protocol when host computer and slave computer interactive controlling, it is specific
Communications protocol control is stablized, but needs to match multiple slave computers for versatility host computer, and single communications protocol cannot fit
For different slave computers, more set communications protocol versatilities are also limited.
Summary of the invention
In order to solve the above-mentioned technical problem, the object of the present invention is to provide a kind of universal communication sides that can improve versatility
Method, system and device.
The technical solution used in the present invention is:
A kind of universal means of communication, comprising the following steps:
The address of host computer is configured, the address of the host computer includes all required bottoms communicated
The address of machine;
Host computer passes through the slave computer with the address and required communication that postpone and carries out data interaction.
As a kind of further improvement of universal means of communication, the host computer passes through with the communication postponed
The slave computer of address and required communication carries out data interaction, the step for specifically include:
Host computer passes through the corresponding character rope of the data after the address extraction data of the slave computer of required communication
Invite out corresponding intermediate variable in host computer;
Intermediate variable is detected in the practical address of host computer, and makes the slave computer of practical address Yu required communication
Address it is consistent;
The data of the address for the slave computer that host computer communicates needed for taking out carry out data processing, and then to required function
The identical slave computer of control logic carries out versatility control.
As a kind of further improvement of universal means of communication, the host computer is from the bottom of required communication
After the address of machine extracts data, and corresponding centre in host computer is obtained by the corresponding character index of the data
Variable, the step for specifically:
Host computer passes through the corresponding character rope of the data after the address extraction data of the slave computer of required communication
Invite out in host computer the intermediate variable of the identical character of title therewith.
Another technical solution of the present invention is:
A kind of universal communication system, comprising the following steps:
Configuration unit is configured for the address to host computer, and the address of the host computer includes all
The address of the slave computer of required communication;
Data interaction unit passes through the slave computer with the address and required communication that postpone for host computer and carries out data
Interaction.
As a kind of further improvement of universal communication system, the data interaction unit is specifically included:
Data extracting unit for host computer after the address extraction data of the slave computer of required communication, and passes through
The corresponding character index of the data obtains corresponding intermediate variable in host computer;
Address detection unit for detecting intermediate variable in the practical address of host computer, and makes practical address
It is consistent with the address of the slave computer of required communication;
The data of data processing unit, the address of the slave computer communicated needed for taking out for host computer carry out at data
Reason, and then versatility control is carried out to the identical slave computer of required function control logic.
As a kind of further improvement of universal communication system, the data extracting unit specifically:
Host computer passes through the corresponding character rope of the data after the address extraction data of the slave computer of required communication
Invite out in host computer the intermediate variable of the identical character of title therewith.
Another technical solution of the present invention is:
A kind of universal communication device, comprising:
Memory, for storing program;
Processor, for executing described program, described program makes the processor execute the universal communication side
Method.
Another technical solution of the present invention is:
A kind of terminal device, comprising: processor, memory and transceiver, the memory for storing instruction, the receipts
Device to be sent out to communicate for the terminal device and other equipment, the processor is used to execute the instruction stored in the memory,
So that the terminal device carries out the operation of described in any item methods.
Another technical solution of the present invention is:
A kind of computer readable storage medium, the computer-readable recording medium storage have instruction, when described instruction quilt
When execution, so that terminal device executes the operation of described in any item methods.
The beneficial effects of the present invention are:
A kind of versatility means of communication of the present invention, system and device by carrying out the configuration of address to host computer, from
And realize freely configuring for address interface, allow host computer to match multiple slave computers, realizes and required function is controlled
The identical slave computer versatility control of logic, effectively increases the flexibility of communication, and can maximally utilize host computer money
Source matches communication slave computer for host computer automatic identification and provides possibility.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the versatility means of communication of the present invention;
Fig. 2 is a kind of block diagram of versatility communication system of the present invention.
Specific embodiment
Specific embodiments of the present invention will be further explained with reference to the accompanying drawing:
With reference to Fig. 1, a kind of universal means of communication of the present invention, comprising the following steps:
The address of host computer is configured, the address of the host computer includes all required bottoms communicated
The address of machine;
Host computer passes through the slave computer with the address and required communication that postpone and carries out data interaction.
In the embodiment of the present invention, in address configuration, the address of slave computer is matched needed for described all in 1-5000 model
In enclosing, host computer is according to ModBus communications protocol, the communication of configuration address 1-5000, in this way hypothesis slave computer A address
200-2100, slave computer B address be 500-3100, slave computer C address be 4000-4900, can realize with it is upper
The communication of position machine.Before developing versatility communication interface system, first counts and need matched slave computer address range,
Reserved planning is carried out on the basis of this address, the slave computer developed below all formulates communications protocol within this range.
It is further used as preferred embodiment, the host computer passes through with the address and required communication postponed
Slave computer carry out data interaction, the step for specifically include:
Host computer passes through the corresponding character rope of the data after the address extraction data of the slave computer of required communication
Invite out corresponding intermediate variable in host computer;
Intermediate variable is detected in the practical address of host computer, and makes the slave computer of practical address Yu required communication
Address it is consistent;
The data of the address for the slave computer that host computer communicates needed for taking out carry out data processing, and then to required function
The identical slave computer of control logic carries out versatility control.
It is further used as preferred embodiment, the host computer is extracted from the address of the slave computer of required communication
After data, and corresponding intermediate variable in host computer is obtained by the corresponding character index of the data, the step for have
Body are as follows:
Host computer passes through the corresponding character rope of the data after the address extraction data of the slave computer of required communication
Invite out in host computer the intermediate variable of the identical character of title therewith.
In the embodiment of the present invention, host computer address configures 1-5000, some slave computer address is 3000-
3008.Data exchange is carried out in address 3000-3008 by ModBus communications protocol host computer and slave computer.Such as it configures
The configuration name of address 3000 is " inflow temperature ", and host computer exchanges inflow temperature data by address 3000 with slave computer, on
Position machine is posted by the intermediate variable taking-up address that is corresponding to it of " inflow temperature " character index identical character of title therewith
The data of storage are used for host computer " inflow temperature " data processing.If another 3000 corresponding data of slave computer address is
When " room temperature ", it need to only change the place that host computer can be realized to room temperature for " room temperature " in 3000 configuration name
Reason.Similarly other addresses can all be realized the configuration of versatility communication interface by this principle.
With reference to Fig. 2, a kind of universal communication system of the present invention, comprising the following steps:
Configuration unit is configured for the address to host computer, and the address of the host computer includes all
The address of the slave computer of required communication;
Data interaction unit passes through the slave computer with the address and required communication that postpone for host computer and carries out data
Interaction.
It is further used as preferred embodiment, the data interaction unit specifically includes:
Data extracting unit for host computer after the address extraction data of the slave computer of required communication, and passes through
The corresponding character index of the data obtains corresponding intermediate variable in host computer;
Address detection unit for detecting intermediate variable in the practical address of host computer, and makes practical address
It is consistent with the address of the slave computer of required communication;
The data of data processing unit, the address of the slave computer communicated needed for taking out for host computer carry out at data
Reason, and then versatility control is carried out to the identical slave computer of required function control logic.
It is further used as preferred embodiment, the data extracting unit specifically:
Host computer passes through the corresponding character rope of the data after the address extraction data of the slave computer of required communication
Invite out in host computer the intermediate variable of the identical character of title therewith.
A kind of universal communication device of the present invention, comprising:
Memory, for storing program;
Processor, for executing described program, described program makes the processor execute the universal communication side
Method.
A kind of terminal device of the present invention, comprising: processor, memory and transceiver, the memory for storing instruction,
The transceiver is communicated for the terminal device and other equipment, and the processor is used to executing to be stored in the memory
Instruction, so that the terminal device carries out the operation of the method.
A kind of computer readable storage medium of the present invention, the computer-readable recording medium storage has instruction, when described
Instruction is performed, so that terminal device executes the operation of described in any item methods.
From the foregoing it can be that the present invention by host computer carry out address configuration, to realize address
Interface freely configures, and host computer is allowed to match multiple slave computers, realizes to the identical bottom of required function control logic
The control of machine versatility, effectively increases the flexibility of communication, and can maximally utilize host computer resource, is that host computer is automatic
Identification matching communication slave computer provides possibility.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation above
Example, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replace
It changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.
Claims (9)
1. a kind of universal means of communication, which comprises the following steps:
The address of host computer is configured, the address of the host computer includes all required slave computers communicated
Address;
Host computer passes through the slave computer with the address and required communication that postpone and carries out data interaction.
2. a kind of universal means of communication according to claim 1, it is characterised in that: the host computer, which passes through to match, to be postponed
Address and required communication slave computer carry out data interaction, the step for specifically include:
Host computer is obtained after the address extraction data of the slave computer of required communication by the corresponding character index of the data
Intermediate variable corresponding in host computer out;
Intermediate variable is detected in the practical address of host computer, and make practical address and required communication slave computer it is logical
It is consistent to interrogate address;
The data of the address for the slave computer that host computer communicates needed for taking out carry out data processing, and then control required function
The identical slave computer of logic carries out versatility control.
3. a kind of universal means of communication according to claim 1, it is characterised in that: the host computer is from required communication
Slave computer address extract data after, and obtained by the corresponding character index of the data corresponding in host computer
Intermediate variable, the step for specifically:
Host computer is obtained after the address extraction data of the slave computer of required communication by the corresponding character index of the data
The intermediate variable of the identical character of title therewith in host computer out.
4. a kind of universal communication system, which comprises the following steps:
Configuration unit is configured for the address to host computer, needed for the address of the host computer includes all
The address of the slave computer of communication;
Data interaction unit passes through the slave computer with the address and required communication that postpone for host computer and carries out data friendship
Mutually.
5. a kind of universal communication system according to claim 4, it is characterised in that: the data interaction unit is specific
Include:
Data extracting unit for host computer after the address extraction data of the slave computer of required communication, and passes through the number
Corresponding intermediate variable in host computer is obtained according to corresponding character index;
Address detection unit for detecting intermediate variable in the practical address of host computer, and makes practical address and institute
The address for the slave computer that need to be communicated is consistent;
The data of data processing unit, the address of the slave computer communicated needed for taking out for host computer carry out data processing,
And then versatility control is carried out to the identical slave computer of required function control logic.
6. a kind of universal communication system according to claim 4, it is characterised in that: the data extracting unit is specific
Are as follows:
Host computer is obtained after the address extraction data of the slave computer of required communication by the corresponding character index of the data
The intermediate variable of the identical character of title therewith in host computer out.
7. a kind of universal communication device characterized by comprising
Memory, for storing program;
Processor, for executing described program, described program executes the processor such as any one of claims 1 to 3 institute
The universal means of communication stated.
8. a kind of terminal device characterized by comprising processor, memory and transceiver, the memory refer to for storing
It enables, the transceiver is communicated for the terminal device and other equipment, and the processor is deposited in the memory for executing
The instruction of storage, so that the terminal device carries out the operation of method as claimed in any one of claims 1 to 3.
9. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has instruction, works as institute
It states instruction to be performed, so that terminal device executes the operation of method as claimed in any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810786360.7A CN109120731B (en) | 2018-07-17 | 2018-07-17 | Universal communication method, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810786360.7A CN109120731B (en) | 2018-07-17 | 2018-07-17 | Universal communication method, system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109120731A true CN109120731A (en) | 2019-01-01 |
CN109120731B CN109120731B (en) | 2021-10-26 |
Family
ID=64862878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810786360.7A Active CN109120731B (en) | 2018-07-17 | 2018-07-17 | Universal communication method, system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109120731B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113130261A (en) * | 2020-01-16 | 2021-07-16 | 上海正泰智能科技有限公司 | Circuit breaker, and circuit breaker communication address configuration method and system |
CN114500267A (en) * | 2022-01-14 | 2022-05-13 | 深圳市汇川技术股份有限公司 | Mapping relation configuration method, device, system, equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831714A (en) * | 2012-07-31 | 2012-12-19 | 华立仪表集团股份有限公司 | Multi-protocol type power collection system, data exchange method of multi-protocol type power collection system and off-line power selling system |
CN105610876A (en) * | 2016-04-01 | 2016-05-25 | 江苏科技大学 | Industrial control type automatic network communication protocol converter and communication protocol conversion method |
CN106713142A (en) * | 2015-11-17 | 2017-05-24 | 陕西重型汽车有限公司 | Method for transmitting IP message on CAN bus and IP local area network (LAN) built by using CAN bus network |
CN107966984A (en) * | 2017-10-16 | 2018-04-27 | 太仓爱森思电子电器有限公司 | A kind of sweeping robot control system and communications protocol |
-
2018
- 2018-07-17 CN CN201810786360.7A patent/CN109120731B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831714A (en) * | 2012-07-31 | 2012-12-19 | 华立仪表集团股份有限公司 | Multi-protocol type power collection system, data exchange method of multi-protocol type power collection system and off-line power selling system |
CN106713142A (en) * | 2015-11-17 | 2017-05-24 | 陕西重型汽车有限公司 | Method for transmitting IP message on CAN bus and IP local area network (LAN) built by using CAN bus network |
CN105610876A (en) * | 2016-04-01 | 2016-05-25 | 江苏科技大学 | Industrial control type automatic network communication protocol converter and communication protocol conversion method |
CN107966984A (en) * | 2017-10-16 | 2018-04-27 | 太仓爱森思电子电器有限公司 | A kind of sweeping robot control system and communications protocol |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113130261A (en) * | 2020-01-16 | 2021-07-16 | 上海正泰智能科技有限公司 | Circuit breaker, and circuit breaker communication address configuration method and system |
CN114500267A (en) * | 2022-01-14 | 2022-05-13 | 深圳市汇川技术股份有限公司 | Mapping relation configuration method, device, system, equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109120731B (en) | 2021-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104471537B (en) | Intermediary's virtual machine task management | |
CN108833237A (en) | Intelligent domestic gateway and its management-control method | |
CN104346229B (en) | A kind of processing method for the optimization of embedded OS Inter-Process Communication | |
CN102648455B (en) | Server and stream control routine | |
CN109076028A (en) | Heterogeneous software defines the differential section in network environment | |
CN103500191B (en) | Flow table configuration, query and table item deleting method and device | |
CN105446793A (en) | Method and device for migrating virtual assets | |
CN105704188B (en) | Using the dispositions method and device with service | |
CN106383736B (en) | Ports-Extending method and apparatus | |
CN104216761B (en) | It is a kind of that the method for sharing equipment is used in the device that can run two kinds of operating system | |
US9407331B2 (en) | NFC device with configurable notifications | |
CN108351859A (en) | Direct memory access (DMA) for endpoint device | |
CN106155264B (en) | Manage the computer approach and computer system of the power consumption of storage subsystem | |
CN110377590A (en) | Data collection system, method and computer readable storage medium based on Internet of Things | |
CN109656608A (en) | A kind of MCU firmware upgrade method and its relevant device | |
CN103795622A (en) | Message forwarding method and device using same | |
CN107071036A (en) | A kind of method, the webserver and system for downloading driving file | |
CN109120731A (en) | A kind of universal means of communication, system and device | |
CN102413183B (en) | Cloud intelligence switch and processing method and system thereof | |
CN106506302A (en) | Support the communicator of dynamic MODBUS agreements mapping | |
CN104915302B (en) | Data transmission processing method and data link | |
CN106815128A (en) | Log-output method and device, electronic equipment | |
CN106878052A (en) | A kind of customer shift method and device | |
CN109587255A (en) | Service building method, system and the storage medium of dependence graph | |
CN109088956A (en) | IPv6 address approach and device are generated based on the information of Item Information or people |
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 |