Device configuration method, apparatus, device, storage medium and program product

By scanning the code to obtain the device ID and determining the device type and user binding relationship, the problem of not being able to determine the corresponding relationship between the device and the background in device configuration replication is solved, and an efficient device configuration process is realized.

CN119760795APending Publication Date: 2025-04-04GUANGDONG STARTHING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411656691.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In the prior art, in the process of device configuration, especially when configuring a copy operation, it is impossible to determine the correspondence between the device and the background through conventional external barcodes or QR codes, resulting in low device configuration efficiency.

Method used

The device ID of the second device is obtained by scanning the code, and it is determined whether it is the same as the device type of the first device, and whether the device ID belongs to the device bound by the current user. If the condition is met, the configuration information of the first device is copied to the second device.

Benefits of technology

It realizes that the device configuration copy operation is performed directly without confirming the corresponding relationship between the device and the background, which improves the device configuration efficiency and is compatible with different types of device identification codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119760795A_ABST
    Figure CN119760795A_ABST
Patent Text Reader

Abstract

The present invention provides a device configuration method, apparatus, equipment, storage medium and program product, which relates to the field of computer technology. The method includes: after determining the first device, obtaining the scan code information of the identification code of the second device; the configuration information of the first device is the copy source; the second device is the recipient of the configuration information; from the scan code information, the device ID of the second device is obtained; if the first device and the second device are of the same device type, and the device ID belongs to the device bound by the current user, the configuration information of the first device is copied to the second device. Through the above scheme, the user can directly perform the device configuration copy operation on site without confirming the corresponding relationship between the device and the background, thereby improving the efficiency of device configuration, and at the same time, the identification code of the compatible device can be used to complete the device configuration copy, which is more convenient and simple.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a device configuration method, apparatus, device, storage medium and program product. Background Art

[0002] Device parameter configuration is a key step to ensure that the device operates normally and meets user-specific needs. Currently, common device configuration methods include: entering the device ID through the client and then accessing the server backend to complete the configuration, or using a mobile phone to directly connect to the device and configure parameters in the configuration interface that appears.

[0003] Generally speaking, the backend system has the ability to support users to copy the configuration of one device to another. However, this function faces a key problem in actual application. When copying the configuration from the backend to the physical device, the user needs to clearly understand the correspondence between the physical device and the backend recording device.

[0004] When the device leaves the factory, a barcode or QR code for reading device information is usually set on the body. However, the device is usually supplied to downstream equipment manufacturers in the form of a motherboard or box. After the downstream manufacturers install the motherboard and other components inside the body, they do not leave any information on the outside of the device. This results in the inability to determine the correspondence between the device and the background through conventional external barcodes or QR codes during the device configuration process, especially when configuration copy operations are involved, thus affecting the efficiency of device configuration. Summary of the invention

[0005] The present invention provides a device configuration method, apparatus, device, storage medium and program product, which are used to solve the defect of low device configuration efficiency in the prior art and improve the device configuration efficiency.

[0006] The present invention provides a device configuration method, comprising the following steps: After determining the first device, obtaining the scan code information of the identification code of the second device; the configuration information of the first device is the copy source; the second device is the recipient of the configuration information; Obtaining a device ID of the second device from the scanned code information; If the first device and the second device are of the same device type, and the device ID belongs to a device bound to the current user, the configuration information of the first device is copied to the second device.

[0007] According to a device configuration method provided by the present invention, the identification code includes a startup code and a device code; The acquiring the device ID of the second device from the code scanning information includes: Determine the information format of the scanned code information; If the information format of the code scanning information is a startup code format, intercepting the device ID from the code scanning information; If the information format of the scanned code information is a device code format, the scanned code information is used as the device ID.

[0008] According to a device configuration method provided by the present invention, the step of extracting the device ID from the scanned code information includes: Analyze the access address in the scan code information to determine the location of the device ID; Starting from the position of the device ID in the access address, data is intercepted according to the set number of bits of the device ID to obtain the device ID.

[0009] According to a device configuration method provided by the present invention, the first device is determined based on the following method: Determine the first device from a device management page; or, Scan the identification code of the device to determine the first device.

