A detection method and related device

By running factory inspection software in the device to be tested and storing the test results, only granting access permissions when the connection is specified, and canceling the permissions after the result is read, the problem of difficulty in guaranteeing security in the equipment factory inspection is solved, and an efficient and secure inspection process is achieved.

CN117453131BActive Publication Date: 2025-06-06TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311432784.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2025-06-06
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

In the prior art, equipment factory inspection relies on manual labor, making it difficult to ensure the security of the equipment and there is a risk of malicious tampering and implantation.

Method used

By running factory inspection software in the device to be detected, the detection results are obtained and stored in the designated storage space, access rights are granted only when the result query device establishes a specified connection with the device to be detected, and access rights are cancelled after the detection results are read.

Benefits of technology

It effectively eliminates the possibility that the device is maliciously tampered with or implanted during factory inspection, improves detection efficiency and accuracy, and ensures the safety of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117453131B_ABST
    Figure CN117453131B_ABST
Patent Text Reader

Abstract

The present application discloses a detection method and related devices. First, the detection results of the device to be detected are obtained by running the factory detection software, and the detection results are stored in the designated storage space of the device to be detected. Then the result query device establishes a designated connection with the device to be detected, and provides the result query device with permission to access the designated storage space of the device to be detected. Finally, when the detection result is successfully read from the designated storage space by the result query device, the access right of the result query device is cancelled. By storing the detection results of the device to be detected in the designated storage space, during the period of the designated connection between the device to be detected and the result query device, the result query device can only access the designated storage space, and cannot access other spatial data, which effectively eliminates the possibility of malicious tampering and implantation of the device to be detected during the factory detection, and the automated factory detection also eliminates human influence, thereby improving the detection efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a detection method and related devices. Background Art

[0002] Before the equipment leaves the factory, it is necessary to undergo compliance testing and other tests. Only after the equipment passes the test and it can be determined that the hardware and software of the equipment can provide normal service functions, the equipment will be shipped out of the factory.

[0003] In the related technology, factory inspection mainly relies on manual work. The inspectors use the inspection device connected to the equipment to be inspected to inspect the equipment to be inspected, and judge whether the equipment to be inspected is ready for delivery based on the inspection results. During the inspection process, in order to meet the inspection requirements, it is necessary to open a higher access right to the equipment to be inspected so that the inspectors can obtain the equipment parameters required for the inspection.

[0004] Higher access rights allow testers to make various abnormal settings on the equipment to be tested, making it difficult to ensure the safety of the equipment during factory inspection. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a detection method and related devices, which can ensure the safety of equipment during factory inspection and improve the efficiency of factory inspection.

[0006] The embodiments of the present application disclose the following technical solutions:

[0007] On the one hand, the present application provides a detection method, comprising:

[0008] Obtaining the test result of the device to be tested by running the factory test software, wherein the factory test software is configured in the device to be tested, and the test result is used to identify whether the device to be tested meets the qualified factory standard;

[0009] Storing the detection result in a designated storage space of the device to be detected;

[0010] In response to determining that the result query device establishes a specified connection with the device to be detected, setting the access permission of the result query device to the device to be detected to allow access to the specified storage space;

[0011] In response to the detection result being successfully read from the designated storage space by the result query device, the access permission of the result query device to the device to be detected is cancelled.

[0012] On the other hand, an embodiment of the present application provides a detection device, including: an acquisition module, a storage module, a connection establishment module and a permission cancellation module;

[0013] The acquisition module is used to acquire the test result of the device to be tested by running the factory test software, the factory test software is configured in the device to be tested, and the test result is used to identify whether the device to be tested meets the qualified factory standard;

[0014] The storage module is used to store the detection result in a designated storage space of the device to be detected;

[0015] The connection establishing module is used for setting the access permission of the result query device to the device to be detected to allow access to the designated storage space in response to determining that the result query device establishes a designated connection with the device to be detected;

[0016] The permission canceling module is used to cancel the access permission of the result querying device to the device to be detected in response to the detection result being successfully read from the designated storage space by the result querying device.

[0017] In a possible implementation, the connection establishing module is specifically configured to:

[0018] The designated storage space is a virtual mounted disk drive generated based on the storage space of the device to be detected; when the result query device establishes a designated connection with the device to be detected, the device to be detected is identified as a mountable Universal Serial Bus disk, and the storage space of the Universal Serial Bus disk is the designated storage space.

[0019] In a possible implementation manner, the device is specifically used for:

[0020] In response to the detection result being successfully read from the designated storage space by the result query device, the virtualization of the virtually mounted disk drive is canceled.

[0021] In a possible implementation manner, the device is specifically used for:

[0022] When the device to be detected establishes a data connection with the result query device through a universal serial bus interface, it is determined that the result query device establishes a designated connection with the device to be detected.

[0023] In a possible implementation, the device to be detected is an Internet of Things device, and the acquisition module is specifically used to:

[0024] By running the factory inspection software, request to establish a data connection with the IoT server;

[0025] In response to the data connection being successfully established, collecting device parameters of the device to be detected through the factory detection software, wherein the device parameters are at least one of software parameters or hardware parameters used for factory detection;

[0026] Sending a factory inspection request to the Internet of Things server through the data connection, wherein the factory inspection request is used to instruct the Internet of Things server to perform a factory inspection on the device to be inspected based on the device parameters carried in the factory inspection request;

[0027] The detection result returned by the Internet of Things server is obtained through the data connection.

[0028] In a possible implementation, the acquisition module is specifically used to:

[0029] In response to the data connection being successfully established, querying the Internet of Things server for factory registration information of the device to be detected;

[0030] In response to the factory registration information indicating that the device to be detected has passed the factory inspection and completed registration on the Internet of Things server, determining that the device to be detected has passed the factory inspection;

[0031] In response to the factory registration information indicating that the device to be detected is not registered on the Internet of Things server, the operation of collecting device parameters of the device to be detected by using the factory detection software is performed.

[0032] In a possible implementation, the acquisition module is specifically used to:

[0033] In response to the factory registration information indicating that the device to be detected is not registered on the Internet of Things server, obtaining authorization authentication information, where the authorization authentication information is used to identify the factory detection environment;

[0034] In response to determining that the factory inspection environment meets the security requirements based on the authorization authentication information, the operation of collecting the device parameters of the device to be inspected through the factory inspection software is performed.

[0035] In a possible implementation, the acquisition module is specifically used to:

[0036] The camera module of the device to be detected is called to scan the detection authorization code to obtain the authorization authentication information carried by the detection authorization code.

[0037] In a possible implementation, the acquisition module is specifically used to:

[0038] In response to failure to establish the data connection after a predetermined number of connection attempts, a connection establishment failure prompt is issued through the factory detection software, and the connection establishment failure prompt includes an image prompt or a sound prompt.

[0039] In a possible implementation manner, the device is specifically used for:

[0040] The test results are used for result display when being read, and the displayed results include whether the equipment to be tested meets the qualified factory standards, and when it does not meet the qualified factory standards, the equipment problems that caused it to fail to meet the qualified factory standards.

[0041] In a possible implementation manner, the device is specifically used for:

[0042] The management authority of the device to be detected remains closed during the factory inspection process, and the management authority is used to modify the device parameters of the device to be detected.

[0043] In another aspect, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:

[0044] The memory is used to store the computer program and transmit the computer program to the processor;

[0045] The processor is configured to execute the method described above according to the computer program.

[0046] In another aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method described in the above aspects.

[0047] On the other hand, an embodiment of the present application provides a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the method described in the above aspects.

[0048] It can be seen from the above technical solution that when it is necessary to perform factory inspection on the device to be detected, the corresponding test results can be automatically obtained by running the factory inspection software configured in the device to be detected. Since the test results need to be recorded uniformly, in order to avoid the possibility of obtaining other information of the device to be detected or changing the parameters of the device to be detected when the external device reads the test results, the test results are stored in the designated storage space of the device to be detected, and when it is determined that the result query device establishes a designated connection with the device to be detected, it only provides it with permission to access the designated storage space, and cancels the access rights of the result query device to the device to be detected after it is determined that the test result is read by it. Therefore, during the duration of the designated connection, the result query device can only access the designated storage space and cannot access other spatial data, and all access rights of the result query device will be cancelled after the test result is read. At this time, even if the designated connection is not interrupted, the security of the device to be detected can be guaranteed, thereby effectively eliminating the possibility of malicious tampering and implantation of the device to be detected during the factory inspection, and the automated factory inspection also removes human influence and improves the detection efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, 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 work.

