Fault diagnosis method, electronic device, and storage medium

文档序号:365387 发布日期:2021-12-07 浏览:13次 中文

阅读说明:本技术 故障诊断方法、电子设备及存储介质 (Fault diagnosis method, electronic device, and storage medium ) 是由 陈品辉 曾伟才 何远吉 谢波 马秀江 于 2020-06-04 设计创作,主要内容包括:本申请实施例提供一种故障诊断方法、电子设备及存储介质,涉及通信技术领域,该方法包括:检测中继设备的状态,根据所述状态向所述中继设备发送故障诊断触发信号,使得所述中继设备进入故障诊断模式,其中,所述故障诊断触发信号包括可变电源电压值、发送/接收控制信号及诊断控制信号中的一种或多种;检测所述中继设备在所述故障诊断模式下的状态,根据所述状态确定故障码,并根据所述故障码确定故障。本申请实施例提供的方法,能够通过车载终端对中继放大器和天线进行故障诊断,并提高故障诊断的效率。(The embodiment of the application provides a fault diagnosis method, electronic equipment and a storage medium, which relate to the technical field of communication, and the method comprises the following steps: detecting the state of relay equipment, and sending a fault diagnosis trigger signal to the relay equipment according to the state to enable the relay equipment to enter a fault diagnosis mode, wherein the fault diagnosis trigger signal comprises one or more of a variable power supply voltage value, a sending/receiving control signal and a diagnosis control signal; and detecting the state of the relay equipment in the fault diagnosis mode, determining a fault code according to the state, and determining a fault according to the fault code. According to the method provided by the embodiment of the application, the fault diagnosis can be performed on the relay amplifier and the antenna through the vehicle-mounted terminal, and the fault diagnosis efficiency is improved.)

1. A fault diagnosis method, comprising:

detecting the state of relay equipment, and sending a fault diagnosis trigger signal to the relay equipment according to the state to enable the relay equipment to enter a fault diagnosis mode, wherein the fault diagnosis trigger signal comprises one or more of a variable power supply voltage value, a sending/receiving control signal and a diagnosis control signal;

and detecting the state of the relay equipment in the fault diagnosis mode, determining a fault code according to the state, and determining a fault according to the fault code.

2. The method of claim 1, wherein the detecting a status of a relay device, and wherein sending a troubleshooting trigger signal to the relay device based on the status comprises:

detecting a relay supply current V in any transmission periodTXAnd a relay supply current V in any receiving periodRX

If VTXLess than a preset first threshold, or VTXGreater than a preset second threshold, or VRXLess than a preset third threshold, or VRXAnd if the current value is larger than the preset fourth threshold value, sending a fault diagnosis trigger signal to the relay equipment.

3. The method of claim 1, wherein the detecting a status of a relay device, and wherein sending a troubleshooting trigger signal to the relay device based on the status comprises:

detecting the state of a transmission path of the relay equipment in any transmission period;

and if the sending path is in an abnormal state, sending a fault diagnosis trigger signal to the relay equipment.

4. The method according to any one of claims 1-3, wherein said sending a fault diagnosis trigger signal to the relay device according to the status comprises:

adjusting the voltage value of the variable power supply according to the state, and sending the voltage value of the variable power supply to the relay equipment; or

And adjusting the output duty ratio of the sending/receiving control signal according to the state, and sending the sending/receiving control signal to the relay equipment.

5. The method of claim 1, wherein the detecting a status of the relay device in the fault diagnosis mode, and wherein determining a fault code based on the status comprises:

detecting a relay supply current V of the relay device in any transmission period in the fault diagnosis modeTX

If VTXIf the first code is smaller than the preset fifth threshold, determining the first code;

if VTXIf the value is larger than or equal to a preset fifth threshold value, determining a second code;

acquiring a code set in M continuous sending periods, and determining fault codes according to the code set, wherein the code set comprises at least one of the first codes and the second codes.

6. The method of claim 5, wherein obtaining a set of codes over M consecutive transmission periods, and wherein determining a fault code from the set of codes comprises:

acquiring a first code set from a first sending period to an Nth sending period of the relay equipment in the fault diagnosis mode, wherein the first code set comprises at least one of the first code and the second code;

if the first code set is matched with a preset code set, acquiring a second code set from an N +1 th sending period to an N + M th sending period, wherein the second code set comprises at least one of the first code and the second code;

and determining a fault code according to the second code set.

7. An electronic device, comprising: a memory for storing computer program code, the computer program code comprising instructions that, when read from the memory by the apparatus, cause the apparatus to perform the steps of:

detecting the state of relay equipment, and sending a fault diagnosis trigger signal to the relay equipment according to the state to enable the relay equipment to enter a fault diagnosis mode, wherein the fault diagnosis trigger signal comprises one or more of a variable power supply voltage value, a sending/receiving control signal and a diagnosis control signal;

