USB parameter determination method and device, equipment and storage medium

By obtaining the vehicle's target model information and determining the target USB parameters, the problem of poor compatibility between electronic devices and vehicle-machine devices is solved, and the success rate and reliability of the connection are improved.

CN119233229APending Publication Date: 2024-12-31GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411346563.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The compatibility of USB connection between electronic devices and vehicle machines is poor, resulting in a high connection failure rate and affecting reliability.

Method used

By obtaining the vehicle's target model information, determining the target USB parameters, and connecting it with the vehicle machine based on this parameter to improve USB compatibility.

Benefits of technology

It significantly improves the chance of successfully establishing a USB connection between electronic devices and vehicle machines and the reliability of connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119233229A_ABST
    Figure CN119233229A_ABST
Patent Text Reader

Abstract

The invention provides a USB parameter determination method and device, equipment and a storage medium, and the USB parameter determination method can comprise the steps: obtaining the target vehicle type information of a vehicle, determining a target USB parameter according to the target vehicle type information, and carrying out the USB connection with the vehicle machine equipment of the vehicle based on the target USB parameter. By implementing the method, the probability of successfully establishing the USB connection between the electronic equipment and the vehicle-mounted equipment can be improved, and the reliability of the USB connection between the electronic equipment and the vehicle-mounted equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, equipment and storage medium for determining USB parameters. Background Art

[0002] During use, electronic devices such as mobile phones, tablets, and smart wearable devices are often connected to the vehicle's onboard equipment via the Universal Serial Bus (USB). How to ensure the reliability of the USB connection between electronic devices and onboard equipment has become a technical problem that the industry urgently needs to solve. Summary of the invention

[0003] The present application provides a method, apparatus, device and storage medium for determining USB parameters, which can improve the probability of successfully establishing a USB connection between an electronic device and a vehicle device, as well as the reliability of the USB connection between the electronic device and the vehicle device.

[0004] A first aspect of an embodiment of the present application provides a method for determining USB parameters, the method being applicable to an electronic device, comprising:

[0005] Get the target vehicle model information;

[0006] Determine target USB parameters according to the target vehicle model information;

[0007] Based on the target USB parameters, a USB connection is established with a vehicle computer device of the vehicle.

[0008] A second aspect of an embodiment of the present application provides a device for determining USB parameters, the device being in an electronic device, and comprising:

[0009] A vehicle model acquisition unit, used to acquire target vehicle model information;

[0010] A parameter determination unit, used to determine target USB parameters according to the target vehicle model information;

[0011] The USB connection unit is used to establish a USB connection with the vehicle equipment of the vehicle based on the target USB parameters.

[0012] A third aspect of the embodiments of the present application provides an electronic device,

[0013] A memory storing executable program code;

[0014] and a processor coupled to the memory;

[0015] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method disclosed in the first aspect of the embodiment of the present application.

[0016] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method disclosed in the first aspect of the embodiment of the present application is implemented.

[0017] The fifth aspect of the embodiments of the present application discloses a computer program product. When the computer program product runs on a computer, the computer executes the method disclosed in the first aspect of the embodiments of the present application.

[0018] A sixth aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method disclosed in the first aspect of the embodiment of the present application.

[0019] It can be seen from the above technical solutions that the embodiments of the present application have at least the following advantages:

[0020] The target vehicle model information of the vehicle is obtained, and the target USB parameters are determined according to the target vehicle model information, and the USB connection is established with the vehicle computer device based on the target USB parameters.

[0021] By implementing the method, the electronic device obtains the target vehicle model information of the vehicle, determines the target USB parameters according to the vehicle model information, and then performs a USB connection with the vehicle's on-board equipment based on the determined target USB parameters. Since the target USB parameters are determined based on the vehicle model information, the electronic device performs a USB connection with the on-board equipment based on the target USB parameters, which can greatly improve the USB compatibility between the electronic device and the on-board equipment, thereby improving the probability of successfully establishing a USB connection between the electronic device and the on-board equipment, as well as the reliability of the USB connection between the electronic device and the on-board equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0023] Figure 2 It is a flowchart of a method for determining USB parameters disclosed in an embodiment of the present application;

[0024] Figure 3 is another flowchart of the method for determining USB parameters disclosed in the embodiment of the present application;

[0025] Figure 4AIt is a schematic diagram of a vehicle model selection interface disclosed in an embodiment of the present application;

[0026] Figure 4B It is a diagram of a process of determining and resetting USB eye diagram parameters by a first near field communication module of an electronic device disclosed in an embodiment of the present application;

[0027] Figure 5 It is another flowchart of the method for determining USB parameters disclosed in the embodiment of the present application;

[0028] Figure 6 It is a structural diagram of a device for determining USB parameters disclosed in an embodiment of the present application;

[0029] Figure 7 It is a structural diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The present application provides a method, apparatus, device and storage medium for determining USB parameters, which can improve the probability of successfully establishing a USB connection between an electronic device and a vehicle device, as well as the reliability of the USB connection between the electronic device and the vehicle device.

[0031] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.

[0032] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0033] "At least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or plural.

[0034] In the embodiments of the present application, the electronic device may include a general handheld screen electronic device, such as a mobile phone, a smart phone, a portable terminal, a terminal, a personal digital assistant (PDA), a portable multimedia player (Personal Media Player, PMP) device, a laptop computer, a notebook (Note Pad), a wireless broadband (Wireless Broadband, Wibro) terminal, a tablet computer (Personal Computer, PC) and a smart PC, etc.

[0035] Electronic devices may also include wearable devices. Wearable devices are portable electronic devices that can be worn directly on the user or integrated into the user's clothes or accessories. Wearable devices are not just hardware devices, but can also achieve powerful intelligent functions through software support, data interaction, and cloud server interaction, such as: computing function, positioning function, and alarm function. They can also be connected to mobile phones and various terminals. Wearable devices may include but are not limited to watches supported by the wrist (such as watches, wrists, etc.), shoes supported by the feet (such as shoes, socks, or other products worn on the legs), glasses supported by the head (such as glasses, helmets, headbands, etc.), as well as smart clothing, school bags, crutches, accessories and other non-mainstream product forms.

