Network signal adjustment method, apparatus and computer-readable storage medium
By introducing a debugging gateway into the vehicle network and configuring dynamic adjustment rules, the problem of low debugging efficiency in the vehicle network is solved, and signal adjustment can be completed without changing the controller software, thus improving debugging efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- AVATR CO LTD
- Filing Date
- 2024-07-26
- Publication Date
- 2026-05-26
AI Technical Summary
Existing technologies for vehicle network debugging are inefficient, requiring software modifications to various controllers, which leads to low efficiency.
By setting up a debugging gateway between the controller and the vehicle network and configuring dynamically adjustable adjustment rules, signal values can be modified and forwarded, avoiding changes to the controller software.
It improves the efficiency of network debugging, reduces the number of changes to the controller software, and enhances debugging efficiency.
Smart Images

Figure CN119071151B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network debugging technology, specifically to a network signal adjustment method, apparatus, and computer-readable storage medium. Background Technology
[0002] To ensure smooth communication between various vehicle systems, the signal transmission and processing between the vehicle's control systems and controllers are typically debugged and tested. However, vehicles have a large number of controllers and involve a vast number of signals. When debugging the network or changing signals, the software of each controller needs to be modified separately, resulting in low efficiency in network debugging. Summary of the Invention
[0003] In view of the above problems, embodiments of the present invention provide a network signal adjustment method, apparatus and computer-readable storage medium to solve the problem of low efficiency in network debugging in the prior art.
[0004] According to one aspect of the present invention, a network signal adjustment method is provided, applied in a debugging gateway, the debugging gateway being connected to both the vehicle network and a target controller; the method includes:
[0005] Obtain adjustment information for preset adjustment rules, and adjust the preset adjustment rules based on the adjustment information to obtain the target adjustment rules corresponding to the target controller; the preset adjustment rules are rules preset in the debugging gateway to modify and / or forward signals in the target controller.
[0006] If the acquired data includes a first target signal, the signal value corresponding to the first target signal is modified based on the target adjustment rule, and the modified signal value is sent to the sending object corresponding to the first target signal; the first target signal is the signal corresponding to the rule in the target adjustment rule that indicates signal modification;
[0007] If the acquired data includes a second target signal, the target forwarding object corresponding to the second target signal is determined based on the target adjustment rule, and the signal value corresponding to the second target signal is sent to the target forwarding object; the second target signal is the signal corresponding to the rule indicating signal forwarding in the target adjustment rule.
[0008] In one optional implementation, the preset adjustment rules are adjusted based on the adjustment information to obtain the target adjustment rules corresponding to the target controller, including:
[0009] The adjustment information is analyzed to obtain the signal to be modified and the target rule corresponding to the signal to be modified;
[0010] Modify the rule corresponding to the signal to be modified in the preset adjustment rules to the target rule to obtain the target adjustment rule.
[0011] In one optional implementation, the preset adjustment rules are adjusted based on the adjustment information to obtain the target adjustment rules corresponding to the target controller, including:
[0012] The adjustment information is parsed to obtain at least one preset rule and the target rule corresponding to the preset rule;
[0013] Modify at least one of the preset adjustment rules to the corresponding target rule to obtain the target adjustment rule.
[0014] In one optional implementation, the target adjustment rule includes a signal identifier of a first target signal and a target signal value of the first target signal; if the acquired data includes a first target signal, the signal value corresponding to the first target signal is modified based on the target adjustment rule, and the modified signal value is sent to the target controller or the vehicle network, including:
[0015] Based on the signal identifier of the first target signal, the signal identifier corresponding to the signal value in the received data is searched to determine the signal value of the first target signal and the sending object;
[0016] Modify the signal value of the first target signal to the target signal value;
[0017] Send the signal identifier of the first target signal and the target signal value to the sending object.
[0018] In one optional implementation, after modifying the signal value of the first target signal to the target signal value, the method further includes:
[0019] If the target adjustment rule includes a verification algorithm for the first target signal, then the verification information corresponding to the target signal value is determined based on the verification algorithm; the verification information is used to verify the target signal value after receiving the first target signal.
[0020] In one optional implementation, the target adjustment rule includes a signal identifier of the second target signal and a target forwarding object of the second target signal; if the acquired data includes the second target signal, then the target forwarding object corresponding to the second target signal is determined based on the target adjustment rule, and the signal value corresponding to the second target signal is sent to the target forwarding object, including:
[0021] Based on the signal identifier of the second target signal, the signal identifier corresponding to the signal value in the received data will be searched to determine the signal value of the second target signal;
[0022] Write the signal identifier and signal value of the second target signal into the message to be forwarded corresponding to the target forwarding object;
[0023] Send the message to be forwarded to the target forwarding object.
[0024] In one alternative implementation, the method further includes:
[0025] Based on the signal value acquisition request sent by the control terminal, the target signal is determined and the signal value of the target signal is uploaded to the control terminal.
[0026] According to another aspect of the present invention, a network signal adjustment device is provided, applied in a debugging gateway, the debugging gateway being connected to both the vehicle network and the target controller; the device includes:
[0027] The adjustment rule determination module is used to obtain adjustment information for preset adjustment rules, and adjust the preset adjustment rules based on the adjustment information to obtain the target adjustment rules corresponding to the target controller; the preset adjustment rules are rules preset in the debugging gateway to modify and / or forward signals in the target controller.
[0028] The signal value modification module is used to modify the signal value corresponding to the first target signal based on the target adjustment rule if the acquired data includes the first target signal, and then send the modified signal value to the sending object corresponding to the first target signal; the first target signal is the signal corresponding to the rule in the target adjustment rule that indicates signal modification;
[0029] The signal value forwarding module is used to determine the target forwarding object corresponding to the second target signal based on the target adjustment rule if the acquired data includes the second target signal, and to send the signal value corresponding to the second target signal to the target forwarding object; the second target signal is the signal corresponding to the rule in the target adjustment rule that indicates signal forwarding.
[0030] According to another aspect of the present invention, a vehicle-mounted terminal is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus;
[0031] The memory is used to store at least one executable instruction that causes the processor to perform the operation of any of the network signal adjustment methods described above.
[0032] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction, when executed on a network signal adjustment device / vehicle terminal, causes the network signal adjustment device / vehicle terminal to perform the operation of any of the network signal adjustment methods described above.
[0033] This invention provides an embodiment of the invention that sets up a debugging gateway between the controller and the vehicle network, configures dynamically adjustable adjustment rules in the debugging gateway, modifies and forwards the signal values of the received data according to the adjustment rules, thereby realizing the adjustment and change of network signals. As a result, network signals can be changed without modifying the controller software during network debugging, thus improving the efficiency of network debugging.
[0034] The above description is merely an overview of the technical solutions of the embodiments of the present invention. In order to better understand the technical means of the embodiments of the present invention and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0035] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0036] Figure 1 This is an application diagram of a network signal adjustment method provided in an embodiment of the present invention;
[0037] Figure 2 This is a flowchart illustrating a network signal adjustment method provided in an embodiment of the present invention;
[0038] Figure 3 This is an interactive schematic diagram of a network signal adjustment method provided in an embodiment of the present invention;
[0039] Figure 4 This is a flowchart illustrating the modification of signal values in a network signal adjustment method provided in an embodiment of the present invention;
[0040] Figure 5 This is a flowchart illustrating the forwarding of signal values in a network signal adjustment method provided in an embodiment of the present invention.
[0041] Figure 6 This is a schematic diagram of an embodiment of the network signal adjustment device provided in this invention;
[0042] Figure 7 This is a structural schematic diagram of an embodiment of the vehicle-mounted terminal provided in this invention. Detailed Implementation
[0043] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0044] To ensure smooth communication between various vehicle systems, the signal transmission and processing between the vehicle's control systems and controllers are typically debugged and tested. However, vehicles have a large number of controllers and involve a vast number of signals. When debugging the network or changing signals, it is necessary to modify the underlying software of each controller, resulting in low efficiency in network debugging.
[0045] Based on this, embodiments of the present invention provide a network signal adjustment method, which is applied in a debugging gateway, the debugging gateway being connected to both the vehicle network and a target controller; the method includes: acquiring adjustment information for preset adjustment rules, and adjusting the preset adjustment rules based on the adjustment information to obtain target adjustment rules corresponding to the target controller; the preset adjustment rules are rules preset in the debugging gateway for modifying and / or forwarding signals in the target controller; if the acquired data includes a first target signal, then modifying the signal value corresponding to the first target signal based on the target adjustment rules, and sending the modified signal value to the sending object corresponding to the first target signal; the first target signal is the signal corresponding to the rule indicating signal modification in the target adjustment rules; if the acquired data includes a second target signal, then determining the target forwarding object corresponding to the second target signal based on the target adjustment rules, and sending the signal value corresponding to the second target signal to the target forwarding object; the second target signal is the signal corresponding to the rule indicating signal forwarding in the target adjustment rules. In this way, by setting up a debugging gateway between the controller and the vehicle network, and configuring dynamically adjustable adjustment rules in the debugging gateway, the received data signal values are modified and forwarded according to the adjustment rules. This enables the adjustment and change of network signals, so that network signals can be changed without modifying the controller software during network debugging, thus improving the efficiency of network debugging.
[0046] Figure 1 This is an application diagram of a network signal adjustment method provided in an embodiment of the present invention, such as... Figure 1 As shown, the debugging gateway connects between the controller and the vehicle network via communication cables. Specifically, the debugging gateway is connected to the controller's network output port. Therefore, all data communication between the vehicle network and the controller must pass through the debugging gateway. This allows the gateway to adjust and modify the signal data between the vehicle network and the controller without requiring adjustments to the controller's underlying software, thus improving network debugging efficiency. Simultaneously, the debugging gateway connects to the vehicle's host computer (control terminal) via a control cable. The host computer is connected to the vehicle's power supply via a power cord and sends or modifies the signal data adjustment rules within the debugging gateway.
[0047] In one alternative implementation, all controllers in the vehicle, or all controllers connected to the vehicle network, have a debugging gateway at their network output ports.
[0048] The following describes a specific embodiment of a network signal adjustment method according to the present invention. Figure 2 This is a flowchart illustrating a network signal adjustment method according to an embodiment of the present invention. This specification provides the method operation steps as shown in the embodiments or flowcharts, but based on conventional or non-inventive methods, more or fewer operation steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only execution order. In actual system or server product execution, the method can be executed sequentially according to the embodiments or drawings, or in parallel (e.g., in a parallel processor or multi-threaded processing environment). Specifically, as shown... Figure 2 As shown, this method can be applied to the debugging gateway described above, and may specifically include:
[0049] Step 210: Obtain adjustment information for the preset adjustment rules, and adjust the preset adjustment rules based on the adjustment information to obtain the target adjustment rules corresponding to the target controller.
[0050] In this embodiment of the invention, the preset adjustment rule is a rule preset within the debugging gateway to modify and / or forward signals in the target controller. The preset adjustment rule is implemented through the control terminal, i.e. Figure 1 The host computer compiles and distributes the data as shown. A rule script with preset adjustment rules is written in the control terminal, and then this rule script is compiled and burned into the CAN FD acquisition card of the debugging gateway.
[0051] In this embodiment of the invention, the adjustment information for the preset adjustment rules is a signal issued by the control terminal to modify the preset adjustment rules in the debugging gateway. It is used to change the modification or forwarding rules of the signal to meet the user's network debugging needs.
[0052] In one optional implementation, the adjustment information for the preset adjustment rules can be applied to all debugging gateways connected to all controllers, or it can be applied to one or more debugging gateways connected to specific controllers. That is, adjustment information can be sent to a specific debugging gateway connected to a particular controller to adjust the preset adjustment rules within that specific gateway, based on network debugging needs.
[0053] In one optional implementation, the adjustment information for the preset adjustment rules may include adjustment information for modifying a specific rule within the preset adjustment rules, and adjustment information for selecting one rule from multiple rules within the preset adjustment rules. Accordingly, adjusting the preset adjustment rules can be divided into the following two cases:
[0054] In the first scenario, the adjustment information indicates that a certain rule in the preset adjustment rules should be modified. In this case, step 210 may include the following steps:
[0055] Step a1: Analyze the adjustment information to obtain the signal to be modified and the target rule corresponding to the signal to be modified.
[0056] In step a1, the target rule obtained from parsing the adjustment information is the rule corresponding to the signal to be modified after the adjustment. Compared to the rule for the signal to be modified in the preset adjustment rules, the target rule can either modify the signal value or modify the corresponding forwarding object. For example, to verify the response of a controller to different signal values of the same signal, the signal value can be modified by altering the rule for that signal in the preset adjustment rules of the debugging gateway connected to the controller.
[0057] Step a2: Modify the rule corresponding to the signal to be modified in the preset adjustment rules to the target rule to obtain the target adjustment rule.
[0058] In step a2, the rule corresponding to the signal to be modified in the preset adjustment rules is modified to the target rule, thereby completing the modification of the preset adjustment rules and obtaining the target adjustment rule.
[0059] In the second scenario, the adjustment information indicates that one rule is selected from multiple preset adjustment rules. In this case, step 210 may include the following steps:
[0060] Step b1: Parse the adjustment information to obtain at least one preset rule and the target rule corresponding to the preset rule.
[0061] In step b1, the target rule obtained from parsing the adjustment information is the rule selected after the adjustment and modification of at least one preset rule. That is, at least one preset rule constitutes a set of preset rules corresponding to a certain signal or multiple signals. These preset rules are parallel to each other, and only one preset rule will be executed during execution; the target rule is the rule that is finally executed from the set of preset rules.
[0062] Step b2: Modify at least one preset rule in the preset adjustment rules to the corresponding target rule to obtain the target adjustment rule.
[0063] In step b2, at least one preset rule in the preset adjustment rules is modified to the corresponding target rule, thereby completing the selection of the rule in at least one preset rule and obtaining the target adjustment rule.
[0064] Step 220: If the acquired data includes the first target signal, modify the signal value corresponding to the first target signal based on the target adjustment rule, and send the modified signal value to the sending object corresponding to the first target signal.
[0065] In this embodiment of the invention, the first target signal is the signal corresponding to the rule indicating signal modification in the target adjustment rules. The first target signal can be the signal value corresponding to the signal value in the vehicle data sent from the vehicle network to the target controller, or the signal value corresponding to the controller data sent from the target controller to the vehicle network. When the vehicle network sends vehicle data to the target controller, and the target controller sends controller data to the vehicle network, the data first passes through the debugging gateway. After obtaining the vehicle data or controller data, the debugging gateway modifies the signal value corresponding to the first target signal in the vehicle data or controller data based on the target adjustment rules, and sends the modified signal value to the corresponding sending object, thereby realizing the change of signal value during network debugging.
[0066] In one alternative implementation, Figure 3 This is an interactive schematic diagram of a network signal adjustment method provided in an embodiment of the present invention, such as... Figure 3 As shown, vehicle data sent from the vehicle network to the target controller is modified by the debugging gateway according to target adjustment rules before being sent to the target controller. Similarly, controller data sent from the target controller to the vehicle network is modified by the debugging gateway according to target adjustment rules before being sent to the vehicle network. The target adjustment rules or preset adjustment rules are not limited to the data source (vehicle data or controller data) and can be configured and adjusted according to network debugging needs. For example, to verify the vehicle's normal response in the event of a speed sensor malfunction, modifying the speed signal value received by each of the numerous sensors involved would be laborious. Instead, when the speed sensor emits a speed signal, the speed signal value can be modified via the debugging gateway connected to the speed sensor. This ensures that the speed signal value sent to the vehicle network has already been modified, eliminating the need to modify the speed signal value received by each individual sensor, thus improving network debugging efficiency.
[0067] Step 230: If the acquired data includes a second target signal, determine the target forwarding object corresponding to the second target signal based on the target adjustment rule, and send the signal value corresponding to the second target signal to the target forwarding object.
[0068] In this embodiment of the invention, the second target signal is the signal corresponding to the rule indicating signal forwarding in the target adjustment rule, and the target forwarding object is other controllers connected to the vehicle network.
[0069] In one alternative implementation, such as Figure 3 As shown, the second target signal is usually the data in the controller data sent by the target controller to the vehicle network. After receiving the controller data sent by the target controller, the debugging gateway determines the target forwarding object corresponding to the second target signal through the target adjustment rules, and forwards the second target signal to the target forwarding object, so that the second target signal is sent not only to its corresponding sending object, but also to the target forwarding object through the vehicle network.
[0070] In one alternative implementation, such as Figure 3 As shown, the control terminal can also acquire data received by the debugging gateway. Specifically, the debugging gateway determines the target signal based on the signal value acquisition request sent by the control terminal and uploads the target signal's signal value to the control terminal. The control terminal can display the received data in real time, thereby informing the user of the current signal status. This allows the user to quickly understand the current test situation and results, and to rapidly locate network debugging problems.
[0071] In one optional implementation, the target adjustment rule includes the signal identifier of the first target signal and the target signal value of the first target signal. Figure 4 This is a flowchart illustrating the modification of signal values in a network signal adjustment method provided by an embodiment of the present invention, as shown below. Figure 4 As shown, in step 220 above, if the acquired data includes a first target signal, the signal value corresponding to the first target signal is modified based on the target adjustment rule, and the modified signal value is sent to the sending object corresponding to the first target signal. This may include the following steps:
[0072] Step 410: Based on the signal identifier of the first target signal, search for the signal identifier corresponding to the signal value in the received data to determine the signal value of the first target signal and the sending object.
[0073] In this embodiment of the invention, a signal identifier corresponding to a signal value in the received data is searched. When the signal identifier of the first target signal is found, the signal value corresponding to that signal identifier in the received data is determined, and the signal value of the first target signal is obtained. If the signal value of the first target signal is data in the vehicle data sent by the vehicle network to the target controller, then the target of the first target signal is the target controller; if the signal value of the first target signal is data in the controller data sent by the target controller to the vehicle network, then the target of the first target signal is the vehicle network.
[0074] Step 420: Modify the signal value of the first target signal to the target signal value.
[0075] In this embodiment of the invention, the signal value of the first target signal in the received data is modified to the target signal value, thereby completing the modification and change of the signal value.
[0076] In an optional implementation, if the target adjustment rule includes a verification algorithm for the first target signal, then after modifying the signal value of the first target signal to the target signal value, the verification information corresponding to the target signal value can be determined based on the verification algorithm, thereby achieving rapid verification of the signal value; wherein, the verification information is used to verify the target signal value after receiving the first target signal; the verification algorithm may include security verification algorithms such as CRC check and SeC.
[0077] Step 430: Send the signal identifier and target signal value of the first target signal to the sending object.
[0078] In this embodiment of the invention, the signal identifier and target signal value of the first target signal are sent to the sending object. If the signal value of the first target signal is data in the vehicle data, then the sending object of the first target signal is the target controller, and the first target signal is sent to the target controller; if the signal value of the first target signal is data in the controller data, then the sending object of the first target signal is the vehicle network, and the first target signal is sent to the vehicle network.
[0079] In one alternative implementation, the target adjustment rule includes the signal identifier of the second target signal and the target forwarding object of the second target signal. Figure 5 This is a flowchart illustrating the forwarding of signal values in a network signal adjustment method provided in an embodiment of the present invention, as shown below. Figure 5 As shown, in step 230 above, if the acquired data includes a second target signal, the target forwarding object corresponding to the second target signal is determined based on the target adjustment rule, and the signal value corresponding to the second target signal is sent to the target forwarding object. This may include the following steps:
[0080] Step 510: Based on the signal identifier of the second target signal, the signal identifier corresponding to the signal value in the received data will be searched to determine the signal value of the second target signal.
[0081] In this embodiment of the invention, the signal identifier corresponding to the signal value in the received data is searched. When the signal identifier of the second target signal is found, the signal value corresponding to the signal identifier in the received data is determined, and the signal value of the second target signal is obtained.
[0082] Step 520: Write the signal identifier and signal value of the second target signal into the message to be forwarded corresponding to the target forwarding object.
[0083] In this embodiment of the invention, based on the target adjustment rules, the target forwarding object corresponding to the second target signal is determined, and then the signal identifier and signal value of the second target signal are written into the message to be forwarded corresponding to the target forwarding object.
[0084] Step 530: Send the message to be forwarded to the target forwarding object.
[0085] In this embodiment of the invention, a forwarding message is sent to the target forwarding object, thereby realizing the forwarding of the signal.
[0086] The network signal adjustment method provided in this embodiment of the invention is applied in a debugging gateway, which is connected to both the vehicle network and a target controller. The method includes: acquiring adjustment information for preset adjustment rules, and adjusting the preset adjustment rules based on the adjustment information to obtain target adjustment rules corresponding to the target controller; the preset adjustment rules are rules preset within the debugging gateway for modifying and / or forwarding signals in the target controller; if a first target signal is acquired, the signal value corresponding to the first target signal is modified based on the target adjustment rules, and the modified signal value is sent to the sending object corresponding to the first target signal; the first target signal is the signal corresponding to the rule indicating signal modification in the target adjustment rules; if a second target signal is acquired, the target forwarding object corresponding to the second target signal is determined based on the target adjustment rules, and the signal value corresponding to the second target signal is sent to the target forwarding object; the second target signal is the signal corresponding to the rule indicating signal forwarding in the target adjustment rules. In this way, by setting up a debugging gateway between the controller and the vehicle network, and configuring dynamically adjustable adjustment rules in the debugging gateway, the received data signal values are modified and forwarded according to the adjustment rules. This enables the adjustment and change of network signals, so that network signals can be changed without modifying the controller software during network debugging, thus improving the efficiency of network debugging.
[0087] This invention also provides a network signal adjustment device. Figure 6 This is a schematic diagram of an embodiment of the network signal adjustment device provided in this invention, as shown below. Figure 6 As shown, the device 600 is used in a debugging gateway, which is connected to both the vehicle network and the target controller. Specifically, it may include:
[0088] The adjustment rule determination module 610 is used to obtain adjustment information for preset adjustment rules, and adjust the preset adjustment rules based on the adjustment information to obtain the target adjustment rules corresponding to the target controller; the preset adjustment rules are rules preset in the debugging gateway to modify and / or forward signals in the target controller.
[0089] The signal value modification module 620 is used to modify the signal value corresponding to the first target signal based on the target adjustment rule if the acquired data includes the first target signal, and send the modified signal value to the sending object corresponding to the first target signal; the first target signal is the signal corresponding to the rule in the target adjustment rule that indicates signal modification;
[0090] The signal value forwarding module 630 is used to determine the target forwarding object corresponding to the second target signal based on the target adjustment rule if the acquired data includes the second target signal, and to send the signal value corresponding to the second target signal to the target forwarding object; the second target signal is the signal corresponding to the rule in the target adjustment rule that indicates signal forwarding.
[0091] In one optional implementation, the adjustment rule determination module 610 includes:
[0092] The adjustment information parsing unit is used to parse the adjustment information to obtain the signal to be modified and the target rule corresponding to the signal to be modified.
[0093] The rule modification unit is used to modify the rule corresponding to the signal to be modified in the preset adjustment rules to the target rule, thereby obtaining the target adjustment rule.
[0094] In one optional implementation, the adjustment rule determination module 610 includes:
[0095] An adjustment information parsing unit is used to parse adjustment information to obtain at least one preset rule and the target rule corresponding to the preset rule;
[0096] The rule modification unit is used to modify at least one preset rule in the preset adjustment rules to the corresponding target rule to obtain the target adjustment rule.
[0097] In one optional implementation, the target adjustment rule includes a signal identifier of the first target signal and a target signal value of the first target signal; the signal value modification module 620 includes:
[0098] The signal value determination unit is used to search for the signal identifier corresponding to the signal value in the received data based on the signal identifier of the first target signal, and determine the signal value of the first target signal and the sending object;
[0099] The signal value modification unit is used to modify the signal value of the first target signal to the target signal value;
[0100] The signal value transmission unit is used to send the signal identifier of the first target signal and the target signal value to the sending object.
[0101] In one optional implementation, the signal value modification module 620 further includes:
[0102] The verification information determination unit is used to determine the verification information corresponding to the target signal value based on the verification algorithm if the target adjustment rule includes a verification algorithm for the first target signal; the verification information is used to verify the target signal value after receiving the first target signal.
[0103] In one optional implementation, the target adjustment rule includes the signal identifier of the second target signal and the target forwarding object of the second target signal; the signal value forwarding module 630 includes:
[0104] The signal value lookup unit is used to look up the signal identifier corresponding to the signal value in the received data based on the signal identifier of the second target signal, and determine the signal value of the second target signal.
[0105] The signal value writing unit is used to write the signal identifier and signal value of the second target signal into the message to be forwarded corresponding to the target forwarding object;
[0106] The message forwarding unit is used to send the message to be forwarded to the target forwarding object.
[0107] In one alternative embodiment, the device further includes:
[0108] The signal value uploading unit is used to determine the target signal based on the signal value acquisition request sent by the control terminal, and upload the signal value of the target signal to the control terminal.
[0109] The apparatus and method embodiments in this application are based on the same application concept.
[0110] Figure 7 The diagram shows a structural schematic of an embodiment of the vehicle-mounted terminal provided in this invention. The specific embodiments of this invention do not limit the specific implementation of the vehicle-mounted terminal.
[0111] like Figure 7 As shown, the vehicle terminal may include: a processor 702, a communications interface 704, a memory 706, and a communication bus 708.
[0112] The processor 702, communication interface 704, and memory 706 communicate with each other via communication bus 708. Communication interface 704 is used to communicate with other network elements, such as clients or other servers. The processor 702 executes program 710, specifically performing the relevant steps described in the embodiment of the network signal adjustment method.
[0113] Specifically, program 710 may include program code, which includes computer-executable instructions.
[0114] The processor 702 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the vehicle terminal may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs.
[0115] Memory 706 is used to store program 710. Memory 706 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0116] Specifically, program 710 can be called by processor 702 to cause the vehicle terminal to execute the relevant steps described in the embodiment of the network signal adjustment method.
[0117] Those skilled in the art will understand that Figure 7 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned equipment. For example, the vehicle-mounted terminal may also include... Figure 7 The more or fewer components shown, or having the same Figure 7 The different configurations shown.
[0118] This invention provides a computer-readable storage medium storing at least one executable instruction that, when executed on a network signal adjustment device / vehicle terminal, causes the network signal adjustment device / vehicle terminal to perform the network signal adjustment method described in any of the above method embodiments.
[0119] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Furthermore, the embodiments of this invention are not directed to any particular programming language.
[0120] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. Similarly, for the sake of brevity and to aid in understanding one or more aspects of the invention, in the description of exemplary embodiments of the invention above, various features of the embodiments are sometimes grouped together in a single embodiment, figure, or description thereof. The claims, which follow the detailed description, are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of the invention.
[0121] Those skilled in the art will understand that the modules in the device of the embodiment can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiment can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components, except that at least some of such features and / or processes or units are mutually exclusive.
[0122] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.
Claims
1. A method for adjusting network signals, characterized in that, The method is applied in a debugging gateway, which is connected to both the vehicle network and the target controller; the method includes: The system acquires adjustment information for preset adjustment rules and adjusts the preset adjustment rules based on the adjustment information to obtain the target adjustment rules corresponding to the target controller. The preset adjustment rules are rules preset in the debugging gateway for modifying and / or forwarding signals in the target controller. The adjustment information indicates that a certain rule in the preset adjustment rules should be modified, or the adjustment information indicates that a rule should be selected from multiple rules in the preset adjustment rules. The adjustment information is issued by the control terminal to adjust the preset adjustment rules so that the preset adjustment rules meet the network debugging requirements. If the acquired data includes a first target signal, the signal value corresponding to the first target signal is modified based on the target adjustment rule, and the modified signal value is sent to the sending object corresponding to the first target signal; the first target signal is the signal corresponding to the rule indicating signal modification in the target adjustment rule; the first target signal is the signal corresponding to the signal value in the vehicle data sent by the vehicle network to the target controller, or the signal corresponding to the signal value sent by the target controller to the vehicle network controller data; If the acquired data includes a second target signal, then the target forwarding object corresponding to the second target signal is determined based on the target adjustment rule, and the signal value corresponding to the second target signal is sent to the target forwarding object; the second target signal is the signal corresponding to the rule indicating signal forwarding in the target adjustment rule.
2. The method according to claim 1, characterized in that, The step of adjusting the preset adjustment rules based on the adjustment information to obtain the target adjustment rules corresponding to the target controller includes: The adjustment information is parsed to obtain the signal to be modified and the target rule corresponding to the signal to be modified; The rule corresponding to the signal to be modified in the preset adjustment rule is modified to the target rule to obtain the target adjustment rule.
3. The method according to claim 1, characterized in that, The step of adjusting the preset adjustment rules based on the adjustment information to obtain the target adjustment rules corresponding to the target controller includes: The adjustment information is parsed to obtain at least one preset rule and the target rule corresponding to the preset rule; The target adjustment rule is obtained by modifying at least one preset rule in the preset adjustment rules to the corresponding target rule.
4. The method according to claim 1, characterized in that, The target adjustment rule includes the signal identifier of the first target signal and the target signal value of the first target signal; if the acquired data includes the first target signal, then the signal value corresponding to the first target signal is modified based on the target adjustment rule, and the modified signal value is sent to the target controller or the vehicle network, including: Based on the signal identifier of the first target signal, the signal identifier corresponding to the signal value in the received data is searched to determine the signal value of the first target signal and the sending object; Modify the signal value of the first target signal to the target signal value; The signal identifier and target signal value of the first target signal are sent to the sending object.
5. The method according to claim 4, characterized in that, After modifying the signal value of the first target signal to the target signal value, the method further includes: If the target adjustment rule includes a verification algorithm for the first target signal, then based on the verification algorithm, verification information corresponding to the target signal value is determined; the verification information is used to verify the target signal value after receiving the first target signal.
6. The method according to claim 1, characterized in that, The target adjustment rule includes the signal identifier of the second target signal and the target forwarding object of the second target signal; if the acquired data includes the second target signal, then based on the target adjustment rule, the target forwarding object corresponding to the second target signal is determined, and the signal value corresponding to the second target signal is sent to the target forwarding object, including: Based on the signal identifier of the second target signal, the signal identifier corresponding to the signal value in the received data will be searched to determine the signal value of the second target signal; Write the signal identifier and signal value of the second target signal into the message to be forwarded corresponding to the target forwarding object; The message to be forwarded is sent to the target forwarding object.
7. The method according to claim 1, characterized in that, The method further includes: Based on the signal value acquisition request sent by the control terminal, the target signal is determined, and the signal value of the target signal is uploaded to the control terminal.
8. A network signal adjustment device, characterized in that, The device is used in a debugging gateway, which is connected to both the vehicle network and the target controller; the device includes: The adjustment rule determination module is used to acquire adjustment information for preset adjustment rules, and adjust the preset adjustment rules based on the adjustment information to obtain the target adjustment rule corresponding to the target controller; the preset adjustment rule is a rule preset in the debugging gateway to modify and / or forward signals in the target controller; the adjustment information indicates to modify a certain rule in the preset adjustment rules, or the adjustment information indicates to select a rule from multiple rules in the preset adjustment rules; the adjustment information is issued by the control terminal and is used to adjust the preset adjustment rules so that the preset adjustment rules meet the network debugging requirements; The signal value modification module is used to modify the signal value corresponding to the first target signal based on the target adjustment rule if the acquired data includes a first target signal, and then send the modified signal value to the sending object corresponding to the first target signal; the first target signal is the signal corresponding to the rule indicating signal modification in the target adjustment rule; the first target signal is the signal corresponding to the signal value in the vehicle data sent by the vehicle network to the target controller, or the signal corresponding to the signal value in the controller data sent by the target controller to the vehicle network; The signal value forwarding module is used to determine the target forwarding object corresponding to the second target signal based on the target adjustment rule if the acquired data includes the second target signal, and to send the signal value corresponding to the second target signal to the target forwarding object; the second target signal is the signal corresponding to the rule indicating signal forwarding in the target adjustment rule.
9. A vehicle-mounted terminal, characterized in that, include: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform the operation of the network signal adjustment method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The storage medium stores at least one executable instruction, which, when executed on the network signal adjustment device / vehicle terminal, causes the network signal adjustment device / vehicle terminal to perform the operation of the network signal adjustment method as described in any one of claims 1-7.