Equipment grouping management method and device, equipment and program product
By setting indicator lights in the device and collecting video image analysis device identifiers, the problem of troublesome equipment grouping operation in the prior art is solved, and efficient equipment grouping management is realized.
Patent Information
- Application Number
- CN202510114770.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-16
AI Technical Summary
In the prior art, when grouping the equipment is managed, grouping operations are more troublesome, which is not conducive to efficient grouping operations of lamps.
By setting an indicator light in the device to be grouped, and when the indicator light is in the flashing state of the identification code of the display device identification, a video image is collected, the device identification is parsed, and a packet instruction is received for grouping.
It realizes selecting device icons by shooting video images, and completing grouping operations in batches. Compared with the key control method, it improves operation convenience and grouping efficiency.
Smart Images

Figure CN120017887A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home, and in particular to a device grouping management method, apparatus, equipment and program product. Background Art
[0002] In large scenes such as conference rooms, offices or auditoriums, a large number of lighting equipment such as lamps are usually installed. In order to control the lights according to the functions of the scene, the lamps are usually grouped and managed so that the lamps in the same group present the same state or meet specific lighting functions to improve the convenience of control.
[0003] In the usual group management method, physical buttons or other trigger switches are usually used to turn on the lamps individually, so that the management device can receive the information of the lamp equipment identification emitted by the triggered lamps individually, and add the lamp equipment identification to the group where the lamp is located. If the lamps are installed in a high position or other difficult-to-reach positions, it is difficult to trigger the lamps to emit the lamp equipment identification information by buttons, and the grouping operation is more troublesome, which is not conducive to efficient grouping operation of the lamps. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a device grouping management method, apparatus, equipment and program product to solve the problem in the prior art that when grouping devices, the grouping operation is cumbersome and not conducive to efficient grouping operation of lamps.
[0005] A first aspect of an embodiment of the present application provides a device grouping management method, wherein the devices to be grouped include indicator lights, and the method includes:
[0006] When the indicator lights of the devices to be grouped are in a flashing state showing the identification code of the device identification, collecting a video image including the indicator light states of the devices to be grouped according to a predetermined sampling frequency;
[0007] Parsing the indicator light status in the video image to obtain the device identification of the device to be grouped in the video image;
[0008] A grouping instruction of the devices to be grouped in the video image is received, and the device identifiers of the devices to be grouped in the video image are grouped.
[0009] In combination with the first aspect, in a first possible implementation manner of the first aspect, parsing the indicator light state in the video image to obtain the device identification of the device to be grouped in the video image includes:
[0010] Analyze the indicator light status in the video image and determine the leading code corresponding to the indicator light status;
[0011] Determine an identification code and a check code included in the video image according to the preamble code;
[0012] After the parsed data is integrity checked according to the check code, the device identification of the device to be grouped is determined according to the identification code.
[0013] In combination with the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the identification code is a HASH value of a coded identification of the device to be grouped;
[0014] Determining the device identification of the device to be grouped according to the identification code includes:
[0015] Matching the identification code with the HASH set of device identifications of each device to be grouped, and determining the HASH value of the matching identification code;
[0016] Determine that the device identification corresponding to the HASH value is the device identification corresponding to the identification code.
[0017] In combination with the first aspect, in a third possible implementation manner of the first aspect, the device to be grouped includes a Bluetooth module;
[0018] Before collecting the video images including the indicator light states of the devices to be grouped according to a predetermined sampling frequency, the method further includes:
[0019] Establish a Bluetooth connection with the devices to be grouped through the Bluetooth module;
[0020] A grouping trigger instruction is sent to the devices to be grouped, where the grouping trigger instruction is used to control the device identifiers of the devices to be grouped to flash.
[0021] In combination with the first aspect to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the grouping instruction includes a drag instruction, and the display interface of the grouping management device for group management includes a video image area and a grouping area;
[0022] Receiving a grouping instruction of the devices to be grouped in the video image, and grouping the device identifiers of the devices to be grouped in the video image, comprising:
[0023] generating a device icon according to the position of the indicator light in the video image area;
[0024] receiving a drag instruction of the device icon, and dragging the device icon to the grouping area according to the drag instruction;
[0025] Determine the correspondence between the device identification of the device icon and the group name of the group area.
[0026] In combination with the first aspect to the third possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the grouping instruction includes a selection instruction, and the display interface of the group management device for group management includes a video image area and a group editing area;
[0027] Receiving a grouping instruction of the devices to be grouped in the video image, and grouping the device identifiers of the devices to be grouped in the video image, comprising:
[0028] Generate a device icon according to the position of the indicator light in the video image;
[0029] receiving a selection instruction of the device icon and determining the selected device icon;
[0030] The group name corresponding to the selected device icon is determined according to the editing instruction in the group editing area.
[0031] In combination with the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, receiving the device icon selection instruction and determining the selected device icon includes:
[0032] receiving a circle selection instruction located in the video image area, and determining a circle selection range of the circle selection instruction;
[0033] The device icons included in the circled range are taken as the selected device icons;
[0034] or,
[0035] Receiving a click instruction of one or more device icons in the video image area;
[0036] One or more device icons are selected according to the click instruction.
[0037] A second aspect of an embodiment of the present application provides a device grouping management apparatus, wherein the device to be grouped includes a Bluetooth module and an indicator light, and the apparatus includes:
[0038] A video image acquisition unit, configured to acquire a video image including the indicator light state of the device to be grouped at a predetermined sampling frequency when the indicator light of the device to be grouped is in a flashing state showing the identification code of the device identification;
[0039] A parsing unit, used for parsing the indicator light status in the video image, and obtaining the device identification of the device to be grouped in the video image;
[0040] The grouping unit is used to receive a grouping instruction of the devices to be grouped in the video image, and group the device identifiers of the devices to be grouped in the video image.
[0041] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements a method as described in any one of the first aspects.
[0042] A fourth aspect of the embodiments of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method in the first aspect or its various implementations.
[0043] A fifth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of the first aspects are implemented.
[0044] The sixth aspect of the embodiment of the present application provides a chip for implementing the methods in each implementation of the first aspect. Specifically, the chip includes: a processor for calling and running a computer program from a memory, so that a device equipped with the chip executes the method in the first aspect or its implementation.
[0045] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application set an indicator light in the device to be grouped, and when the indicator light is in a flashing state showing the identification code of the device identification, a video image including the indicator light status of the device to be grouped is collected at a predetermined sampling frequency, and the device identification of the device to be grouped in the video image is obtained by parsing the indicator light status in the video image, and the grouping instruction of the device to be grouped in the video image is received, and the device identification of the device to be grouped is grouped according to the grouping instruction, so that grouping can be completed in batches only by selecting the device icon through shooting the video image. Compared with the button control method, the convenience of operation is improved, and the efficiency of grouping is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0047] Figure 1 It is a schematic diagram of an implementation scenario of a device group management method provided in an embodiment of the present application;
[0048] Figure 2 It is a schematic diagram of the implementation process of a device group management method provided in an embodiment of the present application;
[0049] Figure 3 This is a schematic diagram of sending and receiving coded information provided by an embodiment of the present application;
[0050] Figure 4 It is another schematic diagram of sending and receiving coded information provided in an embodiment of the present application;
[0051] Figure 5 This is a schematic diagram of a grouping operation provided by an embodiment of the present application;
[0052] Figure 6 This is a schematic diagram of a grouping operation provided by an embodiment of the present application;
[0053] Figure 7 is a schematic diagram of a device grouping management apparatus provided in an embodiment of the present application;
[0054] Figure 8 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0056] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0057] Large venues such as conference rooms, offices, and auditoriums are often equipped with a large number of lighting facilities such as lamps. In order to control the lights according to the specific purpose of the venue, these lamps are generally grouped and controlled to keep the lamps in the same group in the same switch state, or to achieve a certain lighting effect (such as setting the lamps in the same group to display at different brightness or colors), thereby enhancing the convenience of control.
[0058] However, in the conventional group control mode, most of the lamps are turned on individually with the help of trigger devices such as physical buttons, so that the management terminal can capture the device identification information sent by the triggered lamps, establish the lamp device identification, and include this device identification in the group to which the lamp belongs. When the lamps are installed at a high place or other difficult-to-reach places, it is difficult to prompt the lamps to send out the device identification by pressing buttons, which makes the grouping operation very troublesome and is not conducive to the efficient implementation of lamp grouping operations.
[0059] Based on this, the present application embodiment proposes a device group management method. Figure 1 Schematic diagram of the implementation scenario of the method. In the implementation scenario of the device grouping management method, a device 1 to be grouped and an electronic device 2 are included, wherein the device to be grouped includes a first Bluetooth module 11, a first controller 12 and an indicator light 13. The first controller 12 of the device 1 to be grouped can receive the grouping trigger instruction of the electronic device through the first Bluetooth module 11, and convert the device identification of the device to be grouped into an identification code, and display the identification code in the form of flashing of the indicator light 13. The electronic device 2 can be a mobile phone, a tablet computer and other devices. The electronic device 2 includes a camera 21, a second controller 22 and a second Bluetooth module 23. The electronic device 2 can establish a Bluetooth connection with the first Bluetooth module 11 through the second Bluetooth module 23, and the second controller 22 sends a grouping trigger instruction to the device 1 to be grouped through the second Bluetooth module 23. When the indicator light 13 of the device 1 to be grouped is in a flashing state showing the identification code, the camera 21 captures a video image of the indicator light 13, decodes the video image through the second controller 22, obtains the device identification of the device to be grouped, and determines the group to which the device identification of the device to be grouped belongs based on the position of the indicator light 13 in the video image and the device identification of the indicator light 13.
[0060] Figure 2 A schematic diagram of the implementation flow of a device group management method provided in an embodiment of the present application is described in detail as follows:
[0061] In S201, when the indicator lights of the devices to be grouped are in a flashing state showing the identification code of the device identification, a video image including the indicator light states of the devices to be grouped is collected at a predetermined sampling frequency.
[0062] The devices to be grouped in the embodiments of the present application may be a large number of smart devices controlled by switches, including smart lamps, smart switches, etc.
[0063] The device identification is a string used to uniquely identify the device. The string may include letters, numbers, or other characters. For example, the device identification of a lamp may include a device identification such as C2000-A1-SXD0020-BX3.
[0064] The identification code is a coding result obtained by encoding according to the device identification according to a predetermined coding rule. For example, the device code of the lamp can be encoded in binary form to obtain the identification code.
[0065] When the indicator light is flashing, different codes can be represented according to the on and off states of the indicator light. For example, the on state can represent the code "1", and the off state can represent the code "0". If each frame of video image represents a code, and the video image acquisition frequency is 30fps, that is, 30 frames of video images are acquired per second, 30 coded characters can be acquired in 1 second.
[0066] When the devices to be grouped are grouped, the embodiments of the present application can trigger the devices to be grouped to be in a flashing state of the identification code of the display device identification in a variety of ways.
[0067] In a possible implementation, within a predetermined time period after the devices to be grouped are powered on, the indicator lights of the devices to be grouped are in a flashing state to display the identification code.
[0068] Alternatively, the first Bluetooth module in the device to be grouped is in working state, the electronic device can detect the devices in the scene within the communication range through the second Bluetooth module, establish a Bluetooth connection with the first Bluetooth module through the second Bluetooth module, and send a grouping trigger instruction to all devices within the communication range. The device that receives the grouping trigger instruction controls the indicator light to be in a flashing state to be grouped.
[0069] It is not limited to all devices within the Bluetooth communication range of the electronic device. When a group already exists in the electronic device, a group trigger instruction can be sent to all devices in the group, so that the indicator light of each device in the group is in a flashing state to be grouped.
[0070] In S202, the indicator light status in the video image is parsed to obtain the device identification of the device to be grouped in the video image.
[0071] The sampling frequency of the video image can be determined according to the flashing frequency of the indicator light, or the flashing frequency of the indicator light can be set according to the sampling frequency of the video image, so that the flashing frequency of the indicator light is the same as or adapted to the sampling frequency of the video image, so that each frame of the video image corresponds to an identification code. For example, when there is a single indicator light in the device to be grouped, each frame of the video image corresponds to an identification code "1" or "0".
[0072] The indicator light in the device to be grouped is not limited to a single indicator light, but may be more than two. For example, when the number of indicator lights in the device to be grouped is 4, an identification code corresponding to each video frame image may be any one of 0-15.
[0073] In addition, when the flashing frequency of the indicator light is adapted to the sampling frequency of the video image, one identification code may be corresponding to more than two frames of video images, that is, the sampling frequency of the video image is more than twice the flashing frequency of the indicator light, and the sampling frequency of the video image is an integer multiple of the flashing frequency of the indicator light. By decoding one identification code from more than two frames of video images, a more accurate identification code may be obtained.
[0074] When collecting the identification code presented by the flashing state of the indicator light, since the video image collected by the electronic device may not include the first frame of the video image when the indicator light is in the flashing state, it is not convenient to accurately obtain the complete identification code. Based on this, Figure 3 As shown, in a schematic diagram of sending and receiving coded information in an embodiment of the present application, the coded information sent by the indicator lights of the devices to be grouped can be set to include a preamble code, an identification code and a check code.
[0075] The preamble is used to help the electronic device synchronize and prepare to receive the following identification code and the check code after the identification code. The preamble is usually a specific bit sequence, and the electronic device determines the starting position of the identification code by identifying the preamble.
[0076] The preamble can be 1 byte, for example, 0X55 or 0xAA. The specific preamble to be used can be determined based on the first bit of the identifier code. If the first bit of the identifier code is "0", the preamble can be 0x55; if the first bit of the identifier code is "1", the preamble can be 0xAA.
[0077] The device identifier is used to uniquely identify the device. The length of the device identifier varies. For example, the device identifier can be 10-20 bytes, or 4-8 bytes, etc. After encoding the device identifier according to the predetermined encoding rules, the identifier code can be obtained. The length of the identifier code is usually fixed, and after the fixed-length identifier code is encoded, the check code can be obtained.
[0078] The check code may be a CRC check code, which is used to detect whether the received identification code has an error. By calculating the check code, the electronic device can verify whether an error has occurred in the identification code during transmission, thereby ensuring the integrity and reliability of the data. After the check code is verified, the electronic device can decode according to the identification code to obtain the device identification of the device to be grouped.
[0079] In order to further improve the grouping efficiency, the embodiment of the present application can compress the identification code, such as Figure 4In the schematic diagram of receiving and sending coded information, the identification code can be HASH processed by the HASH algorithm to obtain the identification code after HASH processing, that is, the HASH value after HASH processing. The check code is used to check whether the HASH value has an error during the transmission process to ensure the integrity and reliability of the HASH value.
[0080] In this case, when the electronic device analyzes the indicator light status through the video image, it obtains the HASH value after the leading code, and matches the HASH value with the HASH value in the predetermined HASH set to determine the matching target of the decoded HASH value. According to the corresponding relationship between the HASH value in the HASH set and the device identification, the device identification corresponding to the decoded HASH value can be determined.
[0081] In S203, a grouping instruction of the devices to be grouped in the video image is received, and the device identifiers of the devices to be grouped in the video image are grouped.
[0082] For the captured video image, after determining the device identification corresponding to the information presented by the indicator light based on the state of the indicator light in the video image, the device identification can be divided into required groups, thereby grouping the devices at the location.
[0083] The grouping instruction received by the electronic device may include a drag instruction or a selection instruction.
[0084] like Figure 5 A schematic diagram of a grouping operation provided by an embodiment of the present application is shown. In the display interface of the electronic device, a video image area and a grouping area are included.
[0085] The video image area is used to display one frame of the captured video image. The device and the indicator light on the device are displayed in the video image. The group area is used to hold the devices divided into a group. In order to facilitate the management of the groups, the names of the groups can be encoded. For example, the lighting groups of the conference room can include basic lighting groups, chairman area lighting groups, wall lighting groups, etc.
[0086] In order to facilitate the grouping operation, the video image in the video image area can automatically generate a device icon at the location of the device according to the device identified in the video image. For example, for a lighting device in the video image, a lighting icon can be automatically generated. In order to facilitate the distinction of different devices in the grouping area, the device icon can also include information such as the device serial number, such as Figure 5 In the device icons, the device icons include numeric serial numbers.
[0087] The device icon in the video image area can be dragged to the grouping area by dragging the device icon with a finger. The device serial number in the device icon in the grouping area can be used to correspond to the serial number of the device identification in the video image area.
[0088] In a possible implementation, the device icons in the video image area can be icons of different colors or different brightness. When the device icon in the video image area is dragged to the grouping area, the color or brightness of the device icon remains unchanged. By distinguishing the color or brightness, the staff can quickly establish the corresponding relationship between the device icon in the grouping area and the device icon in the video image area.
[0089] After dragging all devices in a single group to the grouping area, you can trigger the command to generate a group through the menu or button, so that all devices in the grouping area are divided into the same group.
[0090] The number of grouping areas is not limited, and the display interface may include more than two grouping areas, such as Figure 5 There are two grouping areas, namely, grouping area 1 and grouping area 2. The staff can drag the required equipment identifiers to the corresponding grouping areas, and can complete the division of more than two groups in the same interface.
[0091] In a possible implementation, the grouping instruction may also include a selection instruction. Figure 6 As shown, the display interface of the electronic device includes a video image area, in which a single frame of video image is displayed. By identifying the devices to be grouped in the video image area, device icons are generated at the positions of the devices to be grouped in the video image.
[0092] The staff can select the device icon by clicking it. After selection, the device icon can change color or brightness to distinguish it from the unselected device icons, such as the device icon with sequence number 3 in the figure. The staff can select the devices in the video image as needed. After completing the selection of a single group, the completion instruction can be triggered, and the list of selected device identifiers can be displayed to facilitate the staff to confirm the number of selected device identifiers. After editing the group name and other information, the group of devices corresponding to the selected device icon can be generated.
[0093] In a possible implementation, the devices that need to be grouped into the same group are located in the same area. To improve the efficiency of grouping operations, a circle selection instruction from a staff member can be received, and a circle selection range can be determined according to the circle selection instruction. The device icons within the circle selection range are determined to be in a selected state, such as quickly circle the device icons of sequence numbers 8 and 10 in the figure. By circling, the efficiency of group management of devices can be further improved.
[0094] In summary, the embodiment of the present application manages the grouped devices by shooting video images, and does not require a separate button trigger to determine the device identification of the device, which effectively improves the efficiency of device grouping. When the device sends the identification code through the indicator light, the coding content is simplified through HASH operation, which further reduces the shooting time of the video image and improves the efficiency of the grouping operation. By circling the video image, devices can be selected in batches for grouping, which further improves the efficiency of the device grouping operation.
[0095] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0096] Figure 7 A schematic diagram of a device grouping management apparatus provided in an embodiment of the present application. The devices to be grouped include a Bluetooth module and an indicator light, and the apparatus includes:
[0097] The video image acquisition unit 701 is used to acquire a video image including the indicator light state of the device to be grouped according to a predetermined sampling frequency when the indicator light of the device to be grouped is in a flashing state showing the identification code of the device identification;
[0098] A parsing unit 702, configured to parse the indicator light status in the video image to obtain the device identification of the device to be grouped in the video image;
[0099] The grouping unit 703 is configured to receive a grouping instruction for devices to be grouped in the video image, and group device identifiers of the devices to be grouped in the video image.
[0100] Figure 7 The device grouping management device shown is Figure 2 The device grouping management method shown corresponds to this.
[0101] Figure 8 is a schematic diagram of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device 8 of this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80, such as a device grouping management program. When the processor 80 executes the computer program 82, the steps in the above-mentioned device grouping management method embodiments are implemented. Alternatively, when the processor 80 executes the computer program 82, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0102] Exemplarily, the computer program 82 may be divided into one or more modules / units, which are stored in the memory 81 and executed by the processor 80 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 82 in the electronic device 8.
[0103] The electronic device 8 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that Figure 8 It is only an example of an electronic device 8 and does not constitute a limitation of the electronic device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0104] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0105] The memory 81 may be an internal storage unit of the electronic device 8, such as a hard disk or memory of the electronic device 8. The memory 81 may also be an external storage device of the electronic device 8, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the electronic device 8. The memory 81 is used to store the computer program and other programs and data required by the electronic device. The memory 81 may also be used to temporarily store data that has been output or is to be output.
[0106] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0107] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0108] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0109] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0111] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0112] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by hardware related to computer program instructions. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0113] In addition, an embodiment of the present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the methods in the above-mentioned implementation modes.
[0114] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A device grouping management method, characterized in that: The devices to be grouped include indicator lights, and the method includes: When the indicator lights of the devices to be grouped are in a flashing state showing the identification code of the device identification, collecting a video image including the indicator light states of the devices to be grouped according to a predetermined sampling frequency; Parsing the indicator light status in the video image to obtain the device identification of the device to be grouped in the video image; A grouping instruction of the devices to be grouped in the video image is received, and the device identifiers of the devices to be grouped in the video image are grouped.
2. The method according to claim 1, characterized in that Parsing the indicator light status in the video image to obtain the device identification of the device to be grouped in the video image includes: Analyze the indicator light status in the video image and determine the leading code corresponding to the indicator light status; Determine an identification code and a check code included in the video image according to the preamble code; After the parsed data is integrity checked according to the check code, the device identification of the device to be grouped is determined according to the identification code.
3. The method according to claim 2, characterized in that The identification code is a HASH value of the coded identification of the device to be grouped; Determining the device identification of the device to be grouped according to the identification code includes: Matching the identification code with the HASH set of device identifications of each device to be grouped, and determining the HASH value of the matching identification code; Determine that the device identification corresponding to the HASH value is the device identification corresponding to the identification code.
4. The method according to claim 1, characterized in that The devices to be grouped include a Bluetooth module; Before collecting the video images including the indicator light states of the devices to be grouped according to a predetermined sampling frequency, the method further includes: Establish a Bluetooth connection with the devices to be grouped through the Bluetooth module; A grouping trigger instruction is sent to the devices to be grouped, where the grouping trigger instruction is used to control the device identifiers of the devices to be grouped to flash.
5. The method according to any one of claims 1 to 4, characterized in that: The grouping instruction includes a drag instruction, and the display interface of the grouping management device for grouping management includes a video image area and a grouping area; Receiving a grouping instruction of the devices to be grouped in the video image, and grouping the device identifiers of the devices to be grouped in the video image, comprising: generating a device icon according to the position of the indicator light in the video image area; receiving a drag instruction of the device icon, and dragging the device icon to the grouping area according to the drag instruction; Determine the correspondence between the device identification of the device icon and the group name of the group area.
6. The method according to any one of claims 1 to 4, characterized in that: The grouping instruction includes a selection instruction, and the display interface of the grouping management device for grouping management includes a video image area and a grouping editing area; Receiving a grouping instruction of the devices to be grouped in the video image, and grouping the device identifiers of the devices to be grouped in the video image, comprising: Generate a device icon according to the position of the indicator light in the video image; receiving a selection instruction of the device icon and determining the selected device icon; The group name corresponding to the selected device icon is determined according to the editing instruction in the group editing area.
7. The method according to claim 6, characterized in that Receiving the device icon selection instruction and determining the selected device icon includes: receiving a circle selection instruction located in the video image area, and determining a circle selection range of the circle selection instruction; The device icons included in the circled range are taken as the selected device icons; or, Receiving a click instruction of one or more device icons in the video image area; One or more device icons are selected according to the click instruction.
8. A device group management device, characterized in that: The devices to be grouped include a Bluetooth module and an indicator light, and the device includes: A video image acquisition unit, configured to acquire a video image including the indicator light state of the device to be grouped at a predetermined sampling frequency when the indicator light of the device to be grouped is in a flashing state showing the identification code of the device identification; A parsing unit, used for parsing the indicator light status in the video image, and obtaining the device identification of the device to be grouped in the video image; The grouping unit is used to receive a grouping instruction of the devices to be grouped in the video image, and group the device identifiers of the devices to be grouped in the video image.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device implements the method according to any one of claims 1 to 7.
10. A computer program product comprising computer program instructions, characterized in that When the computer program is executed, the method according to any one of claims 1 to 7 is performed.