Pin multiplexing method based on waveform combination detection

By performing signal detection and waveform combination analysis on the multiplexed pins in the two-wheeled vehicle instrument, the problem of the limited number of hardware pins of the microcontroller chip was solved, and the effective multiplexing of pins and accurate triggering of functions were realized.

CN116720085BActive Publication Date: 2026-03-20WUHAN BLUESTAR TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In the instrument panel of a two-wheeled vehicle, due to the limited number of hardware pins of the microcontroller chip, existing technologies cannot effectively achieve pin reuse and prevent false triggering of functions.

Method used

By performing signal detection on the multiplexed pins within a preset time, identifying the signal category, and determining the signal type based on the frequency, a time-division multiplexing strategy is adopted. The waveform combination detection method is used to realize pin multiplexing, preventing false triggering of functions caused by external interference.

Benefits of technology

This achieves effective pin reuse, prevents erroneous function triggering, and ensures accurate signal detection and correct function triggering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116720085B_ABST
    Figure CN116720085B_ABST
Patent Text Reader

Abstract

The application discloses a pin multiplexing method based on waveform combination detection, which comprises the following steps: detecting multiplexing pins within a preset time to obtain signals output by the multiplexing pins; identifying the categories of the signals output by the multiplexing pins, and triggering corresponding functions according to the signal category identification results. The application can realize the pin multiplexing effect and prevent the problem of false triggering of various functions caused by external interference.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of pin multiplexing, and in particular to a pin multiplexing method based on waveform combination detection. BACKGROUND

[0002] In the two-wheeled vehicle instrument industry, the two-wheeled vehicle instrument is limited by the vehicle body wire harness of the manufacturer, and the instrument tail line port is usually occupied for collecting vehicle body signals. For example, the two-wheeled vehicle instrument detects the speed and the rotating speed by using hard-wire detection, and each function occupies a pin or a port.

[0003] Therefore, for a low-cost two-wheeled vehicle instrument using a single-chip microcomputer scheme, when the pins are occupied and the peripheral interface needs to be expanded, other methods need to be used to multiplex the hardware pins. SUMMARY

[0004] The present application aims to at least solve one of the technical problems in the related art. To this end, one object of the present application is to provide a pin multiplexing method based on waveform combination detection to achieve pin multiplexing effect and prevent external interference from causing function mis-triggering.

[0005] To achieve the above-mentioned object, the present application realizes the following technical scheme:

[0006] A pin multiplexing method based on waveform combination detection, comprising:

[0007] Step S1: detecting the multiplexed pin within a preset time to obtain a signal output by the multiplexed pin;

[0008] Step S2: identifying the category of the signal output by the multiplexed pin, and triggering a corresponding function according to the signal category identification result.

[0009] Optionally, in the step S2, the signal category is determined according to the frequency of the signal output by the multiplexed pin.

[0010] Optionally, when the frequency of the signal output by the multiplexed pin is less than or equal to a preset frequency, the category of the signal output by the signal transmitting end through the multiplexed pin is identified as a normal valid signal, and a vehicle speed or rotating speed detection function is triggered.

[0011] Optionally, when the frequency of the signal output by the multiplexed pin is greater than the preset frequency, the category of the signal output by the signal transmitting end through the multiplexed pin is identified as a clutter combination signal, then the clutter combination signal is detected within the preset time according to time periods to obtain a serial number within the preset time, and a production link detection function is triggered according to the serial number.

[0012] Optionally, each of the serial numbers corresponds to a production link detection function.

[0013] Optionally, the preset time is divided into a plurality of time periods, each of the time periods corresponds to a frequency range, the frequency ranges corresponding to different time periods are different, and the step of detecting the spurious signal combination in the time periods in the preset time to obtain the serial number in the preset time comprises:

[0014] The number of groups of the spurious signal combination in each time period is sequentially identified to obtain the number of groups of the spurious signal combination in each time period.

[0015] All the numbers of groups of the spurious signal combination identified in the preset time are combined according to the time period detection sequence to obtain the serial number.

[0016] Optionally, the step of identifying the number of groups of the spurious signal combination in each time period comprises:

[0017] The spurious signal combination in each time period is obtained.

[0018] The number of spurious signal combinations in the frequency range corresponding to each time period in the time period is counted, and the number of spurious signal combinations is the number of groups of the spurious signal combination in the corresponding time period.

[0019] Optionally, the corresponding relationship between the serial number and the production link detection function is stored in advance, and the step of triggering the production link detection function according to the serial number comprises:

[0020] The combined serial number is matched with the serial number stored in advance, and after successful matching, the corresponding production link detection function is identified and triggered.

