CN115774837A - Signal verification method, device, equipment, medium, program product and vehicle - Google Patents

Signal verification method, device, equipment, medium, program product and vehicle Download PDF

Info

Publication number
CN115774837A
CN115774837A CN202210758618.9A CN202210758618A CN115774837A CN 115774837 A CN115774837 A CN 115774837A CN 202210758618 A CN202210758618 A CN 202210758618A CN 115774837 A CN115774837 A CN 115774837A
Authority
CN
China
Prior art keywords
signal
verified
checked
data array
signal group
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.)
Pending
Application number
CN202210758618.9A
Other languages
Chinese (zh)
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.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive 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 Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN202210758618.9A priority Critical patent/CN115774837A/en
Publication of CN115774837A publication Critical patent/CN115774837A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a signal checking method, a signal checking device, signal checking equipment, a signal checking medium, a signal checking program product and a vehicle. The method comprises the following steps: determining a signal group to be verified from a plurality of signal groups; obtaining a variable value corresponding to the signal group to be verified according to the name of the signal group to be verified, and storing the variable value into a temporary data array; and after entering a use mode corresponding to the dbc file, verifying the signal to be verified through a preset verification function based on the name of the signal to be verified and the temporary data array which are included in the signal group to be verified. The method can complete verification aiming at different signals, and has simple verification process and high verification accuracy.

Description

