WO2016074383A1 - Method and device for detecting fault in terminal - Google Patents

Method and device for detecting fault in terminal Download PDF

Info

Publication number
WO2016074383A1
WO2016074383A1 PCT/CN2015/073809 CN2015073809W WO2016074383A1 WO 2016074383 A1 WO2016074383 A1 WO 2016074383A1 CN 2015073809 W CN2015073809 W CN 2015073809W WO 2016074383 A1 WO2016074383 A1 WO 2016074383A1
Authority
WO
WIPO (PCT)
Prior art keywords
voice
terminal
port
lan
board
Prior art date
Application number
PCT/CN2015/073809
Other languages
French (fr)
Chinese (zh)
Inventor
郭红燕
支新军
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016074383A1 publication Critical patent/WO2016074383A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the present invention relates to the field of communications, and in particular to a fault detection method and apparatus for a terminal.
  • the terminal products are generally simply tested for flow testing.
  • the temperature of the board will gradually increase.
  • the problem of soldering of the hardware circuit may be exposed.
  • this is basically a commercial link, which may increase the repair rate of the board. It is best to eliminate this situation on the production line.
  • the dynamic high-temperature tooling proposed in the prior art if the test fails, requires manual configuration inspection parameters on the production line to continue the high-temperature tooling inspection, which not only increases the production process, but also is prone to errors.
  • the dynamic high temperature tooling lacks the indication of the voice lamp, and the working state of the POTS port cannot be known during the test.
  • an embodiment of the present invention provides a method and an apparatus for detecting a fault of a terminal.
  • a method for detecting a fault of a terminal includes: when the terminal performs high temperature tooling, the terminal detects whether a LAN port of the terminal is inserted into a loop line; When the LAN port is inserted into the loop, the terminal performs fault detection on the board in the terminal.
  • the method further includes: the terminal sending a loop report message to all the LAN ports of the terminal; and determining, by the terminal, the terminal according to the loop report text. Whether the LAN port is inserted into the self-loop line, and when the terminal receives the loopback loopback, the port corresponding to the loop report is determined to be inserted into the loopback.
  • the fault detection of the board in the terminal includes: detecting at least one of the following services on the board: data service, voice service, and WLAN service of the wireless local area network.
  • the voice service of the board When the voice service of the board is detected, it is determined whether there is voice stream transmission between the first voice port and the second voice port, where the first voice port and the second voice port are both used for processing. The voice service; if yes, placing the first voice light corresponding to the first voice port and the second voice lamp corresponding to the second voice port in a first state.
  • the method After processing the first voice light and/or the second voice light, the method further includes: recording a log.
  • the method further includes: determining whether a value corresponding to the dynamic high temperature mode of the terminal is set; if not, the value corresponding to the dynamic high temperature mode is a universal area code
  • the board on the terminal is fault-detected when the loop-side line is inserted in the LAN-side port.
  • a fault detecting apparatus for a terminal, which is applied to a terminal, the apparatus comprising: a detecting module configured to detect whether a LAN port of the terminal is a LAN when the terminal performs high temperature tooling
  • the fault detection module is configured to perform fault detection on the board in the terminal when the self-loop line is inserted into the LAN port.
  • the device further includes: a sending module, configured to send a ring report to all LAN ports of the terminal; the first determining module is configured to determine, according to the ring report, whether the LAN port of the terminal is plugged in The self-loop, wherein, when the terminal receives the loopback loopback, the port corresponding to the loop report is determined to be inserted into the loopback.
  • a sending module configured to send a ring report to all LAN ports of the terminal
  • the first determining module is configured to determine, according to the ring report, whether the LAN port of the terminal is plugged in The self-loop, wherein, when the terminal receives the loopback loopback, the port corresponding to the loop report is determined to be inserted into the loopback.
  • the second judging module is configured to determine, when the voice service of the board is detected, whether there is voice stream transmission between the first voice port and the second voice port, where the first voice port and the first
  • the second voice port is configured to process the voice service
  • the processing module is configured to set the first voice corresponding to the first voice port when there is voice transmission between the first voice port and the second voice port.
  • the lamp and the second voice lamp corresponding to the second voice port are placed in the first state.
  • the technical solution for detecting the fault of the terminal by the terminal after determining that the LAN port is inserted into the self-loop line is solved, and in the related art, in the dynamic high-temperature tooling, the detection parameter must be manually configured to continue the high-temperature detection. It increases the production process, error-prone problems, and improves the speed and accuracy of terminal fault detection.
  • FIG. 1 is a flowchart of a method for detecting a fault of a terminal according to an embodiment of the present invention
  • FIG. 3 is an overall flow chart of a high temperature tooling in accordance with a preferred embodiment of the present invention.
  • FIG. 4 is a flow chart of POTS port detection according to a preferred embodiment of the present invention.
  • Figure 5 is a schematic diagram of data flow direction in accordance with a preferred embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a fault processing apparatus of a terminal according to an embodiment of the present invention.
  • FIG. 7 is still another structural block diagram of a fault processing apparatus of a terminal according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for detecting a fault of a terminal according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 when the terminal performs high-temperature tooling, the terminal detects whether the local area network LAN port of the terminal is inserted into the self-loop line;
  • Step S104 When detecting that the LAN port is inserted into the loopback line, the terminal performs fault detection on the board in the terminal.
  • the terminal adopts a technical solution for detecting the fault of the terminal after the LAN port is inserted into the self-loop, and solves the problem that the detection parameters must be manually configured to continue the high-temperature detection in the dynamic high-temperature tooling in the related art. Increase the production process, error-prone problems, eliminate hardware soldering, LED lamp damage and ensure normal data and voice traffic flow in the production process, improve production efficiency and quality.
  • the terminal sends a ring report message to all LAN ports of the terminal; the terminal determines the foregoing according to the ring report text.
  • the above-mentioned self-loop line is inserted into the LAN port of the terminal.
  • the terminal receives the loopback loopback, the terminal determines that the port corresponding to the loopback message is inserted into the loopback.
  • At least one of the following services on the board is detected: a data service, a voice service, and a WLAN service of a wireless local area network.
  • the embodiment of the present invention improves the process of the voice service, and when detecting the voice service of the board, determining whether there is voice stream transmission between the first voice port and the second voice port, where the first The voice port and the second voice port are used to process the voice service; if yes, the first voice lamp corresponding to the first voice port and the second voice lamp corresponding to the second voice port are placed in the first state,
  • the first state may be a blinking first voice light and a second voice light, or a state in which the first voice light and the second voice light are always kept on.
  • first voice light and the second voice light are also in a state of being extinguished, that is, a second state different from the first state, and the following two situations exist:
  • the event may also be recorded on the event that the first voice light and the second voice light are off or blinking.
  • the terminal performs the following process: determining whether the value corresponding to the dynamic high temperature mode of the terminal is set; if not, When the value corresponding to the dynamic high temperature mode is a general area code, it is judged that the specified file is If there is a specified file, the board on the terminal is fault detected when the loop is inserted into the LAN port.
  • the main idea of the preferred embodiment of the present invention is that if the self-loop line is inserted on the LAN side, and the board does not complete the high-temperature tooling, the board automatically performs intelligent detection, and the embodiment of the present invention also improves the ordinary old telephone industry (Plain Old Telephone).
  • the service referred to as the POTS) port detection process, can indicate the voice light according to the different states of the POTS port during the detection process.
  • FIG. 2 is a flow chart of self-loop detection according to a preferred embodiment of the present invention. As shown in FIG. 2, the self-loop intelligent detection process is described as follows:
  • step S200 during the power-on of the device, the management module determines whether the dynamic high-temperature mode 2193 has been set, if yes, then proceeds to step S202, and if not, proceeds to step S204;
  • Step S202 if it is set (0 or 1), the self-loop detection module is not notified to perform single-port tooling loop detection;
  • Step S204 determine whether it is a universal area code, if yes, go to step S206, if no, go to step S208;
  • Step S206 if it is not a general area code, it is not necessary to perform tooling, and the process ends;
  • Step S208 if it is a general area code, then determine whether the /userconfig/highlow_cfg file exists, if yes, go to step S210, if not, go to step S206;
  • Step S210 Send a message to the self-loop check module, and notify it to start port self-loopback detection. If it does not exist, the self-test is not notified, and the kernel state self-loop detection module sends a special test port to report the loopback after receiving the notification. , sent to all ports;
  • Step S212 it is determined whether a loop report of a certain LAN is received, if yes, then go to step S214, if no, go to step S216;
  • Step S214 if a port has a loopback loopback, it is considered that the tooling line is plugged in, and it is judged that the tooling line is inserted, and the user management module is notified that the dynamic temperature test can be performed, and the self-loop detection is stopped by itself;
  • Step S216 if the self-loop line is not inserted, wait for a timer of 30 seconds and then perform a round of detection of the self-loop line, and repeat;
  • step S220 the management module sets the tooling mode to 1, and performs the process of restarting the device without restarting the board.
  • FIG. 3 is an overall flow chart of a high temperature tooling according to a preferred embodiment of the present invention. As shown in FIG. 3, the overall process of the high temperature tooling is as follows:
  • the management module sends a start command to the data module, the voice module and the wireless module to start the high temperature tooling test;
  • the non-stop LAN port starts to self-receive; the voice module sends a DTMF code stream between the two POTS ports after the start command is received; the wireless module also starts to detect the presence or absence of calibration parameters. , detecting chip and interrupt number changes, detecting beacon parameter changes, scanning surrounding APs, etc.
  • the management module sends a stop command to the data module, the voice module and the wireless module to stop the high temperature tooling test, and the test duration of 5 minutes ends;
  • the voice service performs the analog call protocol process, and the WALN module detects the Beacon frame. Therefore, the data service, the voice service, and the WLAN service are automatically tested for the batch terminal products in a high temperature environment.
  • the LAN port is tested, and the LAN port is self-looped.
  • the packet is sent by sending a packet with a special mac address to send and receive packets.
  • the packet is sent every 2 seconds.
  • the number of packets is estimated to be 10. Packets are counted at the same time. If the statistics of the packets sent and received are not equal, it is considered that the detection fails for 2 seconds. Failure of three consecutive tests indicates that the test failed within five minutes. It is considered that the high temperature dynamic aging LAN port test fails.
  • the two POTS ports are ringed, the POTS ports are alternately transmitted, and the serial number is received to perform number matching.
  • FIG. 4 is a flow chart of POTS port detection according to a preferred embodiment of the present invention. As shown in FIG. 4, the POTS port test module mainly performs the following actions:
  • test intermediate voice 1 port and 2 port respectively detect whether there is a received DTMF code stream, if any, flash corresponding voice port light;
  • the detection result can be visually displayed, and the detection result can be seen at a glance.
  • the first five-minute aging process it is only to verify whether all the LED lamps are damaged. If there is no damage, all the lights on the board are lit. It saves the process that the factory originally needs to test all the lamps of the board. After the first five minutes, the board automatically restarts and enters the second five-minute aging process.
  • the network E lights flash continuously during the detection process, prompting the workers to undergo the high temperature aging process. . If the network E light is always on after the test is finished, the light signal is off, indicating that the aging process is over and the test result is normal. If the light signal is always on (red) during the test, the worker is warned of the high temperature aging process and the test fails.
  • the log information can help the manufacturer to locate the cause of the detection failure.
  • the data detection can indicate how many packets are lost and how many wrong packets are sent and received by a specific LAN port.
  • the voice detection will prompt the sending.
  • the number and the received number are respectively determined, it can be determined that the number is completely unavailable or only part of the number can be received;
  • the wireless detection can prompt whether the Beacon frame can be scanned normally; flexible parameter setting, control test duration, test item And the test threshold; the manufacturer can flexibly control the test items, the test duration, the test threshold, and the port of the LAN port, and can customize the test parameters according to actual needs to improve the production efficiency;
  • the reliability of the test can better intercept the problem board and reduce the repair rate of the board. Save costs and improve product quality.
  • the data flow diagram during the test of the data service, the voice service, and the WLAN service is as shown in FIG. 5.
  • a fault processing device for a terminal is also provided, which is applied to the terminal, and the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 6 is a structural block diagram of a fault processing apparatus of a terminal according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes:
  • the detecting module 60 is configured to detect whether the local area network LAN port of the terminal is plugged into the self-loop line when the terminal performs high temperature tooling;
  • the fault detection module 62 is connected to the detection module 60 and configured to perform fault detection on the board in the terminal when the LAN port is detected to be inserted into the loop.
  • the technical solution for detecting the fault of the terminal by the terminal after determining the LAN port is inserted into the self-loop, and solving the related technology, in the dynamic high-temperature tooling, the detection parameter must be manually configured to continue the high-temperature detection.
  • the production process is increased, the error-prone problem is realized, and the production is realized.
  • FIG. 7 is still another structural block diagram of a fault processing apparatus for a terminal according to an embodiment of the present invention. As shown in FIG. 7, the apparatus further includes:
  • the sending module 64 is configured to send a ring report message to all the LAN ports of the terminal; the first determining module 66 is connected to the sending module 64, and is configured to determine whether the LAN port of the terminal is plugged in according to the ring report text. a ring line, wherein when the terminal receives the loopback loopback, the port corresponding to the loopback text is determined to be inserted into the loopback.
  • the foregoing apparatus further includes: a second determining module 68, configured to determine whether there is voice stream transmission between the first voice port and the second voice port when detecting the voice service of the board, where The first voice port and the second voice port are used to process the voice service.
  • the processing module 70 is connected to the second determining module 68, and is configured to have voice transmission between the first voice port and the second voice port. And the first voice lamp corresponding to the first voice port and the second voice lamp corresponding to the second voice port are placed in the first state.
  • the embodiments of the present invention achieve the following technical effects: facilitating the promotion of the factory: no increase in the process; burning the version into the high temperature room, the board will automatically enter the dynamic high temperature aging process; if the test fails, If you do not remove the self-loop cable of the LAN port, you can perform dynamic high-temperature tooling again.
  • the networking environment is simple. The board only needs to be plugged into the power supply and LAN port self-loop, and the voice port can be self-loop.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, thereby Storing them in a storage device is performed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that herein, or separately fabricated into individual integrated circuit modules, or Multiple of these modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
  • the method and device for detecting faults of a terminal provided by the embodiments of the present invention have the following beneficial effects: the related art has the problem that the detection parameters must be manually configured to continue the high temperature detection in the dynamic high temperature tooling. Production links, error-prone problems, improve the speed and accuracy of terminal fault detection.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