[0021] Optionally, the production link detection function comprises starting a total mileage clearing function, a sub-total mileage clearing function and a product detection program calling function.

[0022] Optionally, the signal transmitting end only transmits one type of signal in the preset time.

[0023] The present application has at least the following technical effects:

[0024] 1、The application detects the signal outputted by the multiplexing pin within the preset time of starting up, and determines the signal category according to the frequency of the signal outputted by the multiplexing pin, such as determining the normal effective signal, triggering the speed or rotation speed detection function, or determining the noise combination signal, triggering the production link detection function. The signal transmitting end in the application only sends one kind of signal, i.e. the normal effective signal or the noise combination signal, within the preset time, adopts the time division multiplexing and the strategy of normal effective signal priority detection, realizes the effective isolation of the normal effective signal and the noise combination signal, so as to prevent the false triggering of the corresponding function on the basis of realizing the triggering of each function, thus achieving the effect of pin multiplexing.

[0025] 2、The application divides the preset time into several time periods, then each time period corresponds to a frequency range, and the frequency ranges corresponding to different time periods are different, then the number of noise combination signals in each time period within the frequency range corresponding to the time period is counted to determine the number of noise combination signals in the corresponding time period, and then the number of all noise combination signals identified within the preset time is combined according to the time period detection sequence to obtain a serial number, then the serial number obtained by combination is matched with the pre-stored serial number, and after successful matching, the corresponding production link detection function is identified and triggered, thus the complex waveform combination method can be used to avoid false triggering caused by the coincidence of the interference waveform with the set complex waveform combination, so that the complex waveform combination set in advance can be effectively detected, and the purpose of triggering the function set in advance can be achieved, realizing the effect of pin multiplexing.

[0026] Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will become apparent to those skilled in the art upon examination of the following description and drawings. BRIEF DESCRIPTION OF DRAWINGS

[0027] Figure 1 The flow chart of the pin multiplexing method based on waveform combination detection of the embodiment of the application.

[0028] Figure 2 The flow chart of the pin multiplexing method based on waveform combination detection of the embodiment of the application. DETAILED DESCRIPTION

[0029] The embodiment will be described in detail below, and examples of the embodiment are shown in the drawings, wherein the same or similar reference signs represent the same or similar elements or elements with the same or similar functions throughout. The embodiment described below by referring to the drawings is exemplary and is intended to explain the application, and cannot be understood as a limitation of the application.

[0030] A pin multiplexing method based on waveform combination detection of the embodiment will be described below with reference to the drawings.

[0031] Figure 1 A flow chart of a pin multiplexing method based on waveform combination detection according to an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the pin multiplexing method based on waveform combination detection includes the following steps. Figure 1

[0032] Step S1: detecting the multiplexed pin within a preset time to obtain the signal output by the multiplexed pin.

[0033] Specifically, the signal output by the multiplexed pin is detected within a preset time, such as 2 seconds, after the instrument is powered on.

[0034] Step S2: identifying the category of the signal output by the multiplexed pin, and triggering the corresponding function according to the signal category identification result.

[0035] In this embodiment, the signal category can be determined according to the frequency of the signal output by the multiplexed pin.

[0036] Specifically, when the frequency of the signal output by the multiplexed pin is less than or equal to a preset frequency, the category of the signal output by the multiplexed pin is identified as a normal valid signal, and the vehicle speed or rotational speed detection function is triggered.

[0037] For example, the signal transmission end of the instrument transmits a frequency signal lower than the preset frequency, such as 500 Hz. After the detection end detects the frequency signal lower than 500 Hz, it is determined that the signal is a normal valid signal for vehicle speed or rotational speed detection, and then the vehicle speed or rotational speed detection function is triggered, i.e., the signal frequency is converted into vehicle speed or rotational speed, and then the vehicle speed and rotational speed are displayed on the liquid crystal screen, realizing real-time display of the vehicle speed and rotational speed.

[0038] After the vehicle speed or rotational speed is detected, if the detection time exceeds the preset time, the instrument is restarted, and the signal transmission end can transmit a noise combination signal within the next preset time.

[0039] When the frequency of the signal output by the multiplexed pin is greater than the preset frequency, the category of the signal output by the multiplexed pin is identified as a noise combination signal, and then the noise combination signal is detected within a preset time according to time period to obtain a serial number within the preset time, and the production link detection function is triggered according to the serial number.

[0040] Each serial number corresponds to a production link detection function. The production link detection function includes starting the total mileage clearing function, the sub-total mileage clearing function, and the product detection program calling function. Of course, the production link detection function can also include other functions, which are not limited here.