Signal verification method, device, equipment, medium, program product and vehicle
Technical Field
The embodiment of the invention relates to the technical field of vehicles, in particular to a signal checking method, a signal checking device, signal checking equipment, a signal checking medium, a program product and a vehicle.
Background
With the popularization of Advanced Driving Assistance Systems (ADAS), the application of Advanced Driving Assistance Systems (ADAS), and the high-speed development of automotive electronics, more Electronic Control Units (ECUs) are installed on automobiles to provide users with intelligent Driving solutions with rich scenes, so that the communication interaction among modules in the ECUs becomes more complex, and further, the communication security of the CAN bus transmit-receive signals is more required.
In the traditional scheme, aiming at different signals, the number of signals in a project is thousands of signals, and the traditional scheme needs to consume a large amount of manpower to compile the codes, so that the compiling process is complicated and errors are easy to occur.
Disclosure of Invention
The invention provides a signal checking method, a device, equipment, a medium, a program product and a vehicle, which aim to solve the problem of slow checking speed in the prior art.
According to an aspect of the present invention, there is provided a signal verification method, including:
determining a signal group to be verified from a plurality of signal groups;
obtaining variable values of a corresponding system according to the names of the signal groups to be verified, and storing the variable values into a temporary data array;
and after entering a use mode corresponding to the dbc file, checking the signal group to be checked through a preset check function based on the name of the signal to be checked in the signal group to be checked and the temporary data array.
According to another aspect of the present invention, there is provided a signal verification apparatus including:
the determining module is used for determining a signal group to be verified from a plurality of signal groups;
the acquisition module is used for acquiring the variable value of the corresponding system according to the name of the signal group to be verified and storing the variable value into a temporary data array;
and the checking module is used for checking the signal group to be checked through a preset checking function based on the name of the signal to be checked in the signal group to be checked and the temporary data array after entering the use mode corresponding to the dbc file.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the signal verification method according to any embodiment of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium, the computer
The readable storage medium stores computer instructions for causing a processor to implement the signal verification method according to any one of the embodiments of the present invention when executed.
According to the technical scheme of the embodiment of the invention, the dbc file is directly entered by calling the packaging interface, so that the problems that the compiling process is complicated and errors are easy to occur due to the fact that the verification codes are compiled one by one in a manual mode in the prior art are solved, and the beneficial effects of simplifying the verification process and improving the verification success rate are achieved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present invention, nor are they intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a signal verification method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a signal verification method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a signal checking apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a vehicle according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a vehicle-mounted computer of the signal verification method according to the embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention. It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It is noted that references to "a" or "an" or "the" modification(s) in the present invention are intended to be illustrative rather than limiting and that those skilled in the art will understand that reference to "one or more" unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present invention are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Example one
Fig. 1 is a schematic flow chart of a signal verification method provided in an embodiment of the present invention, the method is applicable to a case of verifying a signal in a communication process, and is particularly applicable to a process of verifying a bus signal, and the method can be executed by a signal verification apparatus, where the apparatus can be implemented by software and/or hardware and is generally integrated on an on-board computer, and in this embodiment, the on-board computer includes but is not limited to: an ECU device.
As shown in fig. 1, a signal verification method provided in an embodiment of the present invention includes the following steps:
and S110, determining a signal group to be verified from the plurality of signal groups.
In this embodiment, the signal group may be a signal group formed by signals, and the signal group to be verified may be a signal group formed by signals that need to be verified. The signal CAN be a bus signal, and CAN be understood as a signal transmitted and received by a CAN bus.
In this embodiment, the method for determining the signal group to be verified may be as follows: and acquiring a dbc file by calling the packaging interface, and determining a signal group to be verified based on parameters in the dbc file.
The dbc file is a core file used for describing data communication between nodes of the CAN network, and describes which message information exists on the CAN network, which signal information is carried on the message information, and the message is sent from which node and received by which node.
Specifically, the determining a signal group to be verified from the plurality of signal groups includes: acquiring the identity identifications of the messages respectively corresponding to the plurality of signal groups from the dbc file by calling an encapsulation interface; and filtering the signal group to be checked out from the plurality of signal groups according to the identity of the message.
The identity of the message corresponding to each signal group can be directly obtained from the dbc file by calling the encapsulation interface, and the signal group to be verified can be filtered according to the identity of the message.
And S120, obtaining variable values of the corresponding system according to the names of the signal groups to be verified, and storing the variable values into a temporary data array.
The temporary data array is understood to be an array for temporarily storing data.
In this embodiment, the dbc file can be obtained by calling the encapsulation interface, the variable value corresponding to the system can be obtained based on the dbc file, and the variable value is stored in the temporary data array for subsequent use.
S130, after entering a use mode corresponding to the dbc file, verifying the signal group to be verified through a preset verification function based on the name of the signal to be verified in the signal group to be verified and the temporary data array.
The preset check function may be a preset function capable of checking the signal, the preset check function may be provided by a manufacturer, and different manufacturers may provide different check functions.
It should be noted that before entering the dbc file, the usage mode corresponding to the dbc file needs to be determined. In this embodiment, the usage mode of the dbc file can be determined as what format, and the usage modes commonly used for the dbc file include a Motorala mode and an Intel mode. Wherein, the Motorala mode and the Intel mode have different corresponding signal coding formats. Illustratively, it may be determined that the dbc file is in a Motorala mode or an Intel mode, and if the dbc file is in the Motorala mode, the Motorala mode may be entered, and if the dbc file is in the Intel mode, the Intel mode may be entered.
In this embodiment, the check signal group may include a plurality of signals to be checked, and a byte index and a signal offset of each signal to be checked need to be determined. Taking a signal to be verified as an example, the determining manner of the byte index and the signal offset of the signal to be verified may be: the starting bit value and the bit length value of the signal to be checked can be determined based on the name of the signal to be checked, and the byte index of the signal to be checked in the message and the offset of the signal to be checked can be calculated according to the bit length value and the starting bit value.
Each signal to be checked can calculate a byte index and a signal offset, and the byte index and the signal offset calculated by each signal to be checked are added to the temporary data array to obtain the data array to be checked. And inputting the data array to be checked into a preset check function to obtain a check value, and adding the check value into the data array to be checked to obtain the data array with the check value.
The signal verification method provided by the first embodiment of the invention comprises the steps of firstly determining a signal group to be verified from a plurality of signal groups; then, obtaining a variable value of a corresponding system according to the name of the signal group to be verified, and storing the variable value into a temporary data array; and finally, after entering a use mode corresponding to the dbc file, verifying the signal group to be verified through a preset verification function based on the name of the signal to be verified in the signal group to be verified and the temporary data array. The method calls the dbc file by calling the packaging interface, greatly reduces the code writing amount, can be suitable for the verification of all signals by only writing one set of codes, can simplify the verification process and improve the verification accuracy.
Example two
Fig. 2 is a schematic flow chart of a signal verification method according to a second embodiment of the present invention, and the second embodiment is optimized based on the foregoing embodiments. In this embodiment, the further concrete step of verifying the signal to be verified by a preset verification function based on the name of the signal to be verified in the signal group to be verified and the temporary data array is as follows: determining a byte index of the signal to be checked in the message and a byte offset of the signal to be checked in the message based on the name of the signal to be checked in the signal group to be checked and the dbc file; adding the byte index and the byte offset into the temporary data array to obtain a data array to be checked; and inputting the data array to be verified into the preset verification to obtain a verified data array. Please refer to the first embodiment for a detailed description of the present embodiment.
As shown in fig. 2, a signal verification method provided in the second embodiment of the present invention includes the following steps:
and S210, determining a signal group to be verified from the plurality of signal groups.
S220, obtaining variable values of the corresponding system according to the name of the signal group to be verified, and storing the variable values into a temporary data array.
S230, determining a byte index of the signal to be checked in the message and a byte offset of the signal to be checked in the message based on the name of the signal to be checked in the signal group to be checked and the dbc file.
In this embodiment, the start bit value of the signal to be verified and the bit length value of the signal to be verified are obtained from the dbc file according to the name of the signal to be verified in the signal group to be verified, and the byte index of the signal to be verified in the message and the byte offset of the signal to be verified in the message are obtained by means of quotient taking and remainder taking.
Specifically, the determining, based on the name of the signal to be checked included in the signal group to be checked, the byte index of the signal to be checked in the packet and the signal offset of the signal to be checked in the packet includes: acquiring a starting bit numerical value of the signal to be verified and a bit length numerical value of the signal to be verified from the dbc file according to the name of the signal to be verified in the signal group to be verified; dividing the initial bit value by the bit length value to obtain a quotient, and using the quotient as a byte index of the signal to be checked in the message; and dividing the initial bit value by the bit length value to obtain a remainder which is used as the byte offset of the signal to be checked in the message.
In this embodiment, a quotient of the start bit value and the bit length value may be used as a byte index of the signal to be checked in the message, and a remainder obtained by dividing the start bit value by the bit length value is used as a byte offset of the signal to be checked in the message.
It can be understood that, by the above manner, the byte indexes of all the signals to be checked included in the signal group to be checked in the message and the byte offsets of all the signals to be checked in the message can be obtained.
Furthermore, in the process of acquiring the start bit numerical value and the bit length numerical value of the signal to be checked from the dbc file according to the name of the signal to be checked included in the checking signal group, a round-robin flag number is set to count the number of the signal to be checked.
The name of the signal to be checked is obtained in a round-robin mode, and when the signal to be checked is in round-robin, 1 is added to the number of the round-robin flags.
S240, adding the byte index and the byte offset into the temporary data array to obtain a data array to be checked.
It can be understood that, through step S230, the byte indexes of all the signals to be checked in the message in the signal group to be checked and the byte offsets of all the signals to be checked in the message in the signal group to be checked can be obtained, and the obtained byte indexes of all the signals to be checked in the message and the byte offsets of all the signals to be checked in the message are added to the temporary data array, so as to obtain a data array to be checked.
And S250, inputting the data array to be verified into a preset verification function to obtain a verified data array.
In this embodiment, the data array to be verified is input into the preset verification function, so as to obtain the data array with the verification value.
Specifically, the inputting the data array to be verified into the preset verification to obtain the verified data array includes: inputting the data array to be checked into the preset check to output a check value; and adding the check value to the data array to be checked to obtain a checked data array.
The checked data array may be a frame of checked message data.
The signal verification method provided in the second embodiment of the present invention embodies a process of verifying the signal group to be verified through a preset verification function based on the name of the signal to be verified in the signal group to be verified and the temporary data array. By using the method, the initial bit value of the signal and the bit length value of the signal can be directly obtained from the dbc file, the problems of heavy workload and high search error rate caused by the fact that the initial bit value of the signal and the bit length value of the signal are obtained in a manual searching mode in the prior art are solved, and the verification speed and the verification success rate are improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a signal verification apparatus according to a third embodiment of the present invention, which is applicable to a case of verifying a signal during a communication process, and is particularly applicable to a process of verifying a bus signal, where the apparatus may be implemented by software and/or hardware and is generally integrated on a vehicle-mounted computer.
As shown in fig. 3, the apparatus includes: a determination module 110, an acquisition module 120, and a verification module 130.
A determining module 110, configured to determine a signal group to be verified from a plurality of signal groups;
an obtaining module 120, configured to obtain a variable value of a corresponding system according to the name of the signal group to be verified, and store the variable value in a temporary data array;
and the checking module 130 is configured to check the signal group to be checked through a preset checking function based on the name of the signal to be checked in the signal group to be checked and the temporary data array after entering the use mode corresponding to the dbc file.
In this embodiment, the apparatus first determines a signal group to be verified from a plurality of signal groups through the determining module 110; then, the obtaining module 120 obtains the variable value of the corresponding system according to the name of the signal group to be verified, and stores the variable value into the temporary data array; and finally, after entering a use mode corresponding to the dbc file, the verification module 130 verifies the signal group to be verified through a preset verification function based on the name of the signal to be verified in the signal group to be verified and the temporary data array.
The embodiment provides a signal checking device, which can improve the checking speed and improve the checking accuracy.
Further, the determining module 110 is specifically configured to: acquiring the identity identifications of the messages respectively corresponding to the plurality of signal groups from the dbc file by calling an encapsulation interface; and filtering a signal group to be checked out from the plurality of signal groups according to the identity of the message.
Further, the verification module 130 is specifically configured to: determining a byte index of the signal to be checked in the message and a byte offset of the signal to be checked in the message based on the name of the signal to be checked in the signal group to be checked and the dbc file; adding the byte index and the byte offset into the temporary data array to obtain a data array to be checked; and inputting the data array to be verified into a preset verification function to obtain a verified data array.
On the basis of the above optimization, the determining, based on the name of the signal to be checked included in the signal group to be checked, the byte index of the signal to be checked in the packet and the byte offset of the signal to be checked in the packet includes: acquiring a starting bit numerical value of the signal to be verified and a bit length numerical value of the signal to be verified from the dbc file according to the name of the signal to be verified in the signal group to be verified; dividing the initial bit value by the bit length value to obtain a quotient, and using the quotient as a byte index of the signal to be checked in the message; and dividing the start bit numerical value by the bit length numerical value to obtain a remainder which is used as the byte offset of the signal to be checked in the message.
Based on the above technical solution, the inputting the data array to be verified into the preset verification function to obtain the verified data array includes: inputting the data array to be checked into the preset check function and outputting a check value; and adding the check value to the data array to be checked to obtain a checked data array.
Further, in the process of acquiring the start bit value and the bit length value of the signal to be checked from the dbc file according to the name of the signal to be checked included in the checking signal group, a round-robin flag number is set to count the number of the signal to be checked. .
The signal checking device can execute the signal checking method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a vehicle according to a fourth embodiment of the present invention, and as shown in fig. 4, the vehicle includes an on-board computer, which may be an ECU, and the on-board computer may be configured to execute a signal verification method according to any embodiment of the present invention, where the method includes:
determining a signal group to be checked from a plurality of signal groups; obtaining variable values of a corresponding system according to the name of the signal group to be verified, and storing the variable values into a temporary data array; and after entering a use mode corresponding to the dbc file, verifying the signal group to be verified through a preset verification function based on the name of the signal to be verified in the signal group to be verified and the temporary data array.
According to the vehicle provided by the fourth embodiment of the invention, the signal verification algorithm CAN be executed through the vehicle-mounted computer arranged on the vehicle, and the signal of the CAN bus CAN be verified through the execution of the signal verification algorithm, so that the safety of the transceiving communication of the CAN bus is ensured.
EXAMPLE five
FIG. 5 illustrates a schematic block diagram of a vehicle mount computer 10 that can be used to implement embodiments of the present invention. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the vehicle mount computer 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the vehicle mount computer 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the vehicle mount computer 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the signal verification method.
In some embodiments, the signal verification method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the signal verification method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the signal verification method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method of signal verification, the method comprising:
determining a signal group to be verified from a plurality of signal groups;
obtaining variable values of a corresponding system according to the names of the signal groups to be verified, and storing the variable values into a temporary data array;
and after entering a use mode corresponding to the dbc file, verifying the signal group to be verified through a preset verification function based on the name of the signal to be verified in the signal group to be verified and the temporary data array.
2. The method of claim 1, wherein determining a set of signals to be verified from a plurality of sets of signals comprises:
acquiring the identity identifications of the messages respectively corresponding to the plurality of signal groups from the dbc file by calling an encapsulation interface;
and filtering the signal group to be checked out from the plurality of signal groups according to the identity of the message.
3. The method of claim 1, wherein checking the signal group to be checked through a preset checking function based on the name of the signal to be checked in the signal group to be checked and the temporary data array comprises:
determining a byte index of the signal to be checked in the message and a byte offset of the signal to be checked in the message based on the name of the signal to be checked in the signal group to be checked and the dbc file;
adding the byte index and the byte offset into the temporary data array to obtain a data array to be checked;
and inputting the data array to be verified into a preset verification function to obtain a verified data array.
4. The method according to claim 3, wherein the determining a byte index of the signal to be checked in the packet and a byte offset of the signal to be checked in the packet based on a name of the signal to be checked included in the signal group to be checked comprises:
acquiring a starting bit numerical value of the signal to be verified and a bit length numerical value of the signal to be verified from the dbc file according to the name of the signal to be verified in the signal group to be verified;
dividing the initial bit value by the bit length value to obtain a quotient, and using the quotient as a byte index of the signal to be checked in the message;
and dividing the initial bit value by the bit length value to obtain a remainder which is used as the byte offset of the signal to be checked in the message.
5. The method according to claim 3, wherein the inputting the data array to be verified into the preset verification function to obtain a verified data array comprises:
inputting the data array to be checked into the preset check function and outputting a check value;
and adding the check value to the data array to be checked to obtain a checked data array.
6. The method according to claim 4, wherein a round robin flag number is set to count the number of the signals to be verified in the process of obtaining the start bit value and the bit length value of the signals to be verified from the dbc file according to the name of the signals to be verified included in the verification signal group.
7. A signal verification apparatus, the apparatus comprising:
the determining module is used for determining a signal group to be verified from a plurality of signal groups;
the acquisition module is used for acquiring the variable value of the corresponding system according to the name of the signal group to be verified and storing the variable value into a temporary data array;
and the checking module is used for checking the signal group to be checked through a preset checking function based on the name of the signal to be checked in the signal group to be checked and the temporary data array after entering a use mode corresponding to the dbc file.
8. An on-board computer, wherein the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the signal verification method of any one of claims 1-6.
9. A computer-readable storage medium storing computer instructions for causing a processor to implement the signal verification method of any one of claims 1-6 when executed.
10. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, carries out the signal verification method according to any one of claims 1-6.
11. A vehicle, characterized in that it comprises an on-board computer according to claim 8.
CN202210758618.9A 2022-06-29 2022-06-29 Signal verification method, device, equipment, medium, program product and vehicle Pending CN115774837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210758618.9A CN115774837A (en) 2022-06-29 2022-06-29 Signal verification method, device, equipment, medium, program product and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210758618.9A CN115774837A (en) 2022-06-29 2022-06-29 Signal verification method, device, equipment, medium, program product and vehicle