and detecting the state of the relay equipment in the fault diagnosis mode, determining a fault code according to the state, and determining a fault according to the fault code.

8. The device of claim 7, wherein the instructions, when executed by the device, cause the device to perform detecting a status of a relay device, wherein sending a troubleshooting trigger signal to the relay device based on the status comprises:

detecting a relay supply current V in any transmission periodTXAnd a relay supply current V in any receiving periodRX

If VTXLess than a preset first threshold, or VTXGreater than a preset second threshold, or VRXLess than a preset third threshold, or VRXAnd if the current value is larger than the preset fourth threshold value, sending a fault diagnosis trigger signal to the relay equipment.

9. The device of claim 7, wherein the instructions, when executed by the device, cause the device to perform detecting a status of a relay device, wherein sending a troubleshooting trigger signal to the relay device based on the status comprises:

detecting the state of a transmission path of the relay equipment in any transmission period;

and if the sending path is in an abnormal state, sending a fault diagnosis trigger signal to the relay equipment.

10. The apparatus of any of claims 7-9, wherein the instructions, when executed by the apparatus, cause the apparatus to perform the step of sending a troubleshooting trigger signal to the relay device based on the status comprises:

adjusting the voltage value of the variable power supply according to the state, and sending the voltage value of the variable power supply to the relay equipment; or

And adjusting the output duty ratio of the sending/receiving control signal according to the state, and sending the sending/receiving control signal to the relay equipment.

11. The device of claim 7, wherein the instructions, when executed by the device, cause the device to perform detecting a status of the relay device in the fault diagnosis mode, wherein determining a fault code based on the status comprises:

detecting a relay supply current V of the relay device in any transmission period in the fault diagnosis modeTX

If VTXIf the first code is smaller than the preset fifth threshold, determining the first code;

if VTXIf the value is larger than or equal to a preset fifth threshold value, determining a second code;

acquiring a code set in M continuous sending periods, and determining fault codes according to the code set, wherein the code set comprises at least one of the first codes and the second codes.

12. The apparatus of claim 11, wherein the instructions, when executed by the apparatus, cause the apparatus to perform obtaining a set of codes over M consecutive transmission cycles, wherein determining a fault code from the set of codes comprises:

acquiring a first code set from a first sending period to an Nth sending period of the relay equipment in the fault diagnosis mode, wherein the first code set comprises at least one of the first code and the second code;

if the first code set is matched with a preset code set, acquiring a second code set from an N +1 th sending period to an N + M th sending period, wherein the second code set comprises at least one of the first code and the second code;

and determining a fault code according to the second code set.

13. A computer readable storage medium comprising computer instructions which, when executed on the apparatus, cause the apparatus to perform the method of any of claims 1-6.

Technical Field

The embodiment of the application relates to the technical field of communication, in particular to a fault diagnosis method, electronic equipment and a storage medium.

Background

In a conventional vehicle-mounted mobile communication system, a vehicle-mounted terminal and an antenna are generally included, a radio frequency signal is generated in the vehicle-mounted terminal, and the radio frequency signal can be transmitted through the antenna; meanwhile, the antenna can also receive radio frequency signals and feed the radio frequency signals back to the vehicle-mounted terminal, so that the information of the vehicle-mounted terminal is sent and received, and in the scene, the vehicle-mounted terminal can perform fault diagnosis on the antenna in a direct current voltage division mode.

However, the Vehicle-mounted terminal and the antenna are connected by a radio frequency coaxial cable, and in some high-frequency applications, for example, in a Vehicle to outside information exchange (V2X) scenario, a relay amplifier is usually required to be added between the Vehicle-mounted terminal and the antenna to compensate for the loss caused by a long cable; due to the introduction of the relay amplifier, the vehicle-mounted terminal cannot continuously adopt a direct-current voltage division mode to carry out fault diagnosis.

Disclosure of Invention

The embodiment of the application provides a fault diagnosis method, electronic equipment and a storage medium, and aims to provide a fault diagnosis mode, wherein a vehicle-mounted terminal negotiates with a relay amplifier to diagnose an initial time, and sends a fault code to the vehicle-mounted terminal by the relay amplifier after the initial time, so that the vehicle-mounted terminal carries out fault diagnosis. Therefore, the problem that the faults of the relay amplifier and the antenna cannot be diagnosed in the relay amplifier scene can be solved.

In a first aspect, an embodiment of the present application provides a fault diagnosis method, including:

detecting the state of the relay equipment, and sending a fault diagnosis trigger signal to the relay equipment according to the state so as to enable the relay equipment to enter a fault diagnosis mode, wherein the fault diagnosis trigger signal comprises one or more of a variable power supply voltage value, a sending/receiving control signal and a diagnosis control signal; specifically, the relay device may be a relay amplifier, or may be other relay amplifying devices; the state may include a power supply current state of the relay device, for example, whether or not a power supply current value of the relay device is abnormal.

