CN-115243395-B - Communication method, device, equipment, storage medium and system
Abstract
The application is applicable to the technical field of the Internet of things, and provides a communication method, electronic equipment and a storage medium, wherein the communication method comprises the steps that a radio frequency terminal starts radio frequency communication with a radio frequency gateway in a first period; if the radio frequency terminal receives a first communication interval modification instruction sent by the radio frequency gateway in the radio frequency communication process, determining a second period according to the first communication interval modification instruction, wherein the second period is smaller than the first period, and starting the radio frequency communication by the radio frequency terminal instead of the second period. After receiving the first communication interval modification instruction, the radio frequency terminal shortens the radio frequency communication period with the radio frequency gateway, and when the user terminal really controls the radio frequency terminal, the response speed of the radio frequency terminal to the control instruction sent by the user terminal is improved, so that the user experience is improved.
Inventors
- GAO GUIQIANG
- ZHANG FANGJIAN
Assignees
- 深圳市合信达控制系统有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20220711
Claims (19)
- 1. A communication method, applied to a radio frequency terminal, comprising: Starting radio frequency communication with a radio frequency gateway in a first period; When a first communication interval modification instruction sent by the radio frequency gateway is received in the radio frequency communication process, determining a second period according to the first communication interval modification instruction, wherein the second period is smaller than the first period; Initiating the radio frequency communication with the second period; The first communication interval modification instruction is generated after the radio frequency gateway receives a pre-control message sent by a user terminal; the pre-control message is sent to the radio frequency gateway after the user terminal detects that an application program for controlling the radio frequency terminal starts to run and before the application program sends a control instruction for the radio frequency terminal; the radio frequency terminal is a master device in a master-slave communication mode, and the radio frequency gateway is a slave device in the master-slave communication mode; the first communication interval modification instruction comprises first identification information, and the radio frequency terminal obtains a pre-stored second time interval according to the first identification information, and takes the second time interval as the second period.
- 2. The communication method according to claim 1, wherein after the radio frequency communication is started in the second period, the communication method further comprises: if a second communication interval modification instruction sent by the radio frequency gateway is received, starting the radio frequency communication with the first period; The second communication interval modification instruction is generated after the radio frequency gateway receives the end control message sent by the user terminal.
- 3. The communication method according to claim 1, wherein after the radio frequency communication is started in the second period, the communication method further comprises: starting to calculate a duration of the radio frequency communication started in the second period; And if the detected duration exceeds the preset duration, starting the radio frequency communication in the first period.
- 4. A method of communicating as in claim 3, wherein before the time period is detected to exceed a preset time period, the method further comprises: if a communication interval maintaining instruction sent by the radio frequency gateway is received, restarting to calculate the duration of starting the radio frequency communication in the second period; the communication interval maintaining instruction is generated by the radio frequency gateway after the radio frequency gateway detects that the user terminal executes control operation or inquiry operation aiming at the radio frequency terminal.
- 5. A communication device, characterized in that it is applied to a radio frequency terminal, said communication device comprising at least one functional module for performing the steps of the communication method of 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 the processor implements the communication method according to any of claims 1 to 4 when executing the computer program.
- 7. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the communication method according to any one of claims 1 to 4.
- 8. A communication method applied to a radio frequency gateway, the communication method comprising: receiving a pre-control message sent by a user terminal; generating a first communication interval modification instruction according to the pre-control message; After detecting that a radio frequency terminal starts radio frequency communication with the radio frequency gateway, sending the first communication interval modification instruction to the radio frequency terminal; The first communication interval modification instruction is used for indicating the radio frequency terminal to determine a second period according to the first communication interval modification instruction, and the radio frequency communication is started at the second period instead of starting the radio frequency communication with the radio frequency gateway at the first period, wherein the second period is smaller than the first period; The pre-control message is a message sent to the radio frequency gateway after the user terminal detects that an application program for controlling the radio frequency terminal starts to run and before the application program sends a control instruction for the radio frequency terminal; The first communication interval modification instruction comprises first identification information, and the radio frequency terminal acquires a pre-stored second time interval according to the first identification information, and takes the second time interval as the second period; The radio frequency terminal is a master device in a master-slave communication mode, and the radio frequency gateway is a slave device in the master-slave communication mode.
- 9. The communication method according to claim 8, wherein after the first communication interval modification instruction is transmitted to the radio frequency terminal, the communication method further comprises: receiving an end control message sent by a user terminal; Generating a second communication interval modification instruction according to the ending control message; Transmitting the second communication interval modification instruction to the radio frequency terminal; the second communication interval modification instruction is used for indicating the radio frequency terminal to start the radio frequency communication with the first period instead; the end control message is sent to the radio frequency gateway when the user terminal exits the control interface for the radio frequency terminal or exits the application program.
- 10. The communication method according to claim 8, wherein after the first communication interval modification instruction is transmitted to the radio frequency terminal, the communication method further comprises: if the user terminal is detected to execute the control operation or the query operation aiming at the radio frequency terminal, a communication interval maintaining instruction is generated; Transmitting the communication interval maintaining instruction to the radio frequency terminal; The communication interval maintaining instruction is used for indicating the radio frequency terminal to restart calculating the duration of starting the radio frequency communication in the second period.
- 11. A communication device, characterized in that it is applied to a radio frequency gateway, said communication device comprising 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 the processor implements the communication method according to any of claims 8 to 10 when executing the computer program.
- 13. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the communication method according to any one of claims 8 to 10.
- 14. A communication method, applied to a user terminal, the communication method comprising: After detecting that an application program for controlling a radio frequency terminal starts to run, and before the application program sends a control instruction aiming at the radio frequency terminal, a pre-control message is sent to a radio frequency gateway; The pre-control message is used for indicating 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 for indicating a radio frequency terminal to determine a second period according to the first communication interval modification instruction, and starting radio frequency communication with a radio frequency gateway at a first period instead of starting the radio frequency communication at the second period, wherein the second period is smaller than the first period; The first communication interval modification instruction comprises first identification information, and the radio frequency terminal acquires a pre-stored second time interval according to the first identification information, and takes the second time interval as the second period; The radio frequency terminal is a master device in a master-slave communication mode, and the radio frequency gateway is a slave device in the master-slave communication mode.
- 15. The communication method of claim 14, wherein after sending the pre-control message to the radio frequency gateway, the communication method further comprises: If the control interface for the radio frequency terminal is detected to exit, or the application program is detected to exit, sending an ending control message to the radio frequency gateway; the end control message is used for indicating the radio frequency terminal, generating a second communication interval modification instruction, and sending the second communication interval modification instruction to the radio frequency terminal; The second communication interval modification instruction is used for indicating the radio frequency terminal to start radio frequency communication with the radio frequency gateway with a first period instead.
- 16. A communication device, characterized in that it is applied to a user terminal, said communication device comprising at least one functional module for performing 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 the processor implements the communication method according to claim 14 or 15 when executing the computer program.
- 18. A computer readable storage medium storing a computer program, which when executed by a processor implements the communication method according to claim 14 or 15.
- 19. A communication system comprising a radio frequency terminal according to claim 6, a radio frequency gateway according to claim 12, and a user terminal according to claim 17.
Description
Communication method, device, equipment, storage medium and system Technical Field The application belongs to the technical field of the Internet of things, and particularly relates to a communication method, a device, equipment, a storage medium and a system. Background The radio frequency terminal is used as a master device in a master-slave communication mode, and periodically starts radio frequency communication with a radio frequency gateway of the slave device. The radio frequency terminal powered by the battery is in a sleep state most of the time due to power saving and the like. However, in this communication manner, 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. Disclosure of Invention The embodiment of the application provides a communication method, a device, equipment, a storage medium and a system, which 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 longer, and the user experience is influenced. In a first aspect, an embodiment of the present application provides a communication method, which is applied to a radio frequency terminal, where the communication method includes: Starting radio frequency communication with a radio frequency gateway in a first period; When a first communication interval modification instruction sent by the radio frequency gateway is received in the radio frequency communication process, determining a second period according to the first communication interval modification instruction, wherein the second period is smaller than the first period; Initiating the radio frequency communication with the second period; The first communication interval modification instruction is generated after the radio frequency gateway receives a pre-control message sent by a user terminal; the pre-control message is sent to the radio frequency gateway after the user terminal detects that an application program for controlling the radio frequency terminal starts to run and before the application program sends a control instruction for the radio frequency terminal; The radio frequency terminal is a master device in a master-slave communication mode, and the radio frequency gateway is a slave device in the master-slave communication mode. It can be understood that, before the user terminal sends the control quality, the radio frequency terminal shortens the period of radio frequency communication with the radio frequency gateway, and when the user terminal really controls the radio frequency terminal, the response speed of the radio frequency terminal to the control instruction sent by the user terminal is improved, thereby improving the user experience. Specifically, when the radio frequency terminal is a master device in a master-slave communication mode and the radio frequency gateway is a slave device in a master-slave communication mode, the radio frequency terminal starts radio frequency communication with the radio frequency gateway, and then the radio frequency gateway can communicate with the radio frequency terminal. After detecting that an application program for controlling the radio frequency terminal starts to run, the user terminal sends a pre-control message to the radio frequency gateway before the application program sends a control instruction for the radio frequency terminal. Since the user opens the application, the user has a relatively high possibility of performing a control operation on the radio frequency device. Sending the pre-control message at this occasion is equivalent to predicting the behavior of the user and informing the radio frequency gateway of this prediction. And 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 starts radio frequency communication with the radio frequency gateway at a first period and starts the radio frequency communication at a second period, wherein the second period is smaller than the first period. Because the radio frequency terminal shortens the radio frequency communication period with the radio frequency gateway based on the prediction of the user behavior, when the user terminal really controls the radio frequency terminal, the response speed of the radio frequency terminal to the control instruction sent by the user terminal is improved, and therefore the user experience is improved. Optionally, after the radio frequency communication is started in the second period, the communication method further includes: if a second communication interval modification instruction sent by the radio frequency gateway is received, starting the radio frequency communication with the first period; The second communication interval modification i