Control method, vehicle, electronic device, and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU XIAOPENG MOTORS TECH CO LTD
- Filing Date
- 2022-12-26
- Publication Date
- 2026-07-07
AI Technical Summary
The inconvenience of data exchange between portable devices and in-vehicle devices makes the screen mirroring process cumbersome and affects the user experience.
By using Near Field Communication (NFC) technology, the device information of the projection target can be directly obtained when the user enters the vehicle cabin, and a network connection and projection protocol can be automatically established to achieve data communication between the projection source and the projection target.
It improves the accuracy and efficiency of screen mirroring connections, reduces the complexity of user operations, and enhances the convenience of screen mirroring from in-vehicle devices.
Smart Images

Figure CN116017031B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of screen projection communication technology, specifically to a control method, a vehicle, an electronic device, and a computer-readable storage medium. Background Technology
[0002] With the advancement of in-vehicle audio-visual system technology, there is an increasing demand for transferring audio-visual entertainment from the small screens of portable devices such as mobile phones to the large screens of in-vehicle audio-visual systems. However, the current technology does not allow for convenient data exchange between portable devices and in-vehicle devices, which greatly affects the convenience of screen projection. This has become an urgent problem to be solved. Summary of the Invention
[0003] This application provides a control method, a vehicle, an electronic device, and a computer-readable storage medium to solve the technical problems described in the background art.
[0004] This application relates to a control method for a vehicle, comprising:
[0005] The screen projection source receives screen projection content data sent by the screen projection source. The screen projection source obtains first information about the screen projection target in the vehicle cabin that can be used for screen projection through near-field communication, and sends the screen projection content data after confirming that screen projection can be performed based on the first information. The first information includes the screen projection protocol supported by the screen projection target.
[0006] Control the target screen to display the screen-projected content.
[0007] Therefore, this application provides a screen projection control method for vehicles. Before a network connection is established between the projection source and the vehicle, all information related to the device, network connection, and projection protocol is directly transmitted to the projection source via Near Field Communication (NFC) technology. Based on the matching results from the above information, data exchange is performed with the projection source to ultimately achieve screen projection from the projection source to the vehicle and display the projected content. Compared to current technical solutions that require manual network setup and connection between the projection source and the projection target, this application, through Near Field Communication (NFC) technology, allows the projection source and the projection target to directly obtain relevant information about the projection target without establishing a network connection when the user enters the vehicle cabin. This greatly facilitates the pairing of the two devices and automatically establishes the corresponding network connection based on the pairing result to achieve screen projection, eliminating the need for cumbersome user operations and improving the efficiency and convenience of screen projection from in-vehicle devices.
[0008] The process of receiving the screen projection content data sent by the projection source also includes, prior to:
[0009] In the absence of a communication connection between the projection source and the projection target, a first communication link is established in response to a first connection request sent by the projection source based on the first communication link support information in the first information.
[0010] A communication connection is established with the projection source via the first communication link.
[0011] Thus, this application provides a method for establishing a communication connection with the projection source in advance when no communication network connection is established between the projection source and the projection target, which facilitates the transmission and confirmation of the projection protocol.
[0012] In response to the first connection request initiated by the projection source, the process of establishing a communication connection with the projection source via the first communication link further includes:
[0013] The screen projection protocol determined by the projection source based on the first information is obtained through the communication connection;
[0014] The screen casting connection preparation process is performed according to the screen casting protocol, so as to establish a screen casting connection with the screen casting source after the preparation process is completed.
[0015] Thus, this application provides a method for establishing a screen mirroring connection based on a communication connection and a screen mirroring source.
[0016] The step of performing screen casting connection preparation processing according to the screen casting protocol, so as to establish a screen casting connection with the screen casting source after the preparation processing is completed, includes:
[0017] In response to the received screen mirroring protocol from the screen mirroring source, screen mirroring connection preparation processing is performed;
[0018] After completing the screen projection connection preparation process, a second communication link is established;
[0019] A screen projection connection is established with the projection source via the second communication link, so as to receive the projection content data sent by the projection source through the second communication link.
[0020] Thus, this application provides a method for setting up a network connection to establish a screen mirroring connection.
[0021] This application also provides a control method for a screen projection source, including:
[0022] In response to a screen projection trigger operation on a screen projection target within the vehicle cabin, the system obtains first information about the screen projection target via near-field communication. The first information includes the screen projection protocols supported by the screen projection target.
[0023] If it is confirmed that screen projection is possible based on the first information, the projection content data is sent to the projection target so that the vehicle controls the projection target to display the projection content.
[0024] Thus, this application also provides a method for projecting a screen onto a vehicle-mounted target from the projection source side.
[0025] The method, in response to a screen-projection trigger operation on a target within the vehicle cabin suitable for screen projection, acquires first information about the target via near-field communication, and then further includes:
[0026] The screen casting protocols supported by the target screen casting in the first information are matched with the screen casting protocols supported by the screen casting source.
[0027] If the target screen and the source screen share at least one supported screen casting protocol, screen casting is confirmed to be possible.
[0028] Thus, this application provides a method for pre-matching the feasibility of screen casting and the communication link between the target screen casting source and the target screen casting in order to facilitate the subsequent establishment of a screen casting connection.
[0029] The control method provided in this application also includes:
[0030] If the target screen and the source screen do not share a common supported screen casting protocol, a message indicating that screen casting is not possible will be displayed to the user.
[0031] Thus, the method provided in this application can immediately remind users that screen casting is not allowed if screen casting fails.
[0032] Sending the screen-casting content data to the target screen includes:
[0033] Based on the first information, the first communication link supported by the projection target is determined;
[0034] A first connection request is initiated to the target screen to establish a communication connection with the target screen via the first communication link.
[0035] Thus, this application provides a method for establishing a communication connection with the target screen.
[0036] After initiating a first connection request to the projection target to establish a communication connection with the projection target via the first communication link, the process includes:
[0037] Based on the first information, determine the screen casting protocol supported by the target screen casting device;
[0038] Send the screen mirroring protocol to the target screen to establish a screen mirroring connection with the target screen.
[0039] Thus, this application provides a method for establishing a screen mirroring connection with the target.
[0040] Sending the screen mirroring protocol to the target screen mirroring device to establish a screen mirroring connection includes:
[0041] The second communication link is determined according to the aforementioned screen projection protocol;
[0042] In response to the target screen completing the screen casting connection preparation process according to the screen casting protocol, a screen casting connection is established with the target screen via the second communication link;
[0043] The projection content data is sent to the projection target via the second communication link.
[0044] Thus, this application provides a method for setting up a network connection to establish a screen mirroring connection.
[0045] This application also provides a vehicle, the vehicle including a memory and a processor, the memory storing a computer program, which, when executed by the processor, causes the processor to perform the control method as described above.
[0046] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the control method described above.
[0047] This application also provides a computer-readable storage medium storing a computer program that, when executed by one or more processors, implements the control method described above.
[0048] Additional aspects and advantages of embodiments of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of this application. Attached Figure Description
[0049] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0050] Figure 1 A flowchart illustrating the control method provided in this application;
[0051] Figure 2 A flowchart illustrating the control method provided in this application;
[0052] Figure 3 A flowchart illustrating the control method provided in this application;
[0053] Figure 4 A flowchart illustrating the control method provided in this application;
[0054] Figure 5 A flowchart illustrating the control method provided in this application;
[0055] Figure 6 A flowchart illustrating the control method provided in this application. Detailed Implementation
[0056] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of this application, and should not be construed as limiting the embodiments of this application.
[0057] With the development of vehicle intelligence, the hardware and software functions and performance of in-vehicle voice entertainment systems are becoming increasingly powerful. Compared to current portable mobile electronic devices such as smartphones and tablets, these systems offer larger screens and better sound effects, leading to a growing demand for screen mirroring from portable mobile devices to in-vehicle voice entertainment systems. However, in the process of mirroring from portable electronic devices to in-vehicle displays, issues arise such as the devices not being on the same network and difficulty in finding a receiving device. Common wireless mirroring solutions for mobile devices and large screens require both devices to be on the same network. This necessitates manual configuration of network connections and mirroring protocols, placing high technical demands on users. Most ordinary users lack the necessary technical knowledge, making it difficult for them to manually configure network connections and mirroring protocols for both ends of the screen. In other words, the process is cumbersome and results in a poor user experience.
[0058] In response to this, such as Figure 1 As shown, this application proposes a control method for a vehicle, comprising:
[0059] 02: Receive screen mirroring content data sent by the screen mirroring source;
[0060] Wherein: the projection source obtains the first information of the projection target in the vehicle cabin that can be used for projection through near-field communication, and sends projection content data when it is confirmed that projection can be performed based on the first information. The first information includes the projection protocol supported by the projection target.
[0061] 04: Control the content displayed on the target screen.
[0062] This application also provides a vehicle, which includes a memory and a processor; the memory stores a computer program, and the processor is used to receive projection content data sent by the projection source and to control the projection target to display the projection content.
[0063] Specifically, the projection source can be a portable mobile device, such as a smartphone, tablet, or laptop. These typically have Bluetooth and WLAN modules for establishing a network connection and a Near Field Communication (NFC) module. Correspondingly, the projection target can be a display device within the vehicle cabin, such as a central control screen, passenger-side screen, rear seat screens, or in-vehicle audio-visual peripherals like projection screens. These devices generally also have Bluetooth and / or WLAN modules and NFC support. In a specific example, when a user brings the projection source into the vehicle cabin or brings it close to or into contact with the projection target within the cabin, the projection source can directly read the device description, supported communication link description, and supported projection protocol description of the projection target via Near Field Communication (NFC). This information corresponds to the first piece of information mentioned above. When acquiring information via NFC, there is no need for the target and source of the projection to establish a network connection. This information transmission method allows both ends of the projection to exchange relevant projection information before establishing a network connection. Compared to the above-mentioned technical solutions, this application can transmit the relevant device description, network description, and projection protocol information of the projection target to the projection source in advance via NFC before establishing a projection connection. This provides reference information for the preparation work before the projection connection, effectively improving the accuracy and efficiency of the projection connection. After the first information is transmitted to the projection source, the projection target can respond based on the projection feasibility matching result made by the projection source according to the first information. In some examples, the projection source determines that the projection source and the projection target can project based on the first information. In this case, the projection target responds by preparing for the projection connection, including opening the communication link, receiving the projection protocol, and performing projection preparation work according to the projection protocol, so that the projection source and the projection target can establish a projection connection. Finally, the projection target obtains the projection content data sent by the projection source through the projection connection, parses it into projection content, and displays it on the projection target. The content to be projected can be audio, video, images, live interfaces, etc. The following example illustrates the control method provided in this application:
[0064] When a user brings a smartphone (the projection source) into the vehicle cabin, the smartphone uses NFC to read the device information of the central control screen (the projection target), supported communication links (including but not limited to Bluetooth and its corresponding Bluetooth communication protocol, WLAN and its corresponding WLAN communication protocol), and supported projection protocols (including but not limited to DLNA, AirPlay, etc.). Then, if the smartphone determines that projection can be achieved with the central control screen, the central control screen establishes a communication connection with the smartphone and obtains the projection protocol based on the communication connection. After obtaining the projection protocol, a projection connection is established according to the protocol requirements, ultimately enabling the content to be projected from the smartphone to the in-vehicle central control display device for display.
[0065] In some cases, to protect driving safety, avoid driver distraction, and give priority to other functions of the in-vehicle central control system, the NFC function of the central control screen automatically enters a dormant state when the vehicle is in a non-parking gear (i.e., other than P gear), rejecting requests from other devices to read information. This prevents screen projection from the central control screen, so as not to affect the driver's driving safety.
[0066] In some examples, since the NFC function may support other functions besides screen projection, in order to maintain the full functionality to the greatest extent, based on the above examples, when the vehicle is in a non-parking state (i.e., other than P gear), the central control screen will refuse the projection source to obtain the first information at the software level, so that the projection source cannot project to the central control screen, so as not to affect the driver's driving safety.
[0067] Therefore, this application provides a screen projection control method for vehicles. Before a network connection is established between the projection source and the vehicle, all information related to the device, network connection, and projection protocol is directly transmitted to the projection source via Near Field Communication (NFC) technology. Based on the matching results from the above information, data exchange is performed with the projection source to ultimately achieve screen projection from the projection source to the vehicle and display the projected content. Compared to current technical solutions that require manual network setup and connection between the projection source and the projection target, this application, through Near Field Communication (NFC) technology, allows the projection source and the projection target to directly obtain relevant information about the projection target without establishing a network connection when the user enters the vehicle cabin. This greatly facilitates the pairing of the two devices and automatically establishes the corresponding network connection based on the pairing result to achieve screen projection, eliminating the need for cumbersome user operations and improving the efficiency and convenience of screen projection from in-vehicle devices.
[0068] like Figure 2 As shown, step 02 is preceded by:
[0069] 011: In the absence of a communication connection between the projection source and the projection target, in response to the first connection request sent by the projection source according to the first communication link support information in the first information, a first communication link is established;
[0070] 013: Establish a communication connection with the projection source via the first communication link.
[0071] The processor is configured to, in the absence of a communication connection between the projection source and the projection target, respond to a first connection request sent by the projection source according to the first communication link support information in the first information, establish a first communication link, and establish a communication connection with the projection source via the first communication link.
[0072] Specifically, before sending the screen mirroring protocol data, since the screen mirroring source may not have established a network connection with the target when it obtains the first information, and a network connection is necessary to actually determine the screen mirroring protocol and establish a screen mirroring relationship, it is necessary to determine whether a communication connection needs to be established in advance based on whether a network connection already exists between the screen mirroring source and the target. If the screen mirroring source and the target have previously established a pairing relationship through some communication link, such as Bluetooth or WLAN, an automatic connection will occur when the screen mirroring source approaches the target; that is, the communication connection is already in place and no additional communication connection needs to be established. When there is no network connection between the screen mirroring source and the target, a communication connection needs to be established. On the target side, in response to the screen mirroring request sent by the screen mirroring source from the communication link determined based on the first information, the two establish a communication link based on this communication link. In some examples, such as when the target supports Bluetooth connection, the screen mirroring source obtains this information and initiates a connection request via Bluetooth. The target of the request is not limited; instead, a Bluetooth network environment can be established within the vehicle cabin environment, waiting for other devices to connect. In this scenario, the target device connects to the Bluetooth network environment and establishes a communication connection with the projection source based on the Bluetooth communication link.
[0073] Thus, this application provides a method for establishing a communication connection with the projection source in advance when no communication network connection is established between the projection source and the projection target, which facilitates the transmission and confirmation of the projection protocol.
[0074] like Figure 3 As shown, step 011 is followed by:
[0075] 0121: Obtain the screen projection protocol determined by the first information from the screen projection source via communication connection;
[0076] 0122: Perform screen casting connection preparation according to the screen casting protocol, so as to establish a screen casting connection with the screen casting source after the preparation is completed.
[0077] The processor is used to obtain the projection protocol determined by the projection source based on the first information via the first communication link, and to perform projection connection preparation processing according to the projection protocol, so as to establish a projection connection with the projection source after the preparation processing is completed.
[0078] Specifically, after establishing a communication connection between the two ends of the screen mirroring, they need to determine the screen mirroring protocol to be used. Since the screen mirroring source has already obtained the description information of the screen mirroring protocols supported by the target via NFC, the screen mirroring source selects one from the screen mirroring protocols supported by the target and informs the target via the communication link. After the target knows the screen mirroring protocol to be used, it prepares the screen mirroring connection in advance according to the communication link and protocol layer requirements specified in the protocol, so as to quickly establish a screen mirroring connection between the two ends. The screen mirroring connection is a network connection relationship used to transmit screen mirroring content information.
[0079] Thus, this application provides a method for establishing a screen mirroring connection based on a communication connection and a screen mirroring source.
[0080] like Figure 4 As shown, step 0122 includes:
[0081] 01221: In response to the received screen mirroring protocol from the screen mirroring source, perform screen mirroring connection preparation processing;
[0082] 01222: After completing the screen mirroring connection preparation process, establish a second communication link;
[0083] 01223: Establish a screen projection connection with the projection source via the second communication link to receive the projection content data sent by the projection source through the second communication link.
[0084] The processor is used to respond to the screen projection protocol sent by the screen projection source, perform screen projection connection preparation processing, and establish a second communication link after completing the screen projection connection preparation processing, and establish a screen projection connection with the screen projection source through the second communication link, so as to receive screen projection content data sent by the screen projection source through the second communication link.
[0085] Specifically, after receiving the casting protocol determined by the casting source, preparations for the casting connection are made according to the protocol's specifications. This mainly includes the necessary hardware and software environment and communication link. The communication link used for the casting connection can be the same as or different from the one used for the initial casting connection, depending on the casting protocol. For example, the DLNA casting protocol is based on a wired local area network (LAN) or a wireless local area network (WLAN). After preparation, the second communication link upon which the casting connection relies is activated, and a casting connection is established with the casting source based on this second communication link. For example, in some cases, the target side receives the DLNA protocol for this casting based on a Bluetooth-based communication connection. In this case, the target side pre-opens its wireless internet WLAN device and enters a connection-waiting state. When the casting source and target establish a casting connection, the target side simply accesses the WLAN network again to re-establish the connection. After the casting connection is established, the target side can directly obtain the casting content information from the casting source.
[0086] Thus, this application provides a method for setting up a network connection to establish a screen mirroring connection.
[0087] like Figure 5 As shown, on the other hand, this application also provides a control method for a screen projection source, including:
[0088] 001: In response to a screen projection trigger operation on a screen projection target within the vehicle cabin that can be used for screen projection, the first information of the screen projection target is obtained through near-field communication;
[0089] 002: If it is confirmed that screen projection can be performed based on the first information, send the projection content data to the projection target so that the vehicle controls the projection target to display the projection content.
[0090] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor is configured to respond to a screen projection trigger operation on a screen projection target in the vehicle cabin that can be used for screen projection, acquire first information of the screen projection target through near-field communication, and send screen projection content data to the screen projection target when it is confirmed that screen projection can be performed based on the first information, so that the vehicle controls the screen projection target to display the screen projection content.
[0091] Specifically, the aforementioned embodiments provide a screen projection control method from the target side. The following describes the screen projection control method from the source side. Before establishing a network connection with the target, as the source enters the vehicle cabin, approaches, or touches the target, it directly obtains information from the target based on the NFC communication protocol, including the target's device description, supported communication link description, and supported screen projection protocol description, corresponding to the aforementioned first information. After obtaining the first information, the source matches it with its corresponding information content. If both support at least one common item in their supported communication links and screen projection protocols (i.e., successful screen projection matching), the source determines that the target in the vehicle cabin is a legitimate target and then establishes a screen projection connection to display the projected content.
[0092] Thus, this application also provides a method for projecting a screen onto a vehicle-mounted target from the projection source side.
[0093] Step 001 is followed by:
[0094] The screen casting protocols supported by the target screen casting protocol in the first information are matched with the screen casting protocols supported by the source screen casting protocol.
[0095] If the target screen and the source screen are supported by at least one common screen casting protocol, screen casting is confirmed to be possible.
[0096] The processor is used to match the screen casting protocol supported by the target screen casting in the first information with the screen casting protocol supported by the source screen casting, and to confirm that screen casting can be performed if the target screen casting and the source screen casting have at least one screen casting protocol that they both support.
[0097] Specifically, the method described above is mainly used to pre-match the necessary conditions for the projection connection before establishing a projection connection between the projection source and the projection target. The existence of a mutually supported projection protocol is the fundamental condition for determining whether the projection source and the projection target can project. For example, in some cases, the projection source is a user's smartphone, and the projection target is an in-vehicle central control display device in the vehicle cabin. The smartphone compares the projection protocol description information previously obtained via NFC for the in-vehicle central control display device with its own supported projection protocol information. If it finds that both the in-vehicle central control display device and itself support the DLNA projection protocol, then it confirms that the in-vehicle central control display device and itself can project.
[0098] Thus, this application provides a method for pre-matching the feasibility of screen casting and the communication link between the target screen casting source and the target screen casting in order to facilitate the subsequent establishment of a screen casting connection.
[0099] The control method provided in this application also includes:
[0100] If the target screen and the source screen do not share a common supported screen casting protocol, a message indicating that screen casting is not possible will be displayed to the user.
[0101] The processor is used to provide a message to the user indicating that screen casting is not possible when the target screen casting and the source screen casting do not share a common supported screen casting protocol.
[0102] Specifically, in some cases, the casting protocols supported by the target device and the casting source do not overlap, meaning the two devices cannot establish a casting connection and transmit data using their respective supported protocols. For example, if the target device only supports the AirPlay protocol, while the casting source does not, then the two devices do not share a common casting protocol, and casting is impossible. In this situation, there is no need to establish a further communication and casting connection, but for user experience reasons, it is necessary to inform the user that casting is not possible. Therefore, when the casting source detects that the target device cannot cast to it, it can notify the user of the casting failure through one or more of the following methods: display, vibration, ringing, or voice prompt.
[0103] Thus, the method provided in this application can immediately remind users that screen casting is not allowed if screen casting fails.
[0104] like Figure 6 As shown, step 002 includes:
[0105] 0021: Based on the first information, determine the first communication link supported by the target screen;
[0106] 0022: Initiate a first connection request to the target screen to establish a communication connection with the target screen via the first communication link.
[0107] The processor is used to determine, based on the first information, the first communication link supported by the projection target, and to initiate a first connection request to the projection target in order to establish a communication connection with the projection target via the first communication link.
[0108] Specifically, as described in the preceding embodiments, the first information includes the communication links supported by the projection target. Since the projection source knows the communication links supported by the projection target but not vice versa, in order to quickly establish a communication connection with the projection target, the projection source needs to confirm which communication link the communication connection is based on. After selecting the first communication link as the basis for the communication connection, a network connection is directly established with the projection target based on this communication link, which constitutes the communication connection. In some examples, for instance, if the projection target supports Bluetooth connection, the projection source obtains this information in the first information and initiates a Bluetooth connection request via Bluetooth. The target of the request is not limited; instead, a Bluetooth network environment is established within the vehicle cabin environment, waiting for other devices to connect. In this case, the projection target accesses the Bluetooth network environment and establishes a communication connection with the projection source based on the Bluetooth communication link.
[0109] Thus, this application provides a method for establishing a communication connection with the target screen.
[0110] Step 0022 is followed by:
[0111] Based on the first piece of information, determine the screen casting protocols supported by the target screen casting device;
[0112] Send the screen mirroring protocol to the target screen to establish a screen mirroring connection.
[0113] The processor is used to determine the screen mirroring protocol supported by the target screen mirroring based on the first information, and to send the screen mirroring protocol to the target screen mirroring to establish a screen mirroring connection with the target screen mirroring.
[0114] Specifically, as in the examples of the aforementioned embodiments, the first information includes the communication protocols supported by the target screen. Since the screen casting source side knows the screen casting protocols supported by the target screen but not vice versa, in order to quickly establish a screen casting connection with the target screen, the screen casting source side needs to confirm which screen casting protocol is used. After selecting the screen casting protocol, a network connection for screen casting is directly established with the target screen based on this screen casting protocol, which is called a screen casting connection. For example, in some examples, the user's smartphone selects the DLNA protocol as the screen casting protocol used for this screen casting based on the screen casting protocols supported by the central control screen. In this case, the smartphone informs the central control screen that the screen casting protocol used is DLNA based on the communication connection, so that a screen casting connection is established between the smartphone and the central control screen.
[0115] Thus, this application provides a method for establishing a screen mirroring connection with the target.
[0116] Send a screen mirroring protocol to the target screen to establish a screen mirroring connection, including:
[0117] The second communication link is determined according to the screen mirroring protocol;
[0118] In response to the target screen completing the screen casting connection preparation process according to the screen casting protocol, a screen casting connection is established with the target screen via the second communication link;
[0119] The projection content data is sent to the projection target via the second communication link.
[0120] The processor is used to determine the second communication link according to the screen projection protocol, and to establish a screen projection connection with the screen projection target via the second communication link in response to the screen projection target completing the screen projection connection preparation process according to the screen projection protocol, and to send screen projection content data to the screen projection target via the second communication link.
[0121] Specifically, the projection source determines the communication link for the upcoming projection connection based on the established projection protocol, corresponding to the second communication link mentioned above. For example, in some cases, if the user's smartphone determines that the projection uses the DLNA protocol, then based on the DLNA protocol, it determines that the second communication link is a wireless local area network (WLAN), and the projection connection with the in-vehicle central control display device should be based on this WLAN communication link. After informing the projection target of the projection protocol, the projection target will perform connection preparation work according to the projection protocol, including preparing for the connection of the second communication link, such as starting the software and hardware that support the second communication link. For example, in a specific example, when the in-vehicle central control display device learns that the projection is based on the DLNA protocol, it will turn on its own WLAN module and start the WLAN connection search function to prepare for establishing a projection connection based on WLAN. After the projection connection is established, the projection source directly sends the projection content information to the projection target through the projection connection, so that the projection target can obtain the projection content information, parse the projection content, and finally display the projection content on the projection target.
[0122] This application also provides a computer-readable storage medium storing a computer program that, when executed by one or more processors, implements the control method described above.
[0123] In the description of this specification, the references to terms such as "some embodiments," "in one example," "exemplarily," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0124] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this application pertain.
[0125] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A control method for a vehicle, characterized in that, The method includes: The system receives projection content data sent by a projection source. When there is no network connection between the projection source and the projection target, the projection source obtains first information about the projection target available for projection within the vehicle cabin via near-field communication. It then matches the projection protocol supported by the projection target with the projection protocol supported by the projection source. If the projection target and the projection source mutually support at least one projection protocol, the system confirms that projection is possible. Upon confirmation that projection is possible, the system sends the projection content data. The first information includes the projection protocol supported by the projection target, as well as at least one first communication link and at least one second communication link supported by the projection target. The projection source and the projection target negotiate the projection protocol via the first communication link and establish a projection connection via the second communication link according to the projection protocol. The projection target receives the projection content data via the projection connection. Control the target screen to display the screen-projected content.
2. The method according to claim 1, characterized in that, The process of receiving the screen projection content data sent by the projection source also includes, prior to: In the absence of a communication connection between the projection source and the projection target, a first communication link is established in response to a first connection request sent by the projection source based on the first communication link support information in the first information. A communication connection is established with the projection source via the first communication link.
3. The method according to claim 2, characterized in that, In response to the first connection request initiated by the projection source, the process of establishing a communication connection with the projection source via the first communication link further includes: The screen projection protocol determined by the projection source based on the first information is obtained through the communication connection; The screen casting connection preparation process is performed according to the screen casting protocol, so as to establish a screen casting connection with the screen casting source after the preparation process is completed.
4. The method according to claim 3, characterized in that, The step of performing screen casting connection preparation processing according to the screen casting protocol, so as to establish a screen casting connection with the screen casting source after the preparation processing is completed, includes: In response to the received screen mirroring protocol from the screen mirroring source, screen mirroring connection preparation processing is performed; After completing the screen projection connection preparation process, a second communication link is established; A screen projection connection is established with the projection source via the second communication link, so as to receive the projection content data sent by the projection source through the second communication link.
5. A control method for a projection source, characterized in that, The method includes: In response to a screen projection trigger operation on a screen projection target within the vehicle cabin, and in the absence of a network connection with the screen projection target, the system obtains first information about the screen projection target via near-field communication. The first information includes the screen projection protocol supported by the screen projection target, as well as at least one first communication link and at least one second communication link supported by the screen projection target. The screen casting protocols supported by the target screen casting in the first information are matched with the screen casting protocols supported by the screen casting source. If the target screen and the source screen share at least one supported screen casting protocol, screen casting is confirmed to be possible. If screen mirroring is confirmed to be feasible, screen mirroring content data is sent to the target screen, so that the vehicle controls the target screen to display the screen mirroring content. The screen mirroring source and the target screen negotiate the screen mirroring protocol through the first communication link, and establish a screen mirroring connection through the second communication link according to the screen mirroring protocol. The target screen receives the screen mirroring content data through the screen mirroring connection.
6. The method according to claim 5, characterized in that, The method further includes: If the target screen and the source screen do not share a common supported screen casting protocol, a message indicating that screen casting is not possible will be displayed to the user.
7. The method according to claim 5, characterized in that, Sending the screen-casting content data to the target screen includes: Based on the first information, the first communication link supported by the projection target is determined; A first connection request is initiated to the target screen to establish a communication connection with the target screen via the first communication link.
8. The method according to claim 7, characterized in that, After initiating a first connection request to the projection target to establish a communication connection with the projection target via the first communication link, the process includes: Based on the first information, determine the screen casting protocol supported by the target screen casting device; Send the screen mirroring protocol to the target screen to establish a screen mirroring connection with the target screen.
9. The method according to claim 8, characterized in that, Sending the screen mirroring protocol to the target screen mirroring device to establish a screen mirroring connection includes: The second communication link is determined according to the aforementioned screen projection protocol; In response to the target screen completing the screen casting connection preparation process according to the screen casting protocol, a screen casting connection is established with the target screen via the second communication link; The projection content data is sent to the projection target via the second communication link.
10. A vehicle, characterized in that, The vehicle includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 1-4.
11. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 5-9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by one or more processors, implements the method as described in any one of claims 1-9.