CN112067031A - Gear signal checking method and device of automobile gear shifter, storage medium and system - Google Patents

Gear signal checking method and device of automobile gear shifter, storage medium and system Download PDF

Info

Publication number
CN112067031A
CN112067031A CN202010798656.8A CN202010798656A CN112067031A CN 112067031 A CN112067031 A CN 112067031A CN 202010798656 A CN202010798656 A CN 202010798656A CN 112067031 A CN112067031 A CN 112067031A
Authority
CN
China
Prior art keywords
signal
gear
gear signal
chip
main chip
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
Application number
CN202010798656.8A
Other languages
Chinese (zh)
Other versions
CN112067031B (en
Inventor
毛成成
周洪波
付良健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Express Jiangsu Technology Co Ltd
Original Assignee
China Express Jiangsu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Express Jiangsu Technology Co Ltd filed Critical China Express Jiangsu Technology Co Ltd
Priority to CN202010798656.8A priority Critical patent/CN112067031B/en
Publication of CN112067031A publication Critical patent/CN112067031A/en
Application granted granted Critical
Publication of CN112067031B publication Critical patent/CN112067031B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00

Abstract

The invention discloses a gear signal checking method, a device, a storage medium and a system of an automobile gear shifter, comprising the following steps: the main chip sends a synchronous notification signal to the auxiliary chip; when a synchronous response signal returned by the secondary chip is received, acquiring a first gear signal according to the time period and sending the first gear signal to the secondary chip; the secondary chip checks the second gear signal according to the first gear signal, and when the second gear signal is judged to be consistent with the first gear signal, a second check signal is obtained and sent to the main chip; the second gear signal is acquired according to a time period and sent to the main chip after the auxiliary chip returns a synchronous response signal to the main chip and a preset time period elapses; verifying the first gear signal according to the second gear signal, and obtaining a first verification signal when the first gear signal is judged to be consistent with the second gear signal; comparing the second check signal with the first check signal; when the determination is made to be consistent, a valid gear signal is obtained. By adopting the technical scheme of the invention, the accuracy and the reliability of the gear signal can be improved.

Description

Gear signal checking method and device of automobile gear shifter, storage medium and system
Technical Field
The invention relates to the technical field of automobile gear shifting, in particular to a method, a device, a computer readable storage medium and a system for checking a gear signal of an automobile gear shifter.
Background
In order to ensure the accuracy of automobile gear shifting, corresponding gear signals need to be fed back and verified, and when the gear signals of a gear shifter are verified, the existing technical scheme mainly adopts a chip to verify the gear signals acquired by a sensor and send the verified gear signals to a bus.
The technical scheme has the following problems: the gear signal is verified by adopting a single chip, and the abnormal gear signal can not be detected, so that the accuracy and the reliability of the gear signal are lower.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method, an apparatus, a computer readable storage medium and a system for checking a gear signal of an automobile gear shifter, which can improve the accuracy and reliability of the gear signal.
In order to solve the technical problem, a first aspect of the embodiments of the present invention provides a method for verifying a shift signal of an automobile shifter, where the method is performed by a main chip, and the method includes:
transmitting a synchronization notification signal to the sub-chip;
when a synchronous response signal returned by the secondary chip is received, acquiring and acquiring a first gear signal of a gear shifter of the automobile through a first sensor according to a preset time period, and sending the first gear signal to the secondary chip; the auxiliary chip checks the second gear signal according to the received first gear signal, correspondingly obtains a second check signal when the second gear signal is judged to be consistent with the first gear signal, and sends the second check signal to the main chip; after the synchronous response signal is returned to the main chip by the auxiliary chip and a preset time period elapses, the second gear signal is acquired by a second sensor according to the time period and is sent to the main chip by the auxiliary chip;
verifying the first gear signal according to the received second gear signal, and correspondingly obtaining a first verification signal when the first gear signal is judged to be consistent with the second gear signal;
comparing the received second check signal with the first check signal;
and when the first check signal is consistent with the second check signal, correspondingly obtaining an effective gear signal, and sending the effective gear signal to a signal transceiver.
Further, after the acquiring of the first gear signal of the gear shifter of the automobile through the first sensor acquisition, the method further comprises:
1 is added for updating the acquisition times of the first gear signal of the historical record, and a first current count is correspondingly obtained;
sending the first current count to a secondary chip; enabling the secondary chip to check a second current count according to the received first current count; after the secondary chip acquires and obtains the second gear signal through the second sensor, the secondary chip adds 1 to update the acquisition times of the second gear signal recorded in history, and the secondary chip sends the second current count to the main chip;
checking the first current count according to the received second current count;
then, the verifying the first gear signal according to the received second gear signal specifically includes:
and when the second current count is judged to be the same as the first current count, checking the first gear signal according to the received second gear signal.
Further, the first sensor is a hall sensor or a grating sensor; the second sensor is a Hall sensor or a grating sensor.
In order to solve the above technical problem, a first aspect of an embodiment of the present invention provides a gear signal verifying device for an automobile shifter, the device being disposed in a main chip, the device including:
the synchronous notification module is used for sending a synchronous notification signal to the secondary chip;
the first gear signal acquisition module is used for acquiring and acquiring a first gear signal of a gear shifter of an automobile through a first sensor according to a preset time period when a synchronous response signal returned by the secondary chip is received, and sending the first gear signal to the secondary chip; the auxiliary chip checks the second gear signal according to the received first gear signal, correspondingly obtains a second check signal when the second gear signal is judged to be consistent with the first gear signal, and sends the second check signal to the main chip; after the synchronous response signal is returned to the main chip by the auxiliary chip and a preset time period elapses, the second gear signal is acquired by a second sensor according to the time period and is sent to the main chip by the auxiliary chip;
the first gear signal checking module is used for checking the first gear signal according to the received second gear signal, and correspondingly obtaining a first checking signal when the first gear signal is judged to be consistent with the second gear signal;
the verification signal comparison module is used for comparing the received second verification signal with the first verification signal;
and the effective gear signal sending module is used for correspondingly obtaining an effective gear signal when the first check signal is consistent with the second check signal, and sending the effective gear signal to the signal transceiver.
In order to solve the above technical problem, a second aspect of the embodiments of the present invention provides a method of verifying a shift signal of an automobile shifter, the method being performed by a sub chip, the method including:
when receiving a synchronous notification signal sent by the main chip, returning a synchronous response signal to the main chip;
after a preset time period, acquiring and acquiring a second gear signal of a gear shifter of the automobile through a second sensor according to a preset time period, and sending the second gear signal to a main chip; the main chip checks the first gear signal according to the received second gear signal, and correspondingly obtains a first check signal when the first gear signal is judged to be consistent with the second gear signal; after the synchronous response signal is received by the main chip, the first gear signal is acquired by the first sensor according to the time period and is sent to the auxiliary chip by the main chip;
verifying the second gear signal according to the received first gear signal, correspondingly obtaining a second verification signal when the second gear signal is judged to be consistent with the first gear signal, and sending the second verification signal to a main chip; and the main chip compares the received second check signal with the first check signal, correspondingly obtains an effective gear signal when the first check signal is judged to be consistent with the second check signal, and sends the effective gear signal to the signal transceiver.
Further, after the acquiring of the second gear signal of the gear shifter of the automobile through the second sensor acquisition, the method further comprises:
1 is added for updating the second gear signal acquisition times of the historical records, and a second current count is correspondingly obtained;
sending the second current count to a master chip; enabling the main chip to check the first current count according to the received second current count; after the first current count is acquired by the main chip through the first sensor to obtain the first gear signal, 1 is added for updating the acquisition times of the first gear signal of the historical record, and the first current count is sent to the auxiliary chip by the main chip;
checking the second current count according to the received first current count;
then, the verifying the second gear signal according to the received first gear signal specifically includes:
and when the first current count is judged to be the same as the second current count, verifying the second gear signal according to the received first gear signal.
Further, the first sensor is a hall sensor or a grating sensor; the second sensor is a Hall sensor or a grating sensor.
In order to solve the above technical problem, a second aspect of the embodiments of the present invention provides a gear signal verifying device for an automobile shifter, the device being disposed in a secondary chip, the device including:
the synchronous response module is used for returning a synchronous response signal to the main chip when receiving the synchronous notification signal sent by the main chip;
the second gear signal acquisition module is used for acquiring and acquiring a second gear signal of a gear shifter of the automobile through a second sensor according to a preset time period after a preset time period, and sending the second gear signal to the main chip; the main chip checks the first gear signal according to the received second gear signal, and correspondingly obtains a first check signal when the first gear signal is judged to be consistent with the second gear signal; after the synchronous response signal is received by the main chip, the first gear signal is acquired by the first sensor according to the time period and is sent to the auxiliary chip by the main chip;
the second gear signal checking module is used for checking the second gear signal according to the received first gear signal, correspondingly obtaining a second checking signal when the second gear signal is judged to be consistent with the first gear signal, and sending the second checking signal to the main chip; and the main chip compares the received second check signal with the first check signal, correspondingly obtains an effective gear signal when the first check signal is judged to be consistent with the second check signal, and sends the effective gear signal to the signal transceiver.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; wherein the computer program, when executed, controls an apparatus on which the computer readable storage medium is located to perform the method for verifying a gear signal of an automobile shifter according to any one of the first aspect or the method for verifying a gear signal of an automobile shifter according to any one of the second aspect.
The embodiment of the invention also provides a gear signal checking system of the automobile gear shifter, which comprises a first sensor, a second sensor, a main chip, an auxiliary chip and a signal transceiver; wherein the content of the first and second substances,
the first sensor is used for collecting a first gear signal of a gear shifter of an automobile and sending the first gear signal to the main chip;
the second sensor is used for acquiring a second gear signal of a gear shifter of an automobile and sending the second gear signal to the secondary chip;
the main chip is used for executing the gear signal verification method of the automobile gear shifter in any one of the first aspect;
the secondary chip is used for executing the gear signal verification method of the automobile gear shifter in any one of the second aspects;
the signal transceiver is used for receiving the effective gear signal sent by the main chip.
Compared with the prior art, the embodiment of the invention provides a gear signal checking method, a device, a computer readable storage medium and a system of an automobile gear shifter, when a main chip and an auxiliary chip are synchronized, the main chip acquires a first gear signal of the automobile gear shifter through a first sensor according to a preset time period and sends the first gear signal to the auxiliary chip for checking, the auxiliary chip acquires a second gear signal of the automobile gear shifter through a second sensor according to the same time period and sends the second gear signal to the main chip for checking, the main chip completes checking to obtain a first checking signal, the auxiliary chip completes checking to obtain a second checking signal, the auxiliary chip sends the second checking signal to the main chip, the main chip checks the second checking signal and the first checking signal again, and finally sends an effective gear signal to a signal transceiver for corresponding processing, the gear signals are mutually verified by adopting the two chips, and the two chips are verified for many times, so that the accuracy and the reliability of the gear signals can be improved.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a method for verifying a shift signal of a vehicle shifter in accordance with a first aspect of the present invention;
FIG. 2 is a block diagram of a preferred embodiment of a gear signal verifying device for a vehicle shifter in accordance with a first aspect of the present invention;
FIG. 3 is a flow chart of a preferred embodiment of a method for verifying a shift signal of a vehicle shifter in accordance with a second aspect of the present invention;
FIG. 4 is a block diagram of a preferred embodiment of a gear signal verifying device for a vehicle shifter in accordance with a second aspect of the present invention;
FIG. 5 is a block diagram of a preferred embodiment of a gear signal verification system for a vehicle shifter in accordance with 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 any inventive step, are within the scope of the present invention.
The first aspect of the embodiments of the present invention provides a method for verifying a gear signal of an automobile shifter, which is a flowchart of a preferred embodiment of the method for verifying a gear signal of an automobile shifter provided by the first aspect of the present invention, as shown in fig. 1, the method is executed by a master chip, and the method includes steps S11 to S15:
step S11, sending a synchronization notification signal to the secondary chip;
step S12, when a synchronous response signal returned by the secondary chip is received, acquiring a first gear signal of a gear shifter of the automobile through a first sensor according to a preset time period, and sending the first gear signal to the secondary chip; the auxiliary chip checks the second gear signal according to the received first gear signal, correspondingly obtains a second check signal when the second gear signal is judged to be consistent with the first gear signal, and sends the second check signal to the main chip; after the synchronous response signal is returned to the main chip by the auxiliary chip and a preset time period elapses, the second gear signal is acquired by a second sensor according to the time period and is sent to the main chip by the auxiliary chip;
step S13, the first gear signal is verified according to the received second gear signal, and when the first gear signal is judged to be consistent with the second gear signal, a first verification signal is correspondingly obtained;
step S14, comparing the received second check signal with the first check signal;
and step S15, when the first check signal is consistent with the second check signal, correspondingly obtaining a valid gear signal, and sending the valid gear signal to a signal transceiver.
Specifically, the main chip sends a synchronization notification signal to the sub-chip, and when the sub-chip receives the synchronization notification signal sent by the main chip, the sub-chip returns a corresponding synchronization response signal to the main chip; when the main chip receives a synchronous response signal returned by the auxiliary chip, acquiring a current first gear signal of a gear shifter of an automobile through a first sensor according to a preset time period (which can be set according to actual needs, for example, the time period is 5ms), and sending the acquired first gear signal to the auxiliary chip for first verification; after a preset time period (the time for the main chip to acquire the first gear signal is synchronous with the time for the auxiliary chip to acquire the second gear signal), acquiring a current second gear signal of the automobile gear shifter through a second sensor according to the same time period set by the main chip, and sending the acquired second gear signal to the main chip for first verification; when the main chip performs first verification, verifying the first gear signal according to a received second gear signal sent by the auxiliary chip to judge whether the second gear signal is consistent with the first gear signal, and when the second gear signal is judged to be consistent with the first gear signal, correspondingly obtaining a first verification signal; when the secondary chip performs first verification, verifying the second gear signal according to the received first gear signal sent by the main chip to judge whether the first gear signal is consistent with the second gear signal, correspondingly obtaining a second verification signal when the first gear signal is judged to be consistent with the second gear signal, and sending the second verification signal to the main chip for second verification; when the main chip carries out second verification, the received second verification signal sent by the auxiliary chip is compared with the first verification signal so as to judge whether the first verification signal is consistent with the second verification signal; when the first check signal is judged to be consistent with the second check signal, an effective gear signal is correspondingly obtained and sent to the signal transceiver for corresponding processing, for example, the effective gear signal is sent to the CAN bus through the CAN signal transceiver so as to control the automobile to perform gear adjustment.
It should be noted that before the synchronization of the main chip and the sub-chip is completed, the main chip and the sub-chip need to be initialized respectively, and the specific initialization process is not described herein again.
In the method for checking the gear signal of the automobile gear shifter provided by the first aspect of the embodiment of the invention, when the main chip and the auxiliary chip are synchronized, the main chip acquires the first gear signal of the automobile gear shifter through the first sensor according to a preset time period and sends the first gear signal to the auxiliary chip for checking, the auxiliary chip acquires the second gear signal of the automobile gear shifter through the second sensor according to the same time period and sends the second gear signal to the main chip for checking, the main chip finishes checking to acquire the first checking signal, the auxiliary chip finishes checking to acquire the second checking signal, the auxiliary chip sends the second checking signal to the main chip, the main chip rechecks the second checking signal and the first checking signal, and finally sends the effective gear signal to the signal transceiver for corresponding processing, and mutual checking of the gear signals is performed by adopting the two chips, and check many times between two chips to can promote the accuracy and the reliability of gear signal.
In another preferred embodiment, after the acquiring of the first gear signal of the gear shifter of the automobile through the first sensor acquisition, the method further includes:
1 is added for updating the acquisition times of the first gear signal of the historical record, and a first current count is correspondingly obtained;
sending the first current count to a secondary chip; enabling the secondary chip to check a second current count according to the received first current count; after the secondary chip acquires and obtains the second gear signal through the second sensor, the secondary chip adds 1 to update the acquisition times of the second gear signal recorded in history, and the secondary chip sends the second current count to the main chip;
checking the first current count according to the received second current count;
then, the verifying the first gear signal according to the received second gear signal specifically includes:
and when the second current count is judged to be the same as the first current count, checking the first gear signal according to the received second gear signal.
Specifically, with reference to the above embodiment, the main chip records the acquisition times of the first gear signal, the sub chip records the acquisition times of the second gear signal, and the main chip adds 1 to the acquisition times of the first gear signal recorded in history after acquiring and acquiring the current first gear signal of the gear shifter of the automobile through the first sensor, so as to obtain a first current count correspondingly, and sends the first current count to the sub chip for count verification; and after acquiring and acquiring the current second gear signal of the gear shifter of the automobile through the second sensor, the secondary chip adds 1 to update the acquisition times of the second gear signal of the historical record, correspondingly acquires a second current count, and sends the second current count to the main chip for counting and checking.
When the main chip performs count verification, the first current count is verified according to the received second current count sent by the auxiliary chip to determine whether the second current count is the same as the first current count, when it is determined that the second current count is the same as the first current count, the first gear signal is verified according to the received second gear signal sent by the auxiliary chip, and a specific processing procedure of performing first verification by the main chip is the same as that in the above embodiment, and is not repeated here.
Correspondingly, when the secondary chip performs count verification, the secondary chip performs verification on the second current count according to the received first current count sent by the primary chip to determine whether the first current count is the same as the second current count, and when it is determined that the first current count is the same as the second current count, performs first verification on the second gear signal according to the received first gear signal sent by the primary chip, where a specific processing procedure of performing first verification by the secondary chip is the same as that in the above-described embodiment, and is not described here again.
In yet another preferred embodiment, the first sensor is a hall sensor or a grating sensor; the second sensor is a Hall sensor or a grating sensor.
Specifically, in combination with the above embodiment, the shift position signal may be acquired by a sensor and may be sent to a corresponding main chip or a corresponding sub-chip through a UART, where the first sensor and the second sensor may be a hall sensor, a grating sensor, and the like, and the type of the sensor is not specifically limited in the embodiment of the present invention.
The first aspect of the embodiments of the present invention further provides a gear signal checking device for an automobile gear shifter, which can implement all the processes of the gear signal checking method for an automobile gear shifter described in any one of the embodiments of the first aspect, and the functions and achieved technical effects of each module and unit in the device are respectively the same as those of the gear signal checking method for an automobile gear shifter described in any one of the embodiments of the first aspect and achieved technical effects, and are not described herein again.
Referring to fig. 2, the device is a block diagram of a preferred embodiment of a gear signal verifying device of an automobile shifter provided in a first aspect of the present invention, the device is disposed in a main chip, and the device includes:
a synchronization notification module 11, configured to send a synchronization notification signal to the secondary chip;
the first gear signal acquisition module 12 is configured to acquire a first gear signal of a gear shifter of an automobile through a first sensor according to a preset time period when receiving a synchronous response signal returned by the secondary chip, and send the first gear signal to the secondary chip; the auxiliary chip checks the second gear signal according to the received first gear signal, correspondingly obtains a second check signal when the second gear signal is judged to be consistent with the first gear signal, and sends the second check signal to the main chip; after the synchronous response signal is returned to the main chip by the auxiliary chip and a preset time period elapses, the second gear signal is acquired by a second sensor according to the time period and is sent to the main chip by the auxiliary chip;
the first gear signal checking module 13 is configured to check the first gear signal according to the received second gear signal, and when the first gear signal is determined to be consistent with the second gear signal, correspondingly obtain a first check signal;
a check signal comparison module 14, configured to compare the received second check signal with the first check signal;
and the effective gear signal sending module 15 is configured to correspondingly obtain an effective gear signal when the first check signal is consistent with the second check signal, and send the effective gear signal to the signal transceiver.
Preferably, the apparatus further comprises:
the first counting updating module is used for performing 1-adding updating processing on the acquisition times of the first gear signals of the historical records to correspondingly obtain a first current count;
the first count sending module is used for sending the first current count to a secondary chip; enabling the secondary chip to check a second current count according to the received first current count; after the secondary chip acquires and obtains the second gear signal through the second sensor, the secondary chip adds 1 to update the acquisition times of the second gear signal recorded in history, and the secondary chip sends the second current count to the main chip;
the first counting checking module is used for checking the first current counting according to the received second current counting;
then, the first gear signal checking module 13 specifically includes:
and the first gear signal checking unit is used for checking the first gear signal according to the received second gear signal when the second current count is judged to be the same as the first current count.
Preferably, the first sensor is a hall sensor or a grating sensor; the second sensor is a Hall sensor or a grating sensor.
The second aspect of the embodiment of the present invention provides a method for verifying a gear signal of a shifter for a vehicle, which is a flowchart of a preferred embodiment of the method for verifying a gear signal of a shifter for a vehicle, which is executed by a secondary chip, and which includes steps S21 to S23, as shown in fig. 3:
step S21, when receiving the synchronization notification signal sent by the main chip, returning a synchronization response signal to the main chip;
step S22, acquiring a second gear signal of a gear shifter of the automobile through a second sensor according to a preset time period after a preset time period, and sending the second gear signal to a main chip; the main chip checks the first gear signal according to the received second gear signal, and correspondingly obtains a first check signal when the first gear signal is judged to be consistent with the second gear signal; after the synchronous response signal is received by the main chip, the first gear signal is acquired by the first sensor according to the time period and is sent to the auxiliary chip by the main chip;
step S23, verifying the second gear signal according to the received first gear signal, and when the second gear signal is determined to be consistent with the first gear signal, correspondingly obtaining a second verification signal and sending the second verification signal to a main chip; and the main chip compares the received second check signal with the first check signal, correspondingly obtains an effective gear signal when the first check signal is judged to be consistent with the second check signal, and sends the effective gear signal to the signal transceiver.
Specifically, the main chip sends a synchronization notification signal to the sub-chip, and the sub-chip returns a corresponding synchronization response signal to the main chip when receiving the synchronization notification signal sent by the main chip; after a preset time period (the time for the main chip to acquire the first gear signal is synchronous with the time for the auxiliary chip to acquire the second gear signal) passes, acquiring a current second gear signal of a gear shifter of the automobile through a second sensor according to a preset time period (which can be set according to actual needs, for example, the time period is 5ms), and sending the acquired second gear signal to the main chip for first verification; when the main chip receives a synchronous response signal returned by the auxiliary chip, acquiring a current first gear signal of a gear shifter of the automobile through a first sensor according to the same time period set by the auxiliary chip, and sending the acquired first gear signal to the auxiliary chip for first verification; when the secondary chip performs first verification, verifying the second gear signal according to the received first gear signal sent by the main chip to judge whether the first gear signal is consistent with the second gear signal, correspondingly obtaining a second verification signal when the first gear signal is judged to be consistent with the second gear signal, and sending the second verification signal to the main chip for second verification; when the main chip performs first verification, verifying the first gear signal according to a received second gear signal sent by the auxiliary chip to judge whether the second gear signal is consistent with the first gear signal, and when the second gear signal is judged to be consistent with the first gear signal, correspondingly obtaining a first verification signal; when the main chip carries out second verification, the received second verification signal sent by the auxiliary chip is compared with the first verification signal so as to judge whether the first verification signal is consistent with the second verification signal; when the first check signal is judged to be consistent with the second check signal, an effective gear signal is correspondingly obtained and sent to the signal transceiver for corresponding processing, for example, the effective gear signal is sent to the CAN bus through the CAN signal transceiver so as to control the automobile to perform gear adjustment.
It should be noted that before the synchronization of the main chip and the sub-chip is completed, the main chip and the sub-chip need to be initialized respectively, and the specific initialization process is not described herein again.
In a second aspect of the present invention, when the main chip and the sub chip are synchronized, the main chip acquires a first shift signal of the automobile gear shifter through a first sensor according to a preset time period, and transmits the first shift signal to the sub chip for verification, the sub chip acquires a second shift signal of the automobile gear shifter through a second sensor according to the same time period, and transmits the second shift signal to the main chip for verification, the main chip completes verification to acquire a first verification signal, the sub chip completes verification to acquire a second verification signal, the sub chip transmits the second verification signal to the main chip, the main chip verifies the second verification signal and the first verification signal, and finally transmits an effective shift signal to the signal transceiver for corresponding processing, and the two chips are used for mutual verification of the shift signals, and check many times between two chips to can promote the accuracy and the reliability of gear signal.
In a further preferred embodiment, after the acquiring of the second gear signal of the shifter of the automobile through the second sensor acquisition, the method further comprises:
1 is added for updating the second gear signal acquisition times of the historical records, and a second current count is correspondingly obtained;
sending the second current count to a master chip; enabling the main chip to check the first current count according to the received second current count; after the first current count is acquired by the main chip through the first sensor to obtain the first gear signal, 1 is added for updating the acquisition times of the first gear signal of the historical record, and the first current count is sent to the auxiliary chip by the main chip;
checking the second current count according to the received first current count;
then, the verifying the second gear signal according to the received first gear signal specifically includes:
and when the first current count is judged to be the same as the second current count, verifying the second gear signal according to the received first gear signal.
Specifically, with reference to the above embodiment, the main chip records the acquisition times of the first gear signal, the sub chip records the acquisition times of the second gear signal, and the sub chip performs update processing of adding 1 to the acquisition times of the second gear signal recorded in history after acquiring and acquiring the current second gear signal of the gear shifter of the automobile through the second sensor, correspondingly obtains the second current count, and sends the second current count to the main chip for count verification; after acquiring and acquiring a current first gear signal of a gear shifter of an automobile through a first sensor, the main chip adds 1 to the acquisition times of the first gear signal of the historical record for updating, correspondingly acquires a first current count, and sends the first current count to the auxiliary chip for counting and checking.
When the secondary chip performs count verification, the secondary chip performs verification on the second current count according to the received first current count sent by the primary chip to determine whether the first current count is the same as the second current count, and when it is determined that the first current count is the same as the second current count, performs first verification on the second gear signal according to the received first gear signal sent by the primary chip, where a specific processing procedure of performing first verification on the secondary chip is the same as that in the above embodiment, and is not described here again.
Correspondingly, when the main chip performs count verification, the first current count is verified according to the received second current count sent by the auxiliary chip to judge whether the second current count is the same as the first current count, when the second current count is judged to be the same as the first current count, the first gear signal is verified for the first time according to the received second gear signal sent by the auxiliary chip, and the specific processing process of the main chip for performing first verification is the same as the above embodiment, and is not repeated here.
In yet another preferred embodiment, the first sensor is a hall sensor or a grating sensor; the second sensor is a Hall sensor or a grating sensor.
Specifically, in combination with the above embodiment, the shift position signal may be acquired by a sensor and may be sent to a corresponding main chip or a corresponding sub-chip through a UART, where the first sensor and the second sensor may be a hall sensor, a grating sensor, and the like, and the type of the sensor is not specifically limited in the embodiment of the present invention.
The second aspect of the embodiments of the present invention further provides a gear signal verifying apparatus for an automobile gear shifter, which is capable of implementing all processes of the gear signal verifying method for an automobile gear shifter according to any one of the embodiments of the second aspect, and the functions and implemented technical effects of each module and unit in the apparatus are respectively the same as those of the gear signal verifying method for an automobile gear shifter according to any one of the embodiments of the second aspect, and are not repeated herein.
Referring to fig. 4, there is shown a block diagram of a preferred embodiment of a gear signal verifying device for a vehicle shifter according to a second aspect of the present invention, the device is disposed in a secondary chip, and the device includes:
the synchronous response module 21 is configured to return a synchronous response signal to the master chip when receiving the synchronous notification signal sent by the master chip;
the second gear signal acquisition module 22 is configured to acquire a second gear signal of a gear shifter of the automobile through a second sensor according to a preset time period after a preset time period elapses, and send the second gear signal to the main chip; the main chip checks the first gear signal according to the received second gear signal, and correspondingly obtains a first check signal when the first gear signal is judged to be consistent with the second gear signal; after the synchronous response signal is received by the main chip, the first gear signal is acquired by the first sensor according to the time period and is sent to the auxiliary chip by the main chip;
the second gear signal checking module 23 is configured to check the second gear signal according to the received first gear signal, obtain a second check signal when the second gear signal is determined to be consistent with the first gear signal, and send the second check signal to the main chip; and the main chip compares the received second check signal with the first check signal, correspondingly obtains an effective gear signal when the first check signal is judged to be consistent with the second check signal, and sends the effective gear signal to the signal transceiver.
Preferably, the apparatus further comprises:
the second count updating module is used for performing 1-adding updating processing on the acquisition times of the second gear signals of the historical records to correspondingly obtain a second current count;
the second counting sending module is used for sending the second current count to the main chip; enabling the main chip to check the first current count according to the received second current count; after the first current count is acquired by the main chip through the first sensor to obtain the first gear signal, 1 is added for updating the acquisition times of the first gear signal of the historical record, and the first current count is sent to the auxiliary chip by the main chip;
the second counting checking module is used for checking the second current counting according to the received first current counting;
then, the second gear signal checking module 23 specifically includes:
and the second gear signal checking unit is used for checking the second gear signal according to the received first gear signal when the first current count is judged to be the same as the second current count.
Preferably, the first sensor is a hall sensor or a grating sensor; the second sensor is a Hall sensor or a grating sensor.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; wherein the computer program, when running, controls an apparatus on which the computer readable storage medium is located to execute the method for verifying the gear signal of the automobile gear shifter according to any one of the first aspect or the method for verifying the gear signal of the automobile gear shifter according to any one of the second aspect.
An embodiment of the present invention further provides a gear signal verifying system of an automobile gear shifter, which is shown in fig. 5 and is a block diagram of a preferred embodiment of the gear signal verifying system of an automobile gear shifter, and the system includes a first sensor 100, a second sensor 200, a main chip 300, a sub-chip 400 and a signal transceiver 500; wherein the content of the first and second substances,
the first sensor 100 is configured to collect a first gear signal of a gear shifter of an automobile, and send the first gear signal to the main chip 300;
the second sensor 200 is configured to collect a second gear signal of a gear shifter of an automobile, and send the second gear signal to the secondary chip 400;
the main chip 300 is used for executing the gear signal verification method of the automobile gear shifter according to any one of the embodiments of the first aspect;
the secondary chip 400 is used for executing the gear signal verification method of the automobile gear shifter according to any one of the embodiments of the second aspect;
the signal transceiver 500 is configured to receive the valid gear signal sent by the main chip 300.
The first sensor 100 is connected to the signal transceiver 500 through the main chip 300, and the second sensor 200 is connected to the main chip 300 through the sub-chip 400.
It should be noted that, the gear signal verification system of the automobile gear shifter according to the embodiment of the present invention can implement all the processes of the gear signal verification method of the automobile gear shifter according to any one of the first aspect and the second aspect, and the functions and the implemented technical effects of the first sensor 100, the second sensor 200, the main chip 300, the sub-chip 400, and the signal transceiver 500 in the system are respectively the same as those of the gear signal verification method of the automobile gear shifter according to any one of the first aspect and the second aspect, and are not repeated herein.
To sum up, the embodiment of the present invention provides a method, an apparatus, a computer readable storage medium and a system for checking a shift signal of a shift lever of an automobile, wherein when a main chip and an auxiliary chip are synchronized, the main chip acquires a first shift signal of the shift lever of the automobile through a first sensor according to a preset time period and sends the first shift signal to the auxiliary chip for checking, the auxiliary chip acquires a second shift signal of the shift lever of the automobile through a second sensor according to the same time period and sends the second shift signal to the main chip for checking, the main chip completes checking to obtain a first check signal, the auxiliary chip completes checking to obtain a second check signal, the auxiliary chip sends the second check signal to the main chip, the main chip performs checking on the second check signal and the first check signal, and finally sends a valid shift signal to a signal transceiver for corresponding processing, the gear signals are mutually verified by adopting the two chips, and the two chips are verified for many times, so that the accuracy and the reliability of the gear signals can be improved.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method of verifying a gear signal of an automotive shifter, the method performed by a master chip, the method comprising:
transmitting a synchronization notification signal to the sub-chip;
when a synchronous response signal returned by the secondary chip is received, acquiring and acquiring a first gear signal of a gear shifter of the automobile through a first sensor according to a preset time period, and sending the first gear signal to the secondary chip; the auxiliary chip checks the second gear signal according to the received first gear signal, correspondingly obtains a second check signal when the second gear signal is judged to be consistent with the first gear signal, and sends the second check signal to the main chip; after the synchronous response signal is returned to the main chip by the auxiliary chip and a preset time period elapses, the second gear signal is acquired by a second sensor according to the time period and is sent to the main chip by the auxiliary chip;
verifying the first gear signal according to the received second gear signal, and correspondingly obtaining a first verification signal when the first gear signal is judged to be consistent with the second gear signal;
comparing the received second check signal with the first check signal;
and when the first check signal is consistent with the second check signal, correspondingly obtaining an effective gear signal, and sending the effective gear signal to a signal transceiver.
2. The method of verifying a shift signal of a gear shifter of a vehicle of claim 1, wherein after said acquiring a first shift signal of a gear shifter of a vehicle via a first sensor acquisition, the method further comprises:
1 is added for updating the acquisition times of the first gear signal of the historical record, and a first current count is correspondingly obtained;
sending the first current count to a secondary chip; enabling the secondary chip to check a second current count according to the received first current count; after the secondary chip acquires and obtains the second gear signal through the second sensor, the secondary chip adds 1 to update the acquisition times of the second gear signal recorded in history, and the secondary chip sends the second current count to the main chip;
checking the first current count according to the received second current count;
then, the verifying the first gear signal according to the received second gear signal specifically includes:
and when the second current count is judged to be the same as the first current count, checking the first gear signal according to the received second gear signal.
3. The method of verifying shift signal of a vehicle shifter of claim 1 or 2, wherein the first sensor is a hall sensor or a grating sensor; the second sensor is a Hall sensor or a grating sensor.
4. A gear signal verifying device of an automobile gear shifter is characterized in that the device is arranged in a main chip and comprises:
the synchronous notification module is used for sending a synchronous notification signal to the secondary chip;
the first gear signal acquisition module is used for acquiring and acquiring a first gear signal of a gear shifter of an automobile through a first sensor according to a preset time period when a synchronous response signal returned by the secondary chip is received, and sending the first gear signal to the secondary chip; the auxiliary chip checks the second gear signal according to the received first gear signal, correspondingly obtains a second check signal when the second gear signal is judged to be consistent with the first gear signal, and sends the second check signal to the main chip; after the synchronous response signal is returned to the main chip by the auxiliary chip and a preset time period elapses, the second gear signal is acquired by a second sensor according to the time period and is sent to the main chip by the auxiliary chip;
the first gear signal checking module is used for checking the first gear signal according to the received second gear signal, and correspondingly obtaining a first checking signal when the first gear signal is judged to be consistent with the second gear signal;
the verification signal comparison module is used for comparing the received second verification signal with the first verification signal;
and the effective gear signal sending module is used for correspondingly obtaining an effective gear signal when the first check signal is consistent with the second check signal, and sending the effective gear signal to the signal transceiver.
5. A method of verifying a gear signal of an automotive shifter, the method performed by a secondary chip, the method comprising:
when receiving a synchronous notification signal sent by the main chip, returning a synchronous response signal to the main chip;
after a preset time period, acquiring and acquiring a second gear signal of a gear shifter of the automobile through a second sensor according to a preset time period, and sending the second gear signal to a main chip; the main chip checks the first gear signal according to the received second gear signal, and correspondingly obtains a first check signal when the first gear signal is judged to be consistent with the second gear signal; after the synchronous response signal is received by the main chip, the first gear signal is acquired by the first sensor according to the time period and is sent to the auxiliary chip by the main chip;
verifying the second gear signal according to the received first gear signal, correspondingly obtaining a second verification signal when the second gear signal is judged to be consistent with the first gear signal, and sending the second verification signal to a main chip; and the main chip compares the received second check signal with the first check signal, correspondingly obtains an effective gear signal when the first check signal is judged to be consistent with the second check signal, and sends the effective gear signal to the signal transceiver.
6. The method of verifying a shift signal of a shifter for a vehicle of claim 5, wherein after said acquiring a second shift signal of a shifter for a vehicle via a second sensor acquisition, the method further comprises:
1 is added for updating the second gear signal acquisition times of the historical records, and a second current count is correspondingly obtained;
sending the second current count to a master chip; enabling the main chip to check the first current count according to the received second current count; after the first current count is acquired by the main chip through the first sensor to obtain the first gear signal, 1 is added for updating the acquisition times of the first gear signal of the historical record, and the first current count is sent to the auxiliary chip by the main chip;
checking the second current count according to the received first current count;
then, the verifying the second gear signal according to the received first gear signal specifically includes:
and when the first current count is judged to be the same as the second current count, verifying the second gear signal according to the received first gear signal.
7. The method of verifying shift signal of a vehicle shifter of claim 5 or 6, wherein the first sensor is a hall sensor or a grating sensor; the second sensor is a Hall sensor or a grating sensor.
8. A gear signal verifying device of an automobile gear shifter is characterized in that the device is arranged in a secondary chip and comprises:
the synchronous response module is used for returning a synchronous response signal to the main chip when receiving the synchronous notification signal sent by the main chip;
the second gear signal acquisition module is used for acquiring and acquiring a second gear signal of a gear shifter of the automobile through a second sensor according to a preset time period after a preset time period, and sending the second gear signal to the main chip; the main chip checks the first gear signal according to the received second gear signal, and correspondingly obtains a first check signal when the first gear signal is judged to be consistent with the second gear signal; after the synchronous response signal is received by the main chip, the first gear signal is acquired by the first sensor according to the time period and is sent to the auxiliary chip by the main chip;
the second gear signal checking module is used for checking the second gear signal according to the received first gear signal, correspondingly obtaining a second checking signal when the second gear signal is judged to be consistent with the first gear signal, and sending the second checking signal to the main chip; and the main chip compares the received second check signal with the first check signal, correspondingly obtains an effective gear signal when the first check signal is judged to be consistent with the second check signal, and sends the effective gear signal to the signal transceiver.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program; wherein the computer program when executed controls an apparatus in which the computer readable storage medium is located to perform the gear signal verifying method of the automobile gear shifter according to any one of claims 1 to 3 or the gear signal verifying method of the automobile gear shifter according to any one of claims 5 to 7.
10. A gear signal checking system of an automobile gear shifter is characterized by comprising a first sensor, a second sensor, a main chip, an auxiliary chip and a signal transceiver; wherein the content of the first and second substances,
the first sensor is used for collecting a first gear signal of a gear shifter of an automobile and sending the first gear signal to the main chip;
the second sensor is used for acquiring a second gear signal of a gear shifter of an automobile and sending the second gear signal to the secondary chip;
the main chip is used for executing the gear signal verification method of the automobile gear shifter according to any one of claims 1-3;
the secondary chip is used for executing the gear signal verification method of the automobile gear shifter according to any one of claims 5 to 7;
the signal transceiver is used for receiving the effective gear signal sent by the main chip.
CN202010798656.8A 2020-08-11 2020-08-11 Gear signal checking method and device of automobile gear shifter, storage medium and system Active CN112067031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010798656.8A CN112067031B (en) 2020-08-11 2020-08-11 Gear signal checking method and device of automobile gear shifter, storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010798656.8A CN112067031B (en) 2020-08-11 2020-08-11 Gear signal checking method and device of automobile gear shifter, storage medium and system

Publications (2)

Publication Number Publication Date
CN112067031A true CN112067031A (en) 2020-12-11
CN112067031B CN112067031B (en) 2022-08-16

Family

ID=73662626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010798656.8A Active CN112067031B (en) 2020-08-11 2020-08-11 Gear signal checking method and device of automobile gear shifter, storage medium and system

Country Status (1)

Country Link
CN (1) CN112067031B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916218A (en) * 2010-08-10 2010-12-15 西安电子科技大学 Double-CPU redundancy control system based on analysis redundancy mechanism
CN102130501A (en) * 2011-01-19 2011-07-20 四川电力科学研究院 Wireless synchronous data acquisition device for checking direct current transformer of direct current converter station
CN106059585A (en) * 2016-05-30 2016-10-26 株洲中车时代电气股份有限公司 Data sampling method and sampling system
CN206038031U (en) * 2016-08-30 2017-03-22 德韧干巷汽车系统(上海)有限公司 Mutual calibration system of DCT gear shift signal
CN106680756A (en) * 2017-01-05 2017-05-17 云南电网有限责任公司电力科学研究院 Testing method, system and device for accuracy grade of direct-current voltage transformer
CN107589736A (en) * 2017-09-29 2018-01-16 天津市捷威动力工业有限公司 Battery management system principal and subordinate controls plate method of data synchronization
CN109827610A (en) * 2019-03-12 2019-05-31 百度在线网络技术(北京)有限公司 Method and apparatus for check sensor fusion results
CN110493744A (en) * 2019-08-20 2019-11-22 郑州大学 A kind of synchronous data sampling method and system of master-slave radio sensor

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916218A (en) * 2010-08-10 2010-12-15 西安电子科技大学 Double-CPU redundancy control system based on analysis redundancy mechanism
CN102130501A (en) * 2011-01-19 2011-07-20 四川电力科学研究院 Wireless synchronous data acquisition device for checking direct current transformer of direct current converter station
CN106059585A (en) * 2016-05-30 2016-10-26 株洲中车时代电气股份有限公司 Data sampling method and sampling system
CN206038031U (en) * 2016-08-30 2017-03-22 德韧干巷汽车系统(上海)有限公司 Mutual calibration system of DCT gear shift signal
CN106680756A (en) * 2017-01-05 2017-05-17 云南电网有限责任公司电力科学研究院 Testing method, system and device for accuracy grade of direct-current voltage transformer
CN107589736A (en) * 2017-09-29 2018-01-16 天津市捷威动力工业有限公司 Battery management system principal and subordinate controls plate method of data synchronization
CN109827610A (en) * 2019-03-12 2019-05-31 百度在线网络技术(北京)有限公司 Method and apparatus for check sensor fusion results
CN110493744A (en) * 2019-08-20 2019-11-22 郑州大学 A kind of synchronous data sampling method and system of master-slave radio sensor

Also Published As

Publication number Publication date
CN112067031B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
US10282924B2 (en) System and method for sending and receiving messages between an electronic control unit of a vehicle and an external device
US11639112B2 (en) Fusion of data of multiple sensors for object identification
CN103174336B (en) The electron key system of vehicle
US9663126B2 (en) Embedded system for generating a rail vehicle location signal
CN110602702A (en) Function detection method and system for T-BOX in whole vehicle
KR102077200B1 (en) Method for detecting can bus off using message
CN106569047B (en) A kind of analytical equipment and method of vehicle-mounted CAN bus
US20190275891A1 (en) Master Electronic Control Device For Vehicle, Slave Electronic Control Device For Vehicle, Log Collection System For Vehicle, And Storage Medium
CN104568459A (en) OBD intelligent device, test method and system thereof, and ECU simulator
US20150195124A1 (en) Method for error diagnosis of can communication
CN105807757A (en) Function automatic adaptation method and device for vehicle diagnosis device
FR3059615A1 (en) METHOD AND DEVICE FOR VERIFYING A VEHICLE SENSOR SYSTEM
CN108305392B (en) Abnormal vehicle returning system and method for automatic vehicle leasing
CN112067031B (en) Gear signal checking method and device of automobile gear shifter, storage medium and system
US20160148447A1 (en) Method, system and computer-readable recording medium for managing abnormal state of vehicle
CN111885492A (en) Automatic vehicle positioning method and electronic equipment
JP7187784B2 (en) Vehicle information processing system, management device, vehicle information processing method, and vehicle information processing program
KR101469708B1 (en) Vehicle Black Box System for Monitoring Integrated Driving State and sudden unintended acceleration
CN104062966A (en) Verification method used for automatic emergency braking system and corresponding verification system
CN220123073U (en) Test equipment, equipment to be tested and test system
CN113517992B (en) Detection method and device for controller local area network configuration and electric automobile
US11258755B2 (en) Method and system for processing coherent data
US20210056093A1 (en) Method and device for supporting event-based transaction
CN209949113U (en) Function test system related to radio frequency signal
CN116600416A (en) Connection method and device of vehicle Bluetooth, vehicle 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
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20240222

Granted publication date: 20220816