CN112188549A - Communication method, communication module and communication system - Google Patents

Communication method, communication module and communication system Download PDF

Info

Publication number
CN112188549A
CN112188549A CN202011024958.6A CN202011024958A CN112188549A CN 112188549 A CN112188549 A CN 112188549A CN 202011024958 A CN202011024958 A CN 202011024958A CN 112188549 A CN112188549 A CN 112188549A
Authority
CN
China
Prior art keywords
communication
communication module
module
server
modules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011024958.6A
Other languages
Chinese (zh)
Inventor
高兴
牟桂贤
康宇涛
莫飞凡
魏赫轩
裘文波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011024958.6A priority Critical patent/CN112188549A/en
Publication of CN112188549A publication Critical patent/CN112188549A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a communication method, a communication module and a communication system. Wherein, the method comprises the following steps: determining a master communication module in at least two communication modules, and taking other communication modules except the master communication module as slave communication modules; and data transmission is carried out between the main communication module and the server, wherein the communication modules can communicate with each other, and the slave communication module does not directly communicate with the server. According to the invention, the master-slave mode of the communication module is dynamically switched, the master communication module is accessed into the server and directly performs data transmission with the server, and the slave communication module indirectly transmits data through the master communication module, so that a large number of communication modules are prevented from being simultaneously accessed into the server, the pressure of the server for concurrently processing data is reduced, and meanwhile, because the communication between the slave communication module and the master communication module does not need to pass through a base station, signal congestion caused by the fact that a large number of communication modules are simultaneously accessed into the same base station is avoided, and the real-time performance of data is ensured.

Description

