Communication method, apparatus, device, storage medium, and system
By predicting user behavior through the user terminal and adjusting the communication cycle between the RF terminal and the RF gateway, the problem of long response time of the RF terminal is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN ALLIED CONTROL SYSTEM CO LTD
- Filing Date
- 2022-07-11
- Publication Date
- 2026-05-08
AI Technical Summary
The long response time of the radio frequency terminal when controlled by the user terminal affects the user experience.
By predicting user behavior through the user terminal, a pre-control message is sent to the RF gateway. The RF gateway then generates a first communication interval modification instruction to adjust the communication cycle between the RF terminal and the RF gateway, thereby improving the response speed.
When the user terminal actually controls the radio frequency terminal, the response speed is significantly improved, enhancing the user experience.
Smart Images

Figure CN115243395B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of Internet of Things (IoT) technology, and in particular relates to a communication method, apparatus, device, storage medium, and system. Background Technology
[0002] As the master device in master-slave communication mode, the RF terminal periodically activates RF communication with the slave device's RF gateway. Battery-powered RF terminals, due to power saving and other reasons, remain in sleep mode most of the time.
[0003] However, in this communication method, when the user terminal controls the radio frequency terminal, the response time of the radio frequency terminal to the user terminal is relatively long, which affects the user experience. Summary of the Invention
[0004] This application provides a communication method, apparatus, device, storage medium, and system that can solve the problem that when a user terminal controls a radio frequency terminal, the response time of the radio frequency terminal to the user terminal is relatively long, which affects the user experience.
[0005] In a first aspect, embodiments of this application provide a communication method applied to a radio frequency terminal, the communication method comprising:
[0006] Initiate radio frequency communication with the radio frequency gateway in the first cycle;
[0007] When a first communication interval modification instruction sent by the radio frequency gateway is received during the radio frequency communication process, a second period is determined according to the first communication interval modification instruction, wherein the second period is less than the first period;
[0008] The radio frequency communication is initiated in the second cycle;
[0009] The first communication interval modification instruction is generated by the radio frequency gateway after receiving the pre-control message sent by the user terminal;
[0010] The pre-control message is sent by the user terminal to the radio frequency gateway after detecting that the application for controlling the radio frequency terminal has started running, and before the application issues a control command for the radio frequency terminal;
[0011] The radio frequency terminal is the master device in the master-slave communication mode, and the radio frequency gateway is the slave device in the master-slave communication mode.
[0012] It is understood that, in the communication method provided by the embodiments of the present invention, the radio frequency terminal has shortened the radio frequency communication cycle with the radio frequency gateway before the user terminal sends the control quality. When the user terminal actually controls the radio frequency terminal, the response speed of the radio frequency terminal to the control command issued by the user terminal is thus improved, thereby enhancing the user experience.
[0013] Specifically, when the RF terminal is the master device in master-slave communication mode and the RF gateway is the slave device in master-slave communication mode, the RF gateway can only communicate with the RF terminal after the RF terminal initiates RF communication with the RF gateway.
[0014] After detecting that the application used to control the RF terminal has started running, the user terminal sends a pre-control message to the RF gateway before the application issues control commands to the RF terminal. Since the user has opened the application, there is a high probability that the user will perform control operations on the RF device.
[0015] Sending a pre-control message at this time is equivalent to predicting the user's behavior and notifying the RF gateway of this prediction.
[0016] The radio frequency gateway sends a first communication interval modification instruction to the radio frequency terminal according to the pre-control message, so that the radio frequency terminal changes from starting radio frequency communication with the radio frequency gateway in a first cycle to starting radio frequency communication in a second cycle, wherein the second cycle is shorter than the first cycle.
[0017] Because the radio frequency terminal has shortened the radio frequency communication cycle with the radio frequency gateway based on the prediction of user behavior, the response speed of the radio frequency terminal to the control commands issued by the user terminal is improved when the user terminal actually controls the radio frequency terminal, thereby improving the user experience.
[0018] Optionally, after initiating the radio frequency communication with the second cycle, the communication method further includes:
[0019] If a second communication interval modification instruction is received from the radio frequency gateway, then the radio frequency communication is started in the first cycle;
[0020] The second communication interval modification instruction is generated by the radio frequency gateway after receiving the end control message sent by the user terminal.
[0021] Optionally, after initiating the radio frequency communication with the second cycle, the communication method further includes:
[0022] Begin calculating the duration for which the radio frequency communication is initiated in the second cycle;
[0023] If the duration is detected to exceed the preset duration, the radio frequency communication is initiated with the first cycle.
[0024] Optionally, before the measured duration exceeds a preset duration, the method further includes:
[0025] If a communication interval maintenance instruction is received from the RF gateway, the duration for starting the RF communication in the second cycle is recalculated.
[0026] The communication interval maintenance instruction is generated by the radio frequency gateway after it detects that the user terminal has performed a control operation or query operation on the radio frequency terminal.
[0027] Secondly, embodiments of this application provide a communication device applied to a radio frequency terminal. The communication device includes at least one functional module, which is used to perform the steps of the communication method described in the first aspect above, specifically including:
[0028] The radio frequency communication startup module is used to initiate radio frequency communication with the radio frequency gateway in the first cycle;
[0029] The period modification module is used to determine a second period based on the first communication interval modification instruction when it receives a first communication interval modification instruction sent by the radio frequency gateway during the radio frequency communication process. The second period is less than the first period.
[0030] The radio frequency communication initiation module is further configured to initiate the radio frequency communication in the second cycle;
[0031] The first communication interval modification instruction is generated by the radio frequency gateway after receiving the pre-control message sent by the user terminal;
[0032] The pre-control message is sent by the user terminal to the radio frequency gateway after detecting that the application for controlling the radio frequency terminal has started running, and before the application issues a control command for the radio frequency terminal;
[0033] The radio frequency terminal is the master device in the master-slave communication mode, and the radio frequency gateway is the slave device in the master-slave communication mode.
[0034] Optionally, the radio frequency communication initiation module is further configured to initiate the radio frequency communication in the first cycle if a second communication interval modification instruction is received from the radio frequency gateway;
[0035] The second communication interval modification instruction is generated by the radio frequency gateway after receiving the end control message sent by the user terminal.
[0036] Optionally, the communication device further includes a timing module.
[0037] The timing module is used to start calculating the duration for which the radio frequency communication is initiated in the second cycle;
[0038] The radio frequency communication startup module is further configured to start the radio frequency communication in the first cycle if the radio frequency terminal detects that the duration exceeds the preset duration.
[0039] Optionally, the timing module is further configured to, if the radio frequency terminal receives a communication interval maintenance instruction sent by the radio frequency gateway, restart the calculation of the duration for starting the radio frequency communication in the second cycle;
[0040] The communication interval maintenance instruction is generated by the radio frequency gateway after it detects that the user terminal has performed a control operation or query operation on the radio frequency terminal.
[0041] Thirdly, embodiments of this application provide a radio frequency terminal, the electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method described in the first aspect above.
[0042] Fourthly, embodiments of this application provide a computer-readable storage medium, comprising: the computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect above.
[0043] Fifthly, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to perform the steps of the method described in the first aspect.
[0044] Sixthly, embodiments of this application provide a communication method applied to a radio frequency gateway, the communication method comprising:
[0045] Receive pre-control messages sent by user terminals;
[0046] Based on the pre-control message, a first communication interval modification instruction is generated;
[0047] After detecting that the radio frequency terminal has started radio frequency communication with the radio frequency gateway, the first communication interval modification instruction is sent to the radio frequency terminal;
[0048] Wherein, the first communication interval modification instruction is used to instruct the radio frequency terminal to determine the second period according to the first communication interval modification instruction, and change the radio frequency communication with the radio frequency gateway to be initiated with the second period instead of the first period, wherein the second period is shorter than the first period;
[0049] The pre-control message is a message sent by the user terminal to the radio frequency gateway after detecting that the application used to control the radio frequency terminal has started running, but before the application issues a control command for the radio frequency terminal.
[0050] Optionally, after sending the first communication interval modification instruction to the radio frequency terminal, the communication method further includes:
[0051] Receive the end control message sent by the user terminal;
[0052] A second communication interval modification instruction is generated based on the termination control message;
[0053] Send the second communication interval modification command to the radio frequency terminal;
[0054] The second communication interval modification instruction is used to instruct the radio frequency terminal to start the radio frequency communication with the first cycle.
[0055] The end control message is sent by the user terminal to the radio frequency gateway when exiting the control interface for the radio frequency terminal or when exiting the application.
[0056] Optionally, after sending the first communication interval modification instruction to the radio frequency terminal, the communication method further includes:
[0057] If it is detected that the user terminal has performed a control operation or a query operation on the radio frequency terminal, a communication interval maintenance command is generated.
[0058] Send the communication interval maintenance command to the radio frequency terminal;
[0059] The communication interval maintenance instruction is used to instruct the radio frequency terminal to restart the calculation of the duration for which the radio frequency communication is initiated in the second cycle.
[0060] In a seventh aspect, embodiments of this application provide a communication device applied to a radio frequency gateway. The communication device includes at least one functional module, which performs the steps of the communication method described in the sixth aspect above, specifically including:
[0061] The pre-control message receiving module is used to receive pre-control messages sent by the user terminal.
[0062] The first communication interval modification instruction generation module is used to generate a first communication interval modification instruction based on the pre-control message;
[0063] The first communication interval modification instruction sending module is used to send the first communication interval modification instruction to the radio frequency terminal after detecting that the radio frequency terminal has started radio frequency communication with the radio frequency gateway;
[0064] Wherein, the first communication interval modification instruction is used to instruct the radio frequency terminal to determine the second period according to the first communication interval modification instruction, and change the radio frequency communication with the radio frequency gateway to be initiated with the second period instead of the first period, wherein the second period is shorter than the first period;
[0065] The pre-control message is a message sent by the user terminal to the radio frequency gateway after detecting that the application used to control the radio frequency terminal has started running, but before the application issues a control command for the radio frequency terminal.
[0066] Optionally, the communication device further includes:
[0067] The end control message receiving module is used to receive end control messages sent by user terminals;
[0068] The second communication interval modification instruction generation module is used to generate a second communication interval modification instruction based on the end control message.
[0069] The second communication interval modification instruction sending module is used to send the second communication interval modification instruction to the radio frequency terminal;
[0070] The second communication interval modification instruction is used to instruct the radio frequency terminal to start the radio frequency communication with the first cycle.
[0071] The end control message is sent by the user terminal to the radio frequency gateway when exiting the control interface for the radio frequency terminal or when exiting the application.
[0072] Optionally, the communication device further includes:
[0073] The communication interval maintenance instruction generation module is used to generate a communication interval maintenance instruction if it is detected that the user terminal has performed a control operation or query operation on the radio frequency terminal.
[0074] A communication interval maintenance instruction sending module is used to send the communication interval maintenance instruction to the radio frequency terminal;
[0075] The communication interval maintenance instruction is used to instruct the radio frequency terminal to restart the calculation of the duration for which the radio frequency communication is initiated in the second cycle.
[0076] Eighthly, embodiments of this application provide a radio frequency gateway, the electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method described in the sixth aspect above.
[0077] Ninthly, embodiments of this application provide a computer-readable storage medium, comprising: the computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described in the sixth aspect above.
[0078] In a tenth aspect, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to perform the steps of the method described in the sixth aspect above.
[0079] Eleventhly, embodiments of this application provide a communication method applied to a user terminal, the communication method comprising:
[0080] After detecting that the application used to control the radio frequency terminal has started running, and before the application issues control commands to the radio frequency terminal, a pre-control message is sent to the radio frequency gateway.
[0081] The pre-control message is used to instruct the radio frequency gateway to generate a first communication interval modification instruction based on the pre-control message;
[0082] The first communication interval modification instruction is used to instruct the radio frequency terminal to determine the second cycle according to the first communication interval modification instruction, and to change the radio frequency communication with the radio frequency gateway from starting with the first cycle to starting with the second cycle.
[0083] Optionally, after sending a pre-control message to the radio frequency gateway, the communication method further includes:
[0084] If the control interface for the radio frequency terminal is detected to be exiting, or the application is detected to be exiting, an end control message is sent to the radio frequency gateway.
[0085] The termination control message is used to instruct the radio frequency terminal to generate a second communication interval modification instruction and send the second communication interval modification instruction to the radio frequency terminal.
[0086] The second communication interval modification instruction is used to instruct the radio frequency terminal to switch to initiating radio frequency communication with the radio frequency gateway in a first cycle.
[0087] In a twelfth aspect, embodiments of this application provide a communication device applied to a user terminal. The communication device includes at least one functional module, which is used to perform the steps of the communication method described in the eleventh aspect above, specifically including:
[0088] The pre-control message sending module is used to send a pre-control message to the radio frequency gateway after detecting that the application for controlling the radio frequency terminal has started running, and before the application issues a control command for the radio frequency terminal.
[0089] The pre-control message is used to instruct the radio frequency gateway to generate a first communication interval modification instruction based on the pre-control message;
[0090] The first communication interval modification instruction is used to instruct the radio frequency terminal to determine the second cycle according to the first communication interval modification instruction, and to change the radio frequency communication with the radio frequency gateway from starting with the first cycle to starting with the second cycle.
[0091] Optionally, the communication device further includes:
[0092] The end control message sending module is used to send an end control message to the radio frequency gateway if it detects that the control interface for the radio frequency terminal has exited or that the application has exited.
[0093] The termination control message is used to instruct the radio frequency terminal to generate a second communication interval modification instruction and send the second communication interval modification instruction to the radio frequency terminal.
[0094] The second communication interval modification instruction is used to instruct the radio frequency terminal to switch to initiating radio frequency communication with the radio frequency gateway in a first cycle.
[0095] In a thirteenth aspect, embodiments of this application provide a user terminal, the electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method described in the eleventh aspect above.
[0096] In a fourteenth aspect, embodiments of this application provide a computer-readable storage medium, comprising: the computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described in the eleventh aspect above.
[0097] In a fifteenth aspect, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to perform the steps of the method described in the eleventh aspect above.
[0098] In a sixteenth aspect, embodiments of this application provide an Internet of Things (IoT) system, the wireless network system including the radio frequency terminal described in the third aspect, the radio frequency gateway described in the eighth aspect, and the user terminal described in the thirteenth aspect.
[0099] It is understood that the beneficial effects of aspects two through sixteen above can be found in the relevant descriptions in aspect one above, and will not be repeated here. Attached Figure Description
[0100] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0101] Figure 1 This is a schematic diagram of a communication system provided in an embodiment of this application;
[0102] Figure 2 This is a schematic diagram illustrating the operation of a communication system in master-slave mode.
[0103] Figure 3 This is a schematic diagram of the response relationship of a communication system in master-slave mode;
[0104] Figure 4 This is a schematic diagram of the response relationship of an improved master-slave mode communication system provided in an embodiment of this application;
[0105] Figure 5 This is a schematic flowchart of a communication method provided in an embodiment of this application;
[0106] Figure 6 This is a schematic flowchart of a communication method provided in an embodiment of this application;
[0107] Figure 7 This is a schematic flowchart of a communication method provided in an embodiment of this application;
[0108] Figure 8 This is an information interaction flowchart of a communication method provided in an embodiment of this application;
[0109] Figure 9 This is a flowchart illustrating a communication method provided in another embodiment of this application;
[0110] Figure 10 This is a flowchart illustrating a communication method provided in another embodiment of this application;
[0111] Figure 11 This is a flowchart illustrating a communication method provided in another embodiment of this application;
[0112] Figure 12 This is a flowchart illustrating a communication method provided in another embodiment of this application;
[0113] Figure 13This is a flowchart illustrating a communication method provided in another embodiment of this application;
[0114] Figure 14 This is a flowchart illustrating a communication method provided in another embodiment of this application;
[0115] Figure 15 This is an information interaction flowchart of a communication method provided in an embodiment of this application;
[0116] Figure 16 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;
[0117] Figure 17 This is a schematic diagram of the structure of a communication device provided in another embodiment of this application;
[0118] Figure 18 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;
[0119] Figure 19 This is a schematic diagram of the structure of a communication device provided in another embodiment of this application;
[0120] Figure 20 This is a schematic diagram of the structure of a communication device provided in another embodiment of this application;
[0121] Figure 21 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;
[0122] Figure 22 This is a schematic diagram of the structure of a communication device provided in another embodiment of this application;
[0123] Figure 23 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0124] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0125] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0126] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0127] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0128] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0129] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0130] Before describing the communication method provided in the embodiments of this application, to facilitate understanding of the embodiments of this application, the following will be combined with... Figure 1 , Figure 2 , Figure 3 and Figure 4 The principles of the communication method provided in the embodiments of this application and the related concepts involved in the embodiments of this application will be explained.
[0131] Figure 1 The illustration shows a communication system 10 provided in an embodiment of this application. The system includes: a radio frequency terminal 110, a radio frequency gateway 120, and a user terminal 130.
[0132] In some embodiments, the radio frequency terminal 110 is an Internet of Things (IoT) device operating in the radio frequency band. This includes, but is not limited to, radio frequency thermostats, radio frequency temperature control valves, radio frequency air conditioner controllers, radio frequency switch controllers, and radio frequency curtain controllers.
[0133] In some embodiments, the radio frequency terminal 110 can also be connected to the actuator 111 to control the actuator, which may be a device such as an actuator valve.
[0134] In some embodiments, the radio frequency terminal 110 can be a battery-powered radio frequency terminal. Specifically, the radio frequency terminal 110 can be a battery-powered low-power radio frequency terminal.
[0135] In some embodiments, the radio frequency gateway 120 is a network device that connects the radio frequency terminal 110 and the Internet. The radio frequency gateway 120 forms a network for the radio frequency terminal 110 through radio frequency communication. After the network is formed, the user terminal 130 can access or control the radio frequency terminal through the Internet.
[0136] In some embodiments, the user terminal 130 may be a terminal device such as a smartphone, tablet computer, laptop computer, or desktop computer.
[0137] In some embodiments, the radio frequency terminal 110 and the radio frequency gateway 120 communicate via radio frequency communication.
[0138] In some embodiments, the communication system 10 further includes a router 140. In some specific examples, the router 140 may be a WiFi router.
[0139] In some embodiments, the communication system 10 further includes a server 150. In some specific examples, the server 150 may be a cloud server.
[0140] In some embodiments, server 150 is used to store data transmitted by the radio frequency terminal, such as status data of the radio frequency terminal or status data of an actuator electrically connected to the radio frequency terminal. When user terminal 130 connects to the server, the server can push the data from the radio frequency terminal to the user terminal.
[0141] In some embodiments, the user terminal 130 can directly establish wireless communication with the radio frequency gateway 120.
[0142] In other embodiments, the user terminal 130 can communicate with the wireless gateway through the router 140, specifically, the user terminal 130 and the radio frequency terminal can communicate through a wireless local area network established by the router 140.
[0143] In some other embodiments, the user terminal 130 can communicate with the wireless gateway through the server 150 and the router 140. Specifically, the user terminal 130 can communicate with the server 150 through a wireless communication network, the server 150 can communicate with the router 140 through a wired and / or wireless network, and the radio frequency gateway 120 can communicate with the server 150 through a wireless local area network established by the wireless router.
[0144] In some embodiments, the radio frequency terminal 110 is the master device in the master-slave communication mode, and the radio frequency gateway 120 is the slave device in the master-slave communication mode.
[0145] exist Figure 1 In the communication system shown, in some embodiments, because the radio frequency (RF) terminals are battery-powered, they are in sleep mode most of the time for power saving reasons. Alternatively, if too many RF terminals are connected to the RF gateway, they are in sleep mode most of the time to reduce network congestion. In these cases, the RF terminals periodically initiate RF communication with the RF gateway.
[0146] like Figure 2 As shown, the RF terminal periodically initiates RF communication with the RF gateway. When the RF terminal has not initiated RF communication, the RF gateway waits for it to communicate. Only after the RF terminal initiates RF communication can the RF gateway communicate with it.
[0147] Specifically, the radio frequency terminal periodically wakes up and actively sends wireless data to the radio frequency gateway. After receiving the wireless data sent by the radio frequency terminal, the radio frequency gateway responds within a specified time, thereby establishing radio frequency communication between the radio frequency terminal and the radio frequency gateway.
[0148] When the RF terminal is the master device and the RF gateway is the slave device, control commands sent by the user terminal to the RF terminal via the Internet are buffered on the RF gateway, awaiting RF communication. The control commands are only sent to the RF terminal when the RF gateway responds to the RF terminal.
[0149] In this case, the period during which the radio frequency terminal initiates radio frequency communication with the radio frequency gateway, that is, the time interval corresponding to this period, will determine the response speed of the radio frequency terminal to the user terminal.
[0150] like Figure 3 As shown, if the time interval is too long, such as 2 minutes, the longest response time that the user needs to wait for when controlling the radio frequency terminal through the application in the user terminal will be greater than or equal to the time interval, resulting in a poor user experience.
[0151] This application provides a communication method, such as... Figure 4 As shown, the user terminal predicts user behavior and determines that the user is about to use the user terminal to control the radio frequency terminal. At this time, the user terminal sends a pre-control message to the radio frequency gateway. The radio frequency gateway generates a first communication interval modification instruction based on the pre-control message. Then, the radio frequency gateway sends the first communication interval modification instruction to the radio frequency terminal, causing the radio frequency terminal to change the default period for initiating radio frequency communication with the radio frequency gateway to a shorter period.
[0152] For example, the default radio frequency communication cycle of the radio frequency terminal is changed from 2 minutes to 10 seconds. This reduces the response time of the radio frequency terminal from a maximum of about 2 minutes to a maximum of about 10 seconds when the user actually sends control commands to the radio frequency terminal using the application, thus improving response speed and enhancing the user experience.
[0153] To better understand the technical solution of this application, the following embodiments illustrate the communication method provided by this application.
[0154] It is understood that, for clarity, this application combines different implementation methods into several embodiments for illustration. Those skilled in the art, upon learning of this application and guided by the principles and embodiments provided herein, can add, subtract, and combine various implementation methods from different embodiments based on the principles of the embodiments of this application to obtain more implementation methods.
[0155] Example 1
[0156] Figure 5 This application illustrates a communication method provided by an embodiment of the present application, which is applied to the above-mentioned... Figure 1 The radio frequency terminal 110 in the communication system 10 shown can be implemented by the software and / or hardware of the radio frequency terminal. For example... Figure 5 As shown, the method includes steps S110 to S130. The specific implementation principle of each step is as follows:
[0157] S110 initiates radio frequency communication with the radio frequency gateway in the first cycle.
[0158] In some implementations, the radio frequency (RF) terminal initiates RF communication with the RF gateway in a first cycle. Specifically, the RF terminal periodically wakes up at the time interval corresponding to the first cycle and actively sends wireless data to the RF gateway. Upon receiving the wireless data sent by the RF terminal, the RF gateway responds within a specified time, thereby establishing RF communication between the RF terminal and the RF gateway.
[0159] It is understandable that during the period when the radio frequency terminal is not woken up, it is in a sleep state, which means that the radio frequency terminal cannot send or receive wireless data with the radio frequency gateway.
[0160] In some specific implementations, the radio frequency terminal includes a wake-up timing module, which can be implemented by software and / or hardware. The wake-up timing module periodically wakes up the radio frequency terminal at a first time interval, that is, a first cycle.
[0161] In some specific implementations, the first cycle can be 2 minutes. In other implementations, to make the radio frequency terminal more power-efficient or reduce the congestion of the radio frequency network, the first cycle can be set to be longer than 2 minutes. Those skilled in the art can choose according to the actual situation.
[0162] S120, when a first communication interval modification instruction sent by the radio frequency gateway is received during the radio frequency communication process, a second period is determined according to the first communication interval modification instruction, wherein the second period is less than the first period.
[0163] In some implementations, during any communication process in which the radio frequency terminal initiates radio frequency communication with the radio frequency gateway in a first cycle, if the radio frequency terminal receives a first communication interval modification instruction sent by the radio frequency gateway, the radio frequency terminal determines a second cycle based on the first communication interval modification instruction, wherein the second cycle is shorter than the first cycle.
[0164] In some specific examples, the first communication interval modification instruction includes a second time interval, that is, a time interval corresponding to the second cycle. The radio frequency terminal determines the second cycle based on the second time interval included in the first communication interval modification instruction.
[0165] In other specific examples, the first communication interval modification instruction includes first identification information. The radio frequency terminal, based on the first identification information, obtains a pre-stored second time interval and uses this second time interval as the second cycle. The first identification information can be the instruction identifier of the first communication interval modification instruction, or other identification information that can distinguish the first communication interval modification instruction from other instructions. It is understood that, in this example, the second time interval can be pre-stored in a storage medium coupled to the radio frequency terminal.
[0166] S130, the radio frequency communication is initiated in the second cycle.
[0167] In some implementations, the radio frequency terminal, after determining the second cycle, switches to initiating the radio frequency communication with the second cycle.
[0168] In a specific example, the radio frequency terminal periodically wakes up at the time interval corresponding to the second cycle and actively sends wireless data to the radio frequency gateway. After receiving the wireless data sent by the radio frequency terminal, the radio frequency gateway responds within a specified time, thereby establishing radio frequency communication between the radio frequency terminal and the radio frequency gateway.
[0169] It is understandable that in step S110, if the radio frequency terminal does not receive the first communication interval modification instruction during radio frequency communication, such as Figure 8 As shown, it cycles between the wake-up state and the sleep state according to the first cycle.
[0170] Similarly, it is understandable that in step 130, if the radio frequency terminal is not triggered by other communication interval modification conditions during radio frequency communication, such as... Figure 8 As shown, it cycles between the wake-up state and the sleep state according to the second cycle.
[0171] It should be noted that the conditions under which the RF terminal needs to cooperate with other devices in the communication system 10 to execute steps S110 to S130 are as follows: the first communication interval modification instruction is generated by the RF gateway after receiving the pre-control message sent by the user terminal; the pre-control message is sent by the user terminal to the RF gateway after detecting that the application for controlling the RF terminal has started running, and before the application issues a control instruction for the RF terminal; the RF terminal is the master device in the master-slave communication mode, and the RF gateway is the slave device in the master-slave communication mode.
[0172] Figure 6 This application illustrates a communication method provided by an embodiment of the present application, which is applied to the above-mentioned... Figure 1 The radio frequency gateway 120 in the communication system 10 shown can be implemented by the software and / or hardware of the radio frequency gateway. For example... Figure 6 As shown, the method includes steps S210 to S230. The specific implementation principle of each step is as follows:
[0173] S210 receives a pre-control message sent by the user terminal.
[0174] In some implementations, the user terminal predicts the user's behavior. If it predicts that the user is about to perform a control operation on the radio frequency terminal, it sends a pre-control message to the radio frequency gateway. The radio frequency gateway can receive the pre-control message sent by the user terminal through communication methods including but not limited to those listed in the above embodiments.
[0175] S220, Generate a first communication interval modification instruction based on the pre-control message.
[0176] In some embodiments, after receiving the pre-control message, the RF gateway generates a first communication interval modification instruction corresponding to the RF terminal identification information based on the RF terminal identification information in the pre-control message.
[0177] In some specific examples, the RF gateway may indicate a communication time interval, such as 10 seconds, in the first communication interval modification instruction. The RF terminal then determines the second cycle based on this communication time interval.
[0178] In other specific examples, the RF gateway may add first identification information to the first communication interval modification instruction. Specifically, the first identification information is used to distinguish the first communication interval modification instruction from other instructions. Based on the first identification information, the RF terminal determines that it has received a first communication interval modification instruction, and accordingly searches for the time interval corresponding to the second cycle in the storage medium coupled to the RF terminal.
[0179] S230: After detecting that the radio frequency terminal has started radio frequency communication with the radio frequency gateway, the first communication interval modification instruction is sent to the radio frequency terminal.
[0180] In some implementations, the radio frequency (RF) terminal initiates RF communication with the RF gateway in a first cycle. The wireless gateway cannot send a first communication interval modification command to the RF terminal without receiving wireless data from the RF terminal initiating RF communication. The first communication interval modification command can only be sent to the RF terminal after the RF gateway detects that the RF terminal has initiated RF communication with the RF gateway. In other words, the cached first communication interval modification command can only be sent to the RF terminal after the RF gateway detects the wireless data sent by the RF terminal.
[0181] It should be noted that the conditions under which the RF gateway needs to cooperate with other devices in the communication system 10 to execute steps S210 to S230 are as follows: the first communication interval modification instruction is used to instruct the RF terminal to determine the second period according to the first communication interval modification instruction; the RF terminal changes from starting the RF communication with the RF gateway with the first period to starting the RF communication with the second period; the second period is shorter than the first period; the pre-control message is a message sent by the user terminal to the RF gateway after detecting that the application for controlling the RF terminal has started running, and before the application issues a control instruction for the RF terminal.
[0182] Figure 7 This application illustrates a communication method provided by an embodiment of the present application, which is applied to the above-mentioned... Figure 1 The user terminal 130 in the communication system 10 shown can be implemented by the software and / or hardware of the user terminal. For example... Figure 7 As shown, the method includes step S310. The specific implementation principle of each step is as follows:
[0183] S310: After detecting that the application for controlling the radio frequency terminal has started running, and before the application issues a control command for the radio frequency terminal, a pre-control message is sent to the radio frequency gateway.
[0184] In some implementations, the user terminal predicts the user's behavior. If it predicts that the user is about to perform a control operation on the radio frequency terminal, it sends a pre-control message to the radio frequency gateway.
[0185] In some specific examples, after the user terminal detects that an application for controlling the radio frequency terminal has started running, and before the application issues control commands to the radio frequency terminal, it sends a pre-control message to the radio frequency gateway. Specifically, this pre-control message may contain identification information of the radio frequency terminal that the application can control.
[0186] Understandably, when a user picks up their user terminal and clicks on the application used to control the RF terminal, it can be assumed that the user is about to query the status of the RF terminal controlled by the application, or is about to control the RF terminal. Based on this prediction, the user terminal generates a pre-control message and sends it to the RF gateway.
[0187] In other specific examples, when the user terminal detects that the application used to control the radio frequency terminal has started running, it sends a pre-control message to the radio frequency gateway. This pre-control message contains identification information of all radio frequency gateways that the application can control.
[0188] In some specific examples, when the user terminal detects that a control for a specific RF terminal in the application used to control the RF terminal has been triggered, it sends a pre-control message to the RF gateway. This pre-control message contains the identification information of the RF terminal corresponding to the control. The triggering of the RF terminal control may include, but is not limited to, the control being selected, clicked, run, or viewed.
[0189] It should be noted that the conditions under which the user terminal needs to cooperate with other devices in the communication system 10 to execute step S310 are as follows: the pre-control message is used to instruct the radio frequency gateway to generate a first communication interval modification instruction according to the pre-control message; the first communication interval modification instruction is used to instruct the radio frequency terminal to determine a second cycle according to the first communication interval modification instruction, and the radio frequency terminal changes from starting the radio frequency communication with the radio frequency gateway with the first cycle to starting the radio frequency communication with the second cycle.
[0190] To better understand the various implementation methods of the embodiments of this application, Figure 8 The information interaction flow of a communication method provided in an embodiment of this application is illustrated.
[0191] See Figure 8User terminal 130 predicts that the user is about to perform a control operation on radio frequency terminal 110 and sends a pre-control message to radio frequency gateway 120. Specifically, after detecting that the application used to control the radio frequency terminal has started running, the user terminal sends a pre-control message to the radio frequency gateway before the application issues a control command for the radio frequency terminal.
[0192] The RF gateway generates a first communication interval modification instruction based on the pre-control message sent by the user terminal, and sends the first communication interval modification instruction to the RF terminal after the RF terminal starts RF communication with the RF gateway in the first cycle.
[0193] After receiving the first communication interval modification instruction, the radio frequency terminal determines a second period based on the instruction. The second period is shorter than the first period. The radio frequency terminal then initiates the radio frequency communication using the second period.
[0194] It is understandable that when the RF terminal is the master device in master-slave communication mode and the RF gateway is the slave device in master-slave communication mode, the RF gateway can only communicate with the RF terminal after the RF terminal initiates RF communication with the RF gateway.
[0195] Since the user has opened the application, there is a high probability that the user will perform control operations on the radio frequency device. After detecting that the application used to control the radio frequency terminal has started running, and before the application issues control commands to the radio frequency terminal, the user terminal sends a pre-control message to the radio frequency gateway. Sending the pre-control message at this time is equivalent to predicting the user's behavior and notifying the radio frequency gateway of this prediction.
[0196] The radio frequency gateway sends a first communication interval modification instruction to the radio frequency terminal according to the pre-control message, so that the radio frequency terminal changes from starting radio frequency communication with the radio frequency gateway in a first cycle to starting the radio frequency communication in a second cycle, wherein the second cycle is shorter than the first cycle.
[0197] Because the radio frequency terminal has shortened the radio frequency communication cycle with the radio frequency gateway based on the prediction of user behavior, the response speed of the radio frequency terminal to the control commands issued by the user terminal is improved when the user terminal actually controls the radio frequency terminal, thereby improving the user experience.
[0198] It should be pointed out that Figure 8 The interactive process shown is only one combination of embodiments of this application. Those skilled in the art can add, subtract, or arrange different embodiments of this application to obtain more combinations under the guidance of the embodiments of this application.
[0199] Example 2
[0200] exist Figure 5 Based on the communication method provided in the embodiments of this application shown, Figure 9 Another embodiment of the communication method provided in this application is illustrated, such as... Figure 9 As shown, after the radio frequency terminal switches to starting the radio frequency communication with the second cycle in step S130, the communication method further includes step S140. The specific implementation principles of each step are as follows:
[0201] S140, if the second communication interval modification instruction sent by the radio frequency gateway is received, the radio frequency terminal shall switch to starting the radio frequency communication with the first cycle.
[0202] In some embodiments, if the radio frequency terminal receives a second communication interval modification instruction from the radio frequency gateway during any instance of initiating radio frequency communication with the radio frequency gateway in the second cycle, then the radio frequency terminal switches to initiating radio frequency communication in the first cycle.
[0203] In some specific implementations, the second communication interval modification instruction sent by the RF gateway includes second identification information. The RF terminal, based on the second identification information, obtains a pre-stored first time interval and uses this first time interval as the first cycle. The second identification information can be an instruction identifier for the second communication interval modification instruction, or other identification information that can distinguish the second communication interval modification instruction from other instructions. It is understood that the first time interval can be pre-stored in a storage medium coupled to the RF terminal.
[0204] In some other specific implementations, the second communication interval modification instruction sent by the RF gateway may include a first time interval corresponding to the first cycle. The RF terminal determines the first cycle based on the first time interval and starts the RF communication according to the first cycle.
[0205] It should be noted that the second communication interval modification instruction is generated by the radio frequency gateway after receiving the end control message sent by the user terminal.
[0206] exist Figure 6 Based on the communication method provided in the embodiments of this application shown, Figure 10 Another embodiment of the communication method provided in this application is illustrated, such as... Figure 10 As shown, after sending the first communication interval modification instruction to the radio frequency terminal in step S230, the communication method further includes steps S241 to S243. The specific implementation principles of each step are as follows:
[0207] S241, Receive the end control message sent by the user terminal.
[0208] In some implementations, the user terminal predicts the user's behavior. If the prediction indicates that the user will no longer control the radio frequency terminal, the user terminal sends a termination control message to the radio frequency gateway. The radio frequency gateway receives the termination control message from the user terminal through various implementations, including but not limited to those provided in the above embodiments.
[0209] S242, Generate a second communication interval modification instruction based on the termination control message.
[0210] In some implementations, after receiving the termination control message, the RF gateway generates a second communication interval modification instruction corresponding to the RF terminal identification information in the termination control message.
[0211] In some specific examples, the RF gateway can add second identification information to the second communication interval modification instruction. Specifically, the second identification information is used to distinguish the second communication interval modification instruction from other instructions. Based on the second identification information, the RF terminal determines that it has received a second communication interval modification instruction, and accordingly searches for the first time interval corresponding to the first cycle in the storage medium coupled to the RF terminal, and determines the first cycle based on the first time interval.
[0212] In other specific examples, the RF gateway may indicate a first time interval, such as 2 minutes, in the second communication interval modification instruction. The RF terminal determines a first cycle based on this first time interval.
[0213] S243, send the second communication interval modification command to the radio frequency terminal.
[0214] In some implementations, after detecting that the radio frequency terminal has initiated radio frequency communication in the second cycle, the radio frequency gateway sends the second communication interval modification command to the radio frequency terminal. Specifically, after generating the second communication interval modification command, the radio frequency gateway buffers the command, waiting for the radio data sent by the radio frequency terminal after it is woken up. After receiving the radio data sent by the radio frequency terminal after it is woken up, the radio frequency gateway sends the second communication interval modification command to the radio frequency terminal.
[0215] It should be noted that the second communication interval modification instruction is used to instruct the radio frequency terminal to start the radio frequency communication with the first cycle; the end control message is a message sent by the user terminal to the radio frequency gateway when exiting the control interface for the radio frequency terminal or exiting the application.
[0216] exist Figure 7 Based on the communication method provided in the embodiments of this application shown, Figure 11 Another embodiment of the communication method provided in this application is illustrated, such as... Figure 11As shown, after sending the pre-control message to the RF gateway in step S310, the communication method further includes step S320. The specific implementation principles of each step are as follows:
[0217] S320: If the control interface for the radio frequency terminal is detected to be exiting, or the application is detected to be exiting, an end control message is sent to the radio frequency gateway.
[0218] In some implementations, the user terminal predicts the user's behavior, and when the prediction result is that the user will no longer exercise control over the radio frequency terminal, it sends an end control message to the radio frequency gateway.
[0219] In some specific examples, if the user terminal detects that the control interface for the radio frequency terminal has exited, or that the application has exited, this method can predict that the user will no longer use the application to control the radio frequency terminal in the short term. The user terminal then sends a control termination message to the radio frequency gateway at this time or afterward. Specifically, the control termination message may contain the identification information of the corresponding radio frequency gateway.
[0220] The control interface for the radio frequency terminal can be a control for a specific radio frequency terminal within an application that controls the radio frequency terminal.
[0221] It should be noted that the termination control message is used to instruct the radio frequency terminal to generate a second communication interval modification instruction and send the second communication interval modification instruction to the radio frequency terminal; the second communication interval modification instruction is used to instruct the radio frequency terminal to switch to starting the radio frequency communication with the radio frequency gateway in the first cycle.
[0222] See Figure 8 The user terminal predicts user behavior. If the prediction indicates that the user will no longer control the radio frequency (RF) terminal, it sends a termination control message to the RF gateway. Specifically, if the user terminal detects that the control interface for the RF terminal has exited, or that the application has exited, it can predict that the user will not use the application to control the RF terminal for a short period. The user terminal then sends a termination control message to the RF gateway at this time or afterward. The termination control message contains the corresponding RF terminal identification information.
[0223] After receiving the termination control message, the RF gateway generates a second communication interval modification command corresponding to the RF terminal identification information in the termination control message. The RF gateway then sends this second communication interval modification command to the RF terminal after the RF terminal initiates RF communication in the second cycle.
[0224] If, during any instance of initiating radio frequency communication in the second cycle and communicating with the radio frequency gateway, the radio frequency terminal receives a second communication interval modification instruction sent by the radio frequency gateway, then the radio frequency terminal will switch to initiating radio frequency communication in the first cycle.
[0225] Understandably, the RF gateway uses the user terminal to send an end message and generates a second communication interval modification command, causing the RF terminal to switch to starting RF communication with the first cycle, effectively restoring the RF terminal to a long sleep state. Timely restoration of the RF terminal to a long sleep state when it is predicted that the user will no longer control the RF terminal can extend the battery life of battery-powered RF terminals. Combined with the implementation method in Embodiment 1, this achieves a balance between power saving and fast response in the RF terminal, resulting in a better user experience.
[0226] Example 3
[0227] exist Figure 5 Based on the communication method provided in the embodiments of this application shown, Figure 12 Another embodiment of the communication method provided in this application is illustrated, such as... Figure 12 As shown, after the radio frequency terminal switches to starting the radio frequency communication with the second cycle in step S130, the communication method further includes steps S150 and S160. The specific implementation principles of each step are as follows:
[0228] S150, begin calculating the duration for initiating the radio frequency communication with the second cycle.
[0229] In some implementations, the radio frequency terminal starts a timer to calculate the duration for which the radio frequency communication is initiated in a second cycle. It should be understood that this timer can be implemented in software and / or hardware, without limitation.
[0230] S160, if the duration is detected to exceed the preset duration, then the radio frequency communication is started with the first cycle.
[0231] In some implementations, a preset duration, such as 10 minutes, can be set in the radio frequency terminal. If the radio frequency terminal detects through the aforementioned timer that the duration of switching to starting radio frequency communication with the second cycle exceeds the preset duration, the radio frequency terminal switches to starting radio frequency communication with the first cycle. For example, if the preset duration is 10 minutes, and the radio frequency terminal has switched to starting radio frequency communication with the second cycle for 10 minutes, the radio frequency terminal switches to starting radio frequency communication with the first cycle.
[0232] Understandably, by detecting whether the duration of starting radio frequency communication in the second cycle exceeds the preset duration, the radio frequency terminal automatically reverts to starting radio frequency communication in the first cycle. This allows the radio frequency terminal to maximize response speed while ensuring power saving for battery-powered radio frequency terminals or reducing network congestion in the radio frequency band.
[0233] Example 4
[0234] exist Figure 12 Based on the communication method provided in the embodiments of this application shown, Figure 13 Another embodiment of the communication method provided in this application is illustrated, such as... Figure 13 As shown, in step S160, before the radio frequency terminal detects that the duration exceeds the preset duration, the communication method further includes step S151. The specific implementation principles of each step are as follows:
[0235] S151, if a communication interval maintenance instruction is received from the RF gateway, the calculation of the duration for starting the RF communication in the second cycle is restarted.
[0236] In some implementations, the radio frequency terminal may reset the aforementioned timer to 0 and restart the calculation of the duration for initiating the radio frequency communication in the second cycle.
[0237] It should be noted that the communication interval maintenance instruction is an instruction generated by the radio frequency gateway after the radio frequency gateway detects that the user terminal has performed a control operation or query operation on the radio frequency terminal.
[0238] exist Figure 6 Based on the communication method provided in the embodiments of this application shown, Figure 14 Another embodiment of the communication method provided in this application is illustrated, such as... Figure 14 As shown, after sending the first communication interval modification instruction to the radio frequency terminal in step S230, the communication method further includes steps S251 and S252. The specific implementation principles of each step are as follows:
[0239] S251, if it is detected that the user terminal has performed a control operation or query operation on the radio frequency terminal, a communication interval maintenance command is generated.
[0240] S252, the communication interval maintenance command is sent to the radio frequency terminal.
[0241] In some implementations, the RF gateway detects the user terminal's control or query operations on the RF terminal in ways including, but not limited to, the following: the RF gateway receives a control operation message from the user terminal on the RF terminal; the RF gateway receives a status query message from the user terminal on the RF terminal; the RF gateway detects that the user terminal accesses a server, and the user terminal queries the RF terminal connected to the RF gateway through the server.
[0242] In some implementations, if the RF gateway detects that the user terminal has performed a control operation or query operation on the RF terminal, it generates a communication interval maintenance instruction and sends the communication interval maintenance instruction to the corresponding RF terminal.
[0243] To better understand the various implementation methods of the embodiments of this application, Figure 15 The information interaction flow of a communication method provided in an embodiment of this application is illustrated.
[0244] See Figure 15 After the radio frequency terminal switches to starting the radio frequency communication with the second cycle, the radio frequency terminal begins to calculate the duration of starting the radio frequency communication with the second cycle.
[0245] If the RF gateway detects that the user terminal has performed a control operation or query operation on the RF terminal before the RF terminal detects that the time exceeds the preset time, it generates a communication interval maintenance instruction and sends the communication interval maintenance instruction to the RF terminal.
[0246] When the RF terminal receives the communication interval maintenance instruction sent by the RF gateway, it restarts the calculation of the duration for starting RF communication in the second cycle.
[0247] If the RF terminal detects that the duration exceeds the preset duration, it will switch to initiating RF communication with the first cycle. The RF terminal will continue to initiate RF communication with the first cycle until it receives another first communication interval modification command from the RF gateway.
[0248] Understandably, when the RF gateway detects that a user terminal has performed a control or query operation targeting the RF terminal, it generates a communication interval maintenance command and sends it to the RF terminal. This command instructs the RF terminal to recalculate the duration of the second cycle of RF communication, thus maintaining the RF terminal's operation in a second-cycle-based communication mode. This prevents the RF terminal from switching to the first-cycle-based communication during use, which could lead to a decrease in the response speed to user commands and cause users to mistakenly believe there is a malfunction, thereby improving the user experience.
[0249] It should be pointed out that Figure 15The interactive flow shown is only one combination of embodiments of this application, and those skilled in the art can obtain more combinations under the teachings of the embodiments of this application.
[0250] For example, the implementation methods in Embodiment 3 or Embodiment 4 can be combined with Embodiment 2 respectively. After the radio frequency terminal is changed to start the radio frequency communication with the second cycle, the radio frequency terminal starts to calculate the duration of starting the radio frequency communication with the second cycle. If the radio frequency terminal does not receive the second communication interval modification instruction sent by the radio frequency gateway for a preset time, it will switch to starting the radio frequency communication with the first cycle.
[0251] For example, the implementation methods in Embodiment 3 or Embodiment 4 can be combined with Embodiment 2 respectively. If the radio frequency terminal receives the second communication interval modification instruction sent by the radio frequency gateway within a preset time period, the timing will stop and the radio frequency communication will be started in the first cycle.
[0252] Example 5
[0253] Corresponding to the above Figure 5 The communication method shown is as follows: Figure 16 The present application provides a communication device M100, which is applied to a radio frequency terminal. The communication device M100 includes:
[0254] The radio frequency communication startup module M110 is used to initiate radio frequency communication with the radio frequency gateway in the first cycle;
[0255] The period modification module M120 is used to determine a second period based on the first communication interval modification instruction when it receives a first communication interval modification instruction sent by the radio frequency gateway during the radio frequency communication process. The second period is less than the first period.
[0256] The radio frequency communication startup module M110 is also used to start the radio frequency communication in the second cycle;
[0257] The first communication interval modification instruction is generated by the radio frequency gateway after receiving the pre-control message sent by the user terminal;
[0258] The pre-control message is sent by the user terminal to the radio frequency gateway after detecting that the application for controlling the radio frequency terminal has started running, and before the application issues a control command for the radio frequency terminal;
[0259] The radio frequency terminal is the master device in the master-slave communication mode, and the radio frequency gateway is the slave device in the master-slave communication mode.
[0260] Optionally, the radio frequency communication initiation module M110 is further configured to initiate the radio frequency communication in the first cycle if a second communication interval modification instruction is received from the radio frequency gateway.
[0261] The second communication interval modification instruction is generated by the radio frequency gateway after receiving the end control message sent by the user terminal.
[0262] Optional, such as Figure 17 As shown, the communication device M100 also includes a timing module M130.
[0263] The timing module M130 is used to start calculating the duration for which the radio frequency communication is initiated in the second cycle;
[0264] The radio frequency communication startup module M110 is further configured to start the radio frequency communication in the first cycle if the radio frequency terminal detects that the duration exceeds the preset duration.
[0265] Optionally, the timing module M130 is further configured to, if the radio frequency terminal receives a communication interval maintenance instruction sent by the radio frequency gateway, restart the calculation of the duration for starting the radio frequency communication in the second cycle;
[0266] The communication interval maintenance instruction is generated by the radio frequency gateway after it detects that the user terminal has performed a control operation or query operation on the radio frequency terminal.
[0267] Corresponding to the above Figure 6 The communication method shown is as follows: Figure 17 As shown in the embodiment of this application, a communication device M200 is provided, which is applied to a radio frequency gateway. The communication device M200 includes:
[0268] The pre-control message receiving module M210 is used to receive pre-control messages sent by the user terminal;
[0269] The first communication interval modification instruction generation module M220 is used to generate a first communication interval modification instruction based on the pre-control message;
[0270] The first communication interval modification instruction sending module M230 is used to send the first communication interval modification instruction to the radio frequency terminal after detecting that the radio frequency terminal has started radio frequency communication with the radio frequency gateway.
[0271] Wherein, the first communication interval modification instruction is used to instruct the radio frequency terminal to determine the second period according to the first communication interval modification instruction, and change the radio frequency communication with the radio frequency gateway to be initiated with the second period instead of the first period, wherein the second period is shorter than the first period;
[0272] The pre-control message is a message sent by the user terminal to the radio frequency gateway after detecting that the application used to control the radio frequency terminal has started running, but before the application issues a control command for the radio frequency terminal.
[0273] Optionally, the communication device M200 further includes:
[0274] The M240 is a termination control message receiving module used to receive termination control messages sent by user terminals.
[0275] The second communication interval modification instruction generation module M250 is used to generate a second communication interval modification instruction based on the end control message.
[0276] The second communication interval modification instruction sending module M260 is used to send the second communication interval modification instruction to the radio frequency terminal;
[0277] The second communication interval modification instruction is used to instruct the radio frequency terminal to start the radio frequency communication with the first cycle.
[0278] The end control message is sent by the user terminal to the radio frequency gateway when exiting the control interface for the radio frequency terminal or when exiting the application.
[0279] Optionally, the communication device M200 further includes:
[0280] The communication interval maintenance instruction generation module M270 is used to generate a communication interval maintenance instruction if it is detected that the user terminal has performed a control operation or query operation on the radio frequency terminal.
[0281] The communication interval maintenance instruction sending module M280 is used to send the communication interval maintenance instruction to the radio frequency terminal;
[0282] The communication interval maintenance instruction is used to instruct the radio frequency terminal to restart the calculation of the duration for which the radio frequency communication is initiated in the second cycle.
[0283] Corresponding to the above Figure 7 The communication method shown is as follows: Figure 18 As shown in the embodiment of this application, a communication device M300 is provided and applied to a user terminal. The communication device M300 includes:
[0284] The pre-control message sending module M310 is used to send a pre-control message to the radio frequency gateway after detecting that the application for controlling the radio frequency terminal has started running, and before the application issues a control command for the radio frequency terminal.
[0285] The pre-control message is used to instruct the radio frequency gateway to generate a first communication interval modification instruction based on the pre-control message;
[0286] The first communication interval modification instruction is used to instruct the radio frequency terminal to determine the second cycle according to the first communication interval modification instruction, and to change the radio frequency communication with the radio frequency gateway from starting with the first cycle to starting with the second cycle.
[0287] Optionally, the communication device M300 further includes:
[0288] The end control message sending module M320 is used to send an end control message to the radio frequency gateway when it is detected that the control interface for the radio frequency terminal has exited or the application has exited.
[0289] The termination control message is used to instruct the radio frequency terminal to generate a second communication interval modification instruction and send the second communication interval modification instruction to the radio frequency terminal.
[0290] The second communication interval modification instruction is used to instruct the radio frequency terminal to switch to initiating radio frequency communication with the radio frequency gateway in a first cycle.
[0291] Example 6
[0292] Figure 23 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. The electronic device is used to implement the aforementioned radio frequency terminal, radio frequency gateway, or user terminal.
[0293] like Figure 23 As shown, the electronic device D10 of this embodiment includes: at least one processor D100 ( Figure 23 (Only one is shown in the diagram), memory D101, and computer program D102 stored in said memory D101 and executable on said at least one processor D100, wherein the processor D100 executes said computer program D102 to implement the steps in any of the above method embodiments.
[0294] The electronic device may include, but is not limited to, a processor D100 and a memory D101. Those skilled in the art will understand that... Figure 23 This is merely an example of electronic device D10 and does not constitute a limitation on electronic device D10. It may include more or fewer components than shown, or combine certain components, or different components, such as input / output devices, network access devices, etc.
[0295] The processor D100 can be a Central Processing Unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0296] In some embodiments, the memory D101 may be an internal storage unit of the electronic device D10, such as a hard disk or memory of the electronic device D10. In other embodiments, the memory D101 may be an external storage device of the electronic device D10, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device D10. Furthermore, the memory D101 may include both internal and external storage units of the electronic device D10. The memory D101 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory D101 can also be used to temporarily store data that has been output or will be output.
[0297] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0298] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0299] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0300] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the above-described method embodiments.
[0301] This application provides a computer program product that, when run on an electronic device terminal, enables the electronic device terminal to implement the steps described in the above-described method embodiments.
[0302] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying the computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks.
[0303] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0304] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0305] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0306] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0307] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A communication method, characterized in that, The communication method, applied to radio frequency terminals, includes: Initiate radio frequency communication with the radio frequency gateway in the first cycle; When a first communication interval modification instruction sent by the radio frequency gateway is received during the radio frequency communication process, a second period is determined according to the first communication interval modification instruction, wherein the second period is less than the first period; The radio frequency communication is initiated in the second cycle; The first communication interval modification instruction is generated by the radio frequency gateway after receiving the pre-control message sent by the user terminal; The pre-control message is sent by the user terminal to the radio frequency gateway after detecting that the application for controlling the radio frequency terminal has started running, and before the application issues a control command for the radio frequency terminal; The radio frequency terminal is the master device in the master-slave communication mode, and the radio frequency gateway is the slave device in the master-slave communication mode; The first communication interval modification instruction contains first identification information. The radio frequency terminal obtains a pre-stored second time interval based on the first identification information and uses the second time interval as the second period.
2. The communication method as described in claim 1, characterized in that, After initiating the radio frequency communication with the second cycle, the communication method further includes: If a second communication interval modification instruction is received from the radio frequency gateway, then the radio frequency communication is started in the first cycle; The second communication interval modification instruction is generated by the radio frequency gateway after receiving the end control message sent by the user terminal.
3. The communication method as described in claim 1, characterized in that, After initiating the radio frequency communication with the second cycle, the communication method further includes: Begin calculating the duration for which the radio frequency communication is initiated in the second cycle; If the duration is detected to exceed the preset duration, the radio frequency communication is initiated with the first cycle.
4. The communication method as described in claim 3, characterized in that, Before the measured duration exceeds a preset duration, the method further includes: If a communication interval maintenance instruction is received from the RF gateway, the duration for starting the RF communication in the second cycle is recalculated. The communication interval maintenance instruction is generated by the radio frequency gateway after it detects that the user terminal has performed a control operation or query operation on the radio frequency terminal.
5. A communication device, characterized in that, Applied to a radio frequency terminal, the communication device includes at least one functional module, which is used to perform the steps of the communication method in any one of claims 1 to 4.
6. A radio frequency terminal, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, When the processor executes the computer program, it implements the communication method as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the communication method as described in any one of claims 1 to 4.
8. A communication method, characterized in that, Applied to radio frequency gateways, the communication method includes: Receive pre-control messages sent by user terminals; Based on the pre-control message, a first communication interval modification instruction is generated; After detecting that the radio frequency terminal has started radio frequency communication with the radio frequency gateway, the first communication interval modification instruction is sent to the radio frequency terminal; Wherein, the first communication interval modification instruction is used to instruct the radio frequency terminal to determine the second period according to the first communication interval modification instruction, and change the radio frequency communication with the radio frequency gateway to be initiated with the second period instead of the first period, wherein the second period is shorter than the first period; The pre-control message is a message sent by the user terminal to the radio frequency gateway after detecting that the application for controlling the radio frequency terminal has started running, but before the application issues a control command for the radio frequency terminal. The first communication interval modification instruction contains first identification information. The radio frequency terminal obtains a pre-stored second time interval based on the first identification information and uses the second time interval as the second period. The radio frequency terminal is the master device in the master-slave communication mode, and the radio frequency gateway is the slave device in the master-slave communication mode.
9. The communication method as described in claim 8, characterized in that, After sending the first communication interval modification instruction to the radio frequency terminal, the communication method further includes: Receive the end control message sent by the user terminal; A second communication interval modification instruction is generated based on the termination control message; Send the second communication interval modification command to the radio frequency terminal; The second communication interval modification instruction is used to instruct the radio frequency terminal to start the radio frequency communication with the first cycle. The end control message is sent by the user terminal to the radio frequency gateway when exiting the control interface for the radio frequency terminal or when exiting the application.
10. The communication method as described in claim 8, characterized in that, After sending the first communication interval modification instruction to the radio frequency terminal, the communication method further includes: If it is detected that the user terminal has performed a control operation or a query operation on the radio frequency terminal, a communication interval maintenance command is generated. Send the communication interval maintenance command to the radio frequency terminal; The communication interval maintenance instruction is used to instruct the radio frequency terminal to restart the calculation of the duration for which the radio frequency communication is initiated in the second cycle.
11. A communication device, characterized in that, Applied to a radio frequency gateway, the communication device includes at least one functional module for performing the steps of the communication method of any one of claims 8 to 10.
12. A radio frequency gateway, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, When the processor executes the computer program, it implements the communication method as described in any one of claims 8 to 10.
13. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the communication method as described in any one of claims 8 to 10.
14. A communication method, characterized in that, The communication method, applied to a user terminal, includes: After detecting that the application used to control the radio frequency terminal has started running, and before the application issues control commands to the radio frequency terminal, a pre-control message is sent to the radio frequency gateway. The pre-control message is used to instruct the radio frequency gateway to generate a first communication interval modification instruction based on the pre-control message; The first communication interval modification instruction is used to instruct the radio frequency terminal to determine the second period according to the first communication interval modification instruction, and to change the radio frequency communication with the radio frequency gateway to be started with the second period instead of the first period, wherein the second period is shorter than the first period; The first communication interval modification instruction contains first identification information. The radio frequency terminal obtains a pre-stored second time interval based on the first identification information and uses the second time interval as the second period. The radio frequency terminal is the master device in the master-slave communication mode, and the radio frequency gateway is the slave device in the master-slave communication mode.
15. The communication method as described in claim 14, characterized in that, After sending a pre-control message to the radio frequency gateway, the communication method further includes: If the control interface for the radio frequency terminal is detected to be exiting, or the application is detected to be exiting, an end control message is sent to the radio frequency gateway. The termination control message is used to instruct the radio frequency terminal to generate a second communication interval modification instruction and send the second communication interval modification instruction to the radio frequency terminal. The second communication interval modification instruction is used to instruct the radio frequency terminal to switch to initiating radio frequency communication with the radio frequency gateway in the first cycle.
16. A communication device, characterized in that, Applied to a user terminal, the communication device includes at least one functional module, which is used to perform the steps of the communication method of claim 14 or 15.
17. A user terminal, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, When the processor executes the computer program, it implements the communication method as described in claim 14 or 15.
18. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the communication method as described in claim 14 or 15.
19. A communication system, characterized in that, The communication system includes the radio frequency terminal as described in claim 6, the radio frequency gateway as described in claim 12, and the user terminal as described in claim 17.
Citation Information
Patent Citations
Cold-chain logistics Internet-of-things vehicle node energy management method based on context awareness
CN106156969A