[0050] Figure 1 A schematic diagram of a detection scenario provided in an embodiment of the present application;

[0051] Figure 2 A method flow chart of a detection method provided in an embodiment of the present application;

[0052] Figure 3 A schematic diagram of establishing a designated connection between a result query device and the device to be detected provided in an embodiment of the present application;

[0053] Figure 4 A schematic diagram of establishing a specified connection using a USB cable provided in an embodiment of the present application;

[0054] Figure 5 A schematic diagram of a wireless connection provided in an embodiment of the present application;

[0055] Figure 6a A schematic diagram of a test result display provided in an embodiment of the present application;

[0056] Figure 6bA schematic diagram of another detection result display provided in an embodiment of the present application;

[0057] Figure 7 A schematic diagram of a failure prompt provided in an embodiment of the present application;

[0058] Figure 8 A flow chart for performing factory inspection on a device to be inspected provided in an embodiment of the present application;

[0059] Fig. 9 A flowchart of a method for prompting to scan a detection authorization code and perform a factory inspection provided in an embodiment of the present application;

[0060] Fig.10 A schematic diagram of a detection method in an application scenario provided in an embodiment of the present application;

[0061] Fig.11 A schematic diagram of a detection device provided in an embodiment of the present application;

[0062] Fig.12 A structural diagram of a terminal device provided in an embodiment of the present application;

[0063] Fig.13 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0065] Before the equipment leaves the factory, it is generally necessary to conduct a series of normative tests and equipment availability tests. When the test results of the equipment are qualified, it is determined that the equipment can provide normal software and hardware service functions, and then the equipment is processed for shipment. In the related technology, the factory inspection of the equipment needs to rely on manual work, and the normative tests and equipment availability tests on the equipment often need to be performed manually by testers. When the tester wants to obtain the test results, it is necessary to enable the tester to have permissions, such as adb (Android Debug Bridge) permissions, etc. When the tester obtains such permissions, he can modify the parameters in the device at will, which will make it difficult to ensure the security of the device.

[0066] To this end, the embodiments of the present application provide a detection method and related devices, which can store the detection results of the device in the designated storage space of the device. When the detection results need to be queried, the permission to access only the designated storage space can be provided, and the permission will be revoked after the query of the detection results is completed. In this way, it is possible to avoid granting higher access rights to the detection personnel in order to obtain the detection results of the device, thereby ensuring the security of the device, thereby effectively eliminating the possibility of malicious tampering or implantation of the device during factory inspection.

[0067] A detection method provided in an embodiment of the present application can be implemented by a computer device, which can be a terminal device or a server, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. Terminal devices and servers can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0068] First, several terms that may be involved in the embodiments of the present application are explained below.

[0069] Factory inspection: refers to a series of inspections and tests on the software of the device to be inspected before it leaves the factory. These inspections and tests are designed to ensure the quality and stability of the software of the device to be inspected, as well as its compatibility with the hardware.

[0070] Embedded: refers to the technology and application field of embedding a computer system into other devices or systems to enable it to have computing and control capabilities. The device to be detected in the embodiment of the present application can be an embedded device.

[0071] O2 device: is the code name of the second generation palm brush device, embedded system design, low-cost design module, and can be one of the devices to be detected in the embodiment of the present application.

[0072] UMS: UMS (USB Mass Storage) is a USB device class.

[0073] Figure 1 A schematic diagram of a detection scenario provided in an embodiment of the present application, wherein the aforementioned computer device is the device to be detected in the embodiment of the present application, and the computer device is taken as an example of a palm-swiping device for specific explanation.

[0074] The palm scanning device mentioned above refers to a device that captures the palm image through a camera and recognizes the palm image.

[0075] The palm-brushing device in the embodiment of the present application includes factory inspection software and a designated storage space. When the palm-brushing device needs to be inspected at the factory, the inspection result of the palm-brushing device needs to be obtained by running the factory inspection software, and then the inspection result is stored in the designated storage space of the palm-brushing device. When the result query device needs to obtain the inspection result of the palm-brushing device, it needs to establish a designated connection with the palm-brushing device, and at this time, the result query device can obtain the permission to access the designated storage space of the palm-brushing device. Then, the result query device can obtain the inspection result of the palm-brushing device from the designated storage space of the palm-brushing device. When the result query device completes the acquisition of the inspection result, the access permission of the result query device to the palm-brushing device will be cancelled.

[0076] The result query devices mentioned above may include but are not limited to laptop computers, desktop computers, smart phones and tablet computers. The way in which the palm-brushing device and the result query device establish a designated connection may be a wired connection or a wireless connection. The wired connection may be understood as a connection using a physical cable, while the wireless connection may be understood as a connection relationship between the palm-brushing device and the result query device established through certain network signals. The permission of the palm-brushing device to access the designated storage space of the result query device may be understood as a one-time permission, that is, it can only be used once. When this access is completed, the access permission will be cancelled, which can ensure the security of the device to be tested, thereby effectively eliminating the possibility of the device to be tested being maliciously tampered with or implanted during the factory inspection. At the same time, when the palm-brushing device is subjected to factory inspection, the factory inspection software is used to eliminate human influence, which can improve the detection accuracy of the palm-brushing device to a certain extent.

[0077] Figure 2 A method flow chart of a detection method provided in an embodiment of the present application. The method can be executed by a computer device. In this embodiment, the computer device is taken as an example of a terminal device.

[0078] The method comprises:

[0079] S201: Obtain the test result of the device to be tested by running the factory test software.

[0080] The factory inspection software can be configured in the device to be inspected, and the factory inspection software can be understood as software used to perform factory inspection on the device to be inspected. The factory inspection software can be used to obtain the device parameters of the device to be inspected, and the inspection rules of the device to be inspected can also be set in the factory inspection software. The inspection results of the device to be inspected can be directly or indirectly obtained through the factory inspection software, and the inspection results can be used to identify whether the device to be inspected meets the qualified factory standards. The above-mentioned rules for inspecting the device to be inspected may include whether the hardware configuration meets the specifications, whether the software version is correct, whether the sensor data is within the normal range, etc.

[0081] Methods for obtaining the test results of the device to be tested by running the factory test software located on the device to be tested may include but are not limited to the following two methods:

[0082] (1) The device to be tested includes device parameters, and the factory inspection software is used to run according to the device parameters to obtain the factory inspection results of the device to be tested.

[0083] (2) The device parameters of the device to be tested can be obtained through the factory inspection software in the device to be tested, and then the device parameters are sent to other devices. The other devices perform factory inspection on the device to be tested based on the device parameters of the device to be tested, and finally obtain the inspection results of the device to be tested.

[0084] The first method and the second method mentioned above can be applied to different scenarios. The first method can be used in scenarios where it is necessary to save resources and reduce costs during factory inspection. By adopting the first method, the factory inspection of the equipment to be inspected can be completed only by the equipment to be inspected itself, without the help of other equipment, which can save costs; the second method can be applied to situations where factory inspection is required remotely, and the factory inspection information is obtained through the factory inspection software in the equipment to be inspected, and then the factory inspection information is sent to the remote device, and the remote device performs factory inspection. The detection process can be implemented wirelessly, so remote factory inspection can be achieved.

[0085] The factory inspection software provided by the present application can realize the automated factory inspection of the equipment to be inspected, and the factory inspection software can only realize its function before the equipment to be inspected leaves the factory. That is, when the equipment to be inspected passes the factory inspection and leaves the factory, the function of the factory inspection software needs to be silent or self-destructed. The silent state of the factory inspection software can be achieved by setting advanced permissions for it, or by hiding it. In this way, it can avoid triggering the factory inspection software when the user uses the equipment to be inspected, which leads to inconvenience in use.

[0086] S202: Storing the detection result in a designated storage space of the device to be detected.