[0010] According to a device configuration method provided by the present invention, copying the configuration information of the first device to the second device includes: Determining a replicable field in the configuration information of the first device; The configuration information in the copyable field is copied to the second device.

[0011] According to a device configuration method provided by the present invention, after obtaining the device ID of the second device from the scan code information, the method further includes: If the first device and the second device are of different device types, outputting a prompt message indicating that the device types are different; If the device ID does not belong to the device bound by the current user, the current user is prompted to bind the second device.

[0012] The present invention also provides a device configuration apparatus, comprising the following modules: A code scanning information acquisition module, used to obtain the code scanning information of the identification code of the second device after determining the first device; the configuration information of the first device is the copy source; the second device is the recipient of the configuration information; A device ID acquisition module, used to acquire the device ID of the second device from the scan code information; A configuration module is used to copy the configuration information of the first device to the second device if the first device and the second device are of the same device type and the device ID belongs to the device bound by the current user.

[0013] The present invention also 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, any of the above-mentioned device configuration methods is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the device configuration method described in any one of the above is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the device configuration method described above is implemented.

[0016] The device configuration method, apparatus, device, storage medium and program product provided by the present invention obtain the scan code information of the identification code of the second device after determining the first device; the configuration information of the first device is the copy source; the second device is the recipient of the configuration information; the device ID of the second device is obtained from the scan code information; if the first device and the second device are of the same device type, and the device ID belongs to the device bound by the current user, the configuration information of the first device is copied to the second device. Through the above scheme, users can directly perform device configuration copy operations on site without confirming the corresponding relationship between the device and the background, thereby improving the efficiency of device configuration, and at the same time, the identification code of the compatible device can be used to complete the device configuration copy, which is more convenient and simple. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 It is a flow chart of the device configuration method provided by the present invention.

[0019] Figure 2 It is a structural schematic diagram of the equipment configuration device provided by the present invention.

[0020] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] Combine the following Figure 1-Figure 3 The device configuration method, apparatus, device, storage medium and program product of the present invention are described.

[0023] Figure 1 It is a flow chart of the device configuration method provided by the present invention, such as Figure 1 As shown, the method includes the following: Step 101, after determining the first device, obtain the scanning information of the identification code of the second device.

[0024] The configuration information of the first device is the copy source. The first device can be understood as the original device whose configuration information the user wants to copy to other devices. The first device is usually a device that has completed parameter configuration; the second device is generally a device that needs to be configured or needs to receive configuration information (i.e., the recipient of the configuration information), and is in an unconfigured or incompletely configured state before the configuration is copied.

[0025] After selecting the first device, the scanning information of the identification code of the second device is obtained. For example, the user first opens the device management page and selects the first device, selects "Copy device to other devices" through the menu and selects the scanning method, calls up the camera to enter the scanning program, and then obtains the identification code image through the scanning program and decodes it into scanning information.

[0026] It is understandable that the identification code is mainly divided into two categories according to its functional use in the device, one is the device code and the other is the startup code. Among them, the device code is a barcode or QR code attached to the device motherboard / communication box. The device ID can be directly read by scanning the device code. The device code is mainly used for operations related to device management and configuration. For example, in the process of device configuration replication, the device ID can be quickly obtained by scanning the device code, and then the corresponding device information can be found in the server, which is convenient for operations such as configuration replication between devices. The startup code is a QR code set on the surface of the device for ordinary users to scan and start. It is usually scanned through applications such as WeChat or Alipay. After scanning the code, the relevant mini-program or web page will be called up for payment operations to start the device. This shows that the startup code is mainly used for device startup and related commercial operations, such as device leasing, single-use payment and other scenarios. Although the startup code is mainly used to start the device, since it contains device-related information, the device ID can also be obtained by parsing the content in the configuration replication solution. The information in the startup code is generally an access address, which includes the server main address and information used to represent the device identity. By knowing the number of bits of the device identity information and its position in the access address, these characters can be directly obtained as the device ID.

[0027] Step 102: Obtain the device ID of the second device from the scanned code information.

[0028] Different processing is performed based on the information format of the scanned code information to obtain the device ID of the second device. Specifically, the information format of the scanned code information is determined; if the information format of the scanned code information is a startup code format, the device ID is intercepted from the scanned code information; if the information format of the scanned code information is a device code format, the scanned code information is used as the device ID.

