CN117394931A - Detection system and method for dual-mode communication module - Google Patents

Detection system and method for dual-mode communication module Download PDF

Info

Publication number
CN117394931A
CN117394931A CN202311327040.2A CN202311327040A CN117394931A CN 117394931 A CN117394931 A CN 117394931A CN 202311327040 A CN202311327040 A CN 202311327040A CN 117394931 A CN117394931 A CN 117394931A
Authority
CN
China
Prior art keywords
module
dual
unit
tested
mode communication
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.)
Pending
Application number
CN202311327040.2A
Other languages
Chinese (zh)
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.)
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
State Grid Fujian Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
State Grid Fujian Electric Power 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 State Grid Corp of China SGCC, China Electric Power Research Institute Co Ltd CEPRI, State Grid Fujian Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202311327040.2A priority Critical patent/CN117394931A/en
Publication of CN117394931A publication Critical patent/CN117394931A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/15Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/29Performance testing

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a detection system and method for a dual-mode communication module, and belongs to the technical field of communication detection. The system of the invention comprises: the device comprises a module unit to be tested, a micro control unit and a standard module unit; the module unit to be tested is used for accessing the dual-mode communication module to be tested, the micro control unit is used for issuing a test instruction to the standard module unit and outputting a detection result, and the standard module unit is used for detecting the dual-mode communication module to be tested accessed by the module unit to be tested after receiving the test instruction issued by the micro control unit and transmitting the detection result to the micro control unit. The system can perform function test on the dual-mode communication module, and overcomes the defect that the dual-mode communication module cannot detect functions in the prior art.

Description

