CN111465081A - Control instruction receiving and sending method, device, equipment and storage medium - Google Patents

Control instruction receiving and sending method, device, equipment and storage medium Download PDF

Info

Publication number
CN111465081A
CN111465081A CN202010165130.6A CN202010165130A CN111465081A CN 111465081 A CN111465081 A CN 111465081A CN 202010165130 A CN202010165130 A CN 202010165130A CN 111465081 A CN111465081 A CN 111465081A
Authority
CN
China
Prior art keywords
control instruction
wireless access
management
access point
data packet
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
CN202010165130.6A
Other languages
Chinese (zh)
Inventor
汪纯云
伍卉
翁贵清
陈维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010165130.6A priority Critical patent/CN111465081A/en
Publication of CN111465081A publication Critical patent/CN111465081A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses a management and control instruction receiving method, which comprises the following steps: scanning a wireless access point, and monitoring whether UDP (user datagram protocol) broadcasting exists in the wireless access point; receiving a UDP broadcast data packet when monitoring UDP broadcasts, wherein the UDP broadcast data packet comprises a control instruction; and analyzing the UDP broadcast data packet to acquire the control instruction. The embodiment of the invention also provides a management and control instruction receiving device, a management and control instruction sending method, a management and control instruction sending device, management and control instruction equipment and a storage medium. The method, the device, the equipment and the storage medium for receiving and sending the management and control instruction provided by the embodiment of the invention have the advantages that the implementation process of equipment management and control is convenient and fast, and the efficiency is high.

Description

