CN113364910A - Signal processing method, device, equipment and storage medium - Google Patents
Signal processing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113364910A CN113364910A CN202110638801.0A CN202110638801A CN113364910A CN 113364910 A CN113364910 A CN 113364910A CN 202110638801 A CN202110638801 A CN 202110638801A CN 113364910 A CN113364910 A CN 113364910A
- Authority
- CN
- China
- Prior art keywords
- target
- pin
- target device
- determining
- signal processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 40
- 238000006243 chemical reaction Methods 0.000 claims abstract description 79
- 238000012545 processing Methods 0.000 claims abstract description 62
- 230000002159 abnormal effect Effects 0.000 claims description 37
- 230000006870 function Effects 0.000 claims description 27
- 238000004891 communication Methods 0.000 claims description 14
- 238000004364 calculation method Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 description 12
- 238000000034 method Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 230000001133 acceleration Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 101100263704 Arabidopsis thaliana VIN3 gene Proteins 0.000 description 2
- 101100102627 Oscarella pearsei VIN1 gene Proteins 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- -1 VIN2 Proteins 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/24—Arrangements for testing
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a signal processing method, which comprises the steps of obtaining voltage signals of a plurality of target pins of a target device on a circuit board and identification information of each target pin, then carrying out data conversion processing on logic levels of the corresponding voltage signals according to the identification information to obtain a plurality of converted conversion data, then carrying out combination processing on the plurality of conversion data to obtain a combined target value, and finally determining the working state of the target pins according to the target value.
Description
Technical Field
The present invention relates to the field of electronic devices and signal processing technologies, and in particular, to a signal processing method, an apparatus, a device, and a storage medium.
Background
With the development of mobile communication technology and the continuous improvement of living standard of people, various mobile terminals such as mobile phones are more and more popular, and the mobile phones become indispensable communication tools in people's life. The mobile terminal is provided with a plurality of relatively critical devices, and if the devices are damaged or not welded in place, the mobile terminal has a relatively large problem, for example, an acceleration sensor widely used by the current mobile terminal is used, and the mobile terminal performs horizontal and vertical screen detection, gesture recognition, pedometer and the like through the acceleration sensor. Although the number of the acceleration sensor pins is small, if the pins are not connected in place when the device is replaced and welded due to maintenance or other factors, the functions of the mobile terminal are problematic, and the use of the mobile terminal is affected.
Disclosure of Invention
The embodiment of the invention aims to provide a signal processing method which can find whether a pin of any device has a fault in time and avoid finding the fault of the device when a user cannot use a function corresponding to the device.
In a first aspect, to achieve the above object, an embodiment of the present invention provides a signal processing method, including the following steps:
acquiring voltage signals of a plurality of target pins of a target device on a circuit board and identification information of each target pin;
respectively carrying out data conversion processing on the logic level of the corresponding voltage signal according to each piece of identification information to obtain a plurality of converted conversion data;
merging the plurality of conversion data to obtain a merged target numerical value;
and determining the working state of the target pin according to the target value.
Further, the step of performing data conversion processing on the logic level of the corresponding voltage signal according to each piece of identification information to obtain a plurality of converted conversion data includes:
determining a corresponding data conversion formula according to the identification information;
performing data conversion calculation on the logic level corresponding to the voltage signal of the corresponding target pin according to the data conversion formula and the identification information of each target pin to obtain a plurality of converted conversion data;
the step of combining the plurality of conversion data to obtain a combined target value includes:
determining a corresponding combination formula according to the number of the target pins;
and carrying out merging calculation on the plurality of conversion data according to the merging formula to obtain a target numerical value.
Further, when the number of the target devices is one, the step of obtaining voltage signals of a plurality of target pins of the target devices on the circuit board includes:
taking each pin of the target device as a target pin, and acquiring a voltage signal of each target pin;
the step of determining the working state of the target pin according to the target value comprises the following steps:
acquiring a preset target pin state table corresponding to the target number according to the target number of the target pins;
determining the working state of each target pin according to the target value and the target pin state table;
the target pin state table comprises records of the working state of each target pin under the target value, and the working state comprises a normal working state and an abnormal working state.
Further, when the number of the target devices is multiple, the step of obtaining voltage signals of multiple target pins of the target devices on the circuit board includes:
determining a target pin in each target device, and acquiring a voltage signal of the target pin of each target device;
the step of determining the working state of the target pin according to the target value comprises the following steps:
acquiring a preset target device state table corresponding to the target number according to the target number of the target devices;
determining the working state of each target device according to the target value and the target device state table;
wherein the target device state table includes a record of an operating state of each of the target devices at the target value, the operating state including a normal operating state and an abnormal operating state.
Further, the step of determining a target pin in each target device includes:
determining the lead pin with the top sequence in each target device as a target lead pin according to the sequence of the lead pins in each target device, and starting timing;
when the timing time reaches the set time, determining one pin after the front pin in each target device as a target pin, and restarting timing;
and when the currently determined target pin is the last pin in the corresponding target device and the timing time reaches the preset time, determining the pin with the highest sequence in the corresponding target device as the target pin and restarting timing.
Further, the signal processing method further includes:
and when the working state of the target device is abnormal, generating reminding information and displaying the device information of the target device.
Further, when the operating state of the target device is an abnormal operating state, the signal processing method further includes:
detecting the functional operation condition of the target device;
when the function running condition is normal, determining that the fault type of a target pin of the target device is a communication fault;
when the function running condition is abnormal, determining the fault type of a target pin of the target device as a power supply fault;
and displaying the fault type information of the target device.
In a second aspect, to solve the same technical problem, an embodiment of the present invention further provides a signal processing apparatus, including an obtaining module, a converting module, a combining module, and a determining module;
the acquisition module is used for acquiring voltage signals of a plurality of target pins of a target device on the circuit board and identification information of each target pin;
the conversion module is used for performing data conversion processing on the logic level of the corresponding voltage signal according to each piece of identification information to obtain a plurality of converted conversion data;
the merging module is used for merging the plurality of conversion data to obtain a merged target numerical value;
and the determining module is used for determining the working state of the target pin according to the target value.
In a third aspect, to solve the same technical problem, an embodiment of the present invention further provides a signal processing apparatus, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the memory is coupled to the processor, and the processor executes the computer program to implement the signal processing method according to any one of the above.
In a fourth aspect, to solve the same technical problem, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, where the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform any one of the signal processing methods described above.
The embodiment of the invention provides a signal processing method, which can acquire the logic level of the voltage signal of each target pin by acquiring the voltage signals of a plurality of target pins of a target device on a circuit board, carry out data conversion processing on the logic level of the corresponding voltage signal according to the identification information of the target pin, thus merging the data after the data conversion processing, finally obtain the merged target value, and determine the working state of each target pin according to the target value.
Drawings
Fig. 1 is a schematic flow chart of a signal processing method according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of a signal processing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a signal processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another signal processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a signal processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another signal processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of a signal processing method according to an embodiment of the present invention, and as shown in fig. 1, the signal processing method according to the embodiment of the present invention includes steps S101 to S104;
step S101, acquiring voltage signals of a plurality of target pins of a target device on a circuit board and identification information of each target pin.
In this embodiment, a voltage signal of a target pin of a target device is obtained by a device or a circuit having an analog-to-digital conversion function.
The identification information of the target pin includes information such as a serial number and ID information. As an alternative embodiment, the sorting number may be obtained from the device information of the target device, or all pins of the target device may be sorted, so as to obtain a preset sorting number for each target pin.
As an implementation manner of the embodiment of the present invention, step S101 specifically includes: and taking each pin of the target device as a target pin, and acquiring a voltage signal of each target pin.
In order to determine the overall working state of the target device, in this embodiment, all pins of the target device are detected to determine whether each pin of the target device is in a normal working state, that is, whether the connection condition of each pin is normal is determined, so that whether the target device is abnormal can be determined, the situation that the target device cannot be used when a user uses the target device is avoided, and the user experience is reduced.
And step S102, performing data conversion processing on the logic level of the corresponding voltage signal according to each piece of identification information to obtain a plurality of converted conversion data.
Since the acquired voltage signal is an analog signal that is difficult to analyze, the present embodiment converts the acquired voltage signal into a digital signal that is easy to analyze and process through a device or a circuit having an analog-to-digital conversion function, thereby improving the efficiency of the present embodiment in data processing.
For example, the voltage signal is converted to corresponding high and low levels by setting a threshold, so that the acquired different voltage signals can be converted into recognizable 0 and 1.
In this embodiment, step S102 specifically includes: determining a corresponding data conversion formula according to the identification information; and performing data conversion calculation on the logic level corresponding to the voltage signal of the corresponding target pin according to the data conversion formula and the identification information of each target pin to obtain a plurality of converted conversion data.
It should be noted that different identification information corresponds to different data conversion formulas, and since the identification information in the embodiment of the present invention is sequencing number information, as an optional embodiment, the data conversion formula is:
VINN*2N
where N is identification information (i.e., a sequence number) of the target pin, and N is 0,1,2 … … N, and VINN is a logic level corresponding to the voltage signal of the target pin whose identification information is N (i.e., a sequence number is N).
Step S103, merging the plurality of conversion data to obtain a merged target value.
In this embodiment, step S103 specifically includes: and determining a corresponding merging formula according to the number of the target pins, and performing merging calculation on the plurality of conversion data according to the merging formula to obtain a target numerical value.
It should be noted that, different target pin numbers correspond to different combination formulas, and optionally, the combination formula is:
where VERF denotes the reference voltage used for the calculation, typically 3V, and the larger the better.
The conversion data are combined and calculated through the combination formula, the current target value of the target device can be rapidly obtained, and therefore whether each current target pin of the target device is in a normal working state or not can be determined according to the current target value.
And step S104, determining the working state of the target pin according to the target value.
In this embodiment, step S104 specifically includes: acquiring a preset target pin state table corresponding to the target number according to the target number of the target pins; and determining the working state of each target pin according to the target value and the target pin state table. The target pin state table comprises records of the working state of each target pin under the target value, and the working state comprises a normal working state and an abnormal working state.
It should be noted that the target pin state table is a preset table in which the working state information of each pin under different target values is recorded, and the working state of each target pin under different target values can be quickly determined through the preset table, so that whether a target device has a faulty pin can be determined in time, and the problem that the target device is found by a user when the target device is used is avoided, and the user experience is not affected.
In an embodiment of the present invention, since the target device that the user wants to detect has 6 pins, the voltage signals and the identification information of the 6 pins are obtained respectively, the obtained voltage signals are converted into logic levels easy to analyze and process through a device or a circuit having an analog-to-digital conversion function, the logic levels (VIN0, VIN1, VIN2, VIN3, VIN4, and VIN5) of the 6 pins are obtained respectively, and then data conversion processing is performed on the logic levels of each pin according to the identification information and a data conversion formula, so as to obtain 6 converted conversion data (VIN0 x 2)0、VIN1*21、VIN2*22、VIN3*23、VIN4*24、VIN5*25) Then, the 6 converted data are subjected to merging calculation processing through a merging formula to obtain a final target value, and then the working state of each pin of the target device is determined according to the obtained target value and a preset target pin state table containing 6 target pins, wherein the target pin state table containing 6 target pins is shown as the following table:
therefore, the working state of each target pin of the target device can be quickly confirmed according to the target value and the target pin state table.
The above is mainly directed to an embodiment of a signal processing method of one target device, and the following will mainly describe signal processing methods of a plurality of target devices.
Referring to fig. 2, fig. 2 is another schematic flow chart of the signal processing method according to the embodiment of the present invention, and as shown in fig. 2, the signal processing method according to the embodiment of the present invention includes steps S201 to S206;
step S201, determining a target pin in each target device, and acquiring a voltage signal of the target pin of each target device and identification information of each target pin.
In one embodiment of the present invention, the specific manner of determining one target pin in each target device includes: the pin which has failed or maintained in each target device is used as a target pin, and the detection efficiency can be improved by detecting the pin which has failed or maintained.
In another embodiment of the present invention, the specific manner of determining one target pin in each target device further comprises: determining the lead pin with the top sequence in each target device as a target lead pin according to the sequence of the lead pins in each target device, and starting timing; when the timing time reaches the set time, determining one pin after the front pin in each target device as a target pin, and restarting timing; and when the currently determined target pin is the last pin in the corresponding target device and the timing time reaches the preset time, determining the pin with the highest sequence in the corresponding target device as the target pin and restarting timing.
For example, if there are 3 target devices to be detected, first detecting whether there are pins that have failed or have been repaired in the 3 target devices, if so, taking the pins as the target pins, and starting timing, if not, determining the target pins in sequence according to the sorting order of the pins in each target device, and starting timing, i.e., taking the first pin in each target device as the target pin, so that the pins to be detected in the detection are the first pin of the first target device (denoted as device 0), the first pin of the first target device (denoted as device 1), and the first pin of the first target device (denoted as device 2).
When the time counted by the timer reaches the preset time, the next target pin of each target device needs to be determined, and the timing is started, that is, the second pin in each target device is used as the target pin, so that the pins to be detected in the detection are the second pin of the first target device (marked as device 0), the second pin of the first target device (marked as device 1), and the second pin of the first target device (marked as device 2).
According to the arrangement sequence of the pins in each target device, after the timing time of each timer reaches a preset time, the next pin of the current target pin in each target device is sequentially used as the target pin, when the current target pin is the last pin in the sequence, the pin in the sequence is used as the target pin, and each pin in the target device is cyclically used as the target pin.
By setting a timer, after every preset time, the pins sequenced behind the current target pin are used as target pins, detection is started, and detection is performed in a circulating mode all the time, so that all the pins in the target device can be detected, the working states of all the pins of a plurality of target devices can be determined, and comprehensive detection of all the pins of the plurality of target devices is realized.
In addition, each pin in the target device is taken as a target pin in a circulating mode, the problem that the pin is not the target pin when the pin is in fault can be avoided, so that the fault pin of the non-target pin cannot be detected, and the fault detection efficiency is improved.
Step S202, determining a corresponding data conversion formula according to the identification information.
In this embodiment, please refer to the contents mentioned in the above embodiments for the data conversion formula, which is not described herein again.
Step S203, according to the data conversion formula and the identification information of each target pin, performing data conversion calculation on the logic level corresponding to the voltage signal of the corresponding target pin to obtain a plurality of converted conversion data.
And step S204, determining a corresponding merging formula according to the target number of the target devices, and performing merging calculation on the plurality of conversion data according to the merging formula to obtain a target numerical value.
In this embodiment, please refer to the contents mentioned in the above embodiments for the concrete formula combination, which is not described herein again.
Step S205, according to the target quantity, obtaining a preset target device state table corresponding to the target quantity.
It should be noted that the target device state table is a preset table in which working state information of each device under different target values is recorded, and the preset table can quickly determine the current working state of each target device under different target values, so that whether the target device has a fault can be determined in time, and the problem that the target device is found by a user when the target device is used is avoided, and the user experience is not influenced.
For example, in step S201, since the target pin of each target device is marked, for example, the first pin of the first target device is marked as device 0, the first pin of the first target device is marked as device 1, and the first pin of the first target device is marked as device 2, the present embodiment can quickly determine the current operating state of the target device by taking the detected operating state of the target pin as the operating state of the corresponding target device, and can further improve the accuracy of determining the operating state of the target device by cyclically taking each pin of the target device as the target pin.
Step S206, determining the working state of each target device according to the target value and the target device state table.
In this embodiment, the target device status table includes a record of the operating status of each target device at the target value, and the operating status includes a normal operating status and an abnormal operating status.
In the embodiment of the present invention, since there are 3 target devices detected at a time, the target device state table is as follows:
target value | Device 0 | Device 1 | Device 2 |
0 | Is abnormal | Is abnormal | Is abnormal |
VREF*1/7 | Is normal | Is abnormal | Is abnormal |
VREF*2/7 | Is abnormal | Is normal | Is abnormal |
VREF*3/7 | Is normal | Is normal | Is abnormal |
VREF*4/7 | Is abnormal | Is abnormal | Is normal |
VREF*5/7 | Is normal | Is abnormal | Is normal |
VREF*6/7 | Is abnormal | Is normal | Is normal |
VREF*7/7 | Is normal | Is normal | Is normal |
According to the target value obtained each time and the target device state table, the current working state of each target device under different target values can be determined, and according to the target pin switched each time, when the target device is in an abnormal working state, the corresponding pin can be traced back, and the corresponding pin is determined to have a fault.
In an embodiment of the present invention, after step S206, the signal processing method further includes: and when the working state of the target device is abnormal, generating reminding information and displaying the device information of the target device.
In this embodiment, the reminding manner includes text reminding, voice reminding, or reminding by telephone notification, and the content of the reminding information includes device information of the target device in an abnormal operating state, such as ID information of the device, number information of the device, and the like, which can be used to identify and determine the corresponding device.
In another embodiment of the present invention, when there is an abnormal operating state of the target device, the signal processing method further includes: detecting the functional operation condition of the target device; when the function running condition is normal, determining that the fault type of a target pin of the target device is a communication fault; when the function running condition is abnormal, determining the fault type of a target pin of the target device as a power supply fault; and displaying the fault type information of the target device.
In this embodiment, the pins of the device generally include a communication pin and a power supply pin, and only when the power supply pin fails, the corresponding function of the device cannot be used, and when the communication pin fails, the device can automatically switch the communication protocol to implement the communication function, that is, the corresponding function of the device can be continuously used. Therefore, when the target device is detected to be in an abnormal working state and the function running condition of the target device is normal, the communication pin of the target device can be determined to be in fault; when the target device is detected to be in an abnormal working state and the function running condition of the target device is abnormal, the power supply pin of the target device can be determined to be in fault.
In summary, embodiments of the present invention provide a signal processing method, which can obtain a logic level of a voltage signal of each target pin by obtaining voltage signals of multiple target pins of a target device on a circuit board, and perform data conversion processing on the logic level of a corresponding voltage signal according to identification information of the target pin, so as to combine data after multiple data conversion processing, and finally obtain a combined target value, and determine a working state of each target pin according to the target value.
According to the method described in the foregoing embodiment, the embodiment will be further described from the perspective of a signal processing apparatus, which may be specifically implemented as an independent entity, or may be implemented by being integrated in an electronic device, such as a terminal, where the terminal may include a mobile phone, a tablet computer, and the like.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a signal processing apparatus according to an embodiment of the present invention, as shown in fig. 3, the signal processing apparatus includes an obtaining module 301, a converting module 302, a combining module 303, and a determining module 304, where the obtaining module 301 is configured to obtain voltage signals of a plurality of target pins of a target device on a circuit board and identification information of each target pin, the converting module 302 is configured to perform data conversion processing on a logic level of a corresponding voltage signal according to each identification information to obtain a plurality of converted conversion data, the combining module 303 is configured to perform combination processing on the plurality of conversion data to obtain a combined target value, and the determining module 304 is configured to determine an operating state of the target pin according to the target value.
In this embodiment, the conversion module 302 is specifically configured to: and determining a corresponding data conversion formula according to the identification information, and performing data conversion calculation on the logic level corresponding to the voltage signal of the corresponding target pin according to the data conversion formula and the identification information of each target pin to obtain a plurality of converted conversion data.
The merging module 303 is specifically configured to: and determining a corresponding merging formula according to the number of the target pins, and performing merging calculation on the plurality of conversion data according to the merging formula to obtain a target numerical value.
In an embodiment, when the number of target devices is one, the obtaining module 301 is specifically configured to: and taking each pin of the target device as a target pin, and acquiring a voltage signal of each target pin and identification information of each target pin. The determining module 304 is specifically configured to: according to the target number of the target pins, obtaining a preset target pin state table corresponding to the target number, and determining the working state of each target pin according to the target value and the target pin state table, wherein the target pin state table comprises records of the working state of each target pin under the target value, and the working state comprises a normal working state and an abnormal working state.
In another embodiment, when the number of target devices is multiple, the obtaining module 301 is specifically configured to: and determining a target pin in each target device, and acquiring a voltage signal of the target pin of each target device and identification information of each target pin. The determining module 304 is specifically configured to: and acquiring a preset target device state table corresponding to the target number according to the target number of the target devices, and determining the working state of each target device according to the target value and the target device state table, wherein the target device state table comprises a record of the working state of each target device under the target value, and the working state comprises a normal working state and an abnormal working state.
Referring to fig. 4, fig. 4 is another schematic structural diagram of the signal processing apparatus according to the embodiment of the present invention, as shown in fig. 4, when the number of target devices is multiple, the signal processing apparatus according to the embodiment of the present invention further includes a reminding module 305 and a detecting module 306, and the reminding module 305 is configured to generate reminding information and display device information of the target devices when the working state of the target devices is abnormal; the detection module 306 is configured to detect a functional operating condition of the target device, determine that a fault type of a target pin of the target device is a communication fault when the functional operating condition is normal, determine that the fault type of the target pin of the target device is a power supply fault when the functional operating condition is abnormal, and display fault type information of the target device.
In a specific implementation, each of the modules and/or units may be implemented as an independent entity, or may be implemented as one or several entities by any combination, where the specific implementation of each of the modules and/or units may refer to the foregoing method embodiment, and specific achievable beneficial effects also refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
In addition, referring to fig. 5, fig. 5 is a schematic structural diagram of a signal processing device according to an embodiment of the present invention, where the signal processing device may be a mobile terminal such as a smart phone, a tablet computer, and the like. As shown in fig. 5, the signal processing apparatus 500 includes a processor 501, a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the signal processing apparatus 500, connects various parts of the entire electronic apparatus using various interfaces and lines, performs various functions of the signal processing apparatus 500 and processes data by running or loading an application program stored in the memory 502, and calling data stored in the memory 502, thereby performing overall monitoring of the signal processing apparatus 500.
In this embodiment, the processor 501 in the signal processing apparatus 500 loads instructions corresponding to processes of one or more application programs into the memory 502, and the processor 501 runs the application programs stored in the memory 502, so as to implement various functions as follows:
acquiring voltage signals of a plurality of target pins of a target device on a circuit board and identification information of each target pin;
respectively carrying out data conversion processing on the logic level of the corresponding voltage signal according to each piece of identification information to obtain a plurality of converted conversion data;
merging the plurality of conversion data to obtain a merged target numerical value;
and determining the working state of the target pin according to the target value.
The signal processing apparatus 500 may implement the steps in any embodiment of the signal processing method provided in the embodiment of the present invention, and therefore, the beneficial effects that can be achieved by any signal processing method provided in the embodiment of the present invention can be achieved, for details, see the foregoing embodiment, and are not described herein again.
Referring to fig. 6, fig. 6 is another schematic structural diagram of a signal processing apparatus according to an embodiment of the present invention, and as shown in fig. 6, fig. 6 is a specific structural block diagram of the signal processing apparatus according to the embodiment of the present invention, where the signal processing apparatus may be used to implement the signal processing method provided in the foregoing embodiment. The signal processing apparatus 600 may be a mobile terminal such as a smart phone or a notebook computer.
The RF circuit 610 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuit 610 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 610 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 620 may be used to store software programs and modules, such as program instructions/modules corresponding to the signal processing method in the foregoing embodiment, and the processor 680 executes various functional applications and data processing by executing the software programs and modules stored in the memory 620, so as to implement the following functions:
acquiring voltage signals of a plurality of target pins of a target device on a circuit board and identification information of each target pin;
respectively carrying out data conversion processing on the logic level of the corresponding voltage signal according to each piece of identification information to obtain a plurality of converted conversion data;
merging the plurality of conversion data to obtain a merged target numerical value;
and determining the working state of the target pin according to the target value.
The memory 620 may include high-speed random access memory, and may also include 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 620 can further include memory located remotely from the processor 680, which can be connected to the signal processing device 600 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 630 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 630 may include a touch sensitive surface 631 as well as other input devices 632. The touch sensitive surface 631, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on the touch sensitive surface 631 or near the touch sensitive surface 631 using any suitable object or attachment such as a finger, a stylus, etc.) on or near the touch sensitive surface 631 and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 631 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch sensitive surface 631 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 630 may include other input devices 632 in addition to the touch-sensitive surface 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to a user and various graphical user interfaces of the signal processing apparatus 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 641, and when the touch-sensitive surface 631 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in the figure, the touch-sensitive surface 631 and the display panel 641 are shown as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 631 and the display panel 641 may be integrated to implement input and output functions.
The signal processing device 600 may also include at least one sensor 650, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for the signal processing device 600, other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor may be further configured, which will not be described herein.
The audio circuit 660, speaker 661, and microphone 662 may provide an audio interface between a user and the signal processing device 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, which is then processed by the audio data output processor 680 and then passed through the RF circuit 610 to be transmitted to, for example, another terminal, or output to the memory 620 for further processing. The audio circuitry 660 may also include an earbud jack to provide communication of peripheral headphones with the signal processing device 600.
The signal processing device 600, through the transmission module 670 (e.g., Wi-Fi module), may assist the user in receiving requests, sending information, etc., which provides the user with wireless broadband internet access. Although the transmission module 670 is shown in the drawing, it is understood that it does not belong to the essential constitution of the signal processing apparatus 600 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the signal processing apparatus 600, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the signal processing apparatus 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby integrally monitoring the electronic apparatus. Optionally, processor 680 may include one or more processing cores; in some embodiments, processor 680 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
Signal processing device 600 also includes a power supply 690 (e.g., a battery) that provides power to the various components, which in some embodiments may be logically coupled to processor 680 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 690 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the signal processing apparatus 600 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring voltage signals of a plurality of target pins of a target device on a circuit board and identification information of each target pin;
respectively carrying out data conversion processing on the logic level of the corresponding voltage signal according to each piece of identification information to obtain a plurality of converted conversion data;
merging the plurality of conversion data to obtain a merged target numerical value;
and determining the working state of the target pin according to the target value.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps of any embodiment of the signal processing method provided by the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any embodiment of the signal processing method provided in the embodiment of the present invention, the beneficial effects that can be achieved by any signal processing method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The foregoing detailed description has provided a signal processing method, apparatus, device and storage medium according to embodiments of the present application, and specific examples have been applied in the present application to explain the principles and implementations of the present application, and the description of the foregoing embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application. Moreover, it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention, and such modifications and adaptations are intended to be within the scope of the invention.
Claims (10)
1. A signal processing method, comprising the steps of:
acquiring voltage signals of a plurality of target pins of a target device on a circuit board and identification information of each target pin;
respectively carrying out data conversion processing on the logic level of the corresponding voltage signal according to each piece of identification information to obtain a plurality of converted conversion data;
merging the plurality of conversion data to obtain a merged target numerical value;
and determining the working state of the target pin according to the target value.
2. The signal processing method according to claim 1, wherein the step of performing data conversion processing on the logic level of the corresponding voltage signal according to each piece of identification information to obtain a plurality of converted conversion data comprises:
determining a corresponding data conversion formula according to the identification information;
performing data conversion calculation on the logic level corresponding to the voltage signal of the corresponding target pin according to the data conversion formula and the identification information of each target pin to obtain a plurality of converted conversion data;
the step of combining the plurality of conversion data to obtain a combined target value includes:
determining a corresponding combination formula according to the number of the target pins;
and carrying out merging calculation on the plurality of conversion data according to the merging formula to obtain a target numerical value.
3. The signal processing method according to claim 1, wherein when the number of the target devices is one, the step of acquiring voltage signals of a plurality of target pins of the target devices on the circuit board comprises:
taking each pin of the target device as a target pin, and acquiring a voltage signal of each target pin;
the step of determining the working state of the target pin according to the target value comprises the following steps:
acquiring a preset target pin state table corresponding to the target number according to the target number of the target pins;
determining the working state of each target pin according to the target value and the target pin state table;
the target pin state table comprises records of the working state of each target pin under the target value, and the working state comprises a normal working state and an abnormal working state.
4. The signal processing method according to claim 1, wherein when the number of the target devices is plural, the step of acquiring voltage signals of plural target pins of the target devices on the circuit board comprises:
determining a target pin in each target device, and acquiring a voltage signal of the target pin of each target device;
the step of determining the working state of the target pin according to the target value comprises the following steps:
acquiring a preset target device state table corresponding to the target number according to the target number of the target devices;
determining the working state of each target device according to the target value and the target device state table;
wherein the target device state table includes a record of an operating state of each of the target devices at the target value, the operating state including a normal operating state and an abnormal operating state.
5. The signal processing method of claim 4, wherein the step of determining a target pin in each target device comprises:
determining the lead pin with the top sequence in each target device as a target lead pin according to the sequence of the lead pins in each target device, and starting timing;
when the timing time reaches the set time, determining one pin after the front pin in each target device as a target pin, and restarting timing;
and when the currently determined target pin is the last pin in the corresponding target device and the timing time reaches the preset time, determining the pin with the highest sequence in the corresponding target device as the target pin and restarting timing.
6. The signal processing method of claim 4, further comprising:
and when the working state of the target device is abnormal, generating reminding information and displaying the device information of the target device.
7. The signal processing method according to claim 6, wherein when there is an operating state in which the operating state of the target device is abnormal, the signal processing method further comprises:
detecting the functional operation condition of the target device;
when the function running condition is normal, determining that the fault type of a target pin of the target device is a communication fault;
when the function running condition is abnormal, determining the fault type of a target pin of the target device as a power supply fault;
and displaying the fault type information of the target device.
8. A signal processing device is characterized by comprising an acquisition module, a conversion module, a combination module and a determination module;
the acquisition module is used for acquiring voltage signals of a plurality of target pins of a target device on the circuit board and identification information of each target pin;
the conversion module is used for performing data conversion processing on the logic level of the corresponding voltage signal according to each piece of identification information to obtain a plurality of converted conversion data;
the merging module is used for merging the plurality of conversion data to obtain a merged target numerical value;
and the determining module is used for determining the working state of the target pin according to the target value.
9. A signal processing apparatus comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the memory being coupled to the processor and the processor implementing the signal processing method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the signal processing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110638801.0A CN113364910B (en) | 2021-06-08 | 2021-06-08 | Signal processing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110638801.0A CN113364910B (en) | 2021-06-08 | 2021-06-08 | Signal processing method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113364910A true CN113364910A (en) | 2021-09-07 |
CN113364910B CN113364910B (en) | 2022-09-02 |
Family
ID=77533103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110638801.0A Active CN113364910B (en) | 2021-06-08 | 2021-06-08 | Signal processing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113364910B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62138955A (en) * | 1985-12-12 | 1987-06-22 | アルカテル・エヌ・ブイ | Single instruction multiple data cell array processor using multi-state logic for connecting data bus |
US5189365A (en) * | 1990-10-12 | 1993-02-23 | Hitachi, Ltd. | Method of locating a fault in a logic IC device |
US20010011360A1 (en) * | 2000-01-28 | 2001-08-02 | Kazuki Shigeta | System and method for evaluating the location of a failure in a logic circuit, and machine-readable recording medium having a recorded program |
CA2613764A1 (en) * | 2006-12-22 | 2008-06-22 | General Electric Company | Multi-ended fault location system |
CN102243605A (en) * | 2010-05-14 | 2011-11-16 | 鸿富锦精密工业(深圳)有限公司 | Detection device and detection method thereof |
US20120166131A1 (en) * | 2010-12-28 | 2012-06-28 | Stmicroelectronics Pvt. Ltd. | Integrated device test circuits and methods |
CN102760089A (en) * | 2011-04-28 | 2012-10-31 | 鸿富锦精密工业(深圳)有限公司 | Motherboard diagnostic card |
CN104484248A (en) * | 2014-11-28 | 2015-04-01 | 英业达科技有限公司 | Diagnosis method and device for electrifying fault of computer motherboard |
CN108287774A (en) * | 2018-02-28 | 2018-07-17 | 郑州云海信息技术有限公司 | A kind of method for diagnosing faults of server, device, equipment and storage medium |
CN108427044A (en) * | 2018-01-19 | 2018-08-21 | 广州视源电子科技股份有限公司 | Method, device, equipment and storage medium for testing fault protection function |
US20200125155A1 (en) * | 2018-10-19 | 2020-04-23 | Dell Products, L.P. | Encoded drive power enable for storage enclosures with storage drives |
CN111949457A (en) * | 2020-07-27 | 2020-11-17 | 中国长城科技集团股份有限公司 | Server fault chip detection method and device |
US20210003626A1 (en) * | 2019-07-03 | 2021-01-07 | King Fahd University Of Petroleum And Minerals | Method for inaccuracy prediction and mitigation of impedance-based fault location in distribution grids |
CN112202321A (en) * | 2020-10-19 | 2021-01-08 | 珠海格力电器股份有限公司 | Signal synthesis detection circuit and current transformer |
-
2021
- 2021-06-08 CN CN202110638801.0A patent/CN113364910B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62138955A (en) * | 1985-12-12 | 1987-06-22 | アルカテル・エヌ・ブイ | Single instruction multiple data cell array processor using multi-state logic for connecting data bus |
US5189365A (en) * | 1990-10-12 | 1993-02-23 | Hitachi, Ltd. | Method of locating a fault in a logic IC device |
US20010011360A1 (en) * | 2000-01-28 | 2001-08-02 | Kazuki Shigeta | System and method for evaluating the location of a failure in a logic circuit, and machine-readable recording medium having a recorded program |
CA2613764A1 (en) * | 2006-12-22 | 2008-06-22 | General Electric Company | Multi-ended fault location system |
CN102243605A (en) * | 2010-05-14 | 2011-11-16 | 鸿富锦精密工业(深圳)有限公司 | Detection device and detection method thereof |
US20120166131A1 (en) * | 2010-12-28 | 2012-06-28 | Stmicroelectronics Pvt. Ltd. | Integrated device test circuits and methods |
CN102760089A (en) * | 2011-04-28 | 2012-10-31 | 鸿富锦精密工业(深圳)有限公司 | Motherboard diagnostic card |
CN104484248A (en) * | 2014-11-28 | 2015-04-01 | 英业达科技有限公司 | Diagnosis method and device for electrifying fault of computer motherboard |
CN108427044A (en) * | 2018-01-19 | 2018-08-21 | 广州视源电子科技股份有限公司 | Method, device, equipment and storage medium for testing fault protection function |
CN108287774A (en) * | 2018-02-28 | 2018-07-17 | 郑州云海信息技术有限公司 | A kind of method for diagnosing faults of server, device, equipment and storage medium |
US20200125155A1 (en) * | 2018-10-19 | 2020-04-23 | Dell Products, L.P. | Encoded drive power enable for storage enclosures with storage drives |
US20210003626A1 (en) * | 2019-07-03 | 2021-01-07 | King Fahd University Of Petroleum And Minerals | Method for inaccuracy prediction and mitigation of impedance-based fault location in distribution grids |
CN111949457A (en) * | 2020-07-27 | 2020-11-17 | 中国长城科技集团股份有限公司 | Server fault chip detection method and device |
CN112202321A (en) * | 2020-10-19 | 2021-01-08 | 珠海格力电器股份有限公司 | Signal synthesis detection circuit and current transformer |
Also Published As
Publication number | Publication date |
---|---|
CN113364910B (en) | 2022-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104965641B (en) | information display method and device | |
CN106022062B (en) | Unlocking method and mobile terminal | |
CN109714476B (en) | Data processing method and device, mobile terminal and storage medium | |
CN106022064A (en) | Unlocking control method and mobile terminal | |
CN106055956A (en) | Unlocking control method and mobile terminal | |
CN111008090B (en) | Battery electric quantity control method and device, storage medium and terminal equipment | |
US11556158B2 (en) | On-the-go (OTG) control and configuration method, mobile terminal, and storage medium | |
CN110489177B (en) | Application control method and device, storage medium and terminal equipment | |
CN111026457B (en) | Hardware configuration method and device, storage medium and terminal equipment | |
CN113364910B (en) | Signal processing method, device, equipment and storage medium | |
CN111355892B (en) | Picture shooting method and device, storage medium and electronic terminal | |
CN110995324B (en) | Bluetooth communication method, device, storage medium and terminal equipment | |
CN111163221B (en) | Group address book updating method and device, storage medium and terminal equipment | |
CN112367428A (en) | Electric quantity display method and system, storage medium and mobile terminal | |
CN112433694A (en) | Light intensity adjusting method and device, storage medium and mobile terminal | |
CN106022063A (en) | Unlocking method and mobile terminal | |
CN112486350A (en) | Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal | |
CN111651299A (en) | Wireless chip reset control method and device, storage medium and mobile terminal | |
CN112379857B (en) | Audio data processing method and device, storage medium and mobile terminal | |
CN112256610B (en) | Connection control method, system, storage medium and mobile terminal | |
CN112531835B (en) | Mobile terminal charging method and device, storage medium and mobile terminal | |
CN109995441B (en) | Communication information processing method, device and storage medium | |
CN112256197B (en) | Management method, device and equipment for storage information and storage medium | |
CN112199049B (en) | Fingerprint storage method, fingerprint storage device and terminal | |
CN110457180B (en) | Method and device for loading mobile terminal software package and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240126 Address after: Room 1203, No. 2 Houkenanli, Haicang District, Xiamen City, Fujian Province, 361000 Patentee after: Xiamen Luan Chuang Technology Co.,Ltd. Country or region after: China Address before: 6 / F, No. B5, Lane 999, Yangfan Road, Meixu street, Yinzhou District, Ningbo City, Zhejiang Province Patentee before: TCL COMMUNICATION (NINGBO) Co.,Ltd. Country or region before: China |