Function conflict processing method, device, electronic device and readable storage medium
By synchronizing function status information between the car machine and the terminal device and handling function conflicts, it solves the problem of normal use when the functions of the car machine and the terminal device conflict, and improves the user experience.
Patent Information
- Application Number
- CN202010704068.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-21
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-07-21
AI Technical Summary
In the existing technology, when the functions of the car machine and the terminal equipment conflict, the user cannot use the functions normally. For example, when answering the phone, an incoming call from the car machine will cause the phone function to fail.
By sending the projection data and functional status information when the interface of the first device is projected to the second device, the second device can synchronize the functional status of the first device, thereby handling functional conflicts and ensuring that the user can use the functions normally. The specific method includes sending functional status information after the device is connected, or updating the status information when the functional status changes, and the second device handles the conflict according to a preset processing method.
It achieves normal use when functions conflict, improves user experience, adopts appropriate processing methods for different functions, and avoids the problem of function failure.
Smart Images

Figure CN113954756B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to in-vehicle interconnection technology, and more particularly to a method, device, electronic device, and readable storage medium for handling functional conflicts. Background Art
[0002] At present, car computers can realize multiple functions, such as making and receiving calls, navigation, checking the weather, listening to music, etc., but the functions of car computers are relatively simple compared to those of terminal devices.
[0003] The prior art provides a technical solution for projecting the interface of a terminal device to a vehicle computer. After the user projects the interface of the terminal device to the vehicle computer, the user can view the interface displayed on the terminal device on the vehicle computer, thereby realizing the functions of the application terminal device on the vehicle computer.
[0004] After the terminal device is projected to the vehicle computer, the phone, navigation and other functions will use the microphone, speaker and other hardware modules on the vehicle to play and receive voice. If the function of projecting the screen to the vehicle computer in the terminal device conflicts with the original function of the vehicle computer, the user cannot use this function normally. For example, if the user is using the microphone and speaker of the vehicle computer to answer a call on the terminal device, if the vehicle computer receives a call, the user cannot answer the call on the terminal device normally. Summary of the invention
[0005] The embodiments of the present application provide a method, an apparatus, an electronic device, and a readable storage medium for processing a function conflict, which can process a function conflict between a first device and a second device so that a user can use the functions normally.
[0006] In the first aspect, the embodiment of the present application provides a method for handling function conflicts, which can be applied to a second device or a chip in the second device. The method is described below by taking the application to the second device as an example. In the method, when the interface of the first device is projected to the second device, the second device can receive the projection data from the first device and the first state information of the first function in the first device, and the first state information is used to indicate the working state of the first function in the first device. Different from the current technical solution, in the embodiment of the present application, when the interface of the first device is projected to the second device in the embodiment of the present application, the first device not only sends the projection data to the second device, but also sends the first state information of the first function in the first device to the second device. The purpose of the first device sending the first state information of the first function in the first device is to synchronize the working state of the first function in the first device to the second device, so that when there is a conflict in the first function, the second device can handle the conflict of the first function. Among them, if the first function in the second device is in a working state, and the first state information indicates that the first function in the first device is also in a working state, the second device can determine that the first function in the first device conflicts with the second function in the second device, and the second device can handle the conflict of the first function.
[0007] In an embodiment of the present application, after the interface of the first device is projected to the second device, the first device and the second device can send status information of the first function of each device to each other, so that the status information of the first function in the first device and the second device can be shared, and then when the first functions in the first device and the second device conflict, the second device can handle the function conflict so that the user can use the function normally.
[0008] It should be understood that in the embodiment of the present application, the timing for the first device to send the projection data and the first status information of the first function in the first device to the second device may be: after the first device is connected to the second device, when the interface of the first device is projected to the second device, the first device will send the projection data to the second device, and at this time the second device may send the first status information of the first function to the second device when sending the projection data. Among them, in the embodiment of the present application, when the first device sends the status information of the function to the second device for the first time, the status information of each function in the first device may be sent to the second device. Among them, the each function may be all the functions in the first device, or the functions in the first device that are in working state. However, it should be noted that the each function includes the first function, and the status information of the each function includes the first status information of the first function.
[0009] In addition, in an embodiment of the present application, the timing when the first device sends the projection data and the first status information of the first function in the first device to the second device may also be: when the working status of the first function in the first device changes, the first device sends the first status information of the first function to the second device. It should be noted that in these two methods, the projection data sent by the first device to the second device may be different. Exemplarily, when the first device sends the status information of the function to the second device for the first time, the first device may send the projection data of the main interface of the first device to the second device, and when the working status of the first function in the first device changes, the projection data sent by the first device to the second device may be the projection data of the interface of the application in the first device.
[0010] The above-mentioned are all processes of the first device sending the first status information of the first function in the first device to the second device. It should be noted that in the embodiment of the present application, the second device can also send the second status information of the first function in the second device to the first device. Exemplarily, the second device can send the second status information of the first function to the first device when the working status of the first function in the second device changes. Among them, the second status information indicates the working status of the first function in the second device. In other words, the first device and the second device in the embodiment of the present application can share the status information of their respective functions, so that the first device and the second device can both determine whether there is a conflict between the functions of the two devices, and then handle the conflict of the first function. It should be understood that the method for the first device and the second device in the embodiment of the present application to handle the conflict of the first function can be the same. It should be understood that the method for the second device to handle the conflict of the first function is described here as an example. Please refer to the following description for details:
[0011] The second device can handle the conflict of the first function according to the preset processing method corresponding to the first function. It should be understood that in the embodiment of the present application, the preset processing method corresponding to the first function can be used to handle different first functions, rather than using the same processing method for all function conflicts. The method for handling function conflicts in the embodiment of the present application can handle function conflicts in a processing method suitable for different functions for different functions, which is more in line with user needs and improves user experience.
[0012] Exemplarily, when the first function is a navigation function or a voice function, the way in which the second device handles the conflict of the first function in the embodiment of the present application may be: the second device stops executing the first function in the second device and outputs the projection data. Because when the second device receives the first status information from the first device, the first function in the second device is already in working state, and because the first function executed later is largely used by user needs, otherwise the user will not repeatedly turn on two identical functions, so in the embodiment of the present application, the second device that first executes the first function can stop executing the first function in the second device.
[0013] For example, when the first function is a telephone function, from the perspective of user use, the telephone function executed on the first device and the telephone function executed on the second device are both important to the user. If there is a conflict in the telephone functions, exiting the telephone function on any device will affect the user experience. Therefore, the second device can handle the conflict of the first function in the following way: the second device executes the first function in the second device and sends an occupation message to the first device, wherein the occupation message instructs the first device to use the hardware module of the first device to execute the first function. That is, when the first function is a telephone function, the first device can use the hardware module of the first device to execute the telephone function, and the second device continues to use the hardware module of the second device to execute the telephone function.
[0014] The above embodiments are all technical solutions for when there is a conflict between the first function in the second device and the first function in the first device. In the embodiments of the present application, it should be noted that if the first function in the second device and / or the first function in the first device is in a non-working state, the second device determines that there is no conflict between the first function in the second device and the first function in the first device. If there is no conflict between the first function in the second device and the first function in the first device, and the first function is a navigation function or a voice function, the second device discards the first state information; if the first function is a telephone function, the second device stores the first state information.
[0015] It should be noted that the reason why the second device stores the first status information of the phone function in the embodiment of the present application is that a function control may be provided on the second device or the vehicle (or other electronic device) to which the second device belongs in the embodiment of the present application. When the interface of the first device is projected to the second device, the function control may be triggered to implement reverse control, that is, the user operates the function control to trigger the second device to process the phone function in the first device. Among them, when the user triggers the function control, the second device may process the phone function in the first device differently according to the first status information of the phone function and the user's operation.
[0016] In the second aspect, the embodiment of the present application provides a method for handling function conflicts, which can be applied to a first device or a chip in the first device. The method is described below by taking the application to the first device as an example. In the method, the first device sends screen projection data and first status information of the first function in the first device to the second device, and the first status information indicates the working status of the first function in the first device.
[0017] In a possible implementation, the first device sends the first status information to the second device, including: when the interface of the first device is projected to the second device and the first device sends status information of a function to the second device for the first time, the first device sends status information of each function in the first device to the second device, the each function includes the first function, and the status information of each function includes the first status information; or, when the interface of the first device is projected to the second device and the working status of the first function in the first device changes, the first device sends the first status information to the second device.
[0018] In one possible implementation, the first device receives second status information of a first function in the second device from the second device, where the second status information is sent when the working status of the first function in the second device changes, and the second status information is used to indicate the working status of the first function in the second device; if the first function in the first device is in a working state, and the second status information indicates that the first function in the second device is also in a working state, the first device handles the conflict of the first function.
[0019] In a possible implementation, the first device processes the conflict of the first function, including: the first device processes the conflict of the first function according to a preset processing method corresponding to the first function. It should be understood that the way in which the first device processes the conflict of the first function in the embodiment of the present application can refer to the relevant description of the second device processing the conflict of the first function.
[0020] In a possible implementation manner, the preset processing manner corresponding to the first function includes: the first device stops executing the first function in the first device.
[0021] In a possible implementation manner, the first function is any one of the following: a navigation function and a voice function.
[0022] In a possible implementation manner, the preset processing manner corresponding to the first function includes: the first device uses a hardware module of the first device to execute the first function.
[0023] In a possible implementation manner, the first function is a telephone function.
[0024] In one possible implementation, the method also includes: if the first function in the first device and / or the first function in the second device is in a non-working state, the first device determines that there is no conflict between the first function in the first device and the first function in the second device, and the first device discards the second state information.
[0025] In a possible implementation, the method further includes: if the first device receives an occupancy message from the second device, using a hardware module of the first device to execute the first function.
[0026] In a third aspect, an embodiment of the present application provides a device for processing functional conflicts, and the device for processing functional conflicts may be the second device described in the first aspect above. The device for processing functional conflicts may include: a transceiver module and a processing module. Among them, the transceiver module is used to receive the projection data from the first device and the first status information of the first function in the first device, and the first status information is used to indicate the working status of the first function in the first device. The processing module is used to process the conflict of the first function if the first function in the second device is in a working state and the first status information indicates that the first function in the first device is also in a working state.
[0027] In a possible implementation manner, the processing module is specifically configured to process the conflict of the first function according to a preset processing manner corresponding to the first function.
[0028] In one possible implementation, the processing module is specifically used to stop executing the first function in the second device and output the projection data.
[0029] In a possible implementation manner, the first function is any one of the following: a navigation function and a voice function.
[0030] In a possible implementation, the processing module is specifically configured to execute the first function in the second device and send an occupation message to the first device, where the occupation message indicates that the first device uses the hardware module of the first device to execute the first function.
[0031] In a possible implementation manner, the first function is a telephone function.
[0032] In one possible implementation, the first status information is sent when the working status of the first function in the first device changes; or, the first status information is: when the first device sends the status information of the function to the second device for the first time, the status information of each function sent by the first device.
[0033] In one possible implementation, the processing module is also used to determine that there is no conflict between the first function in the second device and the first function in the first device if the first function in the second device and / or the first function in the first device is in a non-working state; wherein, if the first function is a navigation function or a voice function, the first status information is discarded; if the first function is a telephone function, the first status information is stored.
[0034] In a possible implementation, the transceiver module is specifically configured to send second status information of the first function to the first device if the working status of the first function in the second device changes, where the second status information indicates the working status of the first function in the second device.
[0035] In a fourth aspect, an embodiment of the present application provides a device for processing a functional conflict, and the device for processing a functional conflict may be the first device described in the second aspect. The device for processing a functional conflict may include: a transceiver module and a processing module. Among them, the transceiver module is used to send screen projection data and first status information of the first function in the first device to the second device, and the first status information indicates the working status of the first function in the first device.
[0036] In one possible implementation, the transceiver module is specifically used to project the interface of the first device to the second device, and when the first device sends the status information of the function to the second device for the first time, the status information of each function in the first device is sent to the second device, where each function includes the first function, and the status information of each function includes the first status information; or, the transceiver module is specifically used to project the interface of the first device to the second device, and when the working status of the first function in the first device changes, the first status information is sent to the second device.
[0037] In one possible implementation, the transceiver module is also used to receive second status information of the first function in the second device from the second device, where the second status information is sent when the working status of the first function in the second device changes, and the second status information is used to indicate the working status of the first function in the second device.
[0038] Correspondingly, the processing module is used to process the conflict of the first function if the first function in the first device is in a working state and the second state information indicates that the first function in the second device is also in a working state.
[0039] In a possible implementation manner, the processing module is specifically configured to process the conflict of the first function according to a preset processing manner corresponding to the first function.
[0040] In a possible implementation manner, the processing module is specifically configured to stop executing the first function in the first device.
[0041] In a possible implementation manner, the first function is any one of the following: a navigation function and a voice function.
[0042] In a possible implementation, the processing module is specifically configured to use a hardware module of the first device to execute the first function.
[0043] In a possible implementation manner, the first function is a telephone function.
[0044] In one possible implementation, the processing module is also used to, if the first function in the first device and / or the first function in the second device is in a non-working state, the first device determines that there is no conflict between the first function in the first device and the first function in the second device, and the first device discards the second state information.
[0045] In a possible implementation, the processing module is further configured to use the hardware module of the first device to execute the first function if the first device receives an occupancy message from the second device.
[0046] The implementation principle and technical effect of the function conflict processing device of the third and fourth aspects of the embodiment of the present application can refer to the relevant description of the first aspect above, and will not be repeated here.
[0047] In a fifth aspect, an embodiment of the present application provides an electronic device, which may be the second device in the first aspect and the first device in the second aspect. The electronic device comprises: a processor, a memory, and a transceiver; the transceiver is coupled to the processor, and the processor controls the transceiver's transceiver; wherein the memory is used to store computer executable program code, and the program code comprises instructions; when the processor executes the instructions, the instructions cause the electronic device to perform the methods provided in the first aspect and the second aspect.
[0048] In a sixth aspect, an embodiment of the present application provides an electronic device, including a unit, a module, or a circuit for executing the method provided in the first and second aspects above. The electronic device can be a first device or a second device, or a module applied to the first device or the second device, for example, a chip applied to the first device or the second device.
[0049] In a seventh aspect, an embodiment of the present application provides a chip having a computer program stored thereon, and when the computer program is executed by the chip, the method provided in the first aspect and the second aspect is implemented.
[0050] In an eighth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods in the first and second aspects above.
[0051] In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the methods in the first and second aspects above.
[0052] An embodiment of the present application provides a method, apparatus, electronic device and readable storage medium for handling function conflicts, the method comprising: a second device receives projection data from a first device and first status information of a first function in the first device, the first status information being used to indicate a working status of the first function in the first device; if the first function in the second device is in a working state, and the first status information indicates that the first function in the first device is also in a working state, then the second device handles the conflict of the first function. In an embodiment of the present application, after the interface of the first device is projected to the second device, and when the first functions in the first device and the second device conflict, both the first device and the second device can handle the function conflict so that the user can use the function normally. In an embodiment of the present application, for different functions, a processing method suitable for different functions can also be used to handle function conflicts, which is more in line with user needs and improves user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 This is an illustration of the scenarios to which the embodiments of the present application are applicable. Figure 1 ;
[0054] Figure 2 A schematic diagram of interface changes of a second device provided in an embodiment of the present application;
[0055] Figure 3 A schematic diagram of a scenario;
[0056] Figure 4A flowchart of an embodiment of a method for handling function conflicts provided in an embodiment of the present application;
[0057] Figure 5 A schematic diagram of a process flow for handling navigation function conflicts provided in an embodiment of the present application;
[0058] Figure 6 Scenario diagram provided for the embodiment of this application Figure 2 ;
[0059] Figure 7 A schematic diagram of a process flow for processing a voice function conflict provided in an embodiment of the present application;
[0060] Figure 8 A schematic diagram of a process flow for handling telephone function conflicts provided in an embodiment of the present application;
[0061] Fig. 9 Scenario diagram provided for the embodiment of this application Figure 3 ;
[0062] Fig.10 A flowchart of another embodiment of a method for handling function conflicts provided in an embodiment of the present application;
[0063] Fig.11 Scenario diagram provided for the embodiment of this application Figure 4 ;
[0064] Fig.12 Scenario diagram provided for the embodiment of this application Figure 5 ;
[0065] Fig.13 A flowchart of another embodiment of a method for handling function conflicts provided in an embodiment of the present application;
[0066] Fig.14 A flowchart of another embodiment of a method for handling function conflicts provided in an embodiment of the present application;
[0067] Fig.15 A schematic diagram of the structure of a function conflict processing device provided in an embodiment of the present application;
[0068] Fig.16 A schematic diagram of the structure of another function conflict processing device provided in an embodiment of the present application;
[0069] Fig.17 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] Figure 1 This is an illustration of the scenarios to which the embodiments of the present application are applicable. Figure 1 .like Figure 1As shown, the scenario may include a first device and a second device. Figure 1 In the above and the following embodiments, the first device is a mobile phone and the second device is a car computer. The first device can project the interface of the first device to the second device so that the user can view the interface of the first device on the second device, that is, the function of the first device can be implemented on the second device. It should be noted that in the embodiment of the present application, the way in which the first device projects the interface of the first device to the second device can be: after the first device and the second device are connected, the first device can send the projection data of the interface to be displayed to the second device, and after the second device receives the projection data, it can display the interface of the first device according to the projection data. In order to avoid the conflict between the projection control logic of the projection of the interface of the first device to the second device and the control logic of the Bluetooth connection between the first device and the second device, the first device and the second device in the embodiment of the present application do not perform a Bluetooth connection. It should be understood that the connection method of the first device and the second device in the embodiment of the present application may include but is not limited to: wired connection or WIFI point-to-point connection (WIFI-point topoint, WIFI-P2P). In which, the first device and the second device can be connected by wire through a universal serial bus (universal serialbus, USB), and the above-mentioned WIFI point-to-point connection can also be called WIFI direct connection. In the embodiment of the present application, the connection process of the first device and the second device, and the process of projecting the interface of the first device to the second device are not described in detail. For details, please refer to the description in the prior art.
[0071] For example, Figure 2 Schematic diagram of the interface change of the second device provided in the embodiment of the present application. The first device can project the main interface of the first device or the interface of the application to the second device. When the first device projects the main interface of the first device to the second device, the interface of the second device can display the original interface of the second device and the main interface of the first device. Alternatively, the interface of the second device can only display the main interface of the first device. Figure 2 The interface 201 in the interface 201 can be explained by taking the original interface of the second device and the main interface of the first device as an example. It should be understood that the main interface of the first device can display icons of various applications in the first device. Among them, when the first device projects the main interface of the first device to the second device, the projection data sent by the first device to the second device can be relevant data of the main interface of the first device. When the user opens the navigation application in the first device on the first device, the interface of the navigation application can be displayed on the first device, and the projection data sent by the first device to the second device can be relevant data of the interface of the navigation application. Correspondingly, the interface 201 of the second device can jump to the interface 202, and the interface 202 can display the interface of the navigation application.
[0072] When the interface of the first device is projected to the second device, the second device can output the projected data based on the projected data from the first device. Figure 2 It is shown that the second device outputs the projection data to display the interface of the first device. Among them, the second device outputs the projection data to play the audio of the first device using the hardware module of the second device. Exemplarily, when the first device projects the navigation interface to the second device, the second device can not only display the navigation interface of the first device, but also use the hardware module of the second device to play the navigation audio, such as playing "Turn right 200 meters ahead". If the second device is a car machine, the car machine can use the speaker on the vehicle to play the navigation audio. Among them, the current car machine also has a navigation function. If the car machine is executing the navigation function, the car machine will use the speaker on the vehicle to play the navigation audio. If the navigation interface on the mobile phone is projected to the car machine, the navigation function on the mobile phone will also use the speaker on the vehicle to play the navigation audio on the mobile phone. In this case, both the mobile phone and the car machine will occupy the speaker of the vehicle. Because the algorithms of the navigation functions in the mobile phone and the car machine are different, the navigation paths planned by the two may be inconsistent, which causes the user to be unable to use the navigation normally, such as the vehicle's speaker will play the navigation audio of the mobile phone and the navigation audio of the car machine.
[0073] For example, Figure 3 A schematic diagram of a scenario. Figure 3 As shown in the figure, after the mobile phone interface is projected to the car computer, the car computer is using the navigation function on the car computer, and the speaker on the vehicle is playing the audio of the navigation on the car computer. However, the user thinks that the navigation on the car computer is not accurate enough, so he uses the navigation function on the mobile phone. Figure 3 As shown, the navigation interface on the left side of the car computer is the navigation interface presented by the navigation function on the car computer, and the navigation interface on the right side of the car computer is the navigation interface after the mobile phone screen is projected. At this time, the speakers on the vehicle can play the audio of the navigation on the mobile phone and the car computer at the same time. For example, the audio of the navigation on the mobile phone "Turn left to Avenue A" and the audio of the navigation on the car computer "Go straight for 300 meters and turn right" are played at the same time.
[0074] Similar to the navigation function mentioned above, the car computer also has a telephone function. For example, the car computer can be equipped with a phone card, or when the car computer is connected to a mobile phone via Bluetooth, calls on the mobile phone can be made and received on the car computer. Among them, after the interface on the mobile phone is projected to the car computer, if the mobile phone is using the vehicle's microphone and speaker to make a call, and the car computer receives an incoming call (such as a call from a phone card set on the car computer, or an incoming call from another mobile phone connected to the car computer via Bluetooth), the mobile phone and the car computer will both grab the vehicle's microphone and speaker, resulting in the user being unable to use the telephone function normally. For example, the vehicle's speaker will play the audio of the phone and the phone on the car computer at the same time; or if the car computer determines that there is a conflict between the phone functions of the mobile phone and the car computer, the audio of the mobile phone and the phone on the car computer will not be played, resulting in the user being unable to use the telephone function normally.
[0075] In addition, there is also a voice function on the car computer. For example, the user can wake up the car computer by voice wake-up, and then interact with the car computer by voice. There is also a voice function on the mobile phone. After the interface on the mobile phone is projected to the car computer, if the mobile phone is using the voice function, the microphone on the vehicle will collect the user's voice, and the speaker on the vehicle will play the audio on the mobile phone responding to the user. If the voice function on the car computer is in working state, the problem that both the mobile phone and the car computer will seize the microphone and speaker of the vehicle to realize the voice function will also occur, thus causing problems such as false wake-up of the mobile phone and the car computer or inconsistent voice recognition. For example, if the user is using the voice function of the car computer to ask the car computer the question "What's the weather like today?", and at this time, if the voice function on the mobile phone is also turned on, both the mobile phone and the car computer will respond to the user's voice, causing the user to be unable to use the voice function normally.
[0076] In order to solve the problem of function conflicts between the mobile phone and the car computer, a technical solution is currently provided: if the mobile phone is projected to the car computer and the mobile phone is in a call, and the car computer calls at this time, the mobile phone call is directly hung up. In this technical solution, if the user is on an important call, the method of directly hanging up the call is used, resulting in a poor user experience.
[0077] In order to solve the above-mentioned problem of function conflict, the embodiment of the present application provides a method for handling function conflict. After the interface of the first device is projected to the second device, the first device and the second device can send each other the status of the functions in the devices. When there is a function conflict, both the first device and the second device can handle the function conflict, so that the user can use the functions on the device normally. In the embodiment of the present application, the first device and the second device can also handle the function conflict in different ways according to different functions, which is more in line with the needs of users and improves the user experience.
[0078] It should be understood that the functions in the first device in the embodiment of the present application can be understood as system functions and / or application functions in the first device. Exemplarily, the functions in the first device can be realized by opening the application in the first device, and / or the functions of the system of the first device. The functions in the second device refer to the description of the functions of the first device. The functions on the first device may include but are not limited to the following categories: basic functions (such as telephone functions, map navigation functions, music functions and voice functions, etc.), driving safety functions (car key functions, driving care functions, vehicle service functions, etc.), service enhancement functions (artificial intelligence functions, smart home functions, video conferencing functions, parking service functions, etc.), and entertainment functions (audiobook functions, communication and social functions, audio and video entertainment functions, simulation game functions, etc.). It should be noted that the first device and the second device in the embodiment of the present application are both electronic devices that can realize navigation functions, telephone functions and voice functions. For example, the first device and the second device can be terminal devices, vehicle-mounted devices (such as car machines), intelligent robots, etc. Among them, the terminal device can refer to user equipment, access terminals, user units, user stations, remote terminals, mobile devices, user terminals, terminals, wireless communication devices, user agents or user devices. The terminal device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a personal digital assistant (PDA), a handheld device with wireless communication function, a computer or other processing device, a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in a smart home, a terminal device in a 5G network, or a terminal device in a public land mobile communication network (PLMN) to be evolved in the future, etc. The embodiments of the present application are not limited to this.
[0079] The following is a description of the method for handling functional conflicts provided by the embodiments of the present application in conjunction with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Figure 4 The following is a flow chart of an embodiment of a method for handling function conflicts provided in an embodiment of the present application. Figure 4 As shown, the method for handling function conflicts provided in the embodiment of the present application may include:
[0080] S401, the second device receives the projection data from the first device and the first status information of the first function in the first device, where the first status information is used to indicate the working status of the first function in the first device.
[0081] S402: If the first function in the second device is in a working state, and the first state information indicates that the first function in the first device is also in a working state, the second device processes a conflict of the first function.
[0082] In the above S401, it should be understood that after the first device and the second device in the embodiment of the present application establish a connection, the interface of the first device can be projected to the second device. The connection method between the first device and the second device can be a wired connection or a WIFI point-to-point connection. Among them, the method of projecting the interface of the first device to the second device may include but is not limited to: the user clicks the projection icon or projection button on the car computer, and the car computer displays a personal identification number (personal identification number, PIN) and sends a connection broadcast at the same time. After the mobile phone receives the broadcast, a car computer discovery box will pop up to prompt the user to connect. Or after the user connects the car computer and the mobile phone with a USB cable, the mobile phone will pop up a display box of the car computer discovery, prompting the user to connect. In the embodiment of the present application, there is no restriction on the method of projecting the interface of the first device to the second device.
[0083] Different from the current technical solution, in the embodiment of the present application, when the interface of the first device is projected to the second device, the first device not only sends the projection data to the second device, but also sends the first status information of the first function in the first device to the second device. It should be understood that the projection data in the embodiment of the present application refers to the relevant data of the interface of the first device. For example, when the first device projects the main interface of the first device to the second device, the projection data can be the relevant data of the main interface of the first device. Among them, the projection interface of the first device on the second device is different, and the projection data is also different, but the purpose of the projection data is to enable the second device to display the interface of the first device on the interface of the second device according to the projection data, and play the audio of the first device, etc.
[0084] Among them, the first status information is used to indicate the working status of the first function in the first device. Exemplarily, the first status information may indicate that the first function is in a working state or a non-working state. For example, when the first function is a navigation function, the first status information of the navigation function may be a working state (navigating) or a non-working state (idle). When the first function is a voice function, the first status information of the voice function may be a working state (wake-up state) or a non-working state (idle). When the first function is a telephone function, the first status information of the telephone function may be a working state (talking, outgoing call or incoming call) or a non-working state (idle). Alternatively, when the first function is a telephone function, the first status information may further specifically indicate the specific type of the working state of the first function, such as the first status information may indicate that the telephone function is in a talk state, an outgoing call state or an incoming call state, etc.
[0085] It should be understood that the first status information may include an indicator bit such as 1 or 0 to indicate the working status of the first function in the first device. For example, 1 can indicate that the first function is in a working state, and 0 indicates that the first function is in a non-working state. In addition, when the first status information can also specifically indicate the specific type of the working state of the first function, other indicator bits can be used for indication. In the embodiment of the present application, there is no restriction on the manner in which the first status information indicates the working status of the first function in the first device. It should be noted that the purpose of the first device sending the projection data is to display the interface of the first device on the second device, and the purpose of the first device sending the first status information of the first function in the first device is to synchronize the working status of the first function in the first device to the second device, so that when there is a conflict in the first function, the second device can handle the conflict of the first function.
[0086] In the above S402, after receiving the first status information, the second device can obtain the working status of the first function in the first device. The second device can determine whether the first function in the first device conflicts with the first function in the second device based on the working status of the first function in the second device and the working status of the first function in the first device. If the first function in the second device is in a working state, and the first status information indicates that the first function in the first device is also in a working state, the second device determines that the first function in the first device conflicts with the first function in the second device, and the second device handles the conflict of the first function.
[0087] In the embodiment of the present application, because the second device is already executing the first function before the first device executes the first function (i.e., the first function in the second device is in working state), therefore, the way in which the second device handles the conflict of the first function in the embodiment of the present application can be that the second device that first executes the first function continues to execute the first function, and the first device that executes the first function later exits the first function. Optionally, the second device can send an occupied message to the first device, and the occupied message indicates that the second device is executing the first function and instructs the first device to exit the first function. Exemplarily, if a call is in progress in the second device and the first device receives a call at this time, the second device can continue the call and the first device hangs up the call. This way of handling the telephone function will not cause the ongoing call to be suddenly hung up, which can improve the user experience compared to the current technical solution.
[0088] However, in actual application scenarios, the first function that is executed later is largely used by user needs. For example, the second device is executing the navigation function, and the user may think that the navigation function on the second device is inaccurate, so the navigation function in the first device is used. In this scenario, when the navigation functions on the first device and the second device conflict, it will be more in line with the user's needs for the first device to execute the navigation function, otherwise the user will not use the navigation function in the first device again. Alternatively, the second device is executing the voice function, and the user may think that the voice function on the second device responds slowly or inaccurately, so the voice function in the first device is used. In this scenario, when the voice functions conflict, it will be more in line with the user's needs for the first device to execute the voice function, otherwise the user will not use the voice function in the first device again.
[0089] In addition, for the phone function, from the perspective of user use, the phone function executed on the first device and the phone function executed on the second device are both important to the user. If the phone functions conflict, exiting the phone function on any device will affect the user experience. For example, the car computer is connected to the mobile phone of user 1 via Bluetooth, and the mobile phone interface of user 2 is projected to the car computer. If the car computer is currently connected to the phone of user 1, and user 2's mobile phone is calling at this time, the phone function is important to both user 1 and user 2, so exiting the phone function on the car computer or the mobile phone will affect the user experience.
[0090] Therefore, in order to further improve the user experience, a preset processing method suitable for the first function can be pre-set in the embodiment of the present application. When there is a conflict in the first function, the second device can handle the conflict of the first function according to the preset processing method corresponding to the first function. That is to say, in the embodiment of the present application, for different first functions, when there is a conflict in the first function, the second device can use different processing methods to handle the conflict of the first function.
[0091] Among them, in the embodiment of the present application, a possible way for the second device to handle the conflict of the first function can be: when the first function is a navigation function or a voice function, the second device receives the first status information and determines that there is a conflict between the first function in the first device and the first function in the second device, then the second device can stop executing the first function in the second device and output the projection data. In other words, the second device stops executing the first function in the second device, the first device continues to execute the first function, and can display the interface of the first device executing the first function on the second device and use the hardware module of the second device to play the audio corresponding to the first function.
[0092] Figure 5 FIG. 1 is a schematic diagram of a process flow for handling navigation function conflicts provided in an embodiment of the present application. Figure 5As shown, when the first function is a navigation function, the above S401 can be replaced by S501, and the above S402 can be replaced by S502.
[0093] S501, the second device receives the projection data from the first device and the first status information of the navigation function in the first device.
[0094] S502: If the navigation function in the second device is in working state, and the first status information indicates that the navigation function in the first device is also in working state, the second device exits the navigation function and outputs the projection data.
[0095] Among them, after the interface of the mobile phone is projected to the vehicle computer, and when the navigation function is being executed on the vehicle computer, if the user opens the navigation function on the mobile phone at this time, the vehicle computer exits the navigation function and the mobile phone continues to execute the navigation function. Correspondingly, the second device outputs the projection data here means that the vehicle computer displays the interface of the navigation function in the mobile phone according to the projection data, and uses the speaker on the vehicle to play the navigation audio.
[0096] For example, Figure 6 Scenario diagram provided for the embodiment of this application Figure 2 . With the above Figure 3 The difference is that when the navigation functions of the mobile phone and the vehicle computer conflict, the vehicle computer can exit navigation in the embodiment of the present application. Figure 6 The interface in the Figure 3 The navigation interface on the mobile phone is on the middle right, and the audio of the navigation on the mobile phone is played "Turn left onto Avenue A".
[0097] Figure 7 Schematic diagram of the processing flow of voice function conflict provided in the embodiment of the present application. Figure 7 As shown, when the first function is a voice function, the above S401 can be replaced by S701, and the above S402 can be replaced by S702.
[0098] S701, the second device receives the screen projection data from the first device and the first status information of the voice function in the first device.
[0099] S702: If the voice function in the second device is in working state, and the first status information indicates that the voice function in the first device is also in working state, the second device stops executing the voice function and outputs the projection data.
[0100] Among them, after the interface of the mobile phone is projected to the car computer, when the voice function is being executed on the car computer, if the user turns on the voice function on the mobile phone at this time, the car computer stops executing the voice function, such as the car computer can stop receiving the sound. Correspondingly, the second device outputs the projection data here means that the car computer displays the interface of the voice function in the mobile phone according to the projection data, uses the handset on the vehicle to collect the user's voice, and uses the speaker on the vehicle to play the response audio for voice interaction with the user.
[0101] Another possible way for the second device to handle the conflict of the first function in the embodiment of the present application may be: when the first function is a telephone function, the second device receives the first status information and determines that there is a conflict between the first function in the first device and the first function in the second device, then the second device may continue to execute the first function in the second device and send an occupation message to the first device. The occupation message indicates that the first device uses the hardware module of the first device to execute the first function.
[0102] Figure 8 Schematic diagram of the process flow of telephone function conflict provided in the embodiment of the present application. Figure 8 As shown, when the first function is a telephone function, the above S401 can be replaced by S801, and the above S402 can be replaced by S802 and S803.
[0103] S801, the second device receives the screen projection data from the first device and the first status information of the telephone function in the first device.
[0104] S802: If the telephone function in the second device is in working state, and the first status information indicates that the telephone function in the first device is also in working state, the second device executes the telephone function in the second device and sends an occupied message to the first device.
[0105] S803: The first device uses the hardware module of the first device to execute the first function.
[0106] For example, after the mobile phone interface is projected to the vehicle computer, and when the vehicle computer is executing a phone function, if the user's mobile phone calls, the vehicle computer determines that the phone function conflicts, and the vehicle computer can continue to execute the phone function on the vehicle computer and send an occupied message to the mobile phone. After the mobile phone receives the occupied message, the handset on the mobile phone can be used to collect the user's voice and the speaker on the mobile phone can be used to play the audio of the phone call.
[0107] For example, Fig. 9 Scenario diagram provided for the embodiment of this application Figure 3 .like Fig. 9 As shown in A, the car computer is on a call, and a mobile phone call comes in. Fig. 9The left side of the car computer in the figure shows the phone of the car computer that is in call, and the right side of the car computer shows the incoming call interface of the mobile phone. In the embodiment of the present application, when the phone functions conflict, the car computer can continue to execute the phone function, and the mobile phone can use the hardware module on the mobile phone to execute the phone function, such as Fig. 9 As shown in B, the car computer uses the receiver and speaker in the vehicle to continue the call, and the mobile phone uses the speaker on the mobile phone to ring.
[0108] The method for handling function conflicts provided in the embodiment of the present application includes: the second device receives the projection data from the first device and the first status information of the first function in the first device, and the first status information is used to indicate the working status of the first function in the first device; if the first function in the second device is in a working state, and the first status information indicates that the first function in the first device is also in a working state, then the second device handles the conflict of the first function. In the embodiment of the present application, after the interface of the first device is projected to the second device, and when the first functions in the first device and the second device conflict, the second device can handle the function conflict so that the user can use the function normally. And in the embodiment of the present application, for different functions, a processing method suitable for different functions can also be used to handle the function conflict, which is more in line with the needs of users and improves the user experience.
[0109] In the above embodiment, the first device can send the first status information of the first function in the first device to the second device while sending the projection data to the second device. The first status information can be sent when the projection connection between the first device and the second device is successful, or it can be sent when the working status of the first function in the first device changes. The following describes the method for handling function conflicts in the embodiments of the present application for these two scenarios. Fig.10 A flowchart of another embodiment of the method for handling function conflicts provided in the embodiment of the present application is shown. Fig.10 As shown, the method for handling function conflicts in the embodiment of the present application may include:
[0110] S1001, after the first device and the second device establish a connection, the second device receives the projection data from the first device and the status information of each function in the first device, the functions include the first function, and the status information of each function includes the first status information.
[0111] S1002: If the first function in the second device is in a working state, and the first state information indicates that the first function in the first device is also in a working state, the second device processes a conflict of the first function.
[0112] S1003: If the first function in the second device and / or the first function in the first device is in a non-working state, the second device determines that there is no conflict between the first function in the second device and the first function in the first device.
[0113] S1004: If the first function is a navigation function or a voice function, the second device discards the first status information; or, if the first function is a telephone function, the second device stores the first status information.
[0114] It should be understood that S1002 and "S1003-S1004" in the embodiment of the present application are steps to be performed selectively. The implementation of S1002 can refer to the relevant description in the above embodiment S402.
[0115] In the above S1001, after the first device and the second device establish a connection (such as the above-mentioned wired connection or WIFI point-to-point connection), the first device can send screen projection data to the second device so that the interface of the first device is projected to the second device. And the first device can send status information of each function in the first device to the second device. Among them, each function includes the above-mentioned first function, and accordingly, the status information of each function includes the first status information. Exemplarily, after the first device and the second device establish a connection, the first device can send screen projection data and status information of each function (telephone function, navigation function and voice function) to the second device. It should be understood that in an embodiment of the present application, after the first device and the second device establish a connection, when the first device sends status information to the second device for the first time, the status information of each function in the first device can be sent to the second device. It can be thought that when the first device sends status information to the second device for the first time, the first device can send status information of the first function in working state to the second device.
[0116] In the above S1003, after the second device receives the first status information, if the first function in the second device and / or the first function in the first device is in a non-working state, the second device determines that the first function in the second device does not conflict with the first function in the first device. Exemplarily, if the first function in the second device is in a non-working state, and the first status information indicates that the first function in the first device is in a working state, the second device determines that the first function in the second device does not conflict with the first function in the first device. Alternatively, if the first function in the second device is in a working state, and the first status information indicates that the first function in the first device is in a non-working state, the second device determines that the first function in the second device does not conflict with the first function in the first device. Alternatively, if the first function in the second device is in a non-working state, and the first status information indicates that the first function in the first device is in a non-working state, the second device determines that the first function in the second device does not conflict with the first function in the first device.
[0117] In the above S1004, when the second device determines that there is no conflict between the first function in the second device and the first function in the first device, in an embodiment of the present application, the second device may process the first state information differently according to the first function. Among them, if the first function is a navigation function or a voice function, the second device discards the first state information. In an embodiment of the present application, if the navigation function or the voice function in the second device is in a working state, when the second device discards the first state information, the second device continues to execute the second function, such as when the first function is a voice function, the second device can continue to receive sound.
[0118] Wherein, if the first function is a telephone function, the second device stores the first status information. Exemplarily, if the first status information indicates that the telephone function in the first device is in an idle state, the second device stores the idle state. It should be noted that the second device in the embodiment of the present application is a device in a vehicle, such as a car computer. The vehicle is also provided with a function button, which is used to trigger the second device to process the first function in the first device. Wherein, the function control may be a control set on the steering wheel of the vehicle, referred to as a square control. Alternatively, the function control may be a control displayed on the interface of the car computer. Wherein, in different scenarios of telephone function application in the embodiment of the present application, the function button is triggered, and the second device processes the telephone function in different ways.
[0119] It should be understood that in the current technical solution, if the interface of the first device is not projected to the second device, the user's operation of the function control can trigger the second device to process the telephone function in the second device. In the embodiment of the present application, after the interface of the first device is projected to the second device, the function control can be triggered to achieve reverse control, that is, the user operates the function control to trigger the second device to process the telephone function in the first device. It should be noted that the reason why the second device in the embodiment of the present application stores the first state information of the telephone function is that when the user triggers the function control in the embodiment of the present application, the second device can process the telephone function in the first device differently according to the first state information of the telephone function. Exemplarily, if the first state information is an idle state, when a mobile phone call comes in, the user's operation of the function control can trigger the car computer to answer the mobile phone call. If the first state information is a call state, the user's operation of the function control can trigger the car computer to hang up the mobile phone call.
[0120] It should be understood that the second device can process the phone function differently according to the first state information of the phone function and the user's operation action on the function control. Exemplarily, if the first state information is an idle state, when a mobile phone calls, the user can trigger the car machine to answer the phone call by a short press of the function control, and the user can trigger the car machine to hang up the phone call by a long press of the function control. Alternatively, if the first state information is a call state, the user can trigger the car machine to hang up the phone call by a short press of the function control. Alternatively, if the first state information is an outgoing state, the user can trigger the car machine to hang up the phone call by a short press of the function control. Among them, short press refers to the user clicking or pressing the function control for a duration less than a preset duration, and long press refers to the user clicking or pressing the function control for a duration greater than a preset duration. It should be understood that the user's action of operating the function control in the embodiment of the present application can also be sliding, double-clicking, or pressing twice, etc., and the above-mentioned user's long press or short press of the function control is an example. The above-mentioned processing of the phone function of the mobile phone by the car computer "answering and hanging up" is also an example. The processing of the phone function of the mobile phone by the car computer can also be to hold the call or transfer the call, etc., which is not limited in this embodiment of the present application.
[0121] The following two scenarios are used to illustrate this function control. Fig.11 Scenario diagram provided for the embodiment of this application Figure 4 .like Fig.11 As shown in A in the figure, the interface of the vehicle computer displays the incoming call interface of the phone on the mobile phone. If the function control is a square control, the user can short press the square control to answer the call on the mobile phone. After the user short presses the square control, the vehicle computer can detect that the user's operation action on the square control is "short press", and the vehicle computer can answer the call on the mobile phone according to the first state information "idle" of the phone function stored in the mobile phone, such as Fig.11 As shown in B in the figure, the interface of the vehicle computer can display the interface for the vehicle computer to answer a call from a mobile phone.
[0122] Fig.12 Scenario diagram provided for the embodiment of this application Figure 5 .like Fig.12 As shown in A in the figure, the interface of the car computer shows that the mobile phone is in a call. If the function control is a square control, the user can short press the square control to hang up the phone. After the user short presses the square control, the car computer can detect that the user's operation action on the square control is "short press", and the car computer can hang up the phone according to the first state information "call state" of the phone function stored in the mobile phone, such as Fig.12 As shown in B in the figure, the interface of the vehicle computer can display the interface of hanging up the mobile phone, such as the main interface of the mobile phone.
[0123] Fig.13 A flowchart of another embodiment of the method for handling function conflicts provided in the embodiment of the present application. Fig.13 As shown, the method for handling function conflicts in the embodiment of the present application may include:
[0124] S1301, when the state of the first function in the first device changes, the first device sends the projection data and the state information of the first function in the first device to the second device.
[0125] S1302: If the first function in the second device is in a working state, and the first state information indicates that the first function in the first device is also in a working state, the second device processes a conflict of the first function.
[0126] S1303: If the first function in the second device and / or the first function in the first device is in a non-working state, the second device determines that there is no conflict between the first function in the second device and the first function in the first device.
[0127] S1304: If the first function is a navigation function or a voice function, the second device discards the first status information; or, if the first function is a telephone function, the second device stores the first status information.
[0128] It should be understood that S1302-S1304 in the embodiment of the present application can refer to the relevant description of S1002-S1004 above, and will not be repeated here.
[0129] The difference between S1301 in the embodiment of the present application and the above-mentioned S1001 is that: the above-mentioned S1001 carries the first status information of the first function when the first device sends status information to the second device for the first time, while in S1301, when the status of the first function in the first device changes, the first device sends the projection data and the status information of the first function in the first device to the second device. Among them, the change in the status of the first function in the first device can be understood as: the first function in the first device changes from a working state to a non-working state, or from a non-working state to a working state. Or, the telephone function in the first device changes from an idle state to a call state, or the telephone function changes from an outgoing state to an idle state, etc. That is to say, in the embodiment of the present application, the first device sends the latest first status information of the first function in the first device to the second device.
[0130] In this scenario, taking the first function as a voice function as an example, the method for processing the voice function by the second device in the embodiment of the present application is described, wherein when the first device exits the voice function, the first state information of the voice function changes. Figure 7 Based on the embodiment shown, the following steps may be further included after S702:
[0131] S703, the first device sends the screen projection data and new first status information of the voice function in the first device to the second device, and the new first status information indicates that the voice function in the first device is in a non-working state.
[0132] S704: The second device resumes executing the voice function.
[0133] When the voice function in the first device changes from a working state to a non-working state, the first device sends screen projection data and new first status information to the second device. It should be understood that the screen projection data here may be different from the screen projection data in S701. For example, the screen projection data in S701 may include relevant data of the first device executing the voice function, and the screen projection data in S703 may include relevant data of the first device exiting the voice function. Among them, the new first status information is used to indicate that the voice function in the first device is in a non-working state. Because the second device stops executing the voice function in the above S702, and when the second device receives the new first status information, there is no conflict between the voice function in the first device and the voice function in the second device, so the second device can resume executing the voice function, such as the second device can continue to receive sound.
[0134] It should be understood that Fig.13 The steps shown in Fig.10 Follow the steps shown.
[0135] In an embodiment of the present application, the first device may send the first status information of the first function in the first device to the second device when sending status information to the second device for the first time, and the first device may send the first status information to the second device when the status of the first function in the first device changes. In an embodiment of the present application, when there is no conflict between the first functions, the second device processes the first status information differently according to different first functions. In addition, in an embodiment of the present application, the second device may store the first status information of the telephone function, and then when the user operates the function control in different operating modes, the second device performs different processing on the telephone function, thereby realizing the control of the first function in the first device by the function control.
[0136] The above embodiments all describe that the second device handles the conflict of the first function according to the first status information of the first function in the first device. Based on the above embodiments, in the embodiments of the present application, the first device can not only send the first status information of the first function in the first device to the second device, but the second device can also send the second status information of the first function in the second device to the first device, and the first device handles the conflict of the first function. Fig.14 This is a flow chart of another embodiment of the method for handling function conflicts provided in the embodiment of the present application. It should be understood that Fig.14The method for handling functional conflicts shown in can be used with Figure 4 There is no order of precedence for the methods of handling the functional conflicts shown, and both can be executed at the same time. Fig.14 As shown, the method for handling function conflicts provided in the embodiment of the present application may include:
[0137] S1401: If the working state of the first function in the second device changes, second state information of the first function is sent to the first device, where the second state information indicates the working state of the first function in the second device.
[0138] S1402: If the first function in the first device is in a working state, and the second state information indicates that the first function in the second device is also in a working state, the first device processes a conflict of the first function.
[0139] S1403, if the first function in the first device and / or the first function in the second device is in a non-working state, the first device determines that there is no conflict between the first function in the first device and the first function in the second device, and the first device discards the second state information.
[0140] It should be understood that the implementation of S1401-S1403 in the embodiment of the present application can refer to the relevant description of S1301-S1304 in the above embodiment. S1402 and S1403 are optional steps. Fig.13 The difference is that in the embodiment of the present application, the executor for handling the conflict of the first function is the first device, and the way in which the first device handles the conflict of the first function can refer to the relevant description of the second device handling the conflict of the first function in the above embodiment.
[0141] In an embodiment of the present application, the first device can not only send the first status information of the first function in the first device to the second device, but the second device can also send the second status information of the first function in the second device to the first device. That is to say, the first device and the second device can share the status information of the first function in their respective devices with each other. Therefore, the first device and the second device can both handle the conflict of the first function when the first function conflicts, thereby enabling the user to use the functions in the device normally and improving the user experience.
[0142] Fig.15 The structure diagram of a function conflict processing device provided in an embodiment of the present application. The function conflict processing device in the embodiment of the present application can be the second device mentioned above, or it can be a chip used in the second device. The function conflict processing device can be used to execute the action of the second device in the above method embodiment. Fig.15 As shown, the function conflict processing device may include: a transceiver module 1501 and a processing module 1502. Among them,
[0143] The transceiver module 1501 is used to receive the screen projection data from the first device and the first status information of the first function in the first device, where the first status information is used to indicate the working status of the first function in the first device.
[0144] The processing module 1502 is configured to process a conflict of the first function if the first function in the second device is in a working state and the first state information indicates that the first function in the first device is also in a working state.
[0145] In a possible implementation, the processing module 1502 is specifically configured to process the conflict of the first function according to a preset processing method corresponding to the first function.
[0146] In a possible implementation, the processing module 1502 is specifically used to stop executing the first function in the second device and output the projection data.
[0147] In a possible implementation manner, the first function is any one of the following: a navigation function and a voice function.
[0148] In a possible implementation, the processing module 1502 is specifically configured to execute the first function in the second device and send an occupation message to the first device, where the occupation message indicates that the first device uses the hardware module of the first device to execute the first function.
[0149] In a possible implementation manner, the first function is a telephone function.
[0150] In one possible implementation, the first status information is sent when the working status of the first function in the first device changes; or, the first status information is: when the first device sends the status information of the function to the second device for the first time, the status information of each function sent by the first device.
[0151] In one possible implementation, the processing module 1502 is also used to determine that there is no conflict between the first function in the second device and the first function in the first device if the first function in the second device and / or the first function in the first device is in a non-working state; wherein, if the first function is a navigation function or a voice function, the first status information is discarded; if the first function is a telephone function, the first status information is stored.
[0152] In a possible implementation, the transceiver module 1501 is specifically configured to send second status information of the first function to the first device if the working status of the first function in the second device changes, where the second status information indicates the working status of the first function in the second device.
[0153] Fig.16A schematic diagram of the structure of another function conflict processing device provided in an embodiment of the present application. The function conflict processing device in the embodiment of the present application can be the first device mentioned above, or a chip used in the first device. The function conflict processing device can be used to execute the action of the first device in the above method embodiment. Fig.16 As shown, the function conflict processing device may include: a transceiver module 1601 and a processing module 1602. Among them,
[0154] The transceiver module 1601 is used to send the screen projection data and the first status information of the first function in the first device to the second device, where the first status information indicates the working status of the first function in the first device.
[0155] In one possible implementation, the transceiver module 1601 is specifically used to project the interface of the first device to the second device, and when the first device sends the status information of the function to the second device for the first time, the status information of each function in the first device is sent to the second device, where each function includes the first function, and the status information of each function includes the first status information; or, the transceiver module 1601 is specifically used to project the interface of the first device to the second device, and when the working status of the first function in the first device changes, the first status information is sent to the second device.
[0156] In one possible implementation, the transceiver module 1601 is also used to receive second status information of a first function in a second device from a second device, where the second status information is sent when the working status of the first function in the second device changes, and the second status information is used to indicate the working status of the first function in the second device.
[0157] Correspondingly, the processing module 1602 is used to process the conflict of the first function if the first function in the first device is in a working state and the second state information indicates that the first function in the second device is also in a working state.
[0158] In a possible implementation, the processing module 1602 is specifically configured to process the conflict of the first function according to a preset processing method corresponding to the first function.
[0159] In a possible implementation, the processing module 1602 is specifically configured to stop executing the first function in the first device.
[0160] In a possible implementation manner, the first function is any one of the following: a navigation function and a voice function.
[0161] In a possible implementation, the processing module 1602 is specifically configured to use a hardware module of the first device to execute the first function.
[0162] In a possible implementation manner, the first function is a telephone function.
[0163] In one possible implementation, the processing module 1602 is also used to, if the first function in the first device and / or the first function in the second device is in a non-working state, the first device determines that there is no conflict between the first function in the first device and the first function in the second device, and the first device discards the second state information.
[0164] In a possible implementation, the processing module 1602 is further configured to use a hardware module of the first device to execute the first function if the first device receives an occupancy message from the second device.
[0165] The implementation principle and technical effect of the function conflict processing device provided in the embodiment of the present application are similar, and will not be repeated here.
[0166] It should be noted that it should be understood that the above transceiver module can be a transceiver or include a transmitter and a receiver when it is actually implemented. The processing module can be implemented in the form of software called by a processing element; it can also be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated in a chip of the above-mentioned device for implementation. In addition, it can also be stored in the memory of the above-mentioned device in the form of program code, and called and executed by a processing element of the above-mentioned device. The functions of the above processing module. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0167] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0168] Fig.17 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.17 The electronic device shown may be the first device or the second device in the above embodiment. Fig.17 As shown, the electronic device may include: a processor 1701 (e.g., a CPU), a memory 1702, and a transceiver 1703; the transceiver 1703 is coupled to the processor 1701, and the processor 1701 controls the transceiver 1703's transceiver action; the memory 1702 may include a high-speed random access memory (random-access memory, RAM), and may also include a non-volatile memory (non-volatile memory, NVM), such as at least one disk storage, and the memory 1702 may store various instructions for completing various processing functions and implementing the method steps of the present application. Optionally, the electronic device involved in the present application may also include: a power supply 1704, a communication bus 1705, a communication port 1706, and a display 1707. The transceiver 1703 may be integrated in the transceiver of the electronic device, or it may be an independent transceiver antenna on the electronic device, which is used to perform the actions performed by the transceiver module in the above embodiment. The communication bus 1705 is used to realize the communication connection between components. The display 1707 is used to display the user interface of the electronic device. The communication port 1706 is used to realize connection and communication between the electronic device and other peripheral devices.
[0169] In an embodiment of the present application, the above-mentioned memory 1702 is used to store computer executable program code, and the program code includes instructions; when the processor 1701 executes the instructions, the instructions enable the processor 1701 of the electronic device to perform the processing actions of the electronic device in the above-mentioned method embodiment, and enable the transceiver 1703 to perform the transceiver actions of the electronic device in the above-mentioned method embodiment. The implementation principles and technical effects are similar and will not be repeated here.
[0170] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0171] The term "plurality" in this article refers to two or more than two. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in a formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship.
[0172] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
[0173] It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Claims
1. A method for handling functional conflicts, characterized in that: include: The second device receives the screen projection data from the first device and first status information of the first function in the first device, where the first status information is used to indicate a working status of the first function in the first device; If the first function in the second device is in a working state, and the first state information indicates that the first function in the first device is also in a working state, the second device processes the conflict of the first function; The second device processes the conflict of the first function, including: The second device processes the conflict of the first function according to a preset processing method corresponding to the first function; When the first function is a telephone function, the preset processing method corresponding to the first function includes: The second device performs the first function in the second device; Sending an occupation message to the first device, where the occupation message instructs the first device to use a hardware module of the first device to perform the first function; If the first function in the second device and / or the first function in the first device is in a non-working state, the second device determines that there is no conflict between the first function in the second device and the first function in the first device; If the first function is a telephone function, the second device stores the first status information; In response to a trigger signal of the function control, the second device processes the telephone function in the first device according to the stored first status information, and the processing includes: the second device answers the call or the second device hangs up the call.
2. The method according to claim 1, characterized in that When the first function is a navigation function or a voice function, the preset processing method corresponding to the first function includes: The second device stops executing the first function in the second device and outputs the projection data.
3. The method according to claim 2, characterized in that The first function is any one of the following: navigation function, voice function.
4. The method according to any one of claims 1 to 3, characterized in that The first status information is sent when the working status of the first function in the first device changes; or, The first status information is: status information in the status information of each function sent by the first device when the first device sends the status information of the function to the second device for the first time.
5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When the second device determines that the first function in the second device does not conflict with the first function in the first device, If the first function is a navigation function or a voice function, the second device discards the first state information.
6. The method according to any one of claims 1 to 3, characterized in that The method further comprises: If the working state of the first function in the second device changes, second state information of the first function is sent to the first device, where the second state information indicates the working state of the first function in the second device.
7. A method for handling functional conflicts, characterized in that: include: The first device sends screen projection data and first status information of a first function in the first device to the second device, where the first status information indicates a working status of the first function in the first device; When the first function is a telephone function, if the first function in the second device is in a working state, and the first state information indicates that the first function in the first device is also in a working state, the first device receives an occupation message sent by the second device, and the occupation message indicates that the first device uses a hardware module of the first device to execute the first function; If the first function in the second device is in a non-working state and / or the first state information indicates that the first function in the first device is in a non-working state, and the first function is a telephone function, the first device receives a processing signal, and the processing signal is used to instruct the second device to process the telephone function in the first device, and the processing includes: the second device answers the call or the second device hangs up the call; The processing signal is determined by the second device in response to a trigger signal of a function control according to the first state information.
8. The method according to claim 7, characterized in that The first device sending the first status information to the second device includes: When the interface of the first device is projected onto the second device and the first device sends function status information to the second device for the first time, the first device sends status information of each function in the first device to the second device, the functions include the first function, and the status information of each function includes the first status information; or, When the interface of the first device is projected to the second device and the working state of the first function in the first device changes, the first device sends the first state information to the second device.
9. The method according to claim 7, characterized in that: The method further comprises: The first device receives second status information of a first function in the second device from the second device, where the second status information is sent when a working status of the first function in the second device changes, and the second status information is used to indicate the working status of the first function in the second device; If the first function in the first device is in a working state, and the second state information indicates that the first function in the second device is also in a working state, the first device processes the conflict of the first function.
10. The method according to claim 9, characterized in that The first device processes the conflict of the first function, including: The first device processes the conflict of the first function according to a preset processing method corresponding to the first function.
11. The method according to claim 10, characterized in that The preset processing method corresponding to the first function includes: The first device stops executing the first function in the first device.
12. The method according to claim 11, characterized in that The first function is any one of the following: navigation function, voice function.
13. The method according to any one of claims 7 to 12, characterized in that: The method further comprises: If the first function in the first device and / or the first function in the second device is in a non-working state, the first device determines that there is no conflict between the first function in the first device and the first function in the second device, and the first device discards the second state information.
14. The method according to claim 7 or 8, characterized in that The method further comprises: If the first device receives an occupation message from the second device, the first function is performed using a hardware module of the first device.
15. A device for processing function conflicts, characterized in that: include: a transceiver module, used for receiving screen projection data from a first device and first status information of a first function in the first device, where the first status information is used for indicating a working status of the first function in the first device; a processing module, configured to process a conflict of the first function if the first function in the second device is in a working state and the first state information indicates that the first function in the first device is also in a working state; The processing module is specifically configured to process the conflict of the first function according to a preset processing method corresponding to the first function; When the first function is a telephone function, the preset processing method corresponding to the first function includes: the second device executing the first function in the second device; sending an occupation message to the first device, the occupation message instructing the first device to use the hardware module of the first device to execute the first function; The processing module is also used to determine that there is no conflict between the first function in the second device and the first function in the first device if the first function in the second device and / or the first function in the first device is in a non-working state; wherein, if the first function is a telephone function, the first status information is stored; in response to a trigger signal of the function control, the telephone function in the first device is processed according to the stored first status information, and the processing includes: the second device answers the call or the second device hangs up the call.
16. A device for processing function conflicts, characterized in that: include: a transceiver module, configured to send screen projection data and first status information of a first function in the first device to the second device, wherein the first status information indicates a working status of the first function in the first device; The transceiver module is further configured to, when the first function is a telephone function, if the first function in the second device is in a working state and the first state information indicates that the first function in the first device is also in a working state, receive an occupation message sent by the second device, wherein the occupation message indicates that the first device uses a hardware module of the first device to execute the first function; The transceiver module is further configured to receive a processing signal if the first function in the second device is in a non-working state and / or the first state information indicates that the first function in the first device is in a non-working state, and the first function is a telephone function, wherein the processing signal is used to instruct the second device to process the telephone function in the first device, and the processing includes: the second device answers a call or the second device hangs up a call; The processing signal is determined by the second device in response to a trigger signal of a function control according to the first state information.
17. An electronic device, characterized in that: include: memory, processors, and transceivers; The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method according to any one of claims 1 to 14; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a computer, the computer is caused to execute the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Sound sources management method in dual-terminal interconnection mode
CN105790802A
System and method for managing mobile communications
US20050075128A1
Cited By
Function conflict processing method and apparatus, and electronic device, and readable storage medium
WO2022017291A1
