Control method and device of external equipment and vehicle
By obtaining the unique identification information and target configuration files of external devices, configuring the on-board applications, the problem of on-board terminals requiring multiple APKs is solved, and efficient control of external devices and saving storage space is achieved.
Patent Information
- Application Number
- CN202411830068.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-28
AI Technical Summary
When it is necessary to display the data of multiple external devices, the on-board terminal needs to download the APK corresponding to each external device, resulting in large storage space and inconvenient interface management.
By obtaining the unique identification information of the external device, the target configuration file is obtained, which at least includes a protocol for data processing between the vehicle and the external device. Then, the preset on-board applications are configured according to the configuration file to achieve control of external devices.
There is no need to download the application corresponding to the external device. You only need to obtain the target configuration file to achieve control, save storage space, maintain the cleanliness of the interface, and improve data processing efficiency.
Smart Images

Figure CN119728755A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a control method, device and vehicle for an external device. Background Art
[0002] With the development of vehicle terminal technology, a large number of vehicle terminals have gradually opened up the installation permissions of application APK (Android Application Package). Users can download the APK corresponding to external devices on the vehicle terminal to control the external devices and display data.
[0003] However, when data from multiple external devices needs to be displayed, the vehicle terminal needs to download the APK corresponding to each external device. At this time, installing a large number of APKs not only takes up the storage space of the vehicle terminal, but also makes it inconvenient for users to query and manage a large number of APKs due to the limited size of the vehicle terminal interface. Summary of the invention
[0004] The embodiments of the present application provide a method, device and vehicle for controlling an external device, which can solve the problem of downloading and managing the APK corresponding to each external device by a vehicle terminal when data of multiple external devices need to be displayed.
[0005] In a first aspect, an embodiment of the present application provides a method for controlling an external device, the method comprising:
[0006] Acquire unique identification information of at least one first electronic device currently connected;
[0007] Acquire a target configuration file based on the unique identification information; the target configuration file at least includes a protocol for the vehicle and the first electronic device to perform data processing;
[0008] Configure the preset in-vehicle applications according to the target profile;
[0009] The first electronic device is controlled based on the configured in-vehicle application.
[0010] In a second aspect, an embodiment of the present application provides a control device for an external device, the device comprising:
[0011] A first acquisition module, used to acquire unique identification information of at least one first electronic device currently connected;
[0012] A second acquisition module is used to acquire a target configuration file based on the unique identification information; the target configuration file at least includes a protocol for the vehicle and the first electronic device to perform data processing;
[0013] A configuration module, used to configure a preset vehicle application according to a target configuration file;
[0014] The first control module is used to control the first electronic device based on the configured vehicle-mounted application.
[0015] In a third aspect, an embodiment of the present application provides a vehicle, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the first aspect described above when executing the computer program.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method of the first aspect described above is implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a vehicle, enables the vehicle to execute the method of the first aspect.
[0018] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the vehicle can obtain the unique identification information of at least one first electronic device currently connected, and obtain the target configuration file based on the unique identification information. Among them, since the target configuration file includes a protocol for the vehicle to process data with the first electronic device (for example, obtain, parse, and display). Therefore, after connecting with the first electronic device, the vehicle can configure the preset vehicle-mounted application according to the target configuration file so that the configured vehicle-mounted application can be equivalent to the application corresponding to the first electronic device. Furthermore, the vehicle can directly control the first electronic device based on the configured vehicle-mounted application. Based on this, using the above method, when it is necessary to control the external first electronic device, the vehicle does not need to download the application corresponding to the first electronic device, and only needs to obtain the corresponding target configuration file. Furthermore, not only can the vehicle not need to download a large number of applications to ensure the neatness of the interface of the vehicle terminal, but also the storage space of the vehicle terminal can be released. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 is a flow chart of an implementation method of a control method of an external device provided in one embodiment of the present application;
[0021] Figure 2This is a schematic diagram of an application scenario for determining a target configuration file in a method for controlling an external device provided in an embodiment of the present application;
[0022] Figure 3 is a flow chart of an implementation method of a control method of an external device provided by another embodiment of the present application;
[0023] Figure 4 It is a structural schematic diagram of a control device for an external device provided by an embodiment of the present application;
[0024] Figure 5 It is a structural schematic diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0025] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0026] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0027] It should be noted that the information collection process (such as face image collection process, fingerprint information collection process, etc.) / feature extraction process involved in this application is performed with the user's knowledge and permission, that is, the information collection process / feature extraction process complies with the requirements of laws and regulations and does not constitute an act that harms the public interest.
[0028] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0029] With the development of vehicle terminal technology, a large number of vehicle terminals have gradually opened up the installation permissions of application APK (Android Application Package). Users can download the APK corresponding to external devices on the vehicle terminal to control the external devices and display data.
[0030] For example, for a DDPAI dashcam, the vehicle terminal can download and log in to the DDPAI APK to connect to the DDPAI dashcam. Afterwards, the vehicle terminal can display the data captured by the dashcam by running the DDPAI APK.
[0031] However, when data from multiple external devices needs to be displayed, the vehicle terminal needs to download the APK corresponding to each external device. At this time, installing a large number of APKs not only takes up the storage space of the vehicle terminal, but also makes it inconvenient for users to query and manage a large number of APKs due to the limited size of the vehicle terminal interface.
[0032] Based on this, in order to save the storage space of the vehicle terminal and facilitate the user to manage and use the corresponding application to display the data of the external device, the embodiment of the present application provides a control method of an external device, which can be applied to the vehicle. Exemplarily, it can be applied to electronic devices such as vehicle terminals and central controllers. The embodiment of the present application does not impose any restrictions on the specific type of electronic devices.
[0033] See also Figure 1 , Figure 1 The following is a flowchart of a method for controlling an external device provided in an embodiment of the present application. The method comprises the following steps:
[0034] S101: Acquire unique identification information of at least one first electronic device currently connected.
[0035] In one embodiment, the first electronic device includes but is not limited to the above-mentioned driving recorder, camera equipment (for example, USB camera, or surround-view camera), game console, TV box, robot and other devices, without limitation thereto.
[0036] For example, please refer to Figure 2 , Figure 2 is a schematic diagram of an application scenario for determining a target configuration file in a control method of an external device provided in an embodiment of the present application. Figure 2 The instructions in this section will not be explained further.
[0037] It should be noted that when the vehicle needs to display the data of each first electronic device on the interface of the vehicle terminal, it needs to download the corresponding APK and log in first, which will not be explained in detail.
[0038] In one embodiment, the unique identification information may be represented by numbers, letters, or a combination thereof, without limitation. The unique identification information includes, but is not limited to, identification information such as the device ID, media access control address (MAC), and device serial number of the first electronic device.
[0039] Furthermore, the unique identification information may be composed of one or more identification information, which is not limited. In this embodiment, in order to improve the uniqueness of the first electronic device, multiple identification information may be used to form the unique identification information.
[0040] It is understandable that the first electronic device is a device of different types, and the same type of devices are usually manufactured by different device providers. Therefore, for different types of devices, only one identification information is used to characterize them, and there may be a scenario where the unique identification information is the same. Based on this, the unique identification information can be composed of multiple identification information.
[0041] In one embodiment, the connection between the first electronic device and the vehicle includes but is not limited to wireless connection and wired connection. Figure 2 The wireless connection may be a Wifi connection, and the wired connection may be a USB (Universal Serial Bus), a Type-C interface, an HDMI (High Definition Multimedia Interface), an Ethernet (ETH) interface, or a LVDS (Low Voltage Differential Signaling) interface, without limitation.
[0042] When the vehicle detects that the first external electronic device is connected via the above connection method, it can send an identification information acquisition request to the first electronic device. The identification information acquisition request can be used to request the first electronic device to send its own unique identification information to the vehicle.
[0043] Based on the above description, it can also be considered that the above unique identification information also includes the connection mode between the first electronic device and the vehicle, so as to further assist the vehicle in subsequently determining the target configuration file of the first electronic device based on the unique identification information.
[0044] In one embodiment, the number of the first electronic device may be one or more, which is not limited.
[0045] S102: Acquire a target configuration file based on the unique identification information.
[0046] In one embodiment, the target configuration file at least includes a protocol for the vehicle and the first electronic device to perform data processing, wherein the data processing includes but is not limited to data receiving, sending, parsing, packaging and other processing, which is not limited to this.
[0047] The protocol includes a common standard protocol and a private protocol used by each first electronic device. Figure 2 , standard protocols include but are not limited to BT601, PD, BT656, MQTT, RTSP, RTMP, UAC, HDMI and other protocols. And private protocols include but are not limited to 0x01 indicating that the first electronic device is turned on, 0x02 indicating that the first electronic device is turned off, 0x03 indicating that the first electronic device takes a photo, and other protocols, which are not limited. In this embodiment, the specific types of private protocols and standard protocols in the target configuration file are not limited.
[0048] It is understandable that, since the protocol for data processing with the first electronic device can be obtained, the vehicle can normally control the first electronic device, for example, display and process data of the first electronic device.
[0049] It should be noted that each first electronic device may correspond to a target configuration file. The vehicle may pre-store an association relationship between the configuration file and the unique identification information. Based on this, the vehicle may query the first configuration file corresponding to the unique identification information in the local cache to determine the first configuration file as the target configuration file.
[0050] The first configuration file may be published by a device provider of the first electronic device. The vehicle may download the first configuration file from a server corresponding to the first electronic device in advance and store it in a local cache.
[0051] It is understandable that storing the first configuration file corresponding to the first electronic device in the local cache can facilitate the vehicle to quickly query the first configuration file corresponding to the first electronic device based on the unique identification information when the first electronic device is subsequently connected to the vehicle. In turn, the efficiency of the data link connection between the vehicle and the first electronic device can be improved.
[0052] In another embodiment, when the first electronic device is connected to the vehicle for the first time, the local cache generally does not store the first configuration file corresponding to the first electronic device. Therefore, it is impossible to query the target configuration file in the local cache.
[0053] Based on this, the vehicle can also send a configuration information request instruction to the server when the first configuration file is not found in the local cache. Then, the second configuration file is received and the second configuration file is determined as the target configuration file. Figure 2 , the vehicle can download the above second configuration file from the cloud (server).
[0054] In one embodiment, the configuration information request instruction may be used to request the server to send a second configuration file corresponding to the unique identification information to the vehicle.
[0055] The configuration information request instruction needs to include the unique identification information of the first electronic device to assist the server in accurately querying the corresponding second configuration file.
[0056] In one embodiment, the above-mentioned “first”, “second”, etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0057] In another embodiment, when the first electronic device actively connects to the vehicle, the target configuration file corresponding to the first electronic device may also be actively sent by the first electronic device. In this case, the vehicle may directly obtain the target configuration file without the unique identification information.
[0058] It should be noted that, if the scenario in which the first electronic device actively sends the target configuration file is to be implemented, the first electronic device must have pre-stored its own corresponding configuration file when it is manufactured, and the configuration file can be updated in real time.
[0059] S103: Configure the preset vehicle-mounted application according to the target configuration file.
[0060] In the application, the above-mentioned vehicle-mounted application can be pre-set in the vehicle. Among them, when configuring the vehicle-mounted application, the protocol in the target configuration file can be configured as the protocol for data processing when the vehicle-mounted application is running. That is, when the vehicle-mounted application is running, data processing can be performed with the external device based on the protocol in the target configuration file to achieve control of the external device. Among them, the external device can be the first electronic device described above.
[0061] S104: Control the first electronic device based on the configured in-vehicle application.
[0062] In one embodiment, it has been described above that the target configuration file is configured with a protocol for the vehicle-mounted application to process data with the first electronic device. Based on this, after the vehicle is connected to the first electronic device, it can obtain the first data from the first electronic device based on the connection method. Then, the first data is processed based on the protocol in the target configuration file to control the first electronic device. For example, the first data is parsed and processed to obtain fourth data, and the processed second data is displayed. Among them, when the vehicle-mounted application displays the second data, it can display the second data on the display interface of the vehicle terminal. Alternatively, a control instruction is sent to the first electronic device based on the protocol to control the operation of the first electronic device, which is not limited to this.
[0063] The first data mentioned above include but are not limited to video data, image data or text data, and the control instructions include but are not limited to instructions for opening, closing and uploading the corresponding first data, which are not limited to this.
[0064] In this embodiment, the vehicle can obtain the unique identification information of at least one first electronic device currently connected, and obtain the target configuration file based on the unique identification information. Among them, since the target configuration file includes a protocol for the vehicle to process data with the first electronic device (for example, obtain, parse, and display). Therefore, after connecting with the first electronic device, the vehicle can configure the preset vehicle-mounted application according to the target configuration file so that the configured vehicle-mounted application can be equivalent to the application corresponding to the first electronic device. Furthermore, the vehicle can directly control the first electronic device based on the configured vehicle-mounted application. Based on this, using the above method, when it is necessary to control the external first electronic device, the vehicle does not need to download the application corresponding to the first electronic device, but only needs to obtain the corresponding target configuration file. Furthermore, not only can the vehicle not need to download a large number of applications to ensure the neatness of the interface of the vehicle terminal, but also the storage space of the vehicle terminal can be released.
[0065] In another embodiment, when the method of controlling the first electronic device includes displaying the first data obtained from the first electronic device, the vehicle can display the first data on the display screen of the vehicle terminal, or on the display screen of other vehicle equipment, or based on the screen projection function of the vehicle terminal, without limitation.
[0066] However, different first electronic devices usually have different formats of display interfaces when displaying their own data. In addition, when some first electronic devices are connected to a vehicle, the vehicle only needs to display the first data uploaded by the first electronic device, without responding to the control instructions sent by the vehicle. Therefore, it can be considered that the display interface corresponding to the control instructions sent by the vehicle that do not need to be responded to is usually different from the display interface corresponding to the control instructions sent by the vehicle that need to be responded to.
[0067] Based on this, in order to better display the first data corresponding to each first electronic device and improve the data interaction effect between the vehicle and the first electronic device, in this embodiment, the vehicle can also generate a display interface in the vehicle application based on the display interface information; and configure the protocol as a protocol for the vehicle application to control the first electronic device. Then, in the configured vehicle application, the first data obtained from the first electronic device is processed based on the protocol to obtain the second data, and the second data is displayed in the display interface.
[0068] In one embodiment, the display interface information may be information pre-stored in a target configuration file, that is, the target configuration file includes not only the protocol but also display interface information for displaying the second data.
[0069] The display interface information includes, but is not limited to, the size and layout of the display interface (e.g., menu bar, toolbar, pointer, etc.), and is not limited to this. The menu bar can be used to set control instructions and sub-control instructions to be executed; the toolbar can be used to complete the call and conversion of embedded tools (control controls); the pointer can be used to respond to user input events, such as mouse clicks, keyboard input, and other events.
[0070] It is understandable that when each first electronic device displays its own second data, the size and layout of its display interface are usually different. Therefore, in order to reasonably adapt the data display of multiple first electronic devices, the vehicle can generate a display interface in the vehicle application based on the above display interface information.
[0071] As an example, taking the second data to be displayed as video data, since the webpage developed by HTML5 technology has rich multimedia support and interactive capabilities, strong compatibility, higher scalability and flexibility, in order to provide a better user experience, the above display interface information can be: information required when generating a corresponding display interface based on HTML5.
[0072] Based on the above explanation of the menu bar, it can be considered that there are two scenarios for obtaining the first data from the first electronic device. The first scenario: when there is no control control for the user to touch on the display interface itself, the vehicle obtains the first data from the first electronic device. And, the second scenario: when there is a control control for the user to touch on the display interface, the vehicle obtains the first data from the first electronic device.
[0073] As a specific example, when the vehicle determines that there is no control control for the user to touch in the display interface, it can be considered that the user does not need to control the first electronic device. Based on this, when obtaining the first data from the first electronic device, the vehicle can directly use the third data sent by the first electronic device as the first data. At this time, the third data includes data actively sent by the electronic device.
[0074] The method for determining whether there is a control control in the display interface may be to determine whether the vehicle identifies the display interface information and whether the information for generating the control control is included; or the vehicle may perform image recognition on the display interface based on a preset control control recognition model and output a recognition result of whether there is a control control. In this embodiment, the method for determining whether there is a control control in the display interface is not limited.
[0075] By acquiring the first data in the above manner, the first electronic device can ensure that it only sends the third data that is allowed to be sent, thereby ensuring the confidentiality of the data. That is, the first electronic device can only send data unilaterally without responding to external control instructions.
[0076] Furthermore, when it is determined that there is a control control in the display interface, the vehicle can obtain the first data based on the control control. Specifically, when the user's first operation on the control control is not detected, it indicates that the third data actively uploaded by the first electronic device is data that the user intends to view. Therefore, the vehicle can use the third data as the first data.
[0077] Otherwise, when the first operation is detected, it can be considered that the third data actively uploaded by the first electronic device is not data that the user has the intention to view. Therefore, the vehicle can generate a control instruction corresponding to the first operation based on the protocol and send it to the first electronic device, and use the fourth data sent by the first electronic device as the first data. The fourth data includes data generated by the first electronic device in response to the control instruction.
[0078] The first operation includes but is not limited to one or more of a touch operation, a voice operation, and an input operation, and is not limited thereto. Also, the control instruction is generated by encapsulating the instruction to be sent based on the data transmission format in the protocol. After generating the control instruction, the in-vehicle application can send the control instruction to the first electronic device through a connection method with the first electronic device.
[0079] Exemplarily, when the control instruction is a time period instruction, the first electronic device may query the fourth data within the time period based on the time period included in the time period instruction and send it to the vehicle. The time period instruction may be generated by the vehicle in response to the time period information input by the user in the display interface. When the first electronic device detects the time period instruction, it may consider that the fourth data within the time period is data that the user intends to view.
[0080] In this embodiment, when there are control controls in the display interface, uploading corresponding third data or fourth data based on whether a first operation of the user on the control control is detected can enable the first electronic device to provide data that meets the user's viewing intention and improve the user's usage experience.
[0081] In another embodiment, it has been described above that there may be multiple first electronic devices connected to the vehicle, that is, there is a scenario where the vehicle obtains the first data from multiple first electronic devices.
[0082] However, the display screen of the vehicle-mounted terminal in the vehicle is unique, so when facing the first data uploaded by multiple first electronic devices, if the first data of a first electronic device is randomly displayed, the first data displayed may not be the data that the user has a stronger desire to view among the multiple first data, thereby reducing the user's usage experience.
[0083] Based on this, in order to improve the user experience, the vehicle needs to adopt a reasonable display strategy to display multiple first data.
[0084] Exemplarily, the vehicle may display selection controls corresponding to multiple first electronic devices in the vehicle-mounted application. Then, in response to the user's second operation, the second electronic device is determined from the multiple first electronic devices. Finally, the vehicle-mounted application is configured based on the target configuration file corresponding to the second electronic device, and the first electronic device is controlled based on the configured vehicle-mounted application; and the connection is maintained with the first electronic device other than the second electronic device.
[0085] In one embodiment, the vehicle may display a selection control of each first electronic device on the display screen of the vehicle terminal. That is, the selection control corresponds to the first electronic device one by one. The selection control may be in the form of a circle, a square, etc., which is not limited.
[0086] The second operation may be similar to the first operation, or may be one or more of a touch operation, a voice operation, and an input operation, and there is no limitation on this.
[0087] As an example, after detecting a user's touch operation on any selected control, it can be considered that the second electronic device corresponding to the selected control is a device that the user has a stronger control intention among multiple first electronic devices. Furthermore, based on the target configuration file corresponding to the second electronic device, the in-vehicle application is configured, and the second electronic device is controlled based on the configured in-vehicle application, which can improve the user experience.
[0088] Furthermore, when the second electronic device is controlled based on the configured in-vehicle application, the vehicle does not disconnect from the other first electronic devices. That is, while controlling the second electronic device (displaying the first data corresponding to the second electronic device), the vehicle can maintain connection with other first electronic devices in the background and still obtain the first data from other first electronic devices. Furthermore, when the user ends the control of the second electronic device (for example, after viewing the first data corresponding to the second electronic device), the vehicle can quickly control another first electronic device (for example, quickly display the first data corresponding to another first electronic device) in response to the user's switching operation. Based on this, when the vehicle needs to control other first electronic devices, there is no need to connect again, thereby improving the efficiency of the vehicle in controlling multiple first electronic devices. For example, the display efficiency of the vehicle in displaying the first data of multiple first electronic devices is improved.
[0089] It should be noted that before switching control of another first electronic device, the vehicle may cancel the configuration of the in-vehicle application for the target configuration file corresponding to the second electronic device, and configure the in-vehicle application based on the target configuration file corresponding to the other first electronic device.
[0090] In another embodiment, the vehicle may also generate a plurality of display windows corresponding to the first electronic devices in the configured vehicle-mounted application. Then, for any display window, based on the configured vehicle-mounted application, the corresponding first electronic device is controlled in the display window.
[0091] In one embodiment, the vehicle can divide the display screen of the vehicle terminal into multiple areas of equal size and number according to the number of first electronic devices. At this time, each area will serve as a display window.
[0092] In another embodiment, the vehicle may also adjust the size of each display window according to the user's adjustment instruction. Or, according to the user's adjustment instruction, delete the display window. That is, even if there are multiple first electronic devices connected to the vehicle at the same time, the vehicle may display the display windows corresponding to some of the multiple first electronic devices according to the user's adjustment instruction.
[0093] Among them, based on the configured in-vehicle application, the manner of controlling the corresponding first electronic device in the display window can be referred to the above example description, and no further explanation is given for this.
[0094] For example, when the first data corresponding to each first electronic device needs to be displayed, the in-vehicle application can generate a display interface in a display window based on the display interface information in the target configuration file corresponding to each first electronic device. Then, the first data is processed based on the corresponding protocol to obtain second data, and the second data is displayed in the display window corresponding to the first electronic device.
[0095] As an example, the vehicle can associate the display window with the unique identification information in the first electronic device. At this time, when obtaining the first data from the first electronic device, the first electronic device can also send the unique identification information to the vehicle at the same time. Furthermore, the vehicle-mounted application in the vehicle can first parse the first data based on the unique identification information using the protocol in the corresponding target configuration file to obtain the second data. Then, the second data is displayed in the display interface of the corresponding display window based on the unique identification information.
[0096] Based on this, by adopting the above method, the vehicle can simultaneously display the first data of multiple first electronic devices, thereby improving the user experience of viewing the first data.
[0097] In another embodiment, referring to Figure 3 , Figure 3 This is a flowchart of an implementation method of a control method of an external device provided by another embodiment of the present application. For ease of explanation, in this embodiment, the vehicle-mounted terminal in the vehicle is used as the execution subject, the number of the first electronic device (for example, a driving recorder) is 1, and the control of the first electronic device to display the first data of the first electronic device is explained as an example.
[0098] First, after the driving recorder is turned on, it can be connected to the vehicle terminal through a wired connection or a wireless connection. After that, the vehicle terminal can send an identification information acquisition request to the driving recorder to request the driving recorder to send its own unique identification information.
[0099] Afterwards, the vehicle terminal may first query whether there is a first configuration file corresponding to the unique identification information from the local cache. If the first configuration file is found, the first configuration file is determined as the target configuration file. Otherwise, when the first configuration file is not found from the local cache, the vehicle terminal may send a configuration information request instruction containing the unique identification information to the backend server. Then, the vehicle terminal may receive the second configuration file sent by the backend server and determine the second configuration file as the target configuration file.
[0100] Then, the vehicle terminal can generate a display interface in the vehicle application based on the interface display information in the target configuration file, and can determine whether there is a control widget for the user to touch in the display interface.
[0101] Finally, when it is determined that there is no control control in the display interface, the vehicle terminal can directly use the third data sent by the driving recorder as the first data and display it in the display interface. Otherwise, when it is determined that there is a control control in the display interface, a corresponding control instruction is generated in response to the user's first operation on the control control and sent to the driving recorder. At this time, the driving recorder can send the fourth data to the vehicle terminal according to the control instruction. Then, the vehicle terminal can use the fourth data as the first data and display it in the display interface.
[0102] Based on the above description, when it is necessary to display the first data of an external first electronic device, the above method can be used without the vehicle downloading the application corresponding to the first electronic device. It is only necessary to obtain the corresponding target configuration file and configure it in the vehicle application. Furthermore, not only is it unnecessary for the vehicle to download a large number of applications, ensuring the neatness of the interface of the vehicle terminal, but also the storage space of the vehicle terminal can be freed up. Moreover, when it is necessary to display the first data of a new first electronic device in the future, it is only necessary to upload the corresponding target configuration file and unique identification information in the local cache or server. There is no need to develop and download the APK of the new first electronic device, which reduces the investment of the equipment provider.
[0103] See also Figure 4 , Figure 4 1 is a block diagram of a control device for an external device provided in an embodiment of the present application. The control device for an external device in this embodiment includes modules for executing Figures 1 to 3 For details, please refer to the steps in the corresponding embodiment. Figures 1 to 3 as well as Figures 1 to 3 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 4 , the control device 400 of the external device may include: a first acquisition module 410, a second acquisition module 420, a configuration module 430 and a first control module 440, wherein:
[0104] The first acquisition module 410 is configured to acquire unique identification information of at least one first electronic device currently connected.
[0105] The second acquisition module 420 is used to acquire a target configuration file based on the unique identification information; the target configuration file at least includes a protocol for the vehicle and the first electronic device to perform data processing.
[0106] The configuration module 430 is used to configure the preset vehicle-mounted application according to the target configuration file.
[0107] The first control module 440 is used to control the first electronic device based on the configured vehicle-mounted application.
[0108] In one embodiment, the second acquisition module 420 is further used for:
[0109] In a local cache of the vehicle, a first configuration file corresponding to the unique identification information is searched; and the first configuration file is determined as a target configuration file.
[0110] In one embodiment, the second acquisition module 420 is further used for:
[0111] If the first configuration file is not found in the local cache, a configuration information request instruction is sent to the server; the configuration information request instruction is used to request the server to send a second configuration file corresponding to the unique identification information to the vehicle; the second configuration file is received, and the second configuration file is determined as the target configuration file.
[0112] In one embodiment, the configuration module 430 is further configured to:
[0113] A display interface is generated in the in-vehicle application based on the display interface information; and a protocol is configured as a protocol for the in-vehicle application to control the first electronic device.
[0114] The first control module 440 is further configured to:
[0115] In the configured in-vehicle application, first data obtained from the first electronic device is processed based on the protocol to obtain second data; and the second data is displayed in the display interface.
[0116] In one embodiment, the control device 400 of the external device further includes:
[0117] The first determining module is used to use the third data sent by the first electronic device as the first data if there is no control control for the user to touch in the display interface; the third data includes data actively sent by the first electronic device.
[0118] The third acquisition module is used to acquire the first data based on the control control if there is a control control in the display interface.
[0119] In one embodiment, the third acquisition module is further used for:
[0120] If the user's first operation on the control control is not detected, the third data is used as the first data; if the first operation is detected, a control instruction corresponding to the first operation is generated based on the protocol and sent to the first electronic device, and the fourth data sent by the first electronic device is used as the first data; the fourth data includes data generated by the first electronic device in response to the control instruction.
[0121] In one embodiment, the first electronic device includes a plurality of external devices; the control device 400 of the external device further includes:
[0122] The display module is used to display selection controls corresponding to a plurality of first electronic devices respectively in a vehicle-mounted application.
[0123] The second determining module is used to determine a second electronic device from a plurality of first electronic devices in response to a second operation of the user.
[0124] a second control module, configured to configure the in-vehicle application based on the target configuration file corresponding to the second electronic device, and to control the second electronic device based on the configured in-vehicle application; and
[0125] The connection module is used to maintain connection with the first electronic device except the second electronic device.
[0126] In one embodiment, the first electronic device includes a plurality of electronic devices; the first control module 440 is further configured to:
[0127] In the configured in-vehicle application, a plurality of display windows corresponding to the first electronic devices are generated; for any display window, based on the configured in-vehicle application, the corresponding first electronic device is controlled in the display window.
[0128] When it is understood that Figure 4 In the structural block diagram of the control device of the external device shown in FIG. 1 , each module is used to execute Figures 1 to 3 The steps in the corresponding embodiments, and for Figures 1 to 3 Each step in the corresponding embodiment has been explained in detail in the above embodiment. Figures 1 to 3 as well as Figures 1 to 3 The relevant descriptions in the corresponding embodiments are not repeated here.
[0129] Figure 5 is a structural block diagram of a vehicle provided by an embodiment of the present application. Figure 5 As shown, the vehicle 500 of this embodiment includes: a processor 510, a memory 520, and a computer program 530 stored in the memory 520 and executable on the processor 510, such as a program of a control method for an external device. When the processor 510 executes the computer program 530, the steps in each embodiment of the control method for each external device described above are implemented, such as Figure 1 Alternatively, the processor 510 implements the above when executing the computer program 530 Figure 4 The functions of each module in the corresponding embodiment are, for example, Figure 4 For details on the functions of each module shown, please refer to Figure 4 Related description in the corresponding embodiment.
[0130] Exemplarily, the computer program 530 may be divided into one or more modules, one or more modules are stored in the memory 520, and are executed by the processor 510 to implement the control method of the external device provided in the embodiment of the present application. One or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 530 in the vehicle 500. For example, the computer program 530 may implement the control method of the external device provided in the embodiment of the present application.
[0131] The vehicle 500 may include, but is not limited to, a processor 510 and a memory 520. Those skilled in the art will appreciate that Figure 5 It is only an example of vehicle 500 and does not constitute a limitation of vehicle 500. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, buses, etc.
[0132] The processor 510 may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0133] The memory 520 may be an internal storage unit of the vehicle 500, such as a hard disk or memory of the vehicle 500. The memory 520 may also be an external storage device of the vehicle 500, such as a plug-in hard disk, a smart memory card, a flash memory card, etc. equipped on the vehicle 500. Furthermore, the memory 520 may also include both an internal storage unit of the vehicle 500 and an external storage device.
[0134] An embodiment of the present application provides a computer-readable storage medium, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a method for controlling an external device as in the above-mentioned embodiments is implemented.
[0135] An embodiment of the present application provides a computer program product. When the computer program product is run on a vehicle, the vehicle executes the control method of the external device in each of the above embodiments.
[0136] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for controlling an external device, characterized in that: The method comprises: Acquire unique identification information of at least one first electronic device currently connected; Acquire a target configuration file based on the unique identification information; the target configuration file at least includes a protocol for data processing between the vehicle and the first electronic device; configuring a preset in-vehicle application according to the target configuration file; The first electronic device is controlled based on the configured in-vehicle application.
2. The method according to claim 1, characterized in that The acquiring the target configuration file based on the unique identification information includes: In a local cache of the vehicle, query a first configuration file corresponding to the unique identification information; The first configuration file is determined as the target configuration file.
3. The method according to claim 2, characterized in that The acquiring of the target configuration file based on the unique identification information further includes: If the first configuration file is not found in the local cache, a configuration information request instruction is sent to the server; the configuration information request instruction is used to request the server to send a second configuration file corresponding to the unique identification information to the vehicle; The second configuration file is received, and the second configuration file is determined as the target configuration file.
4. The method according to claim 1, characterized in that: The target configuration file also includes display interface information; configuring the preset vehicle-mounted application according to the target configuration file includes: generating a display interface in the in-vehicle application based on the display interface information; and, Configuring the protocol as a protocol for the in-vehicle application to control the first electronic device; The controlling the first electronic device based on the configured in-vehicle application includes: In the configured in-vehicle application, first data acquired from the first electronic device is processed based on the protocol to obtain second data; The second data is displayed in the display interface.
5. The method according to claim 4, characterized in that After generating a display interface in the in-vehicle application based on the display interface information, the method further includes: If there is no control widget for the user to touch in the display interface, the third data sent by the first electronic device is used as the first data; the third data includes data actively sent by the first electronic device; If the control widget exists in the display interface, the first data is acquired based on the control widget.
6. The method according to claim 5, characterized in that If the control control exists in the display interface, acquiring the first data based on the control control includes: If the first operation of the user on the control component is not detected, taking the third data as the first data; If the first operation is detected, a control instruction corresponding to the first operation is generated based on the protocol and sent to the first electronic device, and the fourth data sent by the first electronic device is used as the first data; the fourth data includes data generated by the first electronic device in response to the control instruction.
7. The method according to any one of claims 1 to 6, characterized in that: The first electronic device includes a plurality of electronic devices; the method further includes: In the in-vehicle application, displaying a plurality of selection controls corresponding to the first electronic devices respectively; In response to a second operation of the user, determining a second electronic device from the plurality of first electronic devices; configuring the in-vehicle application based on the target configuration file corresponding to the second electronic device, and controlling the second electronic device based on the configured in-vehicle application; and, The connection is maintained with the first electronic device other than the second electronic device.
8. The method according to any one of claims 1 to 6, characterized in that: The first electronic device includes a plurality of devices; and the controlling the first electronic device based on the configured in-vehicle application includes: In the configured in-vehicle application, generating a plurality of display windows respectively corresponding to the first electronic devices; For any of the display windows, based on the configured in-vehicle application, control is performed with the corresponding first electronic device in the display window.
9. A control device for an external device, characterized in that: The device comprises: A first acquisition module, used to acquire unique identification information of at least one first electronic device currently connected; A second acquisition module is used to acquire a target configuration file based on the unique identification information; the target configuration file at least includes a protocol for the vehicle and the first electronic device to perform data processing; A configuration module, used to configure a preset vehicle-mounted application according to the target configuration file; The first control module is used to control the first electronic device based on the configured in-vehicle application.
10. A vehicle comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.