A method and a device for detecting a fault in a terminal are provided. The method comprises: when a terminal is performing high-temperature processes, the terminal detects whether a loopback cable is plugged into a local area network (LAN) port of the terminal; upon detecting that a loopback cable is plugged into a LAN port, the terminal performs fault detection on the circuit board in the terminal. The described technical solution solves the problem in the related art wherein during dynamic high-temperature processes, testing parameters must be set manually in order to continue high-temperature testing, which leads to additional production steps and susceptibility to error. The invention increases the speed and accuracy of fault detection in a terminal.

Description

终端的故障检测方法及装置Terminal fault detection method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种终端的故障检测方法及装置。The present invention relates to the field of communications, and in particular to a fault detection method and apparatus for a terminal.
背景技术Background technique
终端产品在生产环节,一般仅仅只是简单进行流量测试的检测。但单板在使用过程中,会逐渐提升的单板温度,达到一定温度时,有可能会暴露出硬件电路虚焊等问题。但此时已经基本上属于商用环节,这样可能会提高单板的返修率,最好应该在生产线上就杜绝这种情形。现有技术中提出的动态高温工装,如果测试失败需要生产线上手工配置检查参数才能继续进行高温工装检测,不仅增加了生产的环节,还容易出错。而且动态高温工装本缺少语音灯的指示,在测试过程中无法了解POTS口的工作状态。In the production process, the terminal products are generally simply tested for flow testing. However, during the use of the board, the temperature of the board will gradually increase. When the temperature reaches a certain temperature, the problem of soldering of the hardware circuit may be exposed. However, this is basically a commercial link, which may increase the repair rate of the board. It is best to eliminate this situation on the production line. The dynamic high-temperature tooling proposed in the prior art, if the test fails, requires manual configuration inspection parameters on the production line to continue the high-temperature tooling inspection, which not only increases the production process, but also is prone to errors. Moreover, the dynamic high temperature tooling lacks the indication of the voice lamp, and the working state of the POTS port cannot be known during the test.
针对相关技术中,在动态高温工装时,必须手动配置检测参数才能继续高温检测进而导致的增加了生产环节,易出错的问题,尚未提出有效的解决方案。In the related art, in the dynamic high-temperature tooling, the detection parameters must be manually configured to continue the high-temperature detection, which leads to an increase in production links and error-prone problems, and no effective solution has been proposed.
发明内容Summary of the invention
为了至少解决上述技术问题,本发明实施例提供了一种终端的故障检测方法及装置。In order to solve at least the above technical problem, an embodiment of the present invention provides a method and an apparatus for detecting a fault of a terminal.
根据本发明的一个实施例,提供了一种终端的故障检测方法,所述方法包括:在终端进行高温工装时,终端检测所述终端的局域网LAN端口是否插上自环线;在检测到所述LAN端口插上自环线时,所述终端对所述终端中的单板进行故障检测。According to an embodiment of the present invention, a method for detecting a fault of a terminal is provided. The method includes: when the terminal performs high temperature tooling, the terminal detects whether a LAN port of the terminal is inserted into a loop line; When the LAN port is inserted into the loop, the terminal performs fault detection on the board in the terminal.
所述终端对所述终端中的单板进行故障检测之前,还包括:所述终端向所述终端的所有LAN端口发送环回报文;所述终端根据所述环回报文判断所述终端的所述LAN端口是否都插上所述自环线,其中,在所述终端收到所述环回报文环回时,判断所述环回报文对应的端口插上所述自环线。Before the terminal detects the fault of the board in the terminal, the method further includes: the terminal sending a loop report message to all the LAN ports of the terminal; and determining, by the terminal, the terminal according to the loop report text. Whether the LAN port is inserted into the self-loop line, and when the terminal receives the loopback loopback, the port corresponding to the loop report is determined to be inserted into the loopback.
对所述终端中的单板进行故障检测包括:对所述单板上的以下至少之一业务进行检测:数据业务、语音业务、无线局域网WLAN业务。 The fault detection of the board in the terminal includes: detecting at least one of the following services on the board: data service, voice service, and WLAN service of the wireless local area network.
当对所述单板的语音业务进行检测时,判断第一语音口和第二语音口之间是否存在语音流传输,其中,所述第一语音口和所述第二语音口均用于处理所述语音业务;如果是,则将所述第一语音口对应的第一语音灯和所述第二语音口对应的第二语音灯置于第一状态。When the voice service of the board is detected, it is determined whether there is voice stream transmission between the first voice port and the second voice port, where the first voice port and the second voice port are both used for processing. The voice service; if yes, placing the first voice light corresponding to the first voice port and the second voice lamp corresponding to the second voice port in a first state.
当所述检测到所述第一语音口和第二语音口处于非摘机状态时,则将所述第一语音灯和所述第二语音灯置于第二状态,或者当所述终端在进行单板检测时,检测到第一语音口和第二语音口处于挂机状态时,则将所述第一语音灯和所述第二语音灯置于所述第二状态。When the detecting the first voice port and the second voice port are in a non-off-hook state, placing the first voice lamp and the second voice lamp in a second state, or when the terminal is in When the board detection is performed, when the first voice port and the second voice port are detected to be in the on-hook state, the first voice lamp and the second voice lamp are placed in the second state.
在对所述第一语音灯和/或所述第二语音灯进行处理后之后还包括:记录日志。After processing the first voice light and/or the second voice light, the method further includes: recording a log.
判断所述终端的局域网LAN侧端口是否插上自环线之前,还包括:判断所述终端的动态高温模式对应的值是否设置;如果否,则在所述动态高温模式对应的值是通用地区码时,判断指定文件是否存在;在所述指定文件存在时,则在所述LAN侧端口插上自环线时,对所述终端上的单板进行故障检测。Before determining whether the local area network LAN side port of the terminal is inserted into the self-loop line, the method further includes: determining whether a value corresponding to the dynamic high temperature mode of the terminal is set; if not, the value corresponding to the dynamic high temperature mode is a universal area code When the specified file exists, the board on the terminal is fault-detected when the loop-side line is inserted in the LAN-side port.
根据本发明的另一个实施例,还提供了一种终端的故障检测装置,应用于终端,所述装置包括:检测模块,设置为在终端进行高温工装时,检测所述终端的局域网LAN端口是否插上自环线;故障检测模块,设置为在检测到所述LAN端口插上自环线时,对所述终端中的单板进行故障检测。According to another embodiment of the present invention, there is also provided a fault detecting apparatus for a terminal, which is applied to a terminal, the apparatus comprising: a detecting module configured to detect whether a LAN port of the terminal is a LAN when the terminal performs high temperature tooling The fault detection module is configured to perform fault detection on the board in the terminal when the self-loop line is inserted into the LAN port.
所述装置还包括:发送模块,设置为向所述终端的所有LAN端口发送环回报文;第一判断模块,设置为根据所述环回报文判断所述终端的所述LAN端口是否都插上所述自环线,其中,在所述终端收到所述环回报文环回时,判断所述环回报文对应的端口插上所述自环线。The device further includes: a sending module, configured to send a ring report to all LAN ports of the terminal; the first determining module is configured to determine, according to the ring report, whether the LAN port of the terminal is plugged in The self-loop, wherein, when the terminal receives the loopback loopback, the port corresponding to the loop report is determined to be inserted into the loopback.
第二判断模块,设置为当对所述单板的语音业务进行检测时,判断第一语音口和第二语音口之间是否存在语音流传输,其中,所述第一语音口和所述第二语音口均用于处理所述语音业务;处理模块,设置为在所述第一语音口和所述第二语音口之间存在语音传输时则将所述第一语音口对应的第一语音灯和所述第二语音口对应的第二语音灯置于第一状态。The second judging module is configured to determine, when the voice service of the board is detected, whether there is voice stream transmission between the first voice port and the second voice port, where the first voice port and the first The second voice port is configured to process the voice service, and the processing module is configured to set the first voice corresponding to the first voice port when there is voice transmission between the first voice port and the second voice port. The lamp and the second voice lamp corresponding to the second voice port are placed in the first state.
通过本发明实施例,采用终端在确定LAN端口插上自环线后就自行对终端进行故障检测的技术方案,解决了相关技术中在动态高温工装时,必须手动配置检测参数才能继续高温检测进而导致的增加了生产环节,易出错的问题,提高了终端故障检测的速度和准确度。 According to the embodiment of the present invention, the technical solution for detecting the fault of the terminal by the terminal after determining that the LAN port is inserted into the self-loop line is solved, and in the related art, in the dynamic high-temperature tooling, the detection parameter must be manually configured to continue the high-temperature detection. It increases the production process, error-prone problems, and improves the speed and accuracy of terminal fault detection.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的终端的故障检测方法的流程图;1 is a flowchart of a method for detecting a fault of a terminal according to an embodiment of the present invention;
图2为根据本发明优选实施例的自环线检测流程图;2 is a flow chart of self-loop detection according to a preferred embodiment of the present invention;
图3为根据本发明优选实施例的高温工装整体流程图;3 is an overall flow chart of a high temperature tooling in accordance with a preferred embodiment of the present invention;
图4为根据本发明优选实施例的POTS口检测流程图;4 is a flow chart of POTS port detection according to a preferred embodiment of the present invention;
图5为根据本发明优选实施例的数据流向示意图;Figure 5 is a schematic diagram of data flow direction in accordance with a preferred embodiment of the present invention;
图6是根据本发明实施例的终端的故障处理装置的结构框图;6 is a structural block diagram of a fault processing apparatus of a terminal according to an embodiment of the present invention;
图7为根据本发明实施例的终端的故障处理装置的又一结构框图。FIG. 7 is still another structural block diagram of a fault processing apparatus of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
本发明实施例的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明实施例的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the embodiments of the invention will be set forth in the description in the description which The objectives and other advantages of the embodiments of the present invention can be realized and obtained by the <RTIgt;
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
在本实施例中提供了一种终端的故障检测方法,图1是根据本发明实施例的终端的故障检测方法的流程图,如图1所示,该流程包括如下步骤:A method for detecting a fault of a terminal is provided in this embodiment. FIG. 1 is a flowchart of a method for detecting a fault of a terminal according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
步骤S102,在终端进行高温工装时,终端检测上述终端的局域网LAN端口是否插上自环线; Step S102, when the terminal performs high-temperature tooling, the terminal detects whether the local area network LAN port of the terminal is inserted into the self-loop line;
步骤S104,在检测到上述LAN端口插上自环线时,上述终端对上述终端中的单板进行故障检测。Step S104: When detecting that the LAN port is inserted into the loopback line, the terminal performs fault detection on the board in the terminal.
通过上述各个步骤,采用终端在确定LAN端口插上自环线后就自行对终端进行故障检测的技术方案,解决了相关技术中在动态高温工装时,必须手动配置检测参数才能继续高温检测进而导致的增加了生产环节,易出错的问题,实现在生产环节中排除硬件虚焊、LED灯损坏和保障基本数据和语音业务流正常,提高生产效率和质量。Through the above steps, the terminal adopts a technical solution for detecting the fault of the terminal after the LAN port is inserted into the self-loop, and solves the problem that the detection parameters must be manually configured to continue the high-temperature detection in the dynamic high-temperature tooling in the related art. Increase the production process, error-prone problems, eliminate hardware soldering, LED lamp damage and ensure normal data and voice traffic flow in the production process, improve production efficiency and quality.
在具体实施过程中,在上述终端对上述终端中的单板进行故障检测之前,还可以执行以下过程:上述终端向上述终端的所有LAN端口发送环回报文;上述终端根据上述环回报文判断上述终端的上述LAN端口是否都插上上述自环线,其中,在上述终端收到上述环回报文环回时,判断上述环回报文对应的端口插上上述自环线。In the specific implementation process, before the foregoing terminal performs fault detection on the board in the terminal, the following process may be performed: the terminal sends a ring report message to all LAN ports of the terminal; the terminal determines the foregoing according to the ring report text. The above-mentioned self-loop line is inserted into the LAN port of the terminal. When the terminal receives the loopback loopback, the terminal determines that the port corresponding to the loopback message is inserted into the loopback.
在本发明实施例中,具体指的是,对上述单板上的以下至少之一业务进行检测:数据业务、语音业务、无线局域网WLAN业务。In the embodiment of the present invention, specifically, at least one of the following services on the board is detected: a data service, a voice service, and a WLAN service of a wireless local area network.
特别地,本发明实施例对语音业务的过程进行改进,当对上述单板的语音业务进行检测时,判断第一语音口和第二语音口之间是否存在语音流传输,其中,上述第一语音口和上述第二语音口均用于处理上述语音业务;如果是,则将上述第一语音口对应的第一语音灯和上述第二语音口对应的第二语音灯置于第一状态,其中,第一状态可以是闪烁第一语音灯和第二语音灯,或者是一直保持第一语音灯和第二语音灯亮着的状态。In particular, the embodiment of the present invention improves the process of the voice service, and when detecting the voice service of the board, determining whether there is voice stream transmission between the first voice port and the second voice port, where the first The voice port and the second voice port are used to process the voice service; if yes, the first voice lamp corresponding to the first voice port and the second voice lamp corresponding to the second voice port are placed in the first state, The first state may be a blinking first voice light and a second voice light, or a state in which the first voice light and the second voice light are always kept on.
需要说明的是,第一语音灯和第二语音灯还会处于熄灭的状态,即区别于上述第一状态的第二状态,存在以下两种情况:It should be noted that the first voice light and the second voice light are also in a state of being extinguished, that is, a second state different from the first state, and the following two situations exist:
1)当上述检测到上述第一语音口和第二语音口处于非摘机状态时,则将上述第一语音灯和上述第二语音灯置于第二状态;1) when it is detected that the first voice port and the second voice port are in a non-off-hook state, placing the first voice lamp and the second voice lamp in a second state;
2)当上述终端在进行单板检测时,检测到第一语音口和第二语音口处于挂机状态时,则将上述第一语音灯和上述第二语音灯置于上述第二状态。2) When the terminal detects that the first voice port and the second voice port are in the on-hook state, the first voice lamp and the second voice lamp are placed in the second state.
可选地,在对上述第一语音灯和/或上述第二语音灯进行处理后,还可以对上述事件(第一语音灯和第二语音灯熄灭或者闪烁的状态)记录日志。Optionally, after processing the first voice light and/or the second voice light, the event may also be recorded on the event that the first voice light and the second voice light are off or blinking.
虽然本发明实施例的技术方案实现了自动的对终端进行故障检测,但在实现上述自动故障检测过程,终端要执行以下过程:判断上述终端的动态高温模式对应的值是否设置;如果否,则在上述动态高温模式对应的值是通用地区码时,判断指定文件是 否存在;在上述指定文件存在时,则在上述LAN侧端口插上自环线时,对上述终端上的单板进行故障检测。Although the technical solution of the embodiment of the present invention implements automatic fault detection on the terminal, in implementing the automatic fault detection process, the terminal performs the following process: determining whether the value corresponding to the dynamic high temperature mode of the terminal is set; if not, When the value corresponding to the dynamic high temperature mode is a general area code, it is judged that the specified file is If there is a specified file, the board on the terminal is fault detected when the loop is inserted into the LAN port.
为了更好的理解上述终端的故障检测过程,以下结合优选实施例进行说明:In order to better understand the fault detection process of the above terminal, the following describes the preferred embodiment:
本发明优选实施例的主要思想是如果LAN侧插上自环线,且单板没有完成高温工装,单板就会自动进行智能检测,并且本发明实施例还完善了普通老式电话业(Plain Old Telephone Service,简称为POTS)口的检测流程,在检测过程中可以根据POTS口的不同状态进行语音灯的指示。The main idea of the preferred embodiment of the present invention is that if the self-loop line is inserted on the LAN side, and the board does not complete the high-temperature tooling, the board automatically performs intelligent detection, and the embodiment of the present invention also improves the ordinary old telephone industry (Plain Old Telephone). The service, referred to as the POTS) port detection process, can indicate the voice light according to the different states of the POTS port during the detection process.
图2为根据本发明优选实施例的自环线检测流程图,如图2所示,自环线智能检测流程描述如下:2 is a flow chart of self-loop detection according to a preferred embodiment of the present invention. As shown in FIG. 2, the self-loop intelligent detection process is described as follows:
步骤S200,设备上电过程中,管理模块在判断有动态高温模式2193是否已设置,如果是,则转步骤S202,如果否,则转步骤S204;In step S200, during the power-on of the device, the management module determines whether the dynamic high-temperature mode 2193 has been set, if yes, then proceeds to step S202, and if not, proceeds to step S204;
步骤S202,如果已设置(0或1)都不通知自环检测模块进行单端口工装环线检测;Step S202, if it is set (0 or 1), the self-loop detection module is not notified to perform single-port tooling loop detection;
步骤S204,如果没有设置则再判断是否是通用地区码,如果是,则转步骤S206,如果否,则转步骤S208;Step S204, if not set, then determine whether it is a universal area code, if yes, go to step S206, if no, go to step S208;
步骤S206,如果不是通用地区码,则不需要进行工装了,结束进程;Step S206, if it is not a general area code, it is not necessary to perform tooling, and the process ends;
步骤S208,如是通用地区码则再判断/userconfig/highlow_cfg文件是否存在,如果存在,则转步骤S210,如果不存在,则转步骤S206;Step S208, if it is a general area code, then determine whether the /userconfig/highlow_cfg file exists, if yes, go to step S210, if not, go to step S206;
步骤S210,发消息给自环检查模块,通知它开始进行端口自环回检测,如不存在则不通知自检,内核态的自环检测模块收到通知后发特殊的测试端口自身环回报文,向所有端口都发;Step S210: Send a message to the self-loop check module, and notify it to start port self-loopback detection. If it does not exist, the self-test is not notified, and the kernel state self-loop detection module sends a special test port to report the loopback after receiving the notification. , sent to all ports;
步骤S212,判断是否都收到了某个LAN的环回报文,如果是,则转步骤S214,如果否,则转步骤S216;Step S212, it is determined whether a loop report of a certain LAN is received, if yes, then go to step S214, if no, go to step S216;
步骤S214,如果有某个端口有环回包环回则认为都插上了工装线,则判断已插上工装线,通知用户态的管理模块可以进行动态高温测试,自身停止自环线的检测;Step S214, if a port has a loopback loopback, it is considered that the tooling line is plugged in, and it is judged that the tooling line is inserted, and the user management module is notified that the dynamic temperature test can be performed, and the self-loop detection is stopped by itself;
步骤S216,如果没有插上自环线,则等待30s的定时器后再进行一轮自环线的检测,周而复始; Step S216, if the self-loop line is not inserted, wait for a timer of 30 seconds and then perform a round of detection of the self-loop line, and repeat;
步骤S218,在30秒定时器时间已到时,转步骤S210;Step S218, when the 30 second timer time has expired, go to step S210;
步骤S220,管理模块设置工装模式为1,并在不重启单板的情况下进行设备重启的流程。In step S220, the management module sets the tooling mode to 1, and performs the process of restarting the device without restarting the board.
图3为根据本发明优选实施例的高温工装整体流程图,如图3所示,高温工装整体流程如下:3 is an overall flow chart of a high temperature tooling according to a preferred embodiment of the present invention. As shown in FIG. 3, the overall process of the high temperature tooling is as follows:
1)管理模块发送start命令给数据模块、语音模块和无线模块,开始高温工装测试;1) The management module sends a start command to the data module, the voice module and the wireless module to start the high temperature tooling test;
2)数据模块收到start命令后,不停的LAN口就开始自发自收;语音模块收到start命令后两个POTS口之间发DTMF码流进行测试;无线模块也开始检测有无校准参数、检测芯片和中断数变化、检测beacon参数变化、扫描周围的AP等。2) After the data module receives the start command, the non-stop LAN port starts to self-receive; the voice module sends a DTMF code stream between the two POTS ports after the start command is received; the wireless module also starts to detect the presence or absence of calibration parameters. , detecting chip and interrupt number changes, detecting beacon parameter changes, scanning surrounding APs, etc.
3)数据模块、语音模块和无线模块测试出错后消息通知管理模块;3) The data module, the voice module and the wireless module test the error after the message notification management module;
4)管理模块发送stop命令给数据模块、语音模块和无线模块,停止高温工装测试,至此5分钟的测试时长结束;4) The management module sends a stop command to the data module, the voice module and the wireless module to stop the high temperature tooling test, and the test duration of 5 minutes ends;
5)数据模块、语音模块停止测试,并上报统计信息给管理模块;5) The data module and the voice module stop testing, and report the statistical information to the management module;
6)等到各模块都上报计信息给管理模块统后,管理模块重启设备测试完剩下的测试次数。6) After each module reports the information to the management module, the management module restarts the device to test the remaining number of tests.
7)根据LAN侧业务构造报文,来进行收发统计。语音业务来进行模拟呼叫协议流程,WALN模块检测Beacon帧。从而在高温环境下对批量终端产品,自动进行数据业务和语音业务、WLAN业务测试。7) Send and receive statistics according to the LAN side service structure message. The voice service performs the analog call protocol process, and the WALN module detects the Beacon frame. Therefore, the data service, the voice service, and the WLAN service are automatically tested for the batch terminal products in a high temperature environment.
对于上述实施例中技术方案:对LAN口测试,LAN口自环,通过构造一特殊mac地址的报文发送来进行收发包统计,每2秒钟发送一次报文,报文的数量估计为10个报文,同时进行报文统计,若该次报文收发包统计不等,则认为该2秒钟,检测失败。连续三次检测失败则认为该五分钟内测试失败。则认为该次高温动态老化LAN口测试失败。For the technical solution in the above embodiment, the LAN port is tested, and the LAN port is self-looped. The packet is sent by sending a packet with a special mac address to send and receive packets. The packet is sent every 2 seconds. The number of packets is estimated to be 10. Packets are counted at the same time. If the statistics of the packets sent and received are not equal, it is considered that the detection fails for 2 seconds. Failure of three consecutive tests indicates that the test failed within five minutes. It is considered that the high temperature dynamic aging LAN port test fails.
对于上述语音业务,即对VOIP业务测试,对两个POTS口环起来,POTS口交替发送,接收串号,来进行号码匹配。对POTS1口发送一系列串号如:0123456789#*,而在POTS2口来进行收号码,若收到的号码与POTS1口发送的号码顺序和号码 值完全匹配,则认为该次测试成功,否则则认为测试失败。连续三次失败则认为该次高温动态老化失败。For the above voice service, that is, for the VOIP service test, the two POTS ports are ringed, the POTS ports are alternately transmitted, and the serial number is received to perform number matching. Send a series of serial numbers to the POTS1 port, such as: 0123456789#*, and collect the number at the POTS2 port. If the received number is the same as the number sequence and number sent by the POTS1 port. If the value is an exact match, the test is considered successful, otherwise the test is considered to have failed. The failure of three consecutive failures indicates that the high temperature dynamic aging failed.
本发明优选实施例对上述技术方案的进一步改进在于:检测过程中增加了语音灯的指示。图4为根据本发明优选实施例的POTS口检测流程图,如图4所示,POTS口测试模块主要进行如下动作:A further improvement of the above technical solution in the preferred embodiment of the present invention is that an indication of the voice light is added during the detection process. FIG. 4 is a flow chart of POTS port detection according to a preferred embodiment of the present invention. As shown in FIG. 4, the POTS port test module mainly performs the following actions:
1)接受管理模块的start命令和各个参数;1) accept the start command and various parameters of the management module;
2)检测语音1、2口的摘机状态,如不为摘机状态,则熄灭语音1、2灯,写日志,停止测试;2) Detecting the off-hook state of voices 1 and 2, if not off-hook, extinguish the voices 1 and 2, write the log, and stop the test;
3)开始发DTMF流进行测试;3) Start sending DTMF streams for testing;
4)在测试中间语音1口和2口分别检测是否有收DTMF码流,如有则闪烁对应的语音口灯;4) In the test intermediate voice 1 port and 2 port respectively detect whether there is a received DTMF code stream, if any, flash corresponding voice port light;
5)在测试中间,如有接收到SLIC驱动上报的挂机状态,则熄灭语音1、2灯,写日志,继续测试。5) In the middle of the test, if there is an on-hook state that is received by the SLIC driver, the voices 1 and 2 are turned off, the log is written, and the test is continued.
6)实时统计最大的连续错误次数,如果出现了丢包或错包则写错误日志,并继续测试。6) Real-time statistics of the maximum number of consecutive errors. If there is a packet loss or a wrong packet, write the error log and continue the test.
7)接收到管理模块的stop命令后,停止测试。7) After receiving the stop command of the management module, stop the test.
8)测试停止后统计如下信息并上报给管理模块。8) After the test is stopped, the following information is counted and reported to the management module.
9)需要统计的信息:累计测试总次数,累计测试成功次数,累计测试失败次数,累计误码次数,累计丢包次数,是部分丢包还是全丢包。9) Information that needs to be counted: total number of accumulated tests, cumulative number of successful tests, cumulative number of failed tests, cumulative number of errors, and total number of lost packets, whether it is partial or full.
采用本发明优选实施例上述提供的技术方案,能够实现检测结果直观显示,检测结果一目了然,在第一个五分钟的老化过程中,只是为了验证所有LED灯是否有损坏。若无损坏,则单板上所有灯全部点亮。节省了工厂原本需要来测试单板所有灯的工序。第一个五分钟结束后,单板自动重启,进入第二个五分钟老化过程,在接下来的测试过程至测试结束:检测过程中网络E灯不停的闪烁,提示工人正在进行高温老化过程。若检测结束后,网络E灯常亮,光信号灯熄灭则代表老化过程结束,检测结果正常。若检测过程中,光信号灯常亮(红色)则警示工人高温老化过程,检测失败。 According to the technical solution provided by the preferred embodiment of the present invention, the detection result can be visually displayed, and the detection result can be seen at a glance. In the first five-minute aging process, it is only to verify whether all the LED lamps are damaged. If there is no damage, all the lights on the board are lit. It saves the process that the factory originally needs to test all the lamps of the board. After the first five minutes, the board automatically restarts and enters the second five-minute aging process. During the next test process to the end of the test: the network E lights flash continuously during the detection process, prompting the workers to undergo the high temperature aging process. . If the network E light is always on after the test is finished, the light signal is off, indicating that the aging process is over and the test result is normal. If the light signal is always on (red) during the test, the worker is warned of the high temperature aging process and the test fails.
还存在有详尽的日志信息,日志信息可以帮助生产厂商来定位检测失败的原因;数据检测其可以提示某个具体的LAN口收发包是有多少丢包和多少错包;语音检测会提示发送的号码和接收到的号码分别是什么,可以确定是完全收不到号码或者是只能收到部分号码;无线检测可以提示是否可以正常扫描到Beacon帧;灵活的参数设置,控制测试时长、测试项,以及测试门限;生产厂商可以灵活的控制测试项、测试时长、测试门限以及LAN口的发包端口等参数,可根据实际需要来定制检测参数,提高生产效能;通过进行高温智能检测测试,可提高测试的可靠性,能够更好的拦截问题单板,降低单板的返修率。节省成本,提高产品质量。There are also detailed log information. The log information can help the manufacturer to locate the cause of the detection failure. The data detection can indicate how many packets are lost and how many wrong packets are sent and received by a specific LAN port. The voice detection will prompt the sending. The number and the received number are respectively determined, it can be determined that the number is completely unavailable or only part of the number can be received; the wireless detection can prompt whether the Beacon frame can be scanned normally; flexible parameter setting, control test duration, test item And the test threshold; the manufacturer can flexibly control the test items, the test duration, the test threshold, and the port of the LAN port, and can customize the test parameters according to actual needs to improve the production efficiency; The reliability of the test can better intercept the problem board and reduce the repair rate of the board. Save costs and improve product quality.
在高温房内实现批量终端的自动流量检测,几百台终端设备同时自动运行,每台通过点灯方式告知是否存在故障,对故障的设备通过记录进行分析是否存在大量同类故障,以监测是否存在硬件电路虚焊,是否有芯片批次问题等。Automatic flow detection of batch terminals in high-temperature rooms, hundreds of terminal devices are automatically operated at the same time, each device is notified by light to indicate whether there is a fault, and the faulty device is recorded through the record to analyze whether there are a large number of similar faults to monitor whether there is hardware. Circuit soldering, whether there are chip batch problems, etc.
对WLAN业务测试,在高温机房附近放置一AP,然后单板在动态老化测试过程中会进行Beacon帧扫描,若单板可以正常检测到Beacon帧,则认为该次动态老化成功,若连续三次都不能检测到Beacon帧,则认为无线模块存在故障,该次动态老化失败,综上所述,上述对数据业务、语音业务和WLAN业务的测试过程中的数据流向图如图5所示。For the WLAN service test, an AP is placed in the vicinity of the high-temperature room. Then, the Beacon frame is scanned during the dynamic aging test. If the board can detect the Beacon frame, the dynamic aging is considered successful. If the Beacon frame cannot be detected, the wireless module is faulty, and the dynamic aging fails. In summary, the data flow diagram during the test of the data service, the voice service, and the WLAN service is as shown in FIG. 5.
在本实施例中还提供了一种终端的故障处理装置,应用于终端,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a fault processing device for a terminal is also provided, which is applied to the terminal, and the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图6是根据本发明实施例的终端的故障处理装置的结构框图,如图6所示,该装置包括:FIG. 6 is a structural block diagram of a fault processing apparatus of a terminal according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes:
检测模块60,设置为在终端进行高温工装时,检测上述终端的局域网LAN端口是否插上自环线;The detecting module 60 is configured to detect whether the local area network LAN port of the terminal is plugged into the self-loop line when the terminal performs high temperature tooling;
故障检测模块62,与检测模块60连接,设置为在检测到上述LAN端口插上自环线时,对上述终端中的单板进行故障检测。The fault detection module 62 is connected to the detection module 60 and configured to perform fault detection on the board in the terminal when the LAN port is detected to be inserted into the loop.
通过上述各个模块的综合作用,采用终端在确定LAN端口插上自环线后就自行对终端进行故障检测的技术方案,解决了相关技术中在动态高温工装时,必须手动配置检测参数才能继续高温检测进而导致的增加了生产环节,易出错的问题,实现在生产 环节中排除硬件虚焊、LED灯损坏和保障基本数据和语音业务流正常,提高生产效率和质量。Through the comprehensive function of each module mentioned above, the technical solution for detecting the fault of the terminal by the terminal after determining the LAN port is inserted into the self-loop, and solving the related technology, in the dynamic high-temperature tooling, the detection parameter must be manually configured to continue the high-temperature detection. In turn, the production process is increased, the error-prone problem is realized, and the production is realized. Eliminate hardware soldering, LED light damage and ensure normal data and voice traffic flow, improve production efficiency and quality.
图7为根据本发明实施例的终端的故障处理装置的又一结构框图,如图7所示,上述装置还包括:FIG. 7 is still another structural block diagram of a fault processing apparatus for a terminal according to an embodiment of the present invention. As shown in FIG. 7, the apparatus further includes:
发送模块64,设置为向上述终端的所有LAN端口发送环回报文;第一判断模块66,与发送模块64连接,设置为根据上述环回报文判断上述终端的上述LAN端口是否都插上上述自环线,其中,在上述终端收到上述环回报文环回时,判断上述环回报文对应的端口插上上述自环线。The sending module 64 is configured to send a ring report message to all the LAN ports of the terminal; the first determining module 66 is connected to the sending module 64, and is configured to determine whether the LAN port of the terminal is plugged in according to the ring report text. a ring line, wherein when the terminal receives the loopback loopback, the port corresponding to the loopback text is determined to be inserted into the loopback.
可选地,上述装置还包括:第二判断模块68,设置为当对上述单板的语音业务进行检测时,判断第一语音口和第二语音口之间是否存在语音流传输,其中,上述第一语音口和上述第二语音口均用于处理上述语音业务;处理模块70,与第二判断模块68连接,设置为在上述第一语音口和上述第二语音口之间存在语音传输时则将上述第一语音口对应的第一语音灯和上述第二语音口对应的第二语音灯置于第一状态。Optionally, the foregoing apparatus further includes: a second determining module 68, configured to determine whether there is voice stream transmission between the first voice port and the second voice port when detecting the voice service of the board, where The first voice port and the second voice port are used to process the voice service. The processing module 70 is connected to the second determining module 68, and is configured to have voice transmission between the first voice port and the second voice port. And the first voice lamp corresponding to the first voice port and the second voice lamp corresponding to the second voice port are placed in the first state.
综上所述,本发明实施例达到了以下技术效果:便于工厂推广:不增加工序;烧录版本,放入高温房中,单板上电会自动进入动态高温老化过程;若检测失败后,如果不拔掉LAN口的自环线还可以再次进行动态高温工装;组网环境简单;单板只需插入电源和LAN口自环线,语音口自环线即可。In summary, the embodiments of the present invention achieve the following technical effects: facilitating the promotion of the factory: no increase in the process; burning the version into the high temperature room, the board will automatically enter the dynamic high temperature aging process; if the test fails, If you do not remove the self-loop cable of the LAN port, you can perform dynamic high-temperature tooling again. The networking environment is simple. The board only needs to be plugged into the power supply and LAN port self-loop, and the voice port can be self-loop.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的对象在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It is to be understood that the objects so used are interchangeable, where appropriate, so that the embodiments of the invention described herein can be carried out in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以 将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, thereby Storing them in a storage device is performed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that herein, or separately fabricated into individual integrated circuit modules, or Multiple of these modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种终端的故障检测方法及装置,具有以下有益效果:解决了相关技术中在动态高温工装时,必须手动配置检测参数才能继续高温检测进而导致的增加了生产环节,易出错的问题,提高了终端故障检测的速度和准确度。 As described above, the method and device for detecting faults of a terminal provided by the embodiments of the present invention have the following beneficial effects: the related art has the problem that the detection parameters must be manually configured to continue the high temperature detection in the dynamic high temperature tooling. Production links, error-prone problems, improve the speed and accuracy of terminal fault detection.

