Vehicle soft switching state acquisition method and device, equipment and storage medium

By terminating the communication service process on the vehicle application client and establishing regular connections with the vehicle server, receiving and analyzing soft switch status messages, the problem of inaccurate soft switch status display in the vehicle entertainment system is solved, and the soft switch status of the vehicle is realized Accurate access.

CN118963542APending Publication Date: 2024-11-15CHINA FAW CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410892222.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the vehicle entertainment display system, the switch status of the vehicle soft switch cannot be accurately displayed, resulting in the infotainment controller being unable to obtain the operating status of the vehicle application.

Method used

When the application client detects that the vehicle application has completed initialization, the communication service process of the preset communication service protocol stack is terminated, and the communication service process is started according to the preset time interval to establish a communication service connection with the vehicle server, and receive and resolve the vehicle soft switch. Status message to determine the switch status.

Benefits of technology

It realizes the accurate display of the vehicle soft switch status, solves the problem that the switch status cannot be accurately displayed in the vehicle entertainment display system, and ensures that the application client can effectively obtain the vehicle soft switch status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963542A_ABST
    Figure CN118963542A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle soft switching state acquisition method and device, equipment and a storage medium. The method is characterized by comprising the steps of terminating a communication service process corresponding to a preset communication service protocol stack under the condition that an application client detects that a vehicle application completes application initialization; starting the communication service process through the application client according to a preset time interval, and establishing communication service connection with a vehicle server according to the preset communication service protocol stack in the communication service process; and receiving and analyzing a vehicle soft switch state message corresponding to the vehicle application issued by the vehicle server through the application client, and determining a switch state corresponding to a vehicle soft switch according to the vehicle soft switch state message. The accurate on-off state of the vehicle soft switch can be obtained, and the on-off state of the vehicle soft switch can be accurately displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle soft switch state control, and in particular to a method, device, equipment and storage medium for acquiring the vehicle soft switch state. Background Art

[0002] In the vehicle's software architecture, the vehicle's in-vehicle infotainment system integrates a variety of vehicle applications, which can display the display status of the vehicle soft switches corresponding to the vehicle applications through the vehicle's display device and provide interactive functions for the vehicle driver. Under the existing vehicle software architecture, after the vehicle is powered on, the infotainment controller related to the in-vehicle infotainment system needs to determine the status of each corresponding vehicle application, and then set the display status of the corresponding vehicle soft switch in the display device. Due to the limitations of the vehicle network load and computing power resources, the vehicle application corresponding to the vehicle soft switch is usually set as an event-type message, which will trigger the message to be sent after the operating status of the vehicle application changes. Since the operating status of the vehicle application has not changed after the vehicle is powered on for the first time, the infotainment controller cannot obtain the operating status of the vehicle application, and there is an error in the display status of the vehicle soft switch. Summary of the Invention

[0003] The present invention provides a method, device, equipment and storage medium for obtaining the status of vehicle soft switches, so as to solve the technical problem that the switch status of each vehicle soft switch in the vehicle entertainment display system cannot be accurately displayed, thereby realizing the accurate display of the vehicle soft switch status.

[0004] According to one aspect of the present invention, a method for obtaining a vehicle soft switch state is provided, comprising:

[0005] When the application client detects that the vehicle application has completed application initialization, the communication service process corresponding to the preset communication service protocol stack is terminated;

[0006] Starting the communication service process by the application client according to a preset time interval, and establishing a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process;

[0007] The application client receives and parses the vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server, and determines the switch status corresponding to the vehicle soft switch according to the vehicle soft switch status message.

[0008] According to another aspect of the present invention, a device for obtaining a vehicle soft switch state is provided, comprising:

[0009] The vehicle application initialization module is used to terminate the communication service process corresponding to the preset communication service protocol stack when the application client detects that the vehicle application has completed application initialization;

[0010] A message subscription module, configured to start the communication service process through the application client according to a preset time interval, and establish a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process;

[0011] The switch status acquisition module is used to receive and parse the vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server through the application client, and determine the switch status corresponding to the vehicle soft switch according to the vehicle soft switch status message.