Communication method, communication module and communication system
Technical Field
The invention relates to the technical field of communication, in particular to a communication method, a communication module and a communication system.
Background
At present, data transmission between a bottom layer device (such as a detection device) and a server is generally realized through a communication module (such as a mobile communication module), referring to fig. 1, each communication module 20 is directly connected to the server 10, and data collected by the bottom layer device 30 governed by itself is directly sent to the server, when a plurality of communication modules coexist in the same area, the server needs to concurrently process access of the communication modules, the load pressure of the server is higher, and when the number of the accessed communication modules is too large, the communication modules are simultaneously accessed to the same base station, so that signal congestion is easily caused, the transmission rate is slowed, and the real-time performance of data is reduced.
Disclosure of Invention
Embodiments of the present invention provide a communication method, a communication module, and a communication system, so as to at least solve the problems in the prior art that a large number of communication modules simultaneously access the same server and base station, which results in large server pressure and reduced data real-time performance.
To solve the above technical problem, an embodiment of the present invention provides a communication method, including:
determining a master communication module in at least two communication modules, and taking other communication modules except the master communication module as slave communication modules;
and data transmission is carried out between the main communication module and the server, wherein the communication modules can communicate with each other, and the slave communication module does not directly communicate with the server.
Optionally, determining the master communication module in the at least two communication modules includes:
acquiring communication conditions between each communication module and the server according to a preset period;
and determining a communication module with a communication condition meeting a preset condition as the main communication module.
Optionally, the communication condition includes at least one of: signal strength, bit error rate, and transmission speed.
Optionally, if the communication condition is signal strength and the signal strength of the communication between all the communication modules and the server is smaller than a preset threshold, at least two main communication modules are selected according to the signal strength.
Optionally, determining a master communication module among the at least two communication modules, and using other communication modules except the master communication module as slave communication modules, includes: for each area, determining a main communication module of the area from at least two communication modules of the area, and taking other communication modules except the main communication module in the area as slave communication modules of the area.
Optionally, after the determining the main communication module in the at least two communication modules, the method further includes: and each slave communication module closes a communication channel between the slave communication module and the server.
Optionally, the data transmission is performed between the main communication module and the server, and the method includes: the master communication module acquires first data from any slave communication module; and the main communication module uploads the first data to the server.
Optionally, the data transmission is performed between the main communication module and the server, and the method includes:
the main communication module receives second data issued by the server;
the main communication module extracts a target module identifier from the second data;
if the target module identification does not belong to the master communication module, the master communication module judges whether the target module identification belongs to a slave communication module which can be communicated with the master communication module;
and if the target module identification belongs to a slave communication module which can be communicated with the master communication module, the master communication module issues the second data to the slave communication module corresponding to the target module identification.
Optionally, after the determining the main communication module in the at least two communication modules, the method further includes: and the master communication module acquires the module identification of each slave communication module, caches the module identification of each slave communication module, and reports the module identification of each slave communication module to the server.
Optionally, the main communication module communicates with the server in a wireless communication manner; the communication modules are connected and communicated through a bus, and/or the communication modules are communicated in a wireless communication mode.
Optionally, the bus includes a power line and a data line, the power line is used for supplying power to the accessed communication modules, and the data line is used for transmitting data between the accessed communication modules.
An embodiment of the present invention further provides a communication module, including:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a main communication module in at least two communication modules and taking other communication modules except the main communication module as slave communication modules;
and the transmission unit is used for carrying out data transmission with the server through the main communication module, wherein the communication modules can be communicated with each other, and the slave communication module is not directly communicated with the server.
An embodiment of the present invention further provides a communication system, including: the system comprises a server, at least two communication modules and at least two devices, wherein each communication module is correspondingly connected with at least one device; at least one of the at least two communication modules is used as a main communication module, and other communication modules except the main communication module are used as slave communication modules; the communication module is the communication module provided by the embodiment of the invention.
Optionally, the main communication module communicates with the server in a wireless communication manner; the communication modules are connected and communicated through a bus, and/or the communication modules are communicated in a wireless communication mode.
Optionally, the bus includes a power line and a data line, the power line is used for supplying power to the accessed communication modules, and the data line is used for transmitting data between the accessed communication modules.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the communication method according to the embodiments of the present invention.
By applying the technical scheme of the invention, the main communication module is determined in at least two communication modules, other communication modules except the main communication module are used as slave communication modules, and then data transmission is carried out between the main communication module and the server, wherein the communication modules can be communicated with each other, and the slave communication module is not directly communicated with the server. Through the master-slave mode of the dynamic switching communication module, the master communication module is connected into the server, data transmission is directly carried out with the server, the slave communication module indirectly transmits data through the master communication module, a large number of communication modules are prevented from being connected into the server at the same time, the pressure of concurrent data processing of the server is reduced, meanwhile, due to the fact that the slave communication module and the master communication module are not required to pass through a base station, the situation that a large number of communication modules are connected into the same base station at the same time to cause signal congestion is avoided, and data real-time performance is guaranteed.
Drawings
FIG. 1 is a schematic diagram of a prior art communication system;
fig. 2 is a flowchart of a communication method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a bus according to an embodiment of the present invention;
fig. 4 is a block diagram of a communication module according to a second embodiment of the present invention;
fig. 5A and 5B are schematic diagrams of a communication system according to a third embodiment of the present invention;
fig. 6 is a schematic connection diagram of a communication module according to a fourth embodiment of the present invention;
fig. 7 is a flowchart illustrating a communication method according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Example one
The embodiment provides a communication method, which can solve the problems that in the prior art, a large number of communication modules simultaneously access the same server and a base station, so that the server pressure is large and the data real-time performance is reduced.
Fig. 2 is a flowchart of a communication method according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
s201, determining a main communication module in at least two communication modules, and taking other communication modules except the main communication module as slave communication modules.
S202, data transmission is carried out between the main communication module and the server, wherein the communication modules can communicate with each other, and the auxiliary communication module does not directly communicate with the server. Namely, the main communication module is accessed to the server, and the slave communication module is not accessed to the server.
The communication modules are identical in structure, can serve as a master communication module and a slave communication module, are different in identity and different in executed operation. All the communication modules have a server communication function, and can specifically communicate with the server in a wireless communication mode, however, only the master communication module directly communicates with the server (namely, the master communication module opens the server communication function and accesses the server), and the slave communication module does not directly communicate with the server (namely, the slave communication module closes the server communication function and does not access the server). The communication modules can communicate with each other. That is, each communication module has a function of communicating with the server and also has a function of communicating with other communication modules, the main communication module starts the server communication function, and the slave communication module closes the server communication function; whether the slave communication module is used as the master communication module or the slave communication module, the communication function with other communication modules is kept to be normally used, so that the slave communication module can indirectly realize data transmission with the server through the master communication module. It is understood that each communication module can switch its operation mode (or identity), i.e. switch to the master communication module or switch to the slave communication module.
In this embodiment, a master communication module is determined among at least two communication modules, and other communication modules except the master communication module are used as slave communication modules, and then data transmission is performed between the master communication module and a server, wherein the communication modules can communicate with each other, and the slave communication modules do not communicate with the server directly. Through the master-slave mode of the dynamic switching communication module, the master communication module is connected into the server, data transmission is directly carried out with the server, the slave communication module indirectly transmits data through the master communication module, a large number of communication modules are prevented from being connected into the server at the same time, the pressure of concurrent data processing of the server is reduced, meanwhile, due to the fact that the slave communication module and the master communication module are not required to pass through a base station, the situation that a large number of communication modules are connected into the same base station at the same time to cause signal congestion is avoided, and data real-time performance is guaranteed.
The communication modules are connected and communicated through a bus, and/or the communication modules are communicated in a wireless communication mode. Specifically, the communication through the bus connection means that each communication module is connected to the same bus. The wireless communication mode can be realized through a local area network. If the communication modules have the two connection modes, one mode can be selected for use in the actual data transmission process, for example, if the wireless communication signal strength is poor, the wired mode is used for transmitting data between the communication modules.
Illustratively, if the communication modules are connected and communicated through a bus, each communication module comprises a first communication unit communicated with the server, and each communication module is connected to the bus; if the communication modules communicate with each other in a wireless communication mode, each communication module comprises a first communication unit for communicating with the server and a second communication unit for communicating with other communication modules, and the first communication unit and the second communication unit can be in a wireless communication mode. The first communication unit is used only in the case where the communication module is a main communication module.
The bus may be a cable that can be powered, and referring to fig. 3, the bus includes power lines and data lines, the two power lines being positive and negative, respectively, and the two data lines being used for receiving data and transmitting data, respectively. The power line is used for supplying power for the accessed communication modules, and the data line is used for transmitting data between the accessed communication modules. All communication modules are connected to the data line and the power line. The number and the position of the power interfaces can be determined according to factors such as wires, distances and the like, for example, one power interface can bear the power supply of the communication modules with the preset number in the preset distance, and then the specific power interface is determined according to the actual arrangement condition of the condition and the communication modules so as to provide power for the corresponding communication modules through the power interfaces and realize the power supply of the communication modules.
The connection and the communication between the communication modules are realized through the bus, signals are not easy to interfere and are more stable, so that the stability of data transmission is ensured, and meanwhile, the power can be supplied to the communication modules.
In one embodiment, the determining the main communication module according to the communication condition between each communication module and the server, specifically, the determining the main communication module in at least two communication modules includes: acquiring communication conditions between each communication module and the server according to a preset period; and determining a communication module with a communication condition meeting a preset condition as the main communication module.
Wherein, the communication condition may include at least one of the following: signal strength, bit error rate, transmission speed, etc. Corresponding to each specific communication condition, the preset condition may be: maximum signal strength, lowest bit error rate, and fastest transmission rate. If the main communication module is determined by combining at least two items of signal intensity, transmission speed and bit error rate, for example, the communication module is scored according to the signal intensity, the communication module is scored according to the transmission speed, and the communication module with the largest sum of the signal intensity score and the transmission speed score is selected as the main communication module.
According to the embodiment, the main communication module is selected according to the communication condition, so that the communication quality between the main communication module and the server can be guaranteed, the accurate, real-time and reliable data transmission between the equipment and the server is guaranteed, and the problems that in the prior art, each communication module transmits data by means of open electromagnetic waves, signal attenuation can occur in a severe application scene, and data are lost easily are solved.
Taking signal strength as an example, determining a master communication module among at least two communication modules includes: acquiring the signal intensity of communication between each communication module and the server according to a preset period; and determining the communication module with the maximum signal strength as the main communication module. The preset period is a time interval for switching the master module and the slave module, and may be set to 10 hours or 2 days, for example. Specifically, the signal strength of the communication module may be requested from the base station.
If the communication modules are connected and communicated through the bus, the communication modules send respective signal intensity acquired from the base station to the bus, so that each communication module can acquire the signal intensity of other communication modules, and the communication module with the maximum signal intensity is determined according to a preset rule to serve as a main communication module. For example, all the communication modules simultaneously perform signal strength comparison, and if the communication modules are determined to be the communication module with the maximum signal strength through comparison, the communication module is switched to the master communication module, and if the communication modules are determined not to be the communication module with the maximum signal strength through comparison, the communication module is switched to the slave communication module. If the other communication modules receive the decision result, if the main communication module is the main communication module, the main communication module is switched to the main communication module, and if the main communication module is not the main communication module, the main communication module is switched to the slave communication module. If the other communication module receives the decision result, the other communication module switches to the master communication module if the master communication module is the master communication module, and switches to the slave communication module if the master communication module is not the slave communication module.
If the communication modules communicate with each other in a wireless communication mode, the respective signal intensities can be transmitted according to a certain rule and the maximum signal intensity can be compared, the determination of the main communication module in the wireless communication mode is similar to that of the main communication module in the bus connection mode, but the information transmission mode among the communication modules is different. Illustratively, one communication module is pre-designated as a decision module, the other communication modules send the signal intensity of the communication module to the decision module, the decision module compares the communication module with the maximum signal intensity, and sends a decision result (including a module identifier of the master communication module) to the other communication modules, after the decision result is received by the other communication modules, if the master communication module is the master communication module, the master communication module is switched to the slave communication module, and if the master communication module is not the slave communication module, the slave communication module is switched to the master communication module.
Of course, the manner of determining the main communication module is not limited thereto, and any manner capable of determining the main communication module can be included in the scope of the present invention. Of course, the main communication module can be decided by a third party.
Taking the transmission speed as an example, determining a master communication module among at least two communication modules includes: acquiring the transmission speed between each communication module and the server according to a preset period; and determining the communication module with the highest transmission speed as the main communication module. Wherein, the transmission speed can be obtained by testing the test signal.
Taking the bit error rate as an example, determining a master communication module among at least two communication modules includes: acquiring error rates between each communication module and the server according to a preset period; and determining the communication module with the minimum error rate as the main communication module. The bit error rate can be obtained by testing a test signal.
The specific steps for determining the main communication module according to the transmission speed or the bit error rate are similar to the specific steps for determining the main communication module according to the signal strength, and will not be described in detail herein.
Considering that some areas are relatively lagged, the base stations are few, and the signal intensity of the communication modules is poor, at least two main communication modules can be arranged according to the communication condition, so that the communication quality is ensured. Specifically, if the communication condition is signal strength and the signal strengths of all the communication modules are smaller than a preset threshold, at least two main communication modules are selected according to the signal strength. In this case, the data uploading and sending may follow a principle of proximity, for example, the slave communication module uploads the data through the master communication module a closest to itself, and receives the data sent by the server through the master communication module a, so that when the data volume is large, the real-time performance of the data can be ensured.
After the master communication module is determined in the at least two communication modules, each slave communication module closes a communication channel between itself and the server, and specifically, can close a connection channel between the wireless communication module and the server. Therefore, the slave communication module can not directly communicate with the server, only the master communication module can directly communicate with the server, a large number of communication modules are prevented from being simultaneously accessed into the server, and the pressure of the server is relieved.
For uploading data to the server, specifically, data transmission is performed with the server through the main communication module, including: the master communication module acquires first data from any slave communication module; and the main communication module uploads the first data to the server.
The first data refers to data uploaded to the server, and the first data at least carries a module identifier of the communication module and can also carry an equipment identifier to represent a data source. And if the main communication module needs to upload data to the server, directly transmitting the first data carrying the module identifier of the main communication module to the server. If the slave communication module needs to upload data to the server, first data carrying the module identification of the slave communication module is sent to the master communication module through a bus or a wireless communication mode, and the master communication module uploads the first data to the server.
Therefore, the slave communication module uploads the data to the server through the master communication module, a large number of communication modules are prevented from being simultaneously accessed into the server, and the pressure of the server is relieved.
Specifically, for data issued by the server, the data transmission with the server through the main communication module includes: the main communication module receives second data issued by the server; the main communication module extracts a target module identifier from the second data; if the target module identification does not belong to the master communication module, the master communication module judges whether the target module identification belongs to a slave communication module which can be communicated with the master communication module; and if the target module identification belongs to a slave communication module which can be communicated with the master communication module, the master communication module issues the second data to the slave communication module corresponding to the target module identification.
The second data is data sent by the server, and the second data at least carries a target module identifier, and the target module identifier is used for indicating to which module the data is sent so as to indicate the destination of the data. If the target module identifier in the second data received by the master communication module belongs to the master communication module, the master communication module directly analyzes the second data to perform further processing, for example, sending the second data to a target device connected to the master communication module. If the target module identifier in the second data received by the main communication module does not belong to the main communication module, the main communication module needs to further judge whether the target module identifier belongs to a slave communication module capable of communicating with the main communication module itself, so as to determine whether the target module identifier needs to forward the second data, and if the target module identifier does not belong to a slave communication module capable of communicating with the main communication module itself, the main communication module returns error information to the server, so that the server can timely send the second data to a correct main communication module (such as a main communication module in other areas).
The second data may also carry a target device identifier. If the communication modules are connected and communicated through the bus, second data are acquired from the bus through the communication modules, and if the target module in the second data is identified as the target module, the second data are issued to corresponding target equipment according to the target equipment identification carried in the second data; and if the target module identification is not self, discarding the second data. If the communication modules communicate with each other in a wireless communication mode, the slave communication module receives second data sent by the master communication module, and sends the second data to corresponding target equipment according to a target equipment identifier carried in the second data
Through the steps, the data sent by the server are forwarded to the corresponding slave communication module by the master communication module, the data are guaranteed to be sent to the target equipment in time, a large number of communication modules are prevented from being simultaneously accessed into the server, and the pressure of the server is relieved.
In one embodiment, after determining the master communication module from among the at least two communication modules, the method may further include: and the master communication module acquires the module identification of each slave communication module, caches the module identification of each slave communication module, and reports the module identification of each slave communication module to the server. The module identifier is a unique identifier of the communication module, and is used for distinguishing different communication modules, and may be, for example, an MAC address. The slave communication module can send the module identification of the slave communication module to the master communication module through a bus or a wireless communication mode for caching.
In this embodiment, the master communication module caches the module identifier of each slave communication module, so that the master communication module knows which slave communication modules can communicate with the master communication module, and the master communication module reports the cached module identifier of each slave communication module to the server, so that the server knows the master-slave relationship of the communication modules, and the accuracy and reliability of subsequent server data transmission are facilitated.
In an alternative embodiment, the areas may be divided according to the building condition or data amount distribution of the area where the communication module is located, for example, a building is an area, or a garden is an area. Each area comprises at least two communication modules, and the communication modules in the same area can communicate with each other. Correspondingly, for each area, the main communication module of the area is determined in at least two communication modules of the area, and other communication modules except the main communication module in the area are used as the slave communication modules of the area.
The embodiment is convenient for managing and controlling the communication modules through region division, only the main communication modules in each region are in direct communication with the server, and a large number of communication modules are prevented from being simultaneously accessed into the server, so that the load pressure of the server can be relieved; meanwhile, communication between the slave communication modules in each area and the master communication module in the area does not need to pass through a base station, signal congestion caused by the fact that a large number of communication modules are simultaneously accessed into the same base station is avoided, and data real-time performance is guaranteed.
Example two
Based on the same inventive concept, the present embodiment provides a communication module, which can be used to implement the communication method described in the above embodiments. The communication module may be implemented by software and/or hardware.
Fig. 4 is a block diagram of a communication module according to a second embodiment of the present invention, and as shown in fig. 4, the communication module includes:
a determining unit 41 configured to determine a master communication module among the at least two communication modules, and use other communication modules except the master communication module as slave communication modules;
and a transmission unit 42, configured to perform data transmission with the server through the master communication module, where the communication modules can communicate with each other, and the slave communication module does not directly communicate with the server.
Optionally, the determining unit 41 includes:
the first obtaining subunit is configured to obtain, according to a preset period, communication conditions between the communication modules and the server;
and the determining subunit is used for determining a communication module with a communication condition meeting a preset condition as the main communication module.
Optionally, the communication condition includes at least one of: signal strength, bit error rate, and transmission speed.
Optionally, the determining subunit is further configured to: and if the communication condition is signal strength and the signal strength of the communication between all the communication modules and the server is smaller than a preset threshold value, selecting at least two main communication modules according to the signal strength.
Optionally, the determining unit 41 is specifically configured to: for each area, determining a main communication module of the area from at least two communication modules of the area, and taking other communication modules except the main communication module in the area as slave communication modules of the area.
Optionally, the communication module further includes: and the closing unit is used for closing a communication channel between the closing unit and the server under the condition that the closing unit is used as a slave communication module.
Optionally, the transmission unit 42 includes:
the second acquisition subunit is used for acquiring first data from any slave communication module under the condition of serving as the master communication module;
and the uploading subunit is used for uploading the first data to the server under the condition of serving as the main communication module.
Optionally, the transmission unit 42 includes:
the receiving subunit is used for receiving second data issued by the server under the condition of serving as a main communication module;
the extraction subunit is used for extracting the target module identification from the second data under the condition of serving as a main communication module;
a judging subunit, configured to, in a case where the target module identifier serves as a master communication module, judge whether the target module identifier belongs to a slave communication module that can communicate with the master communication module if the target module identifier does not belong to the master communication module;
and the issuing subunit is configured to issue the second data to the slave communication module corresponding to the target module identifier if the target module identifier belongs to a slave communication module that can communicate with the master communication module under the condition that the target module identifier serves as a master communication module.
Optionally, the communication module further includes: and the cache unit is used for acquiring the module identification of each slave communication module under the condition of serving as the master communication module, caching the module identification of each slave communication module, and reporting the module identification of each slave communication module to the server.
Optionally, the main communication module communicates with the server in a wireless communication manner; the communication modules are connected and communicated through a bus, and/or the communication modules are communicated in a wireless communication mode.
Optionally, the bus includes a power line and a data line, the power line is used for supplying power to the accessed communication modules, and the data line is used for transmitting data between the accessed communication modules.
The communication module can execute the communication method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
EXAMPLE III
The present embodiment provides a communication system, referring to fig. 5A, including: the system comprises a server 10, at least two communication modules 20 and at least two devices 30, wherein each communication module 20 is correspondingly connected with at least one device 30, each communication module 20 has a server communication function, and the communication modules 20 can communicate with each other. At least one of the at least two communication modules is used as a main communication module, and the other communication modules except the main communication module are used as slave communication modules. The main communication module directly transmits data with the server (namely, the server communication function is started), and the auxiliary communication module does not directly communicate with the server (namely, the server communication function is closed). The communication module 20 may be the communication module described in the second embodiment. The main communication module and the server can communicate in a wireless communication mode.
The communication system of this embodiment is through the master-slave mode of dynamic switching communication module, insert the main communication module to the server in, directly carry out data transmission with the server, from communication module comes indirect transmission data through main communication module, avoid a large amount of communication modules to insert the server simultaneously, the pressure of server concurrent processing data has been reduced, simultaneously because the communication between follow communication module and the main communication module need not to pass through the basic station, avoid a large amount of communication modules to insert same basic station simultaneously and lead to the signal to block up, data real-time has been guaranteed.
The communication modules are connected and communicated through a bus, and/or the communication modules are communicated in a wireless communication mode. Preferably, the bus comprises a power line and a data line, wherein the power line is used for supplying power to the accessed communication modules, and the data line is used for transmitting data between the accessed communication modules. The connection and the communication between the communication modules are realized through the bus, signals are not easy to interfere and are more stable, so that the stability of data transmission is ensured, and meanwhile, the power can be supplied to the communication modules.
In an alternative embodiment, the areas may be divided according to the building condition or data amount distribution of the area where the communication module is located, for example, a building is an area, or a garden is an area. Referring to fig. 5B, each zone includes at least two communication modules, and the communication modules in the same zone can communicate with each other. And aiming at each area, determining a main communication module of the area in at least two communication modules of the area, and taking other communication modules except the main communication module in the area as slave communication modules of the area.
The embodiment is convenient for managing and controlling the communication modules through region division, only the main communication modules in each region are in direct communication with the server, and a large number of communication modules are prevented from being simultaneously accessed into the server, so that the load pressure of the server can be relieved; meanwhile, communication between the slave communication modules in each area and the master communication module in the area does not need to pass through a base station, signal congestion caused by the fact that a large number of communication modules are simultaneously accessed into the same base station is avoided, and data real-time performance is guaranteed.
Example four
The communication method, the communication module and the communication system are described below with reference to an embodiment, however, it should be noted that the embodiment is only for better describing the present application and is not to be construed as limiting the present application. The same or corresponding terms as those of the above-described embodiments are explained, and the description of the present embodiment is omitted.
In this embodiment, the communication modules in the same area are connected by a wired manner, and the main communication module communicates with the server by a wireless manner. Referring to fig. 6, all communication modules within the same area communicate via a bus connection, for example, via the powerable cable connection shown in fig. 3, so that data can be transmitted between the communication modules. Each communication module is correspondingly connected with at least one device and is used for assisting in completing data uploading and issuing of the managed devices. The server communication function (in this embodiment, the wireless communication function) of the master communication module is turned on, the server communication function of the slave communication module is turned off, and the slave communication module uploads and issues data through the master communication module. That is, in the present embodiment, the communication module can switch between the wired mode (as the slave communication module) and the wireless mode (as the master communication module).
The engineers can perform region division according to the information of the building condition, the data amount distribution and the like, for example, one building is a region, one garden is a region and the like. And after the number and the positions of the communication modules required in each area are determined, the communication modules are connected into the interfaces of the power supply type cables and distributed inside the building. Then, the number and the position of the power interfaces are determined according to the wire, the distance and other factors, for example, 10 communication modules use the same power interface. Each communication module is connected with corresponding equipment, and the whole communication system can work after being connected with a power supply.
The specific flow of the communication method is shown in fig. 7:
s701, initializing states when all the same communication modules in each area are started, actively requesting a base station to acquire wireless signal strength by each communication module, reporting the signal strength to a bus, and comparing the signal strengths by each communication module.
S702, the communication module with the strongest signal intensity is automatically switched to be the main communication module, other communication modules are used as the auxiliary communication modules, the auxiliary communication modules close the channel for wireless communication with the server, and own module identification is uploaded to the bus. When the master and slave communication modules dynamically switch the communication modes, the data exchange between each communication module and the accessed equipment is not influenced.
The main communication module is connected with the server in a wireless communication mode for data exchange, and the auxiliary communication module is used for data transmission in a wired communication mode through the power supply type cable. When the communication system works normally, only one main communication module is connected to the server in each area, the slave communication modules report own module identifiers (which can be MAC addresses) to the bus, the main communication module caches the module identifiers of the slave communication modules and reports the module identifiers of the slave communication modules to the server, so that the subsequent server can issue data according to the reported module identifiers of the slave communication modules, the main communication module can judge whether the data sent by the server is directed to the slave communication modules in the area or not according to the cached module identifiers of the slave communication modules, and the slave communication modules in the area refer to slave communication modules capable of communicating with the main communication module.
And S703, the master communication module reports the data of the managed device or the data (carrying the module identifier of the slave communication module) to be uploaded by each slave communication module on the bus to the server through wireless communication.
And S704, the server receives and processes the data uploaded by the main communication module. And when the server needs to send data to communicate with each area, sending the data containing the module identification to the main communication module of the corresponding area.
S705, the master communication module detects that the module identifier carried in the data from the server does not belong to the master communication module, but belongs to the slave communication modules in the same area, and then the master communication module sends the data to the bus.
S706, the slave communication module acquires data from the bus, and if the module identifier in the data belongs to the slave communication module, the data is analyzed and sent to corresponding equipment. And if the module identification in the data does not belong to the slave communication module, discarding the data.
It should be noted that the data transmitted in the communication system carries the module identifier and the device identifier, so as to indicate which underlying device the data is directed to, and indicate through which communication module the data is assisted to be transmitted.
Each communication module in the same area reports the real-time signal intensity to the bus according to a certain period, each communication module timely and automatically switches the wireless (namely, as a master communication module) and wired (namely, as a slave communication module) data transmission modes according to the signal intensity, and when the signal intensities of all the communication modules in the area are weaker (namely, abnormal communication), for example, when fewer base stations are arranged in a laggard area, at least two master communication modules can be arranged in the same area to ensure the communication quality.
EXAMPLE five
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the communication method as described in the above embodiments.
EXAMPLE six
The present embodiment provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to implement the communication method according to the above embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (16)