[0087] The designated storage space may refer to the storage space of the device to be tested itself, and the test results of the device to be tested can be stored in the designated storage space. The designated storage space mentioned here can be understood as a sub-storage space in the original storage space of the device to be tested (which can refer to a storage device such as a hard disk). At the same time, the size of the designated storage space is not limited, and the minimum size is not less than the space required for the test results. In addition to storing the test results of the device to be tested, the designated storage space can also store other relevant information of the factory inspection of the device to be tested, such as: the process of factory inspection, the order of factory inspection, etc.

[0088] In a possible implementation, the designated storage space may be a virtual mounted disk drive generated based on the storage space of the device to be detected; when the result query device establishes a designated connection with the device to be detected, the device to be detected will be identified as a mountable universal serial bus disk. At this time, the storage space of the universal serial bus disk is the designated storage space.

[0089] Specifically, the virtual mounted disk drive generated by the device to be detected itself can be used as the designated storage space of the device to be detected, that is, the designated storage space of the device to be detected can be virtual and mountable at the same time. Mounting refers to connecting the top-level directory in the device file to a directory under the Linux root directory, and accessing this directory is equivalent to accessing the device file. When the designated storage space of the device to be detected is mountable, the detection results in the device to be detected can be accessed and can be obtained by other devices. The virtual mounted disk drive mentioned above can be a virtual USB flash drive, and UMS can be used as one type of virtual USB flash drive. UMS can allow the device to be detected to appear as a mountable disk drive in the operating system so that users can easily access and manage files and data stored on the device. When the designated storage space is a virtual USB flash drive, and the result query device establishes a designated connection with the device to be detected, the result query device will identify the device to be detected as a USB flash drive, and will not identify the device to be detected as its original device type.

[0090] S203: In response to determining that the result query device establishes a designated connection with the device to be detected, setting the access permission of the result query device to the device to be detected to allow access to the designated storage space.

[0091] When the result query device establishes a designated connection with the device to be detected, the device to be detected will be identified as a mountable Universal Serial Bus disk. That is to say, when the result query device and the device to be detected establish a connection, the device to be detected connected to it will be identified as a mountable Universal Serial Bus disk (which can be understood as a USB flash drive) at the result query device, and the device to be detected will not be identified as the type of device to be detected. For example, assuming that the device to be detected is a palm-swipe device, and the result query device is a cloud server, then at this time, by establishing a designated connection between the palm-swipe device and the cloud server, the palm-swipe device connected to it will be identified as a USB flash drive at the cloud server, rather than a palm-swipe device. This means that the result query device can only read the content stored in the designated storage space of the device to be detected - the mountable Universal Serial Bus disk.

[0092] Figure 3 A schematic diagram of establishing a specified connection between a result query device and the device to be detected provided in an embodiment of the present application, such as Figure 3 As shown, the device to be detected includes a virtual mounted disk drive, and the virtual mounted disk drive (i.e., a virtual U disk) includes a detection result file, and the detection result file stores the detection result of the device to be detected. After the result query device establishes a specified connection with the device to be detected, the device to be detected will be identified as a U disk in the result query device, and the storage space corresponding to the U disk is the specified storage space of the device to be detected. The obtained detection result file of the device to be detected (the U disk file in the figure) will be displayed in the specified storage space.

[0093] By setting a virtual mounted disk drive in the device to be detected, when the device to be detected is connected to the result query device, the device category of the device to be detected itself can be changed, and it will be displayed in the result query device only in the form of a disk. At this time, the result query device can only obtain the content stored in the disk, and cannot obtain the content in the device to be detected that is not stored in the virtual mounted disk drive. This ensures the security of the device to be detected to a certain extent and prevents other information of the device to be detected from being maliciously obtained and tampered with.

[0094] It is mentioned above that the result query device establishes a specified connection with the device to be detected. The specific connection method can be a wired connection or a wireless connection. The wired connection may include a bus connection, a wire connection, or other tangible connection methods, which are not limited here. Wireless connection can be understood as a non-tangible connection method, that is, a method that does not require a physical cable for direct connection, such as: connection through the Internet of Things, local area network, etc.

[0095] When the designated connection mode between the result query device and the device to be detected is set to a wired connection, it means that only the result query device that is connected to the device to be detected by wire can obtain the permission to access the designated storage space of the device to be detected, and then obtain the test results in the designated storage space. However, the result query device that is connected to the device to be detected wirelessly cannot obtain the permission to access the designated storage space of the device to be detected, and thus cannot obtain the test results of the device to be detected. Through this designated connection mode, some devices that do not have the access qualifications to the designated storage space can be excluded for the device to be detected. This can ensure the accuracy of the permission granting of the device to be detected to a certain extent, and then ensure that the storage content in the designated storage space of the device to be detected is not obtained by other unrelated devices, thereby improving the security of the data of the device to be detected.

[0096] When determining that the result query device establishes a designated connection with the device to be detected, it is also necessary to set access rights for the result query device, and the result query device needs to query the detection result based on the obtained rights. The content of the access rights can be: allowing the result query device to access the designated storage space of the device to be detected. When the result query device obtains the above-mentioned access rights, it can access the designated storage space of the device to be detected and obtain the data of the detection result stored therein. At the same time, it can be understood that, since the device to be detected only grants the result query device permission to access the designated storage space, during the duration of the designated connection, the result query device can only access the designated storage space and cannot access other spatial data, so when the result query device completes the reading of the detection result, but has not yet released the designated connection with the device to be detected, the security of the device to be detected can be guaranteed.

[0097] S204: In response to the detection result being successfully read from the designated storage space by the result query device, canceling the access permission of the result query device to the device to be detected.

[0098] After the result query device obtains the detection result from the designated storage space of the device to be detected, the device to be detected will cancel the access permission granted to the result query device to prevent the result query device from accessing the designated storage space of the device to be detected multiple times.

[0099] The time point when the detected device cancels the access permission of the result query device may occur when the detected device recognizes that the result query device has completed reading the detection result, or when the detected device recognizes that the result query device has disconnected the designated connection established with it.

[0100] It can be known from the above description that in the embodiment of the present application, the access right provided by the device to be detected to the result query device is a single permission. Considering from the perspective of the device, in a single access process, the result query device can already obtain the test result of the device to be detected, and there is no need for multiple accesses. Considering from the perspective of security, if the permission granted by the device to be detected to the result query device is multiple access rights, then at this time the result query device can use the access right to access the device to be detected multiple times, and the more times the access is, the greater the risk brought about, which is not conducive to the security of the device to be detected.

[0101] From the above description, it can be seen that in the embodiment of the present application, the virtual mounted disk drive can be understood as a virtual U disk, and its function is to store the test results of the device to be tested, and when a result query device is connected to the device to be tested, the device to be tested can be identified as a U disk and the test results can be obtained from its storage space. Then, when the result query device successfully obtains the test results, the virtual mounted disk drive has completed its work and can no longer play other roles. At this time, the existence of the virtual mounted disk drive is no longer valuable and its function can be canceled.

[0102] In a possible implementation, after the detection result is successfully read from the designated storage space by the result query device, the virtual mounting disk drive may be canceled.

[0103] The cancellation of the virtual mount disk drive mentioned above can be understood as ending the function of the virtual mount disk drive, that is, it does not exist as a virtual storage disk; it can also be understood as deleting the virtual mount disk drive, because the virtual mount disk drive has completed the current task, that is, when the result query device and the device to be detected establish a specified connection, the device to be detected is identified as a mountable universal serial bus disk at the result query device. When the device to be detected needs to establish a specified connection with other devices, a new virtual mount disk drive can be established again on the device to be detected itself.

[0104] The purpose of canceling the virtualization of the virtual mounted disk drive is to avoid that when other devices are connected to the device to be detected, the device to be detected is recognized as a USB flash drive again due to the existence of the virtual mounted disk drive inside the device to be detected, resulting in the user being unable to use the normal functions of the device to be detected. At the same time, terminating the function of the virtual mounted disk drive can save storage space inside the device to be detected and save resources of the device to be detected. In addition, canceling the virtualization of the virtual mounted disk drive can also ensure that the designated storage space of the device to be detected can only be accessed once. When the virtualization of the virtual mounted disk drive is ended, it means that the designated storage space of the device to be detected will no longer establish a designated connection with other devices, and will no longer be obtained by other devices. Data information, thus ensuring the security of the device to be detected.

[0105] In the embodiment of the present application, the manner of establishing a designated connection between the device to be detected and the result query device may include a wired connection and a wireless connection.