Claims (10)

  1. 一种终端的故障检测方法,所述方法包括:A method for detecting a fault of a terminal, the method comprising:
    在终端进行高温工装时,终端检测所述终端的局域网LAN端口是否插上自环线;When the terminal performs high-temperature tooling, the terminal detects whether the local area network LAN port of the terminal is inserted into the self-loop line;
    在检测到所述LAN端口插上自环线时,所述终端对所述终端中的单板进行故障检测。When detecting that the LAN port is inserted into the loop, the terminal performs fault detection on the board in the terminal.
  2. 根据权利要求1所述的方法,其中,所述终端对所述终端中的单板进行故障检测之前,还包括:The method according to claim 1, wherein before the terminal performs fault detection on the board in the terminal, the method further includes:
    所述终端向所述终端的所有LAN端口发送环回报文;Transmitting, by the terminal, a ring report message to all LAN ports of the terminal;
    所述终端根据所述环回报文判断所述终端的所述LAN端口是否都插上所述自环线,其中,在所述终端收到所述环回报文环回时,判断所述环回报文对应的端口插上所述自环线。Determining, by the terminal, whether the LAN port of the terminal is inserted into the loopback line according to the ringback report, where the terminal returns the loopback message when the terminal receives the loopback loopback The corresponding port is inserted into the self-loop.
  3. 根据权利要求1所述的方法,其中,对所述终端中的单板进行故障检测包括:The method of claim 1, wherein detecting a board in the terminal comprises:
    对所述单板上的以下至少之一业务进行检测:数据业务、语音业务、无线局域网WLAN业务。Detecting at least one of the following services on the board: data service, voice service, and wireless local area network WLAN service.
  4. 根据权利要求3所述的方法,其中,The method of claim 3, wherein
    当对所述单板的语音业务进行检测时,判断第一语音口和第二语音口之间是否存在语音流传输,其中,所述第一语音口和所述第二语音口均用于处理所述语音业务;When the voice service of the board is detected, it is determined whether there is voice stream transmission between the first voice port and the second voice port, where the first voice port and the second voice port are both used for processing. The voice service;
    如果是,则将所述第一语音口对应的第一语音灯和所述第二语音口对应的第二语音灯置于第一状态。If yes, the first voice light corresponding to the first voice port and the second voice light corresponding to the second voice port are placed in the first state.
  5. 根据权利要求4所述的方法,其中,The method of claim 4, wherein
    当所述检测到所述第一语音口和第二语音口处于非摘机状态时,则将所述第一语音灯和所述第二语音灯置于第二状态,或者When the detecting that the first voice port and the second voice port are in a non-off-hook state, placing the first voice lamp and the second voice lamp in a second state, or
    当所述终端在进行单板检测时,检测到第一语音口和第二语音口处于挂机状态时,则将所述第一语音灯和所述第二语音灯置于所述第二状态。 When the terminal detects that the first voice port and the second voice port are in the on-hook state, the first voice light and the second voice light are placed in the second state.
  6. 根据权利要求4或5所述的方法,其中,在对所述第一语音灯和/或所述第二语音灯进行处理后之后还包括:记录日志。The method according to claim 4 or 5, further comprising: recording a log after processing the first voice light and/or the second voice light.
  7. 根据权利要求1-5任一项所述的方法,其中,判断所述终端的局域网LAN侧端口是否插上自环线之前,还包括:The method according to any one of claims 1-5, wherein before determining whether the local area network LAN side port of the terminal is inserted into the self-loop line, the method further includes:
    判断所述终端的动态高温模式对应的值是否设置;Determining whether a value corresponding to the dynamic high temperature mode of the terminal is set;
    如果否,则在所述动态高温模式对应的值是通用地区码时,判断指定文件是否存在;If not, determining whether the specified file exists if the value corresponding to the dynamic high temperature mode is a universal area code;
    在所述指定文件存在时,则在所述LAN侧端口插上自环线时,对所述终端上的单板进行故障检测。When the specified file exists, fault detection is performed on the board on the terminal when the self-loop line is inserted on the LAN side port.
  8. 一种终端的故障检测装置,应用于终端,所述装置包括:A fault detecting device for a terminal is applied to a terminal, and the device includes:
    检测模块,设置为在终端进行高温工装时,检测所述终端的局域网LAN端口是否插上自环线;The detecting module is configured to detect whether the local area LAN port of the terminal is inserted into the self-loop line when the terminal performs high temperature tooling;
    故障检测模块,设置为在检测到所述LAN端口插上自环线时,对所述终端中的单板进行故障检测。The fault detection module is configured to perform fault detection on the board in the terminal when the self-loop line is inserted into the LAN port.
  9. 根据权利要求8所述的装置,其中,所述装置还包括:The apparatus of claim 8 wherein said apparatus further comprises:
    发送模块,设置为向所述终端的所有LAN端口发送环回报文;a sending module, configured to send a ring report to all LAN ports of the terminal;
    第一判断模块,设置为根据所述环回报文判断所述终端的所述LAN端口是否都插上所述自环线,其中,在所述终端收到所述环回报文环回时,判断所述环回报文对应的端口插上所述自环线。The first determining module is configured to determine, according to the ring report, whether the LAN port of the terminal is plugged into the loopback line, where the terminal determines that the loopback loopback is received by the terminal The port corresponding to the ring report text is inserted into the self-loop line.
  10. 根据权利要求8所述的装置,其中,The device according to claim 8, wherein
    第二判断模块,设置为当对所述单板的语音业务进行检测时,判断第一语音口和第二语音口之间是否存在语音流传输,其中,所述第一语音口和所述第二语音口均用于处理所述语音业务;The second judging module is configured to determine, when the voice service of the board is detected, whether there is voice stream transmission between the first voice port and the second voice port, where the first voice port and the first The two voice ports are used to process the voice service;
    处理模块,设置为在所述第一语音口和所述第二语音口之间存在语音传输时则将所述第一语音口对应的第一语音灯和所述第二语音口对应的第二语音灯置于第一状态。 a processing module, configured to: when there is voice transmission between the first voice port and the second voice port, the first voice light corresponding to the first voice port and the second voice port corresponding to the second voice port The voice light is placed in the first state.