Detection system and method for dual-mode communication module
Technical Field
The present invention relates to the field of communication detection technology, and more particularly, to a detection system and method for a dual-mode communication module.
Background
HPLC adopts OFDM technology, has the performance of big bandwidth, high rate, high reliability, has improved the transmission performance of data in comparison with traditional PLC, but HPLC also has its own shortboard: the specific communication performance is not set, and the deepened application effects of products of different manufacturers are quite different; meanwhile, equipment which is not powered by a power line cannot be accessed, and no corresponding security encryption measures exist in a communication layer, so that the national electric institute of science in 2020 releases an HPLC+HRF dual-mode standard. The dual-mode communication adopts an HPLC+HRF technology of independent intellectual property rights of a national network, which is the most critical communication technology in the field of the low-voltage power network, wherein the HRF working frequency range is 470-510MHz, and the same OFDM technology as the HPLC is adopted, so that the dual-mode communication has better anti-interference capability and communication rate.
The dual-mode communication can meet the requirements of larger bandwidth, higher speed and higher reliability of communication in the service scene of the novel power system, and lays a foundation for marketing and distribution integration, digitization and intellectualization.
The national power grid company comprehensively promotes the dual-mode communication module, promotes the construction of the automatic meter reading capability of the last kilometer, and the HPLC/HRF independent networking and mixed networking mode supported by the HPLC+HRF dual-mode module brings a new problem to the carrier and wireless communication detection of the dual-mode module, so that the existing HPLC rapid detection device can not meet the function detection of the dual-mode module.
Disclosure of Invention
In view of the above problems, the present invention proposes a detection system for a dual-mode communication module, comprising: the device comprises a module unit to be tested, a micro control unit and a standard module unit;
the module unit to be tested is used for accessing the dual-mode communication module to be tested, the micro control unit is used for issuing a test instruction to the standard module unit and outputting a detection result, and the standard module unit is used for detecting the dual-mode communication module to be tested accessed by the module unit to be tested after receiving the test instruction issued by the micro control unit and transmitting the detection result to the micro control unit.
Optionally, the dual-mode communication module to be tested includes at least one of the following: a dual-mode CCO module, a dual-mode single-phase STA module and a dual-mode three-phase STA module.
Optionally, the to-be-tested dual-mode communication module accessed by the to-be-tested module unit at least comprises 1 to be tested.
Optionally, the detection system further comprises: a power module unit, a power consumption test unit and a peripheral unit;
the power module unit is used for supplying power to the detection system, the power consumption testing unit is used for carrying out power consumption detection on the dual-mode communication module to be tested, and the peripheral equipment unit is used for network communication among the module unit to be tested, the micro control unit, the standard module unit, the power consumption testing unit and the power module unit of the detection system.
Optionally, the micro control unit includes a switch control circuit, and the micro control unit is used for sending a switch control instruction to the switch control circuit, and the switch control circuit controls the power module unit to provide power sources with different voltage levels for the dual-mode communication module to be tested, which is accessed by the module unit to be tested, according to the switch control instruction.
Optionally, the micro control unit is connected with the standard module unit through the UART, and issues a test instruction to the standard module unit through the UART, and receives the detection result.
Optionally, the micro control unit is connected with the dual-mode communication module to be tested through a UART and a GPIO, performs message interaction with the dual-mode communication module to be tested through the UART and the GPIO, and controls the state control of the dual-mode communication module to be tested through the UART and the GPIO.
Optionally, the state control includes: reset control, parameter setting, and event control.
Optionally, the micro control unit is connected with the power consumption testing unit through the GPIO, and issues a power consumption testing instruction to the power consumption testing unit through the GPIO, and receives a power consumption detection result uploaded by the power consumption testing instruction.
Optionally, the micro control unit is further configured to calculate, based on a power consumption detection result uploaded by the received power consumption test instruction, power consumption of the dual-mode communication module to be detected.
Optionally, the standard module unit is connected to a carrier channel of the dual-mode communication module to be detected, and a wireless channel of the standard module unit is led out to the connection antenna in the shielding box to perform wireless communication with the dual-mode communication module to be detected.
Optionally, the test instruction issued by the micro control unit to the standard module unit includes: carrier test instructions and wireless test instructions.
Optionally, the detecting, by the standard module unit, the dual-mode communication module to be tested accessed by the module unit to be tested includes: carrier communication detection and wireless communication detection.
Optionally, the standard module unit performs carrier communication detection, including:
after receiving a carrier test instruction issued by a micro control unit, periodically transmitting a central beacon on a carrier channel, and waiting for receiving an association request transmitted by a dual-mode communication module to be tested through the carrier channel;
after receiving the association request, judging whether the address field of the dual-mode communication module to be detected is consistent with the address of a pre-stored white list or not based on the association request, if so, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are normal, and setting wireless frequency points of the dual-mode communication module to be detected through wireless frequency point information carried by a carrier beacon;
if the association request with consistent addresses sent by the dual-mode communication module to be detected is not received after a certain time is reached, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are abnormal;
and transmitting the normal or abnormal receiving and transmitting functions to the micro control unit as a detection result.
Optionally, the standard module unit is in a silent state when periodically transmitting the central beacon on the carrier channel.
Optionally, the standard module unit performs wireless communication detection, including:
after receiving a wireless test instruction issued by the micro control unit, periodically transmitting a central beacon on a wireless channel, and waiting for receiving an association request transmitted by a dual-mode communication module to be tested through the wireless channel;
after receiving the association request, judging whether the address field of the dual-mode communication module to be detected is consistent with the address of a pre-stored white list or not based on the association request, and if so, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are normal;
if the association request with consistent addresses sent by the dual-mode communication module to be detected is not received after a certain time is reached, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are abnormal;
and transmitting the normal or abnormal receiving and transmitting functions to the micro control unit as a detection result.
Alternatively, the standard module unit periodically transmits the central beacon on the radio channel while the carrier channel is in a silent state.
Optionally, the module unit to be tested includes: a serial port driving circuit;
the serial port driving circuit is used for bidirectional transmission with the micro control unit.
Optionally, the power consumption testing unit performs power consumption detection on the dual-mode communication module to be tested, including: sampling voltage and current of the dual-mode communication module to be detected in a non-communication state, taking the sampling value of the voltage and the current of the dual-mode communication module to be detected in the non-communication state as first data, sampling the voltage and the current of the dual-mode communication module to be detected in the communication state, taking the sampling value of the voltage and the current of the dual-mode communication module to be detected in the communication state as second data, taking the first data and the second data as power consumption detection results, and transmitting the power consumption detection results to a micro control unit.
In yet another aspect, the present invention further provides a detection method using any one of the detection systems for a dual-mode communication module, including:
accessing a dual-mode communication module to be tested through a module unit to be tested;
issuing a test instruction to the standard module unit through the micro control unit;
after receiving a test instruction issued by the micro control unit through a standard module unit, detecting a to-be-tested dual-mode communication module accessed by the to-be-tested module unit, and transmitting the detection result to the micro control unit;
and outputting the detection result through the micro control unit.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a detection system for a dual-mode communication module, which comprises: the device comprises a module unit to be tested, a micro control unit and a standard module unit; the module unit to be tested is used for accessing the dual-mode communication module to be tested, the micro control unit is used for issuing a test instruction to the standard module unit and outputting a detection result, and the standard module unit is used for detecting the dual-mode communication module to be tested accessed by the module unit to be tested after receiving the test instruction issued by the micro control unit and transmitting the detection result to the micro control unit. The system can perform function test on the dual-mode communication module, and overcomes the defect that the dual-mode communication module cannot detect functions in the prior art.
Drawings
FIG. 1 is a schematic diagram of the system of the present invention;
FIG. 2 is a schematic circuit diagram of a power module unit of the present invention;
FIG. 3 is a schematic circuit diagram of a micro-control unit of the present invention;
FIG. 4 is a schematic circuit diagram of a standard modular unit of the present invention;
FIG. 5 is a schematic circuit diagram of a modular unit under test according to the present invention;
FIG. 6 is a schematic circuit diagram of a power consumption test unit of the present invention;
FIG. 7 is a schematic circuit diagram of a peripheral unit of the present invention;
fig. 8 is a test flow diagram of a dual mode STA module of the present invention;
FIG. 9 is a flow chart of the test of the dual mode CCO module of the present invention;
FIG. 10 is a schematic flow chart of the method of the present invention.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the examples described herein, which are provided to fully and completely disclose the present invention and fully convey the scope of the invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, like elements/components are referred to by like reference numerals.
Unless otherwise indicated, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. In addition, it will be understood that terms defined in commonly used dictionaries should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
Example 1:
the invention proposes a detection system for a dual-mode communication module, as shown in fig. 1, comprising: the device comprises a module unit to be tested, a micro control unit and a standard module unit;
the module unit to be tested is used for accessing the dual-mode communication module to be tested, the micro control unit is used for issuing a test instruction to the standard module unit and outputting a detection result, and the standard module unit is used for detecting the dual-mode communication module to be tested accessed by the module unit to be tested after receiving the test instruction issued by the micro control unit and transmitting the detection result to the micro control unit.
The dual-mode communication module to be tested comprises at least one of the following components: a dual-mode CCO module, a dual-mode single-phase STA module and a dual-mode three-phase STA module.
The to-be-tested dual-mode communication modules accessed by the to-be-tested module units at least comprise 1 to-be-tested dual-mode communication module.
Wherein, detecting system still includes: a power module unit, a power consumption test unit and a peripheral unit;
the power module unit is used for supplying power to the detection system, the power consumption testing unit is used for carrying out power consumption detection on the dual-mode communication module to be tested, and the peripheral equipment unit is used for network communication among the module unit to be tested, the micro control unit, the standard module unit, the power consumption testing unit and the power module unit of the detection system.
The micro control unit comprises a switch control circuit, the micro control unit is used for sending a switch control instruction to the switch control circuit, and the switch control circuit controls the power supply module unit to provide power supplies with different voltage levels for the to-be-tested dual-mode communication module accessed by the module unit to be tested according to the switch control instruction.
The micro control unit is connected with the standard module unit through the UART, and issues a test instruction to the standard module unit through the UART, and receives a detection result.
The micro control unit is connected with the dual-mode communication module to be tested through the UART and the GPIO, performs message interaction with the dual-mode communication module to be tested through the UART and the GPIO, and controls the state control of the dual-mode communication module to be tested through the UART and the GPIO.
Wherein the state control includes: reset control, parameter setting, and event control.
The micro control unit is connected with the power consumption testing unit through the GPIO, issues a power consumption testing instruction to the power consumption testing unit through the GPIO, and receives a power consumption detection result uploaded by the power consumption testing instruction.
The micro control unit is further used for calculating power consumption of the dual-mode communication module to be detected based on the power consumption detection result uploaded by the received power consumption test instruction.
The standard module unit is connected with a carrier channel of the dual-mode communication module to be detected, and a wireless channel of the standard module unit is led out to the connection antenna in the shielding box to perform wireless communication with the dual-mode communication module to be detected.
The test instruction issued by the micro control unit to the standard module unit comprises the following steps: carrier test instructions and wireless test instructions.
The detection of the standard module unit on the dual-mode communication module to be tested accessed by the module unit to be tested comprises the following steps: carrier communication detection and wireless communication detection.
The standard module unit performs carrier communication detection and comprises:
after receiving a carrier test instruction issued by a micro control unit, periodically transmitting a central beacon on a carrier channel, and waiting for receiving an association request transmitted by a dual-mode communication module to be tested through the carrier channel;
after receiving the association request, judging whether the address field of the dual-mode communication module to be detected is consistent with the address of a pre-stored white list or not based on the association request, if so, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are normal, and setting wireless frequency points of the dual-mode communication module to be detected through wireless frequency point information carried by a carrier beacon;
if the association request with consistent addresses sent by the dual-mode communication module to be detected is not received after a certain time is reached, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are abnormal;
and transmitting the normal or abnormal receiving and transmitting functions to the micro control unit as a detection result.
Wherein, the standard module unit periodically transmits the central beacon on the carrier channel, and the wireless channel is in a silent state.
Wherein, standard module unit carries out wireless communication detection, includes:
after receiving a wireless test instruction issued by the micro control unit, periodically transmitting a central beacon on a wireless channel, and waiting for receiving an association request transmitted by a dual-mode communication module to be tested through the wireless channel;
after receiving the association request, judging whether the address field of the dual-mode communication module to be detected is consistent with the address of a pre-stored white list or not based on the association request, and if so, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are normal;
if the association request with consistent addresses sent by the dual-mode communication module to be detected is not received after a certain time is reached, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are abnormal;
and transmitting the normal or abnormal receiving and transmitting functions to the micro control unit as a detection result.
Wherein, the standard module unit periodically transmits the central beacon on the wireless channel, and the carrier channel is in a silent state.
Wherein, the module unit that awaits measuring includes: a serial port driving circuit;
the serial port driving circuit is used for bidirectional transmission with the micro control unit.
The power consumption testing unit is used for detecting power consumption of the dual-mode communication module to be tested and comprises the following steps: sampling voltage and current of the dual-mode communication module to be detected in a non-communication state, taking the sampling value of the voltage and the current of the dual-mode communication module to be detected in the non-communication state as first data, sampling the voltage and the current of the dual-mode communication module to be detected in the communication state, taking the sampling value of the voltage and the current of the dual-mode communication module to be detected in the communication state as second data, taking the first data and the second data as power consumption detection results, and transmitting the power consumption detection results to a micro control unit.
The invention is further described in connection with specific examples as follows:
as shown in fig. 1, the present invention includes: the power supply module comprises a power supply module unit, a micro control unit, a standard module unit, a module unit to be tested, a power consumption testing unit and a peripheral equipment unit. The micro control unit is connected with the standard module unit, the module unit to be tested, the power consumption testing unit, the network communication unit and the serial port debugging unit through the UART, and is connected with the power supply module through the GPIO, and the standard module unit is connected with the module to be tested through the HPLC channel and the HRF channel, so that the power supply suitability test, the carrier communication capability test, the wireless communication capability test, the read chip ID test, the read module ID test, the read software version test and the direct current static and dynamic power consumption test of the module to be tested are realized.
As shown in fig. 2, the power module unit is composed of a voltage conversion circuit and a switch control circuit. Providing dc3.3v power to the micro control unit; the power supply of different voltages of the module DC11V, DC12V, DC V to be tested is realized through the weak current switch control circuit, and whether the module works normally under different voltages is detected; and the relay switch control circuit is used for controlling the coupling of the AC220V on the carrier channel between the standard module and the module to be tested, stopping the output of the AC220V after the test is finished, and ensuring the safety of the testers. The circuit impedance stabilizing network circuit is added, so that the influence of external carrier waves on a test system can be eliminated, meanwhile, a stable power line load can be provided for system test, the power supply output precision is further ensured to be better than 1%, the voltage stability under different loads (output current is 0-0.5A) is less than or equal to 1%, the test result is accurate, and the test system is stable.
As shown in FIG. 3, which is a schematic circuit diagram of the micro control unit, the main chip adopts an STM32F207ZE chip with abundant chip resources. And receiving an upper computer instruction through the network communication unit, starting a test and controlling the whole test flow, and reporting test data after the test is finished. The method comprises the steps of connecting 5 modules to be tested through a serial port, performing table address setting, chip ID and asset number reading test on the dual-mode single-phase STA module and the dual-mode three-phase STA module, performing master node address setting, table file adding, wireless frequency point setting, reading chip ID and module ID and software version reading test on the dual-mode CCO module, and simultaneously controlling state bits of resetting, setting, event and the like of the modules to be tested. The serial port is connected with the standard module, carrier waves and wireless frequency points of the standard module are set, the overtime time of the communication test of the standard module is set, and the standard module is controlled to start the carrier communication test and the wireless communication test. And the power consumption testing unit performs high-speed transmission of the sampling data in a DMA transmission mode, and calculates the sampling data. The internal flash stores parameters required by the test, and the subsequent program upgrading and restarting of the device is ensured not to influence parameter configuration.
As shown in fig. 4, a schematic circuit diagram of a standard module unit is shown. The hardware adopts a dual-mode routing module, and the power supply adopts a single DC12V power supply circuit. When the module to be tested is a dual-mode single-phase STA module and a dual-mode three-phase STA module, the standard module takes the role of a co-test dual-mode CCO module, after receiving a frequency band switching command, a central beacon is sent on a carrier channel, and then a corresponding test command is sent to perform frequency band switching operation on the module to be tested; after receiving a carrier test command, periodically sending a central beacon on a carrier channel, wherein the wireless channel is in a silent state, waiting for receiving an association request sent by the carrier channel of a module to be tested, judging whether an address field is consistent with an address in a white list of the module to be tested after receiving the association request, if so, judging that the carrier receiving and transmitting functions of the module to be tested are normal, acquiring a software version of a corresponding module through the association request, and simultaneously carrying out wireless frequency point setting on the module to be tested through carried wireless frequency point information, otherwise, judging that the carrier receiving and transmitting functions of the module to be tested are abnormal when the association request sent by the module to be tested is not received after a certain time is reached, and reporting a carrier test result to a micro control unit; after receiving the wireless communication test command, periodically sending a central beacon on the wireless channel by putting the carrier channel in a silent state, waiting for receiving an association request sent by the wireless channel of the module to be tested, judging whether an address domain is consistent with an address in a white list of the module to be tested after receiving the association request, and if so, judging that the wireless receiving and transmitting functions of the module to be tested are normal; otherwise, after a certain time is reached, the association request with consistent addresses sent by the module to be tested is not received, the wireless receiving and transmitting function of the module to be tested is judged to be abnormal, and the wireless test result is reported to the micro control unit. When the module to be tested is a dual-mode CCO module, the standard module is used as a co-testing dual-mode single-phase STA module, after receiving a carrier test command, a central beacon sent by the module to be tested is received on a carrier channel, then an association request is sent to the module to be tested, a selection confirmation frame replied by the module to be tested is waited to be received, if the selection confirmation frame is correctly received, the carrier receiving and transmitting function of the module to be tested is judged to be normal, otherwise, the selection confirmation frame replied by the module to be tested is not received after a certain time is reached, and the carrier receiving and transmitting function of the module to be tested is judged to be abnormal; after receiving the wireless test command, receiving a central beacon sent by the module to be tested on a wireless channel, then sending an association request to the module to be tested, waiting for receiving a selection confirmation frame replied by the module to be tested, judging that the wireless receiving and transmitting function of the module to be tested is normal if the selection confirmation frame is correctly received, otherwise, judging that the wireless receiving and transmitting function of the module to be tested is abnormal if the selection confirmation frame replied by the module to be tested is not received after a certain time is reached. Carrier and wireless communication testing can be completed more quickly and accurately through the configured time required by networking.
As shown in fig. 5, a schematic circuit diagram of a module unit to be tested is shown. The signal transmission device is connected with the micro control unit, a serial port driving circuit is added, signal bidirectional transmission between different levels is achieved, buffering is provided between input and output, the change of input signals is prevented from instantaneously affecting output signals, meanwhile, isolation is provided between the micro control unit and a module interface unit, and reliability and stability of signal transmission are guaranteed. The module interface unit comprises 5 paths of independent serial channels which are respectively communicated with the module to be tested, and address setting is carried out on the module to be tested according to different serial ports.
As shown in fig. 6, a schematic circuit diagram of the power consumption test unit is shown. The power consumption test is divided into a direct current static power consumption test and a direct current dynamic power consumption test. And the direct current static power consumption test is to detect the instant power consumption through voltage sampling and current sampling in a non-communication state after the module to be tested is electrified for 15 minutes. The direct current dynamic power consumption test is that the module to be tested is in a communication state after being electrified for 15 minutes, and N groups of values of the homeotropic voltage Ui and the instantaneous current Ii are sampled at equal intervals at a certain sampling frequency in a certain time. The instantaneous power consumption is obtained by multiplying the voltage acquisition value by the current acquisition value. And a current limiting circuit is added to protect the power consumption sampling circuit and the module to be tested.
As shown in fig. 7, a schematic circuit diagram of a peripheral unit includes a network communication unit and a serial port debug unit. The network communication unit is connected with the micro-control unit, transmits the instruction of the upper computer, and uploads the test data to the upper computer to complete the software interaction of the upper computer and support the remote control. The network communication unit uses an I LAN8710A chip and an active crystal oscillator circuit to provide a PHY chip 50MHz clock. The serial port debugging unit adopts a CH340G chip as a virtual serial port to be connected with the micro control unit and is used for running log printing and debugging.
As shown in fig. 8-9, the operation flow chart of the dual-mode communication module rapid detection device is also a rapid detection method for the dual-mode communication module. As shown in fig. 8, a flow chart of a dual-mode single-phase STA module or a dual-mode three-phase STA module as a module to be tested includes the following steps:
s1, a micro control unit receives a test starting command and starts a test;
s2, the micro control unit sends a control signal to enable the power module unit to provide 12V power for the module to be tested, and the serial port drives a reset pin of the chip control module to reset and restart the module to be tested; meanwhile, the control standard module is used as a dual-mode CCO module and is in a silent state, so that the control standard module stops sending messages such as a central beacon and the like on a carrier wave and a wireless channel;
s3, the micro control unit waits for receiving an application address message sent by the module to be tested in the serial port channel, and sets a corresponding table address according to the serial port serial number. If the application address message sent by the module is received, the module power supply suitability test is considered to be qualified; otherwise, the module power suitability test is considered to be failed, the subsequent test is directly skipped, and the test result is reported to the upper computer.
S4, after the module to be tested applies to the table address, the micro control unit controls the power consumption sampling unit to perform static power consumption test on the module to be tested;
s5, the micro control unit sends 645 messages for reading the chip ID to the module to be tested through the serial port, receives the reply messages of the module to be tested, and analyzes the chip ID information;
s6, the micro control unit sends 645 messages for reading the module ID to the module to be tested through the serial port, receives reply messages of the module to be tested, and analyzes the module ID information;
s7, the micro control unit sends a command for starting carrier communication test to the standard module, so that the standard module periodically sends a central beacon on a carrier channel and waits for an association request of the module to be tested; meanwhile, the micro control unit controls the power consumption sampling unit to sample voltage and current during the carrier communication test of the module to be tested;
and S8, after receiving the association request, the standard module judges whether the address domain is consistent with the address in the white list of the standard module, if so, the carrier receiving and transmitting function of the module to be tested is normal, the software version of the corresponding module is acquired from the site management information of the association request, meanwhile, the wireless frequency point setting of the module to be tested is completed, otherwise, after a certain time is reached, the association request with the consistent address sent by the module to be tested is not received, the carrier receiving and transmitting function of the module to be tested is judged to be abnormal, and the carrier test result is reported to the micro control unit. Meanwhile, the standard module stops the message receiving and transmitting function on the carrier channel;
s9, after receiving the carrier test result reported by the standard module, the micro control unit stops the dynamic power consumption test, and calculates the sampled voltage and current set to obtain dynamic power consumption data;
s10, the micro control unit sends a command for starting wireless communication test to the standard module, so that the standard module periodically sends a central beacon on a wireless channel, the module to be tested is re-networked, and the standard module waits for an association request sent by the module to be tested on the wireless channel; after receiving the association request, judging whether the address domain is consistent with the address in the white list of the module to be tested, and if so, judging that the wireless receiving and transmitting functions of the module to be tested are normal; otherwise, after a certain time is reached, the association request with consistent addresses sent by the module to be tested is not received, the wireless receiving and transmitting function of the module to be tested is judged to be abnormal, and the wireless test result is reported to the micro control unit. Meanwhile, the standard module stops the message receiving and transmitting function on the wireless channel.
And S11, reporting the power adaptability, static power consumption, dynamic power consumption, chip ID, module ID, software version, carrier communication test and wireless communication test results of the module to be tested to the upper computer by the micro control unit. And controlling the power module unit to stop supplying power to the module to be tested.
As shown in fig. 9, the flow chart of the dual-mode CCO module as a module to be tested includes the following steps:
s1, a micro control unit receives a test starting command and starts a test;
s2, the micro control unit sends a control signal to enable the power module unit to provide 12V power for the module to be tested, and the serial port drives a reset pin of the chip control module to reset and restart the module to be tested; meanwhile, the control standard module is used as a dual-mode STA module and is in a silent state, so that the dual-mode STA module stops transmitting and receiving messages on a carrier wave and a wireless channel;
s3, the micro control unit controls the power consumption sampling unit to perform static power consumption test on the module to be tested;
s4, the micro control unit waits for receiving a report local communication module operation message sent by the module to be tested in the serial port channel. If a report local communication module operation message sent by the module is received, the module power supply suitability test is considered to be qualified; otherwise, the module power suitability test is considered to be failed, the subsequent test is directly skipped, and the test result is reported to the upper computer.
After receiving the operation message of the reported local communication module, the micro control unit sends a 1376.2 message for setting a master node address, adding slave node information and setting a radio frequency band to the module to be tested;
s5, the micro control unit sends a 1376.2 message for reading the chip ID to the module to be tested through the serial port, receives a reply message of the module to be tested, and analyzes the chip ID information;
s6, the micro control unit sends a 1376.2 message for reading the module ID to the module to be tested through the serial port, receives a reply message of the module to be tested, and analyzes the module ID information;
s7, the micro control unit sends a 1376.2 message for reading the software version to the module to be tested through the serial port, receives a reply message of the module to be tested, and analyzes the software version;
s8, the micro control unit sends a command for starting carrier communication test to the standard module, the standard module starts to receive a central beacon sent by the module to be tested on a carrier channel, the MAC address of a sending beacon site in the central beacon is compared with the MAC address stored by the micro control unit, if the MAC address is consistent with the MAC address, a corresponding association request is sent, the module to be tested waits for replying to a selection confirmation frame, and the corresponding selection confirmation frame is received, so that the carrier receiving and transmitting functions of the module to be tested are judged to be normal; otherwise, after a certain time, the central beacon or the returned selection confirmation frame sent by the module to be tested is not received, the abnormal function of the carrier wave receiving and transmitting of the module to be tested is judged, and the carrier wave test result is reported to the micro control unit.
S9, the micro control unit sends a command for starting wireless communication test to the standard module, the standard module starts to receive a central beacon sent by the module to be tested on a wireless channel, the MAC address of a sending beacon site in the central beacon is compared with the MAC address stored by the micro control unit, if the MAC address is consistent with the MAC address, a corresponding association request is sent, the module to be tested waits for replying to a selection confirmation frame, and the wireless receiving and transmitting function of the module to be tested is judged to be normal after receiving the corresponding selection confirmation frame; otherwise, after a certain time is reached, the central beacon or the returned selection confirmation frame sent by the module to be tested is not received, the wireless receiving and transmitting function of the module to be tested is judged to be abnormal, and the wireless test result is reported to the micro control unit.
And S10, reporting the power adaptability, static power consumption, dynamic power consumption, chip ID, module ID, software version, carrier communication test and wireless communication test results of the module to be tested to the upper computer by the micro control unit. And controlling the power module unit to stop supplying power to the module to be tested.
The invention realizes the support of multi-module parallel test through a plurality of serial port drivers in the module unit to be tested; the control standard module is used for sending a message on an HPLC/HRF single channel, and carrier and wireless communication tests are accurately carried out on the module to be tested; the method for judging the association request sent by the module to be tested through the standard module omits the complicated processes of carrier and wireless networking, and greatly improves the detection efficiency.
Example 2:
the present invention also proposes a detection method using any one of the detection systems for a dual-mode communication module as described above, as shown in fig. 10, including:
step 1, accessing a dual-mode communication module to be tested through a module unit to be tested;
step 2, issuing a test instruction to the standard module unit through the micro control unit;
step 3, detecting a to-be-tested dual-mode communication module accessed by the to-be-tested module unit after receiving a test instruction issued by the micro control unit through a standard module unit, and transmitting the detection result to the micro control unit;
and step 4, outputting the detection result through the micro control unit.
The system can perform function test on the dual-mode communication module, and overcomes the defect that the dual-mode communication module cannot detect functions in the prior art.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The scheme in the embodiment of the invention can be realized by adopting various computer languages, such as object-oriented programming language Java, an transliteration script language JavaScript and the like.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (20)