[0106] In a possible implementation, when the device to be detected establishes a data connection with the result query device through a universal serial bus interface, it is determined that the result query device establishes a designated connection with the device to be detected.

[0107] Specifically, the use of a serial bus interface connection can be understood as a way of connecting the device to be detected and the result query device by wire, that is, connecting them using a USB cable.

[0108] Figure 4 A schematic diagram of establishing a specified connection using a USB cable is provided in an embodiment of the present application, such as Figure 4 As shown in the figure, the ports between the device to be detected and the result query device are connected via a USB cable.

[0109] This connection method is suitable for situations where the security requirements of the device to be tested are high, and the result query device has high requirements for the efficiency of obtaining the test results. The reason is that the use of a wired connection can make the process of establishing a specified connection between the device to be tested and the result query device simpler, and it can be completed by simply connecting the physical cable through the physical interface. There is no need to make additional adjustments and modifications to the underlying protocol, or to debug the interface. While ensuring the convenience of the specified connection, since there is no need to modify the underlying logic and program, the security of the device to be tested can be better guaranteed, and the connection efficiency between the device to be tested and the result query device is improved.

[0110] Since the application scenario is factory inspection of the device to be tested, when a wired connection is used, the distance between the device to be tested and the result query device is often close, and they can generally be located within the same factory area. At this time, since the range is controllable and the distance is close, the legitimacy of the identity of the result query device can be guaranteed to a certain extent, thereby improving the security of the device to be tested and reducing the possibility of being invaded and maliciously tampered by illegal devices.

[0111] In a possible implementation, the mode of establishing a designated connection between the device to be detected and the result query device can also be a wireless connection, where the wireless connection refers to connecting the device to be detected and the result query device without a physical entity cable, and the wireless connection can be understood as a connection made by non-physical lines such as the Internet of Things and a local area network. In an embodiment of the present application, the wireless connection mode can be applied to the device to be detected and the result query device, which are far apart, and cannot be achieved by a wired connection mode or the wired connection mode is too costly. Using the wireless connection mode, it is possible to achieve a remote cloud connection between the device to be detected and the result query device, and the specific connection process may involve a conversion process of a communication protocol, and the security of the device to be detected can be guaranteed by setting permissions during the conversion process, and the wired connection mode can be used to obtain multiple data in a parallel manner at the same time, that is, the test results of multiple devices to be detected can be obtained at the same time, and the efficiency of obtaining the test results can be improved. At the same time, since there is no need to connect a physical cable, the cost can be reduced compared with a wired connection. Figure 5 A schematic diagram of a wireless connection provided for an embodiment of the present application, as shown in the figure, the device to be detected and the result query device are connected through a cloud network, and there is no direct connection of physical cables.

[0112] The above-mentioned detection method, when the factory inspection of the device to be detected is completed and the test result is obtained, the test result is stored in the designated storage space of the device to be detected, and by establishing a designated connection between the device to be detected and the result query device, the result query device can directly read the test result in the designated storage space of the device to be detected. The storage method of the test result can avoid the result query device from obtaining additional high-authority when querying the test result, thereby ensuring the security of the device to be detected, and no malicious tampering of the device data will occur due to the granting of authority. At the same time, when the result query device completes the reading of the test result of the designated storage space, it will end the access right of the result query device to the device to be detected, so that the access right of the result query device to the device to be detected is limited, thereby improving the security of the device to be detected itself. It avoids the acquisition of other data information by the result query device, and ensures the data security of the device to be detected to a certain extent.

[0113] The above S204 mentions that the test results are successfully read from the designated storage space by the result query device. When the test results are read, the results need to be displayed. The displayed content may include whether the equipment to be tested meets the qualified factory standards. When the equipment to be tested does not meet the factory standards, the equipment problems that do not meet the factory standards need to be displayed. Figure 6a A schematic diagram of a test result display provided in an embodiment of the present application, as shown in the figure, the device to be tested has passed the factory inspection and can be shipped. Figure 6b A schematic diagram of another test result display provided for an embodiment of the present application, as shown in the figure, the device to be tested did not pass the factory test, and the reason for the failure of the factory test was also displayed on the interface. The purpose of displaying the test results is to facilitate relevant personnel to promptly determine whether the device to be tested meets the factory standards, and at the same time, to promptly understand the problems of the equipment that does not meet the factory standards, and then to carry out targeted solutions, which can improve the efficiency of the factory test of the device to be tested.

[0114] As mentioned above, when the result query device establishes a designated connection with the device to be tested, the device to be tested will grant the result query device permission to access the designated storage space of the device to be tested. The purpose is to ensure the security of the device to be tested and prevent intrusion by other devices and data damage. In addition to granting permissions to other devices, the device to be tested also has some inherent system or management permissions. These permissions are often at a higher level. When the device to be tested opens these permissions, it means that other devices or users can be allowed to modify its internal raw data (device parameters) or even the underlying logic. During factory inspection, the opening of such permissions will bring great security risks to the device to be tested.

[0115] Therefore, in a possible implementation, the management authority of the device to be detected remains closed during the factory inspection process. The aforementioned management authority can be used to modify the device parameters of the device to be detected.

[0116] For example, the management permission may be adb (Android Debug Bridge) permission. If the adb permission of the device to be tested is turned on during the factory inspection, then other devices and users can obtain the device parameters of the device to be tested without any permission resistance. At the same time, they can also modify the device parameters or implant illegal code, which is extremely detrimental to the security of the device to be tested.

[0117] By closing the management authority of the device to be tested when it is undergoing factory inspection, malicious intrusions from other devices and users can be avoided to a certain extent, which is equivalent to establishing a security line of defense for the device to be tested itself, which is conducive to ensuring the security of the device to be tested.

[0118] In S201, it is mentioned that "the detection result of the device to be detected is obtained by running the factory detection software". In this embodiment, the device to be detected is an Internet of Things device as an example for specific explanation.

[0119] In a possible implementation, the method for obtaining the detection result of the device to be detected may specifically include:

[0120] S701: Requesting the IoT server to establish a data connection by running the factory inspection software.

[0121] The Internet of Things server can be understood as a server that can realize communication for terminal devices belonging to different local area networks. In the embodiment of the present application, a data connection is established between the Internet of Things server and the device to be tested, so that the factory inspection of the device to be tested can be automatically performed in the cloud.

[0122] In the above description, it is mentioned that the factory inspection software is configured in the device to be inspected. The role of the factory inspection software in the embodiment of the present application may include establishing a data connection channel with the Internet of Things server by running the factory inspection software. When the data connection is established, the device to be inspected and the Internet of Things server have a basis for generating an interactive relationship. Based on this, the device to be inspected can transmit data to the Internet of Things server and obtain data feedback from the Internet of Things server.

[0123] When the device to be detected sends a request to establish a data connection to the IoT server, two results may occur: one result is that the data connection between the device to be detected and the IoT server is successfully established, and the other result is that the data connection between the device to be detected and the IoT server fails to be established. When a connection failure occurs, you can choose to continue to attempt the data connection for a rated number of times. Based on this, in a possible implementation, in response to the failure to establish a data connection after attempting to connect a predetermined number of times, a connection establishment failure prompt is issued through the factory detection software.

[0124] The predetermined number of times mentioned above can be freely set by those skilled in the art according to actual conditions and application scenarios, and is not limited here. In general, the order of magnitude of this number will not be too high, because when the connection cannot be successfully established after several attempts to establish a connection, it can be ruled out that it is an occasional poor connection, which proves that there are factors that substantially affect the establishment of a data connection between the device to be detected and the Internet of Things server. At this time, making multiple attempts will not help to successfully establish a data connection between the device to be detected and the Internet of Things server. On the contrary, it will cause a waste of resources, affect the progress of the actual solution to the cause of the data connection failure, and further affect the efficiency of the factory inspection of the device to be detected.

[0125] After a predetermined number of attempts to establish a data connection are completed, the factory detection software can be used to prompt the user of a connection failure, and the connection failure prompt may include an image prompt or a sound prompt. The image prompt may be for a device to be detected with a display function, and the sound prompt may be for a device to be detected without a display function. Figure 7 A schematic diagram of a failure prompt provided for an embodiment of the present application, as shown in the figure, includes a device to be detected without a display function and a device to be detected with a display function, and the data connection between the two devices to be detected and the Internet of Things server fails to be established. At this time, the device to be detected with a display function will display the failure to establish the data connection on the screen, and the device to be detected without a display function will output the failure to establish the data connection through voice broadcast.