[0041] ​In the embodiment, the preset time can be divided into several time periods, each time period corresponds to a frequency range, and the frequency ranges corresponding to different time periods are different. The step of detecting the spurious combination signal in time periods in the preset time to obtain the serial number in the preset time includes: sequentially identifying the number of groups of the spurious combination signal in each time period to obtain the number of groups of the spurious combination signal in each time period; and combining the number of groups of the spurious combination signal identified in the preset time according to the time period detection sequence to obtain the serial number.

[0042] In the step of identifying the number of groups of the spurious combination signal in each time period, the step includes: obtaining the spurious combination signal in each time period; and counting the number of spurious combination signals in the frequency range corresponding to the time period in each time period, the number of spurious combination signals being the number of groups of the spurious combination signal in the corresponding time period.

[0043] As an example, the spurious combination signal detection mode can be described in detail according to the typical spurious combination table in Table 1 below.

[0044] Table 1 Typical spurious combination table

[0045] Time period 0~0.5S 0.5~1S 1~1.5S 1.5~2S Spur frequency 3001-3999 Hz 1001-1999 Hz 4001-4999 Hz 2001-2999 Hz Number of groups 3 groups 1 group 4 groups 2 groups

[0046] Specifically, when the frequency of the signal output by the multiplexing pin is greater than a preset frequency such as 500 Hz, the spurious combination signal detection link is entered. First, the signal transmitting end divides a preset time such as 2 s into several time periods such as four time periods, i.e., 0-0.5 s, 0.5-1 s, 1-1.5 s, and 1.5-2 s, and each time period corresponds to a frequency range in which the frequency of the transmitted waveform is located, which is 3001-3999 Hz, 1001-1999 Hz, 4001-4999 Hz, and 2001-2999 Hz, respectively. When the signal transmitting end transmits a spurious combination signal, the detection end detects the waveform in the 0-0.5 s time period according to the time period detection sequence first, such as detecting multiple groups of frequency waveform signals, and then counts the number of signals in the multiple groups of frequency waveform signals located in the 3001-3999 Hz range. For example, three frequency signals 3002 Hz, 3010 Hz, and 3900 Hz of the spurious combination signal are detected in the 0-0.5 s time period, and all are located in the 3001-3999 Hz range, so the number of groups of the spurious combination signal in the 0-0.5 s time period is 3.

[0047] Further, the number of groups of the noise combination in the 0.5-1S time period is detected, for example, the number of groups of the noise combination in the 0.5-1S time period is 1, and the number of groups of the noise combination in the 1-1.5S and 1.5-2S time periods is detected, and the corresponding number of groups is 4 and 2 respectively, so that all the group numbers can be generated into a serial number 3142 according to the time period detection sequence.

[0048] Since the instrument internally pre-stores the corresponding relationship between the serial number and the production link detection function, after the detection end detects the serial number 3142, the serial number 3142 can be matched with the pre-stored serial number, and after the matching is successful, the production link detection function corresponding to the serial number 3142 is recognized and triggered.

[0049] It can be understood that the noise combination signal corresponding to the serial number is the combination of each frequency signal. Therefore, at the signal transmitting end, the combined noise can be continuously transmitted according to the above-mentioned time period and frequency range, and then the noise frequency detection is performed at the detection end of the instrument, and the grouping recognition is performed to obtain the serial number.

[0050] In this embodiment, according to the defined function triggering condition, the combination of each frequency signal corresponding to the waveform combination that needs to be detected, i.e., the serial number, is pre-stored in the chip memory, so that after the corresponding waveform combination is transmitted at the signal transmitting end, the detection end can detect the corresponding serial number, and then the corresponding function is started, thereby the pin multiplexing effect can be achieved, and the corresponding function can be prevented from being triggered by mistake.

[0051] It should be noted that the waveforms transmitted in each time period are non-linearly changed frequency waveforms, so that the interference signal caused by accidental factors will not interfere with the noise signal transmitted in each time period, thereby ensuring that the detection end can detect the pre-set noise combination sequence, i.e., the serial number 3142, and then the corresponding production detection link function can be triggered, for example, the total mileage is cleared, or the sub-total mileage is cleared.

[0052] In addition, it should be noted that the signal transmitting end only transmits one type of signal in the preset time. That is, in this embodiment, the time-sharing detection method is used for detection, for example, if a normal effective signal is detected within 2S after the instrument is started, the vehicle speed or the rotating speed detection link is entered, if the noise combination signal is detected within 2S after the instrument is started, the next step of noise combination signal detection is performed, and if the noise combination signal is detected after the instrument is started for more than 2S, all the detected noise combination signals are directly discarded. In this embodiment, the detection end only detects one type of signal in the preset time, so that the normal effective signal and the noise combination signal can be effectively isolated, thereby the corresponding function can be prevented from being triggered by mistake on the basis of realizing the function triggering, and thus the pin multiplexing effect can be achieved.