PCT/CN2015/073809 2014-11-12 2015-03-06 Method and device for detecting fault in terminal WO2016074383A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410636855.3 2014-11-12
CN201410636855.3A CN105657113A (en) 2014-11-12 2014-11-12 Fault detection method and device for terminal

Publications (1)

Publication Number Publication Date
WO2016074383A1 true WO2016074383A1 (en) 2016-05-19

Family

ID=55953658

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/073809 WO2016074383A1 (en) 2014-11-12 2015-03-06 Method and device for detecting fault in terminal

Country Status (2)

Country Link
CN (1) CN105657113A (en)
WO (1) WO2016074383A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130814A (en) * 2016-06-14 2016-11-16 太仓市同维电子有限公司 Luminous flux and voice synchronous measuring technology method in a kind of communication products production test

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040052242A1 (en) * 2002-09-13 2004-03-18 Laturell Donald R. POTS/broadband voice cross-connect system
CN101242315A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Loop detection method
CN101848120A (en) * 2010-06-04 2010-09-29 中兴通讯股份有限公司 High-temperature testing method and device
CN101924659A (en) * 2009-06-12 2010-12-22 中兴通讯股份有限公司 Network equipment and method for detecting links of physical ports of same
CN103631361A (en) * 2013-11-21 2014-03-12 杭州华三通信技术有限公司 Method and equipment for improving system reliability

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247290B (en) * 2008-03-14 2010-12-08 中兴通讯股份有限公司 Ethernet switchboard high temperature ageing real-time monitoring method and system
CN103701656A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Testing method and system of broadband access unit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040052242A1 (en) * 2002-09-13 2004-03-18 Laturell Donald R. POTS/broadband voice cross-connect system
CN101242315A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Loop detection method
CN101924659A (en) * 2009-06-12 2010-12-22 中兴通讯股份有限公司 Network equipment and method for detecting links of physical ports of same
CN101848120A (en) * 2010-06-04 2010-09-29 中兴通讯股份有限公司 High-temperature testing method and device
CN103631361A (en) * 2013-11-21 2014-03-12 杭州华三通信技术有限公司 Method and equipment for improving system reliability

