CN110109380A - A kind of time control method, timing control system, gateway and readable storage medium storing program for executing - Google Patents

A kind of time control method, timing control system, gateway and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110109380A
CN110109380A CN201910153191.8A CN201910153191A CN110109380A CN 110109380 A CN110109380 A CN 110109380A CN 201910153191 A CN201910153191 A CN 201910153191A CN 110109380 A CN110109380 A CN 110109380A
Authority
CN
China
Prior art keywords
gateway
timing
timing task
control method
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910153191.8A
Other languages
Chinese (zh)
Inventor
李承敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yujie Technology Co Ltd
Original Assignee
Shanghai Yujie Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yujie Technology Co Ltd filed Critical Shanghai Yujie Technology Co Ltd
Priority to CN201910153191.8A priority Critical patent/CN110109380A/en
Publication of CN110109380A publication Critical patent/CN110109380A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present embodiments relate to internet of things field, a kind of time control method, timing control system, gateway and readable storage medium storing program for executing are disclosed.Time control method in the present invention is applied to gateway, and gateway and several terminal devices form local network, and time control method includes: that timed task is established in being locally stored, and timed task is for controlling at least one terminal device in local network;After the time of timed task reaches, control instruction is sent to target terminal, the dependence in timing controlled to internet is reduced, so that timing controlled is more accurate.

Description

