Mode switching method and device and electronic equipment
By obtaining the configuration parameters of the electronic device and switching modes according to user operations, the problem of a single function when the car-machine system provides the screen projection function is solved and the user experience is improved.
Patent Information
- Application Number
- CN202310187155.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
When providing the screen projection function, the car-machine system can only passively receive information from electronic devices, with single functions and poor user experience.
By responding to the insertion of the electronic device into the target interface, it obtains its configuration parameters, determines whether it has the screen projection function, switches modes according to user operations, displays the screen projection page or the charging page, and flexibly selects the screen projection or charging only mode.
It improves the user experience, allows users to flexibly choose whether to cast the screen, and solves the problem of single function of the car-machine system.
Smart Images

Figure CN118535109A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of automobile technology, and in particular to a mode switching method, device and electronic equipment. Background Art
[0002] At present, with the development of science and technology, the vehicle's on-board systems have gradually supported the screen projection function. For example, after the user chooses to turn on the screen projection function in the on-board system, the user can project the content displayed on the electronic device to the vehicle's on-board display screen, thereby realizing the screen projection function of the on-board system.
[0003] However, in the process of providing the screen projection function, the car system can only passively receive the screen projection information input from the electronic device. The functions provided by the car system are relatively simple and the user experience is poor. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a mode switching method, device and electronic device.
[0005] In order to achieve the above objectives, the present invention adopts the following technical solutions:
[0006] In a first aspect, the present disclosure provides a mode switching method, comprising: in response to an electronic device being inserted into a target interface, obtaining configuration parameters of the electronic device; determining whether the electronic device has a screen projection function based on the configuration parameters; in response to the electronic device having the screen projection function, entering a screen projection mode and displaying a first screen projection page; wherein the first screen projection page includes a charging mode control for indicating charging only; in response to a selection operation on the charging mode control, switching from the screen projection mode to the charging only mode, and exiting the first screen projection page.
[0007] In some feasible examples, the configuration parameters include a target identifier for indicating that the electronic device supports the screen projection function; determining whether the electronic device has the screen projection function based on the configuration parameters includes: determining that the electronic device has the screen projection function when it is determined that the configuration parameters include the target identifier.
[0008] In some possible implementations, the target identifier includes a projection output resolution.
[0009] In some feasible examples, the target interface includes a chip with a fast charging function; in response to a selection operation on a charging mode control, the screen projection mode is switched to a charging-only mode, and the first screen projection page is exited, including: in response to a selection operation on a charging mode control, the hot plug detection of the chip is reduced to a target threshold, the screen projection mode is switched to a charging-only mode, and the first screen projection page is exited.
[0010] In some feasible examples, the first projection page also includes projection data sent by the electronic device, and the projection data includes video information; exiting the first projection page includes: receiving callback information, and exiting the first projection page; wherein the callback information is used to indicate that the target process has not detected the video information.
[0011] In some feasible examples, after exiting the projection page, the mode switching method provided by the present disclosure also includes: displaying a charging page; wherein the charging page includes a projection mode control for indicating the execution of the projection function; in response to a selection operation of the projection mode control, switching from charging only mode to projection mode, displaying a second projection page.
[0012] In some feasible examples, in response to the selection operation of the projection mode control, the charging-only mode is switched to the projection mode, and a second projection page is displayed, including: in response to the selection operation of the projection mode control, the hot plug detection of the chip is raised from the target threshold to the specified threshold in response to the selection operation of the projection mode control.
[0013] In some feasible examples, displaying the first projection page includes obtaining projection data sent by the electronic device; wherein the projection data includes video information and audio information; decomposing the video information to generate a display data stream; decomposing the audio information to generate an audio data stream; and displaying the first projection page according to the display data stream and the audio data stream.
[0014] In a second aspect, the present disclosure provides a mode switching device, including: a processing unit, for controlling an acquisition unit to acquire configuration parameters of the electronic device in response to the electronic device being inserted into a target interface; the processing unit is also used to determine whether the electronic device has a screen projection function based on the configuration parameters acquired by the acquisition unit; the processing unit is also used to enter a screen projection mode in response to the electronic device having the screen projection function, and control a display unit to display a first screen projection page; wherein the first screen projection page includes a charging mode control for indicating charging only; the processing unit is also used to switch from the screen projection mode to the charging only mode in response to a selection operation on the charging mode control, and control the display unit to exit the first screen projection page.
[0015] In some feasible examples, the configuration parameters include a target identifier for indicating that the electronic device supports the screen projection function; the processing unit is specifically used to determine that the electronic device has the screen projection function when the configuration parameters acquired by the acquisition unit include the target identifier.
[0016] In some possible implementations, the target identifier includes a projection output resolution.
[0017] In some feasible examples, the target interface includes a chip with a fast charging function; a processing unit is specifically used to respond to a selection operation of a charging mode control, reduce the hot plug detection of the chip to a target threshold, switch from the projection mode to the charging-only mode, and control the display unit to exit the first projection page.
[0018] In some feasible examples, the first projection page also includes projection data sent by the electronic device, and the projection data includes video information. The mode switching device also includes a receiving unit; a processing unit is specifically used to control the display unit to exit the first projection page when callback information is received at the receiving unit; wherein the callback information is used to indicate that the target process has not detected the video information.
[0019] In some feasible examples, the processing unit is further used to control the display unit to display a charging page; wherein the charging page includes a projection mode control for indicating the execution of the projection function; the processing unit is further used to switch from the charging-only mode to the projection mode in response to a selection operation of the projection mode control, and control the display unit to display a second projection page.
[0020] In some implementable examples, the processing unit is specifically used to respond to the selection operation of the projection mode control, raise the hot plug detection of the chip from the target threshold to the specified threshold, switch from the charging-only mode to the projection mode, and control the display unit to display the second projection page. In some implementable examples, the acquisition unit is specifically used to acquire the projection data sent by the electronic device; wherein the projection data includes video information and audio information; the processing unit is specifically used to decompose the video information acquired by the acquisition unit to generate a display data stream; the processing unit is specifically used to decompose the audio information acquired by the acquisition unit to generate an audio data stream; the processing unit is specifically used to control the display unit to display the first projection page according to the display data stream and the audio data stream.
[0021] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, the memory being used to store a computer program; the processor being used to enable the electronic device to implement the mode switching method provided in the first aspect when executing the computer program.
[0022] In a fourth aspect, the present disclosure provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a computing device, the computing device implements the mode switching method provided in the first aspect above.
[0023] In a fifth aspect, the present disclosure provides a vehicle, comprising any mode switching device provided in the second aspect.
[0024] In the present disclosure, the name of the above-mentioned mode switching device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they fall within the scope of the claims of the present disclosure and their equivalent technologies.
[0025] These and other aspects of the present disclosure will become more apparent from the following description.
[0026] Compared with the prior art, the technical solution provided by the present invention has the following advantages:
[0027] In response to the electronic device being inserted into the target interface, the configuration parameters of the electronic device are obtained to determine whether the electronic device has a screen projection function, such as: if it is determined according to the configuration parameters that the electronic device has a screen projection function, the screen projection mode is entered and the first screen projection page is displayed. At this time, the first screen projection page includes a charging mode control for indicating charging only. Afterwards, in response to the selection operation of the charging mode control, the screen projection mode is switched to the charging only mode, and the first screen projection page is exited.
[0028] In addition, when the mode switching method provided by the present invention is applied to a car system, the user can flexibly choose whether to continue the screen projection mode. For example, when the user does not need to project the screen, the user can select the charging mode control to switch from the projection mode to the charging only mode and exit the first projection page at the same time, thereby improving the user experience and solving the problem in the prior art that the car system can only passively receive projection information input from the electronic device during the process of providing the projection function, the functions provided by the car system are relatively single, and the user experience is poor. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0031] Figure 1 One of the flowcharts of a mode switching method provided in an embodiment of the present disclosure;
[0032] Figure 2 This is one of the structural schematic diagrams of a mode switching device provided in an embodiment of the present disclosure;
[0033] Figure 3A second flowchart of a mode switching method provided in an embodiment of the present disclosure;
[0034] Figure 4 A third flowchart of a mode switching method provided in an embodiment of the present disclosure;
[0035] Figure 5 A fourth flowchart of a mode switching method provided in an embodiment of the present disclosure;
[0036] Figure 6 A fifth flowchart of a mode switching method provided in an embodiment of the present disclosure;
[0037] Figure 7 A sixth flowchart of a mode switching method provided in an embodiment of the present disclosure;
[0038] Figure 8 A seventh flowchart of a mode switching method provided in an embodiment of the present disclosure;
[0039] Fig. 9 A second structural diagram of a mode switching device provided in an embodiment of the present disclosure;
[0040] Fig.10 A second structural diagram of a vehicle-mounted terminal provided in an embodiment of the present disclosure;
[0041] Fig.11 A schematic diagram of the structure of a computer program product of a mode switching method provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0042] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0043] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0044] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0045] The I2C bus in the embodiments of the present disclosure is a simple, bidirectional, two-wire synchronous serial bus developed by Philips.
[0046] The execution subject of the mode switching method of the embodiment of the present application is a mode switching device, which can be set in a vehicle terminal or other equipment, and this embodiment does not limit this. When the mode switching device is set in a vehicle terminal, the mode switching method provided by the embodiment of the present disclosure can be executed by the vehicle controller.
[0047] Exemplarily, the mode switching method provided by the embodiment of the present disclosure is introduced by taking the execution subject of the mode switching method provided by the embodiment of the present disclosure as a vehicle-mounted terminal as an example.
[0048] like Figure 1 As shown, the mode switching method provided in the embodiment of the present disclosure includes the following steps S11-S14:
[0049] S11. In response to the electronic device being inserted into the target interface, obtaining configuration parameters of the electronic device.
[0050] In some examples, the electronic device may be a device with a screen projection function such as a mobile phone or a tablet computer, which is not limited here. Therefore, the electronic device may be used as an input end (Source end) to send video data and audio data to the vehicle terminal to realize screen projection on the vehicle terminal.
[0051] In some examples, the target interface may be a Universal Serial Bus (USB) interface.
[0052] In some examples, different electronic devices have different functions, so the functions of the electronic device can be determined through the configuration parameters of the electronic device, such as: when the configuration parameters include a target identifier that supports the screen projection function, it means that the electronic device has the screen projection function; when the configuration parameters do not include a target identifier that supports the screen projection function, it means that the electronic device does not have the screen projection function.
[0053] S12. Determine whether the electronic device has a screen projection function based on the configuration parameters.
[0054] S13: In response to the electronic device having a screen projection function, entering a screen projection mode and displaying a first screen projection page, wherein the first screen projection page includes a charging mode control for indicating charging only.
[0055] S14. In response to the selection operation of the charging mode control, the screen projection mode is switched to the charging-only mode, and the first screen projection page is exited.
[0056] In some examples, the vehicle terminal includes Figure 2 The system-on-chip (SoC) and target interface shown in the figure. Among them, the SOC includes an application layer, a framework layer, a driver layer and a video information processing chip. The application layer includes a screen projection application (such as sharescreen) for providing a screen projection function, and the screen projection application includes switch settings, display control, audio focus control, signal search and other modules. Among them, the user can use the switch setting to connect the electronic device to the target interface to execute the function, such as: when the user connects the electronic device to the target interface through the switch setting, the executed function is set to the screen projection mode. In this way, the next time the electronic device is connected to the target interface, the screen projection page is displayed. Alternatively, when the user connects the electronic device to the target interface through the switch setting, the executed function is set to the charging mode. In this way, the next time the electronic device is connected to the target interface, the charging page is displayed. The user can adjust the brightness, contrast and other parameters of the screen projection page through the display control. The user can adjust the volume, treble, bass and other parameters through the audio focus control. The user can search for devices with wireless screen projection function through signals. The target interface includes a chip with fast charging function (PD controller), a microcontroller unit (MCU), a video information processing chip and an I2C bus. The PD controller includes at least modules such as screen projection capability. The screen projection capability is used to determine whether the electronic device has the screen projection function based on configuration parameters.
[0057] In some examples, after the electronic device is connected to the target interface, the SOC will receive a CAN signal from the MCU, so that the SOC determines that the electronic device has been connected to the target interface. After that, the PD controller obtains the configuration parameters of the electronic device. When the PD controller determines that the electronic device has the screen projection function based on the configuration parameters, the PD controller will raise the hot plug detection (Hot Plug Detect, HPD) to a preset threshold, so that the data path between the PD controller and the electronic device, and the data path between the PD controller and the video information processing chip can be established. After that, the PD controller transmits both the video information and audio information sent by the electronic device to the video information processing chip of the target interface for encapsulation to generate encapsulated multimedia data. After that, the video information processing chip of the target interface transmits the generated encapsulated multimedia data to the video information processing chip of the SOC. The video information processing chip of the SOC decapsulates the encapsulated multimedia data to obtain video information and audio information. After that, the video information processing chip of the SOC transmits the video information to the Ais_server process of the driver layer. The Ais_server process decomposes the video information and generates a display data stream (such as a camera display data stream). Afterwards, the Ais_server process transmits the camera display data stream to the Cameraserver service of the framework layer. The Cameraserver service transmits the camera display data stream to the projection application. Similarly, the video information processing chip of the SOC transmits the audio information to the Audio Hardware Abstraction Layer (HAL) process of the driver layer. The Audio HAL process decomposes the audio information through time-division multiplexing (TDM) technology to generate an audio data stream (such as a TDM audio data stream). The Audio HAL process transmits the TDM audio data stream to the Audio server service of the framework layer. The Audio server service transmits the TDM audio data stream to the projection application. The projection application displays the projection page according to the camera display data stream sent by the Cameraserver service and the TDM audio data stream sent by the Audio server service.
[0058] When the user selects the charging mode control on the screen projection page, the SOC sends a CAN signal to the MCU of the target interface through the ShareScreenCtrl service and the HAL process, requesting to lower the HPD of the PDcontroller to the target threshold, so that the data path between the PD controller and the electronic device can be disconnected, and the data path between the PD controller and the video information processing chip can also be disconnected. At the same time, the charging communication between the PD chip and the electronic device proceeds normally to ensure that the electronic device is powered. In addition, after disconnecting the data path between the PD controller and the video information processing chip, the PD controller no longer transmits both video information and audio information to the video information processing chip. This will cause the Ais_server process to detect that the video information processing chip of the SOC has no video information. At this time, the Ais_server process informs the projection application through the Cameraserver service that there is no video information transmission, and the projection application will exit the projection page.
[0059] When the screen casting application exits the screen casting page, the charging page will be displayed. Later, when the user needs to cast the screen again, the screen casting mode control in the charging page can be selected. At this time, the SOC sends a CAN signal to the MCU of the target interface through the ShareScreenCtrl service and the HAL process, requesting that the HPD of the PD controller be raised from the target threshold to the preset threshold, so that a data path can be established between the PD controller and the electronic device, and a data path can also be established between the PD controller and the video information processing chip. After that, the PD controller transmits both the video information and audio information sent by the electronic device to the video information processing chip of the target interface for encapsulation to generate encapsulated multimedia data. After that, the video information processing chip of the target interface transmits the generated encapsulated multimedia data to the video information processing chip of the SOC. The video information processing chip of the SOC decapsulates the encapsulated multimedia data to obtain video information and audio information. After that, the video information processing chip of the SOC transmits the video information to the Ais_server process of the driver layer. The Ais_server process decomposes the video information and generates a display data stream (such as the camera display data stream). Afterwards, the Ais_server process transmits the camera display data stream to the Cameraserver service of the framework layer. The Cameraserver service transmits the camera display data stream to the screen projection application. Similarly, the video information processing chip of the SOC transmits the audio information to the Audio HAL process of the driver layer. The Audio HAL process decomposes the audio information through time-division multiplexing (TDM) technology to generate an audio data stream (such as a TDM audio data stream). The Audio HAL process transmits the TDM audio data stream to the Audio server service of the framework layer. The Audio server service transmits the TDM audio data stream to the screen projection application. The screen projection application displays the screen projection page according to the camera display data stream sent by the Cameraserver service and the TDM audio data stream sent by the Audio server service.
[0060] From the above, it can be seen that in the mode switching method provided by the embodiment of the present disclosure, the vehicle terminal responds to the electronic device being inserted into the target interface, and determines whether the electronic device has the screen projection function by obtaining the configuration parameters of the electronic device, such as: when it is determined according to the configuration parameters that the electronic device has the screen projection function, the screen projection page is displayed. At this time, the screen projection page includes a charging mode control for indicating charging only. In this way, during the screen projection process, the user can also flexibly choose whether to project the screen on the vehicle terminal side, thereby improving the user experience and solving the problem in the prior art that the vehicle system can only passively receive the projection information input from the electronic device during the process of providing the screen projection function, the functions provided by the vehicle system are relatively single, and the user experience is poor.
[0061] In some feasible examples, the configuration parameters include a target identifier for indicating that the electronic device supports the screen projection function; Figure 1 ,like Figure 3 As shown, the above S12 can be specifically implemented through the following S120.
[0062] S120: When it is determined that the configuration parameters include a target identifier, determine that the electronic device has a screen projection function. In some feasible examples, the target identifier includes a screen projection output resolution.
[0063] In some examples, the target identifier includes parameters such as the projection data format and the projection data size.
[0064] In some examples, the target interface includes a chip with a fast charging function; Figure 1 ,like Figure 4 As shown, the above S14 can be specifically implemented through the following S140.
[0065] S140. In response to the selection operation of the charging mode control, the hot plug detection of the chip is reduced to the target threshold, the screen projection mode is switched to the charging only mode, and the first screen projection page is exited.
[0066] In some feasible examples, the first screen projection page also includes screen projection data sent by the electronic device, and the screen projection data includes video information; Figure 4 ,like Figure 5 As shown, the above S14 can be specifically implemented through the following S1400 and S1401.
[0067] S1400, in response to a selection operation on a charging mode control, reducing the hot plug detection of the chip to a target threshold, and switching from the screen projection mode to the charging-only mode;
[0068] S1401. Receive callback information and exit the first projection page; wherein the callback information is used to indicate that the target process has not detected the video information. Figure 4,like Figure 6 As shown, the mode switching method provided in the embodiment of the present disclosure also includes: S15 and S16.
[0069] S15. Display a charging page; wherein the charging page includes a screen projection mode control for indicating the execution of the screen projection function.
[0070] S16. In response to the selection operation of the projection mode control, the charging-only mode is switched to the projection mode, and a second projection page is displayed.
[0071] In some possible implementation examples, combined with Figure 6 ,like Figure 7 As shown, the above S16 can be specifically implemented through the following S160.
[0072] S160. In response to the selection operation of the projection mode control, the hot plug detection of the chip is raised from the target threshold to the specified threshold, the charging only mode is switched to the projection mode, and the second projection page is displayed.
[0073] In some examples, switching from charging-only mode to projection mode, displaying a second projection page, includes:
[0074] Switch from charging-only mode to screen projection mode, and obtain screen projection data sent by the electronic device. Decompose the video information to generate a display data stream. Decompose the audio information to generate an audio data stream. Display the second screen projection page according to the display data stream and the audio data stream. The second screen projection page includes a charging mode control.
[0075] In some possible implementation examples, combined with Figure 1 ,like Figure 8 As shown, the above S13 can be specifically implemented through the following S130-S133.
[0076] S130. When it is determined based on configuration parameters that the electronic device has a screen projection function, obtain screen projection data sent by the electronic device; wherein the screen projection data includes video information and audio information.
[0077] S131. Decompose the video information to generate a display data stream.
[0078] S132: Decompose the audio information to generate an audio data stream.
[0079] S133. Display the first projection page according to the display data stream and the audio data stream.
[0080] In some examples, the video format of the video information is different from the video format of the display data stream, so the video information may be format converted to generate the display data stream.
[0081] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0082] The embodiments of the present disclosure may divide the functional modules of the mode switching device according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0083] like Fig. 9 FIG. 1 is a schematic diagram of the structure of a mode switching device 10 provided in an embodiment of the present disclosure, which includes a processing unit 101 , an acquisition unit 102 and a display unit 103 .
[0084] The processing unit 101 is used to control the acquisition unit 102 to acquire the configuration parameters of the electronic device in response to the electronic device being inserted into the target interface; the processing unit 101 is also used to determine whether the electronic device has a screen projection function based on the configuration parameters acquired by the acquisition unit 102; the processing unit 101 is also used to enter the screen projection mode in response to the electronic device having the screen projection function, and control the display unit 103 to display the first screen projection page; wherein the first screen projection page includes a charging mode control for indicating charging only; the processing unit 101 is also used to switch from the screen projection mode to the charging only mode in response to a selection operation on the charging mode control, and control the display unit 103 to exit the first screen projection page.
[0085] In some feasible examples, the configuration parameters include a target identifier for indicating that the electronic device supports the screen projection function; the processing unit 101 is specifically used to determine that the electronic device has the screen projection function when it is determined that the configuration parameters acquired by the acquisition unit 102 include the target identifier.
[0086] In some possible implementations, the target identifier includes a projection output resolution.
[0087] In some feasible examples, the target interface includes a chip with a fast charging function; the processing unit 101 is specifically used to respond to the selection operation of the charging mode control, reduce the hot plug detection of the chip to the target threshold, switch from the projection mode to the charging only mode, and control the display unit 103 to exit the first projection page.
[0088] In some feasible examples, the first projection page also includes projection data sent by the electronic device, the projection data includes video information, and the mode switching device also includes a receiving unit 104; the processing unit 101 is specifically used to control the display unit 103 to exit the first projection page when the receiving unit 104 receives callback information; wherein the callback information is used to indicate that the target process has not detected the video information.
[0089] In some feasible examples, the processing unit 101 is further used to control the display unit 103 to display a charging page; wherein the charging page includes a projection mode control for indicating the execution of the projection function; the processing unit 101 is further used to switch from the charging-only mode to the projection mode in response to a selection operation of the projection mode control, and control the display unit 103 to display a second projection page.
[0090] In some feasible examples, the processing unit 101 is specifically used to respond to the selection operation of the projection mode control, raise the hot plug detection of the chip from the target threshold to the specified threshold, switch from the charging only mode to the projection mode, and control the display unit 103 to display the second projection page.
[0091] In some implementable examples, the acquisition unit 102 is specifically used to acquire screen projection data sent by the electronic device; wherein the screen projection data includes video information and audio information; the processing unit 101 is specifically used to decompose the video information acquired by the acquisition unit 102 to generate a display data stream; the processing unit 101 is specifically used to decompose the audio information acquired by the acquisition unit 102 to generate an audio data stream; the processing unit 101 is specifically used to control the display unit 103 to display the first screen projection page according to the display data stream and the audio data stream.
[0092] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and its role will not be repeated here.
[0093] Of course, the mode switching device 10 provided in the embodiment of the present disclosure includes but is not limited to the above modules, for example, the mode switching device 10 may also include a storage unit 105. The storage unit 105 may be used to store the program code of the mode switching device 10, and may also be used to store data generated by the mode switching device 10 during operation, such as data in a write request, etc.
[0094] Fig.10A schematic diagram of the structure of a vehicle-mounted terminal provided in an embodiment of the present disclosure is shown in FIG. Fig.10 As shown, the vehicle-mounted terminal may include: at least one processor 51 , a memory 52 , a communication interface 53 , a communication bus 54 and a display screen 55 .
[0095] Combine the following Fig.10 The following is a detailed introduction to the various components of the vehicle terminal:
[0096] The processor 51 is the control center of the electronic device 10, and may be a processor or a general term for multiple processing elements. For example, the processor 51 is a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure, such as one or more DSPs, or one or more field programmable gate arrays (FPGAs).
[0097] In a specific implementation, as an embodiment, the processor 51 may include one or more CPUs, such as Fig.10 Also, as an embodiment, the electronic device may include multiple processors, such as Fig.10 51 and processor 56 are shown in FIG. Each of these processors may be a single-core processor (Single-CPU) or a multi-core processor (Multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0098] The memory 52 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 52 may exist independently and be connected to the processor 51 via a communication bus 54. The memory 52 may also be integrated with the processor 51.
[0099] In a specific implementation, the memory 52 is used to store the data in the present disclosure and execute the software program in the present disclosure. The processor 51 can execute various functions of the air conditioner by running or executing the software program stored in the memory 52 and calling the data stored in the memory 52.
[0100] The communication interface 53 uses any transceiver-like device to communicate with other devices or communication networks, such as Radio Access Network (RAN), Wireless Local Area Networks (WLAN), terminals, the cloud, etc. The communication interface 53 may include an acquisition unit and a receiving unit to implement the acquisition and receiving functions.
[0101] The communication bus 54 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0102] The display screen 55 is used to display images, videos, etc. The display screen 55 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc.
[0103] As an example, combine Fig. 9 The functions implemented by the acquisition unit 102 and the receiving unit 104 in the mode switching device 10 are the same as Fig.10 The function of the communication interface 53 in the mode switching device 10 is the same as that of the processing unit 101 in the mode switching device 10. Fig.10 The function of the processor 51 in the mode switching device 10 is the same as that of the display unit 103 in the mode switching device 10. Fig.10 The function of the display screen 55 in the mode switching device 10 is the same as that of the storage unit 105 in the mode switching device 10. Fig.10 The function of the memory 52 in is the same.
[0104] Another embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computing device, the computing device executes the mode switching method shown in the above method embodiment.
[0105] In some embodiments, the disclosed methods may be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or on other non-transitory media or articles of manufacture.
[0106] Fig.11 A conceptual partial view of a computer program product provided by an embodiment of the present disclosure is schematically shown, wherein the computer program product includes a computer program for executing a computer process on a computing device.
[0107] In one embodiment, the computer program product is provided using a signal bearing medium 410. The signal bearing medium 410 may include one or more program instructions, which when executed by one or more processors may provide the above-mentioned Figure 1Thus, for example, reference to Figure 1 In the embodiment shown in , one or more features of S11-S14 can be undertaken by one or more instructions associated with the signal bearing medium 410. In addition, Fig.11 The program instructions in also describe example instructions.
[0108] In some examples, signal bearing medium 410 may include computer readable medium 411, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM), or a random access memory (RAM), and the like.
[0109] In some implementations, signal bearing medium 410 may include computer recordable medium 412 such as, but not limited to, memory, read / write (R / W) CD, R / W DVD, and the like.
[0110] In some implementations, signal bearing medium 410 may include communication medium 413 such as, but not limited to, digital and / or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).
[0111] Signal bearing medium 410 may be communicated by a wireless form of communication medium 413 (eg, wireless communication medium complying with IEEE 802.41 standard or other transmission protocol). The one or more program instructions may be, for example, computing device executable instructions or logic implementing instructions.
[0112] In some examples, such as for Fig. 9 The described mode switching device 10 may be configured to provide various operations, functions, or actions in response to one or more program instructions via the computer-readable medium 411 , the computer-recordable medium 412 , and / or the communication medium 413 .
[0113] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0114] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0115] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0116] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0117] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.
[0118] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A mode switching method, characterized in that: include: In response to the electronic device being inserted into the target interface, acquiring configuration parameters of the electronic device; Determining whether the electronic device has a screen projection function according to the configuration parameters; In response to the electronic device having a screen projection function, entering a screen projection mode and displaying a first screen projection page; wherein the first screen projection page includes a charging mode control for indicating charging only; In response to a selection operation on the charging mode control, the screen projection mode is switched to the charging-only mode, and the first screen projection page is exited.
2. The mode switching method according to claim 1, characterized in that: The configuration parameters include a target identifier for indicating that the electronic device supports a screen projection function; The determining, according to the configuration parameters, whether the electronic device has a screen projection function includes: When it is determined that the configuration parameters include the target identifier, it is determined that the electronic device has a screen projection function.
3. The mode switching method according to claim 1, characterized in that: The target interface includes a chip with a fast charging function; In response to the selection operation of the charging mode control, switching from the screen projection mode to the charging-only mode and exiting the first screen projection page includes: In response to the selection operation of the charging mode control, the hot plug detection of the chip is reduced to a target threshold, the screen projection mode is switched to the charging-only mode, and the first screen projection page is exited.
4. The mode switching method according to claim 3, characterized in that: The first screen projection page also includes screen projection data sent by the electronic device, and the screen projection data includes video information; The exiting the first screen projection page includes: Receive callback information and exit the first projection page; wherein the callback information is used to indicate that the target process has not detected the video information.
5. The mode switching method according to claim 3, characterized in that: After exiting the screen projection page, the method further includes: Displaying a charging page; wherein the charging page includes a screen projection mode control for indicating execution of a screen projection function; In response to a selection operation on the projection mode control, the charging-only mode is switched to the projection mode, and a second projection page is displayed.
6. The mode switching method according to claim 5, characterized in that: In response to a selection operation on the screen projection mode control, switching from the charging-only mode to the screen projection mode, and displaying a second screen projection page include: In response to a selection operation on the projection mode control, the hot plug detection of the chip is raised from the target threshold to a specified threshold, the charging-only mode is switched to the projection mode, and a second projection page is displayed.
7. The mode switching method according to claim 1, characterized in that: The displaying of the first screen projection page includes: Acquire screen projection data sent by the electronic device; wherein the screen projection data includes video information and audio information; Decomposing the video information to generate a display data stream; Decomposing the audio information to generate an audio data stream; The first projection page is displayed according to the display data stream and the audio data stream.
8. A mode switching device, characterized in that: include: a processing unit, configured to control the acquisition unit to acquire configuration parameters of the electronic device in response to the electronic device being inserted into the target interface; The processing unit is further configured to determine whether the electronic device has a screen projection function according to the configuration parameters acquired by the acquisition unit; The processing unit is further configured to enter a screen projection mode and display a first screen projection page in response to the electronic device having a screen projection function; wherein the first screen projection page includes a charging mode control for indicating charging only; The processing unit is also used to switch from the screen projection mode to the charging-only mode in response to a selection operation on the charging mode control, and exit the first screen projection page.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the mode switching method described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the mode switching method according to any one of claims 1 to 7.
11. A vehicle comprising the mode switching device according to claim 8.
Citation Information
Cited By
Dynamic mode switching method and device of audio bus equipment and electronic equipment
CN120640337A