[0029] If the scanned code is a startup code, the information format of the scanned code information is the startup code format. At this time, the access address in the scanned code information can be analyzed to determine the location of the device ID, and then starting from the location of the device ID in the access address, data is intercepted according to the set number of bits of the device ID to obtain the device ID. It can be understood that the information in the startup code is an access address, which contains the server main address and information used to represent the device identity. Because the number of bits of the device identity information (i.e., the device ID) and its position in the access address are known, these characters can be directly intercepted from the access address as the device ID. For example, assuming the access address is: "https: / / server.example.com / deviceID=123456789&otherParams"; It is known that the device ID is a 9-digit number located after "deviceID=", so the 9-digit number "123456789" can be directly extracted from "deviceID=" in the access address as the device ID.

[0030] If the device code is scanned, the information format of the scanned code is the device code format. Since the device code is a barcode or QR code affixed to the device motherboard / communication box, it is designed to directly provide the device ID. Therefore, the information directly obtained after scanning is the device ID, without the need for additional interception or parsing operations.

[0031] Step 103: If the first device and the second device are of the same device type, and the device ID belongs to a device bound to the current user, the configuration information of the first device is copied to the second device.

[0032] It is understandable that in order to ensure the accuracy and applicability of configuration copying, different types of devices may have different functions and parameter settings. Blindly copying the configuration of one device to another different type of device may cause errors or incompatibility. Therefore, after obtaining the device ID by scanning the code, the system will query the corresponding device information in the server according to this device ID, and then compare the type of the second device corresponding to the device ID with the type of the first device (i.e., the device as the configuration copy source). If the device types of the first device and the second device are different, a prompt message indicating that the device types are different is output. For example, if the two device types are different, the system will prompt the user "Device types are different" to remind the user that the configuration copy operation cannot be performed. Assuming that the first device is a printer model A, and the device obtained by scanning the code (i.e., the second device) is a scanner, the system will prevent the configuration copy and give a corresponding prompt.

[0033] To ensure the security of user data and permission management, only devices that users have permission to manage can copy configurations to prevent users from misoperating or maliciously copying configurations to devices that do not belong to them. Therefore, after obtaining the device ID, the system will check whether this device ID belongs to the device bound to the user. If the device ID does not belong to the device bound to the current user, the current user is prompted to bind a second device. For example, if the device ID does not belong to the device bound to the user, the system will prompt the user to "Please bind the device under the account name" to inform the user that only devices bound to their own account name can perform configuration copy operations. Assuming that user A's account is bound to devices X, Y, and Z, when the user scans a device with a device ID of W, the system will determine that device W does not belong to the device bound to user A, and will give a prompt.

[0034] If the above two judgments determine that the device obtained by scanning the code is of the same type as the first device, and the second device is a device bound to the user, the system will copy the configuration information in the first device to the second device. For example, if the user copies the configuration of printer A to printer B of the same model, after the conditions are met, printer B will obtain the same configuration information as printer A, such as print resolution settings and paper size settings.

[0035] In one embodiment, a replicable field in the configuration information of the first device is determined, and then the configuration information in the replicable field is copied to the second device. The replicable field refers to a portion of the configuration parameters in the device configuration information that can be copied from one device to another device. These parameters are information fragments that are allowed to be transferred and applied during the device configuration copying process. Taking a smart router as an example, the replicable fields may include the network name, network password, frequency band settings (such as the selection of 2.4GHz or 5GHz frequency bands), guest network settings, etc. It is reasonable to copy these parameters between routers of the same type, and it allows the new device to quickly obtain network configuration functions similar to those of the source device.