Control instruction receiving and sending method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for receiving and sending a management command.
Background
With the rapid development of the internet of things and digital smart home technology, a large number of intelligent devices enter more and more families. Wherein, digital wisdom family indicates to realize the full-automatic or semi-automatic management and control to intelligent household electrical appliances. The common technologies for device management and control currently include:
1. remote cloud management and control: a management and control end (such as a mobile phone client) in a networking state sends a management and control instruction of a certain intelligent device in the networking state to a cloud server, and the management and control instruction is forwarded to the intelligent device by the cloud server to realize management and control of the intelligent device;
2. local area network management and control: a local area network is constructed through a home router and a zigbee gateway, a control instruction of certain intelligent equipment in the local area network is sent to the local area network by a control end, and the intelligent equipment is controlled by the local area network.
However, the inventors found that the prior art has at least the following problems: there is a prerequisite for both of the above techniques: the intelligent device must be networked, that is, the device establishes a data transmission channel with the cloud server or the local gateway, and the channel is used for transmitting the control instruction. Because the device needs additional technical support when accessing the network, the implementation process of the device management and control is not convenient enough, and the efficiency is low.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, equipment and a storage medium for receiving and sending a management and control instruction, so that the implementation process of equipment management and control is convenient and fast, and the efficiency is high.
In order to solve the above technical problem, an embodiment of the present invention provides a management control instruction receiving method, including: scanning a wireless access point, and monitoring whether UDP (user datagram protocol) broadcasting exists in the wireless access point; receiving a UDP broadcast data packet when monitoring UDP broadcasts, wherein the UDP broadcast data packet comprises a control instruction; and analyzing the UDP broadcast data packet to acquire the control instruction.
The embodiment of the present invention further provides a management control instruction receiving apparatus, including: the broadcast monitoring module is used for scanning wireless access points and monitoring whether UDP broadcast exists in the wireless access points; the data packet receiving module is used for receiving a UDP broadcast data packet when monitoring UDP broadcasts, wherein the UDP broadcast data packet comprises a control instruction; and the instruction acquisition module is used for analyzing the UDP broadcast data packet to acquire the control instruction.
The embodiment of the invention also provides a management and control instruction sending method, which comprises the following steps: establishing connection with a wireless access point, wherein the wireless access point is within a WIFI scanning range of controlled equipment; and encapsulating a control instruction in a UDP broadcast data packet and sending the control instruction to the wireless access point, wherein the control instruction is used for controlling the controlled equipment.
The embodiment of the present invention further provides a management control instruction transmitting apparatus, including: the network connection module is used for establishing connection with a wireless access point, and the wireless access point is positioned in a WIFI scanning range of the controlled equipment; and the instruction sending module is used for encapsulating a control instruction in a UDP broadcast data packet and sending the control instruction to the wireless access point, wherein the control instruction is used for controlling the controlled equipment.
An embodiment of the present invention further provides a network device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute the above-mentioned management instruction receiving method or the above-mentioned management instruction transmitting method.
An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the above-mentioned management and control instruction receiving method or the above-mentioned management and control instruction sending method.
Compared with the prior art, the embodiment of the invention monitors whether UDP broadcast exists in the wireless access points by scanning the wireless access points; when monitoring the UDP broadcast, receiving a UDP broadcast data packet, wherein the UDP broadcast data packet comprises a control instruction; and analyzing the UDP broadcast data packet to obtain a control instruction. Because the management and control instruction is received by scanning the wireless access point and monitoring and receiving UDP broadcast in the wireless access point, the managed and controlled equipment and the wireless access point do not need to be accessed into the network, and the technical support of the access network is not needed, so that the realization process of equipment management and control is convenient and the efficiency is high; furthermore, as the wireless access point does not need to access the network, the management and control of the equipment can be realized under the scene of poor network or no network, the dependence degree on the network is reduced, and the range of applicable scenes is expanded.
In addition, the management and control instruction is contained in a preset field in the UDP broadcast data packet.
The management and control instruction is contained in the L ength field in the UDP broadcast data packet, so that the management and control instruction can still be analyzed by the equipment under the condition that the wireless access point is encrypted, and the management and control of the equipment are realized.
In addition, the scanning for wireless access points, which monitors whether there is a UDP broadcast from the wireless access points, includes: scanning wireless access points through a hybrid mode with a built-in WIFI chip, wherein the number of the wireless access points is N, and N is a positive integer; and circularly configuring the built-in WIFI chip to the channel of each wireless access point to monitor whether a UDP broadcast data packet exists in the channel of each wireless access point.
In addition, the management and control instruction is encapsulated in an L ength field in the UDP broadcast data packet.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
Fig. 1 is a schematic flowchart of a control instruction receiving method according to a first embodiment of the present invention;
fig. 2 is an exemplary diagram illustrating that a management control instruction is encapsulated in an L ength field and sent in the management control instruction receiving method according to the first embodiment of the present invention;
fig. 3 is a schematic block diagram of a management command receiving apparatus according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for sending a control command according to a third embodiment of the present invention;
FIG. 5 is a schematic diagram of a method for transmitting control commands according to a third embodiment of the present invention;
fig. 6 is a flowchart illustrating a method for sending a control command according to a third embodiment of the present invention;
fig. 7 is a schematic block diagram of a management command transmitting apparatus according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a network device according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages 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 first embodiment of the invention relates to a management control instruction receiving method, which comprises the steps of monitoring whether UDP (user datagram protocol) broadcasting exists in a wireless access point or not by scanning the wireless access point; when monitoring the UDP broadcast, receiving a UDP broadcast data packet, wherein the UDP broadcast data packet comprises a control instruction; and analyzing the received UDP broadcast data packet to obtain a control instruction. Because the management and control instruction is received in a scanning and monitoring mode, the equipment which does not need to receive the management and control instruction accesses the network, and therefore, additional technical support is not needed, the implementation process of equipment management and control is convenient, and the efficiency is high.
It can be understood that the execution subject of the management and control instruction receiving method provided by the embodiment of the present invention is a managed device, such as a sound box, a television, an air conditioner, and the like. In order to implement the management and control instruction method of the present embodiment, a WIFI chip should be built in the device, so as to receive a UDP broadcast data packet from the wireless access point, and further obtain a management and control instruction to implement management and control of the device. Among them, UDP is a User Datagram Protocol (User Datagram Protocol), which is a simple Datagram-oriented communication Protocol. The wireless access point (also called wireless AP) is an access point of a wireless network, and may include a routing switch integrated access device and a pure access point device, such as a router or a wireless switch.
It should be noted that the wireless access point may be connected to the network, or may be in an offline state, as long as the UDP broadcast can be implemented. For example, the wireless router may be powered on, and whether to connect to the network does not affect the implementation of the management and control instruction receiving method according to this embodiment, because the wireless router may implement UDP broadcast even in an offline state. It is understood that the wireless access point may also be implemented by turning on a hot spot function by a smart terminal (e.g., a mobile phone).
A specific flow of a method for receiving a management control instruction provided by an embodiment of the present invention is shown in fig. 1, and specifically includes the following steps:
s101: and scanning the wireless access points, and monitoring whether UDP broadcasting exists in the wireless access points.
The device scans the wireless access point through the built-in WIFI chip. When a device listens from a wireless access point for the presence of a UDP broadcast, it listens from a channel (channel) contained in the wireless access point.
In a specific example, S101 may specifically be: scanning wireless access points through a hybrid mode with a built-in WIFI chip, wherein the number of the wireless access points is N, and N is a positive integer; and circularly configuring a built-in WIFI chip to the channel of each wireless access point to monitor whether the channel of each wireless access point has a UDP broadcast data packet or not.
The promiscuous mode means that a network card of one machine can receive all data streams passing through the network card, regardless of whether the destination address of the network card is the promiscuous mode. The wireless access point is scanned through the promiscuous mode of the WIFI chip, so that the equipment is not limited by the wireless access point, and the monitoring of whether UDP broadcasting exists in any wireless access point within the scanning range is facilitated.
The wireless access point comprises a plurality of channels, and the device cyclically configures the WIFI chip to each working channel of each wireless access point to monitor when monitoring the UDP broadcast, for example, if the A wireless access point comprises 3 working channels, the device cyclically configures the WIFI chip to the 3 working channels of the A wireless access point to monitor the UDP broadcast, and if the A wireless access point does not receive the UDP broadcast, the device switches to the channel of the next wireless access point to monitor the UDP broadcast.
S102: and when the UDP broadcast is monitored, receiving a UDP broadcast data packet, wherein the UDP broadcast data packet contains a control instruction.
The management and control instruction is encapsulated in the UDP broadcast data packet. Optionally, the encapsulation of the management and control instruction may be implemented by a smart terminal (e.g., a mobile phone). Alternatively, the management command may be encapsulated in the DATA field of the UDP broadcast packet when the wireless access point is not encrypted.
Since the general wireless access point is encrypted, if the management and control instruction is encapsulated in the DATA field of the UDP broadcast packet, the management and control instruction in the DATA field cannot be analyzed, and thus the management and control instruction cannot be transmitted to the device, so that the management and control instruction needs to be encapsulated in other fields of the UDP broadcast packet.
Please refer to fig. 2, which is an exemplary diagram of "1, 2, 3" being encapsulated in L ength field, wherein ASC codes of "1, 2, 3" are corresponding to "0 x31, 0x32, 0x 33".
S103: and analyzing the UDP broadcast data packet to obtain a control instruction.
Specifically, after the device receives the UDP broadcast data packet, the UDP broadcast data packet is analyzed, and the control instruction can be obtained, so that the device is controlled according to the control instruction.
Compared with the prior art, the management and control instruction receiving method provided by the embodiment of the invention monitors whether UDP broadcast exists in the wireless access points or not by scanning the wireless access points; when monitoring the UDP broadcast, receiving a UDP broadcast data packet, wherein the UDP broadcast data packet comprises a control instruction; and analyzing the UDP broadcast data packet to obtain a control instruction. Because the management and control instruction is received by scanning the wireless access point and monitoring and receiving UDP broadcast in the wireless access point, the managed and controlled equipment and the wireless access point do not need to be accessed into the network, and the technical support of the access network is not needed, so that the realization process of equipment management and control is convenient and the efficiency is high; furthermore, as the wireless access point does not need to access the network, the management and control of the equipment can be realized under the scene of poor network or no network, the dependence degree on the network is reduced, and the range of applicable scenes is expanded.
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 steps contain the same logical relationship, which is 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 second embodiment of the present invention relates to a management command receiving apparatus 200, as shown in fig. 3, including: a broadcast monitoring module 201, a data packet receiving module 202 and an instruction obtaining module 203. The functional modules are explained in detail as follows:
a broadcast monitoring module 201, configured to scan a wireless access point and monitor whether a UDP broadcast exists in the wireless access point;
the data packet receiving module 202 is configured to receive a UDP broadcast data packet when a UDP broadcast is monitored, where the UDP broadcast data packet includes a control instruction;
the instruction obtaining module 203 is configured to analyze the UDP broadcast data packet to obtain a management and control instruction.
Further, the management and control instruction is contained in a preset field in the UDP broadcast packet.
Preferably, the preset field is an L ength field.
Further, the broadcast monitoring module 201 is further configured to:
scanning wireless access points through a hybrid mode with a built-in WIFI chip, wherein the number of the wireless access points is N, and N is a positive integer;
and circularly configuring a built-in WIFI chip to the channel of each wireless access point to monitor whether the channel of each wireless access point has a UDP broadcast data packet or not.
It should be understood that this embodiment is an example of the apparatus 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.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
The third embodiment of the invention relates to a management and control instruction sending method, which comprises the steps of establishing connection with a wireless access point, wherein the wireless access point is in a WIFI scanning range of controlled equipment; and encapsulating the control instruction in a UDP broadcast data packet and sending the control instruction to the connected wireless access point, wherein the control instruction is used for controlling the controlled equipment. The control instruction is packaged in the UDP broadcast data packet and sent to the wireless access point, the wireless access point can transmit the control instruction to the controlled equipment through the UDP broadcast data packet, and therefore control over the controlled equipment is achieved under the condition that the controlled equipment does not access the network, the implementation process of control over the equipment is convenient, and efficiency is high.
It should be noted that the execution subject of the management and control instruction sending method provided by the embodiment of the present invention is an intelligent terminal, for example, a mobile phone, a tablet computer, and the like. The controlled device is the same as the device in the first embodiment.
A specific flow of a method for sending a management control instruction according to an embodiment of the present invention is shown in fig. 4, and specifically includes the following steps:
s301: and establishing connection with the wireless access point, wherein the wireless access point is in a WIFI scanning range of the controlled equipment.
The number of the wireless access points can be N, where N is a positive integer. In order to transmit the control instruction to the controlled device, the wireless access point to which the intelligent terminal establishes connection should be within the WIFI scanning range of the controlled device. It is understood that when there are multiple wireless access points, the intelligent terminal establishes a connection with one of the wireless access points.
S302: and encapsulating the control instruction in a UDP broadcast data packet and sending the control instruction to the wireless access point, wherein the control instruction is used for controlling the controlled equipment.
Specifically, the intelligent terminal encapsulates a control instruction to be sent in a UDP broadcast data packet, the UDP broadcast data packet is sent to a wireless access point for establishing connection, the controlled device can receive the UDP broadcast data packet containing the control instruction from the wireless access point through a built-in WIFI chip, and after the UDP broadcast data packet is received, the control instruction can be obtained after the UDP broadcast data packet is analyzed, so that control over the controlled device is completed.
Please refer to fig. 5, which is a schematic diagram illustrating a method for sending a management command according to an embodiment of the present invention. To more clearly illustrate the principle, please refer to fig. 6, which is a flowchart illustrating a method for sending a management control command according to an embodiment of the present invention, wherein in fig. 5 and 6, an intelligent terminal is a mobile phone as an example, and a wireless access point connected to the intelligent terminal is a router as an example. The concrete description is as follows: firstly, a router is powered on to construct a local area network; the mobile phone and the equipment (controlled equipment) are positioned under the local area network, and the mobile phone is connected with the router; the equipment scans wireless access points (including a router) through a built-in WIFI chip to obtain related information of the wireless access points; the mobile phone encapsulates the control instruction to be sent into a UDP broadcast data packet, sends the control instruction out and sends the control instruction to the connected router; the equipment monitors whether UDP broadcast exists in a channel of the wireless access point circularly through a built-in WIFI chip; when the router is monitored, if UDP broadcast exists, receiving a UDP broadcast data packet and analyzing the UDP broadcast data packet, so that a control instruction is obtained, and control over the equipment can be realized.
Compared with the prior art, the management and control instruction sending method provided by the embodiment of the invention has the advantages that the connection is established with the wireless access point, and the wireless access point is in the WIFI scanning range of the controlled equipment; and encapsulating the control instruction in a UDP broadcast data packet and sending the control instruction to the connected wireless access point, wherein the control instruction is used for controlling the controlled equipment. The control instruction is encapsulated in the UDP broadcast data packet and is sent to the wireless access point, the wireless access point can transmit the control instruction to the controlled equipment through the UDP broadcast data packet, and the controlled equipment can be controlled under the condition that the controlled equipment and the wireless access point are not required to be accessed into a network, so that the technical support of the access network is not required, the realization process of the equipment control is convenient, and the efficiency is high; furthermore, as the wireless access point does not need to access the network, the management and control of the equipment can be realized under the scene of poor network or no network, the dependence degree on the network is reduced, and the range of applicable scenes is expanded.
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 steps contain the same logical relationship, which is 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 fourth embodiment of the present invention relates to a management command transmitting apparatus 400, as shown in fig. 7, including: a network connection module 401 and an instruction sending module 402. The functional modules are explained in detail as follows:
the network connection module 401 is configured to establish connection with a wireless access point, where the wireless access point is within a WIFI scanning range of a controlled device;
the instruction sending module 402 is configured to encapsulate a control instruction in a UDP broadcast packet and send the control instruction to the wireless access point, where the control instruction is used to control a controlled device.
Preferably, the management and control instruction is encapsulated in an L ength field in the UDP broadcast packet.
It should be understood that this embodiment is an example of an apparatus corresponding to the third embodiment, and that this embodiment can be implemented in cooperation with the third embodiment. The related technical details mentioned in the third 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 third embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A fifth embodiment of the present invention relates to a network device, as shown in fig. 8, including at least one processor 501; and a memory 502 communicatively coupled to the at least one processor 501; the memory 502 stores instructions executable by the at least one processor 501, and the instructions are executed by the at least one processor 501, so that the at least one processor 501 can execute the management instruction receiving method or the management instruction sending method.
The memory 502 and the processor 501 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 501 and the memory 502 together. 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 501 is transmitted over a wireless medium through an antenna, which further receives the data and transmits the data to the processor 501.
The processor 501 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 memory 502 may be used to store data used by processor 501 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, those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct 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, etc.) or a processor (processor) to execute all or part of the steps of the method described in 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 method for receiving a control command, comprising:
scanning a wireless access point, and monitoring whether UDP (user datagram protocol) broadcasting exists in the wireless access point;
receiving a UDP broadcast data packet when monitoring UDP broadcasts, wherein the UDP broadcast data packet comprises a control instruction;
and analyzing the UDP broadcast data packet to acquire the control instruction.
2. The management instruction receiving method according to claim 1, wherein the management instruction is included in a preset field in the UDP broadcast packet.
3. The management and control instruction receiving method according to claim 2, wherein the preset field is an L ength field.
4. The management and control instruction receiving method according to claim 1, wherein the scanning of the wireless access points and the listening of the presence of UDP broadcast from the wireless access points includes:
scanning wireless access points through a hybrid mode with a built-in WIFI chip, wherein the number of the wireless access points is N, and N is a positive integer;
and circularly configuring the built-in WIFI chip to the channel of each wireless access point to monitor whether a UDP broadcast data packet exists in the channel of each wireless access point.
5. A management command receiving apparatus, comprising:
the broadcast monitoring module is used for scanning wireless access points and monitoring whether UDP broadcast exists in the wireless access points;
the data packet receiving module is used for receiving a UDP broadcast data packet when monitoring UDP broadcasts, wherein the UDP broadcast data packet comprises a control instruction;
and the instruction acquisition module is used for analyzing the UDP broadcast data packet to acquire the control instruction.
6. A method for sending a management control instruction is characterized by comprising the following steps:
establishing connection with a wireless access point, wherein the wireless access point is within a WIFI scanning range of controlled equipment;
and encapsulating a control instruction in a UDP broadcast data packet and sending the control instruction to the wireless access point, wherein the control instruction is used for controlling the controlled equipment.
7. The method according to claim 6, wherein the management instruction is encapsulated in an L ength field in the UDP broadcast packet.
8. A management instruction transmitting apparatus, comprising:
the network connection module is used for establishing connection with a wireless access point, and the wireless access point is positioned in a WIFI scanning range of the controlled equipment;
and the instruction sending module is used for encapsulating a control instruction in a UDP broadcast data packet and sending the control instruction to the wireless access point, wherein the control instruction is used for controlling the controlled equipment.
9. A network device, 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 content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the regulating instruction receiving method of any one of claims 1 to 4 or the regulating instruction transmitting method of any one of claims 6 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the management-instruction receiving method according to any one of claims 1 to 4 or the management-instruction transmitting method according to any one of claims 6 to 7.
CN202010165130.6A 2020-03-11 2020-03-11 Control instruction receiving and sending method, device, equipment and storage medium Pending CN111465081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010165130.6A CN111465081A (en) 2020-03-11 2020-03-11 Control instruction receiving and sending method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010165130.6A CN111465081A (en) 2020-03-11 2020-03-11 Control instruction receiving and sending method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111465081A true CN111465081A (en) 2020-07-28