[0036] The interconnection between electronic devices and vehicle-mounted devices is an important manifestation of the development of modern automobile intelligence. It can realize seamless connection between electronic devices and vehicles. For example, after the electronic devices are interconnected with vehicle-mounted devices, the navigation application on the electronic devices can be mapped to the display screen of the vehicle-mounted devices, providing the driver with a clear and convenient navigation experience; for another example, after the electronic devices are interconnected with vehicle-mounted devices, the music on the electronic devices can be transmitted to the vehicle-mounted devices, and the driver can control the playback of the music by operating the display screen of the vehicle-mounted devices or voice, which enhances the driver's entertainment experience during driving; for another example, after the electronic devices are interconnected with vehicle-mounted devices, the video streaming media or games on the electronic devices can be mapped to the vehicle-mounted devices, and the driver can control the playback of the video streaming media or the game by operating the vehicle-mounted devices, providing the driver with more entertainment options. It can be seen that the interconnection between electronic devices and vehicle-mounted devices can provide drivers with a more convenient and intelligent driving experience.

[0037] In the related art, the interconnection method between the electronic device and the vehicle device can usually be a USB connection, such as Figure 1 As shown. Figure 1 In the embodiment, the electronic device 10 and the vehicle device 21 of the vehicle 20 are connected via a USB cable, one end of the USB cable is connected to the USB interface of the electronic device 10, and the other end of the USB cable is connected to the USB interface of the vehicle device 21. However, in practice, it is found that when the electronic device 10 is connected to the vehicle device 21 via USB, the USB connection between the electronic device 10 and the vehicle device 21 often fails due to USB compatibility issues, affecting the reliability of the USB connection between the two.

[0038] To solve this problem, the embodiment of the present application discloses a method, device, equipment and storage medium for determining USB parameters, which can improve the reliability of the USB connection between the electronic device 10 and the vehicle-mounted device 21. Specifically, the electronic device 10 obtains the target vehicle model information of the vehicle 20, determines the target USB parameters according to the target vehicle model information, and then performs a USB connection with the vehicle-mounted device 21 based on the determined target USB parameters. Since the target USB parameters are determined based on the vehicle model information of the vehicle 20, the electronic device 10 performs a USB connection with the vehicle-mounted device 21 based on the target USB parameters, which can greatly improve the USB compatibility between the electronic device 10 and the vehicle-mounted device 21, thereby improving the probability of successfully establishing a USB connection between the electronic device 10 and the vehicle-mounted device 21, as well as the reliability of the USB connection between the electronic device 10 and the vehicle-mounted device 21.

[0039] The following describes the method for determining USB parameters disclosed in the embodiment of the present application in conjunction with specific implementation methods.

[0040] See also Figure 2 , Figure 2 FIG. 1 is a flowchart of a method for determining USB parameters disclosed in an embodiment of the present application. Figure 2 The method for determining USB parameters shown may include the following steps:

[0041] 201. The electronic device obtains target vehicle model information of the vehicle.

[0042] In the embodiment of the present application, the target vehicle model information can be used to identify the vehicle model, and the target vehicle model information can include the brand and model name of the vehicle. Among them, the model name can usually intuitively reflect the vehicle's market positioning, functional characteristics and configuration level and other information. The vehicle's market positioning is used to indicate the vehicle's positioning in the market, such as luxury, economy, sports, off-road or home use, etc. The vehicle's functional characteristics are used to indicate the main functions of the vehicle, such as automatic driving or long endurance, etc. The vehicle's configuration level is used to indicate the level of the vehicle's configuration, such as high-end configuration or basic configuration, etc.

[0043] In some embodiments, before the electronic device obtains the target vehicle model information of the vehicle, the electronic device may also detect a target operation, and in response to the target operation, obtain the target vehicle model information of the vehicle; wherein the target operation refers to an operation for triggering the electronic device to establish a USB connection with the vehicle's on-board device. When the electronic device detects the target operation, it indicates that the user wants the electronic device to establish a USB connection with the vehicle's on-board device, and the target vehicle model information of the vehicle may be obtained, and a USB connection may be established with the on-board device based on the target USB parameters corresponding to the target vehicle model information.

[0044] The target operation may include but is not limited to at least one of the following: voice operation, gesture operation, and touch operation. For example, the voice operation may be an audio such as "connect to the vehicle computer" or "connect to the vehicle computer via USB" input by the user. The gesture operation may be an operation such as the user shaking the electronic device left or right or forward and backward, or the user drawing a circle on the display screen of the electronic device. The touch operation may be a virtual button touched by the user to trigger the electronic device to establish a connection with the vehicle computer.

[0045] In some embodiments, before the electronic device obtains the target vehicle model information of the vehicle, the electronic device may also determine whether it is a vehicle-machine interconnection scenario, and if so, obtain the target vehicle model information of the vehicle.

[0046] In the embodiment of the present application, the electronic device may determine whether it is in the vehicle-machine interconnection scenario in the following ways, but is not limited to:

[0047] The electronic device determines whether the electronic device has established a near field communication connection with the vehicle, and if so, determines that it is in a vehicle-machine interconnection scenario;

[0048] or,

[0049] The electronic device detects whether a second control operation is performed on the vehicle. If so, it is determined to be in a vehicle-machine interconnection scenario; wherein the second control operation may include but is not limited to any of the following: remote start operation, remote unlocking operation, remote window opening operation, and remote vehicle search operation, etc.

[0050] It should be noted that the premise that the electronic device can perform the second control operation on the vehicle may be that the electronic device and the vehicle are bound in advance, and both the electronic device and the vehicle equipment are running a remote control application. It can be understood that the electronic device performs the second control operation on the vehicle through the remote control application.

[0051] In an embodiment of the present application, when the electronic device establishes a near-field communication connection with the vehicle, or when performing a second control operation on the vehicle, it indicates that the probability that the user will use the vehicle is high. Similarly, the probability that the user wants to interconnect the electronic device with the vehicle's on-board equipment is also high. The target vehicle model information of the vehicle can be obtained, and based on the target USB parameters corresponding to the target vehicle model information, a USB connection can be established with the on-board equipment.

[0052] In an embodiment of the present application, the vehicle's on-board equipment may only support USB connection, or the vehicle's on-board equipment may not only support USB connection but also support wireless connection (for example, Bluetooth connection or WiFi connection, etc.), which is not limited in the embodiment of the present application.

[0053] In an embodiment of the present application, when the vehicle's on-board equipment supports not only USB connection but also wireless connection, if the electronic device is determined to be in a vehicle-machine interconnection scenario, the electronic device also needs to determine whether to establish a USB connection with the on-board equipment. If so, obtain the target vehicle model information of the vehicle.