[0053] Figure 2 A flow chart of a pin multiplexing method based on waveform combination detection according to an embodiment of the present application. Figure 2 As shown, the instrument vehicle speed signal detection pin, i.e., the multiplexed pin output signal, can be detected. If a normal valid signal is detected within 2S of startup, the instrument processes the vehicle speed signal detection process, converts the signal frequency into a vehicle speed display on the instrument interface. If a noise combination signal is detected within 2S of startup, the instrument enters the noise combination signal detection process, which specifically detects and groups noise according to time period, determines the number of noise signal groups in each group, and generates a serial number, i.e., obtains a specific noise combination, then matches the serial number, and starts the corresponding function, if the serial number matching is unsuccessful, it returns to the vehicle speed or rotational speed detection process.

[0054] In summary, the present application detects the signal output by the multiplexed pin within a preset startup time, and determines the signal category according to the frequency of the signal output by the multiplexed pin, such as determining a normal valid signal, triggering a vehicle speed or rotational speed detection function, or determining a noise combination signal, triggering a production link detection function. The signal transmitting end in the present application only transmits one type of signal, i.e., a normal valid signal or a noise combination signal, within a preset time, adopts time division multiplexing and normal valid signal priority detection strategy, realizes effective isolation of normal valid signals and noise combination signals, thereby preventing false triggering of corresponding functions, thereby achieving pin multiplexing effect. In addition, the present application divides the preset time into several time periods, then each time period corresponds to a frequency range, and the frequency ranges corresponding to different time periods are different, then the number of noise combination signals within each time period in the frequency range corresponding to the time period is counted to determine the number of noise combination signals in the corresponding time period, then all the numbers of noise combination signals identified within the preset time are combined in the order of time period detection to obtain a serial number, then the serial number obtained by combination is matched with the pre-stored serial number, and after successful matching, the corresponding production link detection function is identified and triggered.

[0055] It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application cover modifications and variations of this application provided they come within the scope of the appended claims and their equivalents.

[0056] While the application has been described in detail and with reference to specific embodiments thereof, it will be apparent to one skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope thereof. It is therefore intended that such changes and modifications be included within the scope of the application as defined by the appended claims.

Claims

1. A pin multiplexing method based on waveform combination detection, characterized in that, include: Step S1: Detect the multiplexed pin within a preset time to obtain the signal output by the multiplexed pin; Step S2: Identify the type of signal output by the multiplexed pin, and trigger the corresponding function based on the signal type identification result; Step S2 includes: determining the signal category based on the frequency of the signal output from the multiplexed pin; When the frequency of the signal output by the multiplexed pin is less than or equal to the preset frequency, the signal type of the signal output by the signal transmitter through the multiplexed pin is identified as a normal valid signal, and the vehicle speed or rotation speed detection function is triggered. When the frequency of the signal output by the multiplexed pin is greater than the preset frequency, the signal type of the signal output by the signal transmitter through the multiplexed pin is identified as a clutter combination signal. Then, the preset time is divided into several time periods, each time period corresponding to a frequency range. The frequency ranges corresponding to different time periods are different. The number of clutter combination signals in each time period is identified in turn to obtain the number of clutter combination signals in each time period. The number of all clutter combination signals identified in the preset time period is combined according to the detection order of the time periods to obtain the sequence number in the preset time period. The production process detection function is triggered according to the sequence number. Each sequence number corresponds to a production process detection function. The signal transmitter only transmits one type of signal in the preset time period. The waveforms transmitted in each time period adopt non-linear frequency changing waveforms.

2. The pin multiplexing method based on waveform combination detection as described in claim 1, characterized in that, The steps for identifying the number of clutter combination signals within each time period include: Acquire the clutter combination signal within each time period; The number of clutter combination signals located within the frequency range corresponding to each time period is counted, and the number of clutter combination signals is the number of clutter combination signal groups in the corresponding time period.

3. The pin multiplexing method based on waveform combination detection as described in claim 2, characterized in that, The correspondence between serial numbers and production process detection functions is pre-stored. The step of triggering the production process detection function based on the serial number includes: matching the combined serial number with the pre-stored serial number, and identifying and triggering the corresponding production process detection function after successful matching.

4. The pin multiplexing method based on waveform combination detection as described in claim 3, characterized in that, The production process detection functions include activating and clearing the total mileage, clearing the trip mileage, and calling the product detection program.

Citation Information

Patent Citations

  • FPGA pin multiplexing method based on signal frequency, electronic equipment and medium

    CN114911737A

  • User terminal and channel estimation method

    US20200221476A1