Publications (1)

Publication Number Publication Date
CN115774837A true CN115774837A (en) 2023-03-10

Family

ID=85388274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210758618.9A Pending CN115774837A (en) 2022-06-29 2022-06-29 Signal verification method, device, equipment, medium, program product and vehicle

Country Status (1)

Country Link
CN (1) CN115774837A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117492405A (en) * 2024-01-02 2024-02-02 东方电气风电股份有限公司 Verification method for wind turbine generator control system based on field bus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117492405A (en) * 2024-01-02 2024-02-02 东方电气风电股份有限公司 Verification method for wind turbine generator control system based on field bus
CN117492405B (en) * 2024-01-02 2024-03-08 东方电气风电股份有限公司 Verification method for wind turbine generator control system based on field bus

Similar Documents

Publication Publication Date Title
CN115774837A (en) Signal verification method, device, equipment, medium, program product and vehicle
CN113641544B (en) Method, apparatus, device, medium and product for detecting application state
CN114691105A (en) Data processing method and device based on SOMEIP protocol under SOA architecture of whole vehicle
CN116170522B (en) Data transmission method and device, electronic equipment and storage medium
CN112306041A (en) Vehicle configuration information writing method and device and electronic equipment
CN115408034A (en) Vehicle-mounted controller upgrading method and device, electronic equipment and storage medium
CN115617823A (en) Map updating data downloading method, device, equipment and readable medium
CN114880009A (en) Vehicle instrument upgrading system and method, electronic equipment and storage medium
CN115145959A (en) Data storage method and device, electronic equipment and storage medium
CN114020741A (en) Vehicle mileage information storage method and device, vehicle electronic system and vehicle
CN116016724B (en) Message parsing method, device, equipment and medium
CN115174426B (en) Output message detection method and device, electronic equipment and storage medium
CN111090513B (en) Method for detecting link health state of Internet of vehicles platform terminal and storage medium
CN117492822B (en) Change contrast method, device, electronic equipment and storage medium
CN111882310B (en) Data comparison method, device and equipment and computer readable storage medium
CN116382640A (en) Method, device, equipment and storage medium for managing micro-service
CN111258628A (en) Rule file comparison method and device, readable storage medium and terminal equipment
CN116208910A (en) Region determination method, device, equipment and storage medium
CN116756061A (en) External equipment adaptation method, device, equipment and storage medium
CN116016724A (en) Message parsing method, device, equipment and medium
CN117032756A (en) Software updating method and device, electronic equipment and storage medium
CN116279215A (en) Data processing method and device, electronic equipment and storage medium
CN116804932A (en) Vehicle software identification recognition method and device, electronic equipment and storage medium
CN117313699A (en) Data analysis method and device in automobile scene editing, electronic equipment and medium
CN116300800A (en) Signal verification method and device, 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