[0054] In some embodiments, the electronic device determines whether to establish a USB connection with the vehicle-mounted device by detecting the current power level of the electronic device. If the current power level is less than or equal to a power threshold, it indicates that the electronic device is likely to establish a USB connection with the vehicle-mounted device. In this case, the target vehicle model information of the vehicle can be obtained.

[0055] The power threshold may be pre-set in the electronic device, and the power threshold may be 30%, 50%, etc., which is not limited in the embodiment of the present application.

[0056] In some embodiments, the electronic device determines whether to establish a USB connection with the vehicle device by obtaining historical connection data, and when the historical connection data indicates that the electronic device has established a USB connection with the vehicle device the most times, it indicates that the user is accustomed to establishing a USB connection between the electronic device and the vehicle device, and the target vehicle model information of the vehicle is obtained.

[0057] Among them, the historical connection data records the connection mode of each electronic device and the vehicle device. The historical connection data can record the connection mode of each electronic device and the vehicle device in the past week, the past month or the past quarter, which is not limited in the embodiment of the present application.

[0058] It should be noted that in the vehicle-computer interconnection scenario, electronic devices can more accurately identify scenarios in which electronic devices may establish USB connections with vehicle-computer devices by detecting power levels or analyzing historical connection data. On this basis, obtaining the target vehicle model information of the vehicle is conducive to ensuring the reliability of subsequent USB connections.

[0059] 202. The electronic device determines target USB parameters according to the target vehicle model information.

[0060] The target USB parameters may refer to USB parameters adapted to the target vehicle model information of the vehicle. The electronic device uses the target USB parameters to establish a USB connection with the vehicle's on-board equipment with higher reliability, and there will be no USB connection failure or the probability of USB connection failure is extremely low.

[0061] In the embodiment of the present application, the type of the target USB parameter may include but is not limited to at least one of the following: USB eye diagram parameters, electrical characteristic parameters and data output performance parameters. Among them, the USB eye diagram parameters may include parameters such as eye diagram opening width, eye diagram slope, horizontal bandwidth of the shadow part of the left and right corners of the eye diagram, and decision threshold level. The electrical characteristic parameters may include but are not limited to any of the following: signal level parameters, current parameters and voltage parameters. The data output performance parameters may include data transmission rate and / or encoding and decoding capabilities.

[0062] It should be noted that the USB eye diagram parameters, electrical characteristic parameters and data output performance parameters can all affect the signal quality of the electronic device and the vehicle device when connected via USB, that is, affect the USB compatibility of the electronic device and the vehicle device. The following embodiments are mainly introduced by taking the target USB parameter as the USB eye diagram parameter as an example.

[0063] In some embodiments, the electronic device or server may pre-store the binding relationship between USB parameters and vehicle model information, that is, the electronic device or server may store at least one set of USB parameters and the vehicle model information bound to each set of USB parameters. Based on this, the electronic device may determine the target USB parameters according to the target vehicle model information in the following ways, including but not limited to:

[0064] In the case where the binding relationship between the USB parameters and the vehicle model information is stored in the electronic device, the electronic device may determine a set of USB parameters bound to the target vehicle model information from among the multiple sets of USB parameters as the target USB parameters;

[0065] When the binding relationship between USB parameters and vehicle model information is stored in a server, the electronic device can send the target vehicle model information to the server, so that the server determines a set of USB parameters bound to the target vehicle model information from multiple sets of USB parameters as target USB parameters, and sends the target USB parameters to the electronic device, and the electronic device receives the target USB parameters.

[0066] 203. The electronic device establishes a USB connection with a vehicle computer device based on the target USB parameters.

[0067] After obtaining the target USB parameters, the electronic device can update the USB parameters in the USB driver to the target USB parameters, and establish a USB connection with the vehicle's onboard device based on the updated USB driver.

[0068] Furthermore, before updating the USB driver, the electronic device may first determine whether the USB parameters in the USB driver before the update are different from the target USB parameters. If the USB parameters in the USB driver before the update are different from the target USB parameters, the USB parameters in the USB driver are updated to the target USB parameters.

[0069] In some embodiments, the USB parameters in the USB driver before updating may be default USB parameters, and the target USB parameters may be different from the default USB parameters. Then, the electronic device may establish a USB connection with the vehicle's on-board device based on the target USB parameters, which may include: the electronic device may update the USB parameters in the USB driver from the default USB parameters to the target USB parameters, and establish a USB connection with the vehicle's on-board device based on the updated USB driver.

[0070] The default USB parameters refer to USB parameters that can successfully establish a USB connection with most devices on the market. To facilitate user use, by default, the parameters of the USB driver of the electronic device are the default USB parameters.

[0071] Optionally, at least one set of USB parameters in the binding relationship between the USB parameters and the vehicle type information may include default USB parameters, and therefore, the target USB parameters may also be the default USB parameters.

[0072] When the target USB parameters are consistent with the default USB parameters, that is, when the target USB parameters are the default USB parameters, since the parameters of the USB driver of the electronic device are the default USB parameters, the electronic device does not need to update the USB parameters in the USB driver of the electronic device, and can directly establish a USB connection with the vehicle's on-board device based on the USB driver.

[0073] It can be understood that, when the target USB parameters obtained by the electronic device based on the target vehicle model information are consistent with the default USB parameters, the electronic device does not need to update the USB driver of the electronic device, and directly establishes a USB connection with the vehicle's on-board device based on the current USB driver. However, when the target USB parameters obtained by the electronic device based on the target vehicle model information are different from the default USB parameters, the electronic device needs to update the parameters of the USB driver of the electronic device, and establish a USB connection with the vehicle's on-board device based on the updated USB driver, which is conducive to achieving reliable USB connection between the electronic device and the on-board device.

[0074] By implementing the above method, before establishing a USB connection with the vehicle's on-board equipment, the electronic device first obtains the target vehicle model information of the vehicle, then determines the target USB parameters based on the model information, and finally, based on the determined target USB parameters, establishes a USB connection with the vehicle's on-board equipment. Since the target USB parameters are determined based on the vehicle's model information, the electronic device establishes a USB connection with the on-board equipment based on the target USB parameters, which can greatly improve the USB compatibility between the electronic device and the on-board equipment, thereby improving the probability of successfully establishing a USB connection between the electronic device and the on-board equipment, as well as the reliability of the USB connection between the electronic device and the on-board equipment.