1. A detection system for a dual-mode communication module, the detection system comprising: the device comprises a module unit to be tested, a micro control unit and a standard module unit;
the module unit to be tested is used for accessing the dual-mode communication module to be tested, the micro control unit is used for issuing a test instruction to the standard module unit and outputting a detection result, and the standard module unit is used for detecting the dual-mode communication module to be tested accessed by the module unit to be tested after receiving the test instruction issued by the micro control unit and transmitting the detection result to the micro control unit.
2. The detection system of claim 1, wherein the dual-mode communication module to be tested comprises at least one of: a dual-mode CCO module, a dual-mode single-phase STA module and a dual-mode three-phase STA module.
3. The test system of claim 1, wherein the dual-mode communication module to be tested to which the module to be tested unit is connected includes at least 1.
4. The detection system of claim 1, wherein the detection system further comprises: a power module unit, a power consumption test unit and a peripheral unit;
the power module unit is used for supplying power to the detection system, the power consumption testing unit is used for carrying out power consumption detection on the dual-mode communication module to be tested, and the peripheral equipment unit is used for network communication among the module unit to be tested, the micro control unit, the standard module unit, the power consumption testing unit and the power module unit of the detection system.
5. The detection system according to claim 1, wherein the micro control unit comprises a switch control circuit, the micro control unit is configured to send a switch control instruction to the switch control circuit, and the switch control circuit controls the power supply module unit to provide power supplies with different voltage levels for the dual-mode communication module to be tested, which is accessed by the module unit to be tested, according to the switch control instruction.
6. The system according to claim 1, wherein the micro control unit is connected to the standard module unit through a UART, issues a test instruction to the standard module unit through the UART, and receives the test result.
7. The detecting system according to claim 1, wherein the micro control unit is connected to the dual-mode communication module to be tested through a UART and a GPIO, performs message interaction with the dual-mode communication module to be tested through the UART and the GPIO, and controls the state control of the dual-mode communication module to be tested through the UART and the GPIO.
8. The detection system of claim 7, wherein the state control comprises: reset control, parameter setting, and event control.
9. The detection system according to claim 1, wherein the micro control unit is connected to the power consumption test unit through a GPIO, issues a power consumption test instruction to the power consumption test unit through the GPIO, and receives a power consumption detection result uploaded by the power consumption test instruction.
10. The detection system according to claim 1, wherein the micro control unit is further configured to calculate power consumption of the dual-mode communication module to be detected based on a power consumption detection result uploaded by the received power consumption test instruction.
11. The system of claim 1, wherein the standard module unit is connected to a carrier channel of a dual-mode communication module to be detected, and wherein the wireless channel of the standard module unit is directed out to a shielded box-connected antenna for wireless communication with the dual-mode communication module to be detected.
12. The test system of claim 1, wherein the test instructions issued by the micro-control unit to the standard modular unit comprise: carrier test instructions and wireless test instructions.
13. The detection system according to claim 1, wherein the detection by the standard module unit of the dual-mode communication module to be tested to which the module unit to be tested is connected includes: carrier communication detection and wireless communication detection.
14. The detection system of claim 13, wherein the standard module unit performs carrier communication detection, comprising:
after receiving a carrier test instruction issued by a micro control unit, periodically transmitting a central beacon on a carrier channel, and waiting for receiving an association request transmitted by a dual-mode communication module to be tested through the carrier channel;
after receiving the association request, judging whether the address field of the dual-mode communication module to be detected is consistent with the address of a pre-stored white list or not based on the association request, if so, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are normal, and setting wireless frequency points of the dual-mode communication module to be detected through wireless frequency point information carried by a carrier beacon;
if the association request with consistent addresses sent by the dual-mode communication module to be detected is not received after a certain time is reached, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are abnormal;
and transmitting the normal or abnormal receiving and transmitting functions to the micro control unit as a detection result.
15. The detection system of claim 14, wherein the standard module unit is in a silent state when periodically transmitting a central beacon on a carrier channel.
16. The detection system of claim 13, wherein the standard modular unit performs wireless communication detection, comprising:
after receiving a wireless test instruction issued by the micro control unit, periodically transmitting a central beacon on a wireless channel, and waiting for receiving an association request transmitted by a dual-mode communication module to be tested through the wireless channel;
after receiving the association request, judging whether the address field of the dual-mode communication module to be detected is consistent with the address of a pre-stored white list or not based on the association request, and if so, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are normal;
if the association request with consistent addresses sent by the dual-mode communication module to be detected is not received after a certain time is reached, judging that the carrier receiving and transmitting functions of the dual-mode communication module to be detected are abnormal;
and transmitting the normal or abnormal receiving and transmitting functions to the micro control unit as a detection result.
17. The detection system of claim 16, wherein the standard module unit is in a silent state when periodically transmitting a central beacon on the wireless channel.
18. The test system of claim 1, wherein the modular unit under test comprises: a serial port driving circuit;
the serial port driving circuit is used for bidirectional transmission with the micro control unit.
19. The system according to claim 4, wherein the power consumption testing unit performs power consumption detection on the dual-mode communication module to be tested, and includes: sampling voltage and current of the dual-mode communication module to be detected in a non-communication state, taking the sampling value of the voltage and the current of the dual-mode communication module to be detected in the non-communication state as first data, sampling the voltage and the current of the dual-mode communication module to be detected in the communication state, taking the sampling value of the voltage and the current of the dual-mode communication module to be detected in the communication state as second data, taking the first data and the second data as power consumption detection results, and transmitting the power consumption detection results to a micro control unit.
20. A detection method using a detection system for a dual-mode communication module according to any of claims 1-19, characterized in that the detection method comprises:
accessing a dual-mode communication module to be tested through a module unit to be tested;
issuing a test instruction to the standard module unit through the micro control unit;
after receiving a test instruction issued by the micro control unit through a standard module unit, detecting a to-be-tested dual-mode communication module accessed by the to-be-tested module unit, and transmitting the detection result to the micro control unit;
and outputting the detection result through the micro control unit.
CN202311327040.2A 2023-10-13 2023-10-13 Detection system and method for dual-mode communication module Pending CN117394931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311327040.2A CN117394931A (en) 2023-10-13 2023-10-13 Detection system and method for dual-mode communication module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311327040.2A CN117394931A (en) 2023-10-13 2023-10-13 Detection system and method for dual-mode communication module