1. A method of communication, comprising:
determining a master communication module in at least two communication modules, and taking other communication modules except the master communication module as slave communication modules;
and data transmission is carried out between the main communication module and the server, wherein the communication modules can communicate with each other, and the slave communication module does not directly communicate with the server.
2. The method of claim 1, wherein determining the primary communication module among the at least two communication modules comprises:
acquiring communication conditions between each communication module and the server according to a preset period;
and determining a communication module with a communication condition meeting a preset condition as the main communication module.
3. The method of claim 2, wherein the communication condition comprises at least one of: signal strength, bit error rate, and transmission speed.
4. The method of claim 3, wherein if the communication condition is signal strength and the signal strength of the communication between all the communication modules and the server is less than a predetermined threshold, selecting at least two main communication modules according to the signal strength.
5. The method of claim 1, wherein determining a master communication module among at least two communication modules and using the other communication modules except the master communication module as slave communication modules comprises:
for each area, determining a main communication module of the area from at least two communication modules of the area, and taking other communication modules except the main communication module in the area as slave communication modules of the area.
6. The method of claim 1, wherein after determining the primary communication module among the at least two communication modules, further comprising:
and each slave communication module closes a communication channel between the slave communication module and the server.
7. The method of claim 1, wherein the data transmission with the server via the primary communication module comprises:
the master communication module acquires first data from any slave communication module;
and the main communication module uploads the first data to the server.
8. The method of claim 1, wherein the data transmission with the server via the primary communication module comprises:
the main communication module receives second data issued by the server;
the main communication module extracts a target module identifier from the second data;
if the target module identification does not belong to the master communication module, the master communication module judges whether the target module identification belongs to a slave communication module which can be communicated with the master communication module;
and if the target module identification belongs to a slave communication module which can be communicated with the master communication module, the master communication module issues the second data to the slave communication module corresponding to the target module identification.
9. The method of claim 1, wherein after determining the primary communication module among the at least two communication modules, further comprising:
and the master communication module acquires the module identification of each slave communication module, caches the module identification of each slave communication module, and reports the module identification of each slave communication module to the server.
10. The method according to any one of claims 1 to 9, wherein the main communication module communicates with the server by wireless communication; the communication modules are connected and communicated through a bus, and/or the communication modules are communicated in a wireless communication mode.
11. The method of claim 10, wherein the bus includes a power line for powering the accessed communication modules and a data line for transmitting data between the accessed communication modules.
12. A communication module, comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a main communication module in at least two communication modules and taking other communication modules except the main communication module as slave communication modules;
and the transmission unit is used for carrying out data transmission with the server through the main communication module, wherein the communication modules can be communicated with each other, and the slave communication module is not directly communicated with the server.
13. A communication system, comprising: the system comprises a server, at least two communication modules and at least two devices, wherein each communication module is correspondingly connected with at least one device;
at least one of the at least two communication modules is used as a main communication module, and other communication modules except the main communication module are used as slave communication modules;
the communication module of claim 12.
14. The communication system of claim 13, wherein the main communication module communicates with the server in a wireless communication manner; the communication modules are connected and communicated through a bus, and/or the communication modules are communicated in a wireless communication mode.
15. The communication system of claim 14, wherein the bus comprises a power line for powering the accessed communication modules and a data line for transmitting data between the accessed communication modules.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the communication method according to any one of claims 1 to 11.
CN202011024958.6A 2020-09-25 2020-09-25 Communication method, communication module and communication system Pending CN112188549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011024958.6A CN112188549A (en) 2020-09-25 2020-09-25 Communication method, communication module and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011024958.6A CN112188549A (en) 2020-09-25 2020-09-25 Communication method, communication module and communication system