[0075] The following is combined with Figure 3 , an example of obtaining target vehicle model information of a vehicle when an electronic device establishes a near field communication connection with the vehicle is described. It should be noted that the premise for the electronic device to establish a near field communication connection with the vehicle is that the electronic device includes a first near field communication module and the vehicle includes a second near field communication module.

[0076] See also Figure 3 , Figure 3 FIG. 1 is another flowchart of the method for determining USB parameters disclosed in the embodiment of the present application. Figure 3 The method for determining USB parameters shown may include the following steps:

[0077] 301. When a first near field communication module establishes a communication connection with a second near field communication module, the electronic device obtains target vehicle model information sent by the second near field communication module of the vehicle through the first near field communication module.

[0078] It should be noted that the establishment of a communication connection between the first near-field communication module and the second near-field communication module may refer to the establishment of a point-to-point connection between the electronic device and the vehicle based on their respective near-field communication modules, based on which data exchange can be achieved between the electronic device and the vehicle. Specifically, the electronic device may send a vehicle model acquisition request to the vehicle through the first near-field communication module, and when the vehicle receives the vehicle model acquisition request, it responds to the vehicle model acquisition request and sends the target vehicle model information of the vehicle to the electronic device through the second near-field communication module.

[0079] In some embodiments, the trigger condition for the first near-field communication module to establish a communication connection with the second near-field communication module may be that the electronic device unlocks the vehicle door through the first near-field communication module, or that the electronic device starts the vehicle engine through the first near-field communication module, which is not limited in the embodiments of the present application.

[0080] The trigger condition for establishing a communication connection between the first near-field communication module and the second near-field communication module is that the electronic device unlocks the door of the vehicle through the first near-field communication module. The second near-field communication module of the vehicle can be set on the outside of the vehicle. For example, the second near-field communication module of the vehicle can be set below, below, or near the rearview mirror on the driver's door side.

[0081] Correspondingly, before obtaining the target vehicle model information sent by the second near-field communication module of the vehicle through the first near-field communication module, the electronic device can also unlock the door of the vehicle through the first near-field communication module, and when it is determined that the door is unlocked, establish a communication connection with the second near-field communication module through the first near-field communication module.

[0082] In an embodiment of the present application, the electronic device may unlock the door of a vehicle through a first near-field communication module by sending an unlock instruction through the first near-field communication module, and the unlock instruction may include an unlock request and device information of the electronic device, so that when the vehicle receives the unlock instruction through the second near-field communication module, the device information of the electronic device is verified, and then, if the verification passes, the door is unlocked and a first indication information is sent to the electronic device indicating that the door is successfully unlocked.

[0083] It should be noted that the electronic device can determine that the vehicle door is unlocked when receiving the first indication information.

[0084] The unlock request may refer to a request for triggering the vehicle to unlock its doors, and the device information of the electronic device may be used to uniquely identify the electronic device.

[0085] In an embodiment of the present application, the device information may include but is not limited to any of the following: a serial number, a Media Access Control Address (MAC) address, a Universally Unique Identifier (UUID), a specific hardware information combination, a unique identifier generated by the system software, and a proprietary hardware identifier, etc.

[0086] It can be understood that when the electronic device successfully unlocks the vehicle door using the first near-field communication module, a communication connection is established with the vehicle through the first near-field communication module, which is beneficial to improving the security of near-field communication between the electronic device and the vehicle.

[0087] The trigger condition for establishing a communication connection between the first near-field communication module and the second near-field communication module is that the electronic device starts the engine of the vehicle through the first near-field communication module. The second near-field communication module of the vehicle can be set inside the vehicle, for example, the second near-field communication module of the vehicle can be set under the dashboard or near the center console.

[0088] Correspondingly, before obtaining the target vehicle model information sent by the second near-field communication module of the vehicle through the first near-field communication module, the electronic device can also start the engine of the vehicle through the first near-field communication module, and when it is determined that the engine of the vehicle is started, establish a communication connection with the second near-field communication module through the first near-field communication module.

[0089] In an embodiment of the present application, the electronic device starts the engine of the vehicle through the first near-field communication module. The electronic device may send an engine start instruction through the first near-field communication module, and the engine start instruction may include an engine start request and device information of the electronic device, so that when the vehicle receives the engine start instruction through the second near-field communication module, the device information of the electronic device is verified, and then, if the verification passes, the engine of the vehicle is started, and a second indication information indicating that the engine start is successful is sent to the electronic device.

[0090] It should be noted that the electronic device can determine that the engine of the vehicle is started when receiving the second indication information.

[0091] In the embodiment of the present application, the engine start request may refer to a request for triggering a vehicle to start the engine of the vehicle. In addition, for the introduction of the device information of the electronic device, please refer to the above description, which will not be repeated here.

[0092] It is understandable that when the electronic device successfully starts the engine of the vehicle using the first near-field communication module, establishing a communication connection with the vehicle through the first near-field communication module is also conducive to improving the security of near-field communication between the electronic device and the vehicle.

[0093] 302. The electronic device determines target USB parameters according to the target vehicle model information.

[0094] In some embodiments, the electronic device determines the target USB parameters based on the target vehicle model information, which may include: the electronic device searches whether there are USB parameters bound to the target vehicle model information; if so, the USB parameters bound to the target vehicle model information are used as the target USB parameters; if not, the default USB parameters are used as the target USB parameters.

[0095] In some embodiments, the electronic device searches for USB parameters bound to the target vehicle model information by searching a local database of the electronic device for USB parameters bound to the target vehicle model information.

[0096] It is understandable that the local database of the electronic device can store at least one vehicle model information and USB parameters bound to each vehicle model information. Based on this, the electronic device can quickly determine the target USB parameters, which is conducive to improving the efficiency of determining the target USB parameters.

[0097] In some embodiments, the electronic device can search for USB parameters bound to the target vehicle model information by sending the target vehicle model information to a server, and then the server searches the database of the server for USB parameters bound to the target vehicle model information.

[0098] It can be understood that the server's database can store at least one vehicle model information and USB parameters bound to each vehicle model information. Based on this, the electronic device only needs to send the target vehicle model information to the server, and the server will search for the USB bound to the target vehicle model information. This is not only beneficial to reducing the storage pressure of the electronic device, but also beneficial to reducing the device power consumption of the electronic device.

[0099] It should be noted that the USB connection between the electronic device and the vehicle device shown in steps 301-303 is not the first connection. The electronic device can successfully establish a USB connection with the vehicle device based on the target USB parameters (USB parameters bound to the target vehicle model information or default USB parameters).