[0012] According to another aspect of the present invention, an electronic device is provided, comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for obtaining the vehicle soft switch state according to any embodiment of the present invention.

[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for obtaining the vehicle soft switch state according to any embodiment of the present invention when executed.

[0017] The technical solution of the embodiment of the present invention terminates the communication service process corresponding to the preset communication service protocol stack when the application client detects that the vehicle application has completed application initialization. This can terminate the communication service process after the vehicle application completes initialization, effectively preventing the inability to receive the status of the vehicle application; the application client starts the communication service process according to a preset time interval, and establishes a communication service connection with the vehicle server according to the preset communication service protocol stack in the communication service process, which can ensure that after the vehicle application completes initialization, a communication connection is established with the vehicle server for the first time, ensuring that the vehicle application client can effectively obtain the status of the vehicle soft switch; the application client receives and parses the vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server, and determines the switch status corresponding to the vehicle soft switch according to the vehicle soft switch status message, so as to obtain the accurate switch status of the vehicle soft switch, thereby solving the technical problem in the prior art that the switch status of each vehicle soft switch in the vehicle entertainment display system cannot be accurately displayed, and achieving the technical effect of accurately displaying the switch status of the vehicle soft switch.

[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 This is a flow chart of a method for obtaining a vehicle soft switch state according to a first embodiment of the present invention;

[0021] Figure 2 A flowchart of another method for obtaining a vehicle soft switch state provided by an embodiment of the present invention;

[0022] Figure 3 A schematic structural diagram of a device for obtaining a vehicle soft switch state provided by an embodiment of the present invention;

[0023] Figure 4 FIG. 1 is a schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] Figure 1 The present invention provides a flowchart of a method for obtaining the vehicle soft switch status. This embodiment is applicable to the case where the vehicle soft switch status is initialized when the vehicle entertainment system or the vehicle computer system is started. The method can be executed by a vehicle soft switch status obtaining device. The vehicle soft switch status obtaining device can be implemented in the form of hardware and / or software. The vehicle soft switch status obtaining device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0027] S110 : When the application client detects that the vehicle application has completed application initialization, the communication service process corresponding to the preset communication service protocol stack is terminated.

[0028] Optionally, the present invention provides a service-oriented vehicle software architecture, where the application client is the infotainment controller associated with the vehicle application, and the vehicle server can be the vehicle controller corresponding to the vehicle function. For example, vehicle air conditioning is a vehicle function, the vehicle application can be the vehicle control function control in the vehicle infotainment system, the application client corresponding to the vehicle control function control is the infotainment controller, and the vehicle server corresponding to the infotainment controller is the intelligent vehicle control domain controller.

[0029] The communication service process may be a software process for network communication functions associated with the vehicle's infotainment controller, and the pre-set communication service protocol stack may be a set of protocols organized hierarchically for in-vehicle communication services. For example, the pre-set communication service protocol stack may be a protocol stack corresponding to SOME / IP (Scalable Service-Oriented Middleware over IP).

[0030] Among them, the vehicle application can display the display and control application of vehicle status information, can display the status information of each function or sensor of the vehicle, and can also control the operating status of each function that needs to be modified.

[0031] Optionally, when the in-vehicle infotainment system is started or restarted, and a vehicle application reset is triggered, the vehicle application needs to be initialized, and the vehicle application needs to be opened in the in-vehicle infotainment system, and then the vehicle soft switch corresponds to the state.

[0032] Specifically, during the initialization process of the vehicle's application client, since the initialization speed of the preset communication service protocol stack corresponding to the vehicle's application client is greater than the initialization speed of the vehicle application, after the initialization of the preset communication service protocol stack is completed, a continuous communication connection is established with the vehicle server, and the vehicle application is in the application initialization process. Therefore, it is necessary for the application client to terminate the communication service process corresponding to the preset communication service protocol stack when it detects that the vehicle application has completed the application initialization.

[0033] S120: Start the communication service process through the application client according to a preset time interval, and establish a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process.

[0034] The preset time interval may be a pre-set time interval for re-subscribing the communication service process. It should be noted that, in order to ensure the communication service connection between the application client and the vehicle server, a re-subscription is set in the communication between the application client and the vehicle server, and a re-subscription time interval is pre-specified. Renewal is performed between the application client and the vehicle server at every preset time interval. If the communication service between the application client and the vehicle server is disconnected, the communication service connection between the application client and the vehicle server will be re-established after the preset time interval.

[0035] Specifically, when the communication service between the application client and the vehicle server is in a disconnected state, the application client restarts the communication service process according to a preset time interval, and establishes a communication service connection with the vehicle server through the communication service process according to a preset communication service protocol stack.

[0036] S130. Receive and parse, through the application client, a vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server, and determine a switch status corresponding to the vehicle soft switch according to the vehicle soft switch status message.

[0037] The vehicle soft switch status message may be status data sent by the vehicle server that records the vehicle function corresponding to the vehicle soft switch. It should be noted that the vehicle soft switch may be a virtual switch in the vehicle's in-vehicle infotainment system, operable via the vehicle's touchscreen, voice control, gesture control, or other methods. The vehicle soft switch may be associated with a vehicle function. The vehicle soft switch status message records the status of the corresponding vehicle function, and the switch status may be the display style corresponding to the vehicle soft switch. For example, the vehicle soft switch may be an air conditioning interactive application, which displays a fan image with a temperature in the vehicle's in-vehicle infotainment system. The vehicle function is vehicle air conditioning. Clicking the vehicle soft switch corresponding to the air conditioning interactive application may enable the user to turn the air conditioning on and off and set the corresponding air conditioning temperature. The display style may be the corresponding air conditioning temperature number, air conditioning on style, and air conditioning off style. The vehicle soft switch status message may include the vehicle air conditioning temperature and switch status. The air conditioning interactive application can then display the air conditioning temperature number and the corresponding switch style in the in-vehicle infotainment system via the vehicle soft switch status message.

[0038] Specifically, after the vehicle server and the application client establish a communication service connection, the vehicle server sends the vehicle soft switch status message corresponding to the vehicle application to the vehicle server, and then determines the switch status corresponding to the vehicle soft switch through the vehicle soft switch status message.

[0039] The technical solution of the embodiment of the present invention terminates the communication service process corresponding to the preset communication service protocol stack when the application client detects that the vehicle application has completed application initialization. This can terminate the communication service process after the vehicle application completes initialization, effectively preventing the inability to receive the status of the vehicle application; the application client starts the communication service process according to a preset time interval, and establishes a communication service connection with the vehicle server according to the preset communication service protocol stack in the communication service process, which can ensure that after the vehicle application completes initialization, a communication connection is established with the vehicle server for the first time, ensuring that the vehicle application client can effectively obtain the status of the vehicle soft switch; the application client receives and parses the vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server, and determines the switch status corresponding to the vehicle soft switch according to the vehicle soft switch status message, so as to obtain the accurate switch status of the vehicle soft switch, thereby solving the technical problem in the prior art that the switch status of each vehicle soft switch in the vehicle entertainment display system cannot be accurately displayed, and achieving the technical effect of accurately displaying the switch status of the vehicle soft switch.

[0040] Figure 2This is a flowchart of another method for obtaining the vehicle soft switch status provided by an embodiment of the present invention. The relationship between this embodiment and the above embodiment is that it details the communication logic for establishing a communication service connection between the vehicle application client and the vehicle server. Figure 2 As shown, the method includes:

[0041] S210: When the application client detects that the vehicle application has completed application initialization, the communication service process corresponding to the preset communication service protocol stack is terminated.

[0042] S220: Start the communication service process through the application client according to a preset time interval, and obtain the vehicle service information broadcast by the vehicle service end through the preset communication service protocol stack in the communication service process.

[0043] The vehicle service information may be service information periodically broadcast by the vehicle service end; the vehicle service information includes the service identifier and service instance identifier of the vehicle service end. It should be noted that the service identifier can be used to uniquely identify a vehicle service end, and the service instance identifier can be used to identify a service instance. For example, for a vehicle service instance, since multiple different vehicle control domains in vehicle communication can implement the door control function, different service instance identifiers need to be set to distinguish different vehicle control domains.

