CN112055316B - Production detection system and method of intelligent module and electronic equipment - Google Patents

Production detection system and method of intelligent module and electronic equipment Download PDF

Info

Publication number
CN112055316B
CN112055316B CN202010740560.6A CN202010740560A CN112055316B CN 112055316 B CN112055316 B CN 112055316B CN 202010740560 A CN202010740560 A CN 202010740560A CN 112055316 B CN112055316 B CN 112055316B
Authority
CN
China
Prior art keywords
tested
intelligent module
intelligent
router
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010740560.6A
Other languages
Chinese (zh)
Other versions
CN112055316A (en
Inventor
袁龙刚
李明
黄斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN202010740560.6A priority Critical patent/CN112055316B/en
Publication of CN112055316A publication Critical patent/CN112055316A/en
Application granted granted Critical
Publication of CN112055316B publication Critical patent/CN112055316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The invention provides a production detection system and a method of an intelligent module and electronic equipment, wherein the system comprises: the system comprises intelligent equipment, an intelligent module to be tested, a test router and a test tool; the testing tool is used for scanning an MAC label on the electrified intelligent module to be tested to obtain a first MAC address, scanning an SN label on the electrified intelligent equipment to obtain an SN code, sending UDP broadcast data to the intelligent module to be tested, receiving UDP unicast reply data sent by the intelligent module to be tested, and determining a detection result of the intelligent module to be tested according to the UDP unicast reply data; and the intelligent module to be tested is used for determining whether the first MAC address is consistent with the second MAC address according to the first MAC address and the second MAC address contained in the UDP broadcast data, writing the SN code into the intelligent module to be tested when the first MAC address is consistent with the second MAC address, and sending UDP unicast reply data to the test tool. This scheme can improve intelligent object's detection efficiency.

Description

Production detection system and method of intelligent module and electronic equipment
Technical Field
The invention relates to the technical field of intelligent equipment, in particular to a production detection system and method of an intelligent module and electronic equipment.
Background
With the continuous development of science and technology, electronic technology has been developed rapidly, and the variety of electronic products is more and more, and people also enjoy various conveniences brought by the development of science and technology. The intelligent module is used as a core part of the intelligent device and integrates a WiFi connection function. In order to ensure the quality of the intelligent device, the intelligent module needs to be tested before the intelligent device leaves a factory.
The Chinese patent application with the patent application number of 201710729410.3 discloses a production test method and a device for an intelligent module of the internet of things, and the detection mode of a WiFi module in an assembly line is as follows: the WiFi module generates an SN hotspot in the AP mode, the testing tool is connected with the hotspot and establishes UDP communication with the hotspot, the testing tool sends UDP broadcast messages, the WiFi module receives the messages and returns UDP unicast data to the testing tool, the testing tool analyzes and displays the detection result, and the steps are repeated until a tester judges whether the product is qualified according to the test result.
As can be seen from the above description, in the prior art, the connection and disconnection operations of the WiFi hotspot of each to-be-detected intelligent module need to be repeated, which may reduce the detection efficiency of the intelligent module.
Disclosure of Invention
The embodiment of the invention provides a production detection system and method of an intelligent module and electronic equipment, which can improve the detection efficiency of the intelligent module.
In a first aspect, an embodiment of the present invention provides a production detection system for an intelligent module, including: the system comprises intelligent equipment, an intelligent module to be tested, a test router and a test tool;
the intelligent equipment is connected with the intelligent module to be tested through a serial port, the intelligent module to be tested is connected with the test router through a wireless network, and the test tool is connected with the test router through a wireless network;
the testing tool is used for scanning an MAC label on the electrified intelligent module to be tested to obtain a first MAC address, scanning an SN label on the electrified intelligent device to obtain an SN code, sending UDP (user Datagram protocol) broadcast data to the intelligent module to be tested, receiving UDP unicast reply data sent by the intelligent module to be tested, and determining a detection result of the intelligent module to be tested according to the UDP unicast reply data, wherein the UDP broadcast data comprise a second MAC address, the UDP unicast reply data are used for indicating the detection result of the intelligent module to be tested, and the SN code is used for representing a serial number of the intelligent device;
the intelligent module to be tested is used for determining whether the first MAC address is consistent with the second MAC address according to the first MAC address and the second MAC address contained in the UDP broadcast data, writing the SN code into the intelligent module to be tested when the first MAC address is consistent with the second MAC address, and sending the UDP unicast reply data to the testing tool.
Preferably, the first and second electrodes are formed of a metal,
the intelligent module that awaits measuring is further used for:
analyzing a preset search rule for the test router to generate a target search rule;
according to the target search rule, determining a router naming prefix contained in the target search rule; determining at least one target router which accords with the router naming prefix from at least one search router according to the router naming prefix; determining at least one signal strength threshold value corresponding to each target router; determining a router with the maximum signal strength threshold value in at least one target router as the test router; according to preset configuration information, the intelligent module to be tested is connected with the testing router, the testing tool is connected with the testing router, and the configuration information comprises the name, the password, the lease and other attribute information of the testing router.
Preferably, the first and second electrodes are formed of a metal,
the UDP unicast reply data includes: the SN code writing result, the test version number of the intelligent module end to be tested, the serial port communication condition of the intelligent module to be tested and the intelligent equipment, and the signal intensity threshold of the test router;
the testing tool is used for determining whether the target testing version number is consistent with the testing version number of the intelligent module end to be tested according to a pre-stored target testing version number, and determining that the version number detection of the intelligent module to be tested is abnormal when the target testing version number is determined to be consistent with the testing version number of the intelligent module end to be tested; determining whether the SN code writing result detection is abnormal or not according to the SN code writing result, and determining that the SN code writing result detection is not abnormal when the SN code writing result detection is successful; according to the intelligent module that awaits measuring with the serial port communication condition of smart machine, confirm the intelligent module that awaits measuring with whether there is the anomaly in the serial port communication condition detection of smart machine, and when the intelligent module that awaits measuring with the serial port communication condition detection of smart machine is successful, confirm the intelligent module that awaits measuring with the serial port communication condition detection of smart machine does not have the anomaly the version number of the intelligent module that awaits measuring detects, SN sign indicating number write in result detect with the intelligent module that awaits measuring with when the serial port communication condition detection of smart machine does not have the anomaly, confirm the intelligent module that awaits measuring detects qualifiedly.
Preferably, the first and second electrodes are formed of a metal,
further comprising: a WiFi status indicator light and a processor;
the processor is used for controlling the intelligent module to be tested to be in an STA mode and controlling a WiFi status indicator lamp of the intelligent equipment to be in an off state after the intelligent module to be tested is powered on; and after the intelligent module to be detected is determined to be qualified, controlling the intelligent module to be detected to be in an AP mode, and controlling the WiFi status indicator lamp to be in a flashing state.
In a second aspect, an embodiment of the present invention provides a production detection method for an intelligent module, including:
scanning an MAC label on the electrified intelligent module to be tested by using a testing tool to obtain a first MAC address;
scanning an SN label on the powered-on intelligent equipment by using the testing tool to obtain an SN code, wherein the SN code is used for representing a serial number of the intelligent equipment;
sending UDP broadcast data to the intelligent module to be tested by using the testing tool, wherein the UDP broadcast data comprises a second MAC address;
determining whether the first MAC address and the second MAC address are consistent or not according to the first MAC address and the second MAC address contained in the UDP broadcast data by using the intelligent module to be tested;
writing the SN code into the intelligent module to be tested when the first MAC address is consistent with the second MAC address by using the intelligent module to be tested;
sending the UDP unicast reply data to the test tool by using the intelligent module to be tested;
receiving UDP unicast reply data sent by the intelligent module to be tested by using the testing tool, wherein the UDP unicast reply data is used for indicating a detection result of the intelligent module to be tested;
and determining a detection result of the intelligent module to be detected according to the UDP unicast reply data by using the test tool.
Preferably, the first and second electrodes are formed of a metal,
before the scanning, by the test tool, the MAC tag on the powered-up smart module to be tested to obtain the first MAC address, the method further includes:
analyzing a preset search rule for the test router by using the intelligent module to be tested to generate a target search rule;
determining a router naming prefix contained in the target search rule according to the target search rule by using the intelligent module to be tested;
determining at least one target router which accords with the router naming prefix from at least one search router by utilizing the intelligent module to be tested according to the router naming prefix;
determining at least one signal intensity threshold value corresponding to the at least one target router respectively by using the intelligent module to be tested;
determining a router with the maximum signal intensity threshold value in at least one target router as the test router by using the intelligent module to be tested;
establishing connection between the intelligent module to be tested and the test router by using the intelligent module to be tested according to preset configuration information, wherein the configuration information comprises the name, the password, the lease term and other attribute information of the test router;
and establishing connection between the test tool and the test router by using the test tool.
Preferably, the first and second electrodes are formed of a metal,
the UDP unicast reply data includes: the SN code writing result, the test version number of the intelligent module end to be tested, the serial port communication condition of the intelligent module to be tested and the intelligent equipment, and the signal intensity threshold of the test router;
the determining, by using the testing tool, a detection result of the to-be-tested intelligent module according to the UDP unicast reply data includes:
determining whether the target test version number is consistent with the test version number of the intelligent module end to be tested according to a pre-stored target test version number by using the test tool;
determining that the version number detection of the intelligent module to be detected is abnormal when the target test version number is consistent with the test version number of the intelligent module to be detected by using the test tool;
determining whether the SN code writing result detection is abnormal or not according to the SN code by utilizing the test tool;
determining that the SN code writing result detection is not abnormal by utilizing the test tool when the SN code writing result is successful;
determining whether the serial port communication condition detection of the intelligent module to be tested and the intelligent equipment is abnormal or not according to the serial port communication condition of the intelligent module to be tested and the intelligent equipment by using the testing tool;
when the serial port communication condition of the intelligent module to be tested and the intelligent equipment is detected successfully, determining that the serial port communication condition detection of the intelligent module to be tested and the intelligent equipment is not abnormal by using the testing tool;
and when the version number of the intelligent module to be detected is detected, the SN code writing result is detected, and the serial port communication condition of the intelligent module to be detected and the intelligent equipment is detected to be abnormal, determining that the intelligent module to be detected is qualified.
Preferably, the first and second electrodes are formed of a metal,
before the scanning, by the test tool, the MAC tag on the powered-up smart module to be tested to obtain the first MAC address, the method further includes:
controlling the intelligent module to be tested to be in an STA mode after the intelligent module to be tested is powered on by utilizing a processor;
controlling a WiFi status indicator lamp of the intelligent equipment to be in an off state by utilizing the processor;
after the determination that the intelligent module to be tested is qualified, the method further comprises:
controlling the intelligent module to be tested to be in an AP mode by utilizing the processor;
and controlling the WiFi status indicator lamp to be in a flashing state by utilizing the processor.
In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to perform the method of any of the first aspects.
In a fourth aspect, embodiments of the present invention provide a computer-readable medium having stored thereon computer instructions, which, when executed by a processor, cause the processor to perform the method of any of the first aspects.
The embodiment of the invention provides a production detection system and a production detection method of intelligent modules, based on the fact that when the existing intelligent modules carry out the production detection of a whole machine assembly line, the connection and disconnection operation of WiFi hot spots of each intelligent module to be detected needs to be carried out repeatedly, then the whole machine detection of each intelligent module to be detected is carried out, so that the detection efficiency of the intelligent modules is reduced, therefore, in order to improve the detection efficiency of the intelligent modules, a test router can be arranged on each line body of a production assembly line, the intelligent modules to be detected are connected with the test routers through wireless networks, test tools are connected with the test routers through the wireless networks, and meanwhile, the intelligent devices are connected with the intelligent modules to be detected through serial ports. After the connection is completed, the intelligent module to be tested, the test router, the intelligent device and the test tool are in the same local area network, and UDP data interaction can be carried out. Based on this, the tester can scan the MAC tag of the powered-on intelligent module to be tested to obtain the first MAC address for representing the address of the intelligent module to be tested, scan the SN tag of the powered-on intelligent device to obtain the SN code for representing the serial number of the intelligent device, and then the test tool can actively send UDP broadcast data, because the intelligent module to be tested and the testing tool are positioned in the same local area network at the moment, the UDP broadcast data sent by the testing tool can be received, and whether the first MAC address is consistent with the second MAC address is determined based on the second MAC address contained in the UDP broadcast data and the first MAC address of the intelligent module to be tested, and when the first MAC address and the second MAC address are determined to be consistent, the detection object is the intelligent module to be detected, so that the intelligent module to be detected can write the SN code of the intelligent equipment at the moment, and returning UDP unicast reply data to indicate the complete machine detection result of the intelligent module to be detected. Through the process, the connection and disconnection operations of the WiFi hot spot of each intelligent module to be tested are not required to be repeatedly carried out, and when the test tool sends the UDP broadcast data, the intelligent modules to be tested positioned under the same local area network can receive the UDP broadcast data, so that the detection efficiency of the intelligent modules can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a production detection system for intelligent modules according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another intelligent module production detection system provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a method for detecting production of an intelligent module according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for detecting production of an intelligent module according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a production detection system for an intelligent module, which may include: the system comprises an intelligent device 101, an intelligent module to be tested 102, a test router 103 and a test tool 104;
the intelligent equipment 101 is connected with the intelligent module to be tested 102 through a serial port, the intelligent module to be tested 102 is connected with the test router 103 through a wireless network, and the test tool 104 is connected with the test router 103 through a wireless network;
the testing tool 104 is configured to scan an MAC tag on the powered intelligent module to be tested 102 to obtain a first MAC address, scan an SN tag on the powered intelligent device 101 to obtain an SN code, send UDP broadcast data to the intelligent module to be tested 102, receive UDP unicast reply data sent by the intelligent module to be tested 102, and determine a detection result of the intelligent module to be tested 102 according to the UDP unicast reply data, where the UDP broadcast data includes the second MAC address, the UDP unicast reply data is used to indicate the detection result of the intelligent module to be tested 102, and the SN code is used to represent a serial number of the intelligent device 101;
the to-be-tested intelligent module 102 is configured to determine whether the first MAC address and the second MAC address are consistent according to the first MAC address and the second MAC address included in the UDP broadcast data, write the SN code into the to-be-tested intelligent module 102 when the first MAC address and the second MAC address are consistent, and send UDP unicast reply data to the test tool 104.
In the embodiment of the invention, when the current intelligent module is used for carrying out the production detection of the whole machine assembly line, the connection and disconnection operation of the WiFi hotspot of each intelligent module to be detected needs to be carried out repeatedly, and then the whole machine detection of each intelligent module to be detected is carried out, so that the detection efficiency of the intelligent module is reduced. After the connection is completed, the intelligent module to be tested, the test router, the intelligent device and the test tool are in the same local area network, and UDP data interaction can be carried out. Based on this, the tester can scan the MAC tag of the powered-on intelligent module to be tested to obtain the first MAC address for representing the address of the intelligent module to be tested, scan the SN tag of the powered-on intelligent device to obtain the SN code for representing the serial number of the intelligent device, and then the test tool can actively send UDP broadcast data, because the intelligent module to be tested and the testing tool are positioned in the same local area network at the moment, the UDP broadcast data sent by the testing tool can be received, and whether the first MAC address is consistent with the second MAC address is determined based on the second MAC address contained in the UDP broadcast data and the first MAC address of the intelligent module to be tested, and when the first MAC address and the second MAC address are determined to be consistent, the detection object is the intelligent module to be detected, so that the intelligent module to be detected can write the SN code of the intelligent equipment at the moment, and returning UDP unicast reply data to indicate the complete machine detection result of the intelligent module to be detected. Through the process, the connection and disconnection operations of the WiFi hot spot of each intelligent module to be tested are not required to be repeatedly carried out, and when the test tool sends the UDP broadcast data, the intelligent modules to be tested positioned under the same local area network can receive the UDP broadcast data, so that the detection efficiency of the intelligent modules can be improved.
In an embodiment of the present invention, the to-be-tested intelligent module 102 is further configured to:
analyzing a preset search rule for the test router 103 to generate a target search rule; according to the target search rule, determining a router naming prefix contained in the target search rule; determining at least one target router which accords with the router naming prefix from at least one search router according to the router naming prefix; determining at least one signal strength threshold corresponding to at least one target router respectively; determining a router with the maximum signal strength threshold value in at least one target router as a test router 103; according to preset configuration information, the intelligent module to be tested 102 is connected with the testing router 103, and the testing tool 104 is connected with the testing router 103, wherein the configuration information comprises the name, the password, the lease and other attribute information of the testing router 103.
In an embodiment of the present invention, each line body is provided with a test router, so that the to-be-tested intelligent module, the test tool, the intelligent device, and the test router are in the same local area network and can perform UDP data interaction, therefore, determining the test router is a key step of the present solution, the to-be-tested intelligent module can be used to analyze a preset search rule for the test router, according to the analyzed target search rule, a router naming prefix included in the target search rule is determined, at least one target router conforming to the router naming prefix is determined from the at least one search router, and the router with the largest signal strength threshold is selected as the test router, then based on preset configuration information, the to-be-tested intelligent module can be connected with the test router, the test tool can be connected with the test router, the intelligent module to be tested, the test router, the intelligent equipment and the test tool are positioned under the same local area network, and UDP data interaction is conveniently carried out.
In an embodiment of the present invention, the UDP unicast reply data includes: the SN code writing result, the test version number of the intelligent module end to be tested, the serial port communication condition of the intelligent module 102 to be tested and the intelligent equipment 101, and the signal intensity threshold of the test router 103;
the testing tool 104 is used for determining whether the target testing version number is consistent with the testing version number of the intelligent module end to be tested according to the pre-stored target testing version number, and determining that the version number of the intelligent module 102 to be tested has no abnormal detection when the target testing version number is determined to be consistent with the testing version number of the intelligent module end to be tested; determining whether the SN code writing result detection is abnormal or not according to the SN code, and determining that the SN code writing result detection is not abnormal when the SN code writing result is successful; according to the serial communication condition detection of the intelligent module to be detected 102 and the intelligent device 101, whether the serial communication condition of the intelligent module to be detected 102 and the intelligent device 101 is abnormal or not is determined, and when the serial communication condition detection of the intelligent module to be detected 102 and the intelligent device 101 is successful, the serial communication condition of the intelligent module to be detected 102 and the intelligent device 101 is determined to be abnormal or not.
In the embodiment of the invention, in order to ensure the quality of the intelligent equipment, the intelligent module to be detected needs to be detected when the intelligent equipment leaves a factory, and the version number detection, SN code writing result detection and serial port communication condition detection of the intelligent module to be detected and the intelligent equipment can be performed on the intelligent module to be detected connected with the serial port of the intelligent equipment. Based on the method, a testing tool can be utilized to determine whether the target testing version number is consistent with the testing version number of the intelligent module end to be tested according to the pre-stored target testing version number, and when the target testing version number is determined to be consistent with the testing version number of the intelligent module end to be tested, the version number of the intelligent module to be tested is determined to be abnormal; the test tool can be used for determining whether the detection of the SN code writing result is abnormal or not according to the SN code writing result, and determining that the detection of the SN code writing result is not abnormal when the SN code writing result in the UDP unicast reply data is successful; the testing tool can be used for determining whether the serial port communication condition of the intelligent module to be tested and the intelligent equipment is abnormal or not according to the serial port communication condition detection of the intelligent module to be tested and the intelligent equipment, and determining that the serial port communication condition of the intelligent module to be tested and the intelligent equipment is not abnormal when the serial port communication condition of the intelligent module to be tested and the intelligent equipment in UDP unicast reply data is successful; when the version number of the intelligent module to be detected is detected, the SN code writing result is detected, and the serial port communication condition of the intelligent module to be detected and the intelligent equipment is detected to be abnormal, the complete machine detection of the intelligent module to be detected can be determined to be qualified.
As shown in fig. 2, the production detection system based on the intelligent module shown in fig. 1, in an embodiment of the present invention, further includes: a WiFi status indicator light 105 and a processor 106;
the processor 106 is configured to control the to-be-tested intelligent module 102 to be in an STA mode and control the WiFi status indicator lamp 105 of the intelligent device 101 to be in an off state after the to-be-tested intelligent module 102 is powered on; after the test tool 104 receives the UDP unicast reply data sent by the intelligent module to be tested 102, the intelligent module to be tested 102 is controlled to be in the AP mode, and the WiFi status indicator 105 is controlled to be in a flashing state.
In the embodiment of the invention, in order to represent the WiFi state and the operation mode of the intelligent module to be tested, the intelligent module to be tested can be controlled to be in the STA mode before being electrified and detected, and the WiFi state indicator lamp arranged on the intelligent equipment is controlled to be in an off state by using the processor; and then after the test tool receives UDP unicast reply data sent by the intelligent module to be tested and when the detection result of the intelligent module to be tested is determined to be qualified, the intelligent module to be tested can be controlled to be in an AP mode through the processor and the WiFi state indicator lamp is controlled to be in a flashing state.
As shown in fig. 3, an embodiment of the present invention provides a method for detecting production of an intelligent module, which may include the following steps:
step 301: scanning an MAC label on the electrified intelligent module to be tested by using a testing tool to obtain a first MAC address;
step 302: scanning an SN label on the powered intelligent equipment by using a testing tool to obtain an SN code, wherein the SN code is used for representing a serial number of the intelligent equipment;
step 303: sending UDP broadcast data to the intelligent module to be tested by using the testing tool, wherein the UDP broadcast data comprises a second MAC address;
step 304: determining whether the first MAC address and the second MAC address are consistent or not according to the first MAC address and the second MAC address contained in the UDP broadcast data by using the intelligent module to be tested;
step 305: writing the SN code into the intelligent module to be tested when the first MAC address is consistent with the second MAC address by using the intelligent module to be tested;
step 306: sending UDP unicast reply data to a test tool by using an intelligent module to be tested;
step 307: receiving UDP unicast reply data sent by the intelligent module to be tested by using a testing tool, wherein the UDP unicast reply data is used for indicating the detection result of the intelligent module to be tested;
step 308: and determining the detection result of the intelligent module to be detected according to the UDP unicast reply data by using the test tool.
In the embodiment of the invention, when the current intelligent module is used for carrying out the production detection of the whole machine assembly line, the connection and disconnection operation of the WiFi hotspot of each intelligent module to be detected needs to be carried out repeatedly, and then the whole machine detection of each intelligent module to be detected is carried out, so that the detection efficiency of the intelligent module is reduced. After the connection is completed, the intelligent module to be tested, the test router, the intelligent device and the test tool are in the same local area network, and UDP data interaction can be carried out. Based on this, the tester can scan the MAC tag of the powered-on intelligent module to be tested to obtain the first MAC address for representing the address of the intelligent module to be tested, scan the SN tag of the powered-on intelligent device to obtain the SN code for representing the serial number of the intelligent device, and then the test tool can actively send UDP broadcast data, because the intelligent module to be tested and the testing tool are positioned in the same local area network at the moment, the UDP broadcast data sent by the testing tool can be received, and whether the first MAC address is consistent with the second MAC address is determined based on the second MAC address contained in the UDP broadcast data and the first MAC address of the intelligent module to be tested, and when the first MAC address and the second MAC address are determined to be consistent, the detection object is the intelligent module to be detected, so that the intelligent module to be detected can write the SN code of the intelligent equipment at the moment, and returning UDP unicast reply data to indicate the complete machine detection result of the intelligent module to be detected. Through the process, the connection and disconnection operations of the WiFi hot spot of each intelligent module to be tested are not required to be repeatedly carried out, and when the test tool sends the UDP broadcast data, the intelligent modules to be tested positioned under the same local area network can receive the UDP broadcast data, so that the detection efficiency of the intelligent modules can be improved.
To determine the test router, in an embodiment of the present invention, before scanning, by a test tool, a MAC tag on a powered-up smart module under test to obtain a first MAC address, the method further includes:
analyzing a preset search rule for the test router by using an intelligent module to be tested to generate a target search rule;
determining a router naming prefix contained in a target search rule according to the target search rule by using an intelligent module to be tested;
determining at least one target router which accords with the router naming prefix from at least one search router by using an intelligent module to be tested according to the router naming prefix;
determining at least one signal intensity threshold value corresponding to at least one target router respectively by using an intelligent module to be tested;
determining a router with the maximum signal intensity threshold value in at least one target router as a test router by using an intelligent module to be tested;
establishing connection between the intelligent module to be tested and the testing router by utilizing the intelligent module to be tested according to preset configuration information, wherein the configuration information comprises the name, the password, the lease term and other attribute information of the testing router;
and establishing connection between the test tool and the test router by using the test tool.
In the embodiment of the invention, each line body is provided with a test router, so that an intelligent module to be tested, a test tool, intelligent equipment and the test router are positioned under the same local area network and can carry out UDP data interaction, therefore, the determination of the test router is the key step of the scheme, the intelligent module to be tested can be utilized to analyze a preset search rule for the test router, a router naming prefix contained in the target search rule is determined according to the analyzed target search rule, at least one target router conforming to the router naming prefix is determined from at least one search router, the router with the maximum signal intensity threshold value is screened out as the test router, then the intelligent module to be tested and the test router can be connected based on preset configuration information, the test tool and the test router are connected, the intelligent module to be tested, the test router, the intelligent equipment and the test tool are positioned under the same local area network, and UDP data interaction is conveniently carried out.
In order to determine the detection result of the intelligent module to be detected, in an embodiment of the present invention, the UDP unicast reply data includes: the SN code writing result, the test version number of the intelligent module end to be tested, the serial port communication condition of the intelligent module to be tested and the intelligent equipment, and the signal intensity threshold of the test router;
the steps in the above embodiment utilize a test tool to determine the detection result of the to-be-detected intelligent module according to the UDP unicast reply data, and may specifically be implemented in the following manner:
determining whether the target test version number is consistent with the test version number of the intelligent module end to be tested according to a pre-stored target test version number by using a test tool;
determining that the version number detection of the intelligent module to be detected is abnormal when the target test version number is consistent with the test version number of the intelligent module to be detected by using a test tool;
determining whether the SN code writing result detection is abnormal or not according to the SN code writing result by using a test tool;
determining that the SN code detection is not abnormal by utilizing a test tool when the SN code writing result is successful;
determining whether the serial port communication condition of the intelligent module to be tested and the intelligent equipment is abnormal or not according to the serial port communication condition of the intelligent module to be tested and the intelligent equipment by using a testing tool;
by using a testing tool, when the serial port communication condition of the intelligent module to be tested and the intelligent equipment is successful, determining that no abnormity exists in the serial port communication condition of the intelligent module to be tested and the intelligent equipment;
and when the version number of the intelligent module to be detected, the SN code writing result and the serial communication condition of the intelligent module to be detected and the intelligent equipment are detected to be abnormal, determining that the complete machine detection of the intelligent module to be detected is qualified.
In the embodiment of the invention, in order to ensure the quality of the intelligent equipment, the intelligent module to be detected needs to be detected when the intelligent equipment leaves a factory, and the version number detection, SN code writing result detection and serial port communication condition detection of the intelligent module to be detected and the intelligent equipment can be performed on the intelligent module to be detected connected with the serial port of the intelligent equipment. Based on the method, a testing tool can be utilized to determine whether the target testing version number is consistent with the testing version number of the intelligent module end to be tested according to the pre-stored target testing version number, and when the target testing version number is determined to be consistent with the testing version number of the intelligent module end to be tested, the version number of the intelligent module to be tested is determined to be abnormal; the test tool can be used for determining whether the detection of the SN code writing result is abnormal or not according to the SN code writing result, and determining that the detection of the SN code writing result is not abnormal when the SN code writing result in the UDP unicast reply data is successful; the testing tool can be used for determining whether the serial port communication condition of the intelligent module to be tested and the intelligent equipment is abnormal or not according to the serial port communication condition detection of the intelligent module to be tested and the intelligent equipment, and determining that the serial port communication condition of the intelligent module to be tested and the intelligent equipment is not abnormal when the serial port communication condition of the intelligent module to be tested and the intelligent equipment in UDP unicast reply data is successful; when the version number of the intelligent module to be detected is detected, the SN code writing result is detected, and the serial port communication condition of the intelligent module to be detected and the intelligent equipment is detected to be abnormal, the complete machine detection of the intelligent module to be detected can be determined to be qualified.
In order to characterize the detection result of the smart module under test, in an embodiment of the present invention, before scanning, by using a testing tool, the MAC tag on the powered-on smart module under test to obtain the first MAC address, the method further includes:
controlling to be in an STA mode after the intelligent module to be tested is powered on by utilizing the processor;
controlling a WiFi state indicator lamp of the intelligent equipment to be in an off state by using a processor;
after determining that the intelligent module to be tested is qualified, the method further comprises the following steps:
controlling the intelligent module to be tested to be in an AP mode by utilizing a processor;
and controlling the WiFi status indicator lamp to be in a flashing state by using the processor.
In the embodiment of the invention, in order to represent the WiFi state and the operation mode of the intelligent module to be tested, the intelligent module to be tested can be controlled to be in the STA mode before being electrified and detected, and the WiFi state indicator lamp arranged on the intelligent equipment is controlled to be in an off state by using the processor; and then after the test tool receives UDP unicast reply data sent by the intelligent module to be tested and when the detection result of the intelligent module to be tested is determined to be qualified, the intelligent module to be tested can be controlled to be in an AP mode through the processor and the WiFi state indicator lamp is controlled to be in a flashing state.
In an embodiment of the present invention, in the prior art, a test tool needs to perform a hot-spot connection operation with each to-be-tested intelligent module, the test tool is continuously allocated with different ip addresses by the to-be-tested intelligent module, and the ip addresses are continuously hopped, so that the UDP communication network environment is not very stable, the overall test time is too long, and the overall production progress is affected. The invention is based on a new UDP data interaction mode and can be applied to the production detection process of the intelligent module. According to the mode, a test router is arranged on a production line, UDP data interaction is carried out between a test tool and the intelligent module to be tested under the same local area network, the UDP data interaction is carried out more reliably by adopting the mode, a plurality of settings of test software are avoided, the production detection efficiency of the intelligent module to be tested is improved on the whole, the connection and disconnection operations of WiFi hot points of each test intelligent module are not required to be carried out repeatedly, and the test is short in whole time consumption.
As shown in fig. 4, in order to more clearly illustrate the technical solution and advantages of the present invention, the following describes in detail a production detection method of an intelligent module provided in an embodiment of the present invention, and specifically includes the following steps:
step 401: and analyzing a preset search rule for the test router by using the intelligent module to be tested to generate a target search rule.
For example, the target search rule may be set to a router naming prefix of CH _ ML, with a maximum signal strength threshold.
Step 402: and determining the router naming prefix contained in the target search rule by using the intelligent module to be tested according to the target search rule.
Step 403: and determining at least one target router which accords with the router naming prefix from at least one search router by using the intelligent module to be tested according to the router naming prefix.
For example, assume that the test router 1 network of the wire body 1 is set up to: name CH _ ML _50_1, password 123456, signal strength value-30 dB; the test router 2 network of the wire body 2 is set as: name CH _ ML _50_2, password 123456, signal strength value-70 dB; it can be determined that the named prefixes of the test router 1 and the test router 2 both conform to the target search rule according to the router named prefix CH _ ML included in the target search rule.
Step 404: and determining at least one signal intensity threshold value corresponding to at least one target router respectively by using the intelligent module to be tested.
Step 405: and determining the router with the maximum signal intensity threshold value in at least one target router as a test router by using the intelligent module to be tested.
For example, since the signal strength value of the testing router 1 is-30 dB and the signal strength value of the testing router 2 is-70 dB, the router with the largest signal strength threshold value among the at least one target router can be determined as the testing router 1.
Step 406: and utilizing the intelligent module to be tested according to preset configuration information, wherein the configuration information comprises the name, the password, the lease and other attribute information of the test router.
Step 407: and establishing connection between the test tool and the test router by using the test tool.
Specifically, the intelligent module to be tested is connected with the test router, and the test tool is connected with the test router, so that the test software, the test router, the intelligent device and the intelligent module to be tested can be in the same local area network, and UDP data interaction is facilitated.
Step 408: and controlling the intelligent module to be tested to be in an STA mode after the intelligent module to be tested is powered on by utilizing the processor.
Step 409: and controlling a WiFi (wireless fidelity) state indicator lamp of the intelligent equipment to be in an off state by using the processor.
Specifically, in order to indicate the running state of the intelligent module to be tested, the processor may control the intelligent module to be tested to be in the STA mode after being powered on, and make the WiFi status indicator light in an off state.
Step 410: and scanning the MAC label on the electrified intelligent module to be tested by using a testing tool to obtain a first MAC address.
Specifically, the first MAC address is used to represent address information of the to-be-tested intelligent module, and the test tool may scan an MAC label on the powered-on to-be-tested intelligent module to obtain the first MAC address to obtain the address information of the to-be-tested intelligent module.
Step 411: and scanning the SN label on the powered-on intelligent device by using a testing tool to obtain an SN code, wherein the SN code is used for representing the serial number of the intelligent device.
Step 412: and sending UDP broadcast data to the intelligent module to be tested by using the testing tool, wherein the UDP broadcast data comprises a second MAC address.
Step 413: and determining whether the first MAC address and the second MAC address are consistent or not according to the first MAC address and the second MAC address contained in the UDP broadcast data by using the intelligent module to be tested.
Step 414: and writing the SN code into the intelligent module to be tested by utilizing the intelligent module to be tested when the first MAC address is consistent with the second MAC address and the first MAC address is consistent with the second MAC address.
Specifically, under the condition that the test tool, the test router, the intelligent device, and the intelligent module to be tested are in the same local area network, UDP data interaction may be performed, and meanwhile, the intelligent module to be tested may determine, according to a second MAC address included in the UDP broadcast data and a first MAC address of the intelligent module to be tested, whether the first MAC address and the second MAC address are consistent, so as to determine a transmission object of UDP broadcast data sent by the test tool, that is, determine the intelligent module to be tested, and write the SN code into the intelligent module to be tested when it is determined that the transmission object of the UDP broadcast data is the intelligent module to be tested.
Step 415: the intelligent module to be tested is utilized to send UDP unicast reply data to the testing tool, wherein the UDP unicast reply data comprises the following data: the SN code writing result, the test version number of the intelligent module end to be tested, the serial port communication condition of the intelligent module to be tested and the intelligent equipment, and the signal intensity threshold of the test router.
Step 416: and receiving UDP unicast reply data sent by the intelligent module to be tested by using the testing tool, wherein the UDP unicast reply data is used for indicating the detection result of the intelligent module to be tested.
Step 417: and determining whether the target test version number is consistent with the test version number of the intelligent module end to be tested according to the pre-stored target test version number by using a test tool.
Step 418: and determining that the version number detection of the intelligent module to be detected is abnormal by using a test tool when the target test version number is consistent with the test version number of the intelligent module end to be detected.
Step 419: and determining whether the SN code writing result detection is abnormal or not according to the SN code writing result by utilizing a test tool.
Step 420: and determining that the SN code writing result detection is not abnormal by using the test tool when the SN code writing result is successful.
Step 421: and determining whether the serial port communication condition of the intelligent module to be tested and the intelligent equipment is abnormal or not by using the testing tool according to the serial port communication condition detection of the intelligent module to be tested and the intelligent equipment.
Step 422: and determining that the serial port communication condition of the intelligent module to be tested and the intelligent equipment is not abnormal by using the testing tool when the serial port communication condition of the intelligent module to be tested and the intelligent equipment is successful.
Step 423: and when the version number of the intelligent module to be detected is detected, the SN code writing result is detected, and the serial port communication condition of the intelligent module to be detected and the intelligent equipment is detected to be abnormal, determining that the intelligent module to be detected is qualified.
Step 424: and controlling the intelligent module to be tested to be in the AP mode by utilizing the processor.
Step 425: and controlling the WiFi status indicator lamp to be in a flashing state by using the processor.
Specifically, after determining the intelligent module to be tested, the intelligent module to be tested may be tested, including: the version number of the intelligent module to be detected is detected, SN code writing result detection, the serial port communication condition of the intelligent module to be detected and the intelligent equipment is detected, when the detection is not abnormal, the detection of the intelligent module to be detected can be determined to be qualified, at the moment, the processor can be utilized, the intelligent module to be detected is controlled to be in an AP mode, the WiFi state indicator lamp is controlled to be in a flashing state, the detection result of the intelligent module to be detected is indicated, and the detection result is conveniently displayed through indication of the WiFi state indicator lamp and switching of the mode.
It is to be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation to the production detection system of the intelligent module. In other embodiments of the invention, the production detection system of the intelligent module may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
The embodiment of the invention also provides a production detection system of the intelligent module, which comprises the following components: at least one memory and at least one processor;
at least one memory for storing a machine readable program;
at least one processor for invoking a machine readable program to perform a method for production detection of an intelligent module in any embodiment of the present invention.
An embodiment of the present invention further provides a computer-readable medium, where computer instructions are stored on the computer-readable medium, and when the computer instructions are executed by a processor, the processor is enabled to execute the method for detecting production of an intelligent module according to any embodiment of the present invention.
Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
The embodiments of the invention have at least the following beneficial effects:
1. in the embodiment of the invention, when the current intelligent module is used for carrying out the production detection of the whole machine assembly line, the connection and disconnection operation of the WiFi hotspot of each intelligent module to be detected needs to be carried out repeatedly, and then the whole machine detection of each intelligent module to be detected is carried out, so that the detection efficiency of the intelligent module is reduced. After the connection is completed, the intelligent module to be tested, the test router, the intelligent device and the test tool are in the same local area network, and UDP data interaction can be carried out. Based on this, the tester can scan the MAC tag of the powered-on intelligent module to be tested to obtain the first MAC address for representing the address of the intelligent module to be tested, scan the SN tag of the powered-on intelligent device to obtain the SN code for representing the serial number of the intelligent device, and then the test tool can actively send UDP broadcast data, because the intelligent module to be tested and the testing tool are positioned in the same local area network at the moment, the UDP broadcast data sent by the testing tool can be received, and whether the first MAC address is consistent with the second MAC address is determined based on the second MAC address contained in the UDP broadcast data and the first MAC address of the intelligent module to be tested, and when the first MAC address and the second MAC address are determined to be consistent, the detection object is the intelligent module to be detected, so that the intelligent module to be detected can write the SN code of the intelligent equipment at the moment, and returning UDP unicast reply data to indicate the complete machine detection result of the intelligent module to be detected. Through the process, the connection and disconnection operations of the WiFi hot spot of each intelligent module to be tested are not required to be repeatedly carried out, and when the test tool sends the UDP broadcast data, the intelligent modules to be tested in the same local area network can receive the UDP broadcast data, so that the detection efficiency of the intelligent modules can be improved;
2. in an embodiment of the present invention, each line body is provided with a test router, so that the to-be-tested intelligent module, the test tool, the intelligent device, and the test router are in the same local area network and can perform UDP data interaction, therefore, determining the test router is a key step of the present solution, the to-be-tested intelligent module can be used to analyze a preset search rule for the test router, according to the analyzed target search rule, a router naming prefix included in the target search rule is determined, at least one target router conforming to the router naming prefix is determined from the at least one search router, and the router with the largest signal strength threshold is selected as the test router, then based on preset configuration information, the to-be-tested intelligent module can be connected with the test router, the test tool can be connected with the test router, the intelligent module to be tested, the test router, the intelligent equipment and the test tool are positioned under the same local area network, so that UDP data interaction is conveniently carried out;
3. in an embodiment of the present invention, in order to ensure the quality of the intelligent device, the intelligent module to be tested needs to be detected when the intelligent device leaves the factory, and the version number detection, SN code writing result detection, and serial port communication condition detection of the intelligent module to be tested and the intelligent device can be performed on the intelligent module to be tested connected with the serial port of the intelligent device. Based on the method, a testing tool can be utilized to determine whether the target testing version number is consistent with the testing version number of the intelligent module end to be tested according to the pre-stored target testing version number, and when the target testing version number is determined to be consistent with the testing version number of the intelligent module end to be tested, the version number of the intelligent module to be tested is determined to be abnormal; the test tool can be used for determining whether the detection of the SN code writing result is abnormal or not according to the SN code writing result, and determining that the detection of the SN code writing result is not abnormal when the SN code writing result in the UDP unicast reply data is successful; the testing tool can be used for determining whether the serial port communication condition of the intelligent module to be tested and the intelligent equipment is abnormal or not according to the serial port communication condition detection of the intelligent module to be tested and the intelligent equipment, and determining that the serial port communication condition of the intelligent module to be tested and the intelligent equipment is not abnormal when the serial port communication condition of the intelligent module to be tested and the intelligent equipment in UDP unicast reply data is successful; when the version number detection, SN code writing result detection and serial port communication condition detection of the intelligent module to be detected and the intelligent equipment are not abnormal, the complete machine detection of the intelligent module to be detected can be determined to be qualified;
4. in an embodiment of the present invention, in order to represent the WiFi state and the operation mode of the intelligent module to be tested, the intelligent module to be tested may be controlled to be in the STA mode before being powered on for detection, and the WiFi state indicator lamp disposed on the intelligent device is controlled to be in an off state by using the processor; and then after the test tool receives UDP unicast reply data sent by the intelligent module to be tested and when the detection result of the intelligent module to be tested is determined to be qualified, the intelligent module to be tested can be controlled to be in an AP mode through the processor and the WiFi state indicator lamp is controlled to be in a flashing state.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the embodiments disclosed, and it will be apparent to those skilled in the art that various combinations of the code auditing means in the various embodiments described above may be used to obtain further embodiments of the invention, which are also within the scope of the invention.

Claims (10)

1. Production detecting system of intelligent object, its characterized in that includes: the system comprises intelligent equipment, an intelligent module to be tested, a test router and a test tool;
the intelligent equipment is connected with the intelligent module to be tested through a serial port, the intelligent module to be tested is connected with the test router through a wireless network, and the test tool is connected with the test router through a wireless network;
the testing tool is used for scanning an MAC label on the electrified intelligent module to be tested to obtain a first MAC address, scanning an SN label on the electrified intelligent device to obtain an SN code, sending UDP (user Datagram protocol) broadcast data to the intelligent module to be tested, receiving UDP unicast reply data sent by the intelligent module to be tested, and determining a detection result of the intelligent module to be tested according to the UDP unicast reply data, wherein the UDP broadcast data comprise a second MAC address, the UDP unicast reply data are used for indicating the detection result of the intelligent module to be tested, and the SN code is used for representing a serial number of the intelligent device;
the intelligent module to be tested is used for determining whether the first MAC address is consistent with the second MAC address according to the first MAC address and the second MAC address contained in the UDP broadcast data, writing the SN code into the intelligent module to be tested when the first MAC address is consistent with the second MAC address, and sending the UDP unicast reply data to the testing tool.
2. The system of claim 1,
the intelligent module that awaits measuring is further used for:
analyzing a preset search rule for the test router to generate a target search rule;
according to the target search rule, determining a router naming prefix contained in the target search rule; determining at least one target router which accords with the router naming prefix from at least one search router according to the router naming prefix; determining at least one signal strength threshold value corresponding to each target router; determining a router with the maximum signal strength threshold value in at least one target router as the test router; according to preset configuration information, the intelligent module to be tested is connected with the testing router, the testing tool is connected with the testing router, and the configuration information comprises the name, the password and lease attribute information of the testing router.
3. The system of claim 2,
the UDP unicast reply data includes: the SN code writing result, the test version number of the intelligent module end to be tested, the serial port communication condition of the intelligent module to be tested and the intelligent equipment, and the signal intensity threshold of the test router;
the testing tool is used for determining whether the target testing version number is consistent with the testing version number of the intelligent module end to be tested according to a pre-stored target testing version number, and determining that the version number detection of the intelligent module to be tested is abnormal when the target testing version number is determined to be consistent with the testing version number of the intelligent module end to be tested; determining whether the SN code writing result detection is abnormal or not according to the SN code writing result, and determining that the SN code writing result detection is not abnormal when the SN code writing result detection is successful; according to the intelligent module that awaits measuring with the serial port communication condition of smart machine, confirm the intelligent module that awaits measuring with whether there is the anomaly in the serial port communication condition detection of smart machine, and when the intelligent module that awaits measuring with the serial port communication condition detection of smart machine is successful, confirm the intelligent module that awaits measuring with the serial port communication condition detection of smart machine does not have the anomaly the version number of the intelligent module that awaits measuring detects, SN sign indicating number write in result detect with the intelligent module that awaits measuring with when the serial port communication condition detection of smart machine does not have the anomaly, confirm the intelligent module that awaits measuring detects qualifiedly.
4. The system of claim 3,
further comprising: a WiFi status indicator light and a processor;
the processor is used for controlling the intelligent module to be tested to be in an STA mode and controlling a WiFi status indicator lamp of the intelligent equipment to be in an off state after the intelligent module to be tested is powered on; and after the intelligent module to be detected is determined to be qualified, controlling the intelligent module to be detected to be in an AP mode, and controlling the WiFi status indicator lamp to be in a flashing state.
5. The production detection method of the intelligent module is characterized by comprising the following steps:
scanning an MAC label on the electrified intelligent module to be tested by using a testing tool to obtain a first MAC address;
scanning an SN label on the powered-on intelligent equipment by using the testing tool to obtain an SN code, wherein the SN code is used for representing a serial number of the intelligent equipment;
sending UDP broadcast data to the intelligent module to be tested by using the testing tool, wherein the UDP broadcast data comprises a second MAC address;
determining whether the first MAC address and the second MAC address are consistent or not according to the first MAC address and the second MAC address contained in the UDP broadcast data by using the intelligent module to be tested;
writing the SN code into the intelligent module to be tested when the first MAC address is consistent with the second MAC address by using the intelligent module to be tested;
sending UDP unicast reply data to the testing tool by using the intelligent module to be tested;
receiving UDP unicast reply data sent by the intelligent module to be tested by using the testing tool, wherein the UDP unicast reply data is used for indicating a detection result of the intelligent module to be tested;
and determining a detection result of the intelligent module to be detected according to the UDP unicast reply data by using the test tool.
6. The method of claim 5,
before the scanning, by the test tool, the MAC tag on the powered-up smart module to be tested to obtain the first MAC address, the method further includes:
analyzing a preset search rule for the test router by using the intelligent module to be tested to generate a target search rule;
determining a router naming prefix contained in the target search rule according to the target search rule by using the intelligent module to be tested;
determining at least one target router which accords with the router naming prefix from at least one search router by utilizing the intelligent module to be tested according to the router naming prefix;
determining at least one signal intensity threshold value corresponding to the at least one target router respectively by using the intelligent module to be tested;
determining a router with the maximum signal intensity threshold value in at least one target router as the test router by using the intelligent module to be tested;
establishing connection between the intelligent module to be tested and the test router by using the intelligent module to be tested according to preset configuration information, wherein the configuration information comprises the name, the password and lease attribute information of the test router;
and establishing connection between the test tool and the test router by using the test tool.
7. The method of claim 6,
the UDP unicast reply data includes: the SN code writing result, the test version number of the intelligent module end to be tested, the serial port communication condition of the intelligent module to be tested and the intelligent equipment, and the signal intensity threshold of the test router;
the determining, by using the testing tool, a detection result of the to-be-tested intelligent module according to the UDP unicast reply data includes:
determining whether the target test version number is consistent with the test version number of the intelligent module end to be tested according to a pre-stored target test version number by using the test tool;
determining that the version number detection of the intelligent module to be detected is abnormal when the target test version number is consistent with the test version number of the intelligent module to be detected by using the test tool;
determining whether the SN code writing result detection is abnormal or not according to the SN code by utilizing the test tool;
determining that the SN code writing result detection is not abnormal by utilizing the test tool when the SN code writing result is successful;
determining whether the serial port communication condition detection of the intelligent module to be tested and the intelligent equipment is abnormal or not according to the serial port communication condition of the intelligent module to be tested and the intelligent equipment by using the testing tool;
when the serial port communication condition of the intelligent module to be tested and the intelligent equipment is detected successfully, determining that the serial port communication condition detection of the intelligent module to be tested and the intelligent equipment is not abnormal by using the testing tool;
and when the version number of the intelligent module to be detected is detected, the SN code writing result is detected, and the serial port communication condition of the intelligent module to be detected and the intelligent equipment is detected to be abnormal, determining that the intelligent module to be detected is qualified.
8. The method of claim 7,
before the scanning, by the test tool, the MAC tag on the powered-up smart module to be tested to obtain the first MAC address, the method further includes:
controlling the intelligent module to be tested to be in an STA mode after the intelligent module to be tested is powered on by utilizing a processor;
controlling a WiFi status indicator lamp of the intelligent equipment to be in an off state by utilizing the processor;
after the determination that the intelligent module to be tested is qualified, the method further comprises:
controlling the intelligent module to be tested to be in an AP mode by utilizing the processor;
and controlling the WiFi status indicator lamp to be in a flashing state by utilizing the processor.
9. An electronic device, comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor, configured to invoke the machine readable program to perform the method of any of claims 5 to 8.
10. Computer readable medium, characterized in that it has stored thereon computer instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 5 to 8.
CN202010740560.6A 2020-07-28 2020-07-28 Production detection system and method of intelligent module and electronic equipment Active CN112055316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010740560.6A CN112055316B (en) 2020-07-28 2020-07-28 Production detection system and method of intelligent module and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010740560.6A CN112055316B (en) 2020-07-28 2020-07-28 Production detection system and method of intelligent module and electronic equipment

Publications (2)

Publication Number Publication Date
CN112055316A CN112055316A (en) 2020-12-08
CN112055316B true CN112055316B (en) 2022-03-29

Family

ID=73602345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010740560.6A Active CN112055316B (en) 2020-07-28 2020-07-28 Production detection system and method of intelligent module and electronic equipment

Country Status (1)

Country Link
CN (1) CN112055316B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615683B (en) * 2020-12-17 2023-04-07 四川虹美智能科技有限公司 Communication module function detection system and method
CN113140053B (en) * 2021-04-29 2022-11-08 四川虹美智能科技有限公司 Automatic code scanning test system and method based on annular dynamic line
CN113759294A (en) * 2021-09-06 2021-12-07 成都长虹网络科技有限责任公司 Wi-Fi socket testing method and system
CN113961459A (en) * 2021-10-25 2022-01-21 四川虹美智能科技有限公司 Intelligent product testing system
CN115116169B (en) * 2022-08-29 2023-01-06 深圳市海清视讯科技有限公司 Device control method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008001021A1 (en) * 2006-06-30 2008-01-03 France Telecom Method and device for managing the configuring of equipment of a network
CN106993302A (en) * 2017-03-28 2017-07-28 上海斐讯数据通信技术有限公司 A kind of method of testing and system of AP equipment
CN107204898A (en) * 2017-05-25 2017-09-26 绵阳美菱软件技术有限公司 Production test method, system and the storage device of intelligent appliance, mobile terminal
CN108401227A (en) * 2018-03-07 2018-08-14 乐鑫信息科技(上海)有限公司 A kind of method and system for establishing connectionless mesh networks routing
CN110430541A (en) * 2019-08-09 2019-11-08 四川虹美智能科技有限公司 Production detection method, the apparatus and system of data interaction are realized based on local area network
CN111212387A (en) * 2020-03-16 2020-05-29 纳瓦电子(上海)有限公司 Test method and system for wireless equipment, electronic equipment and test device
CN111314864A (en) * 2020-03-04 2020-06-19 联想万像(深圳)科技有限公司 Network distribution method, device and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105319455A (en) * 2014-07-25 2016-02-10 天彩电子(深圳)有限公司 Automatic test system and method
CN106231566A (en) * 2016-08-19 2016-12-14 青岛海尔空调器有限总公司 A kind of air-conditioning wifi module detection method
CN108540582B (en) * 2017-03-02 2020-09-15 腾讯科技(深圳)有限公司 Terminal identification processing method, server and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008001021A1 (en) * 2006-06-30 2008-01-03 France Telecom Method and device for managing the configuring of equipment of a network
CN106993302A (en) * 2017-03-28 2017-07-28 上海斐讯数据通信技术有限公司 A kind of method of testing and system of AP equipment
CN107204898A (en) * 2017-05-25 2017-09-26 绵阳美菱软件技术有限公司 Production test method, system and the storage device of intelligent appliance, mobile terminal
CN108401227A (en) * 2018-03-07 2018-08-14 乐鑫信息科技(上海)有限公司 A kind of method and system for establishing connectionless mesh networks routing
CN110430541A (en) * 2019-08-09 2019-11-08 四川虹美智能科技有限公司 Production detection method, the apparatus and system of data interaction are realized based on local area network
CN111314864A (en) * 2020-03-04 2020-06-19 联想万像(深圳)科技有限公司 Network distribution method, device and equipment
CN111212387A (en) * 2020-03-16 2020-05-29 纳瓦电子(上海)有限公司 Test method and system for wireless equipment, electronic equipment and test device

Also Published As

Publication number Publication date
CN112055316A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN112055316B (en) Production detection system and method of intelligent module and electronic equipment
CN111917643B (en) Seamless bidirectional forwarding detection method and device for segmented routing tunnel
EP1919131B1 (en) A method for detecting fault in the next generation network
CN107483254B (en) Production test method and device for intelligent module of Internet of things
CN110430541B (en) Production detection method, device and system for realizing data interaction based on local area network
US20070099649A1 (en) Method and apparatus for neighbor discovery in IPv6-based mobile system
CN109819498A (en) A kind of smart machine, the automatic distribution method and system of smart machine
US10701623B2 (en) Method and apparatus for Wi-Fi device type identification and device type based diagnostics and optimization
CN113709043B (en) Path tracking method and device
CN101411127A (en) Apparatus and method of handover for mobile node
CN111435912A (en) IPv6 stateless address automatic configuration method, network equipment and host
CN112333019B (en) Router configuration and test method and system and readable storage medium
CN103136099A (en) Method for testing software, analog terminal, backstage server and system
CN106210155A (en) The method and apparatus connecting application server
CN112383906B (en) System and method for detecting WiFi and Bluetooth performance of intelligent module
CN111541502A (en) System and method for testing WiFi module
CN109189549A (en) Virtual machine migration method and device
KR20080054831A (en) Multiple network interface apparatus and method, and traffic control option information transmission method and network interface selection method in its
CN113992508A (en) Local area network automatic networking method of intelligent equipment and intelligent equipment
CN110996244B (en) Microphone array performance test method, device and system
CN113038499A (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
CN108966281A (en) Mesh network processing method, device, equipment and storage medium
CN111224983A (en) Method and device for discovering equipment across network segments
CN116527592A (en) Application layer stream following detection method and device based on APN (access point) and related equipment
CN104168583B (en) A kind of wireless bidirectional communication test method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant