Applet-based device registration method and apparatus, device, and storage medium
By using a mini-program-based device registration method, a list of device types is output, and the target device is determined by a selection command. This solves the problem of low device registration efficiency and achieves a highly efficient device registration process.
Patent Information
- Application Number
- CN202310078203.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-13
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2043-01-13
AI Technical Summary
The device registration process is inefficient, especially when there are a large number of devices to be registered, as users need to manually enter the device names, which leads to low efficiency.
The device registration method based on mini-programs outputs a list of preset device types. Users select the target device type and confirm the target device through selection instructions. The system then outputs prompts to accurately match the target device and complete the device registration.
It improves the efficiency of device registration by simplifying the registration process by allowing users to select device types instead of manually entering names, and significantly improves efficiency, especially when registering a large number of devices.
Smart Images

Figure CN116095154B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of data processing, and in particular to a device registration method and device based on a small program, an apparatus, and a storage medium. BACKGROUND
[0002] Internet of Things (IoT) refers to real-time collection of any object or process that needs to be monitored, connected, and interacted through various information sensors, radio frequency identification technology, global positioning systems, infrared sensors, laser scanners, and other devices and technologies, collecting voice, light, heat, electricity, mechanics, chemistry, biology, position, and other information as needed, and connecting through various possible networks to achieve ubiquitous connection between objects and people, and intelligent perception, identification, and management of objects and processes. For the establishment of the Internet of Things, the registration process of the device often requires the user to manually input the name of the device to be connected, and when a large number of devices to be registered are involved, the efficiency of implementing device registration by this method is low. SUMMARY
[0003] The main purpose of the present application is to solve the technical problem of low efficiency of device registration.
[0004] The first aspect of the present application provides a device registration method based on a small program, which comprises:
[0005] outputting a preset device type list;
[0006] when a first selection instruction in response to the device type list is detected, determining a target device type according to the first selection instruction;
[0007] searching for a candidate device according to the target device type;
[0008] outputting a first prompt message for selecting a target device from the candidate device;
[0009] when a second selection instruction in response to the prompt message is detected, determining the target device from the candidate device according to the second selection instruction;
[0010] connecting the target device to complete device registration.
[0011] Optionally, in the first implementation manner of the first aspect of the present application, when the first selection instruction in response to the device type list is detected, the step of determining a target device type according to the first selection instruction comprises:
[0012] when the first selection instruction in response to the device type list is detected, determining whether a preset account is logged in;
[0013] If the preset account is logged in, the target device type is determined according to the first selection instruction.
[0014] Optionally, in a second implementation manner of the first aspect of the present application, after the step of connecting the target device to complete device registration, the method further comprises:
[0015] outputting second prompt information for binding the preset account to the target device;
[0016] associating the device information corresponding to the target device with the information card corresponding to the preset account when a binding instruction responding to the second prompt information is detected.
[0017] Optionally, in a third implementation manner of the first aspect of the present application, after the step of associating the device information corresponding to the target device with the information card corresponding to the preset account when a binding instruction responding to the second prompt information is detected, the method further comprises:
[0018] generating a default control parameter according to the information card when a starting instruction for the target device is detected;
[0019] generating a control instruction according to the default control parameter;
[0020] outputting prompt information for controlling the target device according to the control instruction.
[0021] Optionally, in a fourth implementation manner of the first aspect of the present application, the step of connecting the target device comprises:
[0022] connecting the target device and detecting whether the connection is successful;
[0023] if the target device is not successfully connected, returning to execute the step of searching for a candidate device according to the target device type.
[0024] Optionally, in a fifth implementation manner of the first aspect of the present application, before the step of outputting the preset device type list, the method further comprises:
[0025] when a generation instruction of the device type list is detected, parsing the generation instruction to obtain a sample device type and a device type icon;
[0026] generating the device type list according to the sample device type and the device type icon.
[0027] Optionally, in a sixth implementation manner of the first aspect of the present application, before the step of outputting the preset device type list, the method further comprises:
[0028] When the updating instruction of the device type list is detected, the updating instruction is parsed to obtain a device type to be updated and a device type icon to be updated;
[0029] The device type list is updated according to the device type to be updated and the device type icon to be updated.
[0030] The second aspect of the present application provides a device registration apparatus based on a small program, comprising:
[0031] A first output module is configured to output a preset device type list.
[0032] A first determination module is configured to determine a target device type according to a first selection instruction in response to the device type list.
[0033] A search module is configured to search for a device to be selected according to the target device type.
[0034] A second output module is configured to output a first prompt information of selecting a target device from the device to be selected.
[0035] A second determination and acquisition module is configured to determine the target device from the device to be selected according to a second selection instruction in response to the prompt information.
[0036] A connection module is configured to connect the target device to complete device registration.
[0037] The third aspect of the present application provides a device registration apparatus based on a small program, comprising a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected by a circuit; the at least one processor calls the instructions in the memory, so that the device registration apparatus based on a small program executes the above-mentioned device registration method based on a small program.
[0038] The fourth aspect of the present application provides a computer readable storage medium, the computer readable storage medium stores instructions, when it runs on a computer, makes the computer execute the above-mentioned device registration method based on a small program.
[0039] In the embodiment of the present application, the device registration device based on the applet outputs a preset device type list; when a first selection instruction responding to the device type list is detected, a target device type is determined according to the first selection instruction; a candidate device is searched according to the target device type; first prompt information for selecting a target device from the candidate device is output; when a second selection instruction responding to the prompt information is detected, the target device is determined in the candidate device according to the second selection instruction; and the target device is connected to complete the device registration. Since the device registration device based on the applet can output a device type list for a user to select the device type of the device to be registered, the user only needs to check the device type, and a large number of candidate devices corresponding to the checked device type can be screened out. The user can initiate a second selection instruction based on the candidate device, and the target device can be accurately hit according to the second selection instruction, so that the registration process of the target device is performed. Compared with manually inputting the name of the target device, the name input operation is replaced by the check operation when a large number of devices to be registered are involved, and the user does not need to manually input the name one by one, thereby improving the efficiency of device registration. BRIEF DESCRIPTION OF DRAWINGS
[0040] Figure 1 An embodiment of the device registration method based on the applet in the embodiment of the present application is shown;
[0041] Figure 2 A reference diagram of the device registration method based on the applet in the embodiment of the present application is shown;
[0042] Figure 3 Another embodiment of the device registration method based on the applet in the embodiment of the present application is shown;
[0043] Figure 4 An embodiment of the device registration device based on the applet in the embodiment of the present application is shown;
[0044] Figure 5 An embodiment of the device registration device based on the applet in the embodiment of the present application is shown. DETAILED DESCRIPTION
[0045] The embodiment of the present application provides a device registration method, device and storage medium based on the applet.
[0046] The terms "first", "second", "third", "fourth" and the like in the description and in the claims of the present application, and above-described drawings, if any, are used to distinguish between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the use of the terms so construed can be interchanged, under appropriate circumstances, to describe the embodiments of the application described herein in other than the particular order illustrated or described herein. Moreover, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or apparatus that comprises a list of steps or units can not necessarily be limited to those steps or units which are clearly recited, but can include other not expressly recited steps or units, or steps or units inherent to such process, method, product or apparatus.
[0047] For the sake of understanding, the specific flow of the embodiments of the present application is described below, please refer to Figure 1 An embodiment of the device registration method based on the applet in the embodiments of the present application includes:
[0048] 101, output a preset device type list;
[0049] Specifically, the device type list is output on the webpage of the applet, and the user can select the device type on the webpage.
[0050] Optionally, the webpage displaying the device type list lists all device types, and the user can select the type to which the device to be added belongs to trigger the first selection instruction.
[0051] Optionally, when the generation instruction of the device type list is detected, the generation instruction is parsed to obtain a sample device type and a device type icon; and the device type list is generated according to the sample device type and the device type icon.
[0052] Optionally, when the update instruction of the device type list is detected, the update instruction is parsed to obtain a device type to be updated and a device type icon to be updated; and the device type list is updated according to the device type to be updated and the device type icon to be updated. Specifically, all existing device types are displayed; this module information can be added in the background; the type unit content includes but is not limited to the device type icon and the device name. The selectable device type can refer to but is not limited to Figure 2 .
[0053] 102, when the first selection instruction in response to the device type list is detected, the target device type is determined according to the first selection instruction;
[0054] Specifically, the first selection instruction is triggered by the user in the interface.
[0055] 103. searching for the candidate device according to the target device type;
[0056] Optionally, in response to the first selection instruction, it is determined whether to enter a device searching / scanning interface to connect the target device to complete the registration, based on the number of the target device types, wherein the searching / scanning interface is different based on the different types of the selected device, and the customization of the interface is realized, so that the interface can be used for various different devices to be registered.
[0057] Specifically, when the target device type is obtained, the corresponding candidate target is searched in a preset target device database based on the character of the target device type.
[0058] When the candidate target is one, the searching / scanning interface is directly entered.
[0059] When the candidate target is multiple, the step of outputting the first prompt information for selecting the target device from the candidate devices is performed.
[0060] 104. outputting the first prompt information for selecting the target device from the candidate devices;
[0061] 105. when a second selection instruction responding to the prompt information is detected, determining the target device from the candidate devices according to the second selection instruction;
[0062] 106. connecting the target device to complete the device registration.
[0063] Specifically, the searching / scanning interface realizes the connection operation of the target device to complete the device registration.
[0064] Optionally, a prompt box is popped up on the searching interface, and a layer of mask is displayed between the Bluetooth searching interface, so as to prevent the user from misoperation.
[0065] Optionally, the target device is connected and whether the connection is successful is detected; if the target device is not successfully connected, the step of searching for the candidate device according to the target device type is performed. In the optional embodiment, the searching step is returned to be performed, and in some occasional cases, the success rate of the device registration can be improved.
[0066] In the embodiment of the present application, the device registration device based on the applet outputs a preset device type list; when a first selection instruction responding to the device type list is detected, a target device type is determined according to the first selection instruction; a candidate device is searched according to the target device type; a first prompt information for selecting a target device from the candidate device is output; when a second selection instruction responding to the prompt information is detected, the target device is determined in the candidate device according to the second selection instruction; and the target device is connected to complete the device registration. Since the device registration device based on the applet can output a device type list for a user to select the device type of the device to be registered, the user only needs to check the device type, and a large number of candidate devices corresponding to the checked device type can be screened out. The user can initiate a second selection instruction based on the candidate device, and the target device can be accurately hit according to the second selection instruction, so that the registration process of the target device is performed. Compared with manually inputting the name of the target device, the name input operation is replaced by the check operation when a large number of devices to be registered are involved, and the user does not need to manually input the name one by one, thereby improving the efficiency of device registration.
[0067] Please refer to Figure 3 Another embodiment of the device registration method based on the applet in the embodiment of the present application includes:
[0068] 201, when a first selection instruction responding to the device type list is detected, it is determined whether a preset account is logged in;
[0069] Specifically, the preset account is used for logging in the device registration device based on the applet.
[0070] 202, if the preset account has been logged in, the target device type is determined according to the first selection instruction.
[0071] Optionally, a second prompt information for binding the target device with the preset account is output; when a binding instruction responding to the second prompt information is detected, the device information corresponding to the target device is associated with the information card corresponding to the preset account. When the preset account is logged in, the optional target device type is updated based on the device associated with the information card, and different device type lists corresponding to different preset accounts are realized.
[0072] Optionally, when a start instruction for the target device is detected, a default control parameter is generated according to the information card; a control instruction is generated according to the default control parameter; and a prompt information for controlling the target device according to the control instruction is output.
[0073] In the embodiment of the application, the applet provides a login function, and the method can realize that different preset accounts correspond to different device type lists, so that different accounts can have control permissions of different devices, and the flexibility of device management is improved.
[0074] The device registration method based on the applet in the embodiment of the application is described above, and the device registration device based on the applet in the embodiment of the application is described below. Please refer to Figure 4 The device registration device based on the applet in the embodiment of the application includes one embodiment:
[0075] The first output module 301 is configured to output a preset device type list.
[0076] The first determination module 302 is configured to determine a target device type according to a first selection instruction in response to the device type list.
[0077] The search module 303 is configured to search for a candidate device according to the target device type.
[0078] The second output module 304 is configured to output a first prompt information for selecting a target device from the candidate device.
[0079] The second determination and acquisition module 305 is configured to determine the target device from the candidate device according to a second selection instruction in response to the prompt information.
[0080] The connection module 306 is configured to connect the target device to complete device registration.
[0081] Optionally, the connection module 306 can be specifically configured to:
[0082] Determine whether a preset account is logged in in response to the first selection instruction of the device type list.
[0083] If the preset account is logged in, the target device type is determined according to the first selection instruction.
[0084] Optionally, the connection module 306 can be specifically configured to:
[0085] Output a second prompt information for binding the preset account to the target device.
[0086] In response to a binding instruction in response to the second prompt information, the device information corresponding to the target device is associated with the information card corresponding to the preset account.
[0087] Optionally, the connection module 306 can be specifically configured to:
[0088] generating default control parameters according to the information card when starting instruction for the target device is detected;
[0089] generating control instruction according to the default control parameters;
[0090] outputting prompt information for controlling the target device according to the control instruction.
[0091] Optionally, the connecting module 306 can be specifically used for:
[0092] connecting the target device and detecting whether the connection is successful;
[0093] if the target device is not successfully connected, returning to execute the step of searching for the candidate device according to the type of the target device.
[0094] Optionally, the first output module 301 can be specifically used for:
[0095] when generating instruction for the device type list is detected, parsing the generating instruction to obtain sample device type and device type icon;
[0096] generating the device type list according to the sample device type and the device type icon.
[0097] Optionally, the first output module 301 can be specifically used for:
[0098] when updating instruction for the device type list is detected, parsing the updating instruction to obtain device type to be updated and device type icon to be updated;
[0099] updating the device type list according to the device type to be updated and the device type icon to be updated.
[0100] In the embodiment of the present application, the device based on the applet registers the device to output a preset device type list; when detecting a first selection instruction in response to the device type list, the target device type is determined according to the first selection instruction; the target device type is searched according to the target device type; the first prompt information for selecting the target device in the selected device is output; when detecting a second selection instruction in response to the prompt information, the target device is determined in the selected device according to the second selection instruction; and the target device is connected to complete the device registration. Since the device based on the applet registers the device to output the device type list for the user to select the device type of the device to be registered, the user only needs to check the device type, and a large number of selected devices corresponding to the checked device type can be screened out. The user can initiate the second selection instruction based on the selected device, and the target device can be accurately hit according to the second selection instruction, so that the registration process is performed on the target device. Compared with manually inputting the name of the target device, the name input operation is replaced by the check operation when a large number of devices to be registered are involved, and the user does not need to manually input the name one by one, thereby improving the efficiency of device registration.
[0101] The above Figure 4 The device based on the applet for registering the device in the embodiment of the present application is described in detail from the perspective of a modular functional entity, and the device based on the applet for registering the device in the embodiment of the present application is described in detail from the perspective of hardware processing.
[0102] Figure 5 The device based on the applet for registering the device provided in the embodiment of the present application is a structural schematic diagram. The device based on the applet for registering the device 500 can have great differences due to different configurations or performances, and can include one or more processors (central processing units, CPUs) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) for storing application programs 533 or data 532. The memory 520 and the storage medium 530 can be temporary storage or persistent storage. The programs stored in the storage medium 530 can include one or more modules (not shown in the figure), and each module can include a series of instruction operations in the device based on the applet for registering the device 500. Further, the processor 510 can be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the device based on the applet for registering the device 500.
[0103] Optionally, the device based on the applet for registering the device includes the device based on the applet for registering the device.
[0104] The applet-based device registration device 500 can also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that, Figure 5 The illustrated applet-based device registration device structure is not meant to limit the applet-based device registration device, which can include more or fewer components than shown, or combine some components, or have a different arrangement of components.
[0105] The present application also provides a computer readable storage medium, which can be a non-volatile computer readable storage medium, or a volatile computer readable storage medium, and the computer readable storage medium stores instructions, and the instructions, when executed on a computer, cause the computer to perform the steps of the applet-based device registration method.
[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the above-described system or device, unit can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0107] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.
[0108] The above-described and above-embodied examples are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A device registration method based on a WeChat Mini Program, characterized in that, The device registration method based on the mini-program includes: Output a list of preset device types; Upon detecting a first selection instruction in response to the list of device types, determine whether a preset account is logged in; If the preset account is already logged in, the target device type is determined according to the first selection instruction; wherein, different preset accounts correspond to different device type lists; Search for devices to be selected based on the target device type; Output the first prompt message for selecting the target device from the selected devices; Upon detecting a second selection instruction in response to the prompt information, the target device is determined from the devices to be selected according to the second selection instruction; Connect to the target device to complete device registration; The output is a second prompt message indicating that the target device is bound to the preset account; Upon detecting a binding instruction in response to the second prompt message, the device information corresponding to the target device is associated with the information card corresponding to the preset account.
2. The device registration method based on a mini-program according to claim 1, characterized in that, After the step of associating the device information corresponding to the target device with the information card corresponding to the preset account when a binding instruction in response to the second prompt information is detected, the method further includes: Upon detecting a startup command for the target device, default control parameters are generated based on the information card; Control commands are generated based on the default control parameters; Output prompts indicating that the target device is controlled according to the control instructions.
3. The device registration method based on a mini-program according to claim 1, characterized in that, The step of connecting the target device includes: Connect to the target device and check if the connection is successful; If the connection to the target device is unsuccessful, return to the step of searching for a device to be selected based on the target device type.
4. The device registration method based on a mini-program according to claim 1, characterized in that, Before the step of outputting the preset list of device types, the method further includes: When the device type list generation instruction is detected, the generation instruction is parsed to obtain sample device types and device type icons; The device type list is generated based on the sample device type and the device type icon.
5. The device registration method based on a mini-program according to claim 1, characterized in that, Before the step of outputting the preset list of device types, the method further includes: When an update instruction for the device type list is detected, the update instruction is parsed to obtain the device type to be updated and the icon of the device type to be updated; The device type list is updated based on the device type to be updated and the icon of the device type to be updated.
6. A device registration device based on a mini-program, characterized in that, The mini-program-based device registration device includes: The first output module is used to output a preset list of device types; The first determining module is used to determine whether a preset account is logged in when a first selection instruction in response to the device type list is detected; if the preset account is logged in, the target device type is determined according to the first selection instruction; wherein, different preset accounts correspond to different device type lists. The search module is used to search for devices to be selected based on the target device type. The second output module is used to output a first prompt message for selecting the target device from the devices to be selected. The second determination module is used to determine the target device from the devices to be selected according to the second selection instruction when a second selection instruction in response to the prompt information is detected. A connection module is used to connect to the target device to complete device registration; output a second prompt message for binding the target device to the preset account; when a binding instruction in response to the second prompt message is detected, the device information corresponding to the target device is associated with the information card corresponding to the preset account; wherein, when the preset account logs in, its selectable target device type is updated based on the device associated with the information card, so that different preset accounts correspond to different device type lists.
7. A device registration device based on a mini-program, characterized in that, The device registration device based on the mini-program includes: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor invokes the instructions in the memory to cause the applet-based device registration device to perform the applet-based device registration method as described in any one of claims 1-5.
8. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by the processor, it implements the applet-based device registration method as described in any one of claims 1-5.
Citation Information
Patent Citations
Method for multi-sensor adaptation and real-time data acquisition of wearable device
CN105228089A
Method and device for batch configuration of home devices
CN114285683A