CN116166325B - Power gear switching service calling method and device, vehicle and storage medium - Google Patents

Power gear switching service calling method and device, vehicle and storage medium

Info

Publication number
CN116166325B
CN116166325B CN202211505055.9A CN202211505055A CN116166325B CN 116166325 B CN116166325 B CN 116166325B CN 202211505055 A CN202211505055 A CN 202211505055A CN 116166325 B CN116166325 B CN 116166325B
Authority
CN
China
Prior art keywords
service
power supply
control parameter
preset
gear
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211505055.9A
Other languages
Chinese (zh)
Other versions
CN116166325A (en
Inventor
邓蓉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Technology Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202211505055.9A priority Critical patent/CN116166325B/en
Publication of CN116166325A publication Critical patent/CN116166325A/en
Application granted granted Critical
Publication of CN116166325B publication Critical patent/CN116166325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Control Of Transmission Device (AREA)

Abstract

The application relates to a power supply gear switching service calling method, a device, a vehicle and a storage medium, wherein the method comprises the steps of judging whether a scene condition of a current vehicle meets a preset gear switching condition based on scene service, calling enhancement service to judge whether a power supply gear control parameter meets a preset effective condition if the scene condition of the current vehicle meets the preset gear switching condition, assigning a power supply interface control parameter according to the power supply gear control parameter to set a corresponding control interface to be closed or opened and call atomic service, transmitting the power supply interface control parameter to the atomic service to call a corresponding IO abstract service and transmitting a corresponding control command if the power supply gear control parameter meets the preset effective condition. The application designs the power supply gear switching service based on the SOA architecture, thereby realizing the calling of gear switching in multiple scenes, greatly improving the applicability and flexibility of the gear switching service, shortening the development period and improving the use experience of users.

Description

Power gear switching service calling method and device, vehicle and storage medium
Technical Field
The application relates to the technical field of vehicle body control, in particular to a power gear switching service calling method, a device, a vehicle and a storage medium.
Background
With the development of intelligence, the traditional transportation means is difficult to meet the use demands of people, from the technical point of view, the traditional automobile electronic technology has been developed very perfectly, the differentiation of hardware is gradually reduced, the differentiation of automobile products is gradually embodied by vehicle-mounted software, and the software redefines the automobile. Service-oriented software architecture has emerged in the automotive industry today that enables individual system functions in an automobile to be packaged independently for use by a developer or user, and that can greatly reduce the software change point when faced with complex needs, compared to traditional architecture. In addition, the traditional automobile electronic and electric appliance architecture is mainly oriented to signals, each electronic unit communicates through point to point, and as automobile functions develop more and more, various controller sensors are increased, signals are increased, the coupling degree of the controllers even between different domains is higher and higher, and the development difficulty of complex functions is higher and higher.
At present, the related art can control the power supply gear to switch between the power supply closing gear and the power supply opening gear according to the pedal stepping signal and the power supply starting signal, and control the power supply gear to switch to the power supply closing gear according to the power supply starting signal in the state of the power supply opening gear.
However, the related art does not design the switching of the power gear based on the SOA architecture, so that the scenario applicability is poor, the development period is long, and the problem needs to be solved.
Disclosure of Invention
The application provides a power gear switching service calling method, a device, a vehicle and a storage medium, which are used for solving the problems that the related technology does not design the switching of the power gear based on an SOA architecture, the scene applicability is poor, the development period is long and the like.
An embodiment of a first aspect of the present application provides a method for calling a power shift switching service, including the steps of determining whether a scene condition of a current vehicle satisfies a preset shift switching condition based on a scene service;
And if the power supply gear control parameter meets the preset effective condition, assigning a value to a power supply interface control parameter according to the power supply gear control parameter so as to set a corresponding control interface to be closed or opened, calling an atomic service, transmitting the power supply interface control parameter to the atomic service so as to call a corresponding IO abstract service, and transmitting a corresponding control command.
According to the technical means, the embodiment of the application designs the power supply gear switching service based on the SOA architecture, so that the gear switching call can be realized in multiple scenes, the applicability and flexibility of the gear switching service are greatly improved, the development period is shortened, and the use experience of a user is improved.
Optionally, in one embodiment of the present application, the method further comprises updating a power gear status interface based on the power interface control parameter to notify at least one preset service of the latest power gear information while transmitting the power interface control parameter to the atomic service.
According to the technical means, the embodiment of the application can inform the service of the latest power supply gear information by updating the power supply gear state interface, so that multiple scenes can be switched by calling, the repeated execution of the gear switching function in the scene is avoided, and the applicability of the scene is effectively improved.
Optionally, in one embodiment of the present application, the step of calling the enhanced service to determine whether the power shift control parameter meets a preset effective condition includes determining whether a parameter value of the power shift control parameter is in a preset range, if so, determining whether the enhanced service is occupied, and if not, determining that the preset effective condition is met.
According to the technical means, the embodiment of the application can effectively improve the efficiency of power gear switching service by setting the proper effective conditions, and provide reliable basis and guidance for the realization of the subsequent power gear switching.
Optionally, in one embodiment of the present application, in the enhanced service running process, the method further includes obtaining service running information of the enhanced service, and sending the service running information to the scene service.
According to the technical means, the embodiment of the application improves the information sending and processing efficiency and powerfully ensures the efficient execution of the power supply gear switching by acquiring and sending the service operation information of the enhanced service to the scene service in real time.
Optionally, in one embodiment of the present application, during the operation of the enhanced service, the method further includes:
The method comprises the steps of setting a service state in service operation information as an operation state when an enhanced service is operated, setting a request ID in the service operation information as a request ID sent by a requester, setting the service state as an interruption state when a previous request is interrupted due to the service call of a high priority scene, responding to the high priority request of the high priority scene again, updating the service state and the request ID in the service operation information in the next period, setting the service state as a completion state after the enhanced service is operated, and initializing the service state and the request ID of the service operation information after a preset period.
According to the technical means, in the enhanced service operation process, the scene service side can know whether the request sent by the scene service side is executed or interrupted in real time by updating the service operation information, and can design the operation of initiating the request again after being interrupted according to the operation state, so that the information sending efficiency is effectively improved, and the use experience of a user is improved.
An embodiment of the second aspect of the application provides a power gear switching servitization calling device, which comprises a judging module, a first calling module and a second calling module, wherein the judging module is used for judging whether a scene condition of a current vehicle meets a preset gear switching condition or not based on a scene service, the first calling module is used for calling an enhancement service to judge whether a power gear control parameter meets a preset effective condition or not if the scene condition is met, and the second calling module is used for carrying out assignment on the power interface control parameter according to the power gear control parameter to set a corresponding control interface to be closed or opened and calling an atomic service, transmitting the power interface control parameter to the atomic service to call a corresponding IO abstract service and transmitting a corresponding control command if the power gear control parameter meets the preset effective condition.
Optionally, in one embodiment of the present application, further includes:
And the notification module is used for transmitting the power interface control parameters to the atomic service and updating the power gear state interface based on the power interface control parameters at the same time so as to notify at least one preset service of the latest power gear information.
Optionally, in one embodiment of the present application, the first calling module includes a comparing unit configured to determine whether a parameter value of the power range control parameter is in a preset range, an occupied unit configured to determine whether the enhanced service is occupied if the parameter value is in the preset range, and an unoccupied unit configured to determine that the preset valid condition is satisfied if the enhanced service is unoccupied.
Optionally, in one embodiment of the present application, the system further includes an acquisition module, configured to acquire service operation information of the enhanced service during the operation process of the enhanced service, and a sending module, configured to send the service operation information to the scene service.
Optionally, in one embodiment of the present application, the method further includes a setting module, configured to set a service state in the service running information to an in-running state and set a request ID in the service running information to a request ID sent by a requester when the enhanced service is running in the enhanced service running process, an updating module, configured to set the service state to an interrupted state when a previous request is interrupted due to a high priority scene service call, and to respond to the high priority request of the high priority scene again, and update the service state and the request ID in the service running information in a next period, and an initializing module, configured to set the service state to a completed state after the enhanced service is running, and initialize the service state and the request ID of the service running information after a preset period.
An embodiment of a third aspect of the present application provides a vehicle, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the program to implement the power supply shift switching service calling method according to the above embodiment.
A fourth aspect embodiment of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the power-supply-gear-shift-change servicecalling method as above.
Thus, embodiments of the present application have the following beneficial effects:
(1) According to the embodiment of the application, the power supply gear switching service is designed based on the SOA architecture, so that the gear switching call can be realized in multiple scenes, the applicability and flexibility of the gear switching service are greatly improved, the development period is shortened, and the use experience of a user is improved.
(2) According to the embodiment of the application, the latest power supply gear information is notified to the service by updating the power supply gear state interface, so that gear switching can be realized by calling in various scenes, the repeated execution of the gear switching function in the scene is avoided, and the applicability of the scene is effectively improved.
(3) The embodiment of the application can effectively improve the efficiency of the power supply gear switching service by setting the proper effective conditions, and provides reliable basis and guidance for the realization of the subsequent power supply gear switching.
(4) According to the embodiment of the application, the service operation information of the enhanced service is acquired and sent to the scene service in real time, so that the information sending and processing efficiency is improved, and the efficient execution of power supply gear switching is effectively ensured.
(5) In the embodiment of the application, by updating the service operation information in the enhanced service operation process, the scene service side can know whether the request sent by the scene service side is executed or interrupted in real time, and can design the operation of initiating the request again after being interrupted according to the operation state, thereby effectively improving the efficiency of information sending and improving the use experience of users.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flowchart of a method for power shift switching servitization call provided according to an embodiment of the present application;
Fig. 2 is a schematic diagram of a power shift switching service software architecture based on an SOA architecture according to an embodiment of the present application;
FIG. 3 is a schematic diagram of execution logic of a method for power shift switching service call according to an embodiment of the present application;
FIG. 4 is an exemplary diagram of a power range switching servitization call apparatus according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of a vehicle according to an embodiment of the present application.
The system comprises a 10-power gear switching service calling device, a 100-judging module, a 200-first calling module, a 300-second calling module, a 501-memory, a 502-processor and a 503-communication interface.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present application and should not be construed as limiting the application.
The following describes a power shift switching serviceization calling method, a device, a vehicle and a storage medium according to an embodiment of the present application with reference to the accompanying drawings. The application provides a power supply gear switching servitization calling method aiming at the problems in the background technology, wherein the method is used for judging whether the scene condition of a current vehicle meets the preset gear switching condition based on scene service, calling enhancement service to judge whether power supply gear control parameters meet preset effective conditions or not if the scene condition of the current vehicle meets the preset gear switching condition, assigning the power supply interface control parameters according to the power supply gear control parameters to set corresponding control interfaces to be closed or opened according to the power supply gear control parameters to call atomic service, transmitting the power supply interface control parameters to the atomic service to call corresponding IO abstract service and transmitting corresponding control commands. The application designs the power supply gear switching service based on the SOA architecture, thereby realizing the calling of gear switching in multiple scenes, greatly improving the applicability and flexibility of the gear switching service, shortening the development period and improving the use experience of users. Therefore, the problems that the related technology does not design the switching of the power supply gear based on the SOA architecture, the scene applicability is poor, the development period is long and the like are solved.
Specifically, fig. 1 is a flowchart of a power gear shift switching service calling method provided by an embodiment of the present application.
As shown in fig. 1, the power gear shift service calling method includes the following steps:
in step S101, based on the scene service, it is determined whether the scene condition of the current vehicle satisfies a preset gear shift condition.
It should be noted that, the embodiment of the application is based on an SOA architecture, and the architecture service application framework is composed of four layers, namely an IO (Input/Output) abstract layer, an atomic layer, an enhanced service layer and a scene service layer, wherein the four layers are mutually independent, and the services of each layer are mutually independent and have a low coupling degree. The scene service realizes the corresponding function by calling the enhancement service, and the enhancement service sends corresponding instructions to the hardware to control by calling the atomic service, and the logic architecture of the scene service is shown in fig. 2.
The embodiment of the application can judge whether the scene condition of the current vehicle meets the gear switching condition or not based on the scene service, for example, by judging whether the current power supply gear information provided by the enhancement service is in an OFF gear or not and judging whether the unlocking request is effective or not through other interfaces, thereby providing guidance and basis for the subsequent system service call.
In step S102, if the preset gear switching condition is satisfied, the enhancement service is invoked to determine whether the power supply gear control parameter satisfies the preset effective condition.
If the current power supply gear information provided by the enhancement service is judged to be in an OFF gear and the unlocking request is judged to be effective through other interfaces, the scene condition of the current vehicle meets the gear switching condition, further, the embodiment of the application can transmit the power supply gear control parameter and the service request ID (Identification) of the scene service to the power supply gear switching enhancement service, and when the power supply gear switching enhancement service recognizes that the method is invoked, the validity of the transmitted parameter is judged, so that the reasonable control of the power supply gear is ensured.
Optionally, in one embodiment of the present application, invoking the enhanced service to determine whether the power range control parameter meets a preset condition includes determining whether a parameter value of the power range control parameter is within a preset range, if so, determining whether the enhanced service is occupied, and if not, determining that the preset condition is met.
In the embodiment of the present application, effective conditions of the power-supply gear control parameter are as follows:
1. if the parameter value exceeds the effective range, the feedback service response state is 'parameter out of range';
2. If the parameter value is in the range, judging whether the enhanced service is occupied at the moment to execute other high-priority service requests, and if so, feeding back the service response state to be 'high-priority busy';
3. the enhanced service normal response then feeds back the service response status as "successful".
Therefore, the embodiment of the application can effectively improve the efficiency of the power gear switching service by setting the proper effective conditions, and provides reliable basis and guidance for the realization of the subsequent power gear switching.
Optionally, in one embodiment of the present application, during the enhanced service running process, the method further includes setting a service state in service running information to be a running state, setting a request ID in service running information to be a request ID sent by a requester, setting the service state to be an interrupt state when a previous request is interrupted due to a high priority scene service call, re-responding to the high priority request of the high priority scene, updating the service state and the request ID in the service running information in a next period, setting the service state to be a completion state after the enhanced service running is completed, and initializing the service state and the request ID of the service running information after a preset period.
It should be noted that, in the embodiment of the present application, service operation information is updated at different stages in the enhanced service operation process, which is specifically described as follows:
1. Setting the service state in the service operation information as 'in operation' during operation, and setting the request ID in the service operation information as the request ID sent by the requester;
2. if the service is called by the high-priority scene service in the operation, the previous request is interrupted, the service state is set to be 'interrupted', the high-priority request is responded again, and the service state and the request ID in the service operation information are updated in the next period.
3. After the service operation is completed, the service state is set to be 'completed', and the service state and the request ID of the service operation information are initialized after one period.
Therefore, in the embodiment of the application, by updating the service operation information in the enhanced service operation process, the scene service can know whether the request sent by the scene service is executed or interrupted in real time, and can design the operation of initiating the request again after being interrupted according to the operation state, thereby effectively improving the efficiency of information transmission and improving the use experience of users.
Optionally, in one embodiment of the present application, in the enhanced service running process, the method further comprises the steps of obtaining service running information of the enhanced service, and sending the service running information to the scene service.
According to the embodiment of the application, the service operation information of the enhanced service can be sent out in real time in the operation process of the enhanced service, so that the embodiment of the application improves the information sending and processing efficiency and powerfully ensures the efficient execution of the power gear switching by acquiring and sending the service operation information of the enhanced service to the scene service in real time.
In step S103, if the power control parameter meets the preset condition, the power control parameter is assigned according to the power control parameter to set the corresponding control interface to be on or off, and call the atomic service, and the power control parameter is transferred to the atomic service to call the corresponding IO abstract service and transfer the corresponding control command.
After the power supply gear switching enhancement service judging parameter is effective, the embodiment of the application can assign a value to the power supply interface control parameter according to the power supply gear control parameter, set the corresponding interface to be closed or opened, then call the atomic service, transfer the power supply interface control parameter to the atomic service, isolate the IO abstract service from the upper layer service thereof, call the corresponding IO abstract service according to the power supply interface control parameter, and transfer the corresponding control command, thereby improving the robustness of the power supply gear switching and reducing the degree limited by the bottom layer hardware.
Optionally, in one embodiment of the present application, the method further comprises updating the power stage status interface based on the power interface control parameter to notify at least one preset service of the latest power stage information while the power interface control parameter is being transferred to the atomic service.
While the power interface control parameters are transferred to the atomic service, the embodiment of the application can update the power gear state interface and notify other services of the latest gear information.
Therefore, the embodiment of the application can inform the service of the latest power supply gear information by updating the power supply gear state interface, so that multiple scenes can be realized by calling, the repeated execution of the gear switching function in the own scene is avoided, and the applicability of the scene is effectively improved.
The power gear switching service calling method of the application is described below with reference to the accompanying drawings.
Fig. 3 is a schematic diagram of execution logic of a service call method based on power gear shift. As shown in fig. 3, the execution process of the power shift switching service calling method according to the embodiment of the application is as follows:
S301, judging whether a gear switching condition is met by the scene service, if so, turning to S302, and if not, ending execution;
s302, calling an enhanced service power supply gear switching method;
S303, enhancing the validity of the service judgment parameters, if so, turning to S304, otherwise, ending execution;
s304, the enhancement service judges the service running state, if judging, the operation goes to S305, otherwise, the execution is finished;
s305, operating enhancement service, switching power gear and informing power gear state;
S306, calling an atomic service and transmitting the control command of the power interface to the corresponding IO abstract service.
According to the power supply gear switching servitization calling method, whether the scene condition of the current vehicle meets the preset gear switching condition is judged based on the scene service, if the scene condition of the current vehicle meets the preset gear switching condition, the enhancement service is called to judge whether the power supply gear control parameter meets the preset effective condition, if the power supply gear control parameter meets the preset effective condition, the power supply interface control parameter is assigned according to the power supply gear control parameter so as to set the corresponding control interface to be closed or opened, the atomic service is called, the power supply interface control parameter is transmitted to the atomic service so as to call the corresponding IO abstract service, and the corresponding control command is transmitted. The application designs the power supply gear switching service based on the SOA architecture, thereby realizing the calling of gear switching in multiple scenes, greatly improving the applicability and flexibility of the gear switching service, shortening the development period and improving the use experience of users.
The power supply gear switching servitization calling device according to the embodiment of the application is described next with reference to the accompanying drawings.
Fig. 4 is a block diagram of a power shift switching service call device according to an embodiment of the present application.
As shown in fig. 4, the power shift switching service call device 10 includes a determination module 100, a first call module 200, and a second call module 300.
The judging module 100 is configured to judge whether a scene condition of the current vehicle meets a preset gear switching condition based on the scene service.
The first invoking module 200 is configured to invoke the enhancement service to determine whether the power range control parameter meets a preset effective condition if the preset range switching condition is met.
And the second calling module 300 is configured to assign a value to the power interface control parameter according to the power shift control parameter if the power shift control parameter meets a preset condition, set the corresponding control interface to be closed or open, call an atomic service, transfer the power interface control parameter to the atomic service, call the corresponding IO abstract service, and transfer the corresponding control command.
Optionally, in one embodiment of the present application, the power gear shift service invocation device 10 of the embodiment of the present application further includes a notification module, configured to update the power gear status interface based on the power interface control parameter while transmitting the power interface control parameter to the atomic service, so as to notify at least one preset service of the latest power gear information.
Alternatively, in one embodiment of the application, the first invocation module 200 includes a comparison unit, an occupied unit, and an unoccupied unit.
The comparison unit is used for judging whether the parameter value of the power supply gear control parameter is in a preset range or not.
And the occupation unit is used for judging whether the enhanced service is occupied or not if the enhanced service is in the preset range.
And the unoccupied unit is used for judging that the preset effective condition is met if the enhanced service is unoccupied.
Optionally, in one embodiment of the present application, the power shift switching service call device 10 of the embodiment of the present application further includes an acquisition module and a transmission module.
The acquisition module is used for acquiring service operation information of the enhanced service in the operation process of the enhanced service.
And the sending module is used for sending the service running information to the scene service.
Optionally, in one embodiment of the present application, the power shift switching service call device 10 of the embodiment of the present application further includes a setting module, an updating module, and an initializing module.
The setting module is used for setting the service state in the service operation information as the in-operation state and setting the request ID in the service operation information as the request ID sent by the requester when the enhanced service is operated in the enhanced service operation process.
And the updating module is used for setting the service state into an interrupted state when the previous request is interrupted due to the service call of the high-priority scene, responding to the high-priority request of the high-priority scene again, and updating the service state and the request ID in the service operation information in the next period.
And the initialization module is used for setting the service state as a completion state after the enhancement service operation is completed, and initializing the service state and the request ID of the service operation information after a preset period.
It should be noted that the foregoing explanation of the embodiment of the power shift switching service call method is also applicable to the power shift switching service call device of this embodiment, and will not be repeated here.
According to the power supply gear switching servitization calling device, whether the scene condition of a current vehicle meets the preset gear switching condition is judged based on the scene service, if the scene condition of the current vehicle meets the preset gear switching condition, the enhancement service is called to judge whether the power supply gear control parameter meets the preset effective condition, if the power supply gear control parameter meets the preset effective condition, the power supply interface control parameter is assigned according to the power supply gear control parameter so as to set the corresponding control interface to be closed or opened, the atomic service is called, the power supply interface control parameter is transmitted to the atomic service so as to call the corresponding IO abstract service, and the corresponding control command is transmitted. The application designs the power supply gear switching service based on the SOA architecture, thereby realizing the calling of gear switching in multiple scenes, greatly improving the applicability and flexibility of the gear switching service, shortening the development period and improving the use experience of users.
Fig. 5 is a schematic structural diagram of a vehicle according to an embodiment of the present application. The vehicle may include:
memory 501, processor 502, and a computer program stored on memory 501 and executable on processor 502.
The processor 502 implements the power gear shift serviceization calling method provided in the above embodiment when executing a program.
Further, the vehicle further includes:
a communication interface 503 for communication between the memory 501 and the processor 502.
Memory 501 for storing a computer program executable on processor 502.
The memory 501 may include high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
If the memory 501, the processor 502, and the communication interface 503 are implemented independently, the communication interface 503, the memory 501, and the processor 502 may be connected to each other via a bus and perform communication with each other. The bus may be an industry standard architecture (Industry Standard Architecture, abbreviated ISA) bus, an external device interconnect (PERIPHERAL COMPONENT, abbreviated PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 501, the processor 502, and the communication interface 503 are integrated on a chip, the memory 501, the processor 502, and the communication interface 503 may perform communication with each other through internal interfaces.
The processor 502 may be a central processing unit (Central Processing Unit, abbreviated as CPU), or an Application SPECIFIC INTEGRATED Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the application.
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the power supply shift switching serviceization calling method as above.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, "N" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order from that shown or discussed, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include an electrical connection (an electronic device) having one or more wires, a portable computer diskette (a magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented in hardware as in another embodiment, may be implemented using any one or combination of techniques known in the art, discrete logic circuits with logic gates for implementing logic functions on data signals, application specific integrated circuits with appropriate combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), etc.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.

Claims (6)

1. The power gear switching service calling method is characterized by comprising the following steps of:
judging whether the scene condition of the current vehicle meets the preset gear switching condition or not based on the scene service;
If the preset gear switching condition is met, calling an enhancement service to judge whether the power supply gear control parameter meets the preset effective condition;
the step of calling the enhancement service to judge whether the power supply gear control parameter meets the preset effective condition comprises the following steps:
judging whether the parameter value of the power supply gear control parameter is in a preset range or not;
If the enhanced service is in the preset range, judging whether the enhanced service is occupied or not;
If the power supply gear control parameter meets the preset effective condition, assigning a power supply interface control parameter according to the power supply gear control parameter to set a corresponding control interface to be closed or open, and calling an atomic service, transmitting the power supply interface control parameter to the atomic service, wherein the atomic service isolates an IO abstract service from an upper layer service thereof to call the corresponding IO abstract service, and transmitting a corresponding control command;
acquiring service operation information of the enhanced service;
Transmitting the service operation information to the scene service;
When the enhanced service runs, setting a service state in the service running information as a running state, and setting a request ID in the service running information as a request ID sent by a requester;
When the service is called by a high-priority scene service and the previous request is interrupted, setting the service state as an interruption state, responding to the high-priority request of the high-priority scene again, and updating the service state and the request ID in the service running information in the next period;
And after the enhanced service operation is completed, setting the service state as a completion state, and initializing the service state and the request ID of the service operation information after a preset period.
2. The method of claim 1, wherein communicating the power interface control parameter to the atomic service further comprises:
and updating a power supply gear state interface based on the power supply interface control parameter so as to inform at least one preset service of the latest power supply gear information.
3. A power range switching servitization calling device, characterized by comprising:
The judging module is used for judging whether the scene condition of the current vehicle meets the preset gear switching condition or not based on the scene service;
the first calling module is used for calling the enhancement service to judge whether the power supply gear control parameter meets the preset effective condition if the preset gear switching condition is met;
The first calling module comprises:
the comparison unit is used for judging whether the parameter value of the power supply gear control parameter is in a preset range or not;
the occupation unit is used for judging whether the enhanced service is occupied or not if the enhanced service is in the preset range;
the second calling module is used for assigning a power interface control parameter according to the power gear control parameter if the power gear control parameter meets the preset effective condition so as to set a corresponding control interface to be closed or opened, calling an atomic service, transmitting the power interface control parameter to the atomic service, and isolating the IO abstract service from an upper service thereof so as to call the corresponding IO abstract service and transmitting a corresponding control command;
acquiring service operation information of the enhanced service;
Transmitting the service operation information to the scene service;
When the enhanced service runs, setting a service state in the service running information as a running state, and setting a request ID in the service running information as a request ID sent by a requester;
When the service is called by a high-priority scene service and the previous request is interrupted, setting the service state as an interruption state, responding to the high-priority request of the high-priority scene again, and updating the service state and the request ID in the service running information in the next period;
And after the enhanced service operation is completed, setting the service state as a completion state, and initializing the service state and the request ID of the service operation information after a preset period.
4. A device according to claim 3, further comprising:
And the notification module is used for transmitting the power interface control parameters to the atomic service and updating the power gear state interface based on the power interface control parameters at the same time so as to notify at least one preset service of the latest power gear information.
5. A vehicle comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the power supply range switching servicecall method of any one of claims 1-2.
6. A computer-readable storage medium having stored thereon a computer program, characterized in that the program is executed by a processor for realizing the power supply shift change servicecall method according to any one of claims 1-2.
CN202211505055.9A 2022-11-28 2022-11-28 Power gear switching service calling method and device, vehicle and storage medium Active CN116166325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211505055.9A CN116166325B (en) 2022-11-28 2022-11-28 Power gear switching service calling method and device, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211505055.9A CN116166325B (en) 2022-11-28 2022-11-28 Power gear switching service calling method and device, vehicle and storage medium

Publications (2)

Publication Number Publication Date
CN116166325A CN116166325A (en) 2023-05-26
CN116166325B true CN116166325B (en) 2026-02-03

Family

ID=86417127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211505055.9A Active CN116166325B (en) 2022-11-28 2022-11-28 Power gear switching service calling method and device, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN116166325B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117662747A (en) * 2024-01-02 2024-03-08 重庆长安汽车股份有限公司 Gear position control system, method, vehicle and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175413A (en) * 2022-06-29 2022-10-11 重庆长安汽车股份有限公司 Enhanced service calling method and device for vehicle position lamp, vehicle and medium
CN115268405A (en) * 2022-07-30 2022-11-01 重庆长安汽车股份有限公司 Method, device, equipment and medium for powering on and powering off during starting of whole vehicle

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020118519A1 (en) * 2018-12-11 2020-06-18 Oppo广东移动通信有限公司 Wireless communication method, terminal device and network device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175413A (en) * 2022-06-29 2022-10-11 重庆长安汽车股份有限公司 Enhanced service calling method and device for vehicle position lamp, vehicle and medium
CN115268405A (en) * 2022-07-30 2022-11-01 重庆长安汽车股份有限公司 Method, device, equipment and medium for powering on and powering off during starting of whole vehicle

Also Published As

Publication number Publication date
CN116166325A (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN116319499B (en) Vehicle diagnostic method, device, electronic device and storage medium
KR102544829B1 (en) Motor control method and device
CN113220610B (en) Communication system and communication method and device of SPI interface
CN116166325B (en) Power gear switching service calling method and device, vehicle and storage medium
CN115175413A (en) Enhanced service calling method and device for vehicle position lamp, vehicle and medium
CN115842730A (en) Vehicle safety OTA (over the air) upgrading method and device
JP2004533066A (en) Response mode method and apparatus in pipeline environment
CN115756805A (en) Task scheduling method and device, electronic equipment and storage medium
JP4195368B2 (en) Sender / receiver request re-enforcement method and apparatus
CN115811817A (en) Vehicle dome light control method, device, electronic device, and storage medium
JP7124660B2 (en) In-vehicle system
CN115450501B (en) Control method and device of door lock, vehicle and storage medium
CN115467602A (en) Vehicle sunroof control method, device, vehicle and storage medium
CN115946782B (en) Charging port cover control method, device, vehicle and storage medium
CN115366695B (en) Dynamic management method, device, vehicle and storage medium for vehicle torque control right
CN111124964A (en) Communication control method and device for CPU and IIC bus
CN117271425A (en) Communication method and communication device between microprocessor and system chip
CN116074338A (en) A vehicle control system
CN117311447A (en) Clock source determination method, device, equipment and computer-readable storage medium
WO2023197325A1 (en) Resource arbitration method and arbitration node
CN119239578B (en) Parking control methods, devices, vehicles, storage media, and software products for vehicles
CN115604342B (en) Data processing method, server, computer readable storage medium
JP2012103802A (en) Information processor and electronic control unit
CN115473763B (en) Information configuration method, master node, slave node and vehicle
CN115470071A (en) Vehicle functional safety monitoring method, device, vehicle and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20260225

Address after: Building 1, No. 120 Modern Avenue, Longxing Town, Liangjiang New Area, Yubei District, Chongqing, 401135

Patentee after: Chongqing Chang'an Technology Co.,Ltd.

Country or region after: China

Address before: Changan Automobile Global R&D Center, Yuzui Town, Jiangbei District, Chongqing 400020

Patentee before: Chongqing Changan Automobile Co.,Ltd.

Country or region before: China