Detecting the state of the relay equipment in a fault diagnosis mode, determining a fault code according to the state, and determining a fault according to the fault code; specifically, the state may include a supply current value of the relay device every transmission cycle, and the fault code may be composed of the supply current value.

In one possible implementation manner, detecting a state of the relay device, and sending a fault diagnosis trigger signal to the relay device according to the state includes:

detecting a relay supply current V in any transmission periodTXAnd a relay supply current V in any receiving periodRX

If VTXLess than a preset first threshold, or VTXGreater than a preset second threshold, or VRXLess than a preset third threshold, or VRXAnd if the current value is larger than the preset fourth threshold value, sending a fault diagnosis trigger signal to the relay equipment.

In one possible implementation manner, detecting a state of the relay device, and sending a fault diagnosis trigger signal to the relay device according to the state includes:

detecting the state of a transmission path of the relay equipment in any transmission period; in particular, the transmission path may be a transmission circuit of a relay device, which may turn on or off the transmission circuit to form a path or an open circuit of the transmission circuit.

And if the sending path is in an abnormal state, sending a fault diagnosis trigger signal to the relay equipment. In particular, the abnormal state may include that the transmission path is in an open state, i.e. the relay device closes the transmission path.

In one possible implementation manner, sending the fault diagnosis trigger signal to the relay device according to the state includes:

adjusting the voltage value of the variable power supply according to the state, and sending the voltage value of the variable power supply to the relay equipment; specifically, the variable power supply voltage value may be changed by adjusting the output voltage of the variable power supply unit.

Or adjusting the output duty ratio of the transmission/reception control signal according to the state, and transmitting the transmission/reception control signal to the relay device. Specifically, the control signal output duty ratio may be adjusted by adjusting the duration of the output level, for example, the output high level duration of the control signal may be increased.

In one possible implementation manner, detecting a state of the relay device in a fault diagnosis mode, and determining a fault code according to the state includes:

detecting a relay supply current V of a relay device in any transmission period in a fault diagnosis modeTX

If VTXIf the first code is smaller than the preset fifth threshold, determining the first code; in particular, the first code may be an integer, for example, the first code may be 0.

If VTXIf the value is larger than or equal to a preset fifth threshold value, determining a second code; in particular, the second code may be an integer, for example, the second code may be 1.

Acquiring a code set in M continuous sending periods, and determining fault codes according to the code set, wherein the code set comprises at least one of the first codes and the second codes. Specifically, codes in several consecutive transmission cycles may be combined to form a string of codes, where the string of codes is a fault code, for example, the fault code is 10111, and the fault code may correspond to a preset fault description.

In one possible implementation manner, obtaining a code set in M consecutive transmission cycles, and determining a fault code according to the code set includes:

acquiring a first code set from a first sending period to an Nth sending period of the relay equipment in a fault diagnosis mode, wherein the first code set comprises at least one of a first code and a second code; specifically, a code set in the initial N transmission cycles, that is, a first code set, may be acquired first, and the first code set may be used for handshaking between the relay device and the vehicle-mounted terminal device.

If the first code set is matched with the preset code set, acquiring a second code set from the (N + 1) th sending period to the (N + M) th sending period, wherein the second code set comprises at least one of a first code and a second code; specifically, if the code sets in the initial N transmission cycles match the preset handshake code set, it indicates that the time between the vehicle-mounted terminal device and the relay device is aligned, and the vehicle-mounted terminal device may receive the codes in the next M transmission cycles to obtain the second code set, so that the fault code may be determined according to the second code set.

And determining a fault code according to the second code set.

In a second aspect, an embodiment of the present application provides a fault diagnosis apparatus, including:

the relay equipment comprises a detection module, a fault diagnosis module and a fault diagnosis module, wherein the detection module is used for detecting the state of the relay equipment and sending a fault diagnosis trigger signal to the relay equipment according to the state so that the relay equipment enters a fault diagnosis mode, and the fault diagnosis trigger signal comprises one or more of a variable power supply voltage value, a sending/receiving control signal and a diagnosis control signal;

and the diagnosis module is used for detecting the state of the relay equipment in the fault diagnosis mode, determining a fault code according to the state and determining a fault according to the fault code.

In one possible implementation manner, the detection module includes:

a detection unit for detecting the relay power supply current V in any transmission periodTXAnd a relay supply current V in any receiving periodRX

A transmitting unit for determining if VTXLess than a preset first threshold, or VTXGreater than a preset second threshold, or VRXLess than a preset third threshold, or VRXAnd if the value is larger than the preset fourth threshold value, sending a fault diagnosis trigger signal to the relay equipment.

