Intelligent detection method for GPRS module of electric energy meter
The automated testing method using a multi-channel electricity meter testing device solves the problems of low efficiency and poor accuracy in testing GPRS modules of electricity meters, achieving efficient and accurate automated testing, significantly reducing labor costs and human error rates, and improving testing coverage.
Patent Information
- Application Number
- CN202511070360.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-28
AI Technical Summary
In existing technologies, the testing of GPRS modules in electricity meters relies on manual operation, which is inefficient, inaccurate, and difficult to detect in complex network environments and long-term stability. It is also easy to miss deep-seated faults, resulting in unstable product quality.
An automated testing method using a multi-channel energy meter testing device is adopted. Through barcode binding, crimping control, automated command sending, and network connection status monitoring, the device can bind the identity information of the energy meter's GPRS module, detect power supply and physical connection, network configuration and performance parameters, and automatically verify the software version and signal strength.
It improves detection efficiency and accuracy, reduces labor costs and human error rate, and can detect software version consistency, signal strength and connection stability, thus comprehensively improving the detection coverage and accuracy of GPRS modules.
Smart Images

Figure CN121036879A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of instrument detection, and in particular to an intelligent detection method for a GPRS module of an electric energy meter. BACKGROUND
[0002] In the production and manufacturing of smart electric energy meters, a GPRS communication module is a key component for realizing core functions such as remote meter reading, rate switching, data back transmission, etc. The quality reliability thereof is directly related to the network access capability and long-term stable operation of the electric meter terminal. However, in the production process of the GPRS module, due to the complexity of the production process (such as welding defects such as virtual welding, missed welding, and continuous welding) or the quality fluctuation of the components (such as damage to the baseband chip, performance deviation of the radio frequency circuit, poor contact of the SIM card seat, impedance mismatch of the antenna interface, etc.), the module may have potential faults such as failure to register the network, low communication rate, frequent disconnection, insufficient signal receiving sensitivity, and even complete failure to communicate. If such problems are not discovered and handled in a timely manner, the electric energy meter equipped with the module will not be able to normally access the mobile operator network, and the remote management function will fail, which not only affects the normal operation of the power company and the collection of user data, but also may cause batch customer complaints, returns, and even large-scale product recall risks, resulting in huge economic losses and damage to brand reputation. Therefore, before the GPRS module is shipped, it is necessary to comprehensively and strictly detect the communication function, performance parameters, and stability of the module, which is a key link for ensuring the quality of the smart electric meter product.
[0003] At present, the traditional electric energy meter GPRS module detection method commonly used in the industry mainly relies on a single device test mode. This mode usually includes the following steps: an operator manually installs a single GPRS module to be tested on a real electric energy meter hardware or a dedicated test fixture, and manually connects the power supply and communication cable. The operator manually sends AT commands (such as AR+CSQ, AT+CGATT?, AT+COPS?, etc.) for basic function detection through a PC serial port tool or simple test software. The operator manually observes the module indicator light state, records the instruction return result, or checks the simple prompt of the test software. After the test is completed, the operator manually dismounts the module and repeats the above process for the next module. However, this traditional detection method mainly relies on manual detection, which is not only low in efficiency, but also requires a large amount of manpower and is prone to errors due to fatigue. Meanwhile, manual operation and judgment introduce subjective errors, and the consistency of the test results is difficult to guarantee. In addition, the manual test method usually only performs basic connection checking, and it is difficult to simulate complex network environments and perform long-term stability monitoring (such as false online identification), so deep-seated faults are easily missed, and the detection accuracy is low. SUMMARY
[0004] Therefore, in view of the above shortcomings, it is necessary to propose an intelligent detection method of the GPRS module of the electric energy meter to reduce the dependence on manpower and improve the detection efficiency and accuracy of the GPRS module of the electric energy meter.
[0005] The application provides an intelligent detection method of a GPRS module of an electric energy meter.
[0006] Identity information of the measured GPRS module of the electric energy meter is acquired, and the identity information is bound to corresponding table position numbers of a multi-channel electric energy meter detection device.
[0007] A crimping control instruction is sent to the multi-channel electric energy meter detection device, so that the crimping mechanism of each table position is controlled to act by the electric energy meter detection device, and power supply and physical connection of the measured GPRS module of the electric energy meter are completed.
[0008] According to a preconfigured or supported operator type of the measured GPRS module of the electric energy meter, corresponding APN configuration parameters are automatically generated and issued to the electric energy meter detection device, so that the electric energy meter detection device sends an AT instruction set containing the APN configuration parameters to each measured GPRS module of the electric energy meter.
[0009] A specified port of a test server is listened to, so as to determine the network connection state of each measured GPRS module.
[0010] Performance parameter detection instructions are sent to each measured GPRS module of the electric energy meter, so that software version consistency is checked and signal strength is tested through the response of each measured GPRS module of the electric energy meter.
[0011] Preferably, the identity information of the measured GPRS module of the electric energy meter is acquired, and the identity information is bound to corresponding table position numbers of the multi-channel electric energy meter detection device, and the method comprises the following steps.
[0012] A unique identification code IMEI representing the identity information of the current measured GPRS module is obtained by scanning a bar code or a two-dimensional code on the measured GPRS module through a high-speed code scanning gun.
[0013] The obtained unique identification code IMEI is bound to the table position number currently operated by the electric energy meter detection device, and the binding relationship is stored in a database.
[0014] Preferably, the crimping control instruction is sent to the multi-channel electric energy meter detection device, and the method comprises the following steps.
[0015] Send the crimping instruction containing the target meter position number to the electric energy meter detection device through the industrial bus protocol, so that the electric energy meter detection device generates a PWM control signal according to the crimping instruction to drive the electromagnetic valve of the target meter position number, and the crimping mechanism of the electric energy meter detection device crimps the GPRS module of the electric energy meter installed in the target meter position on the interface of the electric energy meter detection device, and at the same time, the power supply loop is connected.
[0016] Preferably, the corresponding APN configuration parameters are automatically generated and issued to the electric energy meter detection device according to the pre-configuration or the operator type supported by the measured electric energy meter GPRS module, including:
[0017] According to the pre-configuration or the operator type supported by the measured electric energy meter GPRS module, the corresponding access point name APN configuration parameters are selected and generated;
[0018] The APN configuration parameters, the preset test server IP address and the port number are issued to the electric energy meter detection device through the bus protocol, so that the electric energy meter detection device sends a preset AT instruction set to the measured GPRS module of the corresponding meter position through the UART serial port, and performs network configuration and connection.
[0019] Preferably, the AT instruction set includes:
[0020] {AT+CGDCONT=1, "IP", "[APN]"}, used for configuring APN parameters, wherein [APN] is dynamically filled according to the operator type;
[0021] {AT+CGATT=1}, used for forcing the module to perform network attachment;
[0022] {AT+CIPSTART="TCP","[Server_IP]","[Port]"}, used for instructing the GPRS module to connect to the preset test server address and port.
[0023] Preferably, the network connection state of each measured GPRS module is determined, including:
[0024] If the measured electric energy meter GPRS module completes the TCP three-way handshake with the test server within a preset first time threshold and returns a CONNECT OK response through the serial port, it is determined that the current measured electric energy meter GPRS module is in a true online state;
[0025] If the test server does not receive a connection request or the measured electric energy meter GPRS module does not return a CONNECT OK response within the first time threshold, it is determined that the current measured electric energy meter GPRS module is in a connection timeout state;
[0026] If the GPRS module of the measured electric energy meter returns a CONNECT OK response, but the test server does not receive a valid heartbeat packet or data interaction message within the second time threshold, it is determined that the GPRS module of the current measured electric energy meter is in a false online state.
[0027] Preferably, the performance parameter detection instruction is sent to each measured electric energy meter GPRS module to check the software version consistency through the response of each measured electric energy meter GPRS module, including:
[0028] sending a firmware version query instruction to the measured electric energy meter GPRS module;
[0029] receiving a version number string returned by the current measured electric energy meter GPRS module;
[0030] matching the returned version number string with a preset standard version library;
[0031] if the matching is successful, recording the version number information; if the matching fails or there is no response, marking as software version abnormal.
[0032] Preferably, the performance parameter detection instruction is sent to each measured electric energy meter GPRS module to test the signal strength through the response of each measured electric energy meter GPRS module, including:
[0033] sending an AT+CSQ instruction to the measured electric energy meter GPRS module and obtaining a first received signal strength indication value reported by the current GPRS module;
[0034] converting the first received signal strength indication value into a second received signal strength indication value represented in dBm units;
[0035] comparing the second received signal strength indication value with a preset strength threshold;
[0036] if the second received signal strength indication value is not less than the preset strength threshold, determining that the signal strength of the current measured electric energy meter GPRS module is qualified; otherwise, determining that the signal strength of the current measured electric energy meter GPRS module is unqualified.
[0037] Preferably, if at least one of the test results of the network connection state, the software version consistency and the signal strength test is unqualified, an alarm instruction is sent to the meter position of the electric energy meter detection device where the current measured electric energy meter GPRS module is located to light up the alarm indicator light of the meter position and trigger the buzzer to sound.
[0038] Preferably, after the test is completed, further comprising:
[0039] The test result data packet is added with a CRC check or a digital signature, and is uploaded to a manufacturing execution system (MES) through an encrypted transmission channel, so that the manufacturing execution system (MES) generates a unique traceable code for each measured GPRS module of the electric energy meter.
[0040] According to the above technical solution, when detecting the GPRS module of the electric energy meter, the identity information of the measured GPRS module of the electric energy meter is first acquired, and the identity information is bound to the corresponding table position number of the multi-channel electric energy meter detection device. Then, a crimping control instruction is sent to the multi-channel electric energy meter detection device, so that the electric energy meter detection device controls the action of the crimping mechanism of each table position, and the power supply and physical connection of the measured GPRS module of the electric energy meter are completed. Further, according to the pre-configuration or the operator type supported by the measured GPRS module of the electric energy meter, the corresponding APN configuration parameter is automatically generated and sent to the electric energy meter detection device, so that the electric energy meter detection device sends an AT instruction set containing the APN configuration parameter to each measured GPRS module of the electric energy meter. Further, the network connection state of each measured GPRS module is determined by listening to the specified port of the test server, and then a performance parameter detection instruction is sent to each measured GPRS module of the electric energy meter, so that the software version consistency is checked through the response of each measured GPRS module of the electric energy meter, and the signal strength is tested. As can be seen, the present scheme no longer mainly relies on manual testing, but replaces manual recording by means of code scanning binding, realizes automatic connection by means of crimping instructions, and replaces manual sending of instructions by means of generation and sending of automatic instructions, which significantly reduces human participation, improves detection efficiency, reduces human error rate caused by human factors, and improves detection accuracy. In addition, compared with the manual test which only performs basic test and signal strength test, the present scheme also detects software version consistency, signal strength, and connection stability such as false online, realizes detection of deep-seated faults that are easy to be missed, and further improves the detection accuracy of the GPRS module. BRIEF DESCRIPTION OF DRAWINGS
[0041] Figure 1 A detection system schematic diagram of a GPRS module of an electric energy meter is provided for the embodiments of the present application.
[0042] Figure 2 A flowchart of an intelligent detection method of a GPRS module of an electric energy meter is provided for the embodiments of the present application. DETAILED DESCRIPTION
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows. Obviously, the drawings described in the following embodiments are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0044] The system shown in the present application can be used for detecting the GPRS module of the electric energy meter. Figure 1 The electric energy meter detection device is designed as a multi-channel device, such as 8-meter positions or 16-meter positions, i.e. it can simultaneously detect the GPRS module of 8 or 16 electric energy meters. Specifically, taking 16-meter positions as an example, the electric energy meter detection device can use an STM32H7 series MCU, integrate 16 independent controllable pneumatic crimping mechanisms, 16 UART interfaces, 16 double-color LED indicator lights, 1 RS485 bus interface, and a power supply module. The power supply module can use a stable and controllable DC power supply, such as 3.8V or 4.0V, and has overvoltage and overcurrent protection functions. The UART interface is used to send AT commands and receive responses, and the optional RS485 interface is used for internal communication or expansion of the tooling. The pneumatic crimping mechanism is driven by a pneumatic cylinder and realizes stable and reliable connection between the gold finger of the measured electric energy meter GPRS module and the interface of the electric energy meter detection device through a precisely designed probe or Pogo Pin connector. Specifically, the pneumatic cylinder is a small double-acting pneumatic cylinder, which is vertically installed above the meter position and is controlled to extend and retract by the electromagnetic valve built in the electric energy meter detection device. The lower end of the pneumatic cylinder piston rod is connected to an insulating yoke, and the bottom of the yoke is embedded with an array of conductive probes Pogo Pin, the number of which matches the number of the gold finger contacts of the GPRS module, usually 8-12, which are used to physically connect the power supply pins and communication pins of the measured GPRS module. The pneumatic cylinder inlet and the top of the pressure head are integrated with a pressure sensor, which monitors the crimping head in real time and feeds back signals to the electric energy meter detection device to ensure that the crimping head is stable at the preset threshold. Linear slides are provided on both sides of the pressure head to avoid deviation during crimping and ensure accurate alignment of the probes and the GPRS module contacts. Double-color LED indicator lights are provided at each meter position, with green constant light indicating that it is ready for testing, green flashing light indicating that it is being tested, and red light indicating that it is unqualified or faulty. Each meter position of the electric energy meter detection device is also provided with a buzzer for audible and visual alarm linkage of unqualified modules.
[0045] For the internal of the electric energy meter detection device, a high-performance single-chip microcomputer (such as ARM Cortex-M series) is built-in as a local controller, and a preloaded electric energy meter communication protocol (such as DL / T645, Modbus) simulation program. The simulation program can simulate the behavior of a real electric meter (such as responding to read data, setting parameters, and other instructions), replace the traditional electric meter hardware, and directly interact with the measured GPRS module for data, verifying its protocol processing capability. An intelligent power management module is used, which can accurately control the electromagnetic valve by sending a PWM signal, and then control the timing (such as the descending speed, pressure holding time, and rising reset) and pressure of the cylinder action. The power-on process uses a soft start or slow start circuit to avoid the surge current impact of the module insertion instant.
[0046] An industrial PC is configured as a detection control server, which installs the developed test management software, and is connected with the electric energy meter detection device through a RS485 to USB adapter. A Honeywell 1900GHD scanning gun is also configured, which is connected with the detection control server through USB. The system also has a test server, which is used for the measured GPRS module to connect to the address and port of the corresponding test server according to the instruction, and establish a TCP connection to the specified test server.
[0047] Specifically, as shown in Figure 2 When implementing intelligent detection of the electric energy meter GPRS module, the detection control server can be implemented by the following steps:
[0048] Step 101: Obtain the identity information of the measured electric energy meter GPRS module, and bind the identity information with the corresponding table position number of the multi-channel electric energy meter detection device;
[0049] Step 102: Send a crimping control instruction to the multi-channel electric energy meter detection device to control the crimping mechanism of each table position to complete the power supply and physical connection of the measured electric energy meter GPRS module by the electric energy meter detection device;
[0050] Step 103: According to the pre-configuration or the operator type supported by the measured electric energy meter GPRS module, automatically generate and issue the corresponding APN configuration parameter to the electric energy meter detection device, so as to send the AT instruction set containing the APN configuration parameter to each measured electric energy meter GPRS module by the electric energy meter detection device;
[0051] Step 104: Listen to the specified port of the test server to determine the network connection state of each measured GPRS module;
[0052] Step 105: Send a performance parameter detection instruction to each measured electric energy meter GPRS module to check the software version consistency through the response of each measured electric energy meter GPRS module, and test the signal strength.
[0053] In this embodiment, instead of relying mainly on manual testing, the code scanning binding method is used to replace manual recording, the crimping instruction is used to realize automatic connection, and the automatic instruction generation and sending replace manual instruction sending, which significantly reduces the human involvement, improves the detection efficiency, reduces the human error rate caused by human factors, and improves the detection accuracy. In addition, compared with the manual test which only performs basic test and signal strength test, the present scheme also detects software version consistency, signal strength, and connection stability such as false online, realizes the detection of deep-seated faults that are easy to be missed, and further improves the detection accuracy of the GPRS module.
[0054] For step 101, the identity information of the measured electric energy meter GPRS module is obtained, and the identity information is bound to the corresponding table position number of the multi-channel electric energy meter detection device.
[0055] In this step, when binding the identity information and the table position, first, the bar code or the two-dimensional code on the measured GPRS module is scanned by the high-speed code scanning gun to obtain the unique identification code IMEI representing the identity information of the current measured GPRS module; then the obtained unique identification code IMEI is bound to the table position number currently operated by the electric energy meter detection device, and the binding relationship is stored in the database. Specifically, the operator places 16 electric energy meter GPRS modules to be tested in the corresponding table positions of the electric energy meter detection device in turn, and then the operator scans the bar code or the two-dimensional code on the module one by one using the scanning gun. The international mobile equipment identification code IMEI scanned by the detection control server software interface is displayed in real time, and it is automatically bound to the table position number and stored in the local SQLite database.
[0056] Step 102: Send a crimping control instruction to the multi-channel electric energy meter detection device to control the crimping mechanism of each table position of the electric energy meter detection device to act, complete the power supply and physical connection of the measured electric energy meter GPRS module.
[0057] In this step, when connecting the GPRS module, the crimping instruction containing the target table position number is sent to the electric energy meter detection device through the industrial bus protocol, so that the electric energy meter detection device generates a PWM control signal to drive the electromagnetic valve of the table position corresponding to the target table position number according to the crimping instruction, so that the crimping mechanism of the electric energy meter detection device crimps the electric energy meter GPRS module installed in the target table position on the interface of the electric energy meter detection device, and at the same time, the power supply loop is connected. Of course, the bus protocol can also use CAN bus, Ethernet or wireless communication method.
[0058] Specifically, the operator clicks the "start test" button on the software interface, and the detection control server sends a crimping control instruction Write_Coil(0x000, ON) to the electric energy meter detection device through the ModbusRTU protocol, that is, the crimping is started at the address 0x000. The electric energy meter detection device analyzes the instruction and sends PWM signals to the solenoid valves of the 16 meter positions in turn. The solenoid valve controls the cylinder to perform the descending action according to the preset timing and pressure. After the pressure sensor monitors that the crimping force reaches the set value and remains stable, the electric energy meter detection device confirms that the crimping mechanism is successful, the meter position is connected to the power supply loop, and the green LED of the meter position is lit. If the crimping fails at a meter position, for example, the pressure value does not reach the preset threshold, or the connection is not completed within the set time, the red LED of the meter position flashes, and the detection control server records the error. As can be seen, the entire process does not require manual intervention for the installation and connection of the GPRS module, which greatly reduces the labor cost and improves the detection efficiency.
[0059] In addition, in an embodiment, the crimping control instruction can also include encryption information or a digital signature, and the electric energy meter detection device needs to verify the legality of the instruction before performing the action to improve the operation safety.
[0060] Step 103: According to the pre-configuration or the operator type supported by the measured electric energy meter GPRS module, the corresponding APN configuration parameters are automatically generated and issued to the electric energy meter detection device, so that the electric energy meter detection device sends an AT instruction set containing the APN configuration parameters to each measured electric energy meter GPRS module.
[0061] In this step, when performing network connection and communication protocol verification, the corresponding access point name APN configuration parameters are selected and generated according to the pre-configuration or the operator type supported by the measured electric energy meter GPRS module; the APN configuration parameters, the preset test server IP address and the port number are issued to the electric energy meter detection device through the bus protocol, so that the electric energy meter detection device sends a preset AT instruction set to the corresponding meter position through its UART serial port. The measured GPRS module performs network configuration and connection.
[0062] Specifically, the detection control server automatically selects and generates corresponding access point name (APN) parameters, such as CMNET / UNINET / CTNET, according to preset rules or the type of an operator supported by the GPRS module, such as China Mobile / China Unicom / China Telecom. For example, the same China Mobile APN CMNET is configured for all GPRS modules. Then, the detection control server sends the APN (CMNET), test server IP (192.168.1.100), and port (8000) to the electric energy meter detection device through the Modbus RTU protocol and writes them into a holding register. The local controller of the electric energy meter detection device sends a series of preset AT instruction sets to the measured GPRS module corresponding to the meter position through the UART serial port, and performs network configuration and connection.
[0063] The sent instruction set can include:
[0064] {AT+CGDCONT=1,"IP","[APN]"}, which is used to configure the APN parameter, wherein [APN] is dynamically filled according to the type of the operator;
[0065] {AT+CGATT=1}, which is used to force the module to perform network attachment;
[0066] {AT+CIPSTART="TCP","[Server_IP]","[Port]"}, which is used to instruct the GPRS module to connect to a preset test server address and port.
[0067] Step 104: The specified port of the test server is listened to to determine the network connection state of each measured GPRS module.
[0068] In this step, the detection control server listens to the specified port of the preset test server in real time, such as the 192.168.1.100:8000 port, and then determines the network connection state of the measured GPRS module according to the corresponding state. Specifically, if the measured electric energy meter GPRS module completes the TCP three-way handshake with the test server within the preset first time threshold (such as 30 seconds), and returns the CONNECT OK response through the serial port, it is determined that the current measured electric energy meter GPRS module is in a true online state, that is, a successful effective connection is established, and the table position green light flashes once and then becomes constant. If the test server does not receive the connection request SYN packet or the measured electric energy meter GPRS module does not return the CONNECT OK response (may return ERROR) within the first time threshold, it is determined that the current measured electric energy meter GPRS module is in a connection timeout state. At this time, the table position red light flashes, and the detection control server records the fault code ERR_TIMEOUT. If the measured electric energy meter GPRS module returns the CONNECT OK response, that is, the server also establishes the TCP connection, but the test server does not receive the valid heartbeat packet (such as a 0xFF byte data packet of the GPRS module every 10 seconds) or data interaction message within the second time threshold (such as 60 seconds), it is determined that the current measured electric energy meter GPRS module is in a false online state. At this time, the detection control server records the fault code ERR_FAKE_ONLINE, and triggers the audible and visual alarm, and actively closes the TCP connection.
[0069] Step 105: Send performance parameter detection instructions to each measured electric energy meter GPRS module to check the software version consistency through the response of each measured electric energy meter GPRS module, and test the signal strength.
[0070] In this step, when detecting the performance of the electric energy meter GPRS module, the software version consistency can be checked in the following way:
[0071] Send a firmware version query instruction to the measured electric energy meter GPRS module;
[0072] Receive the version number string returned by the current measured electric energy meter GPRS module;
[0073] Match the returned version number string with the preset standard version library;
[0074] If the matching is successful, record the version number information; if the matching fails or there is no response, mark the software version as abnormal.
[0075] In this embodiment, the detection control server sends AT+CGMR to each GPRS module of the electric energy meter through the electric energy meter detection device after connection test. The GPRS module of the electric energy meter under test analyzes the returned string, such as "Revision:1234_AB01". The detection control server matches it with the standard version library, which can use string comparison or regular expression matching. If the matching is successful, the version number information is recorded, and if the matching fails or there is no response, ERR_VERSION is recorded, and the corresponding table position flashes red.
[0076] In step 105, when detecting the performance of the GPRS module of the electric energy meter, the signal strength can be checked in the following way:
[0077] Send AT+CSQ instruction to the GPRS module of the electric energy meter under test, and obtain the first received signal strength indication value reported by the GPRS module;
[0078] Convert the first received signal strength indication value into a second received signal strength indication value represented in dBm unit;
[0079] Compare the second received signal strength indication value with the preset strength threshold value;
[0080] If the second received signal strength indication value is not less than the preset strength threshold value, it is determined that the signal strength of the GPRS module of the electric energy meter under test is qualified; otherwise, it is determined that the signal strength of the GPRS module of the electric energy meter under test is unqualified.
[0081] In this embodiment, the detection control server sends AT+CSQ instruction to query the received signal strength of the GPRS module of the electric energy meter under test through the electric energy meter detection device. Then the GPRS module returns +CSQ: <rssi> , <ber>Response to format. Further, extract <rssi>The value is determined according to the conversion formula provided by the module manufacturer (e.g., RSSI(dBm) = ...). <rssi>*2-133), will <rssi>The value is converted into an actual signal strength value in units of bBm. Then it is determined whether the converted RSSI value is greater than or equal to a preset qualified threshold (such as ≥ 18 dBm). If it is lower than the threshold, it is determined that the signal strength is unqualified, and ERR_RSSI_LOW is recorded, and the red light flashes.
[0082] In addition, the stability of the weak signal environment can also be tested. For example, a controllable base station simulator can be introduced into the test environment of the electric energy meter detection device to generate a specific weak signal test environment. That is, a high-performance base station simulator (such as Keysight UXM) can be connected, and its radio frequency output is connected to the test area of the electric energy meter detection device through a coupler / attenuator network. Under the weak signal environment, the network connection and maintenance operations of steps 103-104 are repeatedly performed by the measured module to verify the connection success rate, drop rate, data transmission error rate, etc. of the measured GPRS module under weak signal conditions, and to evaluate its communication stability under extreme environment. For example, for the GPRS module that successfully connects, the detection control server starts a weak signal test sub-process, and controls the base station simulator to output a -95 dBm signal through SCPI instructions. The detection control server commands the electric energy meter detection device to disconnect the current connection (AT+CIPCLOSE) and then re-executes the AT+CIPSTART connection. It is observed whether it can successfully connect (online within 30 seconds) and maintain stable communication (60 seconds with heartbeat) under weak signal. Failure is recorded as ERR_WEAK_SIGNAL.
[0083] Moreover, the above-mentioned way can also screen out substandard modules sensitive to weak signals. In addition, other potential faults can also be considered for detection. For example, during the test, the SIM card state (AT+CPIN?), network registration state (AT+CREG?), network operator (AT+COPS?), etc. can also be checked through instructions to assist in diagnosing other types of faults.
[0084] In addition, after the test is completed, further including: adding CRC check or digital signature to each test result data packet, uploading the test result data packet to the manufacturing execution system MES through an encrypted transmission channel, so as to generate a unique traceability code for each measured electric energy meter GPRS module by the manufacturing execution system MES; wherein the unique traceability code stores the original test data and process information.
[0085] In this embodiment, all test result data is aggregated by the detection control server, including but not limited to: module IMEI, bound slot number, test start / end timestamp, connection status result, RSSI measurement, software version number, other AT command response result, fault code, etc. The detection control server connects through a secure network (such as HTTPS / VPN) and packages it into JSON format, for example: {"tests":[{"imei":"868575045678901","slot":1,"status":"PASS","rssi":-65,"ver":"1234_AB01",...},...]}. Then call the standard data interface of the manufacturing execution system MES (such as Web Service API, MQTT), send the test result data package (usually in JSON or XML format) to the / api / gprs_test_result interface of the MES system. The data package can be attached with CRC check or digital signature to ensure the integrity of transmission and the credibility of the source. Specific encryption algorithms such as AES, hash, etc. can be used.
[0086] The MES system receives the data package, verifies its validity, and then parses the data. The MES system stores the parsed detailed test data in association with the module's IMEI, production batch, work order number, test line, operator, etc. in the central database. The MES system generates a unique, traceable two-dimensional code or barcode (traceable code) for each module being tested (or each batch of tests). The traceable code stores all the original test data and process information in association.
[0087] For modules with unqualified test results (connection timeout, false online, abnormal software version, insufficient signal strength, weak signal test failure, etc.), the detection control server immediately sends an alarm instruction to the control board of the corresponding slot's electric energy meter detection device. The electric energy meter detection device drives the red LED indicator light of the slot to flash brightly and triggers the buzzer to emit an alarm sound. At the same time, on the human-machine interface (HMI) of the detection control server, the information (number, IMEI, fault type) of the unqualified slot will be highlighted (such as red highlight). Unqualified modules will be automatically marked and guided into the physical isolation area or specific repair queue after the test process ends, preventing them from being mixed with qualified products.
[0088] The specification also provides a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method of any one of the embodiments of the specification.
[0089] The specification also provides a computing device comprising a memory and a processor, the memory having stored thereon executable code which, when executed by the processor, implements the method of any one of the embodiments of the specification.
[0090] In summary, the intelligent detection method of the GPRS module of the electric energy meter provided by the application has at least the following beneficial effects:
[0091] (1) Greatly improving the detection efficiency: through multi-channel (N>=8) parallel test design, the traditional single-device serial mode is completely changed, the test throughput is improved by several times to several tens of times, the production cycle is significantly shortened, and the large-scale mass production demand is met.
[0092] (2) Significantly reducing the labor cost: realizing the full-process automation from module placement (scanning code binding instead of manual recording), connection (pneumatic compression instead of manual plugging), test (automated script instead of manual instruction), to result processing (automatic uploading alarm instead of manual recording), greatly reducing the dependence on skilled workers, and reducing the labor cost and human error rate.
[0093] (3) Improving the detection accuracy and coverage: APN automatic adaptation ensures correct configuration of modules of different operators. The "false online" identification algorithm effectively detects module virtual connection faults, avoiding missed detection. Signal strength quantitative evaluation combined with dynamic threshold judgment is objective and accurate. The optional weak signal environment test enhances the examination of the limit performance of the module. Software version automatic verification eliminates version errors or modules without burned programs. The automatic test process ensures the consistency and repeatability of the results.
[0094] (4) Enhancing hardware adaptability and reducing dependence: built-in protocol simulation program replaces real electric meter hardware, reduces test cost, improves tool versatility and reusability. The expandable design is easy to increase test channels.
[0095] (5) Realizing comprehensive digital traceability: test results (including raw data) are automatically associated with IMEI, timestamp and other information uploaded to the MES system, generating a unique traceability code, realizing quality data traceability in the whole production process, facilitating quality analysis, problem positioning and batch management.
[0096] (6) Improving production management efficiency: real-time sound and light alarm and interface prompt quickly locate unqualified products, automatically enter the isolation queue, facilitate repair processing, and optimize production process management. MES integration realizes seamless integration of test data and production information.
[0097] The device embodiment provided by the application is based on the same inventive concept as the method embodiment of the present specification, and the specific content can be referred to in the description of the method embodiment of the present specification, which will not be repeated here.
[0098] The modules or units in the device embodiments of the present application can be combined, divided, and deleted according to actual needs. The above disclosure is only the preferred embodiments of the present application, and of course cannot limit the scope of the rights of the present application. Those skilled in the art can understand that all or part of the processes of the above embodiments are implemented, and equivalent changes made according to the claims of the present application still belong to the scope covered by the present application.< / rssi> < / rssi> < / rssi> < / ber> < / rssi>
Claims
1. A smart detection method for a GPRS module of an electricity meter, characterized in that, The method includes: Obtain the identification information of the GPRS module of the tested energy meter, and bind the identification information with the corresponding meter position number of the multi-channel energy meter detection device; Send a crimping control command to the multi-channel energy meter testing device so that the energy meter testing device controls the crimping mechanism of each meter position to complete the power supply and physical connection of the GPRS module of the energy meter under test. Based on the pre-configured or the operator type supported by the GPRS module of the tested energy meter, the corresponding APN configuration parameters are automatically generated and sent to the energy meter testing device, so that the energy meter testing device can send an AT command set containing the APN configuration parameters to each tested energy meter GPRS module. Listen to a specified port on the test server to determine the network connection status of each GPRS module under test; The system sends performance parameter testing commands to the GPRS modules of each tested energy meter to verify the consistency of the software version and test the signal strength based on the responses of the GPRS modules of each tested energy meter.
2. The intelligent detection method for the GPRS module of an electricity meter according to claim 1, characterized in that, The step of acquiring the identification information of the GPRS module of the tested energy meter and binding the identification information with the corresponding meter position number of the multi-channel energy meter detection device includes: The unique identifier (IMEI) representing the identity information of the GPRS module under test is obtained by scanning the barcode or QR code on the GPRS module under test with a high-speed barcode scanner. The obtained unique identifier (IMEI) is bound to the meter position number currently being operated by the electricity meter detection device, and the binding relationship is stored in the database.
3. The intelligent detection method for the GPRS module of an electricity meter according to claim 1, characterized in that, Sending the crimping control command to the multi-channel energy meter detection device includes: The device sends a crimping command containing the target meter position number to the energy meter testing device via the industrial bus protocol. The energy meter testing device then generates a PWM control signal based on the crimping command to drive the solenoid valve of the meter position corresponding to the target meter position number. This causes the crimping mechanism of the energy meter testing device to crimp the GPRS module of the energy meter installed at the target meter position onto the interface of the energy meter testing device, while simultaneously connecting the power supply circuit.
4. The intelligent detection method for the GPRS module of an electricity meter according to claim 1, characterized in that, The step of automatically generating and sending corresponding APN configuration parameters to the energy meter detection device based on the pre-configured or GPRS module supported by the energy meter under test includes: Select and generate the corresponding Access Point Name (APN) configuration parameters based on the pre-configured or GPRS module supported by the tested energy meter. The APN configuration parameters, the preset test server IP address and port number are sent to the energy meter testing device via the bus protocol. The energy meter testing device then sends a preset AT command set to the GPRS module under test at the corresponding meter position through its UART serial port to perform network configuration and connection.
5. The intelligent detection method for the GPRS module of an electricity meter according to claim 4, characterized in that, The AT command set includes: {AT+CGDCONT=1,”IP”,”[APN]”} is used to configure the APN parameter, where [APN] is dynamically filled according to the carrier type; {AT+CGATT=1} is used to force the module to attach to the network; {AT+CIPSTART=”TCP”,”[Server_IP]”,”[Port]”} is used to instruct the GPRS module to connect to the preset test server address and port.
6. The intelligent detection method for the GPRS module of an electricity meter according to claim 1, characterized in that, Determining the network connection status of each tested GPRS module includes: If the GPRS module of the tested energy meter completes the TCP three-way handshake with the test server within the preset first time threshold and returns a CONNECT OK response through the serial port, then the GPRS module of the tested energy meter is determined to be in a true online state. If the test server does not receive a connection request or the GPRS module of the tested energy meter does not return a CONNECT OK response within the first time threshold, then the GPRS module of the tested energy meter is determined to be in a connection timeout state. If the GPRS module of the tested energy meter returns a CONNECT OK response, but the test server does not receive a valid heartbeat packet or data interaction message within the second time threshold, then the GPRS module of the tested energy meter is determined to be in a false online state.
7. The intelligent detection method for the GPRS module of an electricity meter according to claim 1, characterized in that, The step of sending performance parameter detection commands to the GPRS modules of each tested energy meter to verify software version consistency through the responses of the GPRS modules of each tested energy meter includes: Send a firmware version query command to the GPRS module of the tested energy meter; Receive the version number string returned by the GPRS module of the currently tested energy meter; The returned version number string is matched against the preset standard version library; If a match is successful, the version number information is recorded; if a match fails or there is no response, it is marked as an abnormal software version.
8. The intelligent detection method for the GPRS module of an electricity meter according to claim 1, characterized in that, The step of sending performance parameter detection commands to the GPRS modules of each tested energy meter to test the signal strength based on the responses of the GPRS modules of each tested energy meter includes: Send the AT+CSQ command to the GPRS module of the tested energy meter and obtain the first received signal strength indication value reported by the current GPRS module; The first received signal strength indication value is converted to dBm to obtain the second received signal strength indication value; The second received signal strength indication value is compared with a preset strength threshold; If the second received signal strength indication value is not less than the preset strength threshold, then the signal strength of the GPRS module of the current energy meter under test is determined to be qualified; otherwise, the signal strength of the GPRS module of the current energy meter under test is determined to be unqualified.
9. The intelligent detection method for the GPRS module of an electricity meter according to claim 1, characterized in that, If at least one of the test results in the network connection status, software version consistency, and signal strength test fails, an alarm command is sent to the meter position of the electricity meter detection device where the GPRS module of the current electricity meter is located, so as to light up the alarm indicator light of the meter position and trigger the buzzer to sound.
10. The intelligent detection method for the GPRS module of an electricity meter according to claim 1, characterized in that, Further steps after the test include: After adding CRC check or digital signature to each test result data packet, the test result data packet is uploaded to the Manufacturing Execution System (MES) through an encrypted transmission channel. The MES then generates a unique traceability code for each tested energy meter GPRS module. This unique traceability code stores the original test data and process information.