Transmission method, device, storage medium and electronic device for analog current signal
By acquiring the analog voltage signal in the terminal device and converting it into an analog current signal that matches the working state, the problem of high power consumption in the two-wire current transmission solution is solved, and efficient energy saving of the terminal device is achieved.
Patent Information
- Application Number
- CN202211653672.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2042-12-21
AI Technical Summary
The existing two-wire current transmission solution has high power consumption under different working conditions of terminal equipment, resulting in energy waste and temperature rise.
By obtaining the analog voltage signal of the terminal device and converting it into a corresponding analog current signal according to different working states, the voltage-to-current module is used for linear conversion to control the current amplitude to match the working state, avoiding controlling the output current at the maximum current to reduce power consumption.
It achieves precise control of analog current signals under different working conditions, reduces the energy consumption of terminal equipment, avoids the problem of high power consumption, and improves the working efficiency and energy-saving effect of the equipment.
Smart Images

Figure CN116092283B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of electronic technology, and in particular, to a method, device, storage medium, and electronic device for transmitting an analog current signal. Background Art
[0002] Terminal devices (such as voiceprint capture devices or image capture devices) are typically powered by a two-wire system, a four-wire system, or even more. Generally, terminal device power consumption is stable with minimal fluctuations. However, some terminal devices, such as cameras, do not require infrared fill light during daytime operation but require it at night. The power consumption of cameras during the day and at night differs significantly. To achieve longer-range imaging at night, some camera types use infrared fill light power consumption several times greater than that of daytime operation. In a two-wire system, the terminal device's power return and signal return share the same transmission current line. This means that the terminal device's input operating current signal and the terminal device's output current signal are in the same loop. To ensure proper operation of the terminal device, the minimum output current must be set to the current value at the terminal device's maximum power consumption, and the actual required current signal must be added to this value. For example, a device requires 1A of current in operating state 1 and 2A in operating state 2, and signal transmission requires 0-20mA of current. In a two-wire system, the related art requires controlling the current transmission range to 2-2.02A to ensure normal operation of the terminal device. However, in operating state 1, only 1-1.02A is required, resulting in 1A of power being wasted, a waste of nearly 100%. This excess power is ineffectively dissipated as heat, causing temperature rise, which is detrimental to reliable device operation and energy conservation. In other words, the two-wire current transmission solution used by terminal devices in the related art consumes a lot of power, resulting in poor energy conservation.
[0003] Currently, no effective solution has been proposed to address the problem of high power consumption in the two-wire current transmission solution in related technologies. Summary of the Invention
[0004] Embodiments of the present invention provide a method, device, storage medium, and electronic device for transmitting an analog current signal, so as to at least solve the problem of high power consumption of a two-wire current transmission solution existing in the related art.
[0005] According to one embodiment of the present invention, a method for transmitting an analog current signal is provided, comprising: when a terminal device is operating in a first working state, obtaining a first analog voltage signal, wherein the first analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and the first working state is one of multiple working states of the terminal device; converting the first analog voltage signal into a first analog current signal according to a first control signal, wherein the current amplitude of the first analog current signal is a first current amplitude required for the terminal device to operate in the first working state, and the first control signal is a control signal corresponding to the first working state among multiple control signals, the multiple working states correspond one-to-one to the multiple control signals, and each control signal is used to control the current amplitude of the analog current signal output by the terminal device when it is operating in the corresponding working state to the current amplitude required for the terminal device to operate in the corresponding working state; and transmitting the first analog current signal output by the terminal device to a target processing device.
[0006] In an exemplary embodiment, converting the first analog voltage signal into a first analog current signal according to the first control signal includes: when the multiple control signals are multiple reference voltage signals and the first control signal is a first reference voltage signal, superimposing the first analog voltage signal with the first reference voltage signal to obtain a first voltage signal to be converted, wherein the first reference voltage signal and the first voltage signal to be converted are both analog signals, the first reference voltage signal is a reference voltage signal corresponding to the first working state among the multiple reference voltage signals, the multiple working states correspond one-to-one to the multiple reference voltage signals, each reference voltage signal is used to control the current amplitude of the analog current signal output by the terminal device when the terminal device operates in the corresponding working state to the current amplitude required by the terminal device operating in the corresponding working state, and the first reference voltage signal is used to control the current amplitude of the first analog current signal output by the terminal device when the terminal device operates in the first working state to the first current amplitude required by the terminal device operating in the first working state; and performing voltage-to-current processing on the first voltage signal to be converted to obtain the first analog current signal.
[0007] In an exemplary embodiment, the voltage-to-current processing of the first voltage signal to be converted to obtain the first analog current signal includes: performing voltage-to-current processing on the first voltage signal to be converted according to a fixed linear conversion ratio through a voltage-to-current module to obtain the first analog current signal.
[0008] In an exemplary embodiment, superimposing the first analog voltage signal with the first reference voltage signal to obtain a first voltage signal to be converted includes: superimposing the first analog voltage signal with the first reference voltage signal through an adder to obtain the first voltage signal to be converted, wherein the first analog voltage signal is input into a first input end of the adder, the second input end of the adder is adjusted to input the first reference voltage signal among the multiple reference voltage signals, and the second input end of the adder is set to allow input of one reference voltage signal among the multiple reference voltage signals.
[0009] In an exemplary embodiment, the converting of the first analog voltage signal into a first analog current signal according to the first control signal includes: when the multiple control signals are multiple proportional adjustment signals and the first control signal is a first proportional adjustment signal, performing voltage-to-current processing on the first analog voltage signal according to a first linear conversion ratio determined by the first proportional adjustment signal by a voltage-to-current module to obtain the first analog current signal, wherein the first proportional adjustment signal is a proportional adjustment signal corresponding to the first working state among the multiple proportional adjustment signals, the multiple working states correspond one-to-one to the multiple proportional adjustment signals, each proportional adjustment signal is used to determine the corresponding linear conversion ratio adopted by the voltage-to-current module, and the corresponding linear conversion ratio determined by each proportional adjustment signal The linear conversion ratio is used to control the current amplitude of the analog current signal output by the voltage-to-current module when the terminal device is working in the corresponding working state to the current amplitude required by the terminal device working in the corresponding working state, and the first proportional adjustment signal is used to control the current amplitude of the first analog current signal output by the voltage-to-current module when the terminal device is working in the first working state to the first current amplitude required by the terminal device working in the first working state; wherein, the voltage-to-current module is configured to determine the corresponding linear conversion ratio according to a control signal input from the multiple control signals, and perform voltage-to-current processing on the analog voltage signal input by the voltage-to-current module according to the corresponding linear conversion ratio to obtain a corresponding analog current signal.
[0010] In an exemplary embodiment, the voltage-to-current module performs voltage-to-current processing on the first analog voltage signal according to a first linear conversion ratio determined by the first proportional adjustment signal to obtain the first analog current signal, including: adjusting the resistance value of the target resistor in the voltage-to-current module through the first proportional adjustment signal so that the linear conversion ratio of the voltage-to-current module reaches the first linear conversion ratio, wherein the linear conversion ratio of the voltage-to-current module is associated with the resistance value of the target resistor; and performing voltage-to-current processing on the first analog voltage signal through the adjusted voltage-to-current module to obtain the first analog current signal.
[0011] In an exemplary embodiment, the method further includes: when the terminal device is operating in a second working state, obtaining a second analog voltage signal, wherein the second analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and the second working state is a working state different from the first working state among multiple working states of the terminal device; according to a second control signal, converting the second analog voltage signal into a second analog current signal, wherein the current amplitude of the second analog current signal is a second current amplitude required for the terminal device to operate in the second working state, the second current amplitude is different from the first current amplitude, and the second control signal is a control signal corresponding to the second working state among the multiple control signals; and transmitting the second analog current signal output by the terminal device to the target processing device.
[0012] According to another embodiment of the present invention, a transmission device for an analog current signal is also provided, including: a first acquisition module, used to acquire a first analog voltage signal when a terminal device is operating in a first working state, wherein the first analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and the first working state is one of multiple working states of the terminal device; a first conversion module, used to convert the first analog voltage signal into a first analog current signal according to a first control signal, wherein the current amplitude of the first analog current signal is the first current amplitude required for the terminal device to operate in the first working state, and the first control signal is a control signal corresponding to the first working state among multiple control signals, the multiple working states correspond one-to-one to the multiple control signals, and each control signal is used to control the current amplitude of the analog current signal output by the terminal device when operating in the corresponding working state to the current amplitude required for the terminal device to operate in the corresponding working state; a first transmission module, used to transmit the first analog current signal output by the terminal device to a target processing device.
[0013] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.
[0014] According to another embodiment of the present invention, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
[0015] According to the present invention, when a terminal device is operating in a first working state, a first analog voltage signal is obtained, wherein the first analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and then the first analog voltage signal is converted into a first analog current signal according to a first control signal, wherein the first control signal is a control signal corresponding to the first working state among multiple control signals, and the current amplitude of the first analog current signal is the first current amplitude required for the terminal device to operate in the first working state, and each control signal is used to control the current amplitude of the analog current signal output by the terminal device when operating in the corresponding working state to the current amplitude required in the corresponding working state; and then the first analog current signal is transmitted to a target processing device. That is, the current amplitude of the first analog current signal output by the terminal device is controlled to the first current amplitude required in the first working state according to the first control signal, thereby achieving the purpose of controlling the current amplitude of the analog current signal output by the terminal device to match the working state of the terminal device, and avoiding the problem of high power consumption in the related art of controlling the output current to the required maximum current when the terminal device has multiple working states. Therefore, the problem of high power consumption of the two-wire current transmission solution existing in the related art is solved, and the effect of reducing energy consumption is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a block diagram of the hardware structure of a mobile terminal according to the method for transmitting analog current signals according to an embodiment of the present invention;
[0017] Figure 2 This is a power supply block diagram of an acquisition system in related technology;
[0018] Figure 3 is a flow chart of a method for transmitting an analog current signal according to an embodiment of the present invention;
[0019] Figure 4 It is a power supply frame of a terminal device according to a specific embodiment of the present invention. Figure 1 ;
[0020] Figure 5is an example diagram of a voltage-to-current module according to a specific embodiment of the present invention;
[0021] Figure 6 is a schematic diagram of voltage / current linear conversion according to a specific embodiment of the present invention;
[0022] Figure 7-a It is a power supply frame of a terminal device according to a specific embodiment of the present invention. Figure 2 ;
[0023] Figure 7-b It is a power supply frame of a terminal device according to a specific embodiment of the present invention. Figure 3 ;
[0024] Figure 8 is a power supply block diagram of an acquisition system according to a specific embodiment of the present invention;
[0025] Figure 9 is a flow chart of power consumption switching control of a terminal device according to an embodiment of the present invention;
[0026] Figure 10 4 is a structural block diagram of a transmission device for analog current signals according to an embodiment of the present invention.
[0027] Description of reference numerals:
[0028] LM1 - first operational amplifier, Q1 - first transistor, R1 - first resistor, R2 - second resistor, R3 - third resistor, R4 - fourth resistor, R5 - fifth resistor, R6 - sixth resistor, R7 - seventh resistor. DETAILED DESCRIPTION
[0029] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with embodiments.
[0030] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0031] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a block diagram of the hardware structure of a mobile terminal according to an embodiment of the present invention for a method for transmitting analog current signals. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA and other processing devices) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0032] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the analog current signal transmission method in the embodiment of the present invention. The processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-mentioned method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0033] The transmission device 106 is used to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by the mobile terminal's communications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0034] In related technologies, for the acquisition system using a two-wire power supply method, the power supply scheme is as follows: Figure 2 As shown, Figure 2It is a power supply block diagram of the acquisition system in the related technology. When the terminal device has multiple working states, for example, the terminal device working state 1 requires 1A current, working state 2 requires 2A current, and the transmission of the collected signal requires 0-20mA current. In order to ensure the normal operation of the terminal device, the output current of the terminal device is usually controlled at the required maximum current, such as the current corresponding to working state 2. In this way, when the terminal device switches to working state 1, it will cause power consumption waste.
[0035] In this embodiment, a method for transmitting an analog current signal is provided. Figure 3 FIG. 1 is a flow chart of a method for transmitting an analog current signal according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0036] Step S302: Acquire a first analog voltage signal when the terminal device is operating in a first operating state, where the first analog voltage signal is obtained by processing a signal collected by a sensor in the terminal device, and the first operating state is one of multiple operating states of the terminal device.
[0037] Step S304: Convert the first analog voltage signal into a first analog current signal according to a first control signal, wherein a current amplitude of the first analog current signal is a first current amplitude required by the terminal device when operating in the first operating state, and the first control signal is a control signal corresponding to the first operating state among a plurality of control signals, the plurality of operating states corresponding to the plurality of control signals on a one-to-one basis, and each control signal is used to control a current amplitude of the analog current signal output by the terminal device when operating in a corresponding operating state to be a current amplitude required by the terminal device when operating in the corresponding operating state;
[0038] Step S306: Transmit the first analog current signal output by the terminal device to a target processing device.
[0039] Through the above steps, when the terminal device is operating in the first working state, a first analog voltage signal is obtained, wherein the first analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and then the first analog voltage signal is converted into a first analog current signal according to a first control signal, wherein the first control signal is a control signal corresponding to the first working state among multiple control signals, and the current amplitude of the first analog current signal is the first current amplitude required for the terminal device to operate in the first working state, and each control signal is used to control the current amplitude of the analog current signal output by the terminal device when operating in the corresponding working state to the current amplitude required in the corresponding working state; and then the first analog current signal is transmitted to the target processing device. That is, the current amplitude of the first analog current signal output by the terminal device is controlled to the first current amplitude required in the first working state according to the first control signal, thereby achieving the purpose of controlling the current amplitude of the analog current signal output by the terminal device to match the working state of the terminal device, and avoiding the problem of high power consumption in the related art of controlling the output current to the required maximum current when the terminal device has multiple working states. Therefore, the problem of high power consumption of the two-wire current transmission solution existing in the related art is solved, and the effect of reducing energy consumption is achieved.
[0040] Among them, the execution subject of the above steps can be a terminal device, or a processor or controller in the terminal device, or a processor with human-computer interaction capabilities configured on a storage device, or a processing device or processing unit with similar processing capabilities, etc., but not limited to these.
[0041] Combine Figure 4 The above embodiment is described. Figure 4 This is a power supply block diagram of a terminal device according to a specific embodiment of the present invention. For a terminal device adopting a two-wire current transmission scheme, the power return and signal return of the terminal device share the transmission current line, or in other words, the working current signal input by the terminal device and the current signal output by the terminal device are in the same loop. When the terminal device is operating in a first working state, a first analog voltage signal is obtained. For example, the first analog voltage signal can be a signal obtained by performing digital-to-analog conversion on a digital signal collected by a sensor in the terminal device, or a signal obtained by processing a digital signal collected by a sensor in the terminal device and performing digital-to-analog conversion (such as Figure 4 Optionally, the first analog voltage signal may also be a signal obtained by conditioning the analog signal collected by the sensor in the terminal device. For example, if the sensor collects an analog voltage signal, the collected analog voltage signal may be amplified and conditioned to obtain the first analog voltage signal. In this case, Figure 4The processor & DAC module in the terminal device is replaced with a signal conditioning circuit module, wherein the first working state is one of the multiple working states of the terminal device. For example, the working state of the terminal device includes working state 1 and working state 2. Of course, it can also include more working states. Taking the camera device as an example, working state 1 can correspond to the daytime working mode, and working state 2 can correspond to the nighttime working mode. The sensor in the terminal device is used to collect signals, such as image signals, voiceprint signals, or other signals; according to the first control signal, the first analog voltage signal is converted into a first analog current signal, wherein the current amplitude of the first analog current signal is the first current amplitude required by the terminal device to work in the first working state. For example, Figure 4 Where Vr is equivalent to the above-mentioned first control signal. The first current amplitude required by the terminal device when working in the first working state (such as the daytime working state, or the corresponding daytime working mode) is 1A, so the current amplitude of the above-mentioned first analog current signal obtained by conversion needs to reach 1A, or about 1A; in actual applications, the terminal device may have multiple working states, and multiple working states correspond one-to-one to multiple control signals, that is, each control signal is used to control the current amplitude of the analog current signal output by the terminal device in the corresponding working state to reach the current amplitude required by the working state. For example, the second current amplitude required by the terminal device when working in the second working state (such as the night working state, or the corresponding night working mode) is 2A, and if the control signal corresponding to the second working state is the second control signal, then the current amplitude of the first analog current signal obtained by converting the first analog voltage signal according to the second control signal needs to reach 2A, or about 2A. The same is true for other working states, such as Figure 4 As shown, the first control signal Vr is superimposed on the first analog voltage signal and then subjected to voltage-to-current processing (or V / I conversion) to obtain a first analog current signal; the first analog current signal output by the terminal device is then transmitted to the target processing device, and the target processing device can further process the received first analog current signal, for example, performing current-to-voltage processing on the first analog current signal, and then performing ADC acquisition and digital processing, etc., and can further analyze the converted digital signal, etc. The above-mentioned terminal device uses an analog current signal to transmit the terminal device signal, which can achieve the effects of long transmission distance, low interference, no distortion, and low delay. Through the above embodiment, the purpose of controlling the current amplitude of the analog current signal output by the terminal device to match the working state of the terminal device is achieved, avoiding the problem of high power consumption in the related art of controlling the output current to the required maximum current when the terminal device has multiple working states. Therefore, the problem of high power consumption of the two-wire current transmission solution in the related art is solved, and the effect of reducing energy consumption is achieved.
[0042] In an optional embodiment, converting the first analog voltage signal into a first analog current signal according to the first control signal includes: when the multiple control signals are multiple reference voltage signals and the first control signal is a first reference voltage signal, superimposing the first analog voltage signal with the first reference voltage signal to obtain a first voltage signal to be converted, wherein the first reference voltage signal and the first voltage signal to be converted are both analog signals, the first reference voltage signal is a reference voltage signal corresponding to the first working state among the multiple reference voltage signals, the multiple working states correspond one-to-one to the multiple reference voltage signals, each reference voltage signal is used to control the current amplitude of the analog current signal output by the terminal device when the terminal device is working in the corresponding working state to the current amplitude required by the terminal device to work in the corresponding working state, and the first reference voltage signal is used to control the current amplitude of the first analog current signal output by the terminal device when the terminal device is working in the first working state to the first current amplitude required by the terminal device to work in the first working state; performing voltage-to-current processing on the first voltage signal to be converted to obtain the first analog current signal.In this embodiment, the first analog voltage signal and the first reference voltage signal are superimposed to obtain a first voltage signal to be converted, and then the first voltage signal to be converted is subjected to voltage-to-current processing to obtain a first analog current signal; in this embodiment, there may be multiple control signals, and accordingly, there may also be corresponding multiple reference voltage signals. For example, the above-mentioned first reference voltage signal corresponds to the first control signal, and at the same time, each reference signal corresponds to a working state of the terminal device. For example, the first reference voltage signal is 1V (or other reference voltage), corresponding to the terminal device working in the first working state, and the second reference voltage signal is 2V (or other reference voltage), corresponding to the terminal device working in the second working state, and each reference voltage signal is used to control the current amplitude of the analog current signal output when the terminal device works in the corresponding working state to be within the working state. The current amplitude required in the working state, for example, the first reference voltage signal (such as 1V) is used to control the current amplitude of the analog current signal output by the terminal device (such as the camera device) when it is working in the first working state (such as the daytime working state) to the current amplitude required in the working state (i.e., the first working state) (such as 1A, or other values), or the second reference voltage signal (such as 2V) is used to control the current amplitude of the analog current signal output by the terminal device (such as the camera device) when it is working in the second working state (such as the night working state) to the current amplitude required in the working state (i.e., the second working state) (such as 2A, or other values), that is, the terminal device can automatically control the output analog current size to just meet its own needs according to its own state and the required power consumption, thereby achieving the effect of optimal power consumption utilization, and thus achieving the purpose of making the terminal device always work in a high efficiency range.
[0043] In an optional embodiment, performing voltage-to-current processing on the first voltage signal to be converted to obtain the first analog current signal includes: performing voltage-to-current processing on the first voltage signal to be converted according to a fixed linear conversion ratio using a voltage-to-current module to obtain the first analog current signal. In this embodiment, the first voltage signal to be converted can be converted into the first analog current signal using a voltage-to-current module (or V / I module) according to a fixed linear conversion ratio. Figure 5 This is an example diagram of a voltage-to-current module according to a specific embodiment of the present invention. The voltage-to-current module can convert an analog voltage signal into an analog current signal, and can linearly convert a voltage signal into a current signal. In this way, the terminal device can use an analog current signal for transmission, which can achieve the purpose of long transmission distance and reduced interference. Compared with the related technology that requires the addition of switching equipment to achieve long-distance transmission, resulting in high costs, this embodiment can achieve the purpose of reducing the cost of long-distance transmission.
[0044] In an optional embodiment, superimposing the first analog voltage signal with the first reference voltage signal to obtain a first voltage signal to be converted includes: superimposing the first analog voltage signal with the first reference voltage signal through an adder to obtain the first voltage signal to be converted, wherein the first analog voltage signal is input into the first input end of the adder, the second input end of the adder is adjusted to input the first reference voltage signal among the multiple reference voltage signals, and the second input end of the adder is set to allow input of one reference voltage signal among the multiple reference voltage signals. In this embodiment, the terminal device may include an adder (or adding module), which can superimpose the first analog voltage signal and the first reference voltage signal to obtain a first voltage signal to be converted; optionally, the adder may include a first input terminal and a second input terminal, wherein the first input terminal is used to input the above-mentioned first analog voltage signal, and the second input terminal is used to input one of the multiple reference voltage signals. In this way, when the terminal device is operating in the first working state, the first reference voltage signal corresponding to the first working state (such as the above-mentioned 1V, or others) is input into the second input terminal and superimposed with the first analog voltage signal to obtain the above-mentioned first conversion voltage signal. Similarly, when the terminal device is operating in the second working state, the second reference voltage signal corresponding to the second working state (such as the above-mentioned 2V, or others) is input into the second input terminal and superimposed with the first analog voltage signal to obtain the above-mentioned first conversion voltage signal; of course, the second input terminal can also be used to input the first analog voltage signal, and the first input terminal can be used to input the reference voltage signal.
[0045] In the above embodiment, the terminal device can determine the corresponding working state of the terminal device by collecting external light environment information (such as illumination, light intensity, etc.). Optionally, the corresponding working state of the terminal device can also be determined according to the time rule. For example, 7:00-18:00 corresponds to the daytime working state (or daytime working mode, such as the above-mentioned first working state), and other time periods correspond to the night working state (or night working mode, such as the above-mentioned second working state). In actual applications, when it is determined that the state switching condition is met, the terminal device needs to control the output current, because the terminal device has different power consumption reflux corresponding to different working states. For example, the first working state is 1A (equivalent to the terminal device in the above-mentioned first working state). Its own power consumption reflux), the second working state is 2A (equivalent to the power consumption reflux of the terminal device itself in the aforementioned second working state), and the transmission of the collected signal requires 0-20mA, that is, the current amplitude required for the terminal device to work in the first working state is 1.02A (corresponding to the aforementioned first analog current signal), and the current amplitude required for the terminal device to work in the second working state is 2.02A (corresponding to the aforementioned first analog current signal). In this embodiment, according to the needs of the terminal device's own working state, the corresponding reference voltage signal is selected to be superimposed with the first analog voltage signal to obtain a first voltage signal to be converted, and then the first analog current signal matching the working state of the terminal device can be obtained through the voltage-to-current module. Through this embodiment, the terminal device can automatically control the output analog current size to just meet its own needs according to its own state and the required power consumption, thereby achieving the effect of optimal power consumption utilization, and thus achieving the purpose of making the terminal device always work in a high-efficiency range.
[0046] In an optional embodiment, converting the first analog voltage signal into a first analog current signal according to the first control signal includes: when the multiple control signals are multiple proportional adjustment signals and the first control signal is a first proportional adjustment signal, performing voltage-to-current processing on the first analog voltage signal according to a first linear conversion ratio determined by the first proportional adjustment signal through a voltage-to-current module to obtain the first analog current signal, wherein the first proportional adjustment signal is a proportional adjustment signal corresponding to the first working state among the multiple proportional adjustment signals, the multiple working states correspond one-to-one to the multiple proportional adjustment signals, each proportional adjustment signal is used to determine the corresponding linear conversion ratio adopted by the voltage-to-current module, and the corresponding linear conversion ratio determined by each proportional adjustment signal The linear conversion ratio is used to control the current amplitude of the analog current signal output by the voltage-to-current module when the terminal device is working in the corresponding working state to the current amplitude required by the terminal device working in the corresponding working state, and the first proportional adjustment signal is used to control the current amplitude of the first analog current signal output by the voltage-to-current module when the terminal device is working in the first working state to the first current amplitude required by the terminal device working in the first working state; wherein, the voltage-to-current module is configured to determine the corresponding linear conversion ratio according to a control signal input from the multiple control signals, and perform voltage-to-current processing on the analog voltage signal input by the voltage-to-current module according to the corresponding linear conversion ratio to obtain a corresponding analog current signal. In this embodiment, the control signal may be a proportional adjustment signal, each proportional adjustment signal corresponding to a linear conversion ratio of a voltage-to-current module (or V / I module). For example, if the first current amplitude required by the terminal device when operating in a first working state (such as a daytime working state or a corresponding daytime working mode) is 1A, then the current amplitude of the first analog current signal obtained by conversion needs to reach 1A, or approximately 1A. The first proportional adjustment signal is used to control the current amplitude of the first analog current signal output by the voltage-to-current module when the terminal device is operating in the first working state to the first current amplitude (such as the aforementioned 1A) required by the terminal device operating in this state (i.e., the first working state). Similarly, if the second current amplitude required by the terminal device when operating in a second working state (such as a nighttime working state or a corresponding nighttime working mode) is 2A, and if the proportional adjustment signal corresponding to the second working state is a second proportional adjustment signal, then the current amplitude of the first analog current signal obtained by converting the first analog voltage signal needs to reach 2A, or approximately 2A, according to the second proportional adjustment signal. The same applies to other working states. Figure 5 The voltage-to-current module shown can realize V / I linear conversion. Figure 6is a schematic diagram of voltage / current linear conversion according to a specific embodiment of the present invention, for example, the first proportional adjustment signal (such as C1, corresponding to Figure 7-a or Figure 7-b The linear conversion ratio of the voltage-to-current module is K1, and the second proportional adjustment signal (such as C2) corresponds to Figure 7-a or Figure 7-b The linear conversion ratio of the voltage-to-current module corresponding to the adjustment signal C) is K2. According to different proportional adjustment signals, the linear conversion ratio corresponding to the voltage-to-current module can be different. Through this embodiment, it is possible to control the proportional adjustment signal when the terminal device is working in different working states so that the output current signal of the voltage-to-current module can meet the output current requirements.
[0047] In an optional embodiment, the voltage-to-current module performs voltage-to-current processing on the first analog voltage signal according to the first linear conversion ratio determined by the first proportional adjustment signal to obtain the first analog current signal, including: adjusting the resistance of the target resistor in the voltage-to-current module through the first proportional adjustment signal so that the linear conversion ratio of the voltage-to-current module reaches the first linear conversion ratio, wherein the linear conversion ratio of the voltage-to-current module is associated with the resistance of the target resistor; performing voltage-to-current processing on the first analog voltage signal through the adjusted voltage-to-current module to obtain the first analog current signal. In this embodiment, the resistance of the target resistor in the voltage-to-current module (or V / I module) can be adjusted, and the resistance of the target resistor is associated with the linear conversion ratio of the voltage-to-current module. It can be used Figure 5 The voltage-to-current module shown in FIG. 1 may include: a first operational amplifier and a first transistor, wherein the first output terminal of the first operational amplifier is connected to the base of the first transistor via a first resistor, and the aforementioned first analog voltage signal is connected to the first non-inverting input terminal of the first operational amplifier via a second resistor. In practical applications, the first analog voltage signal may be a signal obtained by performing digital-to-analog conversion on a digital signal collected by a sensor in a terminal device, or may be a signal obtained by performing digital-to-analog conversion on a digital signal collected by a sensor in a terminal device after being processed by a processor (e.g., Figure 7-a The processor processes the digital signal output by the sensor and then performs digital-to-analog conversion on the sensor to obtain a first analog voltage signal. Optionally, the first analog voltage signal can also be a signal conditioning of the analog signal collected by the sensor in the terminal device (such as Figure 7-bThe signal obtained after the signal conditioning circuit is connected to the sensor, for example, if the sensor collects an analog voltage signal, the collected analog voltage signal can be amplified and conditioned to obtain the above-mentioned first analog voltage signal, the first inverting input terminal of the first operational amplifier is grounded through the third resistor, and is connected to the emitter of the first transistor through the fourth resistor, the first non-inverting input terminal of the first operational amplifier is connected to the first end of the sixth resistor (corresponding to the above-mentioned target resistor, which allows adjustment) through the fifth resistor, and the second end of the sixth resistor is connected to the emitter of the first transistor, the collector of the first transistor is connected to the input power supply through the seventh resistor, and the first end of the sixth resistor is the output end of the above-mentioned voltage-to-current module. In this embodiment, the resistance value of the sixth resistor can be adjusted so that the linear conversion ratio of the voltage-to-current module reaches the first linear conversion ratio, so that the first analog current signal obtained after the voltage-to-current module converts the first analog voltage signal can meet the current required by the terminal device in the first working state.
[0048] In an optional embodiment, the method further includes: when the terminal device is operating in a second working state, obtaining a second analog voltage signal, wherein the second analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and the second working state is a working state among multiple working states of the terminal device that is different from the first working state; according to a second control signal, converting the second analog voltage signal into a second analog current signal, wherein the current amplitude of the second analog current signal is a second current amplitude required for the terminal device to operate in the second working state, the second current amplitude is different from the first current amplitude, and the second control signal is a control signal among the multiple control signals corresponding to the second working state; and transmitting the second analog current signal output by the terminal device to the target processing device. In this embodiment, when the terminal device is operating in the second working state, the second analog voltage signal can be converted into a second analog current signal according to the second control signal, and then the second analog current signal is transmitted to the target processing device, and the current amplitude of the second analog current signal is the second current amplitude required by the terminal device when operating in the second working state (such as the aforementioned 2A, or 2.02A, or other), wherein the second control signal is a control signal corresponding to the second working state, and the second working state can be the aforementioned night working state. In actual applications, the terminal device may also have more different working states, each working state corresponds to a control signal, and then according to the control signal, the converted second analog current signal (or the aforementioned first analog current signal) meets the current requirement required by the terminal device in the corresponding working state. Through this embodiment, the terminal device can automatically control the output analog current size to just meet its own needs according to its own state and required power consumption, thereby achieving the effect of optimal power consumption utilization.
[0049] Obviously, the above-described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The present invention will be described in detail below with reference to the embodiments.
[0050] Figure 8 is a power supply block diagram of an acquisition system according to a specific embodiment of the present invention, such as Figure 8 As shown, the terminal equipment in the system adds an adder and a switch (such as Figure 8In K), the switching signal is controlled by the processor, which controls the switching switch to select one of V1 and V2 (V1 and V2 correspond to the aforementioned control signal, or the aforementioned first reference voltage signal and the second reference voltage signal) to be connected to the adder, and V0 (corresponding to the aforementioned first analog voltage signal) is directly connected to the adder. For example, V1 controls the V / I module (corresponding to the aforementioned voltage-to-current module) to output the current I1 (corresponding to the aforementioned first analog current signal) for the terminal device working state 1, and I1 is the current required for the terminal device to work in state 1; V2 controls the V / I module to output the current I2 (corresponding to the aforementioned second analog current signal) for the terminal device working state 2, and I2 is the current required for the terminal device to work in state 2; assuming that I1<I2, for low power consumption, the terminal device works in state 1 by default, at this time the switching switch controls V1 to be selected to the adder, and V2 is not selected, at this time the terminal device working current is I1; the current signal is controlled by V0, and its magnitude is I0. At this time, the magnitude of the current flowing through the current line is I1+I0, that is, Figure 8 The current transmitted on the medium current line includes the sum of the power consumption return of the terminal device and the transmitted signal return. If the terminal device needs to switch to working state 2, the processor will select V2 to the adder through the selection switch, V1 is not selected, and then the working state is adjusted to state 2. At this time, the working current of the terminal device is I2, and the current flowing through the current line is I2+I0, and the I0 current is controlled by V0. If you want to switch to state 1 again, you need to first adjust the working state to state 1, and then switch the selection switch to V1. That is, when the terminal device state switches from high power consumption to low power consumption, first switch the working state to the low power consumption state, and then switch the control voltage to reduce the current. When the terminal device switches from low power consumption to high power consumption, first switch the control voltage to increase the current consumption, and then switch the working state of the terminal device to the high power consumption state. Optionally, in addition to the above-mentioned working state 1 and working state 2, the terminal device can also include more working states, such as working state n, n is an integer greater than or equal to 1, and the control signal corresponding to working state n is Figure 8 Vn in.
[0051] In the above switching state, for example, switching from high power consumption to low power consumption, the infrared fill light may be turned off, and other modules that do not need to be turned on in the low power consumption state may be turned off.
[0052] Figure 8 The sampling and intelligent analysis module in the embodiment corresponds to the target processing device. In this embodiment, the first current signal can be processed by current-to-voltage (or I / V conversion) and digitized by ADC. Figure 8The processor in the sampling and intelligent analysis module) performs analysis, that is, converting the analog current signal into an analog voltage signal, and then converting the analog voltage signal into a digital signal, and providing it to the processor for processing or analysis to achieve the purpose of intelligent analysis. Figure 8 When the acquisition and intelligent analysis modules are powered on, the processor ( Figure 8 The processor 2) controls the power module ( Figure 8 The output of the power module 2 is transmitted through the current monitoring module and then through the cable to the terminal device. The current then flows back through the current line to the acquisition and intelligent analysis module. When the current monitoring module detects that the output current of the power module 2 is greater than Imax, the current monitoring module hardware triggers a feedback signal to shut down the output of the power module 2 (this action is completed in nanoseconds). The feedback signal is fed back to the processor 2, displaying a fault code and fault information. At the same time, a control signal is output to shut down the power output module 2. Alternatively, when the current monitoring module detects that the difference between the output current of the power module 2 and the input current collected by the I / V module is greater than Inormal (for example, 2mA, 4mA, or other values), the processor 2 outputs a fault code and fault information, and a control signal to shut down the output of the power module 2.
[0053] When the voltage-to-current module described above is operating normally, its minimum output current is Imin (Imin>Inormal>0) and its maximum output current is Imax. If the transmitted current signal, converted by the I / V module and acquired by the ADC digitization module and calculated by processor 2, exceeds the normal range of Imin to Imax, it can be considered a system failure. For example, if the collected current is 0, it can be considered that the line is disconnected, the power output is disconnected, and the corresponding fault code and fault information are displayed; if it is in the range of 0 to Imin, it can be considered that the module is operating abnormally, the power output is disconnected, and the corresponding fault code and fault information are displayed; if the collected current is in the range of Imin to Imax, the system is considered to be operating normally and continuing to operate.
[0054] Figure 9 1 is a flow chart of power consumption switching control of a terminal device according to an embodiment of the present invention, the flow includes:
[0055] S902, the terminal device operates in an initial state, and the control voltage is switched to the initial voltage. For example, the initial state is a first operating state (or a second operating state);
[0056] S904, the working state of the terminal device is about to change, for example, the terminal device may switch from the first working state to the second working state, or from the second working state to the first working state;
[0057] S906, determining whether to switch from low power consumption to high power consumption. For example, if the first working state is a daytime mode (e.g., 7:00-18:00) in which the device operates in a low power consumption state, and the second working state is a nighttime mode in which the device operates in a high power consumption state, then at 18:00 every day, a state switch will occur from low power consumption to high power consumption.
[0058] S908, when it is determined that the state is switching from low power consumption to high power consumption, switching the adder input to a current control voltage corresponding to the high power consumption state (such as the aforementioned second control signal, or the second reference voltage signal);
[0059] S910, switch the working state to the high power consumption state, and then enter step S916;
[0060] In the above steps S908-S910, when the terminal device switches from low power consumption to high power consumption, the control voltage is first switched to increase the current power consumption, and then the working state of the terminal device is switched to the high power consumption state;
[0061] S912, when the result of the determination in step S906 is not switching from low power consumption to high power consumption, that is, it may be switching from high power consumption to low power consumption, in this case, the working state is first switched to the low power consumption state;
[0062] S914, switching the adder input to the current control voltage corresponding to the low power consumption state (such as the aforementioned first control signal, or the first reference voltage signal), and then proceeding to step S916;
[0063] That is, in the above steps S912-S914, when the terminal device switches from high power consumption to low power consumption, the working state is first switched to the low power consumption state, and then the control voltage is switched to reduce the current;
[0064] S916, the terminal device continues to operate.
[0065] The working states of the above terminal equipment include but are not limited to two.
[0066] In the above embodiment, the terminal device switches the working state according to its own state and required power consumption, while controlling the current to just meet its own needs, and optimizing the power consumption utilization rate; when the terminal device switches between high and low power consumption states, the order of switching the control voltage and working state is different in different switching directions; that is, when switching from high power consumption to low power consumption state, the working state is switched first, and then the control voltage; when switching from low power consumption state to high power consumption state, the control voltage is switched first, and then the working state. The embodiment of the present invention proposes a two-wire current transmission terminal device that is completely different from the existing solution, which dynamically manages its own power consumption to achieve energy saving effects and improve the reliability of the equipment.
[0067] Compared with related technologies, the embodiments of the present invention can achieve the following advantages: 1) The terminal equipment always operates in a high-efficiency range, reducing energy consumption and ensuring equipment reliability and stability; 2) The terminal equipment uses two-wire power supply and signal transmission, which is simple to install and wire; 3) The terminal equipment signal is transmitted using analog current signals, which has a long transmission distance, is not easily interfered with, has no distortion, and has low delay.
[0068] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0069] In this embodiment, a transmission device for an analog current signal is also provided. Figure 10 FIG. 1 is a structural block diagram of a transmission device for an analog current signal according to an embodiment of the present invention. Figure 10 As shown, the device includes:
[0070] A first acquisition module 1002 is configured to acquire a first analog voltage signal when the terminal device is operating in a first operating state, wherein the first analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and the first operating state is one of multiple operating states of the terminal device;
[0071] a first conversion module 1004, configured to convert the first analog voltage signal into a first analog current signal according to a first control signal, wherein a current amplitude of the first analog current signal is a first current amplitude required by the terminal device when operating in the first operating state, and the first control signal is a control signal corresponding to the first operating state among a plurality of control signals, the plurality of operating states corresponding to the plurality of control signals on a one-to-one basis, and each control signal is configured to control a current amplitude of the analog current signal output by the terminal device when operating in a corresponding operating state to be the current amplitude required by the terminal device when operating in the corresponding operating state;
[0072] The first transmission module 1006 is configured to transmit the first analog current signal output by the terminal device to a target processing device.
[0073] In an optional embodiment, the above-mentioned first conversion module 1004 includes: a superposition unit, which is used to superimpose the first analog voltage signal and the first reference voltage signal to obtain a first voltage signal to be converted when the multiple control signals are multiple reference voltage signals and the first control signal is a first reference voltage signal, wherein the first reference voltage signal and the first voltage signal to be converted are both analog signals, the first reference voltage signal is a reference voltage signal corresponding to the first working state among the multiple reference voltage signals, the multiple working states correspond one-to-one to the multiple reference voltage signals, each reference voltage signal is used to control the current amplitude of the analog current signal output by the terminal device when the terminal device operates in the corresponding working state to the current amplitude required by the terminal device to operate in the corresponding working state, and the first reference voltage signal is used to control the current amplitude of the first analog current signal output by the terminal device when the terminal device operates in the first working state to the first current amplitude required by the terminal device to operate in the first working state; a first processing unit, which is used to perform voltage-to-current processing on the first voltage signal to be converted to obtain the first analog current signal.
[0074] In an optional embodiment, the first processing unit includes: a first processing sub-unit, configured to perform voltage-to-current processing on the first voltage signal to be converted according to a fixed linear conversion ratio through a voltage-to-current module to obtain the first analog current signal.
[0075] In an optional embodiment, the superposition unit includes: a superposition subunit, used to superimpose the first analog voltage signal and the first reference voltage signal through an adder to obtain the first voltage signal to be converted, wherein the first input end of the adder inputs the first analog voltage signal, the second input end of the adder is adjusted to input the first reference voltage signal among the multiple reference voltage signals, and the second input end of the adder is set to allow input of one reference voltage signal among the multiple reference voltage signals.
[0076] In an optional embodiment, the above-mentioned first conversion module 1004 includes: a second processing unit, which is used to, when the multiple control signals are multiple proportional adjustment signals and the first control signal is a first proportional adjustment signal, perform voltage-to-current processing on the first analog voltage signal according to the first linear conversion ratio determined by the first proportional adjustment signal through the voltage-to-current module to obtain the first analog current signal, wherein the first proportional adjustment signal is the proportional adjustment signal corresponding to the first working state among the multiple proportional adjustment signals, the multiple working states correspond one-to-one to the multiple proportional adjustment signals, each proportional adjustment signal is used to determine the corresponding linear conversion ratio adopted by the voltage-to-current module, and the corresponding linear conversion ratio determined by each proportional adjustment signal is used In order to control the current amplitude of the analog current signal output by the voltage-to-current module when the terminal device is working in the corresponding working state to the current amplitude required by the terminal device to work in the corresponding working state, the first proportional adjustment signal is used to control the current amplitude of the first analog current signal output by the voltage-to-current module when the terminal device is working in the first working state to the first current amplitude required by the terminal device to work in the first working state; wherein, the voltage-to-current module is configured to determine a corresponding linear conversion ratio according to a control signal input from the multiple control signals, and perform voltage-to-current processing on the analog voltage signal input by the voltage-to-current module according to the corresponding linear conversion ratio to obtain a corresponding analog current signal.
[0077] In an optional embodiment, the above-mentioned second processing unit includes: an adjustment subunit, used to adjust the resistance value of the target resistor in the voltage-to-current module through the first proportional adjustment signal so that the linear conversion ratio of the voltage-to-current module reaches the first linear conversion ratio, wherein the linear conversion ratio of the voltage-to-current module is associated with the resistance value of the target resistor; a second processing subunit, used to perform voltage-to-current processing on the first analog voltage signal through the adjusted voltage-to-current module to obtain the first analog current signal.
[0078] In an optional embodiment, the above-mentioned device also includes: a second acquisition module, used to acquire a second analog voltage signal when the terminal device is operating in a second working state, wherein the second analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and the second working state is a working state different from the first working state among multiple working states of the terminal device; a second conversion module, used to convert the second analog voltage signal into a second analog current signal according to a second control signal, wherein the current amplitude of the second analog current signal is a second current amplitude required for the terminal device to operate in the second working state, the second current amplitude is different from the first current amplitude, and the second control signal is a control signal corresponding to the second working state among the multiple control signals; a second transmission module, used to transmit the second analog current signal output by the terminal device to the target processing device.
[0079] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0080] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.
[0081] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0082] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0083] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0084] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.
[0085] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, can be centralized on a single computing device, or can be distributed across a network of multiple computing devices. They can be implemented using program code executable by the computing device, and thus, can be stored in a storage device and executed by the computing device. In some cases, the steps shown or described herein can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0086] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention are intended to be within the scope of protection of the present invention.
Claims
1. A method for transmitting an analog current signal, characterized in that: include: Acquire a first analog voltage signal when the terminal device is operating in a first operating state, wherein the first analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and the first operating state is one of multiple operating states of the terminal device; converting the first analog voltage signal into a first analog current signal according to a first control signal, wherein a current amplitude of the first analog current signal is a first current amplitude required by the terminal device when operating in the first operating state, the first control signal is a control signal corresponding to the first operating state among a plurality of control signals, the plurality of operating states correspond one-to-one to the plurality of control signals, and each control signal is used to control a current amplitude of the analog current signal output by the terminal device when operating in a corresponding operating state to be a current amplitude required by the terminal device when operating in the corresponding operating state; transmitting the first analog current signal output by the terminal device to a target processing device; Among them, when the acquisition and intelligent analysis module is powered on, the processor controls the output of the power module through a control signal, and the power output passes through the current monitoring module and then reaches the terminal device through a cable, and the current flows back to the acquisition and intelligent analysis module through the current line. Among them, the acquisition and intelligent analysis module is connected to the terminal device, and the processor, the power module and the current monitoring module are all deployed in the acquisition and intelligent analysis module; when the current monitoring module detects that the current output of the power module is greater than the preset maximum current amplitude, the current monitoring module hardware triggers the feedback signal to turn off the output of the power module, and at the same time feeds back the feedback signal to the processor, and the processor displays the fault code and fault information, and outputs a control signal to turn off the power output module.
2. The method according to claim 1, characterized in that The converting the first analog voltage signal into a first analog current signal according to the first control signal includes: In a case where the multiple control signals are multiple reference voltage signals and the first control signal is a first reference voltage signal, the first analog voltage signal and the first reference voltage signal are superimposed to obtain a first voltage signal to be converted, wherein the first reference voltage signal and the first voltage signal to be converted are both analog signals, the first reference voltage signal is a reference voltage signal corresponding to the first working state among the multiple reference voltage signals, the multiple working states correspond one-to-one to the multiple reference voltage signals, each reference voltage signal is used to control the current amplitude of the analog current signal output by the terminal device when the terminal device operates in the corresponding working state to the current amplitude required by the terminal device operating in the corresponding working state, and the first reference voltage signal is used to control the current amplitude of the first analog current signal output by the terminal device when the terminal device operates in the first working state to the first current amplitude required by the terminal device operating in the first working state; The first voltage signal to be converted is subjected to voltage-to-current conversion processing to obtain the first analog current signal.
3. The method according to claim 2, characterized in that The performing voltage-to-current processing on the first voltage signal to be converted to obtain the first analog current signal includes: The first voltage signal to be converted is processed into a current signal by a voltage-to-current module according to a fixed linear conversion ratio to obtain the first analog current signal.
4. The method according to claim 2, characterized in that The step of superimposing the first analog voltage signal and the first reference voltage signal to obtain a first voltage signal to be converted includes: The first analog voltage signal and the first reference voltage signal are superimposed by an adder to obtain the first voltage signal to be converted, wherein the first analog voltage signal is input into a first input end of the adder, the second input end of the adder is adjusted to input the first reference voltage signal among the multiple reference voltage signals, and the second input end of the adder is set to allow input of one reference voltage signal among the multiple reference voltage signals.
5. The method according to claim 1, wherein The converting the first analog voltage signal into a first analog current signal according to the first control signal includes: In a case where the multiple control signals are multiple proportional adjustment signals and the first control signal is a first proportional adjustment signal, a voltage-to-current module performs voltage-to-current processing on the first analog voltage signal according to a first linear conversion ratio determined by the first proportional adjustment signal to obtain the first analog current signal, wherein the first proportional adjustment signal is a proportional adjustment signal corresponding to the first working state among the multiple proportional adjustment signals, the multiple working states correspond one-to-one to the multiple proportional adjustment signals, each proportional adjustment signal is used to determine a corresponding linear conversion ratio adopted by the voltage-to-current module, the corresponding linear conversion ratio determined by each proportional adjustment signal is used to control the current amplitude of the analog current signal output by the voltage-to-current module when the terminal device operates in the corresponding working state to the current amplitude required by the terminal device operating in the corresponding working state, and the first proportional adjustment signal is used to control the current amplitude of the first analog current signal output by the voltage-to-current module when the terminal device operates in the first working state to the first current amplitude required by the terminal device operating in the first working state; Among them, the voltage-to-current module is configured to determine a corresponding linear conversion ratio based on a control signal input from the multiple control signals, and perform voltage-to-current processing on the analog voltage signal input by the voltage-to-current module according to the corresponding linear conversion ratio to obtain a corresponding analog current signal.
6. The method according to claim 5, characterized in that The step of performing voltage-to-current processing on the first analog voltage signal by the voltage-to-current module according to a first linear conversion ratio determined by the first proportional adjustment signal to obtain the first analog current signal includes: adjusting the resistance value of the target resistor in the voltage-to-current module using the first proportional adjustment signal so that the linear conversion ratio of the voltage-to-current module reaches the first linear conversion ratio, wherein the linear conversion ratio of the voltage-to-current module is associated with the resistance value of the target resistor; The first analog voltage signal is subjected to voltage-to-current conversion processing by the adjusted voltage-to-current module to obtain the first analog current signal.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: acquiring a second analog voltage signal when the terminal device is operating in a second operating state, wherein the second analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and the second operating state is an operating state among multiple operating states of the terminal device that is different from the first operating state; converting the second analog voltage signal into a second analog current signal according to a second control signal, wherein a current amplitude of the second analog current signal is a second current amplitude required for the terminal device to operate in the second operating state, the second current amplitude is different from the first current amplitude, and the second control signal is a control signal corresponding to the second operating state among the multiple control signals; The second analog current signal output by the terminal device is transmitted to the target processing device.
8. A transmission device for analog current signal, characterized in that: include: a first acquisition module, configured to acquire a first analog voltage signal when the terminal device is operating in a first operating state, wherein the first analog voltage signal is a signal obtained by processing a signal collected by a sensor in the terminal device, and the first operating state is one of multiple operating states of the terminal device; a first conversion module, configured to convert the first analog voltage signal into a first analog current signal according to a first control signal, wherein a current amplitude of the first analog current signal is a first current amplitude required by the terminal device when operating in the first operating state, the first control signal is a control signal corresponding to the first operating state among a plurality of control signals, the plurality of operating states corresponding to the plurality of control signals on a one-to-one basis, and each control signal is configured to control a current amplitude of the analog current signal output by the terminal device when operating in a corresponding operating state to be the current amplitude required by the terminal device when operating in the corresponding operating state; a first transmission module, configured to transmit the first analog current signal output by the terminal device to a target processing device; When the acquisition and intelligent analysis module is powered on, the processor controls the output of the power module through a control signal. The power output passes through the current monitoring module and then reaches the terminal device through a cable. The current flows back to the acquisition and intelligent analysis module through the current line. The acquisition and intelligent analysis module is connected to the terminal device, and the processor, the power module and the current monitoring module are all deployed in the acquisition and intelligent analysis module. When the current monitoring module detects that the current output by the power module is greater than the preset maximum current amplitude, the current monitoring module hardware triggers a feedback signal to turn off the output of the power module, and at the same time feeds back the feedback signal to the processor. The processor displays a fault code and fault information, and outputs a control signal to turn off the power output module.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method and device for reducing power consumption
CN106251829A
LED constant current drive capable of adjusting output current
CN110430634A
Laser current control circuit based on V-I conversion
CN217034616U