In one possible implementation manner, the detection module includes:

a detection unit for detecting a state of a transmission path of the relay device in any transmission cycle;

and the sending unit is used for sending a fault diagnosis trigger signal to the relay equipment if the sending path is in an abnormal state.

In one possible implementation manner, the detection module is further configured to adjust a variable power supply voltage value according to the state, and send the variable power supply voltage value to the relay device; or adjusting the output duty ratio of the transmission/reception control signal according to the state, and transmitting the transmission/reception control signal to the relay device.

In one possible implementation manner, the diagnosis module includes:

a detection unit for detecting the relay power supply current V in any transmission period of the relay device in the fault diagnosis modeTX

A comparison unit for comparing if VTXIf the first code is smaller than the preset fifth threshold, determining the first code; if VTXIf the value is larger than or equal to a preset fifth threshold value, determining a second code;

and the diagnosis unit is used for acquiring a code set in M continuous sending periods and determining fault codes according to the code set, wherein the code set comprises at least one of the first codes and the second codes.

In one possible implementation manner, the diagnosis unit includes:

the relay equipment comprises an acquisition subunit, a fault diagnosis module and a control unit, wherein the acquisition subunit is used for acquiring a first code set from a first transmission cycle to an Nth transmission cycle of the relay equipment in a fault diagnosis mode, and the first code set comprises at least one of a first code and a second code;

the matching subunit is configured to, if the first code set is matched with the preset code set, obtain a second code set from the (N + 1) th transmission cycle to the (N + M) th transmission cycle, where the second code set includes at least one of the first code and the second code;

and the diagnosis subunit is used for determining the fault code according to the second code set.

In a third aspect, an embodiment of the present application provides an electronic device, including:

a memory for storing computer program code, the computer program code including instructions that, when read from the memory, cause the apparatus to perform the steps of:

detecting the state of the relay equipment, and sending a fault diagnosis trigger signal to the relay equipment according to the state so that the relay equipment enters a fault diagnosis mode, wherein the fault diagnosis trigger signal comprises one or more of a variable power supply voltage value, a sending/receiving control signal and a diagnosis control signal;

and detecting the state of the relay equipment in a fault diagnosis mode, determining a fault code according to the state, and determining a fault according to the fault code.

In one possible implementation manner, when executed by the device, the instruction causes the device to detect a state of the relay device, and the step of sending the fault diagnosis trigger signal to the relay device according to the state includes:

detecting a relay supply current V in any transmission periodTXAnd a relay supply current V in any receiving periodRX

If VTXLess than a preset first threshold, or VTXGreater than a preset second threshold, or VRXLess than a preset third threshold, or VRXAnd if the value is larger than the preset fourth threshold value, sending a fault diagnosis trigger signal to the relay equipment.

In one possible implementation manner, when executed by the device, the instruction causes the device to detect a state of the relay device, and the step of sending the fault diagnosis trigger signal to the relay device according to the state includes:

detecting the state of a transmission path of the relay equipment in any transmission period;

and if the sending path is in an abnormal state, sending a fault diagnosis trigger signal to the relay equipment.

In one possible implementation manner, when executed by the device, the instruction causes the device to execute the step of sending the fault diagnosis trigger signal to the relay device according to the state, where the step includes:

adjusting the voltage value of the variable power supply according to the state, and sending the voltage value of the variable power supply to the relay equipment; or

And adjusting the output duty ratio of the transmission/reception control signal according to the state, and transmitting the transmission/reception control signal to the relay device.

In one possible implementation manner, when executed by the device, the instruction causes the device to detect a state of the relay device in a fault diagnosis mode, and the step of determining the fault code according to the state includes:

detecting a relay supply current V of a relay device in any transmission period in a fault diagnosis modeTX

If VTXIf the first code is smaller than the preset fifth threshold, determining the first code;

if VTXIf the value is larger than or equal to a preset fifth threshold value, determining a second code;

acquiring a code set in M continuous sending periods, and determining a fault code according to the code set, wherein the code set comprises at least one of a first code and a second code.

In one possible implementation manner, when executed by the device, the instruction causes the device to acquire a code set in M consecutive transmission cycles, and the step of determining the fault code according to the code set includes:

acquiring a first code set from a first sending period to an Nth sending period of the relay equipment in a fault diagnosis mode, wherein the first code set comprises at least one of a first code and a second code;

if the first code set is matched with the preset code set, acquiring a second code set from the (N + 1) th sending period to the (N + M) th sending period, wherein the second code set comprises at least one of a first code and a second code;

a fault code is determined from the second set of codes.

In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when run on a computer, causes the computer to perform the method according to the first aspect.

Drawings

Fig. 1A is a schematic circuit structure diagram of a vehicle-mounted terminal and an external antenna according to an embodiment of the present disclosure;