[0100] In some embodiments, the USB parameter bound to the target vehicle model information may be selected from at least one candidate USB parameter by the electronic device during the first USB connection with the vehicle device.

[0101] In addition, for the explanation of the default USB parameters, please refer to the above description, which will not be repeated here.

[0102] It can be understood that when the electronic device is making a non-first USB connection with the vehicle device, the electronic device first searches for the USB parameters bound to the target vehicle model information. If found, the USB parameters bound to the target vehicle model information are directly used as the target USB parameters. Otherwise, the default USB parameters are used as the target USB parameters, which is conducive to improving the efficiency of determining the USB parameters, thereby improving the efficiency of establishing USB between the electronic device and the vehicle device.

[0103] The following introduces the process of the first USB connection between the electronic device and the vehicle device. The default USB parameters and at least one alternative USB parameter are pre-stored in the electronic device. The electronic device first establishes a USB connection with the vehicle device based on the default USB parameters, and if the USB connection with the vehicle device fails, the electronic device obtains the input vehicle model information, and establishes a USB connection with the vehicle device based on the first alternative USB parameter. If the USB connection with the vehicle device is successfully established, the first alternative USB parameter is bound to the input vehicle model information to improve the efficiency of USB parameter determination when the electronic device subsequently establishes a USB connection with the vehicle device again, which is beneficial to improving the connection efficiency when the electronic device subsequently establishes a USB connection with the vehicle device again.

[0104] For the introduction of the default USB parameters, please refer to the above description, which will not be repeated here. The first candidate USB parameter is one of the at least one candidate USB parameter.

[0105] It should be noted that if the electronic device fails to successfully establish a USB connection with the vehicle device based on the first alternative USB parameter, it continues to switch to other alternative USB parameters to establish a USB connection with the vehicle device until a USB connection is successfully established with the vehicle device.

[0106] In some embodiments, when the electronic device fails to establish a USB connection with the vehicle device based on default USB parameters, the electronic device may also display a vehicle model selection interface, which may include at least one vehicle model information; correspondingly, the electronic device obtains input vehicle model information may refer to the electronic device detecting the vehicle model information selected by the user from the vehicle model selection interface.

[0107] In some embodiments, the vehicle model selection interface may further include a control for triggering switching of USB parameters, and the user may switch the alternative USB parameters by touching the control.

[0108] For example, the diagram of the vehicle model selection interface can be found in the following Figure 4A ,like Figure 4A The vehicle model selection interface shown may display various vehicle model information and a control 400 for triggering switching of USB parameters.

[0109] In the embodiment of the present application, after displaying the vehicle model selection interface, the electronic device can also load and initialize a USB parameter configuration file, wherein the USB parameter configuration file may include the above-mentioned at least one alternative USB parameter, and the format of the USB parameter configuration file may be a lightweight data exchange (JavaScript Object Notation, json) format.

[0110] In some embodiments, after binding the first alternative USB parameter with the input vehicle model information, the electronic device may also store the first alternative USB parameter and the input vehicle model information in a local database of the electronic device in association with each other, or the electronic device may also send the first alternative USB parameter and the input vehicle model information to a server, which in turn stores the first alternative USB parameter and the input vehicle model information in a database of the server in association with each other.

[0111] It should be noted that the at least one alternative USB parameter can be selected from multiple groups of test USB eye diagram parameters, and the multiple groups of test USB eye diagram parameters can include USB eye diagram parameters obtained by performing USB connection tests between the electronic device and the vehicle-mounted devices of a large number of vehicle models. Specifically, the process of performing USB connection tests between the electronic device and the vehicle-mounted device can be to insert the electronic device into the vehicle-mounted device via USB and observe whether the screen projection is successful. If the screen projection fails, use tools such as an oscilloscope and a USB logic analyzer for analysis, modify the USB eye diagram parameters of the electronic device, and insert the USB into the vehicle-mounted device again for connection until the screen projection is successful and the USB eye diagram parameters are saved.

[0112] In some embodiments, the at least one candidate USB parameter may include a boundary eye diagram parameter with the highest tolerance for electronic equipment and vehicle equipment, a USB eye diagram parameter with the highest success rate, and a USB eye diagram parameter with the second highest success rate among multiple sets of test USB eye diagram parameters.

[0113] 303. The electronic device establishes a USB connection with a vehicle computer device based on the target USB parameters.

[0114] It should be noted that for a detailed description of step 303, reference may be made to the above description of step 203, which will not be repeated here.

[0115] In some embodiments, after step 303, when the target USB parameters are USB parameters bound to the target vehicle model information, the electronic device can also switch the parameters in the updated USB driver from the target USB parameters to the default USB parameters when the vehicle is disconnected from the computer, which is beneficial to reduce the error probability of the electronic device when establishing USB with other devices later.

[0116] In some embodiments, the electronic device may determine that the electronic device is in a vehicle-machine disconnection scenario in the following three ways, including but not limited to:

[0117] Method 1: When the electronic device detects that the USB connection between the electronic device and the vehicle device is disconnected, the electronic device determines that the electronic device is in a vehicle-machine disconnection scenario.

[0118] The way in which the electronic device detects whether the USB connection with the vehicle device is disconnected may include but is not limited to at least one of the following: VBus voltage detection, D+ / D- signal detection, and third-party tools.

[0119] It can be understood that after the electronic device establishes a USB connection with the vehicle device, if the electronic device disconnects the USB connection with the vehicle device, it means that there is a high probability that the electronic device is no longer connected to the vehicle device. In this case, automatically switching the parameters in the USB driver back to the default USB parameters can more accurately identify the scenario in which the electronic device may disconnect from the vehicle device via USB. On this basis, automatically switching the parameters in the USB driver back to the default USB parameters is conducive to improving the efficiency of establishing subsequent USB connections with other devices.

[0120] Method 2: The electronic device locks the door of the vehicle through the first near-field communication module, and when it is determined that the door is locked, determines that the vehicle is in a disconnected scenario.

[0121] It should be noted that, for an introduction to the electronic device locking the vehicle doors through the first near-field communication module, please refer to the above-mentioned description of the electronic device unlocking the vehicle doors through the first near-field communication module, which will not be repeated here.

[0122] It can be understood that after the electronic device establishes a USB connection with the vehicle device, if the electronic device successfully locks the vehicle door through the first near-field communication module, it means that the probability of the vehicle being disconnected is low, and the parameters in the USB driver are automatically switched back to the default USB parameters. This can more accurately identify scenarios in which the electronic device may be disconnected from the vehicle device via the USB connection. On this basis, the parameters in the USB driver are automatically switched back to the default USB parameters, which is conducive to improving the efficiency of establishing subsequent USB connections with other devices.

