Communication control method, device, processor and Internet of Things architecture of the Internet of Things
By connecting only one target device in the Internet of Things and determining the channel by the device, the problem of low efficiency in receiving smart device instructions in the Internet of Things is solved, and the communication speed and efficiency of the Internet of Things are improved.
Patent Information
- Application Number
- CN202211539040.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-02
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-12-02
AI Technical Summary
In the Internet of Things, the command reception efficiency of some smart devices is low, resulting in poor communication between issuing server instructions and receiving device instructions.
The server is connected to only one first target device, but not other devices, and the first target device determines the target channel from the Internet of Things, so that each device of the Internet of Things communicates with the server through the target channel.
It improves the overall communication speed and efficiency of the Internet of Things and solves the problem of low command reception efficiency of smart devices.
Smart Images

Figure CN115988054B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of the Internet of Things. Specifically, it relates to a communication control method, device, computer-readable storage medium, processor, electronic device, and Internet of Things architecture for the Internet of Things. Background Art
[0002] The Internet of Things has been widely applied in various fields of society, and the application market of intelligent devices is also getting larger and larger, being applied to different usage scenarios. Based on the network topology, multiple devices in a network are all connected to the server. In the case of poor communication quality, there is poor communication between the server instruction issuance and the device instruction reception. Therefore, how to quickly deliver the instructions issued by the server to each device node is an urgent problem to be solved.
[0003] The above information disclosed in the background art part is only used to strengthen the understanding of the background art of the technology described in this article. Therefore, the background art may contain certain information that is not prior art known in the country to those skilled in the art. Summary of the Invention
[0004] The main purpose of the present application is to provide a communication control method, device, computer-readable storage medium, processor, electronic device, and Internet of Things architecture for the Internet of Things, so as to solve the problem of low instruction reception efficiency of some intelligent devices in the network in the prior art.
[0005] According to one aspect of an embodiment of the present invention, a communication control method for the Internet of Things is provided. The Internet of Things includes multiple devices in a network. The method includes: when the communication quality between at least one of the devices and the server is unqualified, controlling each of the devices to send network configuration information to the server, where the network configuration information carries first moment information, and the first moment information is the sending moment of the network configuration information; when a first target device receives a first instruction, in response to the first instruction, determining a target channel, where the first target device is the device determined by the server based on at least each of the first moment information, the first instruction is an instruction generated by the server in response to each of the network configuration information, the server is only communicatively connected to the first target device, and the target channel is one of the communication channels connecting all the devices starting from the first target device; controlling each of the devices to communicate with the server through the target channel.
[0006] Optionally, when the first target device receives the first instruction, in response to the first instruction, determining a target channel includes: when the first target device receives the first instruction, in response to the first instruction, determining all the communication channels; controlling the first target device to generate and send a first request message, the first request message including a first sub-message and a second sub-message, the first sub-message being used to request other devices except the second target device to forward the second sub-message along each communication channel, the second sub-message being used to request the second target device to feedback a first predetermined message, the second target device being the device located at the end of each communication channel, and the first predetermined message being information characterizing the transmission rate of the communication channel; when the first target device receives each first predetermined message, determining the target channel at least according to each first predetermined message.
[0007] Optionally, controlling the first target device to generate and send a first request message includes: a determination step of determining one of the plurality of communication channels as a preparatory channel; a first control step of controlling the first target device to generate the first request message; a second control step of controlling the first target device to send the first request message through the preparatory channel, so that the second target device corresponding to the preparatory channel feedbacks the first predetermined message; a loop step of sequentially executing the determination step, the first control step, and the second control step at least once until the second target devices corresponding to all the communication channels all feedback the first predetermined message.
[0008] Optionally, the first request message carries second time information, the second time information being the sending time of the first request message, and the first predetermined message being the time information when the second target device receives the second sub-message. Determining the target channel at least according to each first predetermined message includes: determining the interval duration between the first predetermined message and the corresponding second time information according to each first predetermined message and the second time information; determining the communication channel corresponding to the minimum value among the interval durations as the target channel.
[0009] Optionally, the first request message carries second time information, the second time information being the sending time of the first request message, and the first predetermined message being information characterizing the duration between the second time information and the third time information generated by the second target device according to the second sub-message and the second time information, the third time information being the time when the second target device receives the second sub-message. Determining the target channel at least according to each first predetermined message includes: determining the communication channel corresponding to the minimum value among the first predetermined messages as the target channel.
[0010] Optionally, before controlling each of the devices to send network configuration information carrying first time information to the server, the method further includes: determining communication rate information of each of the devices and the server, and determining whether each of the communication rate information is less than or equal to a first preset value; in the case where the communication rate information is less than or equal to the first preset value, determining whether a duration for which the communication rate information is less than or equal to the first preset value is greater than a second preset value; in the case where the duration is greater than the second preset value, determining that the communication quality is unqualified.
[0011] Optionally, determining communication rate information of each of the devices and the server includes: controlling each of the devices to send second request information to the server, so that the server feeds back second predetermined information according to each of the second request information, the second predetermined information being a moment when the server receives the second request information, and an emission moment of the second request information being fourth time information; according to the fourth time information and each of the second predetermined information, determining each of the communication rate information as a duration between the fourth time information and each of the second predetermined information.
[0012] Optionally, before controlling each of the devices to send network configuration information carrying first time information to the server, the method further includes: determining whether a second instruction is received, the second instruction being issued by the server when determining that communication rate information with at least one of the devices is less than or equal to a first preset value and a duration for which the communication rate information is less than or equal to the first preset value is greater than a second preset value, the communication rate information being determined by the server according to fifth time information and third predetermined information, the fifth time information being a moment when the server sends a third instruction to each of the devices, the third predetermined information being information fed back by each of the devices according to the third instruction received by the server, the third predetermined information being used to represent a moment when each of the devices receives the third instruction, and the communication rate information being a duration between the fifth time information and the third predetermined information; in the case where it is determined that the second instruction is received, determining that the communication quality is unqualified, and in the case where the second instruction is not received, determining that the communication quality is qualified.
[0013] According to another aspect of the embodiments of the present invention, there is also provided a communication control device for the Internet of Things. The Internet of Things includes a plurality of networked devices. The device includes: a first control unit, configured to control each device to send network configuration information to the server when the communication quality between at least one of the devices and the server is unqualified. The network configuration information carries first time information, which is the sending time of the network configuration information; a first determination unit, configured to determine a target channel in response to a first instruction when a first target device receives the first instruction. The first target device is the device determined by the server based on at least each piece of the first time information. The first instruction is an instruction generated by the server in response to each piece of the network configuration information. The server is communicatively connected only to the first target device. The target channel is one of the communication channels connecting all the devices starting from the first target device; a second control unit, configured to control each device to communicate with the server through the target channel.
[0014] According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium. The computer-readable storage medium includes a stored program, wherein the program executes any of the above methods.
[0015] According to another aspect of the embodiments of the present invention, there is also provided a processor for running a program, wherein the program executes any of the above methods when running.
[0016] According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include those for executing any of the above methods.
[0017] According to another aspect of the embodiments of the present invention, there is also provided an Internet of Things architecture, including: an Internet of Things, including a plurality of networked devices; a controller for executing any of the above methods; a server communicatively connected to at least one of the devices.
[0018] In the embodiments of the present invention, when the communication quality between some devices in the Internet of Things and the server is poor, the server is connected only to a first target device and not to other devices. Then, the first target device determines the target channel from the Internet of Things, so that all devices in the Internet of Things communicate with the server through the target channel and the first target device, ensuring that the overall communication speed of the Internet of Things is relatively fast, thereby ensuring that the overall communication efficiency of the Internet of Things is relatively high, and effectively solving the problem of low instruction reception efficiency of some intelligent devices in the existing networked technology. Description of the Drawings
[0019] The accompanying drawings of the specification, which form a part of this application, are used to provide a further understanding of this application. The schematic embodiments and descriptions thereof of this application are used to explain this application and do not constitute an improper limitation to this application. In the drawings:
[0020] Figure 1 A schematic flow diagram of a communication control method for the Internet of Things according to an embodiment of this application is shown;
[0021] Figure 2 A schematic structural diagram of a communication control device for the Internet of Things according to an embodiment of this application is shown;
[0022] Figure 3 A schematic control flow diagram of an Internet of Things system according to an embodiment of this application is shown. Detailed implementation manners
[0023] It should be noted that, without conflict, the embodiments in this application and the features in the embodiments may be combined with each other. The following will describe this application in detail with reference to the drawings and in combination with the embodiments.
[0024] In order to enable those skilled in the art of this technology to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the scope of protection of this application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such used data may be interchanged under appropriate circumstances so as to describe the embodiments of this application here. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily need to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these process, method, product or device.
[0026] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, this element may be directly on the other element or there may also be an intermediate element. Moreover, in the specification and claims, when an element is described as being "connected" to another element, this element may be "directly connected" to the other element or "connected" to the other element through a third element.
[0027] As described in the background art, the instruction reception efficiency of some intelligent devices in the existing technology for networking is relatively low. To solve the above problems, in a typical implementation manner of the present application, a communication control method, device, computer-readable storage medium, processor, electronic device, and Internet of Things architecture for the Internet of Things are provided.
[0028] According to an embodiment of the present application, a communication control method for the Internet of Things is provided, and the above Internet of Things includes multiple networked devices.
[0029] Figure 1 is a flowchart of the communication control method for the Internet of Things according to an embodiment of the present application. As Figure 1 shown, the method includes the following steps:
[0030] Step S101, when the communication quality between at least one of the above devices and the server is unqualified, control each of the above devices to send network configuration information to the server, and the above network configuration information carries first moment information, and the above first moment information is the sending moment of the above network configuration information;
[0031] In a specific embodiment, before controlling each of the above devices to send network configuration information carrying first moment information to the server, the method further includes: determining the communication rate information between each of the above devices and the above server, and determining whether each of the above communication rate information is less than or equal to a first preset value; when the above communication rate information is less than or equal to the above first preset value, determining whether the duration for which the above communication rate information is less than or equal to the above first preset value is greater than a second preset value; when the above duration is greater than the above second preset value, determining that the above communication quality is unqualified.
[0032] The above communication rate information is information representing the magnitude of the communication rate between each device and the server. It should be noted that before controlling each of the above devices to send network configuration information to the server, each device in the above Internet of Things has established a communication connection relationship with the server. Each device in the Internet of Things is connected to the server through a gateway and communicates with the server.
[0033] When the above communication rate information is less than or equal to the above first preset value and its duration is greater than the above second preset value, it indicates that in the current Internet of Things, the communication environment between this device and the server is poor and the communication efficiency is low.
[0034] The communication quality of at least one of the above devices with the server fails to meet the standard. It can be that the communication quality of one of the above devices with the server fails to meet the standard, or it can be that the communication quality of a predetermined number of the above devices with the server fails to meet the standard. The above predetermined number is greater than or equal to half of the total number of devices in the Internet of Things, or greater than or equal to two-thirds of the total number of devices in the Internet of Things, etc.
[0035] The above first preset value can be determined according to empirical values or obtained through multiple experiments. In this application, the above first preset value is determined based on the historical data of the above communication rate information. Similarly, those skilled in the art can also obtain the above second preset value according to experience or experiments.
[0036] According to a more specific embodiment of this application, the above first preset value is two-thirds of the average value of the above historical data, and the above second preset value can be 10 seconds. Of course, the above first preset value is not limited to two-thirds of the average value of the above historical data, and the above second preset value is not limited to 10 seconds either, and they can both be other values.
[0037] The above network configuration information includes the device MAC address of the corresponding device.
[0038] In addition, the process of determining the communication rate information of the device with the above server can be implemented on the device side, and the specific implementation process is as follows: Determine the communication rate information of each of the above devices with the above server, including: controlling each of the above devices to send a second request message to the above server, so that the above server feeds back second predetermined information according to each of the above second request messages. The above second predetermined information is the moment when the above server receives the above second request message, and the sending moment of the above second request message is the fourth moment information; according to the above fourth moment information and each of the above second predetermined information, determine each of the above communication rate information as the duration between the above fourth moment information and each of the above second predetermined information.
[0039] Of course, the process of determining whether the communication quality between at least one of the above devices and the server meets the standard is not limited to being implemented on the device side, and can also be implemented on the server side. In another embodiment of the present application, before controlling each of the above devices to send the network configuration information carrying the first moment information to the server, the above method further includes: determining whether a second instruction is received, where the second instruction is issued by the server when it determines that the communication rate information with at least one of the above devices is less than or equal to a first preset value, and the duration for which the communication rate information is less than or equal to the first preset value is greater than a second preset value. The communication rate information is determined by the server according to the fifth moment information and the third predetermined information. The fifth moment information is the moment when the server sends the third instruction to each of the above devices, and the third predetermined information is the information fed back by each of the above devices according to the third instruction received by the server. The third predetermined information is used to represent the moment when each of the above devices receives the third instruction. The communication rate information is the duration between the fifth moment information and the third predetermined information; when it is determined that the second instruction is received, it is determined that the communication quality does not meet the standard, and when the second instruction is not received, it is determined that the communication quality meets the standard.
[0040] Step S102, when the first target device receives the first instruction, in response to the first instruction, determine the target channel. The first target device is the device determined by the server based on at least each of the first moment information. The first instruction is an instruction generated by the server in response to each of the network configuration information. The server is only communicatively connected to the first target device. The target channel is one of the communication channels starting from the first target device and connecting all of the above devices.
[0041] In the above embodiment, the server being only communicatively connected to the first target device means that the server is only communicatively connected to the first target device according to each of the network configuration information and disconnects the communicative connection with other devices in the Internet of Things. The first instruction is an instruction for instructing the first target device to determine the target channel.
[0042] In one embodiment of the present application, the first target device is determined by the server according to the first moment information and the corresponding moment when the network configuration information is received. Specifically, the first target device is the device corresponding to the minimum value among the multiple duration differences determined by the server. The duration difference is the difference between the first moment information determined by the server according to the first moment information and the corresponding moment when the network configuration information is received, and the moment when the network configuration information is received.
[0043] Specifically, when the first target device receives the first instruction, in response to the first instruction, determining the target channel includes the following steps:
[0044] Step S1021, when the first target device receives the first instruction, in response to the first instruction, determine all the communication channels;
[0045] Step S1022, control the first target device to generate and send a first request message, the first request message includes a first sub-message and a second sub-message, the first sub-message is used to request other devices except the second target device to forward the second sub-message along each communication channel, the second sub-message is used to request the second target device to feedback a first predetermined message, the second target device is the device located at the end of each communication channel, and the first predetermined message is the message characterizing the transmission rate of the communication channel;
[0046] In the above embodiment, by the first target device sending the first request message, the second target device at the end of each communication channel returns the first predetermined message characterizing the transmission rate, so as to realize the test of the transmission rate of each communication channel, which is convenient for subsequently determining a communication channel with a faster transmission rate as the target channel according to the test result, thereby further ensuring that the Internet of Things subsequently uses the target channel to communicate with the server, with a faster communication rate and higher communication efficiency.
[0047] In order to further ensure that the transmission efficiency of each communication channel can be obtained more accurately, in an embodiment of the present application, controlling the first target device to generate and send the first request message includes: a determination step of determining one of the multiple communication channels as a preliminary channel; a first control step of controlling the first target device to generate the first request message; a second control step of controlling the first target device to send the first request message through the preliminary channel, so that the second target device corresponding to the preliminary channel feedbacks the first predetermined message; a loop step of sequentially executing the determination step, the first control step, and the second control step at least once until the second target devices corresponding to all the communication channels have feedback the first predetermined message.
[0048] The above embodiment ensures the accuracy of the test result by sequentially testing the transmission efficiency of each communication channel instead of simultaneously testing multiple communication channels.
[0049] Step S1023, when the first target device receives each first predetermined message, determine the target channel at least according to each first predetermined message.
[0050] In an embodiment of the present application, the above first request information carries second time information, where the second time information is the sending time of the first request information, and the above first predetermined information is the time information when the second target device receives the second sub-information. Determining the target channel based on at least each of the above first predetermined information includes: determining the interval duration between each of the above first predetermined information and the corresponding second time information according to each of the above first predetermined information and the second time information; determining the communication channel corresponding to the minimum value among each of the above interval durations as the target channel.
[0051] In the process of determining the target channel, the second target device only feeds back the time when it receives the second sub-information, that is, the time when the second sub-information arrives at the second target device. The calculation process of the interval duration is not executed at the second target device but at the first target device. Additionally, by selecting a communication channel with the shortest transmission duration from multiple communication channels as the target channel, the communication rate and efficiency using this target channel are further ensured to be relatively high.
[0052] In other embodiments, the above first request information carries second time information, where the second time information is the sending time of the first request information, and the above first predetermined information is information generated by the second target device based on the second sub-information and the second time information, representing the duration between the second time information and the third time information, and the third time information is the time when the second target device receives the second sub-information. Determining the target channel based on at least each of the above first predetermined information includes: determining the communication channel corresponding to the minimum value among each of the above first predetermined information as the target channel.
[0053] In the process of determining the target channel, the calculation process of the interval duration is completed at the second target device, and the process of selecting the target channel according to the interval duration is completed at the first target device.
[0054] Step S103, controlling each of the above devices to communicate with the server through the above target channel.
[0055] The specific implementation manner of the above step S103 is as follows: When other devices except the above first target device interact with the server, they send the interaction information to the above first target device through the above target channel, and the first target device sends it to the server; when the server needs to interact with other devices except the above first target device, it first sends the interaction information to the first target device, and then the first target device sends the above interaction information to the corresponding device through the above target channel.
[0056] Specifically, the second instruction is an instruction to control the first target device to continue communicating with the server and control the other devices to disconnect from the server; the third instruction is an instruction to control each of the devices to feedback the time when the third instruction reaches each of the devices; when each of the devices receives the third instruction, in response to the third instruction, the third predetermined information is generated and fed back to the server.
[0057] According to another embodiment of the present application, when the communication quality between at least one of the devices and the server is unqualified, controlling each of the devices to send network configuration information to the server is the third control step; when the first target device receives the first instruction, in response to the first instruction, determining the target channel is the response step; controlling each of the devices to communicate with the server through the target channel is the fourth control step. After controlling each of the devices to communicate with the server through the target channel, the method further includes: a third determination step of determining in real time whether the communication quality between each of the devices and the server is qualified; an execution step of, when it is determined that the communication quality between at least one of the devices and the server is unqualified, sequentially executing the third control step, the response step, and the fourth control step, so that the server communicates with each of the devices through the target channel determined in real time.
[0058] In the Internet of Things, a device can interact with other devices through broadcast, multicast, or unicast methods, thereby forming an interconnected network among all devices.
[0059] In the above communication control method of the Internet of Things, when the communication quality between at least one of the devices and the server is unqualified, first control each of the devices to send network configuration information with a timestamp to the server; then, among multiple devices, when the first target device connected only to the server receives the first instruction, in response to the first instruction, determine the target channel; finally, control each of the devices to communicate with the server through the target channel. Compared with the prior art in which multiple devices in a network are all connected to the server and there is a problem of poor communication between the server instruction issuance and the device instruction reception in the case of poor communication quality, in the case of poor communication quality between some devices and the server in the Internet of Things in the present application, by having the server connect only to one first target device and not to other devices, and then having the first target device determine the target channel from the Internet of Things, so that each device in the Internet of Things communicates with the server through the target channel and the first target device, ensuring a relatively fast communication speed of the overall Internet of Things, thereby ensuring a relatively high overall communication efficiency of the Internet of Things, and effectively solving the problem of low instruction reception efficiency of some intelligent devices in the network in the prior art.
[0060] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0061] The embodiment of the present application also provides a communication control device for the Internet of Things. The above Internet of Things includes multiple networked devices. It should be noted that the communication control device for the Internet of Things in the embodiment of the present application can be used to execute the communication control method for the Internet of Things provided by the embodiment of the present application. The following introduces the communication control device for the Internet of Things provided by the embodiment of the present application.
[0062] Figure 2 It is a schematic diagram of the communication control device for the Internet of Things according to the embodiment of the present application. As Figure 2 shown, the device includes:
[0063] A first control unit 10, configured to control each of the above devices to send network configuration information to the server when the communication quality between at least one of the above devices and the server is unqualified. The above network configuration information carries first moment information, and the first moment information is the sending moment of the above network configuration information;
[0064] In a specific embodiment, the above device further includes: a second determination unit, configured to determine the communication rate information between each of the above devices and the above server before controlling each of the above devices to send network configuration information carrying first moment information to the server, and determine whether each of the above communication rate information is less than or equal to a first preset value; a third determination unit, configured to determine whether the duration during which the above communication rate information is less than or equal to the above first preset value is greater than a second preset value when the above communication rate information is less than or equal to the above first preset value; a third determination unit, configured to determine that the above communication quality is unqualified when the above duration is greater than the above second preset value.
[0065] The above communication rate information is information characterizing the magnitude of the communication rate between each device and the server. It should be noted that before controlling each of the above devices to send network configuration information to the server, each device in the above Internet of Things has established a communication connection relationship with the server. Each device in the Internet of Things is connected to the server through a gateway and communicates with the server.
[0066] When the above communication rate information is less than or equal to the above first preset value and its duration is greater than the above second preset value, it indicates that in the current Internet of Things, the communication environment between the device and the server is poor and the communication efficiency is low.
[0067] The communication quality between at least one of the above devices and the server fails to meet the standard. It can be that the communication quality between one of the above devices and the server fails to meet the standard, or it can be that the communication quality between a predetermined number of the above devices and the server fails to meet the standard. The above predetermined number is greater than or equal to half of the total number of devices in the Internet of Things, or greater than or equal to two-thirds of the total number of devices in the Internet of Things, etc.
[0068] The above first preset value can be determined according to empirical values or obtained through multiple experiments. In this application, the above first preset value is determined according to the historical data of the above communication rate information. Similarly, those skilled in the art can also obtain the above second preset value according to experience or experiments.
[0069] According to a more specific embodiment of this application, the above first preset value is two-thirds of the average value of the above historical data, and the above second preset value can be 10 seconds. Of course, the above first preset value is not limited to two-thirds of the average value of the above historical data, and the above second preset value is not limited to 10 seconds, and they can both be other values.
[0070] The above network configuration information includes the device MAC address of the corresponding device.
[0071] In addition, the process of determining the communication rate information between the device and the above server can be implemented on the device side. The specific implementation process is as follows: The above second determination unit includes: a first control module, configured to control each of the above devices to send second request information to the above server, so that the above server feeds back second predetermined information according to each of the above second request information. The above second predetermined information is the moment when the above server receives the above second request information, and the sending moment of the above second request information is the fourth moment information; a third determination module, configured to determine each of the above communication rate information as the duration between the above fourth moment information and each of the above second predetermined information according to the above fourth moment information and each of the above second predetermined information.
[0072] Of course, the process of determining whether the communication quality between at least one of the above devices and the server is qualified is not limited to being implemented on the device side, and can also be implemented on the server side. In another embodiment of the present application, the above device further includes: a fourth determination unit, configured to determine whether a second instruction is received before controlling each of the above devices to send network configuration information carrying first time information to the server, where the second instruction is sent by the server when it determines that the communication rate information with at least one of the above devices is less than or equal to a first preset value, and the duration during which the communication rate information is less than or equal to the first preset value is greater than a second preset value. The communication rate information is determined by the server according to fifth time information and third predetermined information. The fifth time information is the time when the server sends a third instruction to each of the above devices, and the third predetermined information is the information fed back by each of the above devices according to the third instruction received by the server. The third predetermined information is used to represent the time when each of the above devices receives the third instruction. The communication rate information is the duration between the fifth time information and the third predetermined information; a fifth determination unit, configured to determine that the communication quality is unqualified when it is determined that the second instruction is received, and determine that the communication quality is qualified when the second instruction is not received.
[0073] The first determination unit 20 is configured to, when the first target device receives the first instruction, in response to the first instruction, determine a target channel. The first target device is the device determined by the server at least according to each of the above first time information. The first instruction is an instruction generated by the server in response to each of the above network configuration information. The server is only communicatively connected to the first target device. The target channel is one of the communication channels starting from the first target device and connecting all of the above devices.
[0074] In the above embodiment, the server being only communicatively connected to the first target device means that the server is only communicatively connected to the first target device according to each of the above network configuration information, and disconnects the communicative connection with other devices in the Internet of Things. The first instruction is an instruction for instructing the first target device to determine a target channel.
[0075] In an embodiment of the present application, the first target device is determined by the server according to the above first time information and the corresponding time when the network configuration information is received. Specifically, the first target device is the device corresponding to the minimum value among the multiple duration differences determined by the server. The duration difference is the difference between the first time information determined by the server according to the above first time information and the time when the network configuration information is received, and the time when the network configuration information is received.
[0076] Specifically, the above-mentioned first determination unit specifically includes a first determination module, a second control module, and a second determination module, and the functions of each module are as follows:
[0077] The above-mentioned first determination module is used to determine all the above-mentioned communication channels in response to the above-mentioned first instruction when the above-mentioned first target device receives the above-mentioned first instruction;
[0078] The above-mentioned second control module is used to control the above-mentioned first target device to generate and send a first request message. The first request message includes a first sub-message and a second sub-message. The first sub-message is used to request other devices except the second target device to forward the second sub-message along each of the above-mentioned communication channels. The second sub-message is used to request the second target device to feedback a first predetermined message. The second target device is the device located at the end of each of the above-mentioned communication channels, and the first predetermined message is information characterizing the transmission rate of the above-mentioned communication channel;
[0079] In the above-mentioned embodiment, by the first target device sending the first request message, the second target device at the end of each communication channel returns the first predetermined message characterizing the transmission rate, so as to realize the test of the transmission rate of each communication channel, which is convenient for subsequently determining a communication channel with a faster transmission rate as the target channel according to the test result, thereby further ensuring that the Internet of Things subsequently uses the target channel to communicate with the server, with a faster communication rate and higher communication efficiency.
[0080] In order to further ensure that the transmission efficiency of each communication channel can be obtained more accurately, in an embodiment of the present application, the above-mentioned second control module includes: a first determination sub-module, used for the determination step to determine one of the multiple above-mentioned communication channels as a preliminary channel; a first control sub-module, used for the first control step to control the above-mentioned first target device to generate the above-mentioned first request message; a second control sub-module, used for the second control step to control the above-mentioned first target device to send the above-mentioned first request message through the preliminary channel, so that the second target device corresponding to the preliminary channel feedbacks the above-mentioned first predetermined message; a loop sub-module, used for the loop step to sequentially execute the above-mentioned determination step, the above-mentioned first control step, and the above-mentioned second control step at least once until the second target devices corresponding to all the above-mentioned communication channels have feedback the above-mentioned first predetermined message.
[0081] The above-mentioned embodiment ensures the accuracy of the test result by sequentially testing the transmission efficiency of each communication channel instead of testing multiple communication channels simultaneously.
[0082] The above-mentioned second determination module is used to determine the above-mentioned target channel at least according to each of the above-mentioned first predetermined messages when the above-mentioned first target device receives each of the above-mentioned first predetermined messages.
[0083] In an embodiment of the present application, the first request information carries second moment information, where the second moment information is the sending moment of the first request information, the first predetermined information is the moment information when the second target device receives the second sub-information, and the second determination module includes: a second determination sub-module, configured to determine, according to each of the first predetermined information and the second moment information, the interval duration between the first predetermined information and the corresponding second moment information; a third determination sub-module, configured to determine that the communication channel corresponding to the minimum value among the interval durations is the target channel.
[0084] In the process of determining the target channel, the second target device only feeds back the moment when it receives the second sub-information, that is, the moment when the second sub-information arrives at the second target device. The calculation process of the interval duration is not executed at the second target device, but at the first target device. Additionally, by selecting a communication channel with the shortest transmission duration from multiple communication channels as the target channel, it further ensures that the communication rate using this target channel is relatively fast and the efficiency is relatively high.
[0085] In other embodiments, the first request information carries second moment information, where the second moment information is the sending moment of the first request information, the first predetermined information is information generated by the second target device according to the second sub-information and the second moment information, representing the duration between the second moment information and the third moment information, and the third moment information is the moment when the second target device receives the second sub-information. The second determination module includes: a fourth determination sub-module, configured to determine that the communication channel corresponding to the minimum value among the first predetermined information is the target channel.
[0086] In the process of determining the target channel, the calculation process of the interval duration is completed at the second target device, and the process of selecting the target channel according to the interval duration is completed at the first target device.
[0087] The second control unit 30 is configured to control each of the above devices to communicate with the server through the target channel.
[0088] The specific implementation manner of the second control unit is as follows: When devices other than the first target device interact with the server, they send interaction information to the first target device through the target channel, and the first target device sends it to the server; when the server needs to interact with devices other than the first target device, it first sends the interaction information to the first target device, and then the first target device sends the interaction information to the corresponding device through the target channel.
[0089] Specifically, the second instruction is an instruction for controlling the first target device to continue communicating with the server and disconnecting other devices from the server; the third instruction is an instruction for controlling each device to feedback the time when the third instruction reaches each device; when each device receives the third instruction, in response to the third instruction, the third predetermined information is generated and fed back to the server.
[0090] According to another embodiment of the present application, when the communication quality between at least one of the devices and the server is unqualified, controlling each device to send network configuration information to the server is the third control step; when the first target device receives the first instruction, in response to the first instruction, determining the target channel is the response step; controlling each device to communicate with the server through the target channel is the fourth control step. After controlling each device to communicate with the server through the target channel, the device further includes: a sixth determination unit for the third determination step, determining in real time whether the communication quality between each device and the server is qualified; an execution unit for the execution step, when it is determined that the communication quality between at least one of the devices and the server is unqualified, sequentially executing the third control step, the response step, and the fourth control step, so that the server communicates with each device through the target channel determined in real time.
[0091] In the Internet of Things, a device can interact with other devices through broadcast, multicast, or unicast, thereby forming an interconnected network among all devices.
[0092] In the above communication control device of the Internet of Things, when the communication quality between at least one of the devices and the server is unqualified, the first control unit controls each device to send network configuration information with a timestamp to the server; among multiple devices, when only the first target device connected to the server receives the first instruction, the first determination unit determines the target channel in response to the first instruction; the second control unit controls each device to communicate with the server through the target channel. Compared with the prior art where multiple devices in a network are all connected to the server and there is a problem of poor communication between the server instruction issuance and the device instruction reception in the case of poor communication quality, in the present application, when the communication quality between some devices and the server in the Internet of Things is poor, the server is only connected to one first target device and not to other devices, and then the first target device determines the target channel from the Internet of Things, so that each device in the Internet of Things communicates with the server through the target channel and the first target device, ensuring a relatively fast communication speed of the overall Internet of Things, thereby ensuring a relatively high communication efficiency of the overall Internet of Things, and effectively solving the problem of low instruction reception efficiency of some intelligent devices in the network in the prior art.
[0093] The communication control device of the above Internet of Things includes a processor and a memory. The above first control unit, the above first determination unit, the above second control unit, etc. are all stored in the memory as program units, and the processor executes the above program units stored in the memory to implement corresponding functions.
[0094] The processor contains a kernel, and the kernel retrieves the corresponding program units from the memory. One or more kernels can be set, and by adjusting the kernel parameters, the problem of low instruction reception efficiency of some intelligent devices in network formation in the prior art can be solved.
[0095] The memory may include non-permanent memory in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory includes at least one memory chip.
[0096] An embodiment of the present invention provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the communication control method of the above Internet of Things is implemented.
[0097] An embodiment of the present invention provides a processor, and the above processor is used to run a program. When the above program runs, the communication control method of the above Internet of Things is executed.
[0098] An embodiment of the present invention provides a device, the device includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, at least the following steps are implemented:
[0099] Step S101, when the communication quality between at least one of the above devices and the server is unqualified, control each of the above devices to send network configuration information to the server. The above network configuration information carries first moment information, and the above first moment information is the sending moment of the above network configuration information;
[0100] Step S102, when the first target device receives a first instruction, in response to the above first instruction, determine a target channel. The above first target device is the device determined by the above server at least according to each of the above first moment information. The above first instruction is an instruction generated by the above server in response to each of the above network configuration information. The above server is only communicatively connected to the above first target device. The above target channel is one of the communication channels starting from the above first target device and connecting all the above devices;
[0101] Step S103, control each of the above devices to communicate with the above server through the above target channel.
[0102] The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0103] The present application also provides a computer program product which, when executed on a data processing device, is adapted to execute a program initialized with at least the following method steps:
[0104] Step S101, when the communication quality between at least one of the above devices and the server is unqualified, control each of the above devices to send network configuration information to the server, the network configuration information carrying first moment information, and the first moment information being the sending moment of the network configuration information;
[0105] Step S102, when the first target device receives a first instruction, in response to the first instruction, determine a target channel, where the first target device is the device determined by the server based on at least each of the first moment information, the first instruction is an instruction generated by the server in response to each of the network configuration information, the server is communicatively connected only to the first target device, and the target channel is one of the communication channels connecting all the above devices starting from the first target device;
[0106] Step S103, control each of the above devices to communicate with the server through the target channel.
[0107] According to another aspect of the embodiments of the present invention, there is also provided an Internet of Things architecture, including: an Internet of Things including a plurality of networked devices; a controller for executing any one of the above methods; and a server communicatively connected to at least one of the above devices.
[0108] The above Internet of Things architecture includes an Internet of Things, a controller, and a server. Among them, the devices in the Internet of Things are communicatively connected to the server, and the controller is used to execute any one of the above methods. When the communication quality between some devices in the Internet of Things and the server is poor, the server is communicatively connected only to a first target device and not to other devices. Then, the first target device determines a target channel from the Internet of Things, so that each device in the Internet of Things communicates with the server through the target channel and the first target device, ensuring that the overall communication speed of the Internet of Things is relatively fast, thereby ensuring that the overall communication efficiency of the Internet of Things is relatively high, effectively solving the problem of low instruction reception efficiency of some networked intelligent devices in the prior art, ensuring the communication quality and efficiency of the entire Internet of Things architecture, and reducing the communication pressure between the server and each device.
[0109] In one embodiment, the above Internet of Things system of the present application is applied to a smart home scenario, and its specific control process is as Figure 3 shown, and the specific process is as follows:
[0110] During the operation of the device and the server, the communication efficiency between the device and the server is recorded. When it is detected that the communication efficiency between the device and the server drops to two-thirds of the historical average level and lasts for more than ten seconds, it is determined that the communication status between the device and the server has deteriorated. When it is found that the network communication status has deteriorated, the device-side algorithm that tries its best to receive instructions is enabled to ensure the signal transmission efficiency. The specific implementation process is as follows:
[0111] 【1】Under a networking, multiple devices are connected to the server. Each device can directly communicate with the server through the gateway, and at the same time, the communication efficiency between the device and the server is recorded;
[0112] 【2】At a certain moment, it is detected that the communication efficiency between the device and the server drops to two-thirds of the historical average level and the duration exceeds ten seconds, and it is determined that the network communication environment is poor;
[0113] 【3】Each device sends network configuration information to the server with timestamp information. After the server receives the response from the device, it compares the reception time with the sending time of the device, and selects the device with the shortest time (S1) to communicate between the device and the server;
[0114] 【4】Starting from device S1, signals are sent to the surrounding devices, and all possible channels through which all devices are connected are obtained by exhaustive search. Each channel sends signals from the start node until the end node, and the time used for each channel is calculated. The optimal channel is obtained, and information is sent using the optimal channel.
[0115] 【5】Continuously monitor the communication. If it is found that the efficiency continues to decrease (two-thirds of the average level after addressing and lasting for more than ten seconds), return to step [4] for addressing.
[0116] In the above embodiments of the present invention, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0117] In several embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the above-mentioned unit division can be a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of units or modules can be in an electrical or other form.
[0118] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or may be distributed over multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] In addition, the functional units in various embodiments of the present invention may be integrated into one processing unit, may exist separately as individual physical units, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0120] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above-mentioned methods in various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs and other various media that can store program codes.
[0121] From the above description, it can be seen that the above-mentioned embodiments of this application achieve the following technical effects:
[0122] 1) In the above communication control method of the Internet of Things, when the communication quality between at least one of the above devices and the above server fails to meet the standard, first control each of the above devices to send network configuration information with a timestamp to the server; then, among multiple devices, when the first target device connected only to the server receives the first instruction, in response to the above first instruction, determine the target channel; finally, control each of the above devices to communicate with the above server through the above target channel. Compared with the prior art in which multiple devices in a network are all connected to the server, when the communication quality is poor, there is a problem of poor communication between the server instruction issuance and the device instruction reception. In this application, when the communication quality between some devices and the server in the Internet of Things is poor, the server is only connected to one first target device and not to other devices, and then the first target device determines the target channel from the Internet of Things, so that each device in the Internet of Things communicates with the server through the target channel and the first target device, ensuring a relatively fast communication speed of the entire Internet of Things, thereby ensuring a relatively high communication efficiency of the entire Internet of Things, and effectively solving the problem of low instruction reception efficiency of some intelligent devices in the network in the prior art.
[0123] 2) In the above communication control device of the Internet of Things, when the communication quality between at least one of the above devices and the above server fails to meet the standard, the first control unit controls each of the above devices to send network configuration information with a timestamp to the server; among multiple devices, when the first target device connected only to the server receives the first instruction, the first determination unit determines the target channel in response to the above first instruction; the second control unit controls each of the above devices to communicate with the above server through the above target channel. Compared with the prior art in which multiple devices in a network are all connected to the server, when the communication quality is poor, there is a problem of poor communication between the server instruction issuance and the device instruction reception. In this application, when the communication quality between some devices and the server in the Internet of Things is poor, the server is only connected to one first target device and not to other devices, and then the first target device determines the target channel from the Internet of Things, so that each device in the Internet of Things communicates with the server through the target channel and the first target device, ensuring a relatively fast communication speed of the entire Internet of Things, thereby ensuring a relatively high communication efficiency of the entire Internet of Things, and effectively solving the problem of low instruction reception efficiency of some intelligent devices in the network in the prior art.
[0124] 3) The above-mentioned Internet of Things architecture includes the Internet of Things, a controller, and a server. Among them, the devices in the Internet of Things are communicatively connected to the above-mentioned server. The controller is used to execute any one of the above-mentioned methods. When the communication quality between some devices in the Internet of Things and the server is poor, the server is only connected to a first target device and not to other devices. Then, the first target device determines a target channel from the Internet of Things, so that all devices in the Internet of Things communicate with the server through the target channel and the first target device, ensuring that the overall communication speed of the Internet of Things is relatively fast, thereby ensuring that the overall communication efficiency of the Internet of Things is relatively high. This effectively solves the problem of low instruction reception efficiency of some intelligent devices in the existing networking technology, ensures the communication quality and efficiency of the entire Internet of Things architecture, and reduces the communication pressure between the server and each device.
[0125] The foregoing is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A communication control method for the Internet of Things, the Internet of Things comprising a plurality of networked devices, characterized in that, The method includes: When the communication quality between at least one of the devices and the server is unqualified, controlling each of the devices to send network configuration information to the server, where the network configuration information carries first moment information, and the first moment information is the sending moment of the network configuration information; When a first target device receives a first instruction, in response to the first instruction, determining a target channel, where the first target device is the device determined by the server based on at least each of the first moment information, the first instruction is an instruction generated by the server in response to each of the network configuration information, the server is only communicatively connected to the first target device, and the target channel is one of the communication channels connecting all the devices starting from the first target device; Controlling each of the devices to communicate with the server through the target channel.
2. The method according to claim 1, wherein When the first target device receives the first instruction, in response to the first instruction, determining the target channel includes: When the first target device receives the first instruction, in response to the first instruction, determining all of the communication channels; Controlling the first target device to generate and send a first request message, where the first request message includes a first sub-message and a second sub-message, the first sub-message is used to request each of the other devices except a second target device to forward the second sub-message along each of the communication channels, the second sub-message is used to request the second target device to feedback first predetermined information, the second target device is the device located at the end of each of the communication channels, and the first predetermined information is information characterizing the transmission rate of the communication channel; When the first target device receives each of the first predetermined information, determining the target channel based on at least each of the first predetermined information.
3. The method according to claim 2, characterized in that Controlling the first target device to generate and send the first request message includes: A determining step of determining one of the multiple communication channels as a preliminary channel; A first control step of controlling the first target device to generate the first request message; A second control step of controlling the first target device to send the first request message through the preliminary channel so that the second target device corresponding to the preliminary channel feedbacks the first predetermined information; A loop step of sequentially executing the determining step, the first control step, and the second control step at least once until the second target devices corresponding to all the communication channels all feedback the first predetermined information.
4. The method according to claim 2, characterized in that The first request message carries second moment information, and the second moment information is the sending moment of the first request message, and the first predetermined information is the moment information when the second target device receives the second sub-message. Determining the target channel based on at least each of the first predetermined information includes: Based on each of the first predetermined information and the second moment information, determining the interval duration between the first predetermined information and the corresponding second moment information; Determining the communication channel corresponding to the minimum value among each of the interval durations as the target channel.
5. The method according to claim 2, characterized in that The first request message carries second moment information, where the second moment information is the sending moment of the first request message. The first predetermined information is information generated by the second target device according to the second sub-information and the second moment information, and represents the duration between the second moment information and the third moment information. The third moment information is the moment when the second target device receives the second sub-information. Determining the target channel based on at least each of the first predetermined information includes: Determining the communication channel corresponding to the minimum value among each of the first predetermined information as the target channel.
6. The method according to any one of claims 1 to 5, characterized in that, Before controlling each of the devices to send network configuration information carrying first moment information to the server, the method further includes: Determining the communication rate information between each of the devices and the server, and determining whether each of the communication rate information is less than or equal to a first preset value; When the communication rate information is less than or equal to the first preset value, determining whether the duration for which the communication rate information is less than or equal to the first preset value is greater than a second preset value; When the duration is greater than the second preset value, determining that the communication quality is unqualified.
7. The method according to claim 6, characterized in that, Determining the communication rate information between each of the devices and the server includes: Controlling each of the devices to send a second request message to the server, so that the server feeds back second predetermined information according to each of the second request messages. The second predetermined information represents the moment when the server receives the second request message, and the sending moment of the second request message is the fourth moment information; According to the fourth moment information and each of the second predetermined information, determining each of the communication rate information as the duration between the fourth moment information and each of the second predetermined information.
8. The method according to any one of claims 1 to 5, characterized in that, Before controlling each of the devices to send network configuration information carrying first moment information to the server, the method further includes: Determining whether a second instruction is received. The second instruction is sent by the server when it determines that the communication rate information with at least one of the devices is less than or equal to the first preset value, and the duration for which the communication rate information is less than or equal to the first preset value is greater than the second preset value. The communication rate information is determined by the server according to the fifth moment information and the third predetermined information. The fifth moment information is the moment when the server sends a third instruction to each of the devices, and the third predetermined information is the information fed back by each of the devices according to the third instruction received by the server. The third predetermined information is used to represent the moment when each of the devices receives the third instruction. The communication rate information is the duration between the fifth moment information and the third predetermined information; When it is determined that the second instruction is received, determining that the communication quality is unqualified; when the second instruction is not received, determining that the communication quality is qualified.
9. A communication control device for the Internet of Things, the Internet of Things comprising a plurality of networked devices, characterized in that, The device includes: A first control unit, configured to control each of the devices to send network configuration information to a server when the communication quality between at least one of the devices and the server fails. The network configuration information carries first time information, which is the sending time of the network configuration information. A first determination unit, configured to determine a target channel in response to a first instruction when a first target device receives the first instruction. The first target device is the device determined by the server based on at least the first time information. The first instruction is an instruction generated by the server in response to each piece of network configuration information. The server is communicatively connected only to the first target device. The target channel is one of the communication channels that start from the first target device and connect all the devices. A second control unit, configured to control each of the devices to communicate with the server through the target channel.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 8.
11. A processor, characterized in that, The processor is configured to run a program, wherein the program, when running, executes the method according to any one of claims 1 to 8.
12. An electronic device, characterized in that, Comprising: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include those for executing the method according to any one of claims 1 to 8.
13. An Internet of Things architecture, characterized in that, Comprising: The Internet of Things, including a plurality of networked devices; A controller, configured to execute the method according to any one of claims 1 to 8; A server, communicatively connected to at least one of the devices.
Citation Information
Patent Citations
Connection processing method and device, electronic equipment and computer readable storage medium
CN112291316A
Network distribution method and device, storage medium and electronic equipment
CN112533206A