[0036] The copyable fields are determined based on the device type. Different types of devices have different core functions and related configuration parameters. For example, for printer devices, the copyable fields may include print resolution, paper size settings, print color mode (color / black and white), etc.; for smart cameras, the copyable fields may include video resolution, frame rate, storage location (local / cloud), motion detection sensitivity, etc. These fields are determined based on the main functions of the device, with the aim of allowing the device receiving the configuration to be consistent with the source device in key functions. In addition, security and compatibility factors need to be considered when determining the copyable fields. Some data involving device security keys and user privacy data (such as the device's unique authentication key, etc.) are generally not included in the copyable fields to prevent security vulnerabilities. For example, the root access password of the device or the encryption key for the device to communicate with a specific server is usually not copied. At the same time, it is necessary to ensure that the copied fields are compatible on the target device. If some configuration parameters may conflict or be incompatible between different device models or firmware versions, these parameters may be excluded from the copyable fields. For example, some older device models may not support advanced function settings of new devices. When the configuration fields corresponding to these advanced functions are copied to the old device, they will not be included in the copyable fields.

[0037] After determining the copyable fields in the configuration information of the first device, all the configuration information in the copyable fields is copied to the second device.

[0038] The device configuration method provided by the embodiment of the present invention obtains the scan code information of the identification code of the second device after determining the first device; the configuration information of the first device is the copy source; the second device is the recipient of the configuration information; the device ID of the second device is obtained from the scan code information; if the first device and the second device are of the same device type, and the device ID belongs to the device bound by the current user, the configuration information of the first device is copied to the second device. Through the above scheme, users can directly perform device configuration copy operations on site without confirming the correspondence between the device and the background, thereby improving the efficiency of device configuration, and at the same time, the identification code of the compatible device can be used to complete the device configuration copy, which is more convenient and simple.

[0039] Based on the above embodiment, the first device is determined based on the following method: Step 110: determine the first device from the device management page; or, Step 111, scanning the identification code of the device to determine the first device.

[0040] Specifically, there are two ways to determine the first device: Method 1: Determine the first device from the device management page. For example, after the user opens the device management page, a list of manageable devices will be listed on the page. The device list can be generated based on factors such as user account permissions and device connection status. The user identifies and selects the first device from the device list through an intuitive device name, icon, or other identifier. For example, if the device management page displays names such as "Device A" and "Device B", device A can be selected as the first device according to configuration requirements.

[0041] Method 2: Scan the device's identification code to determine the first device. For example, when the user selects the copy source device, he / she selects the scanning method. Call up the device's camera and enter the scanning program. Scan the QR code attached to the device's motherboard / communication box (such as a QR code that directly reads the device ID) or a QR code set on the device surface for ordinary users to scan and start (such as scanning the QR code through WeChat or Alipay to call up the relevant mini-program or web page for payment operations to start the device's QR code). The scanning program obtains the image of the QR code through the camera and decodes it into the information represented by the QR code. Analyze and judge the decoded information. If it is in the device code format, directly determine that the device is the first device; if it is in the startup code format, intercept the target information from the scanned code information, and determine the device identity based on the target information, and then determine the first device.

[0042] The embodiment of the present invention selects the first device based on the device management page in accordance with user habits, and can fully display device information to help users choose, and then copy the configuration by scanning the code, which is efficient. Directly scanning the code to determine the first device is convenient for operation at the device site and is not limited by the device management page.

[0043] In order to further analyze and explain the device configuration method proposed in the present invention, refer to the following embodiments.

[0044] The embodiment of the present invention utilizes the QR code of the device requested by the user to configure a scanning solution for function copying in the background. When the user needs to copy the device configuration, he can choose to copy the configuration to other devices, and provides the user with two solutions: selection and scanning. When the user copies the configuration information of device A to the actual device B, the scanning program is called up through the QR code entrance of the device in the configuration copy page. The scanning program scans the QR code and parses it, and then obtains the mapping information of the device ID from the parsed content. According to the mapping information, the corresponding device is found in the server, and then the configuration information of device A is copied to device B.

[0045] The above solution is explained below through two embodiments: Embodiment 1: The user opens the device management page and selects the first device; the user selects the "Copy device to other devices" operation through the menu after selecting the first device, and chooses to use the code scanning method; the camera of the device is called up to enter the code scanning program; the code scanning program obtains the image of the QR code through the camera and decodes it into the code scanning information represented by the QR code; the format of the code scanning information is judged. Generally, there are two situations for code scanning. In case 1, the device startup code is scanned, that is, the interface for device payment startup should be accessed when scanning normally, but usually the information in the QR code is an access address, which contains the server main address and information used to represent the device identity. Therefore, when the number of bits of the device identity information and its position in the access address are known, these characters can be directly obtained as the device ID. In case 2, if the device code of the device is directly scanned, the device ID is usually scanned. If the code scanning information is in the startup code format, the target information is intercepted from the code scanning information; and the device configuration is copied based on the target information; if the code scanning information is in the device code format, the device configuration is copied directly using the code scanning information. During the device copying process, based on the device ID obtained by scanning the code, first check whether the device corresponding to the device ID is of the same type as the first device. If not, it will prompt that the device type is different. At the same time, it is necessary to determine whether the device ID belongs to the device bound by the user. If not, the user is prompted to bind the device under the account name. If both conditions are met at the same time, all the copyable fields of the configuration information in the user's first device are copied to the device scanned by the user.