Family

ID=71678323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010165130.6A Pending CN111465081A (en) 2020-03-11 2020-03-11 Control instruction receiving and sending method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111465081A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470336A (en) * 2021-07-14 2021-10-01 深圳市朗强科技有限公司 Wireless sending method, receiving method and equipment of control instruction

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103512159A (en) * 2012-06-25 2014-01-15 珠海格力电器股份有限公司 Air conditioner and air conditioner control system
CN105761344A (en) * 2016-03-04 2016-07-13 深圳市云希谷科技有限公司 Intelligent access control system based on WIFI non-connection mode
CN106209537A (en) * 2016-07-25 2016-12-07 深圳市双驰科技有限公司 A kind of home appliance and WIFI module, distribution method
CN106789468A (en) * 2016-12-22 2017-05-31 Tcl集团股份有限公司 A kind of appliances equipment control method and system based on intelligent terminal
CN107257573A (en) * 2017-05-11 2017-10-17 北京囡宝科技有限公司 A kind of equipment accesses the system and method for wireless network
US20180249517A1 (en) * 2017-02-27 2018-08-30 Samsung Electronics Co., Ltd Method and apparatus for managing wireless router and device connected thereto
CN110708222A (en) * 2019-10-14 2020-01-17 珠海格力电器股份有限公司 Control method, control device, gateway and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103512159A (en) * 2012-06-25 2014-01-15 珠海格力电器股份有限公司 Air conditioner and air conditioner control system
CN105761344A (en) * 2016-03-04 2016-07-13 深圳市云希谷科技有限公司 Intelligent access control system based on WIFI non-connection mode
CN106209537A (en) * 2016-07-25 2016-12-07 深圳市双驰科技有限公司 A kind of home appliance and WIFI module, distribution method
CN106789468A (en) * 2016-12-22 2017-05-31 Tcl集团股份有限公司 A kind of appliances equipment control method and system based on intelligent terminal
US20180249517A1 (en) * 2017-02-27 2018-08-30 Samsung Electronics Co., Ltd Method and apparatus for managing wireless router and device connected thereto
CN107257573A (en) * 2017-05-11 2017-10-17 北京囡宝科技有限公司 A kind of equipment accesses the system and method for wireless network
CN110708222A (en) * 2019-10-14 2020-01-17 珠海格力电器股份有限公司 Control method, control device, gateway and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470336A (en) * 2021-07-14 2021-10-01 深圳市朗强科技有限公司 Wireless sending method, receiving method and equipment of control instruction