[0126] By prompting the connection failure, it is easy to timely understand the connection status of the device to be detected and then handle it in time, so that the obstacles to establishing the data connection between the device to be detected and the Internet of Things server can be resolved as soon as possible.

[0127] S702: In response to the data connection being successfully established, collecting device parameters of the device to be tested through the factory test software.

[0128] When the data connection between the device to be tested and the IoT server is established, the factory detection software can be used to collect the device parameters of the device to be tested. The instruction to collect the device parameters of the device to be tested can be issued by the device to be tested or the IoT server, which is not limited here. The device parameters mentioned above can be at least one of the software parameters or hardware parameters used for factory detection, which can specifically include but are not limited to hardware configuration, software version and sensor data.

[0129] S703: Sending a factory inspection request to the Internet of Things server through the data connection.

[0130] After the factory inspection software completes the collection of device parameters of the device to be inspected, the device to be inspected can send a factory inspection request to the IoT server through the data connection established above. The factory inspection request can be used to instruct the IoT server to perform a factory inspection on the device to be inspected based on the device parameters carried in the factory inspection request.

[0131] That is, the factory inspection request sent by the device to be inspected to the Internet of Things server may include information on the device parameters of the device to be inspected, so that the Internet of Things server can perform targeted factory inspections based on the device parameters of the device to be inspected.

[0132] S704: Acquire the detection result returned by the IoT server through the data connection.

[0133] When the IoT server completes the factory inspection of the device to be tested, it will return the test results to the device to be tested through the data connection.

[0134] Through the above-mentioned method of obtaining the test results of the device to be tested, the data connection between the device to be tested and the IoT server can be established by running the factory inspection software, so that the factory inspection of the device to be tested can be automated online. The data interaction between the device to be tested and the IoT server can realize the acquisition of the factory inspection results of the device to be tested, and the automated factory inspection also eliminates human influence and improves the inspection efficiency and accuracy.

[0135] In the process of factory inspection of the equipment to be inspected, repeated inspection may occur for a device to be inspected, which will affect the efficiency of factory inspection of the equipment to be inspected. Therefore, before the equipment to be inspected is inspected, it is necessary to determine whether the equipment to be inspected has completed factory inspection. Based on this, in a possible implementation method, first, in response to the successful establishment of the data connection, the factory registration information of the equipment to be inspected is queried from the Internet of Things server, and then in response to the factory registration information indicating that the equipment to be inspected has passed the factory inspection and completed registration on the Internet of Things server, it is determined that the equipment to be inspected has passed the factory inspection. In response to the factory registration information indicating that the equipment to be inspected has not been registered on the Internet of Things server, an operation of collecting the device parameters of the equipment to be inspected through the factory inspection software is performed.

[0136] Specifically, after the data connection between the device to be tested and the IoT server is successfully established, before the device parameters of the device to be tested are collected through the factory detection software, it is necessary to query the IoT server for the factory registration information of the device to be tested. The presence or absence of the factory registration information can determine whether the device to be tested has passed the factory detection. When the factory registration information of the device to be tested exists at the IoT server, it can be determined that the device to be tested has passed the factory detection and completed the registration at the IoT server. Otherwise, it is determined that the device to be tested has not passed the factory detection, and at this time, it is necessary to perform the factory detection operation on the device to be tested.

[0137] By querying the IoT server whether the device to be tested has factory registration information before the device to be tested is tested, it is possible to determine in advance whether the device to be tested has passed the factory test, and determine whether to perform the factory test operation on the device to be tested based on the judgment result. This can avoid repeated testing of the device to be tested that has passed the factory test, avoid the waste of factory test resources, and improve the efficiency of factory test.

[0138] After completing the above-mentioned factory registration information query, it is determined that the device to be tested has not passed the factory inspection. At this time, it is necessary to perform the factory inspection operation on the device to be tested. However, in order to ensure the security of the environment in which the device to be tested is tested, in a possible implementation, after determining that the factory registration information indicates that the device to be tested has not been registered in the Internet of Things server, it is necessary to obtain authorization authentication information, and determine that the factory inspection environment meets the security requirements based on the authorization authentication information. Finally, the operation of collecting the device parameters of the device to be tested through the factory inspection software and other subsequent operations are performed.

[0139] The authorization authentication information mentioned above is used to identify the factory inspection environment. By obtaining the authorization authentication information, it can be determined whether the factory inspection environment for the device to be inspected meets the security requirements. The authorization authentication information includes the requirements for the factory inspection environment. According to the obtained authorization authentication information, it can be determined whether the factory inspection environment of the device to be inspected meets the requirements at this time. When it meets the requirements, it can be determined that the factory inspection environment meets the security requirements, and the device to be inspected can be factory inspected in the factory inspection environment. Otherwise, it is determined that the factory inspection environment does not meet the security requirements, and the device to be inspected cannot be factory inspected in the factory inspection environment.

[0140] In a possible implementation, the method for obtaining the authorization authentication information may be to call a camera module of the device to be detected to scan a detection authorization code and obtain the authorization authentication information carried in the detection authorization code.

[0141] By obtaining the authorization and authentication information of the device to be tested before the factory inspection of the device to be tested that is not registered in the IoT server, and checking whether the current factory inspection environment meets the security requirements for the factory inspection of the device to be tested, it can ensure that the factory inspection environment of the device to be tested is compliant and safe, thereby reducing the possibility of malicious interruption or data tampering during the factory inspection process, and ensuring the security of the factory inspection of the device to be tested.

[0142] Figure 8 A flowchart of a factory inspection of a device to be inspected provided in an embodiment of the present application, as shown in the figure, includes the following steps:

[0143] S11: Turn on the device.

[0144] On the production line, after the equipment to be tested is assembled, the factory test staff needs to conduct factory inspection on the equipment to be tested. First, the equipment to be tested needs to be powered on and started. This step ensures that the basic functions of the equipment to be tested are normal, such as power on and display.

[0145] S12: Initialize self-test.

[0146] Perform an initialization check on the device to be tested and display the initialization page. After the device to be tested is turned on, it will automatically perform a series of initialization checks to ensure that the hardware and software are configured correctly. During this process, the device to be tested will display an initialization page to show the status and progress of the device to be tested.

[0147] S13: Check whether the device is registered.

[0148] Connect to the Internet and request the IoT server to check whether the device to be tested is registered. When querying, if the query fails, it will retry the preset number of times by default. If the network connection times out, it will prompt "initialization failed". The device to be tested needs to be connected to the Internet in order to communicate with the IoT server. The device to be tested will send a request to the IoT server to check whether the device to be tested is already registered. If the request fails, the device to be tested will retry the preset number of times by default, such as 20 times. If the data connection still fails to be established, the device to be tested will prompt "failed to establish data connection".

[0149] S14: Return the result.

[0150] After the data connection is established successfully, the IoT server returns the result of whether the device to be tested is in the register. When the device to be tested successfully connects to the IoT server and the registered information of the device to be tested is queried, the device to be tested will proceed to the next step according to the returned result. If the device to be tested is already in the register, it proves that the device to be tested has completed the factory inspection and can perform other operations.

[0151] S15: Enter the factory inspection process, and it is prompted that the device has not yet completed the factory inspection.

[0152] If the query result shows that the device to be tested is not on the list, the system will automatically enter the factory inspection process, indicating that the device to be tested has not yet completed factory delivery.

[0153] S16: Obtain authorization authentication information.

[0154] Obtain authorization authentication information of the device to be tested, and determine whether the factory test environment meets the security requirements based on the authorization authentication information.

[0155] Specifically, the authorization authentication information carried in the detection authorization code can be obtained by calling the camera module of the device to be detected to scan the detection authorization code.