[0046] Example 2: The difference from Example 1 is that in the selection of the first device, the user selects device configuration copy, and when selecting the copy source (i.e., the first device), directly selects the code scanning method. This step is the same as starting the process of determining the first device by scanning the QR code on the device on site, without the need to select the device from the device management page first. After determining the first device, the other processing methods are the same as in Example 1, and will not be repeated here.

[0047] Through the above solution, users can directly perform device configuration copy operations on site. Whether selecting the first device through the device management page or determining the first device by scanning the code, the entire process does not require complex background operations or additional technical support. For example, in a small office, when a new device of the same model as an existing device is purchased, users can easily use this solution to copy the configuration of the existing device to the new device, reducing the time and effort of reconfiguration.

[0048] In addition, the above scheme provides two types of schemes, selection and scanning, to copy device configurations. Users can choose the appropriate method according to their preferences and actual conditions. For users who are familiar with the device management page, they can make a selection through page operations; for users at the device site, the scanning method is more direct and efficient, which is convenient for users to use flexibly in different scenarios. During the device copying process, it will be checked whether the device corresponding to the device ID obtained by scanning the code is of the same type as the first device, which can effectively avoid configuration incompatibility problems caused by different device types. For example, preventing the configuration of a printer from being copied to a copier ensures that the copied device can use the configuration information normally. By judging whether the device ID belongs to the device bound to the user, it is ensured that only devices that the user has the authority to manage can copy the configuration, which helps to protect user data security and device management permissions, and prevent users from misoperating or maliciously copying configurations to devices that do not belong to them.

[0049] At the same time, two different types of QR codes are considered, namely device codes and startup codes. Both the device code that directly reads the device ID and the startup code that is used to start the device and contains the device identity information can be used for device configuration replication. This compatibility enables the solution to adapt to the QR code settings of different devices, increasing the applicability of the solution.

[0050] The device configuration apparatus provided by the present invention is described below. The device configuration apparatus described below and the device configuration method described above can be referenced to each other.

[0051] refer to Figure 2 The device configuration apparatus provided by the present invention includes a code scanning information acquisition module 201, a device ID acquisition module 202 and a configuration module 203.

[0052] The code scanning information acquisition module 201 is used to acquire the code scanning information of the identification code of the second device after determining the first device; the configuration information of the first device is the copy source; the second device is the recipient of the configuration information; A device ID acquisition module 202 is used to acquire a device ID of the second device from the scan code information; The configuration module 203 is configured to copy the configuration information of the first device to the second device if the first device and the second device are of the same device type and the device ID belongs to a device bound to the current user.

[0053] The device configuration apparatus provided by the embodiment of the present invention obtains the scan code information of the identification code of the second device after determining the first device; the configuration information of the first device is the copy source; the second device is the recipient of the configuration information; the device ID of the second device is obtained from the scan code information; if the first device and the second device are of the same device type, and the device ID belongs to the device bound by the current user, the configuration information of the first device is copied to the second device. Through the above scheme, users can directly perform device configuration copy operations on site without confirming the corresponding relationship between the device and the background, thereby improving the efficiency of device configuration, and at the same time, the identification code of the compatible device can be used to complete the device configuration copy, which is more convenient and simple.

[0054] In one embodiment, the identification code includes a startup code and a device code; the device ID acquisition module 202 is specifically used to: Determine the information format of the scanned code information; if the information format of the scanned code information is a startup code format, intercept the device ID from the scanned code information; if the information format of the scanned code information is a device code format, use the scanned code information as the device ID.