[0123] Method 3: When the electronic device detects a first control operation on the vehicle, it is determined that the vehicle is in a vehicle-computer disconnection scenario; wherein the first control operation may include but is not limited to: a remote locking operation or a remote shutdown operation, etc.

[0124] It should be noted that the premise for the electronic device to perform the first control operation on the vehicle may be the same as the premise for the electronic device to perform the second control operation on the vehicle, and will not be repeated here.

[0125] It can be understood that after the electronic device establishes a USB connection with the vehicle device, if the electronic device performs the first control operation on the vehicle, it means that the probability of the vehicle is low, then the parameters in the USB driver are automatically switched back to the default USB parameters, which can more accurately identify the scenario where the electronic device may disconnect the USB connection with the vehicle device. On this basis, the parameters in the USB driver are automatically switched back to the default USB parameters, which is conducive to improving the efficiency of establishing subsequent USB connections with other devices.

[0126] For ease of understanding, the following combination Figure 4B , the process of determining and resetting USB eye diagram parameters by the electronic device through the first near field communication module is described.

[0127] 401. The electronic device unlocks a door of a vehicle through a first near-field communication module.

[0128] It should be noted that step 401 is initiated when the user gets on the bus.

[0129] 402. The electronic device reads target vehicle model information of the vehicle through the first near field communication module.

[0130] 403. The electronic device searches for information about the target vehicle model and finds whether the target vehicle model information is bound to a USB eye diagram parameter.

[0131] If the judgment result of step 403 is yes, then continue to step 404, otherwise, execute step 406.

[0132] 404. The electronic device updates the parameters in the USB driver to be the USB eye diagram parameters bound to the target vehicle model information.

[0133] 405. The electronic device locks the door of the vehicle through the first near field communication module.

[0134] It should be noted that step 405 is initiated when the user gets off the vehicle.

[0135] 406. The electronic device uses default USB eye diagram parameters.

[0136] By implementing Figure 3In the method shown, before establishing a USB connection with the vehicle's on-board device, the electronic device first obtains the target vehicle model information of the vehicle, then determines the target USB parameters based on the model information, and finally, based on the determined target USB parameters, establishes a USB connection with the vehicle's on-board device. Since the target USB parameters are determined based on the vehicle's model information, the electronic device establishes a USB connection with the on-board device based on the target USB parameters, which can greatly improve the USB compatibility of the electronic device and the on-board device, thereby improving the probability of successfully establishing a USB connection between the electronic device and the on-board device, as well as the reliability of the USB connection between the electronic device and the on-board device.

[0137] In addition, when the first near-field communication module establishes a communication connection with the second near-field communication module, the electronic device can obtain the target vehicle model information sent by the second near-field communication module of the vehicle in real time through the first near-field communication module, thereby ensuring the accuracy of the target vehicle model information.

[0138] The following is combined with Figure 5 , an example of an electronic device obtaining target vehicle model information of a vehicle when performing a second control operation on the vehicle is introduced.

[0139] Please refer to 5, Figure 5 FIG. 1 is another flowchart of the method for determining USB parameters disclosed in the embodiment of the present application. Figure 5 The method for determining USB parameters shown may include the following steps:

[0140] 501. When detecting that a second control operation is performed on a vehicle, the electronic device obtains target vehicle model information of the vehicle.

[0141] The second control operation may include but is not limited to any of the following: a remote start operation, a remote unlocking operation, a remote window opening operation, and a remote vehicle search operation.

[0142] It should be noted that, regarding the prerequisites for the electronic device to perform the second control operation on the vehicle, reference can be made to the description in the above embodiment and will not be repeated here.

[0143] It is understandable that after the electronic device is successfully bound to the vehicle, the target vehicle model information of the vehicle can be stored in the local storage space of the electronic device or in the server, which is not limited in the embodiments of the present application.

[0144] In a case where the target vehicle model information of the vehicle is stored in a local storage space of the electronic device, the electronic device obtaining the target vehicle model information of the vehicle may refer to the electronic device obtaining the target vehicle model information of the vehicle from the local storage space of the electronic device.

[0145] In a case where the target vehicle model information of the vehicle is stored in a server, the electronic device obtaining the target vehicle model information of the vehicle may refer to the electronic device requesting the target vehicle model information of the vehicle from the server.

[0146] 502. The electronic device determines target USB parameters according to the target vehicle model information.

[0147] 503. The electronic device establishes a USB connection with a vehicle computer device based on the target USB parameters.

[0148] It should be noted that, for the introduction of step 502-step 503, reference may be made to the above description of step 302-step 303, which will not be repeated here.

[0149] By implementing Figure 5 In the method shown, before establishing a USB connection with the vehicle's on-board device, the electronic device first obtains the target vehicle model information of the vehicle, then determines the target USB parameters based on the model information, and finally, based on the determined target USB parameters, establishes a USB connection with the vehicle's on-board device. Since the target USB parameters are determined based on the vehicle's model information, the electronic device establishes a USB connection with the on-board device based on the target USB parameters, which can greatly improve the USB compatibility of the electronic device and the on-board device, thereby improving the probability of successfully establishing a USB connection between the electronic device and the on-board device, as well as the reliability of the USB connection between the electronic device and the on-board device.

[0150] In addition, when the electronic device detects that the second control operation is performed on the vehicle, it obtains the target vehicle model information of the vehicle, realizes the advance determination of USB parameters, and further improves the efficiency of establishing a USB connection between the electronic device and the vehicle device.

[0151] See also Figure 6 , Figure 6 FIG. 1 is a structural diagram of a device for determining USB parameters disclosed in an embodiment of the present application. Figure 6 The USB parameter determination device shown may be located on an electronic device, such as Figure 6 The USB parameter determination device shown may include a vehicle type acquisition unit 601, a parameter determination unit 602 and a connection unit 603; wherein:

[0152] The vehicle model acquisition unit 601 is used to acquire the target vehicle model information of the vehicle;

[0153] The parameter determination unit 602 is used to determine the target USB parameters according to the target vehicle model information;

[0154] The connection unit 603 is used to establish a USB connection with the vehicle's onboard equipment based on the target USB parameters.

