CN111885218A - Method and device for managing intelligent equipment and binding equipment - Google Patents
Method and device for managing intelligent equipment and binding equipment Download PDFInfo
- Publication number
- CN111885218A CN111885218A CN202010710410.0A CN202010710410A CN111885218A CN 111885218 A CN111885218 A CN 111885218A CN 202010710410 A CN202010710410 A CN 202010710410A CN 111885218 A CN111885218 A CN 111885218A
- Authority
- CN
- China
- Prior art keywords
- intelligent
- intelligent equipment
- equipment
- alternative
- control instruction
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
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)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application relates to the technical field of Internet of things and discloses a method for managing intelligent equipment. The method comprises the following steps: accessing a router and determining intelligent equipment accessed to the router; sequencing the intelligent equipment and acquiring the alternative intelligent equipment with set ranking and the corresponding MAC address thereof from the sequenced intelligent equipment; and sending a preset equipment control instruction to the alternative intelligent equipment corresponding to the MAC address, and triggering the alternative intelligent equipment to execute the equipment control instruction. According to the method, the alternative intelligent device is obtained from the intelligent device which is accessed to the router, and the device control instruction is sent to the alternative intelligent device to trigger the alternative intelligent device to execute the device control instruction, so that whether the alternative intelligent device is the intelligent device to be subjected to machine coding correlation or not can be rapidly and accurately determined according to the execution condition of the alternative intelligent device executing the control instructions. The application also discloses a device for managing the intelligent equipment and the binding equipment.
Description
Technical Field
The application relates to the technical field of internet of things, for example, to a method and device for managing intelligent equipment and binding equipment.
Background
In the intelligent hardware products sold on the market formally, in order to facilitate management, a production enterprise allocates a uniformly-compiled and enterprise-wide unique code, namely a machine code, to each device. The intelligent device is connected with the internet through communication modules such as WiFi and Bluetooth, and each module comprises a Media Access Control (MAC) address which is unique in the whole network.
Because the machine code is related to the product model and is usually distributed by a manufacturing enterprise, the same components such as the electric control board, the chip and the like can be reused to a plurality of models, the model can be determined only when the components are finally assembled, and meanwhile, the cost reduction needs to be realized by adopting an erasable single chip microcomputer and the like when the electric control board and the like are produced in a large scale, so the machine code cannot be written into the electric control board and the chip of the intelligent equipment. Therefore, the machine code is usually attached to the surface and inside of the smart device in the form of a label such as a barcode, i.e., exists in the physical world. When the smart device is connected to the internet through WiFi (Wireless Fidelity), bluetooth, etc., the identification thereof is a code such as a MAC address, etc., and exists in the information world.
Along with the continuous improvement of intelligent application experience, a user accesses and controls various intelligent devices such as an intelligent mobile terminal and household appliances through various inlets such as a mobile terminal application program, voice, a touch screen and the like, and usually, each inlet is used for loading a function set from a cloud database when accessing and controlling the intelligent devices. Since the machine code exists in the physical world and the home appliance device is identified in the information world by the MAC address, the premise for realizing the above application is to associate and correspond the machine code and the MAC address one by one.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
in the actual intelligent device production line, due to numerous intelligent devices, workers are difficult to accurately determine the intelligent device to be associated with the machine code.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method and a device for managing intelligent equipment and binding equipment, so as to more accurately determine the intelligent equipment to be subjected to machine coding association.
In some embodiments, the method for managing smart devices, for binding devices, comprises:
accessing a router and determining intelligent equipment accessed to the router;
sequencing the intelligent equipment and acquiring the alternative intelligent equipment with set ranking and the corresponding MAC address thereof from the sequenced intelligent equipment;
and sending a preset equipment control instruction to the alternative intelligent equipment corresponding to the MAC address, and triggering the alternative intelligent equipment to execute the equipment control instruction.
In some embodiments, ordering the smart devices comprises:
acquiring the RSSI signal strength of the intelligent equipment;
and sequencing the intelligent equipment according to the RSSI signal strength.
In some embodiments, ordering the smart devices according to the RSSI signal strengths comprises:
sequencing the intelligent equipment according to the sequence of the RSSI signal intensity from large to small; or the like, or, alternatively,
and sequencing the intelligent equipment according to the sequence of the RSSI signal strength from small to large.
In some embodiments, ordering the smart devices comprises:
acquiring the first access time of the intelligent equipment;
and sequencing the intelligent equipment according to the first access time.
In some embodiments, ordering the smart devices according to the first access time includes:
sequencing the intelligent equipment according to the sequence of the first access time from first to last; or the like, or, alternatively,
and sequencing the intelligent equipment according to the sequence of the first access time from the back to the first.
In some embodiments, sending preset device control instructions to the alternative smart device includes:
and sending a preset device control instruction to the alternative intelligent device through the TCP connection established between the intelligent device and the router.
In some embodiments, after triggering the alternative smart device to execute the device control instruction, the method further includes:
acquiring a machine code of the alternative intelligent device;
and binding the machine code with the MAC address corresponding to the alternative intelligent device.
In some embodiments, obtaining the machine code of the alternative smart device comprises:
acquiring the execution condition of the equipment control instruction of the alternative intelligent equipment;
judging whether the alternative intelligent equipment is the intelligent equipment to be tested according to the execution condition of the equipment control instruction;
and under the condition that the alternative intelligent equipment is the intelligent equipment to be tested, acquiring the machine code of the intelligent equipment to be tested, and taking the machine code of the intelligent equipment to be tested as the machine code of the alternative intelligent equipment.
In some embodiments, the apparatus for managing smart devices includes a processor and a memory storing program instructions, wherein the processor is configured to execute the method for managing smart devices described above when executing the program instructions.
In some embodiments, the binding device includes the above-mentioned apparatus for managing smart devices.
The method, the device and the binding equipment for managing the intelligent equipment provided by the embodiment of the disclosure can realize the following technical effects: the standby intelligent device is obtained from the intelligent device which is accessed to the router, and the device control instruction is sent to the standby intelligent device to trigger the standby intelligent device to execute the device control instruction, so that whether the standby intelligent device is the intelligent device to be subjected to machine coding correlation or not can be quickly and accurately determined through the execution condition of the standby intelligent device executing the control instructions.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
FIG. 1 is a schematic diagram of a method for managing smart devices provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of another method for managing smart devices provided by an embodiment of the present disclosure;
fig. 3 is a schematic diagram of an apparatus for managing smart devices according to an embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
As shown in fig. 1, an embodiment of the present disclosure provides a method for managing smart devices, for binding devices, including:
step S101, accessing a router and determining intelligent equipment accessed to the router;
s102, sequencing the intelligent devices and acquiring the alternative intelligent devices with set arrangement positions and the corresponding MAC addresses thereof from the sequenced intelligent devices;
and step S103, sending a preset equipment control instruction to the alternative intelligent equipment corresponding to the MAC address, and triggering the alternative intelligent equipment to execute the equipment control instruction.
By adopting the method for managing the intelligent equipment provided by the embodiment of the disclosure, the alternative intelligent equipment is obtained from the intelligent equipment which is accessed to the router, and the equipment control instruction is sent to the alternative intelligent equipment to trigger the alternative intelligent equipment to execute the equipment control instruction, so that whether the alternative intelligent equipment is the intelligent equipment to be subjected to machine coding correlation or not can be quickly and accurately determined through the execution condition of the alternative intelligent equipment executing the control instructions.
Optionally, the binding device accesses the router, and periodically polls and refreshes the intelligent device list of the access router, so as to determine the intelligent device which has accessed the router.
Optionally, the sorting the smart devices includes: acquiring the RSSI signal strength of the intelligent equipment; and sequencing the intelligent equipment according to the RSSI signal strength.
Optionally, sorting the smart devices according to RSSI signal strength includes: sequencing the intelligent equipment according to the sequence of the RSSI signal intensity from large to small; or, the intelligent devices are sorted according to the sequence of the RSSI signal strength from small to large.
Optionally, the binding device sorts the intelligent devices of the access router according to rssi (received signal strength indication) signal strength of the intelligent devices of the access router, sets a first-ranked intelligent device or a last-ranked intelligent device in the sorted intelligent devices as an alternative intelligent device, and obtains a MAC address corresponding to the alternative intelligent device.
Optionally, the binding device sorts the intelligent devices according to a descending order of RSSI signal strengths of the intelligent devices accessing the router, sets a first-ranked intelligent device in the sorted intelligent devices as an alternative intelligent device, and obtains an MAC address corresponding to the alternative intelligent device.
Optionally, the binding device sorts the intelligent devices according to a sequence from small to large of RSSI signal strength of the intelligent devices accessing the router, sets the intelligent device at the last rank in the sorted intelligent devices as an alternative intelligent device, and obtains the MAC address corresponding to the alternative intelligent device.
Therefore, the intelligent device with the maximum RSSI signal intensity can be selected as the alternative intelligent device quickly and accurately.
Optionally, the sorting the smart devices includes: acquiring first access time of intelligent equipment; and sequencing the intelligent equipment according to the first access time.
Optionally, the sorting the smart devices according to the first access time includes: sequencing the intelligent equipment according to the sequence of the first access time from first to last; or, the intelligent devices are sequenced according to the sequence of the first access time from the back to the first.
Optionally, the binding device sorts the intelligent devices of the access router according to the first access time of the intelligent devices of the access router, sets the first ranked intelligent device or the last ranked intelligent device as the candidate intelligent device, and obtains the MAC address corresponding to the candidate intelligent device.
Optionally, the binding device ranks the intelligent devices accessing the router according to a sequence of first access time of the intelligent devices accessing the router from first to last, sets the intelligent device that is the last ranked intelligent device in the ranked intelligent devices as an alternative intelligent device, and obtains a MAC address corresponding to the alternative intelligent device.
Optionally, the binding device ranks the intelligent devices of the access router according to a sequence of a first access time of the intelligent devices of the access router from the back to the front, sets a first-ranked intelligent device in the ranked intelligent devices as an alternative intelligent device, and obtains a MAC address corresponding to the alternative intelligent device.
Therefore, the intelligent device with the shortest first access time can be selected as the alternative intelligent device quickly and accurately.
Optionally, sending a preset device control instruction to the alternative intelligent device includes: and sending a preset device control instruction to the alternative intelligent device through the TCP connection established between the intelligent device and the router.
Optionally, the binding device connects and sends a device control instruction to the alternative intelligent device through a TCP (Transmission control protocol) established between the intelligent device and the router, and triggers the alternative intelligent device to execute a preset operation according to the device control instruction, for example: the buzzer buzzes or the indicator lamp flickers, etc.
Optionally, after triggering the alternative smart device to execute the device control instruction, the method further includes: acquiring a machine code of the alternative intelligent equipment; and binding the machine code with the MAC address corresponding to the alternative intelligent device.
Optionally, the binding device scans the machine code of the alternative intelligent device, associates and corresponds the machine code of the alternative intelligent device with the MAC address corresponding to the alternative intelligent device one by one, and uploads the machine code of the alternative intelligent device and the MAC address corresponding to the machine code to the cloud platform database synchronously to complete binding. Therefore, the machine code of the intelligent device and the MAC address corresponding to the machine code are stored in the cloud, and the binding information is stored in the cloud database, so that the dependence and the requirement on a hardware end are reduced, and the cost is reduced.
In some embodiments, where the alternate smart device executes device control instructions, for example: if a buzzer of the standby intelligent equipment sends out buzzing sound or an indicator lamp flickers, acquiring a machine code of the intelligent equipment for executing the equipment control instruction; optionally, scanning the machine code of the smart device by the binding device; and associating and corresponding the machine code of the intelligent equipment with the corresponding MAC address, and synchronously uploading the machine code of the intelligent equipment and the corresponding MAC address to a cloud platform database to finish binding.
In this way, the candidate intelligent device is obtained from the intelligent device which has access to the router, the device control instruction is sent to the candidate intelligent device to trigger the candidate intelligent device to execute the device control instruction, the machine code of the candidate intelligent device which executes the device control instruction is obtained, and the machine code of the candidate intelligent device and the corresponding MAC address are associated and bound. The machine code of the alternative intelligent device can be bound with the corresponding MAC address of the alternative intelligent device without increasing the hardware performance requirement on the intelligent device, and the effects of low cost, strong operability and low error rate can be achieved, so that the method is suitable for the large-scale production process of the intelligent device.
Optionally, obtaining a machine code of the alternative smart device includes: acquiring the execution condition of a device control instruction of the alternative intelligent device; judging whether the alternative intelligent equipment is the intelligent equipment to be tested according to the execution condition of the equipment control instruction; and under the condition that the alternative intelligent equipment is the intelligent equipment to be tested, acquiring the machine code of the intelligent equipment to be tested, and taking the machine code of the intelligent equipment to be tested as the machine code of the alternative intelligent equipment. Therefore, whether the alternative intelligent equipment is the intelligent equipment to be tested or not is judged according to the condition that the intelligent equipment executes the equipment control instruction, the machine code of the intelligent equipment to be tested can be quickly and accurately obtained after the intelligent equipment to be tested is found, the machine code of the intelligent equipment to be tested is used as the machine code of the alternative intelligent equipment, the machine code of the alternative intelligent equipment is associated with the corresponding MAC address, and the condition that the intelligent equipment is numerous and the correct equipment cannot be identified manually to cause association errors is avoided.
In some embodiments, the camera module detects a flashing situation of an indicator light of the alternative intelligent device, if the camera module detects that the indicator light of the alternative intelligent device flashes, the alternative intelligent device executes a device control instruction, the alternative intelligent device is the intelligent device to be tested, the machine code of the intelligent device to be tested is scanned through the binding device, the machine code of the intelligent device to be tested is used as the machine code of the alternative intelligent device, the machine code of the alternative intelligent device is associated and in one-to-one correspondence with the MAC address corresponding to the alternative intelligent device, the machine code of the alternative intelligent device and the MAC address corresponding to the machine code of the alternative intelligent device are synchronously uploaded to the cloud platform database, and binding is completed.
Optionally, acquiring images of the indicator lamps of the alternative intelligent equipment in real time at a preset acquisition rate through a camera module; performing image processing on each frame of image of the collected indicator lamps, and identifying the corresponding lighting and extinguishing states of the indicator lamps in each frame of image; acquiring the number of image frames which are continuously in a lighting state or a extinguishing state in all the identified frame images, and calculating the duration time of the lighting state or the extinguishing state and the frequency of a flashing state formed by the alternation of the lighting state and the extinguishing state according to the acquisition rate to obtain the optical state detection result of the indicator light; and comparing the obtained optical state detection result of the indicator lamp with a preset optical state, judging whether the alternative intelligent equipment executes the equipment control instruction according to the comparison result, and further judging whether the alternative intelligent equipment is the intelligent equipment to be detected. Optionally, the on-off state corresponding to the indicator in the image is determined by judging the pixel points in each frame of image that meet the set color, gray value or brightness value.
Optionally, acquiring an image of an indicator light of the alternative intelligent device through a camera module; identifying the image of the indicator light to obtain the color of the indicator light in the image of the indicator light; matching an indicator light state corresponding to the indicator light color from a preset database, wherein the preset database stores the indicator light color and the corresponding relation between the indicator light color and the indicator light state; matching the color of an indicator light of the currently acquired image with the color of a preset indicator light in a preset database; identifying the status of indicator lights of the alternative intelligent devices; optionally, the color of the indicator light is matched with the color of a preset indicator light in a preset database for representing the state of executing the control instruction of the equipment, and then the state of the indicator light of the alternative intelligent equipment is represented as the state of executing the control instruction of the equipment by the alternative intelligent equipment; and if the color of the indicator light is matched with the color of the preset indicator light which represents the state of the control instruction of the unexecuted equipment in the preset database, the state of the indicator light of the alternative intelligent equipment represents the state of the control instruction of the unexecuted equipment of the alternative intelligent equipment. Therefore, whether the standby intelligent equipment executes the equipment control instruction or not is judged according to the state corresponding to the indicator lamp of the standby intelligent equipment, and whether the standby intelligent equipment is the intelligent equipment to be tested or not is further judged.
Optionally, identifying an image of the indicator light further includes: acquiring an indicator light pixel value in an indicator light image, and determining whether an indicator light in the indicator light image is effective or not according to the indicator light pixel value; optionally, determining that the indicator light is invalid when the indicator light pixel value is smaller than the set pixel value threshold; and in the case that the pixel value of the indicator light is greater than or equal to the set pixel value threshold value, determining that the indicator light is effective. Optionally, under the condition that the indicator light is effective, the color of the indicator light in the indicator light image is obtained, the state corresponding to the indicator light is matched from the preset database according to the color of the indicator light, whether the candidate intelligent device executes the device control instruction is judged according to the state corresponding to the indicator light, and whether the candidate intelligent device is the intelligent device to be detected is judged.
In some embodiments, the alternative intelligent device is detected to emit a beep through the audio acquisition module, the alternative intelligent device executes a device control instruction, the alternative intelligent device is the intelligent device to be tested, the machine code of the intelligent device to be tested is scanned through the binding device, the machine code of the intelligent device to be tested is used as the machine code of the alternative intelligent device, the machine code of the alternative intelligent device and the MAC address corresponding to the alternative intelligent device are associated and in one-to-one correspondence, the machine code of the alternative intelligent device and the MAC address corresponding to the machine code of the alternative intelligent device are synchronously uploaded to the cloud platform database, and binding is completed.
Optionally, audio data, namely buzzing sound, sent by a buzzer of the alternative intelligent device is obtained through an audio acquisition module, and audio features of the audio data are extracted; searching whether a sound identification characteristic with the similarity reaching a preset matching threshold value with the extracted audio characteristic exists in a preset audio characteristic library, wherein the preset audio characteristic library stores the audio characteristic of the audio data sent by the buzzer and the corresponding relation between the audio characteristic and the preset sound identification characteristic; under the condition that the situation exists is determined, the extracted audio features represent the state of the alternative intelligent equipment executing equipment control instructions; in the event that the determination of absence is made, the extracted audio features are represented as a state in which the alternative smart device is not executing device control instructions. And judging whether the alternative intelligent equipment executes the equipment control instruction according to the audio data sent by the buzzer, and further judging whether the alternative intelligent equipment is the intelligent equipment to be tested.
Optionally, the binding device is provided with a camera module and an audio acquisition module; the binding equipment carries out image recognition on the indicator lamp through the camera module, and acquires audio data sent by the buzzer of the alternative intelligent equipment through the audio acquisition module.
Optionally, the binding device is connected with a camera module and an audio acquisition module; the binding equipment receives data sent by the camera module so as to perform image recognition on the indicator lamp, and receives audio data sent by a buzzer of the alternative intelligent equipment sent by the audio acquisition module.
Therefore, the standby intelligent equipment is obtained from the intelligent equipment which is accessed to the router, the equipment control instruction is sent to the standby intelligent equipment to trigger the standby intelligent equipment to execute the equipment control instruction, whether the standby intelligent equipment is the intelligent equipment to be tested can be rapidly and accurately determined according to the execution condition of the standby intelligent equipment executing the control instruction, the machine code of the intelligent equipment to be tested is used as the machine code of the standby intelligent equipment, and the machine code of the standby intelligent equipment is accurately and rapidly obtained and is associated and bound with the MAC address corresponding to the standby intelligent equipment. Under the condition of not increasing the hardware performance of the intelligent equipment, the binding of the machine code of the alternative intelligent equipment and the MAC address corresponding to the machine code is realized, and the effects of low cost, strong operability and low error rate can be achieved, so that the method is suitable for the large-scale production process of the intelligent equipment.
Referring to fig. 2, in practical application, an embodiment of the present disclosure provides a method for managing an intelligent device, which includes the following specific steps:
step S201, after the intelligent device is powered on and started up, the intelligent device is connected with a router according to default configuration;
step S202, binding equipment to access a router;
step S203, the binding equipment periodically polls and refreshes an intelligent equipment list of the access router, sorts the intelligent equipment according to the RSSI signal intensity, the first access time and the like of the intelligent equipment, and acquires the alternative intelligent equipment with set ranking from the sorted intelligent equipment;
step S204, the binding equipment sends a preset equipment control instruction to the alternative intelligent equipment;
step S205, when the candidate smart device executes the device control instruction, such as: the buzzer buzzes or the indicator lamp flickers, and the alternative intelligent equipment is the intelligent equipment to be tested;
step S206, the binding equipment scans the machine code of the intelligent equipment to be tested, and takes the machine code of the intelligent equipment to be tested as the machine code of the alternative intelligent equipment;
step S207, the binding device synchronously uploads the machine code of the alternative intelligent device and the MAC address corresponding to the machine code to a cloud platform database to complete binding.
In this way, the candidate intelligent device is obtained from the intelligent device which has access to the router, and the device control instruction is sent to the candidate intelligent device to trigger the candidate intelligent device to execute the device control instruction, so that whether the candidate intelligent device is the intelligent device to be tested can be quickly and accurately determined according to the execution condition of the candidate intelligent device executing the control instructions, the machine code of the intelligent device to be tested is used as the machine code of the candidate intelligent device, and the machine code of the candidate intelligent device and the corresponding MAC address are associated and bound. Under the conditions that the hardware investment of the intelligent equipment is not increased, extra supply chains and after-sale management cost are not increased, the binding equipment sequences the intelligent equipment accessed to the router to determine alternative intelligent equipment and a bidirectional confirmation mechanism for the condition that the alternative intelligent equipment executes the equipment control instruction, machine codes of the alternative intelligent equipment are confirmed to be associated with the corresponding MAC addresses and are in one-to-one correspondence, the highest equipment binding accuracy is realized with the lowest cost, and the hardware investment cost and the like can be further controlled.
In some embodiments, the smart device connects to the router through router configuration information preset in its WiFi module; the intelligent equipment receives the equipment control instruction through the WiFi module of the intelligent equipment, and sends the received equipment control instruction to the electric control board of the intelligent equipment through the WiFi module; optionally, the electronic control board of the smart device drives the smart device to execute the device control instruction according to the device control instruction, for example: the buzzer buzzes or the indicator lamp flickers, etc.
Optionally, the smart device is a mobile user terminal such as a smart phone or a tablet.
Optionally, the intelligent device is an intelligent household appliance such as an intelligent refrigerator, an intelligent washing machine, an intelligent air conditioner and the like.
As shown in fig. 3, an apparatus for managing a smart device according to an embodiment of the present disclosure includes a processor (processor)100 and a memory (memory)101 storing program instructions. Optionally, the apparatus may also include a Communication Interface (Communication Interface)102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via a bus 103. The communication interface 102 may be used for information transfer. The processor 100 may call program instructions in the memory 101 to perform the method for managing smart devices of the above-described embodiments.
Further, the program instructions in the memory 101 may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 101, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing by executing program instructions/modules stored in the memory 101, i.e., implements the method for managing smart devices in the above-described embodiments.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
By adopting the device for managing the intelligent equipment provided by the embodiment of the disclosure, the alternative intelligent equipment is obtained from the intelligent equipment which is accessed to the router, and the equipment control instruction is sent to the alternative intelligent equipment to trigger the alternative intelligent equipment to execute the equipment control instruction, so that whether the alternative intelligent equipment is the intelligent equipment to be tested can be quickly and accurately determined by executing the execution condition of the control instructions by the alternative intelligent equipment, the machine code of the intelligent equipment to be tested is used as the machine code of the alternative intelligent equipment, and the machine code of the alternative intelligent equipment and the corresponding MAC address are associated and bound. Under the conditions that the hardware investment of the intelligent equipment is not increased, extra supply chains and after-sale management cost are not increased, the intelligent equipment accessed to the router is sequenced through the binding equipment to determine the alternative intelligent equipment and a bidirectional confirmation mechanism of the condition that the alternative intelligent equipment executes the equipment control instruction is used for confirming the one-to-one correspondence of the machine codes of the alternative intelligent equipment and the MAC addresses of the alternative intelligent equipment, the higher equipment binding accuracy is realized with the lowest cost, the hardware investment cost can be further controlled, and the like.
The embodiment of the disclosure provides a binding device, which comprises the device for managing the intelligent device.
Optionally, the binding device is a code scanning terminal, a POS machine, or the like with a camera module and/or an audio acquisition module and capable of being networked.
Optionally, the binding device is a user mobile terminal such as a smart phone or a tablet.
The equipment acquires the alternative intelligent equipment from the intelligent equipment accessed to the router, sends an equipment control instruction to the alternative intelligent equipment to trigger the alternative intelligent equipment to execute the equipment control instruction, so that whether the equipment is the intelligent equipment to be tested can be quickly and accurately determined according to the execution condition of the alternative intelligent equipment executing the control instructions, the machine code of the intelligent equipment to be tested is used as the machine code of the alternative intelligent equipment, and the machine code of the alternative intelligent equipment and the MAC address corresponding to the machine code are associated and bound. Under the conditions that the hardware investment of the intelligent equipment is not increased, extra supply chains and after-sale management cost are not increased, the intelligent equipment accessed to the router is sequenced through the binding equipment to determine the alternative intelligent equipment and a bidirectional confirmation mechanism of the condition that the alternative intelligent equipment executes the equipment control instruction is used for confirming the one-to-one correspondence of the machine codes of the alternative intelligent equipment and the MAC addresses of the alternative intelligent equipment, the higher equipment binding accuracy is realized with the lowest cost, the hardware investment cost can be further controlled, and the like.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-described method for managing smart devices.
Embodiments of the present disclosure provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for managing smart devices.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: 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, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Claims (10)
1. A method for managing smart devices for binding devices, comprising:
accessing a router and determining intelligent equipment accessed to the router;
sequencing the intelligent equipment and acquiring the alternative intelligent equipment with set ranking and the corresponding MAC address thereof from the sequenced intelligent equipment;
and sending a preset equipment control instruction to the alternative intelligent equipment corresponding to the MAC address, and triggering the alternative intelligent equipment to execute the equipment control instruction.
2. The method of claim 1, wherein ranking the smart devices comprises:
acquiring the RSSI signal strength of the intelligent equipment;
and sequencing the intelligent equipment according to the RSSI signal strength.
3. The method of claim 2, wherein sorting the smart devices according to the RSSI signal strengths comprises:
sequencing the intelligent equipment according to the sequence of the RSSI signal intensity from large to small; or the like, or, alternatively,
and sequencing the intelligent equipment according to the sequence of the RSSI signal strength from small to large.
4. The method of claim 1, wherein ranking the smart devices comprises:
acquiring the first access time of the intelligent equipment;
and sequencing the intelligent equipment according to the first access time.
5. The method of claim 4, wherein ordering the smart devices according to the first access time comprises:
sequencing the intelligent equipment according to the sequence of the first access time from first to last; or the like, or, alternatively,
and sequencing the intelligent equipment according to the sequence of the first access time from the back to the first.
6. The method of claim 1, wherein sending preset device control instructions to the alternate smart device comprises:
and sending a preset device control instruction to the alternative intelligent device through the TCP connection established between the intelligent device and the router.
7. The method according to any one of claims 1 to 6, wherein after triggering the alternative smart device to execute the device control instruction, further comprising:
acquiring a machine code of the alternative intelligent device;
and binding the machine code with the MAC address corresponding to the alternative intelligent device.
8. The method of claim 7, wherein obtaining the machine code of the alternative smart device comprises:
acquiring the execution condition of the equipment control instruction of the alternative intelligent equipment;
judging whether the alternative intelligent equipment is the intelligent equipment to be tested according to the execution condition of the equipment control instruction;
and under the condition that the alternative intelligent equipment is the intelligent equipment to be tested, acquiring the machine code of the intelligent equipment to be tested, and taking the machine code of the intelligent equipment to be tested as the machine code of the alternative intelligent equipment.
9. An apparatus for managing smart devices, comprising a processor and a memory storing program instructions, characterized in that the processor is configured to perform the method for managing smart devices according to any one of claims 1 to 8 when executing the program instructions.
10. A binding device, characterized in that it comprises means for managing smart devices according to claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010710410.0A CN111885218B (en) | 2020-07-22 | 2020-07-22 | Method and device for managing intelligent equipment and binding equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010710410.0A CN111885218B (en) | 2020-07-22 | 2020-07-22 | Method and device for managing intelligent equipment and binding equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111885218A true CN111885218A (en) | 2020-11-03 |
CN111885218B CN111885218B (en) | 2023-06-23 |
Family
ID=73155197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010710410.0A Active CN111885218B (en) | 2020-07-22 | 2020-07-22 | Method and device for managing intelligent equipment and binding equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111885218B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117440409A (en) * | 2023-12-18 | 2024-01-23 | 深圳市瑞迅通信息技术有限公司 | Wireless communication method and system |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101682529A (en) * | 2007-03-29 | 2010-03-24 | 捷讯研究有限公司 | Method, system and mobile device for prioritizing a discovered device list |
US20140176310A1 (en) * | 2012-12-26 | 2014-06-26 | Oren Kotlicki | Presence based system and method for controlling devices |
CN105207813A (en) * | 2015-08-28 | 2015-12-30 | 小米科技有限责任公司 | Intelligent equipment sorting method and apparatus |
US20160269103A1 (en) * | 2014-12-12 | 2016-09-15 | Feitian Technologies Co., Ltd | Method for realizing bluetooth-binding between smart key device and mobile device |
CN106713088A (en) * | 2017-01-06 | 2017-05-24 | 南京创维信息技术研究院有限公司 | Method and system for controlling intelligent home equipment based on double mqtt servers |
WO2018090829A1 (en) * | 2016-11-15 | 2018-05-24 | 深圳市阿凡达智控有限公司 | Method and apparatus for allowing intelligent terminal device to access internet |
CN108173727A (en) * | 2018-01-30 | 2018-06-15 | 海信(山东)冰箱有限公司 | A kind of intelligent appliance method of network entry and equipment |
CN108347731A (en) * | 2018-01-11 | 2018-07-31 | 海尔优家智能科技(北京)有限公司 | A kind of method, medium, equipment and terminal carrying out secure binding |
CN108462618A (en) * | 2017-02-22 | 2018-08-28 | 中兴通讯股份有限公司 | Cloud Server and smart home device method for managing system |
CN108693784A (en) * | 2018-08-03 | 2018-10-23 | 深圳绿米联创科技有限公司 | Management method, device, terminal device and the storage medium of home equipment |
CN109725545A (en) * | 2018-12-27 | 2019-05-07 | 广东美的厨房电器制造有限公司 | Smart machine and its control method, computer readable storage medium |
CN109753034A (en) * | 2018-12-10 | 2019-05-14 | 深圳绿米联创科技有限公司 | A kind of control method, device, electronic equipment and storage medium |
CN109828915A (en) * | 2018-12-29 | 2019-05-31 | 北京小米移动软件有限公司 | A kind of method, apparatus of debugging utility, equipment and storage medium |
CN110049476A (en) * | 2019-04-22 | 2019-07-23 | 深圳绿米联创科技有限公司 | Method, apparatus, mobile terminal and the storage medium of equipment push |
WO2020098755A1 (en) * | 2018-11-16 | 2020-05-22 | 中兴通讯股份有限公司 | Smart home control method, smart home device, and storage medium |
-
2020
- 2020-07-22 CN CN202010710410.0A patent/CN111885218B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101682529A (en) * | 2007-03-29 | 2010-03-24 | 捷讯研究有限公司 | Method, system and mobile device for prioritizing a discovered device list |
US20140176310A1 (en) * | 2012-12-26 | 2014-06-26 | Oren Kotlicki | Presence based system and method for controlling devices |
US20160269103A1 (en) * | 2014-12-12 | 2016-09-15 | Feitian Technologies Co., Ltd | Method for realizing bluetooth-binding between smart key device and mobile device |
CN105207813A (en) * | 2015-08-28 | 2015-12-30 | 小米科技有限责任公司 | Intelligent equipment sorting method and apparatus |
WO2018090829A1 (en) * | 2016-11-15 | 2018-05-24 | 深圳市阿凡达智控有限公司 | Method and apparatus for allowing intelligent terminal device to access internet |
CN106713088A (en) * | 2017-01-06 | 2017-05-24 | 南京创维信息技术研究院有限公司 | Method and system for controlling intelligent home equipment based on double mqtt servers |
CN108462618A (en) * | 2017-02-22 | 2018-08-28 | 中兴通讯股份有限公司 | Cloud Server and smart home device method for managing system |
CN108347731A (en) * | 2018-01-11 | 2018-07-31 | 海尔优家智能科技(北京)有限公司 | A kind of method, medium, equipment and terminal carrying out secure binding |
CN108173727A (en) * | 2018-01-30 | 2018-06-15 | 海信(山东)冰箱有限公司 | A kind of intelligent appliance method of network entry and equipment |
CN108693784A (en) * | 2018-08-03 | 2018-10-23 | 深圳绿米联创科技有限公司 | Management method, device, terminal device and the storage medium of home equipment |
WO2020098755A1 (en) * | 2018-11-16 | 2020-05-22 | 中兴通讯股份有限公司 | Smart home control method, smart home device, and storage medium |
CN109753034A (en) * | 2018-12-10 | 2019-05-14 | 深圳绿米联创科技有限公司 | A kind of control method, device, electronic equipment and storage medium |
CN109725545A (en) * | 2018-12-27 | 2019-05-07 | 广东美的厨房电器制造有限公司 | Smart machine and its control method, computer readable storage medium |
CN109828915A (en) * | 2018-12-29 | 2019-05-31 | 北京小米移动软件有限公司 | A kind of method, apparatus of debugging utility, equipment and storage medium |
CN110049476A (en) * | 2019-04-22 | 2019-07-23 | 深圳绿米联创科技有限公司 | Method, apparatus, mobile terminal and the storage medium of equipment push |
Non-Patent Citations (2)
Title |
---|
李俊玮等: "PON家庭网关与智能路由器的融合", 《光通信研究》 * |
李昱兵;汪伟;辛钧;: "智能产品配网绑定时效问题的定位方法" * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117440409A (en) * | 2023-12-18 | 2024-01-23 | 深圳市瑞迅通信息技术有限公司 | Wireless communication method and system |
CN117440409B (en) * | 2023-12-18 | 2024-02-20 | 深圳市瑞迅通信息技术有限公司 | Wireless communication method and system |
Also Published As
Publication number | Publication date |
---|---|
CN111885218B (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107168085B (en) | Intelligent household equipment remote control method, device, medium and computing equipment | |
US20220057927A1 (en) | Scene-operation method, electronic device, and non-transitory computer readable medium | |
CN105446143B (en) | information processing method and electronic equipment | |
US20120063643A1 (en) | Methods, Systems, and Products for Gesture-Activation | |
US20140193157A1 (en) | Device and Method for Controlling Electronic Appliance | |
WO2020000907A1 (en) | Electrical appliance control method and apparatus, and storage medium and server | |
CN109753034B (en) | Control method, control device, electronic equipment and storage medium | |
US11499732B2 (en) | Method, device and system for wireless networking of air conditioning unit | |
CN110392414B (en) | Wireless network connection method and device, terminal equipment and readable storage medium | |
CN103995191A (en) | Method and device for identifying model of air conditioner | |
JP2020144660A (en) | Information processing apparatus, information processing method and program | |
CN110321508A (en) | Processing method, device, storage medium and the equipment of page presentation data | |
CN111885218A (en) | Method and device for managing intelligent equipment and binding equipment | |
CN111275245A (en) | Potential network switching user identification method, system, message pushing method, device and medium | |
CN111882087A (en) | Equipment maintenance processing method, device, computer system and readable storage medium | |
CN106101990B (en) | Bluetooth device searching method and device | |
CN102855554A (en) | Classifying method and device for e-mail | |
CN105162931B (en) | The sorting technique and device of a kind of communicating number | |
CN114253145A (en) | Control method and control device for household appliance and household appliance control system | |
CN111602412B (en) | Device selection apparatus, data set selection apparatus, device selection method, and storage medium | |
CN110597831A (en) | Method and device for updating article information and computer-readable storage medium | |
CN109101917A (en) | Mask method, training method, the apparatus and system identified again for pedestrian | |
CN110231960A (en) | A kind of target screen determines method, apparatus and storage medium | |
CN109684345B (en) | Control method of environment-friendly equipment information management system | |
CN112235760A (en) | Robot pairing method and device, terminal equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |