CN117640148A - Vehicle-mounted function connection optimization method, device, equipment and storage medium - Google Patents
Vehicle-mounted function connection optimization method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN117640148A CN117640148A CN202311436529.3A CN202311436529A CN117640148A CN 117640148 A CN117640148 A CN 117640148A CN 202311436529 A CN202311436529 A CN 202311436529A CN 117640148 A CN117640148 A CN 117640148A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- mobile terminal
- authentication
- authentication data
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 75
- 238000005457 optimization Methods 0.000 title claims abstract description 41
- 238000004891 communication Methods 0.000 claims abstract description 129
- 230000006870 function Effects 0.000 claims description 118
- 230000003993 interaction Effects 0.000 claims description 25
- 230000004044 response Effects 0.000 claims description 21
- 230000002452 interceptive effect Effects 0.000 claims description 19
- 238000012545 processing Methods 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 238000013475 authorization Methods 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000012795 verification Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000003745 diagnosis Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9063—Intermediate storage in different physical parts of a node or terminal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40267—Bus for use in transportation systems
- H04L2012/40273—Bus for use in transportation systems the transportation system being a vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a vehicle-mounted function connection optimization method, device, equipment and storage medium, wherein the method comprises the following steps: responding to the wired communication session established by the vehicle-mounted system and the mobile terminal based on the IAP communication protocol, and receiving an authentication data request sent by the mobile terminal; according to the authentication data request, target authentication data is called from the cache database, and the target authentication data is sent to the mobile terminal; responding to the establishment of communication connection between the vehicle-mounted system and the mobile terminal, and sending an authentication request to the mobile terminal; and responding to the authentication result fed back by the mobile terminal to represent that the authentication passes, and establishing vehicle-mounted functional connection with the mobile terminal. By means of the scheme, the connection rate of the vehicle-mounted function can be improved.
Description
Technical Field
The application relates to the field of vehicle-mounted systems of automobiles, in particular to a vehicle-mounted function connection optimization method, device and equipment and a storage medium.
Background
In-vehicle function connection authentication makes clear demands on the connection speed between the mobile terminal and the in-vehicle system, and the time to establish the in-vehicle function connection through a wire such as a universal serial bus should be within three seconds.
Currently, workers typically increase the connection speed of on-board functions by optimizing the performance of the universal serial bus. However, the improvement of the connection speed of the on-vehicle function by optimizing the performance of the universal serial bus is not only limited to hardware, but also can be achieved only in a limited range, and the compatibility of the terminal equipment needs to be considered, and the improvement of the connection speed of the on-vehicle function by optimizing the performance of the universal serial bus is costly and complex in design.
Disclosure of Invention
In order to solve the above problems, the application provides a vehicle-mounted function connection optimization method, a device, equipment and a storage medium.
The first aspect of the application provides a vehicle-mounted function connection optimization method, which is applied to a vehicle-mounted system and comprises the following steps: responding to the wired communication session established by the vehicle-mounted system and the mobile terminal based on an IAP communication protocol, and receiving an authentication data request sent by the mobile terminal; according to the authentication data request, target authentication data is called from a cache database, and the target authentication data is sent to the mobile terminal, wherein the cache database comprises a plurality of authentication data cached in advance; responding to the communication connection between the vehicle-mounted system and the mobile terminal, and sending an authentication request to the mobile terminal, wherein the authentication request is used for authenticating whether a universal serial bus network adapter of the mobile terminal is ready; and responding to the authentication result fed back by the mobile terminal to represent that the authentication passes, and establishing vehicle-mounted functional connection with the mobile terminal.
In some embodiments, before the step of receiving an authentication data request sent by the mobile terminal, the method comprises: responding to the wired connection between the vehicle-mounted system and the mobile terminal, and sending a request for determining to support the vehicle-mounted function, wherein the request for determining to support the vehicle-mounted function is used for determining whether the mobile terminal supports the vehicle-mounted function; and switching a control mode of the vehicle-mounted system from a master mode to a slave mode in response to the mobile terminal supporting a vehicle-mounted function.
In some embodiments, the in-vehicle system includes an authentication chip, and before the step of receiving an authentication data request sent by the mobile terminal in response to the in-vehicle system and the mobile terminal establishing a wired communication session based on an IAP communication protocol, the method includes: sending a data caching request to the authentication chip; and responding to the authentication chip, sending authentication data corresponding to the data caching request to the vehicle-mounted system based on the data caching request, and storing the authentication data into the caching database.
In some embodiments, the vehicle-mounted function connection optimization method includes: transmitting an interactive data request to the mobile terminal, so that the mobile terminal determines target interactive data corresponding to the interactive data request based on zero synchronization attribute in the IAP communication protocol, and transmits the target interactive data to the vehicle-mounted system; and receiving target interaction data sent by the mobile terminal.
In some embodiments, before the step of receiving the authentication data request sent by the mobile terminal, the method further includes: responding to the vehicle-mounted system and the mobile terminal to establish universal serial bus physical connection, and sending a universal serial bus enumeration request to the mobile terminal; receiving device descriptor information sent to the vehicle-mounted system by the mobile terminal based on the universal serial bus enumeration request; and carrying out universal serial bus connection with the mobile terminal based on the equipment descriptor information.
In some embodiments, after the step of establishing the vehicle-mounted function connection with the mobile terminal, the method further includes: selecting other attributes from the IAP communication protocol, wherein the other attributes refer to other attributes except the zero synchronization attribute in the IAP communication protocol; and executing protocol tasks corresponding to other attributes in the IAP communication protocol.
A second aspect of the present application provides a vehicle-mounted function connection optimization method, where the method is applied to a mobile terminal, and the method includes: responding to the mobile terminal and the vehicle-mounted system to establish a wired communication session based on an IAP communication protocol, and sending an authentication data request to the vehicle-mounted system, so that the vehicle-mounted system can call target authentication data from a cache database according to the received authentication data request and send the target authentication data to the mobile terminal, wherein the cache database comprises a plurality of authentication data cached in advance; receiving target authentication data sent by the vehicle-mounted system, and establishing communication connection with the vehicle-mounted system based on the target authentication data; receiving an authentication request sent by the vehicle-mounted system, and performing authentication analysis on the authentication request to obtain an authentication result; and if the authentication result represents that the authentication passes, establishing vehicle-mounted function connection with the vehicle-mounted system.
A third aspect of the present application provides an in-vehicle function connection optimizing apparatus, the apparatus including: the receiving module is used for responding to the wired communication session established by the vehicle-mounted system and the mobile terminal based on an IAP communication protocol and receiving an authentication data request sent by the mobile terminal; the data processing module is used for calling target authentication data from a cache database according to the authentication data request and sending the target authentication data to the mobile terminal, and the cache database comprises a plurality of authentication data cached in advance; the sending module is used for responding to the communication connection between the vehicle-mounted system and the mobile terminal and sending an authentication request to the mobile terminal, wherein the authentication request is used for authenticating whether a universal serial bus network adapter of the mobile terminal is ready or not; and the connection module is used for responding to the authentication result fed back by the mobile terminal to represent that the authentication passes, and establishing vehicle-mounted functional connection with the mobile terminal.
A fourth aspect of the present application provides an electronic device, including a memory and a processor, where the processor is configured to execute program instructions stored in the memory, so as to implement the method for optimizing vehicle-mounted functional connection according to any one of the foregoing aspects.
A fifth aspect of the present application provides a computer-readable storage medium having stored thereon program instructions that, when executed by a processor, implement the in-vehicle function connection optimization method of any one of the above.
According to the scheme, the vehicle-mounted system and the mobile terminal establish a wired communication session based on an IAP communication protocol, and an authentication data request sent by the mobile terminal is received; according to the authentication data request, target authentication data is called from a cache database, and the target authentication data is sent to the mobile terminal, wherein the cache database comprises a plurality of authentication data cached in advance; responding to the communication connection between the vehicle-mounted system and the mobile terminal, and sending an authentication request to the mobile terminal, wherein the authentication request is used for authenticating whether a universal serial bus network adapter of the mobile terminal is ready; and responding to the authentication result fed back by the mobile terminal to represent that the authentication passes, and establishing vehicle-mounted functional connection with the mobile terminal. The method comprises the steps of caching a plurality of authentication data in the cache database in advance, after receiving an authentication data request sent by the mobile terminal, invoking target authentication data from the cache database, and sending the target authentication data to the mobile terminal for vehicle-mounted function connection, so that the problem of low vehicle-mounted function connection speed caused by communication connection of the authentication data obtained from the authentication chip in real time is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the technical aspects of the application.
FIG. 1 is a flow diagram of an exemplary embodiment of a vehicle-mounted functional connection optimization method shown in the present application;
FIG. 2 is a flow chart of an exemplary embodiment of the vehicle-mounted function connection optimization method shown in FIG. 1, prior to step S110;
FIG. 3 is a flow chart of another exemplary embodiment of the on-board functional connection optimization method shown in FIG. 1, prior to step S110;
fig. 4 is a schematic diagram of an effect of a mobile terminal obtaining target authentication data in a vehicle-mounted system in the vehicle-mounted function connection optimization method shown in the application;
FIG. 5 is a flow chart of another exemplary embodiment of an in-vehicle functional connection optimization method shown in the present application;
fig. 6 is a schematic diagram of an effect of performing data interaction based on a zero synchronization attribute in an IAP communication protocol in the vehicle-mounted function connection optimization method shown in the present application;
FIG. 7 is a flow chart of another exemplary embodiment of the on-board functional connection optimization method shown in FIG. 1, prior to step S110;
FIG. 8 is a flow chart of an exemplary embodiment following step S140 in the on-board functional connection optimization method shown in FIG. 1;
fig. 9 is a schematic flow chart of executing a protocol task corresponding to other attributes in an IAP communication protocol in the vehicle-mounted function connection optimization method shown in the present application;
FIG. 10 is a flow chart of an exemplary embodiment of a vehicle-mounted functional connection optimization method shown in the present application;
FIG. 11 is a schematic view of an embodiment of a vehicle-mounted function connection optimizing apparatus of the present application;
FIG. 12 is a schematic diagram of an embodiment of an electronic device of the present application;
FIG. 13 is a schematic diagram of an embodiment of a computer storage medium of the present application.
Detailed Description
The following describes the embodiments of the present application in detail with reference to the drawings.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. Further, "a plurality" herein means two or more than two. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
It should also be noted that the terms "first" or "second" and the like used in this specification 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.
Referring to fig. 1, fig. 1 is a flowchart illustrating an exemplary embodiment of a vehicle-mounted function connection optimization method according to the present application. Specifically, the method may include the steps of:
step S110: and responding to the wired communication session established by the vehicle-mounted system and the mobile terminal based on the IAP communication protocol, and receiving an authentication data request sent by the mobile terminal.
The vehicle-mounted system can refer to a set of integrated electronic equipment and software system which are arranged in an automobile and are used for providing functions such as information entertainment, navigation, communication, vehicle control or driving assistance and the like, and comprises different modules such as a vehicle-mounted entertainment system, a vehicle-mounted navigation system, a vehicle-mounted communication system or a vehicle control system. By way of example, software systems for in-vehicle systems include, but are not limited to, apple in-vehicle software systems (Apple CarPlay) developed by Apple Inc., which can seamlessly connect the functions and applications of a Apple phone to the in-vehicle display screen of a vehicle, enabling a driver to use applications, navigation services, music services, etc. on the Apple phone on the in-vehicle display screen.
A mobile terminal may refer to a portable device capable of mobile communication and computing, typically having an embedded operating system, that may perform various functions and applications, including telephony, text messaging, internet browsing, social media, entertainment, navigation, or photography, among others. Specifically, the mobile terminal may be a mobile phone, a tablet computer, a portable watch, etc.
The IAP communication protocol (iOS Accessory Protocol, IAP) may be a communication protocol defined by apple corporation for communication between devices containing an apple operating system (iPhone Operating System, iOS) and external accessories (access). The IAP protocol may enable iOS devices (e.g., iPhone, iPad, or iPod touch) to exchange and control data with external accessories via wired or wireless connections.
The authentication data request may be sent to the vehicle-mounted system when the mobile terminal performs identity authentication and authority verification before data transmission or functional operation between the vehicle-mounted system and the mobile terminal, and is used for authorizing the mobile terminal to interact with the vehicle-mounted system and improving the security of the system.
A wired communication session may refer to a communication session over a physical connection (e.g., through USB, ethernet, CAN, etc.). Illustratively, the in-vehicle system may establish a wired communication session with the mobile terminal via a universal serial bus (Universal Serial Bus, USB).
After the vehicle-mounted system and the mobile terminal establish a wired communication session based on the IAP communication protocol, the mobile terminal sends an authentication data request to the vehicle-mounted system. And the vehicle-mounted system receives the authentication data request sent by the mobile terminal. Specifically, the vehicle-mounted system can establish wired communication connection with the mobile terminal through the USB. After the wired communication connection is established, the vehicle-mounted system can carry out protocol handshake with the mobile terminal to determine that the two parties use the same communication protocol, namely the IAP communication protocol, thereby establishing an IAP communication protocol session with the terminal equipment, and receiving an authentication data request sent by the mobile terminal through the IAP communication protocol session.
Step S120: and according to the authentication data request, the target authentication data is called from a cache database, and the target authentication data is sent to the mobile terminal, wherein the cache database comprises a plurality of authentication data cached in advance.
The cache database may be a database for temporary storage and quick retrieval of data, typically located between an application and a base database, which reduces data access and response times by caching common or popular data in memory. The buffer database is used for buffering the authentication data downloaded from the authentication chip, so that the problem of low connection speed of vehicle-mounted functions caused by communication connection of the authentication data obtained from the authentication chip in real time is avoided.
The target authentication data may be data for authenticating the identity of the mobile terminal and authorizing the mobile terminal to access the in-vehicle system after confirming the identity of the mobile terminal.
The vehicle-mounted system, after receiving the authentication data request sent by the mobile terminal, invokes the target authentication data from the cache database according to the authentication data request and sends the target authentication data to the mobile terminal. Specifically, the vehicle-mounted system analyzes the authentication data request to obtain analyzed authentication data, matches the analyzed authentication data with authentication data in the cache database, determines the authentication data matched with the analyzed authentication data in the cache database as target authentication data, and sends the target authentication data to the mobile terminal. It should be noted that the parsed authentication data may be identity information, authority parameters, and request data.
Step S130: and responding to the communication connection between the vehicle-mounted system and the mobile terminal, and sending an authentication request to the mobile terminal, wherein the authentication request is used for authenticating whether the universal serial bus network adapter of the mobile terminal is ready.
The universal serial bus network adapter may be a USB interface for connecting a mobile terminal device (e.g., a smart phone, a tablet computer, etc.) to a computer or other external device, which allows the mobile terminal to communicate data with the computer or other device, e.g., authentication request transmissions, via the USB interface.
Exemplary in some application scenarios, after an IAP communication connection is established between the vehicle-mounted system and the mobile terminal, the vehicle-mounted system sends an authentication request to the mobile terminal. And the mobile terminal receives the authentication request, judges whether the universal serial bus network adapter of the mobile terminal is ready or not based on the authentication request, and if yes, sends an authentication result passing authentication to the vehicle-mounted system. The in-vehicle system further performs step S140. In other application scenarios, the vehicle-mounted system sends an authentication request to the mobile terminal before an IAP communication connection is established between the vehicle-mounted system and the mobile terminal. And the mobile terminal receives the authentication request, judges whether the universal serial bus network adapter of the mobile terminal is ready or not based on the authentication request, and if yes, sends an authentication result passing authentication to the vehicle-mounted system. And, in response to establishing an IAP communication connection between the vehicle-mounted system and the mobile terminal. The in-vehicle system further performs step S140.
Specifically, the in-vehicle system may send an authentication request to the mobile terminal for checking whether the NCM (Network Control Model) network card of the mobile terminal is ready to communicate with the in-vehicle system. After receiving the authentication request, the mobile terminal checks the NCM network card, and if the mobile terminal detects that the NCM network card is ready and meets the requirement of the vehicle-mounted system, sends a message of successful authentication to the vehicle-mounted system; if the mobile terminal detects that the NCM network card is not ready, sending a message of authentication failure to the vehicle-mounted system, wherein the NCM network card can be a network adapter based on a USB NCM protocol and used for establishing network connection between the mobile terminal and USB equipment (such as the vehicle-mounted system), and the mobile terminal can provide a network interface through the NCM network card so as to realize the functions of data transmission and network communication with the vehicle-mounted system.
It will be appreciated that whether the communication connection between the vehicle system and the mobile terminal is established is not directly connected to the NCM function. That is, the communication connection established between the in-vehicle system and the mobile terminal is not directly associated with the NCM function.
Step S140: and responding to the authentication result fed back by the mobile terminal to represent that the authentication passes, and establishing vehicle-mounted functional connection with the mobile terminal.
The vehicle-mounted function connection can be used for connecting a mobile phone, a tablet computer or other mobile equipment to a vehicle-mounted system in an automobile or a vehicle in a Bluetooth, USB, wi-Fi or other mode, and various vehicle-related functions, services, interaction and control with the vehicle can be realized through the vehicle-mounted function connection.
The vehicle-mounted system analyzes the authentication request feedback of the mobile terminal, and establishes vehicle-mounted functional connection with the mobile terminal after the authentication result represents that the authentication is passed. Specifically, after the vehicle-mounted system detects that the NCM network card of the mobile terminal is successfully prepared, an Apple carpplay connection with the mobile terminal can be established, through the Apple carpplay connection, the screen content of the mobile terminal can be displayed on the touch screen of the vehicle in a mirror image mode, a user can control the mobile terminal by using a control button on the vehicle, voice control or the touch screen of the vehicle-mounted system, a plurality of application programs and functions on the mobile terminal such as navigation, communication, music, short messages and the like can be conveniently used, and the mobile device does not need to be directly operated. Apple CarPlay, among other things, may be an on-board function connection technology developed by Apple Inc., that allows the entertainment system of the vehicle to connect and interact with the mobile device (e.g., iPhone) of the running Apple operating system (iPhone Operating System, iOS).
According to the scheme, the vehicle-mounted system and the mobile terminal establish a wired communication session based on an IAP communication protocol, and receive an authentication data request sent by the mobile terminal; according to the authentication data request, target authentication data is called from a cache database, and the target authentication data is sent to the mobile terminal, wherein the cache database comprises a plurality of authentication data cached in advance; responding to the communication connection between the vehicle-mounted system and the mobile terminal, and sending an authentication request to the mobile terminal, wherein the authentication request is used for authenticating whether a universal serial bus network adapter of the mobile terminal is ready; and responding to the authentication result fed back by the mobile terminal to represent that the authentication passes, and establishing vehicle-mounted functional connection with the mobile terminal. The method comprises the steps of caching a plurality of authentication data in the cache database in advance, after receiving an authentication data request sent by the mobile terminal, invoking target authentication data from the cache database, and sending the target authentication data to the mobile terminal for vehicle-mounted function connection, so that the problem of low vehicle-mounted function connection speed caused by communication connection of the authentication data obtained from the authentication chip in real time is avoided.
Referring to fig. 2, fig. 2 is a flowchart illustrating an exemplary embodiment of the vehicle-mounted function connection optimization method shown in fig. 1 before step S110. Based on the above embodiment, step S110 further includes, before receiving the authentication data request sent by the mobile terminal, in response to the vehicle-mounted system and the mobile terminal establishing the wired communication session based on the IAP communication protocol:
Step S210: and responding to the wired connection between the vehicle-mounted system and the mobile terminal, sending a request for determining to support the vehicle-mounted function, and determining whether the mobile terminal supports the vehicle-mounted function or not by using the request for determining to support the vehicle-mounted function.
After the wired connection is established between the vehicle-mounted system and the mobile terminal, the vehicle-mounted system can send a request for determining whether the vehicle-mounted function is supported to the mobile terminal, and concretely, after the wired connection is established between the vehicle-mounted system and the mobile terminal through the USB, the vehicle-mounted system can send the request for determining whether the vehicle-mounted function is supported to the mobile terminal, and whether the mobile terminal supports the Apple CarPlay function is determined. After receiving a request for determining to support the vehicle-mounted function sent by the vehicle-mounted system, the mobile terminal analyzes and processes a data packet or a command in the request for determining to support the vehicle-mounted function and feeds back the data packet or the command to the vehicle-mounted system. If the mobile terminal supports the vehicle-mounted function, sending a positive message to the vehicle-mounted system to indicate that the mobile terminal can establish Apple CarPlay connection with the vehicle-mounted system and provide the Apple CarPlay function; if the mobile terminal does not support the vehicle-mounted function, a negative message is sent to the vehicle-mounted system to indicate that the mobile terminal cannot establish Apple CarPlay connection with the vehicle-mounted system. The vehicle-mounted system can identify whether Apple CarPlay connection can be established with the mobile terminal by sending a request for determining supporting the vehicle-mounted function to the mobile terminal and receiving a corresponding response of the mobile terminal, and accordingly adjust the functions and interfaces of the vehicle-mounted system.
Step S220: and switching a control mode of the vehicle-mounted system from a master mode to a slave mode in response to the mobile terminal supporting the vehicle-mounted function.
A master Mode (Host Mode) may refer to a device (referred to as a master) having the ability to control and manage other devices (referred to as slaves) that are responsible for coordinating and controlling the functions and operations of the slaves.
Slave Mode may refer to a device accepting and executing instructions from a host device and providing desired functionality without autonomous execution, the Slave device relying on the host device to provide control and management and to respond to instructions from the host device to perform corresponding operations.
For example, if the mobile terminal supports the in-vehicle function, the in-vehicle system may switch its control mode from the master mode to the slave mode, in which the in-vehicle system will control and operate the corresponding function through the mobile terminal. When the vehicle-mounted system is in the host mode, the vehicle-mounted system is a master and is responsible for controlling and managing functions and interactions of external equipment, has a user interface, provides various functions (such as an entertainment system, navigation, communication and the like) for directly controlling the vehicle, and can interact with a user through keys, buttons, a touch screen and the like of the vehicle-mounted system; when the vehicle-mounted system is in the slave mode, the control right is transferred to external equipment (such as a mobile terminal), and the external equipment is allowed to control the functions of the vehicle-mounted system through a specific protocol and interface.
According to the scheme, after the wired connection is established between the vehicle-mounted system and the mobile terminal, the request for determining whether the vehicle-mounted function is supported or not can be sent to the mobile terminal to confirm whether the mobile terminal supports the vehicle-mounted function, and the control mode of the vehicle-mounted system is switched from the host mode to the slave mode under the condition that the mobile terminal supports the vehicle-mounted function, so that the application ecological system and cloud service on the mobile terminal can be utilized to provide additional functions for the vehicle-mounted system, and the entertainment and informatization level of the vehicle-mounted system is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating another exemplary embodiment of the vehicle-mounted function connection optimization method shown in fig. 1 before step S110. Step S110, in response to the vehicle-mounted system and the mobile terminal establishing a wired communication session based on the IAP communication protocol, further includes, before receiving the authentication data request sent by the mobile terminal:
step S310: and sending a data caching request to the authentication chip.
The authentication chip (Authentication Chip) can be an integrated circuit chip specially used for verification and authorization, has the characteristics of strong security and specialization, and is used for improving the credibility of data, equipment and systems. The working principle of the authentication chip is generally based on key management and encryption algorithm, and the data is encrypted, decrypted and verified through a preset key and a preset security protocol, so that confidentiality, integrity and authenticity of the data are improved.
The vehicle-mounted system can detect the authentication chip through a self-checking program or corresponding detection software, and establish communication connection with the authentication chip under the condition that the authentication chip is determined to normally operate, and transmit a data cache request to the authentication chip. After receiving the data caching request, the authentication chip verifies the legitimacy of the data according to the protocol and algorithm defined in the data caching request, checks the caching capacity or execution security, authorizes related operations and the like, generates feedback data and returns the feedback data to the vehicle-mounted system.
Step S320: and responding to the authentication chip to send authentication data corresponding to the data caching request to the vehicle-mounted system based on the data caching request, and storing the authentication data into a caching database.
After receiving the data caching request sent by the vehicle-mounted system, the authentication chip sends authentication data corresponding to the data caching request to the vehicle-mounted system according to the data caching request, and the vehicle-mounted system stores the authentication data in a caching database. Specifically, as shown in fig. 4, fig. 4 is a schematic diagram of an effect of a mobile terminal obtaining target authentication data in a vehicle-mounted system in the vehicle-mounted function connection optimization method shown in the present application. After receiving the data caching request of the vehicle-mounted system, the authentication chip extracts authentication data such as a secret key, a digital certificate or license information and the like for verification and authorization from the storage of the authentication chip, and sends the extracted authentication data to the vehicle-mounted system through connection with the vehicle-mounted system. After receiving the authentication data, the vehicle-mounted system stores the authentication data in a cache database for subsequent verification and authorization operations.
According to the scheme, the vehicle-mounted system can quickly respond when receiving the authentication data request of the mobile terminal by storing the authentication data in the cache database in advance, and does not need to communicate with the authentication chip every time, so that the authentication efficiency is improved, and the connection time of the IAP communication protocol is reduced.
Referring to fig. 5, fig. 5 is a flowchart illustrating another exemplary embodiment of the vehicle-mounted function connection optimization method shown in the present application. On the basis of the embodiment, the method further comprises the following steps:
step S410: and sending the interactive data request to the mobile terminal so that the mobile terminal determines target interactive data corresponding to the interactive data request based on the zero synchronization attribute in the IAP communication protocol, and sending the target interactive data to the vehicle-mounted system.
The zero-synchronization attribute (zero-sync property) may mean that two entities communicating communicate without performing a complicated synchronization process when establishing a connection. In conventional communication protocols, a series of handshaking and synchronization steps are required to determine that the state and parameters of both parties are consistent and thus that efficient transmission of data is determined, however, the zero synchronization nature of the IAP communication protocol allows the communicating entities to directly begin communication without explicit synchronization.
Fig. 6 is a schematic diagram illustrating an effect of data interaction based on a zero synchronization attribute in an IAP communication protocol in the vehicle-mounted function connection optimization method shown in the present application. Before the vehicle-mounted system performs data interaction with the mobile terminal, the vehicle-mounted system can send an interaction data request to the mobile terminal, after the mobile terminal receives the interaction data request sent by the vehicle-mounted system, the interaction data request sent by the vehicle-mounted system can be analyzed according to the zero synchronization attribute of the IAP communication protocol, target interaction data corresponding to the interaction data request is determined, and the determined target interaction data is sent to the vehicle-mounted system.
Step S420: and receiving target interaction data sent by the mobile terminal.
For example, as shown in fig. 6, the vehicle-mounted system may receive the target interaction data sent by the mobile terminal through the IAP communication protocol connection established with the mobile terminal, and decrypt, decompress or convert the received target interaction data into an appropriate data structure, so as to convert the format and content of the target interaction data into a usable form. According to the analysis result, the vehicle-mounted system can generate corresponding feedback information and send the feedback information to the mobile terminal, for example, send state information confirming successful data reception or operation result execution to the mobile terminal.
According to the scheme, the vehicle-mounted system can send the interactive data request to the mobile terminal, and the target interactive data corresponding to the interactive data request and sent by the mobile terminal is received by utilizing the zero synchronization attribute based on the IAP communication protocol, so that rapid data interaction can be realized, and the instantaneity and the data interaction speed between the vehicle-mounted system and the mobile terminal are improved.
Referring to fig. 7, fig. 7 is a flowchart illustrating a further exemplary embodiment of the vehicle-mounted function connection optimization method shown in fig. 1 before step S110. Step S110, in response to the vehicle-mounted system and the mobile terminal establishing a wired communication session based on the IAP communication protocol, further includes, before receiving the authentication data request sent by the mobile terminal:
step S510: and responding to the vehicle-mounted system and the mobile terminal to establish the universal serial bus physical connection, and sending a universal serial bus enumeration request to the mobile terminal.
Universal serial bus enumeration may refer to a process when establishing a communication connection between a USB device and a host for identifying and configuring the connected USB device.
For example, after the USB physical connection is established between the vehicle-mounted system and the mobile terminal, the vehicle-mounted system may send a universal serial bus enumeration request to the mobile terminal through the USB interface to identify and configure the connected terminal device.
Step S520: and receiving device descriptor information sent to the vehicle-mounted system by the mobile terminal based on the universal serial bus enumeration request.
The device descriptor (Device Descriptor) may refer to a data structure in a USB device that contains basic information about the device, providing information about the device vendor, product, device protocol, device specification, and other important attributes related to the device. The device descriptor may refer to an important part of the USB enumeration process that is used to aid a host (e.g., an in-vehicle system) in identifying and communicating with USB devices.
The mobile terminal may perform processes such as address allocation, reading of a device descriptor, speed negotiation, and configuration of a device of the mobile terminal based on a USB protocol after receiving an enumeration request sent by the vehicle-mounted system, and send the device descriptor of the mobile terminal to the vehicle-mounted system. And after receiving the device descriptor sent by the mobile terminal, the vehicle-mounted system performs operations such as reading the device descriptor, configuring the device or loading a driver.
Step S530: and performing universal serial bus connection with the mobile terminal based on the device descriptor information.
The in-vehicle system may make a universal serial bus connection with the mobile terminal based on the device descriptor information sent by the mobile terminal. Specifically, the vehicle-mounted system may analyze the device descriptor information of the mobile terminal, determine a device type and a driver corresponding to the device descriptor information of the mobile terminal, and load the corresponding driver according to a matching result of the device descriptor of the mobile terminal, so as to support communication with the mobile terminal. The vehicle-mounted system can be configured according to configuration information in the device descriptor of the mobile terminal, and selects working modes of the two parties, sets data transmission rate and the like. After the driver and configuration are ready, the in-vehicle system may establish communication with the mobile terminal.
According to the scheme, the vehicle-mounted system can establish USB communication with the mobile terminal and send an enumeration request to realize enumeration and configuration of the mobile terminal, can identify the connected mobile terminal, and can communicate by using a corresponding driver and a protocol to support the functions of the mobile terminal.
Referring to fig. 8, fig. 8 is a flowchart illustrating an exemplary embodiment of the vehicle-mounted function connection optimization method shown in fig. 1 after step S140. On the basis of the above embodiment, step S140, in response to the authentication result fed back by the mobile terminal, characterizes that the authentication is passed, and after establishing the vehicle-mounted function connection with the mobile terminal, further includes:
step S610: and selecting other attributes from the IAP communication protocol, wherein the other attributes refer to other attributes except the zero synchronization attribute in the IAP communication protocol.
For example, in addition to the zero synchronization attribute, some common attributes in the IAP communication protocol, such as device status query, callback mechanism or fault diagnosis and debugging, where the IAP protocol allows the host to query the status information of the device by sending a query command when performing the device status query, and obtain the status of the device, the functional characteristics supported by the device, and various parameters of the device; when executing the callback mechanism, the device can send event notification to the host, and the vehicle-mounted system can acquire the state change of the device, alarm information or notification of other important events in real time so as to perform corresponding processing and response; when fault diagnosis and debugging are carried out, the IAP protocol can assist in fault diagnosis and equipment debugging, including definition of error codes, output of debugging information and the like.
Step S620: and executing protocol tasks corresponding to other attributes in the IAP communication protocol.
As shown in fig. 9, fig. 9 is a schematic flow chart of executing a protocol task corresponding to other attributes in an IAP communication protocol in the method for optimizing a vehicle-mounted function connection, where the vehicle-mounted system may focus on a process of establishing and initializing a CarPlay session by delaying the enabling of other attributes in the IAP protocol except for the zero synchronization attribute until the enabling of other attributes in the car play session except for the zero synchronization attribute is performed after the establishment of the car play session.
According to the scheme, the vehicle-mounted system delays starting other attributes except the zero synchronization attribute in the IAP protocol until the other attributes except the zero synchronization attribute are started after the CarPlay session is established, so that the efficiency and the response speed of the whole CarPlay connection process can be improved, unnecessary expenditure and resource consumption in the CarPlay connection process are avoided, the CarPlay connection process can be optimized, and the performance and the response speed of the whole system are improved.
Referring to fig. 10, fig. 10 is a flowchart illustrating an exemplary embodiment of a vehicle-mounted function connection optimization method according to the present application. Specifically, the method may include the steps of:
Step S710: and responding to the wired communication session established by the mobile terminal and the vehicle-mounted system based on the IAP communication protocol, and sending an authentication data request to the vehicle-mounted system, so that the vehicle-mounted system can call target authentication data from a cache database according to the received authentication data request, and send the target authentication data to the mobile terminal, wherein the cache database comprises a plurality of authentication data cached in advance.
For example, after the mobile terminal and the in-vehicle system establish a wired communication session based on the IAP communication protocol, the mobile terminal may send an authentication data request to the in-vehicle system, where some information such as identification or authorization credentials may be included to request the in-vehicle system to perform an authentication operation according to the information. After receiving the authentication data request sent by the mobile terminal, the vehicle-mounted system analyzes the authentication data request to obtain analyzed authentication data, matches the analyzed authentication data with authentication data in a cache database, determines the authentication data matched with the analyzed authentication data in the cache database as target authentication data, and sends the target authentication data to the mobile terminal, wherein the target authentication data can be some authorization information which is cached in the vehicle-mounted system in advance, such as user login credentials or authority information of a specific function.
Step S720: and receiving target authentication data sent by the vehicle-mounted system, and establishing communication connection with the vehicle-mounted system based on the target authentication data.
The mobile terminal receives the target authentication data sent by the vehicle-mounted system, decodes and verifies the target authentication data according to the protocol and the data format used by the target authentication data, and determines the integrity and the validity of the data. According to the content of the target authentication data, the mobile terminal can establish communication connection based on the IAP communication protocol with the vehicle-mounted system by using a corresponding protocol and mechanism. After the communication connection is established successfully, the mobile terminal and the vehicle-mounted system can start data exchange and interaction, and operations such as command transmission, data transmission or state inquiry can be performed between the mobile terminal and the vehicle-mounted system.
Step S730: and receiving an authentication request sent by the vehicle-mounted system, and performing authentication analysis on the authentication request to obtain an authentication result.
The authentication request is used to authenticate whether the universal serial bus network adapter of the mobile terminal is ready.
The mobile terminal may receive, through the USB interface, an authentication request sent by the vehicle-mounted system, analyze the received authentication request, check a format and data content of the authentication request, and verify validity of the authentication request, and check the NCM network card, if the mobile terminal detects that the NCM network card is ready and meets a requirement of the vehicle-mounted system, may send, through the USB interface or other communication mechanisms, information that authentication is successful to the vehicle-mounted system; if the mobile terminal detects that the NCM network card is not ready or cannot meet the requirements, the mobile terminal can send authentication failure information to the vehicle-mounted system through a USB interface or other communication mechanisms.
Step S740: and if the authentication result indicates that the authentication is passed, establishing vehicle-mounted functional connection with the vehicle-mounted system.
The mobile terminal and the vehicle-mounted system can successfully establish the vehicle-mounted function connection based on the authentication passing result, wherein the steps of establishing a proper communication channel, negotiating communication parameters, configuring and the like are involved, so that the mobile terminal and the vehicle-mounted system can perform effective data exchange and function interaction. In the case that the NCM network card of the mobile terminal is ready, the mobile terminal may establish a CarPlay connection with the in-vehicle system so that the user can use the functions of the mobile terminal, such as navigation, telephone or music, etc., on the in-vehicle system through the Apple CarPlay application. After the mobile terminal establishes CarPlay connection with the vehicle-mounted system, the mobile terminal and the vehicle-mounted system can perform data exchange and function interaction, for example, the mobile terminal can send a control instruction to the vehicle-mounted system so as to operate the functions of the vehicle-mounted system, and the vehicle-mounted system can send vehicle state information to the mobile terminal for display and monitoring.
According to the scheme, after the mobile terminal sends the authentication data request to the vehicle-mounted system, the target authentication data corresponding to the authentication data request, which is called from the cache database in which the authentication data is cached in the vehicle-mounted system in advance, can be received, IAP communication connection is established with the vehicle-mounted system based on the target authentication data, frequent network requests and data transmission are avoided, the data access efficiency is improved, and the establishment speed of vehicle-mounted functional connection is further improved.
The execution subject of the in-vehicle function connection optimization method may be an in-vehicle function connection optimization apparatus, for example, the in-vehicle function connection optimization apparatus may be a terminal device or a server or other processing device, where the terminal device may be a User Equipment (UE), a computer, a mobile device, a User terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, or the like.
Fig. 11 is a schematic structural view of an embodiment of the vehicle-mounted function connection optimizing device of the present application. As shown in fig. 11, the exemplary in-vehicle function connection optimizing apparatus 800 includes: a receiving module 810, a data processing module 820, a transmitting module 830, and a connecting module 840, specifically: a receiving module 810, configured to receive an authentication data request sent by the mobile terminal in response to the vehicle-mounted system and the mobile terminal establishing a wired communication session based on an IAP communication protocol; the data processing module 820 is configured to retrieve target authentication data from a cache database according to an authentication data request, and send the target authentication data to the mobile terminal, where the cache database includes a plurality of authentication data cached in advance; a transmitting module 830, configured to transmit an authentication request to the mobile terminal in response to establishing a communication connection between the vehicle-mounted system and the mobile terminal, where the authentication request is used to authenticate whether the universal serial bus network adapter of the mobile terminal is ready; and the connection module 840 is configured to, in response to the authentication result fed back by the mobile terminal, characterize that the authentication is passed, and establish a vehicle-mounted function connection with the mobile terminal.
In some embodiments, the in-vehicle function connection optimizing apparatus 800 includes a switching module (not shown) for, prior to the step of receiving the authentication data request sent by the mobile terminal:
responding to the wired connection between the vehicle-mounted system and the mobile terminal, sending a request for determining to support the vehicle-mounted function, and determining whether the mobile terminal supports the vehicle-mounted function or not by the request for determining to support the vehicle-mounted function; and switching a control mode of the vehicle-mounted system from a master mode to a slave mode in response to the mobile terminal supporting the vehicle-mounted function.
In some embodiments, the in-vehicle function connection optimizing apparatus 800 includes a storage module (not shown), where the in-vehicle system includes an authentication chip, and before the step of receiving the authentication data request sent by the mobile terminal in response to the in-vehicle system and the mobile terminal establishing the wired communication session based on the IAP communication protocol in the receiving module 810, the storage module (not shown) is configured to: sending a data caching request to an authentication chip; and responding to the authentication chip to send authentication data corresponding to the data caching request to the vehicle-mounted system based on the data caching request, and storing the authentication data into a caching database.
In some embodiments, the in-vehicle functional connection optimization apparatus 800 includes an interaction data transmission module (not shown), where the interaction data transmission module (not shown) is configured to: transmitting an interactive data request to the mobile terminal, so that the mobile terminal determines target interactive data corresponding to the interactive data request based on zero synchronization attribute in the IAP communication protocol, and transmitting the target interactive data to the vehicle-mounted system; and receiving target interaction data sent by the mobile terminal.
In some embodiments, the in-vehicle function connection optimizing apparatus 800 further includes a universal serial bus connection module (not shown), responsive to the in-vehicle system and the mobile terminal establishing the wired communication session based on the IAP communication protocol, the universal serial bus connection module (not shown) is configured to, prior to the step of receiving the authentication data request sent by the mobile terminal: responding to the vehicle-mounted system and the mobile terminal to establish universal serial bus physical connection, and sending a universal serial bus enumeration request to the mobile terminal; receiving device descriptor information sent to a vehicle-mounted system by a mobile terminal based on a universal serial bus enumeration request; and performing universal serial bus connection with the mobile terminal based on the device descriptor information.
In some embodiments, the in-vehicle function connection optimization apparatus 800 further includes an execution module (not shown), and after the step of establishing the in-vehicle function connection with the mobile terminal, the execution module (not shown) is configured to: selecting other attributes from the IAP communication protocol, wherein the other attributes refer to other attributes except the zero synchronization attribute in the IAP communication protocol; and executing protocol tasks corresponding to other attributes in the IAP communication protocol.
In some embodiments, the in-vehicle function connection optimizing apparatus 800 includes an authentication module (not shown), and the in-vehicle function connection optimizing apparatus 800 is applied to a mobile terminal, and the authentication module (not shown) is used for: responding to the mobile terminal and the vehicle-mounted system to establish a wired communication session based on an IAP communication protocol, and sending an authentication data request to the vehicle-mounted system, so that the vehicle-mounted system can call target authentication data from a cache database according to the received authentication data request, and send the target authentication data to the mobile terminal, wherein the cache database comprises a plurality of authentication data cached in advance; receiving target authentication data sent by a vehicle-mounted system, and establishing communication connection with the vehicle-mounted system based on the target authentication data; receiving an authentication request sent by a vehicle-mounted system, and performing authentication analysis on the authentication request to obtain an authentication result; and if the authentication result indicates that the authentication is passed, establishing vehicle-mounted functional connection with the vehicle-mounted system.
According to the scheme, the vehicle-mounted system stores a plurality of authentication data in the cache database in advance, and after receiving the authentication data request sent by the mobile terminal, the vehicle-mounted system can call target authentication data corresponding to the authentication data request from the cache database and send the target authentication data to the mobile terminal, so that additional authentication steps are avoided, and the establishment speed of vehicle-mounted functional connection is increased.
The functions of each module may refer to an embodiment of the vehicle-mounted function connection optimization method, which is not described herein.
Referring to fig. 12, fig. 12 is a schematic structural diagram of an embodiment of an electronic device according to the present application. The electronic device 900 comprises a memory 901 and a processor 902, the processor 902 being arranged to execute program instructions stored in the memory 901 for carrying out the steps in the embodiments of the method for optimizing a vehicle-mounted functional connection. In one particular implementation scenario, electronic device 900 may include, but is not limited to: the microcomputer and the server, and the electronic device 900 may also include mobile devices such as a notebook computer and a tablet computer, which are not limited herein.
In particular, the processor 902 is configured to control itself and the memory 901 to implement the steps in any of the vehicle function connection optimization method embodiments described above. The processor 902 may also be referred to as a CPU (Central Processing Unit ). The processor 902 may be an integrated circuit chip having signal processing capabilities. The processor 902 may also be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 902 may be commonly implemented by an integrated circuit chip.
According to the scheme, the vehicle-mounted system caches the authentication data into the cache database in advance, and after receiving the authentication data request sent by the mobile terminal, the vehicle-mounted system invokes the target authentication data from the cache database and sends the target authentication data to the mobile terminal for vehicle-mounted function connection, so that the problem of low vehicle-mounted function connection speed caused by the fact that the authentication data are acquired from the authentication chip in real time for communication connection is avoided.
Referring to fig. 13, fig. 13 is a schematic structural diagram of an embodiment of a computer storage medium of the present application. The computer storage medium 903 stores program instructions 904 executable by the processor, the program instructions 904 for implementing the steps in any of the vehicle function connection optimization method embodiments described above.
According to the scheme, the vehicle-mounted system caches the authentication data into the cache database in advance, and after receiving the authentication data request sent by the mobile terminal, the vehicle-mounted system invokes the target authentication data from the cache database and sends the target authentication data to the mobile terminal for vehicle-mounted function connection, so that the problem of low vehicle-mounted function connection speed caused by the fact that the authentication data are acquired from the authentication chip in real time for communication connection is avoided.
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical, or other forms.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all or part of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Claims (10)
1. A method for optimizing vehicle-mounted functional connection, wherein the method is applied to a vehicle-mounted system, and the method comprises the following steps:
responding to the wired communication session established by the vehicle-mounted system and the mobile terminal based on an IAP communication protocol, and receiving an authentication data request sent by the mobile terminal;
according to the authentication data request, target authentication data is called from a cache database, and the target authentication data is sent to the mobile terminal, wherein the cache database comprises a plurality of authentication data cached in advance;
responding to the communication connection between the vehicle-mounted system and the mobile terminal, and sending an authentication request to the mobile terminal, wherein the authentication request is used for authenticating whether a universal serial bus network adapter of the mobile terminal is ready;
and responding to the authentication result fed back by the mobile terminal to represent that the authentication passes, and establishing vehicle-mounted functional connection with the mobile terminal.
2. The in-vehicle function connection optimizing method according to claim 1, characterized in that before the step of receiving the authentication data request sent by the mobile terminal, the method comprises:
responding to the wired connection between the vehicle-mounted system and the mobile terminal, and sending a request for determining to support the vehicle-mounted function, wherein the request for determining to support the vehicle-mounted function is used for determining whether the mobile terminal supports the vehicle-mounted function;
And switching a control mode of the vehicle-mounted system from a master mode to a slave mode in response to the mobile terminal supporting a vehicle-mounted function.
3. The method of claim 1, wherein the in-vehicle system includes an authentication chip, and wherein prior to the step of receiving an authentication data request sent by the mobile terminal in response to the in-vehicle system and the mobile terminal establishing a wired communication session based on an IAP communication protocol, the method comprises:
sending a data caching request to the authentication chip;
and responding to the authentication chip, sending authentication data corresponding to the data caching request to the vehicle-mounted system based on the data caching request, and storing the authentication data into the caching database.
4. The in-vehicle function connection optimization method according to claim 1, characterized in that the method comprises:
transmitting an interactive data request to the mobile terminal, so that the mobile terminal determines target interactive data corresponding to the interactive data request based on zero synchronization attribute in the IAP communication protocol, and transmits the target interactive data to the vehicle-mounted system;
and receiving target interaction data sent by the mobile terminal.
5. The method according to claim 1, wherein the step of receiving the authentication data request sent by the mobile terminal in response to the vehicle-mounted system and the mobile terminal establishing a wired communication session based on an IAP communication protocol, further comprises:
responding to the vehicle-mounted system and the mobile terminal to establish universal serial bus physical connection, and sending a universal serial bus enumeration request to the mobile terminal;
receiving device descriptor information sent to the vehicle-mounted system by the mobile terminal based on the universal serial bus enumeration request;
and carrying out universal serial bus connection with the mobile terminal based on the equipment descriptor information.
6. The method for optimizing vehicle-mounted function connection according to claim 1, wherein after the step of establishing the vehicle-mounted function connection with the mobile terminal, the method further comprises:
selecting other attributes from the IAP communication protocol, wherein the other attributes refer to other attributes except the zero synchronization attribute in the IAP communication protocol;
and executing protocol tasks corresponding to other attributes in the IAP communication protocol.
7. A vehicle-mounted function connection optimization method, wherein the method is applied to a mobile terminal, and the method comprises the following steps:
responding to the mobile terminal and the vehicle-mounted system to establish a wired communication session based on an IAP communication protocol, and sending an authentication data request to the vehicle-mounted system, so that the vehicle-mounted system can call target authentication data from a cache database according to the received authentication data request and send the target authentication data to the mobile terminal, wherein the cache database comprises a plurality of authentication data cached in advance;
receiving target authentication data sent by the vehicle-mounted system, and establishing communication connection with the vehicle-mounted system based on the target authentication data;
receiving an authentication request sent by the vehicle-mounted system, and performing authentication analysis on the authentication request to obtain an authentication result;
and if the authentication result represents that the authentication passes, establishing vehicle-mounted function connection with the vehicle-mounted system.
8. An in-vehicle functional connection optimization device, the device comprising:
the receiving module is used for responding to the wired communication session established by the vehicle-mounted system and the mobile terminal based on an IAP communication protocol and receiving an authentication data request sent by the mobile terminal;
The data processing module is used for calling target authentication data from a cache database according to the authentication data request and sending the target authentication data to the mobile terminal, and the cache database comprises a plurality of authentication data cached in advance;
the sending module is used for responding to the communication connection between the vehicle-mounted system and the mobile terminal and sending an authentication request to the mobile terminal, wherein the authentication request is used for authenticating whether a universal serial bus network adapter of the mobile terminal is ready or not;
and the connection module is used for responding to the authentication result fed back by the mobile terminal to represent that the authentication passes, and establishing vehicle-mounted functional connection with the mobile terminal.
9. An electronic device comprising a memory and a processor for executing program instructions stored in the memory to implement the in-vehicle functional connection optimization method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which program instructions are stored, characterized in that the program instructions, when executed by a processor, implement the in-vehicle function connection optimization method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311436529.3A CN117640148A (en) | 2023-10-30 | 2023-10-30 | Vehicle-mounted function connection optimization method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311436529.3A CN117640148A (en) | 2023-10-30 | 2023-10-30 | Vehicle-mounted function connection optimization method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117640148A true CN117640148A (en) | 2024-03-01 |
Family
ID=90036723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311436529.3A Pending CN117640148A (en) | 2023-10-30 | 2023-10-30 | Vehicle-mounted function connection optimization method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117640148A (en) |
-
2023
- 2023-10-30 CN CN202311436529.3A patent/CN117640148A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7326471B2 (en) | Bluetooth scanning method and electronic device | |
KR102375777B1 (en) | Payment authentication method, device and system for on-board terminal | |
US11200018B2 (en) | Electronic device and method for sharing screen data | |
US9386045B2 (en) | Device communication based on device trustworthiness | |
JP5653354B2 (en) | System and method for using networked mobile devices in a vehicle | |
WO2021159765A1 (en) | Account data sharing method and electronic device | |
US20150024688A1 (en) | Automatic Pairing of a Vehicle and a Mobile Communications Device | |
CN104350484A (en) | Message-based identification of an electronic device | |
US9276934B2 (en) | Self-activation of user device | |
US20190238639A1 (en) | Method and apparatus for utilzing nfc to establish a secure connection | |
CN115065703B (en) | Internet of things system, authentication and communication method thereof and related equipment | |
JP2023509896A (en) | DEVICE SHARING METHODS AND ELECTRONIC DEVICES | |
CN112543431A (en) | Account synchronization method, medium and server | |
CN116889001A (en) | Digital key authentication method, mobile terminal and computer storage medium | |
EP4106357A1 (en) | Method for logging into on-board computer system and related device | |
US11394534B2 (en) | Electronic device sharing key with external electronic device and operating method for electronic device | |
US11597351B2 (en) | Electronic device for managing application relating to key of external electronic device, and operating method of electronic device | |
CN117879814A (en) | Vehicle key sharing method, device and storage medium | |
CN115104283A (en) | Electronic device and method for performing peer-to-peer service in electronic device | |
US11297488B2 (en) | Electronic device in which profile is installed and operating method for electronic device | |
CN111666590A (en) | Distributed file secure transmission method, device and system | |
CN117640148A (en) | Vehicle-mounted function connection optimization method, device, equipment and storage medium | |
US20130042176A1 (en) | Methods systems and computer program products for managing sound files of a vehicle | |
WO2024164112A1 (en) | Inter-application communication method and apparatus, communication system, and vehicle | |
CN114285583A (en) | Method and device for equipment to safely access Internet of things, electronic equipment 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 |