[0155] In some embodiments, the parameter determination unit 602 is used to determine the target USB parameters based on the target vehicle model information, which may specifically include: the parameter determination unit 602 is used to search whether there are USB parameters bound to the target vehicle model information; and, if so, the USB parameters bound to the target vehicle model information are used as the target USB parameters; and, if not, the default USB parameters are used as the target USB parameters.

[0156] In some embodiments, the target USB parameters are USB parameters bound to the target vehicle model information, and the connection unit 603 is used to establish a USB connection with the vehicle's on-board device based on the target USB parameters. Specifically, the connection unit 603 may include: the connection unit 603 is used to update the parameters in the USB driver of the electronic device from the default USB parameters to the target USB parameters; and, based on the updated USB driver, establish a USB connection with the vehicle's on-board device.

[0157] In some embodiments, the connection unit 603 is also used to switch the parameters in the updated USB driver from the target USB parameters to the default USB parameters after establishing a USB connection with the vehicle's vehicle-mounted device based on the updated USB driver when the vehicle-mounted device is disconnected.

[0158] In some embodiments, the electronic device includes a first near-field communication module, and the connection unit 603 is also used to lock the vehicle door through the first near-field communication module; and when it is determined that the vehicle door is locked, it is determined that the vehicle is in a disconnected scenario.

[0159] In some embodiments, the connection unit 603 is further used to determine that the vehicle is in a vehicle-computer disconnection scenario when a first control operation is detected on the vehicle; wherein the first control operation includes a remote locking operation or a remote ignition off operation.

[0160] In some embodiments, the electronic device pre-stores default USB parameters and at least one alternative USB parameter, and the connection unit 603 is further used to establish a USB connection with the vehicle's on-board device through the default USB parameters; and, in case the USB connection with the on-board device fails, obtain the input vehicle model information; and, based on the first alternative USB parameter, establish a USB connection with the vehicle's on-board device, and if the USB connection with the on-board device is successfully established, bind the first alternative USB parameter to the input vehicle model information; the first alternative USB parameter is one of the at least one alternative USB parameter.

[0161] In some embodiments, the electronic device includes a first near-field communication module, and the vehicle includes a second near-field communication module; the method in which the vehicle model acquisition unit 601 is used to obtain the target vehicle model information of the vehicle may specifically include: the vehicle model acquisition unit 601 is used to obtain the target vehicle model information sent by the second near-field communication module of the vehicle through the first near-field communication module when a communication connection is established between the first near-field communication module and the second near-field communication module.

[0162] In some embodiments, the vehicle model acquisition unit 601 is also used to unlock the door of the vehicle through the first near-field communication module before acquiring the target vehicle model information sent by the second near-field communication module of the vehicle through the first near-field communication module; and, when it is determined that the door is unlocked, establish a communication connection with the second near-field communication module through the near-field communication module.

[0163] In some embodiments, the vehicle model acquisition unit 601 is used to obtain the target vehicle model information of the vehicle, which may specifically include: the vehicle model acquisition unit 601 is used to obtain the target vehicle model information of the vehicle when a second control operation is detected on the vehicle; wherein the second control operation includes any one of the following: remote start operation, remote unlocking operation, remote window opening operation and remote vehicle search operation.

[0164] See also Figure 7 , Figure 7 FIG. 1 is a structural diagram of an electronic device disclosed in an embodiment of the present application. Figure 7 The electronic device shown may include components such as a processor 701 , a memory 702 , a display unit 703 , an input unit 704 , a sensor 705 , and an audio circuit 706 .

[0165] The processor 701 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, so as to monitor the electronic device as a whole. Optionally, the processor 701 may include one or more processing units; optionally, the processor 701 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.

[0166] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 702. The memory 702 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating devices, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device (such as audio data, phone book, etc.), etc. In addition, the memory 702 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0167] The display unit 703 can be used to display information input by the user or information provided to the user and various menus of the electronic device. The display unit 703 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel may cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 701 to determine the type of touch event. Subsequently, the processor 701 provides a corresponding visual output on the display panel according to the type of touch event. Among them, the touch panel and the display panel are not in contact with each other. Figure 7 The touch panel and the display panel can be used as two independent components to realize the input and output functions of the electronic device, or the touch panel and the display panel can be integrated to realize the input and output functions of the electronic device.

[0168] The input unit 704 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the input unit 704 may include a touch panel and other input devices. A touch panel, also referred to as a touch screen, can collect user touch operations on or near it (such as operations performed by a user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel), and drive the corresponding connection device according to a pre-set program. In addition, a variety of types such as resistive, capacitive, infrared, and surface acoustic waves can be used to implement the touch panel. In addition to the touch panel, the input unit 704 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.

[0169] The electronic device may also include at least one sensor 705, such as a magnetometer, a gyroscope sensor, a motion sensor, and other sensors. Specifically, the magnetometer is used to determine the orientation of the electronic device, and the gyroscope sensor can be used to determine the motion posture of the electronic device. It can be used for anti-shake shooting, and can also be used for navigation and somatosensory game scenes. As a type of motion sensor, the acceleration sensor can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the electronic device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc.; as for other sensors that the electronic device can also be configured with, such as pressure gauges, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0170] The audio circuit 706 may include a speaker and a microphone, and may provide an audio interface between a user and an electronic device. The audio circuit 706 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 706 and converted into audio data, and then the audio data is output to the processor 701 for processing, and then sent to another device through the video circuit, or the audio data is output to the memory 702 for further processing.

[0171] Although not shown, the electronic device may further include a power supply and a camera. Optionally, the camera may be located at the front or rear of the electronic device, which is not limited in the present embodiment.

[0172] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0173] In the embodiment of the present application, the processor 701 also has the following functions:

[0174] Get the target vehicle model information;

[0175] Determine the target USB parameters according to the target vehicle model information;

[0176] Based on the target USB parameters, a USB connection is established with the vehicle's onboard equipment.

[0177] In the embodiment of the present application, the processor 701 also has the following functions:

[0178] Check whether there are USB parameters bound to the target vehicle model information;

[0179] If it exists, the USB parameters bound to the target vehicle model information are used as the target USB parameters;

[0180] If not present, the default USB parameters are used as the target USB parameters.

[0181] In the embodiment of the present application, the target USB parameter is a USB parameter bound to the target vehicle model information; the processor 701 also has the following functions:

[0182] Updating the parameters in the USB driver of the electronic device from the default USB parameters to the target USB parameters;

[0183] Based on the updated USB driver, USB connection is made to the vehicle's onboard equipment.