Also Published As

Publication number Publication date
CN105657113A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
EP3148119B1 (en) Ageing detection method and device
US7289449B1 (en) Device and method for managing fault detection and fault isolation in voice and data networks
CN101188527B (en) A heartbeat detection method and device
CN108833172B (en) Network fault alarm processing method and device and network system
CN109525736B (en) Voice dial testing loopback method and device
CN103023815B (en) Aggregation link load sharing method and device
RU2602977C2 (en) Method for detecting correctness of optic fibre connection based on radio remote unit (rru) looped network and base band unit (bbu)
WO2016202046A1 (en) Method and apparatus for repairing wireless router device
CN102137420A (en) Voice channel detection method and base station controller
WO2016074383A1 (en) Method and device for detecting fault in terminal
WO2015180265A1 (en) Multi-link protection switching method and device
WO2016192205A1 (en) Method and device for determining state of network equipment
JPH08510615A (en) Communication network having a plurality of stations and operating method thereof
WO2016086638A1 (en) Link detection method, device, and computer storage medium
EP1733506A1 (en) Fault management in an ethernet based communication system
CN101287263A (en) Test method, system and server for relay link in exchange network
US7446665B1 (en) Method for automatically detecting and isolating a power outage in a communication network
CN114978939A (en) Method for detecting network link quality
CN101834954A (en) Line detection apparatus and method for fixed phone
CN110572292B (en) High availability system and method based on unidirectional transmission link
JP4671288B2 (en) Loop occurrence direction determination method and loop disconnection method in MAC bridging network
KR101071376B1 (en) Apparatus for maintaining internet protocol network equipment using internet protocol network quality information
CN109379133A (en) The processing method and system of PON network packet loss
CN108134689B (en) Method and device for checking faults of cascade interface inside frame type equipment
US6480576B1 (en) Method and device for detecting path faults in a network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15858185

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15858185

Country of ref document: EP

Kind code of ref document: A1