Publications (1)

Publication Number Publication Date
CN112188549A true CN112188549A (en) 2021-01-05

Family

ID=73944900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011024958.6A Pending CN112188549A (en) 2020-09-25 2020-09-25 Communication method, communication module and communication system

Country Status (1)

Country Link
CN (1) CN112188549A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459474A (en) * 2007-12-14 2009-06-17 希姆通信息技术(上海)有限公司 Wireless communication module test method
US20120088480A1 (en) * 2006-12-08 2012-04-12 Vivianne Gravel System and method for optimisation of media objects
CN102496260A (en) * 2011-11-23 2012-06-13 青岛乾程电子科技有限公司 Multiple communication technology type of method for electric power information acquisition control
CN103941651A (en) * 2013-01-19 2014-07-23 珠海格力电器股份有限公司 Intelligent household system based on Internet and control method
CN105472672A (en) * 2015-11-16 2016-04-06 苏州佳世达电通有限公司 Wireless communication control system, wireless communication control method and mobile device
CN105953366A (en) * 2016-05-17 2016-09-21 珠海格力电器股份有限公司 Air conditioner control method, server, air conditioner and air conditioner control system
CN106091249A (en) * 2016-06-13 2016-11-09 珠海格力电器股份有限公司 Electric heating control method and device for air conditioner compressor
EP3132819A1 (en) * 2014-04-18 2017-02-22 Yu, Weizhong Intelligently-analgesic infusion pump monitoring system and method
CN107148045A (en) * 2017-04-19 2017-09-08 珠海格力电器股份有限公司 Data transmission control method and device for remote monitoring system of air conditioning unit
WO2019063305A1 (en) * 2017-09-27 2019-04-04 Electrolux Appliances Aktiebolag Communication module for a household appliance

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120088480A1 (en) * 2006-12-08 2012-04-12 Vivianne Gravel System and method for optimisation of media objects
CN101459474A (en) * 2007-12-14 2009-06-17 希姆通信息技术(上海)有限公司 Wireless communication module test method
CN102496260A (en) * 2011-11-23 2012-06-13 青岛乾程电子科技有限公司 Multiple communication technology type of method for electric power information acquisition control
CN103941651A (en) * 2013-01-19 2014-07-23 珠海格力电器股份有限公司 Intelligent household system based on Internet and control method
EP3132819A1 (en) * 2014-04-18 2017-02-22 Yu, Weizhong Intelligently-analgesic infusion pump monitoring system and method
CN105472672A (en) * 2015-11-16 2016-04-06 苏州佳世达电通有限公司 Wireless communication control system, wireless communication control method and mobile device
CN105953366A (en) * 2016-05-17 2016-09-21 珠海格力电器股份有限公司 Air conditioner control method, server, air conditioner and air conditioner control system
CN106091249A (en) * 2016-06-13 2016-11-09 珠海格力电器股份有限公司 Electric heating control method and device for air conditioner compressor
CN107148045A (en) * 2017-04-19 2017-09-08 珠海格力电器股份有限公司 Data transmission control method and device for remote monitoring system of air conditioning unit
WO2019063305A1 (en) * 2017-09-27 2019-04-04 Electrolux Appliances Aktiebolag Communication module for a household appliance