[0044] Specifically, the vehicle service end can periodically broadcast vehicle service information. After the application client starts the communication service process according to the preset time interval, it receives the vehicle service information broadcast by the vehicle service end through the communication service protocol stack preset in the communication service process, and then obtains the vehicle service information for establishing a communication service connection with the vehicle server.

[0045] S230: Establishing a service communication connection with the vehicle service end according to the vehicle service information through the preset communication service protocol stack.

[0046] Specifically, the application client determines the service identifier of the vehicle server and the service instance identifier that needs to be subscribed through a preset communication service protocol stack, and then establishes a service communication connection with the vehicle server.

[0047] Optionally, in another optional embodiment of the present invention, establishing a service communication connection with the vehicle service end according to the vehicle service information through the preset communication service protocol stack includes:

[0048] A status subscription request corresponding to the vehicle soft switch is sent to the vehicle service end through the preset communication service protocol stack according to the vehicle service information; when the vehicle service end receives the status subscription request, a subscription success message is sent to the application client; the subscription success message is received through the preset communication service protocol stack, and a service communication connection is established with the vehicle service end.

[0049] Among them, the status subscription request can be a subscription request message sent by the application client; it should be noted that when the application client obtains the vehicle service message, it matches the service instance identifier in the vehicle service message according to the vehicle soft switch, determines the service instance identifier corresponding to the vehicle soft switch, and determines the service instance identifier corresponding to the vehicle soft switch as the service instance identifier that needs to be subscribed, and then generates a status subscription request based on the service instance identifier that needs to be subscribed.

[0050] Among them, the subscription success message can be a confirmation subscription message sent by the vehicle service end after receiving a reply to the status subscription request.

[0051] Specifically, the application client obtains vehicle service information through a preset communication service protocol, generates a status subscription request corresponding to the vehicle soft switch based on the vehicle service information, and sends the status subscription request to the vehicle server through a preset communication service protocol. After the vehicle server receives the status subscription request, it sends a subscription success message to the application client. The communication service protocol stack preset by the application client receives the subscription success message and establishes a service communication connection with the vehicle server. Exemplarily, the vehicle server broadcasts an offer, the application client receives the offer, and sends a subscribe to the vehicle server. After the vehicle server receives the subscribe, it replies with a subscribe ack to the application client, and the vehicle server and the application client successfully establish a communication service connection. Among them, offer is vehicle service information, subscribe is a status subscription request, and subscribe ack is a subscription success message.

[0052] Optionally, in another optional embodiment of the present invention, after receiving the subscription success message through the preset communication service protocol stack and establishing a service communication connection with the vehicle service end, the method further includes:

[0053] Return to executing the operation of establishing a service communication connection with the vehicle service end according to the preset communication service protocol stack in the communication service process.

[0054] Optionally, after the vehicle server and the application client establish a service communication connection, a service communication connection needs to be established once every preset time interval to enable the vehicle server and the application client to renew, and then return to execute the operation of establishing a service communication connection with the vehicle server according to the preset communication service protocol stack in the communication service process.

[0055] Optionally, in another optional embodiment of the present invention, after returning to execute the operation of establishing a service communication connection with the vehicle service end according to the preset communication service protocol stack in the communication service process, the method further includes:

[0056] If the vehicle service end detects the status subscription request at the preset time interval, the service communication connection is maintained.

[0057] Specifically, when the vehicle server and the application client renew, the application client needs to send a status subscription request to the vehicle server at every preset time interval, and then the vehicle server receives the status subscription request at every preset time interval, thereby maintaining the service communication connection between the vehicle server and the application client.

[0058] Optionally, in another optional embodiment of the present invention, after returning to execute the operation of establishing a service communication connection with the vehicle service end according to the preset communication service protocol stack in the communication service process, the method further includes:

[0059] If the vehicle service end fails to detect the status subscription request within the preset time interval, the service communication connection is terminated.

[0060] Specifically, when the vehicle server and the application client renew their subscriptions, the application client needs to send a status subscription request to the vehicle server at preset time intervals. When the application client is unable to send or does not send a status subscription request, and the vehicle server does not detect a status subscription request within the preset time interval, it is considered that the service communication connection needs to be interrupted, and the vehicle server terminates the service communication connection with the application client.