fig. 1B is a schematic circuit structure diagram of another circuit structure of the vehicle-mounted terminal and the external antenna according to the embodiment of the present disclosure;

FIG. 2 is a schematic structural diagram of an embodiment of an electronic device provided in the present application;

fig. 3 is a schematic circuit structure diagram of a current detection unit according to an embodiment of the present disclosure;

fig. 4 is a schematic circuit structure diagram of a variable power supply unit according to an embodiment of the present disclosure;

fig. 5 is a schematic circuit structure diagram of a combining/splitting unit according to an embodiment of the present disclosure;

FIG. 6 is a schematic structural diagram of another embodiment of an electronic device provided in the present application;

fig. 7 is a schematic flowchart of a fault diagnosis method according to an embodiment of the present application;

FIG. 8 is a system architecture diagram provided in accordance with an embodiment of the present application;

FIG. 9 is a schematic diagram of current state detection provided by an embodiment of the present application;

FIG. 10 is a schematic diagram of voltage detection provided by an embodiment of the present application;

fig. 11 is a schematic diagram illustrating detection of a duty cycle of a control signal output according to an embodiment of the present disclosure;

FIG. 12 is a schematic diagram of fault codes provided in an embodiment of the present application;

fig. 13 is a schematic diagram of a fault diagnosis apparatus according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.

In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.

In a conventional vehicle-mounted mobile communication system, a vehicle-mounted terminal and an antenna are usually included, the vehicle-mounted terminal is directly connected to an external antenna, and fault diagnosis of the antenna can be performed in a direct current voltage division manner, for example, as shown in fig. 1A, a circuit manner of the vehicle-mounted terminal and the external antenna is shown, and as shown in fig. 1B, another circuit manner of the vehicle-mounted terminal and the external antenna is shown, and through the circuit, a fault between a voltage detection point and a resistor R2 can be detected.

At present, a relay amplifier is usually added between a vehicle-mounted terminal and an antenna to compensate for the loss of a line, and in this scenario, the vehicle-mounted terminal supplies power to the relay amplifier through a radio frequency coaxial cable, so that the circuit shown in fig. 1A has the following disadvantages: the vehicle-mounted terminal needs an additional digital communication Interface, such as a Universal Asynchronous Receiver/Transmitter (UART), a Serial Peripheral Interface (SPI), and the like, and after performing frequency modulation (up/down conversion), the vehicle-mounted terminal is combined with a radio frequency signal through a combining unit and transmitted by a radio frequency coaxial cable. The system is complex and the realization difficulty is high. Meanwhile, the relay equipment needs the same conversion circuit to realize mutual information transmission; for the circuit of fig. 1B, due to the introduction of the relay amplifier, the failure of the relay amplifier and the antenna cannot be detected separately.

Based on the above problem, an embodiment of the present application provides a fault diagnosis method.

The technical scheme provided by the embodiment of the application can be applied to the vehicle-mounted terminal, and the specific form of the vehicle-mounted terminal executing the technical scheme is not particularly limited.

Fig. 2 is a schematic structural diagram of an electronic device 200 according to an embodiment of the present disclosure. The electronic device may be a vehicle-mounted terminal, and the electronic device 200 may include a processor 210, a regulated power supply 220, a current detection unit 230, a variable power supply unit 240, a combining/splitting unit 250, and a radio frequency signal controller 260. The current detection unit 230, the variable power supply unit 240 and the processor 210 can communicate with each other through internal connection paths to transmit control and/or data signals; the processor 210 may be configured to receive a data signal of the current detection unit 230, generate a control signal according to the data signal, and transmit the control signal to the variable power supply unit 240; in a specific implementation, the processor 210 may be a Micro-Controller Unit (MCU), the data signal may be a current value, and the control signal may be a diagnostic control signal or a Transmit (Tx)/Receive (Rx) control signal; the current detecting unit 230 can be used to detect the current consumed by the power supply for supplying power to the relay, and in a specific implementation, the current detecting unit 230 can be a single current detecting chip or an operational amplifier, as shown in fig. 3, which is a circuit diagram of the current detecting unit 230; the variable power supply unit 240 may be configured to output different power supply voltages according to a control signal sent by the processor 210, and in a specific implementation, the variable power supply unit 240 may be implemented by a single variable voltage chip, or implemented by a plurality of variable voltages with different output voltages through a switch, or implemented by changing an output voltage through a feedback resistor that switches the variable voltage, as shown in fig. 4, which is a circuit diagram of the variable power supply unit 240; the combining/splitting unit 250 may be configured to combine or separate a power signal and a radio frequency signal, where the power signal may include a variable power signal and a control signal output by the variable power supply unit 240; after the power supply signal and the radio frequency signal are combined in the vehicle-mounted terminal, the power supply signal and the radio frequency signal can be sent to a relay amplifier; as shown in fig. 5, which is a circuit diagram of the combining/splitting unit 250, the combining/splitting unit 250 may include a radio frequency filter 251 and a radio frequency trap 252; the rf filter 251 can be used for isolating a power signal, and the rf trap 252 can be used for isolating a rf signal from a power signal, wherein the rf trap 252 can include a rf ground capacitor 2521 and a quarter-wave impedance transforming line 2522; the rf grounding capacitor 2521 may provide good grounding characteristics for a desired rf operating frequency, and the rf grounding capacitor 2521 may be composed of one or more capacitors; the rf grounding capacitor 2521 can be equivalently opened to the required rf operating frequency after passing through the quarter-wavelength impedance transforming line 2522, so as to eliminate the influence on the rf path and the rf filter; the regulated power supply 220 may be used to power the relay amplifier; the rf signal controller 260 may be configured to send and receive rf signals, that is, send the rf signals to the combining/splitting unit 250, and also receive the rf signals from the combining/splitting unit 250.