Similar Documents

Publication Publication Date Title
TWI772963B (en) Master-slave communication system, slave position recognition method and power bank rental device
CN103068019B (en) A kind of method that WLAN is energy-conservation and device
CN109246780B (en) Session switching method, device and system
CN113206684A (en) Take topological recognition function's platform district intelligence to fuse terminal
CN108282907A (en) Electronic equipment, wireless networking system, device and its control method and storage device
CN112188549A (en) Communication method, communication module and communication system
CN112449444B (en) Communication control device and method for multi-connected equipment and multi-connected equipment
CN107708164A (en) Network access method and system of power distribution terminal
WO2022257379A1 (en) Private service quality management method, device and system, and storage medium
CN108966364A (en) Wi-Fi hotspot reconnection method, device, readable storage medium storing program for executing and mobile terminal
CN116365717A (en) A high-voltage circuit safety monitoring system and method
CN115412785B (en) Optical network terminal power adapter, optical signal control method, system and equipment
CN117354896A (en) Wireless network communication method and system in Internet of things environment
CN109640484A (en) Single-lamp controller
CN112153623B (en) Asset detection method and system based on short-distance wireless communication
CN117544252A (en) Testing method and system for dual-mode communication module
CN106973001A (en) A kind of mixed networking and its method of work and application based on ZigBee and RS485
CN113498141B (en) Gateway switching method, gateway switching device, electronic equipment and computer readable storage medium
CN103997122A (en) System of multi-core parallel intelligent controller
CN108055660A (en) The method and internet-of-things terminal of data are transmitted in network channel
CN116668206A (en) Method and device for adjusting configuration parameters of network equipment
CN117098216B (en) Energy-saving method, UWB management platform and BBU based on positioning equipment
CN113498054A (en) High-reliability multi-network-integrated Internet of things high-speed connection method
CN216486416U (en) Parallel data acquisition device for inspection robot
CN110798242A (en) Circuit, multi-channel device and multi-channel short message sending 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210105