[0055] In one embodiment, the device ID acquisition module 202 is specifically used to: The access address in the scan code information is analyzed to determine the location of the device ID; starting from the location of the device ID in the access address, data is intercepted according to the set number of bits of the device ID to obtain the device ID.

[0056] In one embodiment, the first device is determined based on: Determine the first device from a device management page; or scan an identification code of a device to determine the first device.

[0057] In one embodiment, the configuration module 203 is specifically configured to: Determine a replicable field in the configuration information of the first device; and copy the configuration information in the replicable field to the second device.

[0058] In one embodiment, the device ID acquisition module 202 is further used to: If the device types of the first device and the second device are different, a prompt message indicating that the device types are different is output; if the device ID does not belong to the device bound to the current user, the current user is prompted to bind the second device.

[0059] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 complete mutual communication through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the device configuration method, which includes: after determining the first device, obtaining the scanning information of the identification code of the second device; the configuration information of the first device is the copy source; the second device is the recipient of the configuration information; from the scanning information, the device ID of the second device is obtained; if the first device and the second device are of the same device type, and the device ID belongs to the device bound by the current user, the configuration information of the first device is copied to the second device.

[0060] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0061] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the device configuration method provided by the above methods, and the method includes: after determining the first device, obtaining the scan code information of the identification code of the second device; the configuration information of the first device is the copy source; the second device is the recipient of the configuration information; from the scan code information, the device ID of the second device is obtained; if the first device and the second device have the same device type, and the device ID belongs to the device bound to the current user, then the configuration information of the first device is copied to the second device.

[0062] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the device configuration method provided by the above-mentioned methods, the method comprising: after determining the first device, obtaining the scan code information of the identification code of the second device; the configuration information of the first device is the copy source; the second device is the recipient of the configuration information; from the scan code information, obtaining the device ID of the second device; if the first device and the second device are of the same device type, and the device ID belongs to the device bound to the current user, then copying the configuration information of the first device to the second device.

[0063] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0064] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0065] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these 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 invention.

Claims

1. A device configuration method, characterized in that: include: After determining the first device, obtaining scan code information of the identification code of the second device; The configuration information of the first device is a replication source; The second device is a recipient of the configuration information; Obtaining a device ID of the second device from the scanned code information; If the first device and the second device are of the same device type, and the device ID belongs to a device bound to the current user, the configuration information of the first device is copied to the second device.

2. The device configuration method according to claim 1, characterized in that: The identification code includes a startup code and a device code; The acquiring the device ID of the second device from the code scanning information includes: Determine the information format of the scanned code information; If the information format of the code scanning information is a startup code format, intercepting the device ID from the code scanning information; If the information format of the scanned code information is a device code format, the scanned code information is used as the device ID.

3. The device configuration method according to claim 2, characterized in that: The extracting the device ID from the code scanning information includes: Analyze the access address in the scan code information to determine the location of the device ID; Starting from the position of the device ID in the access address, data is intercepted according to the set number of bits of the device ID to obtain the device ID.

4. The device configuration method according to claim 1, characterized in that: The first device is determined based on the following method: Determine the first device from a device management page; or, Scan the identification code of the device to determine the first device.

5. The device configuration method according to claim 1, characterized in that: The copying the configuration information of the first device to the second device comprises: Determining a replicable field in the configuration information of the first device; The configuration information in the copyable field is copied to the second device.

6. The device configuration method according to claim 1, characterized in that: After obtaining the device ID of the second device from the code scanning information, the method further includes: If the first device and the second device are of different device types, outputting a prompt message indicating that the device types are different; If the device ID does not belong to the device bound by the current user, the current user is prompted to bind the second device.

7. A device configuration apparatus, characterized in that: include: A code scanning information acquisition module, used to obtain the code scanning information of the identification code of the second device after determining the first device; The configuration information of the first device is a replication source; The second device is a recipient of the configuration information; A device ID acquisition module, used to acquire the device ID of the second device from the scan code information; A configuration module is used to copy the configuration information of the first device to the second device if the first device and the second device are of the same device type and the device ID belongs to the device bound by the current user.

8. 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 device configuration method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the device configuration method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the device configuration method according to any one of claims 1 to 6 is implemented.