Timing control method, timing control system, gateway and readable storage medium
Technical Field
The embodiment of the invention relates to the field of Internet of things, in particular to a timing control method, a timing control system, a gateway and a readable storage medium.
Background
The Bluetooth technology was introduced in 1998, which is characterized by high traffic, and is mainly used for wireless earphones and wireless speakers, and the Bluetooth low-power consumption specification BLE was introduced in about 2000, and now: 1. point-to-point with low power consumption, such as sports health product applications, 2. one-to-many broadcast, such as beacon, 3. many-to-many mesh technology. The existing bluetooth technology is applied to the internet of things, and a plurality of bluetooth devices are used as nodes to form a network. Through the formed network, the node equipment in the network can be controlled in a timing mode, the method can be applied to scenes such as timing switches of household appliances, and user experience is good.
The inventor finds that at least the following problems exist in the prior art: the gateway has strong dependence on the internet, and if the network is disconnected, the target device cannot be accurately controlled.
Disclosure of Invention
The embodiment of the invention aims to provide a timing control method, a timing control system, a gateway and a readable storage medium, which can reduce the dependency on the internet in the timing control and enable the timing control to be more accurate.
In order to solve the above technical problem, an embodiment of the present invention provides a timing control method, which is applied to a gateway, where the gateway and a plurality of terminal devices form a local network, and the timing control method includes: establishing a timing task in a local storage, wherein the timing task is used for controlling at least one terminal device in a local network; and after the time of the timing task is reached, sending a control instruction to the target terminal.
An embodiment of the present invention further provides a timing control system, including: the system comprises a gateway and a plurality of terminal devices, wherein the gateway and each terminal device form a local network; the gateway is used for establishing a timing task in a local storage, and the timing task is used for controlling at least one terminal device in the local network; the timing task is also used for sending a control instruction to the target terminal after the time of the timing task is reached; and the terminal equipment is used for executing the control instruction after receiving the control instruction from the gateway.
An embodiment of the present invention further provides a gateway, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of authenticating a bluetooth device as described above.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the above-mentioned method for authenticating a bluetooth device.
Compared with the prior art, the implementation mode of the invention has the main differences and the effects that: the timing task is established in the local storage of the gateway, so that the timing task is executed locally by the gateway, the control command is directly sent to the target terminal of the same local network after the time of the timing task is reached, and the gateway does not depend on the internet when sending the control command because the control command is sent through the local network, so that the gateway is not connected with the internet even when sending the control command, and the sending of the command is not influenced. Therefore, the timing control method in the embodiment of the invention reduces the dependence on the Internet in the timing control and improves the accuracy of the timing control.
As a further improvement, the gateway and the terminal devices form a local network through bluetooth mesh. Because the Bluetooth transmission is widely applied and the power consumption is lower, the local network is formed by the Bluetooth mesh, so that the power consumption is lower during networking, and the wide popularization is facilitated.
As a further improvement, the timing task is established in the following cases: receiving a timing task establishment instruction sent by a cloud server; or receiving a timing task establishment instruction sent by the user terminal. The timing task is established according to the instruction sent by the cloud server, so that the addition of the timing task can be remotely controlled, the timing task is established according to the instruction sent by the user terminal, and the user can control the timing task more conveniently.
As a further improvement, the receiving a timing task establishment instruction sent by a user terminal specifically includes: receiving a timing task establishment instruction sent by a user terminal through internet remote connection; or, receiving a timing task establishment instruction sent by the user terminal through the Bluetooth connection. The embodiment specifies the connection mode of the gateway and the user terminal.
As a further improvement, the control command is a switch command.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flowchart of a timing control method according to a first embodiment of the present invention;
fig. 2 is a schematic connection diagram of networking in the timing control method according to the first embodiment of the present invention;
fig. 3 is a schematic configuration diagram of a timing control system according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a gateway in a fifth embodiment according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
A first embodiment of the present invention relates to a timing control method.
The gateway is applied to the gateway, the gateway and a plurality of terminal devices form a local network, the gateway of the embodiment can be a router, the terminal devices are intelligent bulbs, as shown in fig. 2, the gateway is respectively connected with the intelligent bulbs, and specifically, the gateway and the terminal devices form the local network through bluetooth mesh.
The flow of the timing control method in the present embodiment is shown in fig. 1, and specifically as follows:
step 101, establishing a timing task in a local storage.
Specifically, the embodiment can establish the timing task in the local storage after receiving the timing task establishment instruction sent by the cloud server. In practical application, a timing task list can be established, and the established timing task is added to the task list.
Continuing with the explanation, the established timing task is used for controlling at least one terminal device in the local network, the controlled terminal device may be called a target terminal, and the target terminal may be one of the three intelligent bulbs in fig. 2.
In the present embodiment, the countdown start timer is started after the timer task is established. In practical applications, the system clock may be used for timing.
Step 102, judging whether the time of the timing task is reached; if yes, go to step 103; if not, the step 102 is executed again.
Specifically, whether the time is reached can be judged by using process circulation, and in practical application, whether a timing task is newly added or cancelled can be judged, and a timing task list needs to be updated in time.
And 103, sending a control instruction to the target terminal.
Specifically, after the time of the timing task is reached, a control instruction is sent to the target terminal, in this embodiment, the control instruction may be sent through bluetooth, and more specifically, the control instruction may be sent through a transmission channel in a bluetooth mesh network.
Continuing, the control command may be a switch command, such as a command to turn on a light bulb, turn off a light bulb, and so on.
It is worth mentioning that in practical application, after the timing task is established, a modification instruction, a cancellation instruction and the like can be sent, so that the control of the timing task is more flexible and complete.
As can be seen, in the present embodiment, the timing task is established in the local storage of the gateway so that the timing task is executed locally by the gateway, and the control command is transmitted directly to the target terminal belonging to the same local network after the time of the timing task has come. Therefore, the timing control method in the embodiment reduces the dependence on the internet in the timing control, and improves the accuracy of the timing control. The timing task is established according to the instruction sent by the cloud server, so that the addition of the timing task can be remotely controlled, and the operation is flexible and changeable based on the cooperation of the cloud server, and the timing task can be suitable for different requirements.
It should be noted that, although the gateway is taken as a router and the terminal device is taken as an intelligent light bulb for example in the embodiment, other types of gateways or other types of intelligent light bulbs may also be used in practical applications.
A second embodiment of the present invention relates to a timing control method. The second embodiment is substantially the same as the first embodiment, and mainly differs therefrom in that: in the first embodiment, the gateway receives the command setup task sent by the cloud server, while in the second embodiment of the present invention, the gateway receives the command setup task sent by the user terminal, which is convenient for the user to directly set up the timing task.
Specifically, after receiving a timing task establishment instruction sent by the user terminal, the embodiment is more convenient for the user to perform timing control on the target terminal by himself when the timing task is established in the local storage. More specifically, the timing task establishment instruction sent by the user terminal can be received through an internet remote connection, such as an internet instruction received through a wifi router. In practical application, a timing task establishment instruction sent by a user terminal can be received through bluetooth connection, for example, a user performs bluetooth pairing connection by using a mobile terminal (such as a mobile phone) and a gateway so as to transmit the instruction, or a bluetooth broadcast is sent by using the mobile terminal (such as a mobile phone), and the instruction is carried in the broadcast so as to realize the transmission of the instruction.
Therefore, the clear gateway in the embodiment receives the instruction sent by the user terminal to establish the task, so that the user can manage and control the timing task conveniently, remote control can be realized based on the Internet, close-range control can be realized based on Bluetooth, and the method is very flexible and wide in applicable scene.
In practical application, in addition to the first embodiment, the timing task is established according to the instruction sent by the cloud server, and the second embodiment, the timing task is established according to the instruction sent by the user terminal, and other manners may be adopted to establish the timing task, for example, a human-computer interaction interface is set on the gateway, and the timing task is established through the instruction received by the interaction interface, which is not limited herein.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention relates to a timing control system, as shown in fig. 3, including: the gateway and a plurality of terminal devices form a local network.
The gateway is used for establishing and executing a timing task in a local storage, and the timing task is used for controlling at least one terminal device in a local network; and the system is also used for sending a control instruction to the target terminal after the time of the timing task is reached. Specifically, the gateway establishes and executes the timing task in the local storage after receiving the timing task establishment instruction sent by the cloud server.
And the terminal equipment is used for executing the control instruction after receiving the control instruction from the gateway.
In practical application, the gateway and a plurality of terminal devices form a local network through bluetooth mesh, and for example, the gateway may be a bluetooth sound box, and the terminal devices may be intelligent bluetooth bulbs.
It should be understood that this embodiment is a system example corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
A fourth embodiment of the present invention relates to a timing control system. The fourth embodiment is substantially the same as the third embodiment, and mainly differs therefrom in that: in the third embodiment, the gateway receives the instruction establishment task sent by the cloud server, whereas in the second embodiment of the present invention, the gateway receives the instruction establishment task sent by the user terminal, which is convenient for the user to directly establish the timing task.
Specifically, after receiving a timing task establishment instruction sent by the user terminal, the embodiment is more convenient for the user to perform timing control on the target terminal by himself when the timing task is established in the local storage.
Since the second embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and the technical effects that can be achieved in the second embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
A fifth embodiment of the present invention relates to a gateway, as shown in fig. 4, including:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the timing control method as in the first embodiment or the second embodiment described above.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor. The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
A sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method according to the above embodiments may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A timing control method is applied to a gateway, the gateway and a plurality of terminal devices form a local network, and the timing control method comprises the following steps:
establishing a timing task in a local storage, wherein the timing task is used for controlling at least one terminal device in a local network;
and after the time of the timing task is reached, sending a control instruction to the target terminal.
2. The timing control method according to claim 1, wherein the gateway and the plurality of terminal devices form a local network through bluetooth mesh.
3. The timing control method according to claim 1, wherein the timing task is established in the following cases:
receiving a timing task establishment instruction sent by a cloud server; or,
and receiving a timing task establishment instruction sent by the user terminal.
4. The timing control method according to claim 3, wherein the receiving of the timing task establishment instruction sent by the user equipment specifically includes:
receiving a timing task establishment instruction sent by a user terminal through internet remote connection; or,
and receiving a timing task establishment instruction sent by the user terminal through the Bluetooth connection.
5. The timing control method according to claim 1, wherein the control command is a switching command.
6. A timing control system, comprising: the system comprises a gateway and a plurality of terminal devices, wherein the gateway and each terminal device form a local network;
the gateway is used for establishing a timing task in a local storage, and the timing task is used for controlling at least one terminal device in the local network; the timing task is also used for sending a control instruction to the target terminal after the time of the timing task is reached;
and the terminal equipment is used for executing the control instruction after receiving the control instruction from the gateway.
7. The timing control system according to claim 6, further comprising: a user terminal;
the gateway is specifically configured to establish the timing task after receiving a timing task establishment instruction from the user terminal.
8. The timing control system according to claim 6, wherein the gateway is correspondingly connected to a server;
the gateway is specifically configured to establish the timing task after receiving a timing task establishment instruction from the server.
9. A gateway, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the timing control method of any one of claims 1 to 5.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the timing control method of any one of claims 1 to 5.
CN201910153191.8A 2019-02-28 2019-02-28 A kind of time control method, timing control system, gateway and readable storage medium storing program for executing Pending CN110109380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910153191.8A CN110109380A (en) 2019-02-28 2019-02-28 A kind of time control method, timing control system, gateway and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910153191.8A CN110109380A (en) 2019-02-28 2019-02-28 A kind of time control method, timing control system, gateway and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN110109380A true CN110109380A (en) 2019-08-09