[0184] In the embodiment of the present application, the processor 701 also has the following functions:

[0185] In the case of a vehicle computer disconnection scenario, the parameters in the updated USB driver are switched from the target USB parameters to the default USB parameters.

[0186] In the embodiment of the present application, the electronic device includes a first near field communication module, and the processor 701 also has the following functions:

[0187] Locking the doors of the vehicle via the first near field communication module;

[0188] When the vehicle doors are locked, determine that the vehicle is disconnected from the computer.

[0189] In the embodiment of the present application, the processor 701 also has the following functions:

[0190] When a first control operation is detected on the vehicle, it is determined that the vehicle is in a vehicle-computer disconnection scenario; wherein the first control operation includes a remote locking operation or a remote shutdown operation.

[0191] In the embodiment of the present application, the electronic device pre-stores a default USB parameter and at least one alternative USB parameter, and the processor 701 also has the following functions:

[0192] Use the default USB parameters to connect to the vehicle's head unit via USB;

[0193] In case of USB connection failure with the vehicle device, obtain the input vehicle model information;

[0194] A USB connection is established with the vehicle's on-board device based on the first alternative USB parameter. If the USB connection is successfully established with the on-board device, the first alternative USB parameter is bound to the input vehicle model information; the first alternative USB parameter is one of at least one alternative USB parameter.

[0195] In the embodiment of the present application, the electronic device includes a first near field communication module, and the vehicle includes a second near field communication module; the processor 701 also has the following functions:

[0196] When the first near field communication module establishes a communication connection with the second near field communication module, the target vehicle model information sent by the second near field communication module of the vehicle is acquired through the first near field communication module.

[0197] In the embodiment of the present application, the processor 701 also has the following functions:

[0198] Unlocking the door of the vehicle through the first near field communication module;

[0199] When it is determined that the vehicle door is unlocked, a communication connection is established with a second near field communication module through the near field communication module.

[0200] In the embodiment of the present application, the processor 701 also has the following functions:

[0201] When a second control operation is detected on the vehicle, target vehicle model information of the vehicle is obtained; wherein the second control operation includes any one of the following: a remote start operation, a remote unlocking operation, a remote window opening operation, and a remote vehicle search operation.

[0202] An embodiment of the present application discloses a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method executed by the electronic device in the embodiment of the present application is implemented.

[0203] The embodiment of the present application discloses a computer program product. When the computer program product is executed on a computer, the computer implements the method executed by the electronic device in the embodiment of the present application.

[0204] An embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer implements the method executed by the electronic device in the embodiment of the present application.

[0205] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0206] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0207] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0208] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0209] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0210] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0211] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0212] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0213] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0214] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0215] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0216] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0217] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for determining parameters of a universal serial bus (USB), characterized in that: The method is applicable to an electronic device, comprising: Get the target vehicle model information; Determine target USB parameters according to the target vehicle model information; Based on the target USB parameters, a USB connection is established with a vehicle computer device of the vehicle.

2. The method according to claim 1, characterized in that Determining target USB parameters according to the target vehicle model information includes: Find out whether there is a USB parameter bound to the target vehicle model information; If it exists, the USB parameters bound to the target vehicle model information are used as the target USB parameters; If not present, the default USB parameters are used as the target USB parameters.

3. The method according to claim 2, characterized in that The target USB parameter is a USB parameter bound to the target vehicle model information; and the USB connection with the vehicle equipment of the vehicle based on the target USB parameter includes: Updating the parameters in the USB driver of the electronic device from the default USB parameters to the target USB parameters; Based on the updated USB driver, a USB connection is established with the vehicle's onboard equipment.

4. The method according to claim 3, characterized in that After the updated USB driver is connected to the vehicle equipment via USB, the method further includes: In the case of a vehicle-computer disconnection scenario, the parameters in the updated USB driver are switched from the target USB parameters to the default USB parameters.

5. The method according to claim 4, characterized in that The electronic device includes a first near field communication module, and the method further includes: Locking the doors of the vehicle through the first near field communication module; When it is determined that the vehicle door is locked, it is determined that the vehicle is disconnected from the computer.

6. The method according to claim 4, characterized in that The method further comprises: When a first control operation is detected on the vehicle, it is determined that the vehicle is in a vehicle-computer disconnection scenario; wherein the first control operation includes a remote locking operation or a remote shutdown operation.

7. The method according to any one of claims 2 to 6, characterized in that: The electronic device pre-stores a default USB parameter and at least one alternative USB parameter, and the method further includes: Using the default USB parameters, a USB connection is established with the vehicle's onboard equipment; In case the USB connection with the vehicle device fails, obtaining the input vehicle model information; A USB connection is established with the vehicle's on-board device based on a first alternative USB parameter. If a USB connection is successfully established with the on-board device, the first alternative USB parameter is bound to the input vehicle model information; the first alternative USB parameter is one of the at least one alternative USB parameter.

8. The method according to claim 1, characterized in that The electronic device includes a first near field communication module, and the vehicle includes a second near field communication module; The step of obtaining target vehicle model information of the vehicle includes: When the first near field communication module establishes a communication connection with the second near field communication module, the target vehicle model information sent by the second near field communication module of the vehicle is acquired through the first near field communication module.

9. The method according to claim 8, characterized in that Before acquiring the target vehicle model information sent by the second near field communication module of the vehicle through the first near field communication module, the method further includes: Unlocking the door of the vehicle through the first near field communication module; When it is determined that the vehicle door is unlocked, a communication connection is established with the second near field communication module through the near field communication module.

10. The method according to claim 1, characterized in that The step of obtaining target vehicle model information of the vehicle includes: When a second control operation is detected on the vehicle, target vehicle model information of the vehicle is obtained; wherein the second control operation includes any one of the following: a remote start operation, a remote unlocking operation, a remote window opening operation, and a remote vehicle search operation.

11. A device for determining USB parameters, characterized in that: The device is in an electronic device, and the device includes: A vehicle model acquisition unit, used to acquire target vehicle model information; A parameter determination unit, used to determine target USB parameters according to the target vehicle model information; A connection unit is used to establish a USB connection with a vehicle device of the vehicle based on the target USB parameters.

12. An electronic device, characterized in that: include: A memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method according to any one of claims 1 to 10.

13. A computer-readable storage medium having executable program code stored thereon, characterized in that: When the executable program code is executed by a processor, the method according to any one of claims 1 to 10 is implemented.