Fig. 6 is a schematic structural diagram of an electronic device 600 according to an embodiment of the present disclosure. The electronic device may be a repeater amplifier, and the electronic device 600 may include a processor 610, a combining/splitting unit 620, a signal restoring unit 630, a power supply 640, and a radio frequency signal controller 650. The signal recovery unit 630 may be configured to recover a regulated power supply voltage signal and a control signal from the power supply signal, and may send the regulated power supply signal to the power supply 640 and send the control signal to the processor 610; the power supply 640 may be configured to receive the regulated power signal sent by the signal recovery unit 630, thereby providing voltage to components within the electronic device 600; the combiner/divider unit 620 is configured to receive a power signal and a radio frequency signal of the vehicle-mounted terminal, separate the power signal and the radio frequency signal, send the power signal to the signal recovery unit 630, and send the radio frequency signal to the radio frequency signal controller 650; the processor 610 is operable to control a state of the electronic device 600 according to the received control signal, wherein the state may include a transmitting state, a receiving state, and a current load state; the rf signal controller 650 may be configured to receive the rf signal sent by the combining/splitting unit 620, and send the rf signal through an antenna.

Referring to fig. 7 to fig. 12, a fault diagnosis method provided in an embodiment of the present application will now be described, and fig. 7 is a flowchart of an embodiment of the fault diagnosis method of the present application, including:

step 701, detecting the state of the relay device, and sending a fault diagnosis trigger signal to the relay device according to the state, so that the relay device enters a fault diagnosis mode.

Specifically, the state of the relay device may be detected by a vehicle-mounted terminal, which may be a Telematics Box (TBOX) or other type of vehicle; the relay device may be a relay amplifier or a relay device that performs signal compensation.

Fig. 8 shows a system architecture provided in the embodiment of the present application, in which a communication signal of TBOX is amplified by a relay amplifier, and then transmitted through an antenna installed outside a vehicle, where the TBOX and the relay amplifier are connected by a radio frequency coaxial cable.

The detection of the state of the relay equipment can be realized by carrying out current detection on a power supply for supplying power to the relay equipment by the vehicle-mounted terminal, so that whether a fault exists in the connection between the vehicle-mounted terminal and the relay equipment can be judged; in a specific implementation, as shown in fig. 9, the current detection units 230 of the in-vehicle terminals may respectively detect the relay device supply currents V in the transmission periodsTXAnd receiving the supply current V of the relay device in the periodRXProcessor 210 may convert VTXComparing with the upper limit value V1 and the lower limit value V2 in the transmission period, if V2 is equal to<VTX=<V1, the relay equipment can be considered to work normally, if V1<VTXOr VTX<V2, the relay device may be considered to be faulty; processor 210 may also convert VRXComparing with the upper limit value V3 and the lower limit value V4 in the receiving period, if V4 is equal to<VRX=<V3, the relay equipment can be considered to work normally, if V3<VRXOr VRX<V4, the relay device may be considered to be faulty.

Further, after detecting that the relay device has a fault, the vehicle-mounted terminal may send a fault diagnosis trigger signal to the relay device, where the fault diagnosis trigger signal may be used to trigger the relay device to enter a fault diagnosis mode, so that a fault code may be sent to the vehicle-mounted terminal, where the fault diagnosis trigger signal may include one or more of a variable power supply voltage value, a transmission/reception control signal, and a diagnosis control signal.