Publications (1)

Publication Number Publication Date
CN117394931A true CN117394931A (en) 2024-01-12

Family

ID=89438417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311327040.2A Pending CN117394931A (en) 2023-10-13 2023-10-13 Detection system and method for dual-mode communication module

Country Status (1)

Country Link
CN (1) CN117394931A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117895973A (en) * 2024-03-15 2024-04-16 北京智芯微电子科技有限公司 Test method and system of multimode communication module, concurrency test equipment and chip

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117895973A (en) * 2024-03-15 2024-04-16 北京智芯微电子科技有限公司 Test method and system of multimode communication module, concurrency test equipment and chip
CN117895973B (en) * 2024-03-15 2024-05-24 北京智芯微电子科技有限公司 Test method and system of multimode communication module, concurrency test equipment and chip

Similar Documents

Publication Publication Date Title
CN106056896B (en) Intelligent electric power utilization system and its test method based on low voltage power line carrier
CN112929236B (en) Broadband micropower wireless protocol interoperability test system for electricity consumption information acquisition system
CN117394931A (en) Detection system and method for dual-mode communication module
CN110492907B (en) Method and device for establishing archive for ammeter
CN106714200B (en) Test system and test method of wireless network equipment
CN103516448B (en) Collection terminal communication interface load capacity test system
CN105306156A (en) Remote sensing satellite data transmission product automatic testing system and method
CN104965147A (en) Low-voltage-user electric energy meter series detection system and detection method
CN105610522A (en) Detection system and method for universal Beidou radio frequency module
CN103513223B (en) A kind of electric energy meter communication interface load capacity test system
CN102868464B (en) Consistency testing system and method of communication terminals
CN103957067A (en) Automatic testing device and system of demodulator
CN102593955B (en) Comprehensive intelligent time frequency testing system and testing method
EP4191905A1 (en) Test method and device
CN102448098A (en) Physical layer test system and method based on ARM (advanced RISC (reduced instruction set computer) machine) and DSP (digital signal processing) multi-core structure
CN114268556B (en) Broadband micropower MAC layer consistency test system in electricity consumption information acquisition system
CN111505593B (en) Frequency synthesis comprehensive test system and test method
CN105405281A (en) Detection method for carrier communication failures of smart electric meter
CN109613467B (en) Test equipment and test method for realizing multi-meter test of simulation site
CN102201877B (en) Method and apparatus for testing air interface of TTCN (Testing and Test Control Notation)-3-based digital interphone
CN103759760B (en) The method and apparatus of test
CN103746736A (en) Integrated test system for 14 channel optical fiber data transmission TR equipment
CN207910788U (en) A kind of less radio-frequency automatic test production system
CN108200545B (en) WLAN signaling test system and test method
CN103580761A (en) Testing method and device of communication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication