Method and device for obtaining service response code, vehicle and storage medium
By aggregating and generating secondary response codes under the SOA architecture, the problem of asynchronous timing of secondary response codes in the hidden door handle service is solved, thereby reducing the number of information transmissions and lowering the communication debt ratio.
Patent Information
- Application Number
- CN202311092289.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-08-28
AI Technical Summary
Under the SOA architecture, the generation of the second-level response code in the hidden door handle service has a timing asynchronous problem, resulting in multiple information transmissions and increasing the communication debt ratio.
When the first-level response code is detected to be the first preset response code at regular intervals, the response code detection enable flag, the enhanced service operation status and response code of each vehicle door handle are obtained, the door handle response code completion flag and the scene service level response code are generated, and a second-level response code is generated for one-time feedback after all door handle response codes are completed.
This reduced the number of messages sent, effectively lowering the communication debt ratio.
Smart Images

Figure CN116980359B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and more specifically to a method, apparatus, vehicle, and storage medium for obtaining service response codes. Background Technology
[0002] Currently, concealed door handles are developed using SOA (Service-Oriented Architecture). Under SOA, application services are typically divided into six layers: scenario services, system services, enhancement services, atomic services, IO abstraction services, and basic services. Scenario services provide interfaces for door handle expansion and folding control, supporting cross-domain calls. When a service is called across domains, the door handle service requester generally checks the service response code to determine the service function's response status. The service response code consists of a first-level response code and a second-level response code. The first-level response code is immediately provided during the service call and is often used for checking the validity of control commands. The second-level response code is sent to the door handle service requester during service function execution, providing feedback on whether the service function succeeded or failed. The second-level response is only sent to the door handle service requester if the first-level response is successful.
[0003] Upon receiving a control command, the existing scenario service calls the corresponding enhancement services for each door handle. After receiving the call request, each door handle enhancement service sends a secondary response code (complete, interrupted, or faulty) to the door handle service requester, indicating whether the service function was successfully executed. Since multiple enhancement services are deployed in different door handle controllers, the generation of secondary response codes is prone to asynchronous timing. This requires sending secondary response codes to the door handle service requester multiple times, increasing the number of information transmissions and raising the communication debt ratio. Summary of the Invention
[0004] This invention provides a method, apparatus, vehicle, and storage medium for obtaining service response codes. It can aggregate the response codes generated by each enhanced service for feedback on the success or failure of service function execution into a secondary response code, and send the secondary response code to the door handle service request terminal at once, thereby reducing the number of information transmissions and effectively reducing the communication debt ratio.
[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0006] A method for obtaining a service response code, wherein the method is applied to a target door handle controller among a plurality of door handle controllers, each door handle controller controlling at least one vehicle door handle; the method includes:
[0007] When the first-level response code is detected to be the first preset response code at regular intervals, obtain the response code detection enable flag, the door handle enhancement service operation status and enhancement service response code corresponding to each vehicle door handle;
[0008] For each vehicle door handle, a door handle response code completion flag and a door handle scenario service level response code are generated based on the response code detection enable flag, the door handle enhanced service operation status, and the enhanced service response code.
[0009] If the door handle response code completion flag of each vehicle door handle is detected to be the first preset completion flag, a second-level response code is generated based on the door handle scene service level response code of each vehicle door handle.
[0010] The secondary response code is reported to the door handle service request terminal.
[0011] Furthermore, the method also includes:
[0012] Upon receiving a control command from the door handle service requester, obtain the response code to detect the busy flag of the service and the enhanced service logic control status of each door handle;
[0013] Based on control commands, enhanced service logic control status, and response code detection of the service busy flag, a first-level response code is generated;
[0014] The Level 1 response code is reported to the door handle service request terminal.
[0015] Furthermore, based on control commands, enhanced service logic control status, and response code detection service busy flags, a first-level response code is generated, including:
[0016] Check whether the control command is a preset control command;
[0017] If the control command is not a preset control command, a first-level response code with a second preset response code is generated;
[0018] If the control command is detected to be a preset control command, check whether there is at least one enhanced service logic control state that is in the process of being expanded or in the process of being collapsed among multiple enhanced service logic control states;
[0019] If at least one enhanced service logic control state is in the unfolded execution state or the collapsed execution state, generate a first-level response code with a third preset response code.
[0020] If there is no enhanced service logic control state that is either in the expanded execution state or in the collapsed execution state, check whether the detection response code detection service busy flag is the detection busy flag.
[0021] If the response code detection service is detected as busy, a first-level response code with a third preset response code is generated.
[0022] If the response code detection service busy flag is not the detection busy flag, a first-level response code with the first preset response code is generated.
[0023] Furthermore, after generating a first-level response code based on control instructions, enhanced service logic control status, and response code detection service busy flag, the method also includes:
[0024] If the first-level response code is determined to be the first preset response code, the service counter and the parameter arbitration module are updated; the service counter is used to count the first preset response code, and the parameter arbitration module is used to store control commands.
[0025] Furthermore, before obtaining the response code detection enable flag, the door handle enhancement service operation status corresponding to each vehicle door handle, and the enhancement service response code, the method also includes:
[0026] If a service counter update is detected, the response code detection enable flag is set to the default enable flag, and the response code detection service busy flag is set to the detection busy flag.
[0027] Furthermore, based on the response code detection enable flag, the door handle enhancement service running status, and the enhancement service response code, a door handle response code completion flag and a door handle scenario service level response code are generated, including:
[0028] The response code is used to check whether the enable flag is the preset enable flag.
[0029] If the response code detection enable flag is set to the preset enable flag, and an update to the door handle enhanced service response code is detected, and the service identity identifier carried in the door handle enhanced service response code is the same as the service identity identifier carried in the control command sent by the door handle service requester, then the door handle response code completion flag is the first preset completion flag, and the door handle scene service level response code indicates that the door handle enhanced service is running; or...
[0030] When the response code detection enable flag is a preset enable flag, the door handle enhancement service is detected to be in a running state, and the service identity identifier carried in the door handle enhancement service response code is the same as the service identity identifier carried in the control command sent by the door handle service requester. The door handle response code completion flag is a second preset completion flag, and the door handle scene service level response code is a preset value; or...
[0031] If the response code detection enable flag is set to the preset enable flag, and the duration of the detected call to the door handle scenario service layer response code exceeds the first preset duration, the door handle response code completion flag is set to the first preset completion flag, and the door handle scenario service layer response code indicates that the door handle enhanced service call failed; or...
[0032] If the response code detection enable flag is set to the preset enable flag, and the generation time of the door handle scene service layer response code exceeds the second preset time, the door handle response code completion flag is set to the first preset completion flag, and the door handle scene service layer response code indicates that the door handle enhanced service command execution has timed out; or...
[0033] When the response code detection enable flag is set to the preset enable flag, the service identity identifier carried in the door handle enhanced service response code is different from the service identity identifier carried in the control command sent by the door handle service requester. The door handle response code completion flag is the first preset completion flag, and the door handle scenario service level response code indicates that the door handle enhanced service execution has been interrupted.
[0034] Furthermore, the method also includes:
[0035] Clear the door handle response code completion flag, response code detection service busy flag, and response code detection enable flag.
[0036] A service response code acquisition apparatus, wherein the apparatus is applied to a target door handle controller among a plurality of door handle controllers, each door handle controller controlling at least one vehicle door handle; the apparatus includes:
[0037] The acquisition module is used to acquire the response code detection enable flag, the door handle enhancement service operation status and enhancement service response code corresponding to each vehicle door handle when the first-level response code is detected to be the first preset response code at regular intervals.
[0038] The first generation module is used to generate a door handle response code completion flag and a door handle scene service level response code for each vehicle door handle based on the response code detection enable flag, the door handle enhancement service running status and the enhancement service response code;
[0039] The second generation module is used to generate a secondary response code based on the door handle scene service level response code of each vehicle door handle when the door handle response code completion flag of each vehicle door handle is detected to be the first preset completion flag.
[0040] The response code reporting module is used to report the secondary response code to the door handle service request terminal.
[0041] A vehicle is provided with a plurality of door handle controllers, each door handle controller controlling at least one vehicle door handle, wherein any target door handle controller among the plurality of door handle controllers is used to perform the above-described method for obtaining service response codes.
[0042] A storage medium storing one or more programs that can be executed by one or more processors to implement the above-described method for obtaining service response codes.
[0043] The beneficial effects of this invention are:
[0044] The method, apparatus, vehicle, and storage medium for obtaining service response codes provided in this embodiment include: when a first-level response code is detected to be a first preset response code at regular intervals, obtaining a response code detection enable flag, the operating status of the door handle enhanced service corresponding to each vehicle door handle, and the enhanced service response code; for each vehicle door handle, generating a door handle response code completion flag and a door handle scene service level response code based on the response code detection enable flag, the door handle enhanced service operating status, and the enhanced service response code; when the door handle response code completion flags of each vehicle door handle are detected to be the first preset completion flag, generating a second-level response code based on the door handle scene service level response codes of each vehicle door handle; and reporting the second-level response code to the door handle service request end. This invention can ultimately aggregate the generated door handle scene service level response codes used to provide feedback on the success or failure of service function execution into a single second-level response code, and feed this second-level response code back to the door handle service request end in one go, reducing the number of information transmissions and effectively reducing the problem of high communication debt ratio. Attached Figure Description
[0045] Figure 1 This is a schematic diagram illustrating the correspondence between the door handle controller and the service of the present invention;
[0046] Figure 2 This is a flowchart illustrating an embodiment of a method for obtaining a service response code according to the present invention;
[0047] Figure 3 A flowchart illustrating another embodiment of the method for obtaining service response codes according to the present invention;
[0048] Figure 4 This is a software architecture diagram for obtaining service response codes according to the present invention.
[0049] Figure 5 This is a block diagram of an embodiment of the service response code acquisition device of the present invention. Detailed Implementation
[0050] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.
[0051] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0052] This embodiment proposes a method for obtaining service response codes. This method is applied to a target door handle controller among multiple door handle controllers, each controlling at least one vehicle door handle. The target door handle controller includes scene services and enhancement services, while the remaining door handle controllers only include enhancement services. This can be understood as one enhancement service controlling one vehicle door handle (i.e., a hidden door handle). For ease of explanation, this is illustrated using a vehicle with four door handles. Figure 1 A schematic diagram illustrating the mapping relationship between a door handle controller and a service is shown, such as... Figure 1 As shown, door handle controller 1 includes a scene service and an enhanced service for the left front hidden door handle connected to the scene service. Door handle controller 2 includes an enhanced service for the right front hidden door handle connected to the scene service in door handle controller 1. Door handle controller 3 includes enhanced services for the left rear hidden door handle and the right rear hidden door handle connected to the scene service in door handle controller 1. Door handle controller 1, which includes the scene service, is used as the target door handle controller. The scene service is used for the generation and reporting of the secondary response code.
[0053] See Figure 2 , Figure 2 This is a flowchart illustrating an embodiment of a method for obtaining a service response code. Figure 2 The process shown may include the following steps:
[0054] Step 201: When the first-level response code is detected to be the first preset response code at regular intervals, obtain the response code detection enable flag, the door handle enhancement service operation status and enhancement service response code corresponding to each vehicle door handle;
[0055] The first preset response code is "Instruction Received", which indicates that the second-level response code generation step has not yet been executed. It shows that the service feedback response can be given to the control instruction sent by the door handle service request terminal to control the vehicle door handle. The door handle service request terminal can be understood as the control terminal on the vehicle that can control the vehicle door handle.
[0056] The response code detection enable flag indicates whether the scene service calls the enhancement service to generate the door handle scene service-level response code and the door handle response code completion flag. When the response code detection enable flag is a preset enable flag, such as 1, it indicates that the enhancement service needs to be called to generate the door handle scene service-level response code and the door handle response code completion flag. If the response code detection enable flag is set to a non-preset enable flag, such as 0, then the enhancement service does not need to be called to generate the door handle scene service-level response code and the door handle response code completion flag. The preset enable flag can be represented by other values, symbols, or letters, which are not limited here.
[0057] The operating status and response code of the door handle enhancement service corresponding to each vehicle door handle need to be obtained by the scenario service from the enhancement service corresponding to each vehicle door handle. The operating status of the door handle enhancement service is used to represent the current operating status of the vehicle door handle. In this embodiment, the operating status of the door handle enhancement service can be divided into four operating statuses: interrupted, running, faulted, and completed. The enhancement service response code is also used to represent the current operating status of the vehicle door handle, but the enhancement service response code is only divided into three types: interrupted, completed, and faulted.
[0058] Step 202: For each vehicle door handle, generate a door handle response code completion flag and a door handle scenario service level response code based on the response code detection enable flag, the door handle enhanced service running status, and the enhanced service response code.
[0059] The scene service retrieves the enhanced service corresponding to each vehicle door handle to generate a door handle response code completion flag and a door handle scene service level response code for each door handle. The door handle scene service level response code is the response code that provides feedback on the success or failure of the service function execution. The door handle response code completion flag is used to characterize whether the detection process of the door handle scene service level response code is complete. In one implementation, if the door handle response code completion flag is a first preset completion flag, such as 1, it indicates that the detection process of the door handle scene service level response code has been completed. If the door handle response code completion flag is a second preset completion flag, such as 0, it indicates that the detection process of the door handle scene service level response code is in progress or has not been in progress. The first preset completion flag and the second preset completion flag can be represented by other values, symbols, or letters, which are not limited here.
[0060] Since the process of generating the door handle response code completion flag and door handle scene service level response code for each vehicle door handle is the same, this description only takes one vehicle door handle as an example to illustrate the generation process of the door handle response code completion flag and door handle scene service level response code. The specific generation process can be implemented through steps A1 to A6:
[0061] Step A1: Check whether the response code detection enable flag is the preset enable flag;
[0062] When the response code detection enable flag is the preset enable flag, the scene service needs to call the enhanced service to generate the door handle scene service level response code and the door handle response code completion flag.
[0063] Step A2: When the response code detection enable flag is the preset enable flag, it is detected that the door handle enhanced service response code has been updated, and the service identity identifier carried by the door handle enhanced service response code is the same as the service identity identifier carried in the control command sent by the door handle service request terminal. The door handle response code completion flag is the first preset completion flag, and the door handle scene service level response code indicates that the door handle enhanced service is running.
[0064] In this embodiment, the detection status of different door handle scenario service level response codes corresponds to different door handle response code completion flags and door handle scenario service level response codes. Specifically, in the "waiting" sub-state, the enhanced service call timeout is performed. If the wait times out, it indicates that the enhanced service call has failed. In the "running" sub-state, the enhanced service running status and running code are monitored within a certain timeout range to obtain the "interrupted", "completed", and "timeout" sub-states. Therefore, in this embodiment, after determining the corresponding sub-state based on the response code detection enable flag, the door handle enhanced service running status, and the enhanced service response code, the door handle response code completion flag and door handle scenario service level response code can be determined.
[0065] If the service identity identifier carried in the door handle enhancement service response code is the same as the service identity identifier carried in the control command sent by the door handle service requester, it indicates that the enhancement service is performing the door handle scene service level response code generation for this control command. Furthermore, if an update to the door handle enhancement service response code is detected, i.e., it is different from the previous detection, it is considered to be in the "complete" sub-state. The door handle response code completion flag corresponding to this sub-state is the first preset completion flag, and the door handle scene service level response code indicates that the door handle enhancement service is running.
[0066] Step A3: If the response code detection enable flag is a preset enable flag, the door handle enhancement service is detected to be in a running state, and the service identity identifier carried in the door handle enhancement service response code is the same as the service identity identifier carried in the control command sent by the door handle service requester. The door handle response code completion flag is a second preset completion flag, and the door handle scene service level response code is a preset value; or...
[0067] If the door handle enhancement service is detected to be in a running state, and the service identity identifier carried in the door handle enhancement service response code is the same as the service identity identifier carried in the control command sent by the door handle service requester, it is considered to be in the "running" sub-state. The door handle response code completion flag corresponding to this sub-state is the second preset completion flag, and the door handle scene service level response code is a preset value, such as 0.
[0068] Step A4: If the response code detection enable flag is set to the preset enable flag, and the duration of the call to the door handle scenario service layer response code exceeds the first preset duration, the door handle response code completion flag is set to the first preset completion flag, and the door handle scenario service layer response code indicates that the door handle enhanced service call failed; or,
[0069] If the duration of the response code call to the door handle scene service layer exceeds the first preset duration, it indicates a timeout in the enhanced service call, which is considered a "call failure" sub-state. The completion flag for the corresponding door handle response code in this sub-state is the first preset completion flag, and the door handle scene service layer response code indicates that the door handle enhanced service call failed. The first preset duration can be set according to actual needs and is not limited here.
[0070] Step A5: If the response code detection enable flag is set to the preset enable flag, and the generation time of the door handle scene service layer response code exceeds the second preset time, the door handle response code completion flag is set to the first preset completion flag, and the door handle scene service layer response code indicates that the door handle enhanced service command execution has timed out; or,
[0071] If the generation time of the door handle scene service layer response code exceeds the second preset time, it indicates that the generation of the door handle scene service layer response code by the enhanced service has timed out, and is regarded as a "timeout" sub-state. The completion flag of the door handle response code corresponding to this sub-state is the first preset completion flag, and the door handle scene service layer response code indicates that the execution of the door handle enhanced service command has timed out. The second preset time can be set according to actual needs and is not limited here.
[0072] Step A6: When the response code detection enable flag is the preset enable flag, the service identity identifier carried in the door handle enhanced service response code is different from the service identity identifier carried in the control command sent by the door handle service requester. The door handle response code completion flag is the first preset completion flag, and the door handle scene service level response code is the door handle enhanced service execution interruption.
[0073] If the service identity identifier carried in the door handle enhancement service response code is different from the service identity identifier carried in the control command sent by the door handle service requester, it means that the enhancement service is not generating the door handle scene service level response code for this control command. In this case, the enhancement service execution needs to be interrupted and stopped, which is regarded as the "interruption" sub-state. The door handle response code completion flag corresponding to this sub-state is the first preset completion flag. The door handle scene service level response code indicates that the door handle enhancement service execution has been interrupted.
[0074] Step 203: When the door handle response code completion flag of each vehicle door handle is detected to be the first preset completion flag, a second-level response code is generated based on the door handle scene service level response code of each vehicle door handle.
[0075] When the scene service detects that the door handle response code completion flags for each vehicle door handle are all the first preset completion flags, it indicates that the enhanced service corresponding to each vehicle door handle has completed the detection process of the door handle scene service level response code. In this embodiment, the door handle scene service level response codes for each vehicle door handle are only aggregated to generate a secondary response code when the detection process of the door handle scene service level response codes for all vehicle door handles is completed. This secondary response code is then fed back to the door handle service requesting end at once, reducing the number of information transmissions and effectively reducing the problem of high communication debt ratio.
[0076] Step 204: Report the secondary response code to the door handle service request terminal.
[0077] The method for obtaining service response codes provided in this embodiment includes: when a first-level response code is detected to be a first preset response code at regular intervals, obtaining a response code detection enable flag, the operating status of the door handle enhancement service corresponding to each vehicle door handle, and the enhancement service response code; for each vehicle door handle, generating a door handle response code completion flag and a door handle scene service level response code based on the response code detection enable flag, the door handle enhancement service operating status, and the enhancement service response code; when the door handle response code completion flags of each vehicle door handle are detected to be the first preset completion flag, generating a second-level response code based on the door handle scene service level response codes of each vehicle door handle; and reporting the second-level response code to the door handle service request end. This invention can ultimately aggregate the generated door handle scene service level response codes used to provide feedback on the success or failure of service function execution into a single second-level response code, and feed this second-level response code back to the door handle service request end in one go, reducing the number of information transmissions and effectively reducing the problem of high communication debt ratio.
[0078] For a clearer explanation of the entire service response code acquisition process, please refer to [link / reference]. Figure 3 , Figure 3 A flowchart illustrating an embodiment of another method for obtaining service response codes provided in this embodiment. Figure 3 The process shown may include the following steps:
[0079] Step 301: If the control command sent by the door handle service request terminal is received, obtain the response code detection service busy flag and the enhanced service logic control status of each door handle;
[0080] The busy flag of the response code detection service is used to indicate whether there is a secondary response code execution step. In specific implementation, when the busy flag of the response code detection service is busy, the control command received by the scene service is directly discarded. That is, during the generation of secondary response codes, the busy flag of the response code detection service can be used to intercept new control commands in response to ensure the integrity of secondary response code detection. When the busy flag of the response code detection service is not busy, the generation of secondary response codes can be performed on control commands that are preset control commands, such as unfold control commands or fold control commands.
[0081] The enhanced service logic control state of the door handle is used to characterize the specific control operation of the vehicle door handle, such as whether it is in the logic control state of unfolding or folding.
[0082] Step 302: Generate a level 1 response code based on control instructions, enhanced service logic control status, and response code detection service busy flag;
[0083] Upon receiving the control command, a Level 1 response code is immediately generated and reported to the door handle service requesting terminal. The specific process of generating the Level 1 response code can be implemented through steps B1 to B7:
[0084] Step B1: Check whether the control command is a preset control command;
[0085] Preset control commands are the operation commands for controlling the vehicle door handles, specifically unfolding control commands or folding control commands.
[0086] Step B2: If the control command is not a preset control command, generate a first-level response code of the second preset response code;
[0087] The Level 1 response code is specifically "Parameter Out of Range," which indicates that the control command is not an operation command to control the vehicle door handle. Therefore, the vehicle door handle does not perform the action corresponding to the control command.
[0088] Step B3: If the control command is detected to be a preset control command, check whether there is at least one enhanced service logic control state that is in the expanded execution state or the collapsed execution state among the multiple enhanced service logic control states.
[0089] Step B4: If at least one enhanced service logic control state is in the unfolded execution state or the collapsed execution state, generate a first-level response code of the third preset response code.
[0090] The Level 1 response code "Device Busy" indicates that the vehicle door handle is currently performing the action corresponding to the control command, that is, the vehicle door handle is currently unfolding or folding.
[0091] Step B5: If there is no enhanced service logic control state that is either in an expanded execution state or a collapsed execution state, check whether the response code is a busy flag for the service.
[0092] Step B6: If the response code detection service is detected as busy, generate the first-level response code of the third preset response code.
[0093] In this case, it is also considered that the vehicle door handle is currently unfolding or folding.
[0094] Step B7: If the response code detection service busy flag is not the detection busy flag, generate the first-level response code of the first preset response code.
[0095] The first-level response code is "Instruction Received," which indicates that the second-level response code generation step has not yet been executed, and that the subsequent second-level response code generation process can be performed on the control instruction for controlling the vehicle door handle sent by the door handle service request terminal.
[0096] Step 303: Report the Level 1 response code to the door handle service request terminal, and if the Level 1 response code is determined to be the first preset response code, update the service counter and update the parameter arbitration module;
[0097] The service counter is used to count the first preset response code, and the parameter arbitration module is used to store control instructions. That is, the control instructions that can control the vehicle door handle this time are used to update the control instructions that control the vehicle door handle last time. For example, if the control instructions last time were unfold control instructions and the control instructions this time are folding control instructions, then the unfold control instructions are replaced by folding control instructions and stored in the parameter arbitration module.
[0098] Step 304: If a service counter update is detected, set the response code detection enable flag to the preset enable flag and set the response code detection service busy flag to the detection busy flag.
[0099] The service counter update indicates that this control command is for controlling the vehicle door handle and there is currently no execution process for generating a secondary response code. Therefore, the secondary response code generation process can be executed for this control command.
[0100] Setting the response code detection enable flag to the preset enable flag is to enable the scene service to invoke the enhancement service to generate the door handle scene service level response code. Setting the response code detection service busy flag to the detection busy flag is to enable the scene service to directly discard the control command received again, so as to ensure the integrity of the secondary response code detection corresponding to the current control command.
[0101] Step 305: Obtain the response code detection enable flag, the door handle enhancement service operation status and enhancement service response code corresponding to each vehicle door handle;
[0102] Step 306: For each vehicle door handle, generate a door handle response code completion flag and a door handle scenario service level response code based on the response code detection enable flag, the door handle enhanced service running status, and the enhanced service response code.
[0103] Step 307: When the door handle response code completion flag of each vehicle door handle is detected to be the first preset completion flag, a second-level response code is generated based on the door handle scene service level response code of each vehicle door handle, and the door handle response code completion flag, response code detection service busy flag and response code detection enable flag are cleared to zero.
[0104] Clearing the door handle response code completion flag, response code detection service busy flag, and response code detection enable flag means setting the door handle response code completion flag to the second preset completion flag, the response code detection service busy flag to the non-detection busy flag, and the response code detection enable flag to the non-preset enable flag, so as to generate the second-level response code corresponding to the next control command that can control the vehicle door handle.
[0105] Step 308: Report the secondary response code to the door handle service request terminal.
[0106] To facilitate understanding of the entire service response code acquisition process, Figure 4 A software architecture diagram for obtaining service response codes is provided, such as... Figure 4 As shown, the software architecture generally consists of service functions and periodic main control functions. These service functions and periodic main control functions together form a scenario service. Figure 4 The example shown uses four vehicle door handles. Figure 4 The left-hand box shows the architecture for generating the first-level response code in the service function implementation. Figure 4 The right-hand box shows the architecture for generating the second-level response code using the periodic master control function, where, for example... Figure 4The left-hand box indicates that after the control command, the enhanced service logic control status of the left front, right front, left rear, and right rear vehicle door handles, and the busy flag of the response code detection service are input into the first-level response arbitration module, the first-level response arbitration module generates a first-level response code based on the input information. This generation process is the same as described above and will not be repeated here. If the first-level response code is determined to be the first preset response code, the service counter and the parameter arbitration module are updated. The service function sends the updated service count and the updated control command to the periodic master control function. The periodic master control function also obtains the door handle enhanced service operation status and enhanced service response code corresponding to the left front, right front, left rear, and right rear vehicle door handles. When the service count changes, the service counting module, while setting the response code detection enable flag and the response code detection service busy flag using the response code detection enable module, simultaneously retrieves the enhanced services corresponding to the left front, right front, left rear, and right rear vehicle door handles and sends them to the corresponding response code detection sub-modules in the response code detection module for response code detection. That is, based on the response code detection enable flag and the door handle enhanced service operation status... The system generates door handle response code completion flags and door handle scene service level response codes for each vehicle door handle, along with enhanced service response codes. In actual use, control commands are also sent to the enhanced service to perform corresponding operations on the vehicle door handles. After the response code detection is complete and the corresponding door handle response code completion flags and scene service level response codes are obtained, the door handle response code completion flags for the left front, right front, left rear, and right rear vehicle door handles are input into the response code update determination module to obtain the response code update flag. When the response code update flag is 1, i.e. If the completion flag of each door handle response code is determined to be the first preset completion flag, the response code detection enable flag is cleared to zero, thereby clearing the door handle response code completion flag and the response code detection service busy flag. The door handle scene service level response codes corresponding to the left front, right front, left rear, and right rear vehicle door handles are input into the response code arbitration module. Multiple door handle scene service level response codes are summarized and merged into a single response code arbitration value. When the response code update module detects that the response code update flag is 1, the response code arbitration value is reported as a secondary response code to the door handle service request end.
[0107] The service response code acquisition method provided in this embodiment can immediately report the first-level response code after receiving the control command from the door handle service request terminal. If the first-level response code is the first preset response code, it generates door handle scene service level response codes corresponding to each vehicle door handle for feedback on the reason for the success or failure of the service function execution. After all the door handle scene service level response codes corresponding to each vehicle door handle are generated, the multiple door handle scene service level response codes are summarized to generate a second-level response code, and the second-level response code is fed back to the door handle service request terminal at one time. This reduces the number of information transmissions and effectively reduces the problem of high communication debt ratio.
[0108] In response to the above method, this embodiment provides a device for obtaining service response codes, see [link to relevant documentation]. Figure 5 This is a block diagram illustrating an embodiment of a service response code acquisition device provided by an embodiment of the present invention. The device is applied to a target door handle controller among multiple door handle controllers, each door handle controller controlling at least one vehicle door handle; as shown... Figure 5 As shown, the device may include:
[0109] The acquisition module 501 is used to acquire the response code detection enable flag, the door handle enhancement service operation status and enhancement service response code corresponding to each vehicle door handle when the first-level response code is detected to be the first preset response code at regular intervals.
[0110] The first generation module 502 is used to generate a door handle response code completion flag and a door handle scene service level response code for each vehicle door handle based on the response code detection enable flag, the door handle enhancement service running status and the enhancement service response code;
[0111] The second generation module 503 is used to generate a secondary response code based on the door handle scene service level response code of each vehicle door handle when the door handle response code completion flag of each vehicle door handle is detected to be the first preset completion flag.
[0112] The response code reporting module 504 is used to report the secondary response code to the door handle service request terminal.
[0113] This embodiment provides a vehicle equipped with multiple door handle controllers, each door handle controller controlling at least one vehicle door handle, and any target door handle controller among the multiple door handle controllers being used to execute the above-described service response code acquisition method.
[0114] This embodiment provides a storage medium (computer-readable storage medium). The storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; it may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and it may also include combinations of the above types of memory.
[0115] When one or more programs in the storage medium can be executed by one or more processors, the method for testing the overall efficiency of the electric drive system of the aforementioned vehicle can be implemented.
[0116] The processor is used to execute the vehicle charging reminder program stored in the memory to implement the steps of the method for testing the overall efficiency of the vehicle's electric drive system.
[0117] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0118] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0119] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method of service response code acquisition, characterized by, The method is applied to a target door handle controller among a plurality of door handle controllers, each of the door handle controllers controlling at least one vehicle door handle; the method includes: When the first-level response code is detected to be the first preset response code at regular intervals, the response code detection enable flag, the door handle enhancement service operation status and enhancement service response code corresponding to each of the vehicle door handles are obtained. For each of the vehicle door handles, a door handle response code completion flag and a door handle scene service level response code are generated based on the response code detection enable flag, the door handle enhanced service running status, and the enhanced service response code. If the door handle response code completion flag of each of the vehicle door handles is detected to be the first preset completion flag, a second-level response code is generated based on the door handle scene service level response code of each of the vehicle door handles. The secondary response code is reported to the door handle service request terminal.
2. The method of claim 1, wherein, The method further includes: Upon receiving a control command from the door handle service request terminal, the system obtains the response code to detect the busy flag of the service and the enhanced service logic control status of each door handle. A level-one response code is generated based on the control command, the enhanced service logic control state, and the response code detection service busy flag. The first-level response code is reported to the door handle service request terminal.
3. The method of claim 2, wherein, The generation of a first-level response code based on the control command, the enhanced service logic control state, and the response code detection service busy flag includes: Detect whether the control command is a preset control command; If the control command is detected to be not a preset control command, a first-level response code with a second preset response code is generated; If the control command is detected to be a preset control command, it is detected whether at least one of the enhanced service logic control states is in an expanded execution state or a collapsed execution state among the multiple enhanced service logic control states. If at least one of the enhanced service logic control states is in an expanded execution state or a collapsed execution state, a first-level response code with a third preset response code is generated. If at least one of the enhanced service logic control states is in an expanded execution state or a collapsed execution state, check whether the response code detection service busy flag is a detection busy flag. If the response code detection service is detected to be busy, a first-level response code of the third preset response code is generated. If the response code detection service busy flag is not a detection busy flag, a first-level response code with a first preset response code is generated.
4. The method of claim 2, wherein, After generating a Level 1 response code based on the control command, the enhanced service logic control state, and the response code detection service busy flag, the method further includes: If the first-level response code is determined to be the first preset response code, the service counter and the parameter arbitration module are updated; wherein, the service counter is used to count the first preset response code, and the parameter arbitration module is used to store the control command.
5. The method of claim 4, wherein, Before obtaining the response code detection enable flag, the door handle enhancement service operation status corresponding to each of the vehicle door handles, and the enhancement service response code, the method further includes: Upon detecting an update to the service counter, the response code detection enable flag is set to a preset enable flag, and the response code detection service busy flag is set to a detection busy flag.
6. The method of claim 1, wherein, The step of generating a door handle response code completion flag and a door handle scene service level response code based on the response code detection enable flag, the door handle enhancement service running status, and the enhancement service response code includes: Detect whether the response code detection enable flag is a preset enable flag; If the response code detection enable flag is the preset enable flag, and an update to the door handle enhanced service response code is detected, and the service identity identifier carried by the door handle enhanced service response code is the same as the service identity identifier of the door handle service requester, the door handle response code completion flag is the first preset completion flag, and the door handle scene service level response code indicates that the door handle enhanced service is running; or... If the response code detection enable flag is the preset enable flag, the door handle enhancement service is detected to be in a running state, and the service identity identifier carried in the door handle enhancement service response code is the same as the service identity identifier carried in the control command sent by the door handle service requester, the door handle response code completion flag is the second preset completion flag, and the door handle scene service level response code is a preset value; or... If the response code detection enable flag is set to the preset enable flag, and the duration of the response code call to the door handle scene service layer exceeds a first preset duration, the door handle response code completion flag is set to the first preset completion flag, and the door handle scene service layer response code indicates a door handle enhanced service call failure; or... If the response code detection enable flag is set to the preset enable flag, and the generation time of the door handle scene service layer response code exceeds the second preset time, the door handle response code completion flag is set to the first preset completion flag, and the door handle scene service layer response code indicates that the door handle enhanced service command execution has timed out; or... If the response code detection enable flag is the preset enable flag, the service identity identifier carried by the door handle enhanced service response code is different from the service identity identifier carried in the control command sent by the door handle service request terminal, the door handle response code completion flag is the first preset completion flag, and the door handle scene service level response code is the door handle enhanced service execution interruption.
7. The method of claim 2, wherein, The method further includes: Clear the door handle response code completion flag, the response code detection service busy flag, and the response code detection enable flag.
8. An apparatus for service response code acquisition, the apparatus comprising: a processor configured to: receive a service response code; and determine a service response code type based on the service response code. The device is applied to a target door handle controller among a plurality of door handle controllers, each of the door handle controllers controlling at least one vehicle door handle; the device includes: The acquisition module is used to acquire the response code detection enable flag, the door handle enhancement service operation status and enhancement service response code corresponding to each of the vehicle door handles when the first-level response code is detected to be the first preset response code at regular intervals. The first generation module is used to generate a door handle response code completion flag and a door handle scene service level response code for each of the vehicle door handles, based on the response code detection enable flag, the door handle enhancement service running status and the enhancement service response code. The second generation module is used to generate a secondary response code based on the door handle scene service level response code of each of the vehicle door handles when the door handle response code completion flag of each of the vehicle door handles is detected to be a first preset completion flag. The response code reporting module is used to report the secondary response code to the door handle service request terminal.
9. A vehicle characterized by comprising: The vehicle is equipped with a plurality of door handle controllers, each of which controls at least one vehicle door handle, and any target door handle controller among the plurality of door handle controllers is used to perform the service response code acquisition method according to any one of claims 1 to 7.
10. A storage medium, characterized by The storage medium stores one or more programs, which can be executed by one or more processors to implement the method for obtaining service response codes according to any one of claims 1 to 7.
Citation Information
Patent Citations
SOA-based enterprise information technology system data exchange and integration system
CN105007304A
Non-contact vehicle unlocking method and system
CN114670783A