[0061] Optionally, when the vehicle server terminates the service communication connection with the application client, if the vehicle server receives a status subscription request sent by the application client again, the status subscription request is regarded as a new service communication connection.

[0062] S240: Receive and parse the vehicle soft switch status message sent by the vehicle server through the application client to determine the switch status corresponding to the vehicle soft switch.

[0063] Optionally, in another optional embodiment of the present invention, before the application client receives and parses the vehicle soft switch status message sent by the vehicle server to determine the switch status corresponding to the vehicle soft switch, the method further includes:

[0064] Each time the vehicle server establishes a service communication connection with the application client, obtaining the switch status corresponding to the vehicle soft switch through the vehicle server;

[0065] Generate a vehicle soft switch status message by the vehicle service end according to the switch status corresponding to the vehicle soft switch;

[0066] The vehicle soft switch status message is sent to the application client through the vehicle service end.

[0067] Among them, the switch status can be the status of the vehicle function corresponding to the vehicle soft switch; it should be noted that the vehicle service end can detect the hardware sensor corresponding to the vehicle function, and then obtain the status of the vehicle function and obtain the switch status of the vehicle soft switch.

[0068] Optionally, after the vehicle server obtains the switch status of the vehicle soft switch, it generates a vehicle soft switch status message corresponding to the vehicle soft switch, and the vehicle server sends the vehicle soft switch status message to the application client.

[0069] Optionally, the vehicle server is configured to trigger acquisition of the switch status corresponding to the vehicle soft switch each time a service communication connection is established. Since the vehicle server and the application client renew the service communication connection after establishing the service communication connection, the service communication connection between the vehicle server and the application client remains connected, and the application client sends a status subscription request to the vehicle server at preset time intervals. In order to ensure that the vehicle soft switch status message of the vehicle soft switch is received after the application client is initialized, after each disconnection of the communication service connection between the vehicle server and the application client, when the vehicle server receives the status subscription request sent by the application client again, the status subscription request sent by the application client this time is regarded as a new service communication connection, thereby realizing that each time the vehicle server establishes a service communication connection with the application client, the vehicle server triggers the action of acquiring the switch status corresponding to the vehicle soft switch.

[0070] Optionally, when the vehicle server and the application client renew their subscription and the service communication connection between the vehicle server and the application client remains connected, the switch state corresponding to the vehicle soft switch can be changed by operating the vehicle soft switch. The application client then generates an operation request message and sends the operation request message to the vehicle server. After the vehicle server receives and successfully executes the operation request message, it returns a vehicle soft switch status message to the application client. After receiving the vehicle soft switch message, the application client modifies the switch state corresponding to the vehicle soft switch. For example, the vehicle soft switch can be an air conditioning interactive application. The air conditioning interactive application is displayed as a fan image with temperature in the vehicle's in-vehicle infotainment system. By clicking the vehicle soft switch corresponding to the air conditioning interactive application to operate the air conditioning and select to turn on the air conditioning, the infotainment controller generates an air conditioning on request message to turn on the air conditioning. The air conditioning on request message is sent to the intelligent vehicle control domain controller. After the intelligent vehicle control domain controller receives and successfully executes the air conditioning on request message, it returns a vehicle soft switch status message corresponding to the air conditioning on state to the infotainment controller. The infotainment controller then sets the display style of the air conditioning interactive application in the vehicle's in-vehicle infotainment system to the air conditioning on state.

[0071] The technical solution of the embodiment of the present invention terminates the communication service process corresponding to the preset communication service protocol stack when the application client detects that the vehicle application has completed application initialization. This can terminate the communication service process after the vehicle application completes initialization, effectively preventing the inability to receive the status of the vehicle application; the application client starts the communication service process according to a preset time interval, and establishes a communication service connection with the vehicle server according to the preset communication service protocol stack in the communication service process, which can ensure that after the vehicle application completes initialization, a communication connection is established with the vehicle server for the first time, ensuring that the vehicle application client can effectively obtain the status of the vehicle soft switch; the application client receives and parses the vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server, and determines the switch status corresponding to the vehicle soft switch according to the vehicle soft switch status message, so as to obtain the accurate switch status of the vehicle soft switch, thereby solving the technical problem in the prior art that the switch status of each vehicle soft switch in the vehicle entertainment display system cannot be accurately displayed, and achieving the technical effect of accurately displaying the switch status of the vehicle soft switch.