Optionally, the relay device entering the fault diagnosis mode may be implemented by the vehicle-mounted terminal changing the output voltage; in a specific implementation, as shown in fig. 10, variable power supply of the in-vehicle terminalThe unit 240 may vary the output voltage VdetAlternatively, the diagnostic control signal may be sent to the relay device at the same time, when the processor 610 in the relay device detects the current variable supply voltage VdetAt a preset voltage Vdet1And Vdet2Inner, i.e. Vdet1=<Vdet=<Vdet2Or the processor 610 detects the failure diagnosis trigger signal sent by the signal recovery unit 630, the relay device may enter the failure diagnosis mode.

Optionally, the relay device entering the fault diagnosis mode may also be implemented by the vehicle-mounted terminal changing an output duty ratio of the transmission/reception control signal of the transmission cycle; in a specific implementation, as shown in fig. 11, the processor 210 of the in-vehicle terminal may control a time period of outputting a high level of the transmission/reception control signal, for example, the original time period may be increased to 1ms to 2ms, and the processor 610 of the relay device may enter the fault diagnosis mode if it detects that the duty ratio of the transmission/reception signal transmitted by the signal recovery unit 630 is 2ms or detects that the duty ratio of the variable power supply voltage becomes 2 ms.

Alternatively, the vehicle-mounted terminal can directly set the supply voltage of the relay device to V after being powered ondetCausing the relay device to enter a fault diagnosis mode; or the vehicle-mounted terminal can also change the output duty ratio of the sending/receiving control signal after being electrified, so that the relay equipment enters a fault diagnosis mode; for example, in a scenario of loading self-test or power-on self-test, the vehicle-mounted terminal directly enters the relay device into a fault diagnosis mode after powering on the relay device each time.

Optionally, the relay device may detect a failure of the relay device itself and a failure of the antenna, and if the relay device detects at least one of the failure of the relay device itself and the failure of the antenna, the relay device may actively close the transmission path, thereby causing an abnormality of the transmission cycle, and after the vehicle-mounted terminal detects the abnormality of the transmission cycle, the vehicle-mounted terminal may set the power supply voltage of the relay device to VdetCausing the relay device to enter a fault diagnosis mode; or changing an output duty ratio of the transmission/reception control signal so that the relay device enters a failure diagnosis mode; for example, in the situations of radio frequency cable falling, antenna falling or relay damage,the relay device can actively close the transmission path to notify the vehicle-mounted terminal that the current relay device has a fault, so that the vehicle-mounted terminal transmits a signal to the relay device, and the relay device enters a fault diagnosis mode.

Step 702, detecting the state of the relay device in the fault diagnosis mode, determining a fault code according to the state, and determining a fault according to the fault code.

Specifically, after the relay device enters a fault diagnosis mode, a fault code may be sent to the vehicle-mounted terminal, where the fault code may be implemented by detecting a supply current of the relay device; in a specific implementation, as shown in fig. 12, in the fault diagnosis mode, the relay device may be in a transmission state, a reception state, or a current load state in each transmission cycle; the vehicle-mounted terminal can detect the supply current V of the relay equipment in each transmission periodTXAnd can supply the relay power supply current VTXComparing with a preset current threshold value V5 if VTX>The code in the transmission period may be identified as 1 if V5TX<V5, the codes in the transmission cycle can be identified as 0, so that the codes of multiple transmission cycles can be combined to form a fault code, wherein the fault code can be associated with the preset fault information, so that the corresponding fault can be determined according to the fault code.

Furthermore, before the relay equipment sends the fault code, the relay equipment can be aligned with the vehicle-mounted terminal at any time to avoid information mistransmission; in a specific implementation, after the vehicle-mounted terminal sends the fault diagnosis trigger signal to the relay device, the vehicle-mounted terminal may further send a sending periodic signal to the relay device, and after the relay device enters the fault diagnosis mode, if the sending periodic signal of the vehicle-mounted terminal is received, the relay device may be controlled to be in a transmitting state, a receiving state, or a current load state in the sending period, so as to send a handshake code to the vehicle-mounted terminal, where the handshake code may be implemented in the above-mentioned power supply current detection manner, for example, the vehicle-mounted terminal may continuously send N sending periods to the relay device, so that codes of consecutive N sending periods may be detected, and if N is set to 3 and the handshake code is set to 101, after three sending periods, if the vehicle-mounted terminal detects that the code is 101, the handshake code may be considered to be correct; at this time, the vehicle-mounted terminal can continuously send a transmission periodic signal to the relay amplifier, so that the fault code of the relay equipment is detected; after the handshaking between the relay equipment and the vehicle-mounted terminal is successful, the fault code can be continuously sent by controlling the power supply current value; for example, the in-vehicle terminal may continuously transmit M transmission cycles to the relay device, and thus may detect codes of the M transmission cycles, and if M is set to 5, after 5 transmission cycles, if the in-vehicle terminal detects that the code is 10111, the corresponding fault information may be queried according to the 10111 fault code.