Similar Documents

Publication Publication Date Title
CN109391500B (en) Configuration management method, device and equipment
US9241332B2 (en) System and method for managing resources in a communication system
CN105246126A (en) Intelligent equipment access method, device and system
CN104618988A (en) Smart device network access method and device
US20060142034A1 (en) Systems and methods for device discovery
KR101355061B1 (en) Method and system for wireless access point radios integrated in a cable
CN110636483A (en) Network distribution method and system
CN105554754A (en) Method and system for accessing WIFI module of the internet of things to network
CN105120507A (en) Data packet monitoring method and system
CN104283858A (en) Method, device and system for controlling user terminal access
CN112953991A (en) Data return method and device, RRU (remote radio unit) and BBU (base band unit)
US20230291799A1 (en) Method and Apparatus of Network Configuration for Internet-of-Things Device
JP5485976B2 (en) Wireless personal area network method
CN105392180B (en) A kind of networking method of smart machine, apparatus and system
CN111465081A (en) Control instruction receiving and sending method, device, equipment and storage medium
CA2975407C (en) Processing method for service flow packet, and apparatus
WO2022166760A1 (en) Network access method, communication apparatus, chip, and module device
CN115604700A (en) Network distribution method based on Wi-Fi perception, embedded chip system and medium
CN115474257A (en) Method and device for accessing Mesh network
EP4145870A1 (en) Communication method and communication apparatus
EP3890195A1 (en) Apparatus and methods for g3-plc bootstrap in hybrid networks
CN111757275B (en) Device connection method and device, storage medium and electronic device
KR101947169B1 (en) METHOD AND APPARATUS FOR CONTROLLING IoT DEVICE USING IP TUNNELING
CN102684013B (en) Electric connector capable of realizing address allocation of controlled equipment
TW202125291A (en) Gateway device with built-in server module and communication system thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200728

RJ01 Rejection of invention patent application after publication