[0072] Figure 3 This is a schematic diagram of a device for obtaining a vehicle soft switch state according to an embodiment of the present invention. Figure 3 As shown, the device includes: a vehicle application initialization module 310, a message subscription module 320 and a switch status acquisition module 330; wherein,

[0073] The vehicle application initialization module 310 is configured to terminate the communication service process corresponding to the preset communication service protocol stack when the application client detects that the vehicle application has completed application initialization;

[0074] A message subscription module 320 is configured to start the communication service process through the application client according to a preset time interval, and establish a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process;

[0075] The switch status acquisition module 330 is used to receive and parse the vehicle soft switch status message sent by the vehicle server through the application client to determine the switch status corresponding to the vehicle soft switch.

[0076] The technical solution of the embodiment of the present invention terminates the communication service process corresponding to the preset communication service protocol stack when the application client detects that the vehicle application has completed application initialization. This can terminate the communication service process after the vehicle application completes initialization, effectively preventing the inability to receive the status of the vehicle application; the application client starts the communication service process according to a preset time interval, and establishes a communication service connection with the vehicle server according to the preset communication service protocol stack in the communication service process, which can ensure that after the vehicle application completes initialization, a communication connection is established with the vehicle server for the first time, ensuring that the vehicle application client can effectively obtain the status of the vehicle soft switch; the application client receives and parses the vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server, and determines the switch status corresponding to the vehicle soft switch according to the vehicle soft switch status message, so as to obtain the accurate switch status of the vehicle soft switch, thereby solving the technical problem in the prior art that the switch status of each vehicle soft switch in the vehicle entertainment display system cannot be accurately displayed, and achieving the technical effect of accurately displaying the switch status of the vehicle soft switch.

[0077] Optionally, the message subscription module is specifically used to:

[0078] Acquiring vehicle service information broadcast by the vehicle service end through the preset communication service protocol stack in the communication service process;

[0079] A communication service connection is established with the vehicle service end according to the vehicle service information through the preset communication service protocol stack.

[0080] Optionally, the message subscription module is further configured to:

[0081] Sending a status subscription request corresponding to the vehicle soft switch to the vehicle service end according to the vehicle service information through the preset communication service protocol stack;

[0082] When the vehicle service end receives the status subscription request, it sends a subscription success message to the application client;

[0083] The subscription success message is received through the preset communication service protocol stack, and a communication service connection is established with the vehicle service end.

[0084] Optionally, the message subscription module is further configured to:

[0085] Return to executing the operation of establishing a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process.

[0086] Optionally, the message subscription module is further configured to:

[0087] If the vehicle service end does not detect the status subscription request within the preset time interval, the communication service connection is terminated.

[0088] Optionally, the message subscription module is further configured to:

[0089] If the vehicle service end detects the status subscription request at the preset time interval, the communication service connection is maintained.

[0090] Optionally, the switch status acquisition module is specifically used to:

[0091] Each time the vehicle server establishes a communication service connection with the application client, obtaining the switch status corresponding to the vehicle soft switch through the vehicle server;

[0092] Generate a vehicle soft switch status message by the vehicle service end according to the switch status corresponding to the vehicle soft switch;

[0093] The vehicle soft switch status message is sent to the application client through the vehicle service end.

[0094] The device for acquiring the vehicle soft switch status provided in the embodiment of the present invention can execute the method for acquiring the vehicle soft switch status provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0095] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their modes are only examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0096] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0097] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0098] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any other suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the method for obtaining the vehicle soft switch status.

[0099] In some embodiments, the method for obtaining the vehicle soft switch status can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for obtaining the vehicle soft switch status described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the method for obtaining the vehicle soft switch status by any other appropriate means (e.g., by means of firmware).

[0100] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0101] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the modes / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0102] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0103] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0104] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or grid browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by digital data communication (e.g., a communication grid) in any form or medium. Examples of communication grids include: a local area network (LAN), a wide area network (WAN), a blockchain grid, and the Internet.

