Disclosure of Invention
The present application aims to provide a resource sharing method and a resource sharing system using the resource sharing method, which can share multimedia resources through a vehicle-mounted terminal and share the multimedia resources required by a designated user.
In order to solve the above technical problem, the present application provides a resource sharing method, including the following steps: the mobile terminal receives the sharing instruction, generates and sends a sharing request to the vehicle-mounted terminal according to the sharing instruction, wherein the sharing request comprises shared resource information and a shared terminal identifier; and the vehicle-mounted terminal acquires the corresponding shared resource according to the shared resource information and sends the shared resource to the shared terminal corresponding to the shared terminal identification for playing.
In one embodiment, the step of the mobile terminal receiving the sharing instruction, generating and sending the sharing request to the vehicle-mounted terminal according to the sharing instruction further comprises: when the vehicle-mounted terminal detects that a terminal signal exists in a vehicle, a connection request is sent to one or more mobile terminals corresponding to the terminal signal; and the mobile terminal receives the connection request and is connected with the vehicle-mounted terminal according to the connection request.
In one embodiment, the mobile terminal is connected with the vehicle-mounted terminal through wireless communication and/or wired connection in a vehicle.
In one embodiment, the mobile terminal obtains the sharing instruction through display screen input and/or voice input.
In one embodiment, the shared resources include station frequencies and/or multimedia resources.
In one embodiment, the step of receiving, by the mobile terminal, the sharing instruction, and generating and sending the sharing request to the vehicle-mounted terminal according to the sharing instruction specifically includes: the mobile terminal acquires an in-vehicle terminal list through the vehicle-mounted terminal and selects a shared terminal identifier according to the in-vehicle terminal list; the mobile terminal receives the shared resource information, generates and sends a sharing request to the vehicle-mounted terminal according to the shared resource information and the shared terminal identification; the in-vehicle terminal list comprises vehicle-mounted terminal identifications and all mobile terminal identifications connected with the vehicle-mounted terminals, and the shared terminal identifications comprise one or more mobile terminal identifications contained in the in-vehicle terminal list.
In one embodiment, the step of acquiring, by the vehicle-mounted terminal, the corresponding shared resource according to the shared resource information, and sending the shared resource to the shared terminal corresponding to the shared terminal identifier for playing includes: the vehicle-mounted terminal acquires corresponding shared resources according to the shared resource information, wherein the shared resources comprise multimedia resources stored by the mobile terminal or multimedia resources which are played by the vehicle-mounted terminal; the vehicle-mounted terminal selects a corresponding shared terminal to send the shared resource according to the shared terminal identifier; and the shared terminal receives the shared resource and synchronously plays or freely selects to play the shared resource.
In an embodiment, the step of selecting, by the vehicle-mounted terminal, a corresponding shared terminal to send the shared resource according to the shared terminal identifier specifically includes: the vehicle-mounted terminal selects a corresponding shared terminal according to the shared terminal identification, and sends a synchronous playing instruction to the shared terminal; judging whether the vehicle-mounted terminal plays the shared resource or not and whether the shared terminal is in an audio playing mode or not; if so, the vehicle-mounted terminal filters the audio signals in the shared resources and then sends non-audio signals in the shared resources to the shared terminal; and if not, the vehicle-mounted terminal sends the shared resource to the shared terminal.
The application also provides a resource sharing system, which comprises a vehicle-mounted terminal and one or more mobile terminals; the mobile terminal is used for receiving the sharing instruction, generating a sharing request according to the sharing instruction and sending the sharing request to the vehicle-mounted terminal, wherein the sharing request comprises shared resource information and a shared terminal identifier; the vehicle-mounted terminal is used for acquiring the shared resource corresponding to the shared resource information and sending the shared resource to the shared terminal corresponding to the shared terminal identification for playing.
The resource sharing method and the resource sharing system applying the resource sharing method can enable the vehicle-mounted terminal to be connected with the mobile terminal in the vehicle, share the multimedia resource through the vehicle-mounted terminal, and share the multimedia resource required by the other side to the appointed user. Through the mode, the mobile terminal can acquire and share the resources through the vehicle-mounted terminal.
The foregoing description is only an overview of the technical solutions of the present application, and in order to make the technical means of the present application more clearly understood, the present application may be implemented in accordance with the content of the description, and in order to make the above and other objects, features, and advantages of the present application more clearly understood, the following preferred embodiments are described in detail with reference to the accompanying drawings.
Detailed Description
To further clarify the technical measures and effects taken by the present application to achieve the intended purpose, the present application will be described in detail below with reference to the accompanying drawings and preferred embodiments.
While the present application has been described in terms of specific embodiments and examples for achieving the desired objects and objectives, it is to be understood that the invention is not limited to the disclosed embodiments, but is to be accorded the widest scope consistent with the principles and novel features as defined by the appended claims.
Fig. 1 is a flowchart illustrating a resource sharing method according to a first embodiment of the present application. As shown in fig. 1, the resource sharing method of this embodiment includes the following steps:
step S11: the mobile terminal receives the sharing instruction, generates and sends a sharing request to the vehicle-mounted terminal according to the sharing instruction, wherein the sharing request comprises shared resource information and a shared terminal identifier.
Specifically, in one embodiment, the mobile terminal obtains the sharing instruction through display screen input and/or voice input.
Specifically, in one embodiment, the shared resource information is obtained by the mobile terminal through a display screen input and/or a voice input, including but not limited to multimedia resources stored by the mobile terminal and multimedia resources being played by the in-vehicle terminal.
Step S12: and the vehicle-mounted terminal acquires the corresponding shared resource according to the shared resource information and sends the shared resource to the shared terminal corresponding to the shared terminal identification for playing.
In particular, in one embodiment, the shared resources include station frequencies and/or multimedia resources. The sharing terminal comprises at least one of a vehicle-mounted terminal and/or a mobile terminal connected with the vehicle-mounted terminal.
Specifically, in one embodiment, when the shared resource is a multimedia resource stored by the mobile terminal, the vehicle-mounted terminal acquires the corresponding shared resource through the mobile terminal; when the shared resource is a multimedia resource played by the vehicle-mounted terminal, the vehicle-mounted terminal acquires the corresponding shared resource from the internal storage; and when the shared resources are other multimedia resources, the vehicle-mounted terminal acquires the corresponding shared resources through the cloud server.
The resource sharing method of the embodiment can enable the mobile terminal to obtain and share the resource through the vehicle-mounted terminal.
Fig. 2 is a flowchart illustrating a resource sharing method according to a second embodiment of the present application. As shown in fig. 2, the resource sharing method of this embodiment includes the following steps:
step S21: and when the vehicle-mounted terminal detects that the terminal signal exists in the vehicle, the vehicle-mounted terminal sends a connection request to one or more mobile terminals corresponding to the terminal signal.
Step S22: and the mobile terminal receives the connection request and is connected with the vehicle-mounted terminal according to the connection request.
Specifically, in one embodiment, the mobile terminal is connected with the vehicle-mounted terminal through wireless communication and/or in-vehicle wired connection. The wireless communication includes but is not limited to the connection modes such as internal communication of the central control host, WiFi, Bluetooth and the like; the wired connection in the vehicle includes but is not limited to connection modes such as CAN line connection and data line connection in the vehicle.
Step S23: the mobile terminal obtains the in-vehicle terminal list through the vehicle-mounted terminal, and selects the shared terminal identification according to the in-vehicle terminal list.
Specifically, in an embodiment, the in-vehicle terminal list includes vehicle-mounted terminal identifiers and all mobile terminal identifiers connected to the vehicle-mounted terminals, and the shared terminal identifier includes one or more mobile terminal identifiers included in the in-vehicle terminal list.
Specifically, in one embodiment, when receiving a sharing instruction of a user, the mobile terminal displays an in-vehicle terminal list acquired from the in-vehicle terminal, so that the user can select one or more terminal identifiers as the sharing terminal identifiers.
Specifically, in an embodiment, the user may directly select the sharing terminal identifier according to the in-vehicle terminal list using the vehicle-mounted terminal, and directly send the shared resource to the sharing terminal corresponding to the sharing terminal identifier through the vehicle-mounted terminal.
Step S24: and the mobile terminal receives the shared resource information, generates and sends a sharing request to the vehicle-mounted terminal according to the shared resource information and the shared terminal identifier.
Specifically, in an embodiment, when receiving a sharing instruction of a user, the mobile terminal obtains resource information that the user wants to share through a display screen input box or a voice recognition input, and generates a sharing request including the shared resource information and the shared terminal identifier.
Step S25: and the vehicle-mounted terminal acquires the corresponding shared resource according to the shared resource information, wherein the shared resource comprises the multimedia resource stored by the mobile terminal and/or the multimedia resource played by the vehicle-mounted terminal.
Step S26: and the vehicle-mounted terminal selects a corresponding shared terminal to send the shared resource according to the shared terminal identifier.
Specifically, in one embodiment, step S26: the step that the vehicle-mounted terminal selects the corresponding shared terminal to send the shared resource according to the shared terminal identifier comprises the following steps: the vehicle-mounted terminal detects whether the sharing terminal is in a dormant state; if so, the vehicle-mounted terminal does not send the shared resource and continuously detects whether the shared terminal is in a dormant state; and if not, the vehicle-mounted terminal sends the shared resource to the shared terminal.
Specifically, in an embodiment, after the vehicle-mounted terminal selects the corresponding shared terminal according to the shared terminal identifier, if the vehicle-mounted terminal is playing the shared resource and the shared terminal is in the audio play-out mode, the vehicle-mounted terminal filters an audio signal in the shared resource and then sends a non-audio signal in the shared resource and a synchronous play instruction to the shared terminal, otherwise, the vehicle-mounted terminal directly sends the shared resource to the shared terminal.
Specifically, in one embodiment, after the vehicle-mounted terminal selects the corresponding sharing terminal according to the sharing terminal identifier, when the vehicle-mounted terminal is playing a multimedia resource with an audio signal, whether the sharing terminal is connected to an earphone is judged; if so, the vehicle-mounted terminal sends the shared resource to the shared terminal; if not, the vehicle-mounted terminal sends an earphone connection prompt to the sharing terminal, and sends the sharing resource to the sharing terminal after detecting that the sharing terminal is connected with the earphone, otherwise, the vehicle-mounted terminal filters the audio signal in the sharing resource and sends a non-audio signal in the sharing resource to the sharing terminal.
Step S27: and the shared terminal receives the shared resource and synchronously plays or freely selects to play the shared resource.
The resource sharing method of the embodiment can enable the vehicle-mounted terminal to be connected with the mobile terminal in the vehicle and complete resource sharing in the vehicle through the vehicle-mounted terminal.
Fig. 3 is a schematic structural diagram of a resource sharing system according to an embodiment of the present application. As shown in fig. 3, the resource sharing system 10 in the present embodiment includes a vehicle-mounted terminal 11, a first mobile terminal 12, and a second mobile terminal 13. The first mobile terminal 12 and the second mobile terminal 13 are configured to receive a sharing instruction, generate and send a sharing request to the vehicle-mounted terminal 11 according to the sharing instruction, where the sharing request includes shared resource information and a shared terminal identifier. The vehicle-mounted terminal 11 is configured to acquire a shared resource corresponding to the shared resource information, and when the shared terminal corresponding to the shared terminal identifier is the first mobile terminal 12 and/or the second mobile terminal 13, the vehicle-mounted terminal 11 sends the shared resource to the mobile terminal for playing; when the sharing terminal corresponding to the sharing terminal identifier is the vehicle-mounted terminal 11, the vehicle-mounted terminal 11 directly plays the shared resource.
According to the method and the device, the vehicle-mounted terminal can be connected with the mobile terminal in the vehicle, multimedia resources can be shared through the vehicle-mounted terminal, and the multimedia resources required by the other party can be shared to the appointed user. Through the method, the mobile terminal can acquire and share the resources through the vehicle-mounted terminal.
Although the present application has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the application, and all changes, substitutions and alterations that fall within the spirit and scope of the application are to be understood as being covered by the following claims.