[0156] Fig. 9 A flowchart of a prompt to scan the detection authorization code and perform factory inspection provided for an embodiment of the present application, as shown in the figure, the figure shows that after the device to be detected with a screen display function enters the factory inspection process, it is necessary to first obtain authorization authentication information. At this time, a prompt "Please scan the detection authorization code" will be displayed on the screen of the device to be detected. When the scanning of the detection authorization code is completed and the factory inspection environment is determined to be safe, the words "Factory..." will be displayed on the screen. At this time, the factory inspection of the device to be detected is being carried out. If the device to be detected passes the factory inspection, the words "Factory successful" will be displayed. If the device to be detected fails the factory inspection, the words "Factory failed" will be displayed. For the device to be detected without a screen display function, the above prompt function can be realized by voice broadcast.

[0157] S17: Read device parameters.

[0158] The IoT server reads the device parameters of the device to be detected. The device parameters may include but are not limited to the following device parameters:

[0159] -cpu_id: CPU ID information, used to identify the processor model and manufacturer of the device to be detected.

[0160] -eth_addr: Ethernet MAC address, used to identify the network hardware of the device to be detected.

[0161] -wlan_addr: wifi mac address, used to identify the wireless network hardware of the device to be detected.

[0162] -bt_addr: Bluetooth address, used to identify the Bluetooth hardware of the device to be detected.

[0163] -device_sn: device SN, used to uniquely identify the device to be detected.

[0164] -Screen information: pixels, width and height information, used to describe the display performance of the device to be tested.

[0165] -rom_version: ROM version number, used to identify the firmware version of the device to be detected.

[0166] -build_model: Build model, used to describe the hardware and software configuration of the device to be tested.

[0167] -build_manufacturer: Build manufacturer, used to identify the manufacturer of the device to be tested.

[0168] During the process of reading device parameters, you can also request detection configuration and configure authentication information: the device to be detected needs to request detection configuration information from the IoT server for subsequent detection and authentication. This configuration information may include the hardware and software specifications of the device to be detected, the allowed sensor data range, etc.

[0169] S18: Send device parameters.

[0170] The device to be detected sends the collected device parameters to the IoT server.

[0171] S19: Perform factory inspection.

[0172] The IoT server performs a factory inspection on the device to be inspected based on the obtained factory inspection request of the device to be inspected and the device parameters carried in the factory inspection request.

[0173] The device to be tested sends the collected device parameters to the IoT server, requesting the IoT server to perform a test based on the preset test rules. These rules may include whether the hardware configuration meets the specifications, whether the software version is correct, whether the sensor data is within the normal range, etc. The IoT server will test the device to be tested based on these rules.

[0174] S20: Complete device authentication.

[0175] Complete device authentication based on the device parameters of the device to be tested. During the detection process, the IoT server will authenticate the device to be tested based on the device parameter information provided by the device to be tested. The authentication process may include checking the device's unique identification, authorization code, etc. to ensure that the device to be tested is legitimate.

[0176] S21: Return the detection result.

[0177] Parse the json data to obtain the test result of the device to be tested. If the result indicates "SUCCESS", it is a success, otherwise it fails.

[0178] After the IoT server completes the detection of the device to be detected, it will generate a json data containing the detection results and send it back to the device to be detected. The device to be detected needs to parse this json data to obtain the factory inspection results. If the result indicates "SUCCESS", it means that the factory inspection of the device to be detected is successful; otherwise, the factory inspection of the device to be detected fails.

[0179] S22: Save the detection result.

[0180] The device to be tested saves the test results to the factory test path, and uses the UMS mode to mount the path as a USB disk. At this point, the device is automatically tested.

[0181] The device to be tested saves the test results to the specified factory test path and mounts the path as a USB disk using the USB Mass Storage (UMS) mode. In this way, the test results of the device to be tested can be directly accessed through the factory test tool (PC-side test tool).

[0182] S23: Read the test result.

[0183] Use the factory test tool to read the test results saved in the device to be tested. Before the factory test tool reads the test results, it is necessary to establish a data connection with the device to be tested. This data connection can be established by wired or wireless means. For example, the wired method may include the device to be tested establishing a data connection with the factory test tool through a universal serial bus interface. In layman's terms, a USB cable can be used to establish a connection between the device to be tested and the factory test tool. Connect the factory test tool to the device to be tested by using a USB cable. The factory test tool will automatically identify the device to be tested and read the test result file on the device to be tested.

[0184] S24: Display the detection results.

[0185] The factory test tool displays the test results of the equipment to be tested, and judges whether the equipment to be tested is qualified based on the results. If the equipment to be tested is qualified, it can enter the next step of packaging and delivery; if the equipment to be tested is unqualified, it needs to be repaired or adjusted. At this point, the entire factory test process of the equipment to be tested is completed.

[0186] The above embodiment specifically introduces the complete process of factory inspection of the equipment to be tested. It can be seen that the factory inspection process requires the cooperation of three types of equipment, namely: the equipment to be tested, the Internet of Things server and the factory testing tool. The data connection is mainly established between the equipment to be tested and the Internet of Things server to realize the automated factory inspection of the equipment to be tested. After the factory inspection is completed, the test results of the equipment to be tested can be displayed through the factory testing tool, so that the user can know the factory inspection status of the equipment to be tested in time, and perform corresponding processing on the equipment to be tested according to the test results. Through the automated factory inspection method, human participation can be avoided, saving labor costs. At the same time, human influence can be eliminated during the inspection process, improving the efficiency and accuracy of factory inspection of the equipment to be tested.

[0187] Next, the detection method provided by this application is described by taking the device to be detected as 02 device, the IoT server as IoT background service, and the factory testing tool as factory line detection PC as an example. Fig.10 A schematic diagram of a detection method in an application scenario provided in an embodiment of the present application, as shown in the figure, the method specifically includes:

[0188] When the O2 device is assembled on the production line, the device parameters of the O2 device can be automatically obtained through the factory inspection software. These device parameters may include hardware configuration, software version, sensor data, etc. The O2 device packages these device parameters into a data packet and sends it to the IoT backend service through the network. Before sending, a data connection needs to be established between the O2 device and the IoT backend service. When the data connection is successfully established, data transmission of the device to be tested can be carried out.

[0189] After receiving the device parameters sent by the O2 device, the IoT backend service performs factory inspection on the O2 device according to the preset rules. These rules may include whether the hardware configuration meets the specifications, whether the software version is correct, whether the sensor data is within the normal range, etc. After the inspection is completed, the IoT backend service will generate the inspection results, including whether the inspection passed (successful or failed) and the specific reason for failure (if any).

[0190] The IoT backend service then sends the test results to the O2 device. After receiving the test results, the O2 device stores them in a file in the specified path in JSON format. This is done to facilitate the subsequent quick viewing and analysis of the test results using the factory line test PC as a test tool.

[0191] Finally, use the factory inspection PC to open the file with the test results stored on the O2 device and view the test results. The factory inspection PC will parse the JSON file and display the test results in a visual way, including whether the test passed and the specific reason for failure (if any). Based on this information, you can determine whether the O2 device is qualified and whether further repairs or adjustments are required. After completing the factory inspection process, qualified O2 devices can enter the next step of packaging and shipping.

[0192] In a possible implementation, the protocol of the test result protocol file of the device to be tested can be:

[0193] {

[0194] "result":"SUCCESS",

[0195] "errors":[

[0196] "Application version is too low",

[0197] "Product model is empty"

[0198] ],

[0199] "warnings":[

[0200] "The equipment model needs to be inspected as soon as possible"

[0201] ],

[0202] "return_msg":”,

[0203] "device_sn":"",

[0204] "inspect_time":1692243709

[0205] }

[0206] in,

[0207] result: The result of background rule verification. If successful, it returns "SUCCESS"; if failed, it returns "FAIL"

[0208] errors: List all check rule errors

[0209] warnings: Prompt information

[0210] return_msg: backend return information

[0211] device_sn: device SN

[0212] In the aforementioned Figure 1-10Based on the corresponding embodiments, Fig.11 A device schematic diagram of a detection device provided in an embodiment of the present application, the detection device 1100 includes an acquisition module 1101, a storage module 1102, a connection establishment module 1103 and a permission cancellation module 1104;

[0213] The acquisition module is used to acquire the test result of the device to be tested by running the factory test software, the factory test software is configured in the device to be tested, and the test result is used to identify whether the device to be tested meets the qualified factory standard;

[0214] The storage module is used to store the detection result in a designated storage space of the device to be detected;