[0105] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication grid. This client-server relationship arises through computer programs running on the respective computers, establishing a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0106] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0107] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method steps for obtaining the vehicle soft switch state provided in any embodiment of the present invention are implemented. The method includes:

[0108] When the application client detects that the vehicle application has completed application initialization, the communication service process corresponding to the preset communication service protocol stack is terminated;

[0109] Starting the communication service process by the application client according to a preset time interval, and establishing a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process;

[0110] The application client receives and parses the vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server, and determines the switch status corresponding to the vehicle soft switch according to the vehicle soft switch status message.

[0111] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0112] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0113] Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0114] The computer program code for performing the operations of the present invention can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of grid, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0115] Those skilled in the art will appreciate that the modules or steps of the present invention described above can be implemented using a general-purpose computing device. They can be centralized on a single computing device or distributed across a grid of multiple computing devices. Alternatively, they can be implemented using program code executable by a computer device, which can then be stored in a storage device and executed by the computing device. Alternatively, they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0116] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0117] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for obtaining a vehicle soft switch state, characterized in that: include: When the application client detects that the vehicle application has completed application initialization, the communication service process corresponding to the preset communication service protocol stack is terminated; Starting the communication service process according to a preset time interval by the application client, and establishing a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process; The vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server is received and parsed by the application client, and the switch status corresponding to the vehicle soft switch is determined according to the vehicle soft switch status message.

2. The method according to claim 1, characterized in that: The establishing a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process includes: Acquiring vehicle service information broadcast by the vehicle service end through the preset communication service protocol stack in the communication service process; A communication service connection is established with the vehicle service end according to the vehicle service information through the preset communication service protocol stack.

3. The method according to claim 2, characterized in that The establishing a communication service connection with the vehicle service end according to the vehicle service information through the preset communication service protocol stack includes: Sending a status subscription request corresponding to the vehicle soft switch to the vehicle service end according to the vehicle service information through the preset communication service protocol stack; When the vehicle service end receives the status subscription request, sending a subscription success message to the application client; The subscription success message is received through the preset communication service protocol stack, and a communication service connection is established with the vehicle service end.

4. The method according to claim 3, characterized in that After receiving the subscription success message through the preset communication service protocol stack and establishing a communication service connection with the vehicle service end, the method further includes: Return to execute the operation of establishing a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process.

5. The method according to claim 4, characterized in that After returning to execute the operation of establishing a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process, it also includes: If the vehicle service end fails to detect the status subscription request within the preset time interval, the communication service connection is terminated.

6. The method according to claim 4, characterized in that After returning to execute the operation of establishing a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process, it also includes: If the vehicle service end detects the status subscription request at the preset time interval, the communication service connection is maintained.

7. The method according to claim 3, characterized in that Before receiving and parsing the vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server through the application client, and determining the switch status corresponding to the vehicle soft switch according to the vehicle soft switch status message, the method further includes: Each time the vehicle server establishes a communication service connection with the application client, obtaining the switch state corresponding to the vehicle soft switch through the vehicle server; Generate a vehicle soft switch status message by the vehicle service end according to the switch status corresponding to the vehicle soft switch; The vehicle soft switch status message is sent to the application client through the vehicle service end.

8. A device for acquiring a vehicle soft switch state, characterized in that: include: The vehicle application initialization module is used to terminate the communication service process corresponding to the preset communication service protocol stack when the application client detects that the vehicle application has completed application initialization; A message subscription module, used to start the communication service process according to a preset time interval through the application client, and establish a communication service connection with the vehicle service end according to the preset communication service protocol stack in the communication service process; The switch status acquisition module is used to receive and parse the vehicle soft switch status message corresponding to the vehicle application sent by the vehicle server through the application client, and determine the switch status corresponding to the vehicle soft switch according to the vehicle soft switch status message.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for acquiring the vehicle soft switch state according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for obtaining the vehicle soft switch state according to any one of claims 1 to 7 when executed.

Citation Information

Cited By

  • Method and device for calibrating initial state of functional soft switch, controller and vehicle

    CN119718406A