Family

ID=67484243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910153191.8A Pending CN110109380A (en) 2019-02-28 2019-02-28 A kind of time control method, timing control system, gateway and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN110109380A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110687809A (en) * 2019-10-17 2020-01-14 珠海格力电器股份有限公司 Method and device for selecting master control equipment and equipment linkage system
CN111385945A (en) * 2020-02-19 2020-07-07 珠海格力电器股份有限公司 Intelligent panel control method, device and system, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110687809A (en) * 2019-10-17 2020-01-14 珠海格力电器股份有限公司 Method and device for selecting master control equipment and equipment linkage system
CN111385945A (en) * 2020-02-19 2020-07-07 珠海格力电器股份有限公司 Intelligent panel control method, device and system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108989164A (en) Intelligent home furnishing control method, intelligent home control system and mobile terminal
CN110636483A (en) Network distribution method and system
CN112612497B (en) Firmware upgrading method and equipment based on gateway
CN105392185B (en) A kind of networking method of smart machine, apparatus and system
CN105530672A (en) Switching method and switching system for mobile terminal and smart home communication network
CN108449117A (en) A kind of Internet of things system and method for network entry based on PLC
CN104185253A (en) Method for accessing wireless router, related device and system thereof
CN107409270B (en) Method and apparatus for establishing a connection between devices
CN111866856B (en) Mesh device control method and system, storage medium and electronic device
CN110109380A (en) A kind of time control method, timing control system, gateway and readable storage medium storing program for executing
CN105389278A (en) CAN bus based serial communication method for master and slave machines
CN111913397B (en) Device control method, device, storage medium, and electronic apparatus
CN105812185A (en) Communication connection method for playing device
CN110138571A (en) A kind of time control method, timing control system, gateway and readable storage medium storing program for executing
CN109194552A (en) Intelligent home furnishing control method, interconnecting device and main control device
CN111417112B (en) Distributed OTA gateway networking and terminal access method and OTA upgrading system
CN107454676B (en) Robot communication and control method and device
CN113365324A (en) Communication method and device
CN105490901A (en) Smart home full-house control device and control method thereof
CN106302056A (en) Household Internet of Things communication connection system and communication connecting method
CN110012510B (en) Processing method of parameters of terminal of Internet of things, terminal of Internet of things and core network equipment
CN109246796B (en) Communication method and device
CN106657093B (en) Gateway protocol for smart home
CN113179507B (en) Bluetooth mesh-based self-distribution networking method and system without main equipment
CN114567547B (en) Device networking method, system, device, communication management device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190809