[0215] The connection establishing module is used for setting the access permission of the result query device to the device to be detected to allow access to the designated storage space in response to determining that the result query device establishes a designated connection with the device to be detected;

[0216] The permission canceling module is used to cancel the access permission of the result querying device to the device to be detected in response to the detection result being successfully read from the designated storage space by the result querying device.

[0217] In a possible implementation, the connection establishing module is specifically configured to:

[0218] The designated storage space is a virtual mounted disk drive generated based on the storage space of the device to be detected; when the result query device establishes a designated connection with the device to be detected, the device to be detected is identified as a mountable Universal Serial Bus disk, and the storage space of the Universal Serial Bus disk is the designated storage space.

[0219] In a possible implementation manner, the device is specifically used for:

[0220] In response to the detection result being successfully read from the designated storage space by the result query device, the virtualization of the virtually mounted disk drive is canceled.

[0221] In a possible implementation manner, the device is specifically used for:

[0222] When the device to be detected establishes a data connection with the result query device through a universal serial bus interface, it is determined that the result query device establishes a designated connection with the device to be detected.

[0223] In a possible implementation, the device to be detected is an Internet of Things device, and the acquisition module is specifically used to:

[0224] By running the factory inspection software, request to establish a data connection with the IoT server;

[0225] In response to the data connection being successfully established, collecting device parameters of the device to be detected through the factory detection software, wherein the device parameters are at least one of software parameters or hardware parameters used for factory detection;

[0226] Sending a factory inspection request to the Internet of Things server through the data connection, wherein the factory inspection request is used to instruct the Internet of Things server to perform a factory inspection on the device to be inspected based on the device parameters carried in the factory inspection request;

[0227] The detection result returned by the Internet of Things server is obtained through the data connection.

[0228] In a possible implementation, the acquisition module is specifically used to:

[0229] In response to the data connection being successfully established, querying the IoT server for factory registration information of the device to be detected;

[0230] In response to the factory registration information indicating that the device to be detected has passed the factory inspection and completed registration on the Internet of Things server, determining that the device to be detected has passed the factory inspection;

[0231] In response to the factory registration information indicating that the device to be detected is not registered on the Internet of Things server, the operation of collecting device parameters of the device to be detected by using the factory detection software is performed.

[0232] In a possible implementation, the acquisition module is specifically used to:

[0233] In response to the factory registration information indicating that the device to be detected is not registered on the Internet of Things server, obtaining authorization authentication information, where the authorization authentication information is used to identify the factory detection environment;

[0234] In response to determining that the factory inspection environment meets the security requirements based on the authorization authentication information, the operation of collecting the device parameters of the device to be inspected through the factory inspection software is performed.

[0235] In a possible implementation, the acquisition module is specifically used to:

[0236] The camera module of the device to be detected is called to scan the detection authorization code to obtain the authorization authentication information carried by the detection authorization code.

[0237] In a possible implementation, the acquisition module is specifically used to:

[0238] In response to failure to establish the data connection after a predetermined number of connection attempts, a connection establishment failure prompt is issued through the factory detection software, and the connection establishment failure prompt includes an image prompt or a sound prompt.

[0239] In a possible implementation manner, the device is specifically used for:

[0240] The test results are used for result display when being read, and the displayed results include whether the equipment to be tested meets the qualified factory standards, and when it does not meet the qualified factory standards, the equipment problems that caused it to fail to meet the qualified factory standards.

[0241] In a possible implementation manner, the device is specifically used for:

[0242] The management authority of the device to be detected remains closed during the factory inspection process, and the management authority is used to modify the device parameters of the device to be detected.

[0243] A detection device mentioned above can realize the automatic factory inspection of the equipment to be detected by using the factory inspection software through the acquisition module. The factory inspection is carried out in the cloud through the equipment to be detected and the Internet of Things server, without manual intervention, avoiding the influence of human factors on the test results, and can ensure the accuracy of the test results of the factory inspection to a certain extent. The test results of the equipment to be detected can be saved in the designated storage space of the equipment to be detected through the storage module, and the storage method of the test results can avoid the result query device from performing additional high-authority acquisition when performing the test result query, thereby ensuring the security of the equipment to be detected, and no malicious tampering of the device data will occur due to the granting of permissions. Then, when the result query device and the equipment to be detected establish a designated connection through the connection establishment module, the equipment to be detected performs access authorization for the designated storage space for the result query device. During the duration of the designated connection, the result query device can only access the designated storage space and cannot access other spatial data. In this way, when the result query device completes the reading of the test results but has not yet released the designated connection with the equipment to be detected, the security of the equipment to be detected can be guaranteed. After determining that the detection result has been read by it, the permission cancellation module is used to cancel the access permission of the result query device to the device to be detected, which can avoid the security risk brought to the device to be detected by the result query device through additional invalid access to the device to be detected.

[0244] The embodiment of the present application further provides a computer device, which is the computer device described above and may include a terminal device or a server, and the detection device described above may be configured in the computer device. The computer device is described below in conjunction with the accompanying drawings.

[0245] If the computer device is a terminal device, see Fig.12As shown, the embodiment of the present application provides a terminal device, taking the terminal device as a mobile phone as an example:

[0246] Fig.12 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Fig.12 The mobile phone includes: a radio frequency (RF) circuit 1410, a memory 1420, an input unit 1430, a display unit 1440, a sensor 1450, an audio circuit 1460, a wireless fidelity (WiFi) module 1470, a processor 1480, and a power supply 1490. Those skilled in the art can understand that Fig.12 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0247] Combine the following Fig.12 A detailed introduction to the various components of the mobile phone:

[0248] The RF circuit 1410 may be used for receiving and sending signals during information transmission or communication or during a call. In particular, after receiving downlink information from a base station, the information is sent to the processor 1480 for processing. In addition, the uplink data is sent to the base station.

[0249] The memory 1420 can be used to store software programs and modules. The processor 1480 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1420. The memory 1420 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1420 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0250] The input unit 1430 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 1430 may include a touch panel 1431 and other input devices 1432 .

[0251] The display unit 1440 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1440 may include a display panel 1441.

[0252] The mobile phone may also include at least one sensor 1450, such as a light sensor, a motion sensor, and other sensors.

[0253] The audio circuit 1460 , the speaker 1461 , and the microphone 1462 can provide an audio interface between the user and the mobile phone.

[0254] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 1470. It provides users with wireless broadband Internet access.

[0255] Processor 1480 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the mobile phone and processes data by running or executing software programs and / or modules stored in memory 1420 and calling data stored in memory 1420.

[0256] The mobile phone also includes a power source 1490 (such as a battery) for supplying power to various components.

[0257] In this embodiment, the processor 1480 included in the terminal device also has the following functions:

[0258] Obtaining the test result of the device to be tested by running the factory test software, wherein the factory test software is configured in the device to be tested, and the test result is used to identify whether the device to be tested meets the qualified factory standard;

[0259] Storing the detection result in a designated storage space of the device to be detected;

[0260] In response to determining that the result query device establishes a specified connection with the device to be detected, setting the access permission of the result query device to the device to be detected to allow access to the specified storage space;

[0261] In response to the detection result being successfully read from the specified storage space by the result query device, the access permission of the result query device to the device to be detected is cancelled. If the computer device is a server, the embodiment of the present application also provides a server, see Fig.13 As shown, Fig.13The structural diagram of the server 1500 provided in the embodiment of the present application, the server 1500 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1522 (for example, one or more processors) and a memory 1532, and one or more storage media 1530 (for example, one or more mass storage devices) storing application programs 1542 or data 1544. Among them, the memory 1532 and the storage medium 1530 can be short-term storage or permanent storage. The program stored in the storage medium 1530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1522 can be configured to communicate with the storage medium 1530 and execute a series of instruction operations in the storage medium 1530 on the server 1500.

[0262] The server 1500 may also include one or more power supplies 1526, one or more wired or wireless network interfaces 1550, one or more input and output interfaces 1558, and / or one or more operating systems 1541, such as Windows Server 2003 or Windows Server 2008. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.

[0263] The steps performed by the server in the above embodiment can be based on Fig.13 The server structure shown.

[0264] In addition, an embodiment of the present application further provides a storage medium, wherein the storage medium is used to store a computer program, and the computer program is used to execute the method provided in the above embodiment.

[0265] The embodiments of the present application also provide a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the method provided in the above embodiments.