Further, if the vehicle-mounted terminal verifies that the handshake code of the relay equipment is incorrect, handshake can be started again at this time; during specific implementation, after the handshake with the relay equipment fails, the vehicle-mounted terminal can power off and restart the relay equipment, can send a fault diagnosis trigger signal to the relay equipment again, and sends a sending period signal after sending the fault diagnosis trigger signal, so that handshake with the relay equipment is performed again, and after receiving the fault diagnosis trigger signal, the relay equipment can adjust a supply current according to the sending period signal of the vehicle-mounted terminal again, so that the vehicle-mounted terminal can detect a handshake code; the maximum number of times of handshaking may be preset, and if the number of times exceeds the predetermined number of times, it may be considered that the relay has a failure and normal communication cannot be performed, so the current diagnosis may be ended.

Fig. 13 is a schematic structural diagram of an embodiment of the fault diagnosis apparatus of the present application, and as shown in fig. 13, the fault diagnosis apparatus 1300 may include: a detection module 1310 and a diagnostic module 1320;

a detecting module 1310, configured to detect a state of the relay device, and send a fault diagnosis trigger signal to the relay device according to the state, so that the relay device enters a fault diagnosis mode, where the fault diagnosis trigger signal includes one or more of a variable power supply voltage value, a transmission/reception control signal, and a diagnosis control signal;

the diagnosis module 1320 is configured to detect a state of the relay device in a fault diagnosis mode, determine a fault code according to the state, and determine a fault according to the fault code.

In one possible implementation, the detecting module 1310 may include: a detection unit 1311 and a transmission unit 1312;

a detection unit 1311 for detecting the relay supply current V in any one transmission cycleTXAnd a relay supply current V in any receiving periodRX

A transmitting unit 1312 for determining if VTXLess than a preset first threshold, or VTXGreater than a preset second threshold, or VRXLess than a preset third threshold, or VRXAnd if the value is larger than the preset fourth threshold value, sending a fault diagnosis trigger signal to the relay equipment.

In one possible implementation, the detecting module 1310 may include: a detection unit 1313 and a transmission unit 1314;

a detection unit 1313 configured to detect a state of a transmission path of the relay device in any transmission cycle;

a sending unit 1314, configured to send a failure diagnosis trigger signal to the relay device if the sending path is in an abnormal state.

In a possible implementation manner, the detection module 1310 may be further configured to adjust the variable power supply voltage value according to the state, and send the variable power supply voltage value to the relay device; or adjusting the output duty ratio of the transmission/reception control signal according to the state, and transmitting the transmission/reception control signal to the relay device.

In one possible implementation, the diagnosis module 1320 may include: a detection unit 1321, a comparison unit 1322, and a diagnosis unit 1323;

a detection unit 1321 for detecting the relay supply current V in any transmission cycle of the relay device in the failure diagnosis modeTX

A comparison unit 1322 for comparing VTXIf the first code is smaller than the preset fifth threshold, determining the first code; if VTXIf the value is larger than or equal to a preset fifth threshold value, determining a second code;

a diagnosing unit 1323, configured to obtain a code set in M consecutive transmission cycles, and determine a fault code according to the code set, where the code set includes at least one of the first code and the second code.

In a possible implementation manner, the diagnosis unit 1323 may include: an acquisition subunit 13231, a matching subunit 13232, and a diagnostic subunit 13233;

an obtaining subunit 13231, configured to obtain a first code set from a first transmission cycle to an nth transmission cycle of the relay device in the failure diagnosis mode, where the first code set includes at least one of a first code and a second code;

a matching subunit 13232, configured to, if the first code set matches the preset code set, obtain a second code set from an N +1 th sending period to an N + M th sending period, where the second code set includes at least one of a first code and a second code;

a diagnostic subunit 13233 for determining a fault code based on the second set of codes.

The fault diagnosis apparatus provided in the embodiment shown in fig. 13 may be used to implement the technical solutions of the method embodiments shown in fig. 7 to 12 of the present application, and the implementation principles and technical effects thereof may be further referred to in the description of the method embodiments.

It should be understood that the division of the modules of the fault diagnosis apparatus shown in fig. 13 is merely a logical function division, and the actual implementation may be wholly or partially integrated into one physical entity or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling by the processing element in software, and part of the modules can be realized in the form of hardware. For example, the detection module may be a separate processing element, or may be integrated into a chip of the electronic device. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.

For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors (DSPs), one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, these modules may be integrated together and implemented in the form of a System-On-a-Chip (SOC)

It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 200. In other embodiments of the present application, the electronic device 200 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.

It is to be understood that the electronic devices and the like described above include hardware structures and/or software modules for performing the respective functions in order to realize the functions described above. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.

In the embodiment of the present application, the terminal and the like may be divided into functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.

Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.

Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.

The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:对于任何发声设备的移动服务请求

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!