[0266] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the above storage medium can be at least one of the following media: read-only memory (English: Read-only Memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store computer programs.

[0267] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which 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 can 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 work.

[0268] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application. Moreover, based on the implementation methods provided in the above aspects, the present application can also be further combined to provide more implementation methods. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A detection method, It is characterized in that The method comprises: Obtaining the test result of the device to be tested by running the factory test software, wherein the factory test software is configured in the device to be tested, and the test result is used to identify whether the device to be tested meets the qualified factory standard; Storing the detection result in a designated storage space included in the device to be detected; In response to determining that the result query device establishes a specified connection with the device to be detected, setting the access permission of the result query device to the device to be detected to allow access to the specified storage space; In response to the detection result being successfully read from the designated storage space by the result query device, the access permission of the result query device to the device to be detected is cancelled.

2. The method according to claim 1, It is characterized in that The designated storage space is a virtual mounted disk drive generated based on the storage space of the device to be detected; when the result query device establishes a designated connection with the device to be detected, the device to be detected is identified as a mountable Universal Serial Bus disk, and the storage space of the Universal Serial Bus disk is the designated storage space.

3. The method according to claim 2, It is characterized in that The method further comprises: In response to the detection result being successfully read from the designated storage space by the result query device, the virtualization of the virtually mounted disk drive is canceled.

4. The method according to claim 1, It is characterized in that The method further comprises: When the device to be detected establishes a data connection with the result query device through a universal serial bus interface, it is determined that the result query device establishes a designated connection with the device to be detected.

5. The method according to any one of claims 1 to 4, It is characterized in that The device to be tested is an IoT device, and the test result of the device to be tested is obtained by running the factory test software, including: By running the factory inspection software, request to establish a data connection with the IoT server; In response to the data connection being successfully established, collecting device parameters of the device to be detected through the factory detection software, wherein the device parameters are at least one of software parameters or hardware parameters used for factory detection; Sending a factory inspection request to the Internet of Things server through the data connection, wherein the factory inspection request is used to instruct the Internet of Things server to perform a factory inspection on the device to be inspected based on the device parameters carried in the factory inspection request; The detection result returned by the Internet of Things server is obtained through the data connection.

6. The method according to claim 5, It is characterized in that The method further comprises: In response to the data connection being successfully established, querying the Internet of Things server for factory registration information of the device to be detected; In response to the factory registration information indicating that the device to be detected has passed the factory inspection and completed registration on the Internet of Things server, determining that the device to be detected has passed the factory inspection; In response to the factory registration information indicating that the device to be detected is not registered on the Internet of Things server, the operation of collecting device parameters of the device to be detected by using the factory detection software is performed.

7. The method according to claim 6, It is characterized in that The method further comprises: In response to the factory registration information indicating that the device to be detected is not registered on the Internet of Things server, obtaining authorization authentication information, where the authorization authentication information is used to identify the factory detection environment; In response to determining that the factory inspection environment meets the security requirements based on the authorization authentication information, the operation of collecting the device parameters of the device to be inspected through the factory inspection software is performed.

8. The method according to claim 7, It is characterized in that The obtaining of authorization authentication information includes: The camera module of the device to be detected is called to scan the detection authorization code to obtain the authorization authentication information carried by the detection authorization code.

9. The method according to claim 5, It is characterized in that The method further comprises: In response to failure to establish the data connection after a predetermined number of connection attempts, a connection establishment failure prompt is issued through the factory detection software, and the connection establishment failure prompt includes an image prompt or a sound prompt.

10. The method according to claim 1, It is characterized in that The test results are used for result display when being read, and the content of the result display includes whether the equipment to be tested meets the qualified factory standards, and when it does not meet the qualified factory standards, the equipment problems that cause it to fail to meet the qualified factory standards.

11. The method according to claim 1, It is characterized in that The management authority of the device to be detected remains closed during the factory inspection process, and the management authority is used to modify the device parameters of the device to be detected.

12. A detection device, It is characterized in that The device comprises: an acquisition module, a storage module, a connection establishment module and a permission cancellation module; The acquisition module is used to acquire the test result of the device to be tested by running the factory test software, the factory test software is configured in the device to be tested, and the test result is used to identify whether the device to be tested meets the qualified factory standard; The storage module is used to store the detection result in a designated storage space included in the device to be detected; The connection establishing module is used for setting the access permission of the result query device to the device to be detected to allow access to the designated storage space in response to determining that the result query device establishes a designated connection with the device to be detected; The permission canceling module is used to cancel the access permission of the result querying device to the device to be detected in response to the detection result being successfully read from the designated storage space by the result querying device.

13. The device according to claim 12, It is characterized in that The connection establishment module is specifically used for: The designated storage space is a virtual mounted disk drive generated based on the storage space of the device to be detected; when the result query device establishes a designated connection with the device to be detected, the device to be detected is identified as a mountable Universal Serial Bus disk, and the storage space of the Universal Serial Bus disk is the designated storage space.

14. The device according to claim 13, It is characterized in that The device is specifically used for: In response to the detection result being successfully read from the designated storage space by the result query device, the virtualization of the virtually mounted disk drive is canceled.

15. The device according to claim 12, It is characterized in that The device is specifically used for: When the device to be detected establishes a data connection with the result query device through a universal serial bus interface, it is determined that the result query device establishes a designated connection with the device to be detected.

16. The device according to any one of claims 12 to 15, It is characterized in that The device to be detected is an Internet of Things device, and the acquisition module is specifically used for: By running the factory inspection software, request to establish a data connection with the IoT server; In response to the data connection being successfully established, collecting device parameters of the device to be detected through the factory detection software, wherein the device parameters are at least one of software parameters or hardware parameters used for factory detection; Sending a factory inspection request to the Internet of Things server through the data connection, wherein the factory inspection request is used to instruct the Internet of Things server to perform a factory inspection on the device to be inspected based on the device parameters carried in the factory inspection request; The detection result returned by the Internet of Things server is obtained through the data connection.

17. The device according to claim 16, It is characterized in that The acquisition module is specifically used for: In response to the data connection being successfully established, querying the Internet of Things server for factory registration information of the device to be detected; In response to the factory registration information indicating that the device to be detected has passed the factory inspection and completed registration on the Internet of Things server, determining that the device to be detected has passed the factory inspection; In response to the factory registration information indicating that the device to be detected is not registered on the Internet of Things server, the operation of collecting device parameters of the device to be detected by using the factory detection software is performed.

18. The device according to claim 17, It is characterized in that The acquisition module is specifically used for: In response to the factory registration information indicating that the device to be detected is not registered on the Internet of Things server, obtaining authorization authentication information, where the authorization authentication information is used to identify the factory detection environment; In response to determining that the factory inspection environment meets the security requirements based on the authorization authentication information, the operation of collecting the device parameters of the device to be inspected through the factory inspection software is performed.

19. The device according to claim 18, It is characterized in that The acquisition module is specifically used for: The camera module of the device to be detected is called to scan the detection authorization code to obtain the authorization authentication information carried by the detection authorization code.

20. The device according to claim 16, It is characterized in that The acquisition module is specifically used for: In response to failure to establish the data connection after a predetermined number of connection attempts, a connection establishment failure prompt is issued through the factory detection software, and the connection establishment failure prompt includes an image prompt or a sound prompt.

21. The device according to claim 12, It is characterized in that The device is specifically used for: The test results are used for result display when being read, and the content of the result display includes whether the equipment to be tested meets the qualified factory standards, and when it does not meet the qualified factory standards, the equipment problems that cause it to fail to meet the qualified factory standards.

22. The device according to claim 12, It is characterized in that The device is specifically used for: The management authority of the device to be detected remains closed during the factory inspection process, and the management authority is used to modify the device parameters of the device to be detected.

23. A computer device, It is characterized in that The computer device comprises a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is configured to execute the method according to any one of claims 1 to 11 according to the computer program.

24. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a computer device, the method according to any one of claims 1 to 11 is implemented.

25. A computer program product comprising a computer program, It is characterized in that When the method is executed on a computer device, the computer device is enabled to execute the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Method, system, authentication server and home device for controlling access to home network

    CN101267367A

  • Wearable equipment function test method and device, computer equipment and storage medium

    CN115494335A