The method and device of the Screen sharing of terminal device and vehicle
Technical field
The invention relates to technical field of vehicle, and in particular to a kind of side of the Screen sharing of terminal device and vehicle
Method and device.
Background technology
With the development of science and technology, vehicle is supplied to the more life convenients of user, facilitates user and drive trip, outing etc.
Activity.User can also can watch in DVD video or USB device the video stored by the screen of vehicle so that drive out
Capable journey life is more rich colorful.Meanwhile terminal device can also be connected to the screen of vehicle by data cable, realizing will eventually
The part of functions of end equipment is mapped to the screen of vehicle, and the content of terminal device screen is shared to vehicle screen, passes through car
Giant-screen preferably viewing terminal device screen content, experience can share enjoyment so that vehicle more life-stylize.
But terminal device is shared with vehicle screen in the prior art, it is desirable to which terminal device is connected by data cable and vehicle screen
Connect, limit the distance of terminal device and vehicle screen, it is impossible to realize the shared of terminal device and vehicle screen whenever and wherever possible.
The content of the invention
In view of the above problems, it is proposed that the embodiment of the present application is in order to provide the Screen sharing of a kind of terminal device and vehicle
Method and device.
According to the one side of the embodiment of the present application, there is provided a kind of screen sharing method of terminal device and vehicle, bag
Include:
The vehicle search request information for being used to search at least one vehicle that receiving terminal apparatus is sent, is searched according to vehicle
Solicited message, searches one or more information of vehicles for having logged in vehicle at least one vehicle, information of vehicles is returned to end
End equipment;
The Screen sharing request that the carrying one or more that receiving terminal apparatus is sent has logged in the information of vehicles of vehicle disappears
Breath, is transmitted to one or more by Screen sharing request message and has logged in vehicle;
The one or more wherein at least one for having logged in vehicle of reception, which have logged in vehicle, to be allowed shared screen and sends
Screen sharing response message;
The screen content that terminal device is provided, which shares to, at least one has logged in vehicle.
According to the other side of the embodiment of the present application, there is provided a kind of dress of the Screen sharing of terminal device and vehicle
Put, including:
Searching module, the vehicle search request letter for being used to search at least one vehicle sent for receiving terminal apparatus
Breath, according to vehicle search request information, searches one or more information of vehicles for having logged in vehicle at least one vehicle, by car
Information returns to terminal device;
Request module is received, the information of vehicles of vehicle has been logged in for the carrying one or more that receiving terminal apparatus is sent
Screen sharing request message, Screen sharing request message is transmitted to and one or more has logged in vehicle;
Respond module is received, vehicle permission has been logged in for receiving one or more wherein at least one for having logged in vehicle
The Screen sharing response message shared screen and sent;
Sharing module, the screen content for terminal device to be provided, which shares to, at least one has logged in vehicle.
According to terminal device provided by the embodiments of the present application and the method and device of the Screen sharing of vehicle, receiving terminal is set
The vehicle search request information for being used to search at least one vehicle that preparation is sent, according to vehicle search request information, is searched at least
One or more information of vehicles for having logged in vehicle, terminal device is returned to by information of vehicles in one vehicle.Receiving terminal is set
The carrying one or more that preparation is sent has logged in the Screen sharing request message of the information of vehicles of vehicle, and Screen sharing request is disappeared
Breath is transmitted to one or more and has logged in vehicle.Receive one or more wherein at least one for having logged in vehicle and log in vehicle
The Screen sharing response message for allowing shared screen and sending.The screen content that terminal device is provided share to it is at least one
Vehicle is logged in, realizes the shared of screen content between terminal device and vehicle, can be provided whenever and wherever possible in vehicle travel process
Share content such as video, picture etc. to passenger so that between terminal device and vehicle can with real-time sharing, exchange, it is greatly abundant
Enjoyment during traveling.
Described above is only the general introduction of the embodiment of the present application technical solution, in order to better understand the embodiment of the present application
Technological means, and can be practiced according to the content of specification, and in order to allow above and other mesh of the embodiment of the present application
, feature and advantage can become apparent, below especially exemplified by the embodiment of the application.
Brief description of the drawings
One or more embodiments are illustrative by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not formed to embodiment, the element for having same reference numbers label in attached drawing are expressed as similar element, remove
Non- have a special statement, and composition does not limit the figure in attached drawing.
Fig. 1 is the flow chart of the method for the Screen sharing of the terminal device that the embodiment of the present application one provides and vehicle;
Fig. 2 is the flow chart of the method for the Screen sharing of the terminal device that the embodiment of the present application two provides and vehicle;
Fig. 3 is the functional block diagram of the device of the Screen sharing of the terminal device that the embodiment of the present application three provides and vehicle;
Fig. 4 is the functional block diagram of the device of the Screen sharing of the terminal device that the embodiment of the present application four provides and vehicle.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Embodiment one
Fig. 1 is the flow chart of the method for the Screen sharing of the terminal device that the embodiment of the present application one provides and vehicle.Such as Fig. 1
Shown, this method specifically comprises the following steps:
Step S101, the vehicle search request information for being used to search at least one vehicle that receiving terminal apparatus is sent, root
According to vehicle search request information, one or more information of vehicles for having logged in vehicle at least one vehicle are searched, vehicle is believed
Breath returns to terminal device.
During the Screen sharing of terminal device and vehicle, propose to share by terminal device, terminal device is specified and which vehicle
Screen sharing.
The vehicle search request information for being used to search at least one vehicle that receiving terminal apparatus is sent, vehicle search request
Information include the user name such as vehicle, vehicle license plate number, vehicle vehicle at least one of.When receiving terminal device
Send when being used to search the vehicle search request information of multiple vehicles, needed between the search request information of mutually each vehicle by
It is separated according to predetermined separator, is searched with facilitating.
According to vehicle search request information, one or more vehicles at least one vehicle can be searched from database
Information of vehicles.It should be noted that when searching, vehicle is searched to have logged in vehicle.When vehicle is not logged in, i.e. vehicle failed cluster
Log in, the vehicle found can not also continue follow-up step.Therefore, the information for having logged in vehicle is searched, and car will have been logged in
Information returns to terminal device.
Further, if according to vehicle search request information, not finding when having logged in information of vehicles, this method terminates,
Do not continue to perform.
Step S102, the screen for the one or more information of vehicles for having logged in vehicle of carrying that receiving terminal apparatus is sent are total to
Request message is enjoyed, Screen sharing request message is transmitted to one or more has logged in vehicle.
The Screen sharing request that the carrying one or more that receiving terminal apparatus is sent has logged in the information of vehicles of vehicle disappears
Cease, carry the information of vehicles for having logged in vehicle in Screen sharing request message, that is, specify and shielded with listed vehicle
Curtain is shared, meanwhile, it is also convenient for finding listed vehicle.The information of vehicles of vehicle has been logged according to the one or more of carrying,
Screen sharing request message is transmitted to the one or more and has logged in vehicle.
Step S103, the one or more wherein at least one for having logged in vehicle of reception, which have logged in vehicle, allows shared screen
And the Screen sharing response message sent.
After step S102 forwarding Screen sharing request messages, the information from vehicle is received.If vehicle allows shared screen,
Receive the Screen sharing response message for allowing shared screen and sending from vehicle.Receive one or more and log in vehicle
Wherein at least one logged in the Screen sharing response message that vehicle allows shared screen and sends, that is, allowed and terminal
The vehicle of collaborative share screen.
Step S104, the screen content that terminal device is provided, which shares to, at least one has logged in vehicle.
Screen content can be varied, and if terminal device current screen content is picture, which is shared at least
One listed vehicle;Or terminal device current screen content is word, which is shared at least one listed
Vehicle;Or terminal device current screen content is video file, the video file real-time synchronization that terminal device is provided is shared
Vehicle has been logged in at least one, has used when shared and shares one by one so that having logged in vehicle can be same with terminal device
The content that the shared current screen of step is playing.It is for example, being set when being embodied according to performance above
Put, be not specifically limited herein.
According to terminal device provided by the embodiments of the present application and the method for the Screen sharing of vehicle, receiving terminal apparatus is sent
Be used for search the vehicle search request information of at least one vehicle, according to vehicle search request information, search at least one car
One or more information of vehicles for having logged in vehicle, terminal device is returned to by information of vehicles in.Receiving terminal apparatus is sent
Carrying one or more logged in vehicle information of vehicles Screen sharing request message, Screen sharing request message is forwarded
Vehicle has been logged in one or more.The one or more wherein at least one for having logged in vehicle of reception, which have logged in vehicle, to be allowed altogether
The Screen sharing response message enjoyed screen and sent.The screen content that terminal device is provided, which shares to, at least one has logged in car
, the shared of screen content between terminal device and vehicle is realized, passenger can be supplied in vehicle travel process whenever and wherever possible
Shared content such as video, picture etc. so that between terminal device and vehicle can with real-time sharing, exchange, greatly enrich traveling
During enjoyment.
Embodiment two
Fig. 2 is the flow chart of the method for the Screen sharing of the terminal device that the embodiment of the present application two provides and vehicle.Such as Fig. 2
Shown, this method specifically comprises the following steps:
Step S201, the terminal device information that receiving terminal apparatus is sent, record terminal device is has logged in, and by terminal
Facility information preserves in the database.
The relevant terminal device information that receiving terminal apparatus is sent, terminal device information include the user such as terminal device
Name, IP address information of the loCal number of terminal device, the model of terminal device, terminal device etc., receive terminal device
After terminal device information, by terminal device records to have logged in, and relevant terminal device information is preserved in the database.
Further, after the completion of this method execution, what receiving terminal apparatus was sent exits information, is by terminal device records
It is not logged in, the information of the terminal device of this preservation is deleted or modified from database to be not logged in information.
Step S202, receives the information of vehicles that vehicle is sent, and information of vehicles is stored in number by registration of vehicle to have logged in
According in storehouse.
The relevant information of vehicles that vehicle is sent is received, information of vehicles includes user name, the license plate number of vehicle such as vehicle
Code, the vehicle of vehicle, IP address information of vehicle etc., after the information of vehicles for receiving vehicle, by vehicle registration to have logged in, and
Relevant information of vehicles is preserved in the database.
Further, after the completion of this method execution, what reception vehicle was sent exits information, by vehicle registration to be not logged in,
The information of the vehicle of this preservation is deleted or modified from database to be not logged in information.
Two above step can first carry out step S201 there is no sequencing is performed, rear to perform step S202;Also may be used
It is rear to perform step S201 to first carry out step S202;Or two steps may be performed simultaneously.
Step S203, the vehicle search request information for being used to search at least one vehicle that receiving terminal apparatus is sent, root
According to vehicle search request information, one or more information of vehicles for having logged in vehicle at least one vehicle are searched, vehicle is believed
Breath returns to terminal device.
Step S204, the screen for the one or more information of vehicles for having logged in vehicle of carrying that receiving terminal apparatus is sent are total to
Request message is enjoyed, Screen sharing request message is transmitted to one or more has logged in vehicle.
Step S205, the one or more wherein at least one for having logged in vehicle of reception, which have logged in vehicle, allows shared screen
And the Screen sharing response message sent.
Step S206, the screen content that terminal device is provided, which shares to, at least one has logged in vehicle.
Above step can refer to the step S101-S104 of embodiment one, and details are not described herein.
Step S207, the screen rejection that reception one or more has logged in vehicle and do not allowed shared screen all and send are total to
Enjoy message.
Step S208, method terminate.
Screen sharing request message is transmitted to one or more and has logged in vehicle by execution step S204, if all vehicles are complete
Portion does not allow shared screen, receives one or more screen rejections for having logged in vehicle and not allowed shared screen all and sending
Shared message, does not continue to perform subsequent step, method terminates.
According to terminal device provided by the embodiments of the present application and the method for the Screen sharing of vehicle, in receiving terminal apparatus and
It is to have logged in by terminal device and vehicle registration after the relevant information that vehicle is sent.What receiving terminal apparatus was sent is used to search
The vehicle search request information of at least one vehicle, according to vehicle search request information, search at least one vehicle one or
Multiple information of vehicles for having logged in vehicle, terminal device is returned to by information of vehicles.The carrying one that receiving terminal apparatus is sent
Or the Screen sharing request message of multiple information of vehicles for having logged in vehicle, Screen sharing request message is transmitted to one or more
It is a to have logged in vehicle.The one or more wherein at least one for having logged in vehicle of reception, which have logged in vehicle, to be allowed shared screen and sends out
The Screen sharing response message sent.The screen content that terminal device is provided, which shares to, at least one has logged in vehicle.Realize
Screen content is shared between terminal device and vehicle, in vehicle travel process passenger can be supplied to share content such as whenever and wherever possible
Video, picture etc. so that between terminal device and vehicle can with real-time sharing, exchange, greatly enrich traveling during pleasure
Interest.Further, if all vehicles do not allow shared screen all, receiving one or more vehicles that logged in does not allow all altogether
Message is shared in the screen rejection enjoyed screen and sent, and does not continue to realize Screen sharing.When this programme reception vehicle allows shared
The Screen sharing response message sent, vehicle is shared to by the screen content of terminal device, also receives vehicle according to own situation
Message is shared in the screen rejection sent when not receiving shared, without Screen sharing.So that vehicle operating is flexible, can be according to itself
Situation carries out Screen sharing.
Embodiment three
Fig. 3 is the functional block diagram of the device of the Screen sharing of the terminal device that the embodiment of the present application three provides and vehicle, such as
Shown in Fig. 3, the present apparatus includes following module:
Searching module 310, the vehicle search request for being used to search at least one vehicle sent for receiving terminal apparatus
Information, according to vehicle search request information, searches one or more information of vehicles for having logged in vehicle at least one vehicle, will
Information of vehicles returns to terminal device.
During the Screen sharing of terminal device and vehicle, propose to share by terminal device, terminal device is specified and which vehicle
Screen sharing.
The vehicle search request information for being used to search at least one vehicle that 310 receiving terminal apparatus of searching module is sent,
Vehicle search request information include the user name such as vehicle, vehicle license plate number, vehicle vehicle at least one of.When looking into
Module 310 is looked for receive when being used to search the vehicle search request information of multiple vehicles of terminal device transmission, mutual each car
Search request information between need to be separated according to predetermined separator, searched with facilitating.
Searching module 310 can search at least one vehicle one according to vehicle search request information from database
Or the information of vehicles of multiple vehicles.It should be noted that when searching module 310 is searched, vehicle is searched to have logged in vehicle.Work as car
When being not logged in, i.e., vehicle failed cluster logs in, and the vehicle found can not also continue follow-up step.Therefore, searching module 310
The information for having logged in vehicle is searched, and terminal device is returned to by information of vehicles has been logged in.
Further, if searching module 310 is according to vehicle search request information, do not find when having logged in information of vehicles,
Do not continue to perform subsequent module.
Request module 320 is received, the vehicle of vehicle has been logged in for the carrying one or more that receiving terminal apparatus is sent
The Screen sharing request message of information, is transmitted to one or more by Screen sharing request message and has logged in vehicle.
Receive the one or more information of vehicles for having logged in vehicle of carrying that 320 receiving terminal apparatus of request module is sent
Screen sharing request message, carries the information of vehicles for having logged in vehicle in Screen sharing request message, that is, specifies with having stepped on
The vehicle of record carries out Screen sharing, meanwhile, also receive request module 320 and conveniently find listed vehicle.Receive request module
320 have logged in the information of vehicles of vehicle according to the one or more of carrying, by Screen sharing request message be transmitted to this or
It is multiple to have logged in vehicle.
Respond module 330 is received, vehicle has been logged in for receiving one or more wherein at least one for having logged in vehicle
The Screen sharing response message for allowing shared screen and sending.
After receiving the forwarding Screen sharing request message of request module 320, receive respond module 330 and receive the letter from vehicle
Breath.If vehicle allows shared screen, reception respond module 330 receives the screen for allowing shared screen and sending from vehicle and is total to
Enjoy response message.Reception respond module 330 receives one or more wherein at least one for having logged in vehicle and has logged in vehicle
The Screen sharing response message for allowing shared screen and sending, that is, obtain allowing the vehicle for sharing screen with terminal device.
Sharing module 340, the screen content for terminal device to be provided, which shares to, at least one has logged in vehicle.
Screen content can be varied, and if terminal device current screen content is picture, sharing module 340 is by the picture
Share at least one listed vehicle;Or terminal device current screen content is word, which is total to by sharing module 340
Enjoy at least one listed vehicle;Or terminal device current screen content is video file, sharing module 340 sets terminal
The standby video file real-time synchronization provided share to it is at least one logged in vehicle, using sharing one by one when shared,
The content that the shared current screen for having logged in vehicle and terminal device synchronization is being played.It is to illustrate above
Bright, when specific implementation, is configured according to performance, is not specifically limited herein.
According to terminal device provided by the embodiments of the present application and the device of the Screen sharing of vehicle, receiving terminal apparatus is sent
Be used for search the vehicle search request information of at least one vehicle, according to vehicle search request information, search at least one car
One or more information of vehicles for having logged in vehicle, terminal device is returned to by information of vehicles in.Receiving terminal apparatus is sent
Carrying one or more logged in vehicle information of vehicles Screen sharing request message, Screen sharing request message is forwarded
Vehicle has been logged in one or more.The one or more wherein at least one for having logged in vehicle of reception, which have logged in vehicle, to be allowed altogether
The Screen sharing response message enjoyed screen and sent.The screen content that terminal device is provided, which shares to, at least one has logged in car
, the shared of screen content between terminal device and vehicle is realized, passenger can be supplied in vehicle travel process whenever and wherever possible
Shared content such as video, picture etc. so that between terminal device and vehicle can with real-time sharing, exchange, greatly enrich traveling
During enjoyment.
Example IV
Fig. 4 is the functional block diagram of the device of the Screen sharing of the terminal device that the embodiment of the present application four provides and vehicle.Such as
Shown in Fig. 4, compared with Fig. 3, the present apparatus further includes following module:
Terminal login module 350, the terminal device information sent for receiving terminal apparatus, record terminal device are to have stepped on
Record, and terminal device information is preserved in the database.
The relevant terminal device information that 350 receiving terminal apparatus of terminal login module is sent, terminal device information include
The user name of such as terminal device, the loCal number of terminal device, the model of terminal device, the IP address information of terminal device,
After terminal login module 350 receives the terminal device information of terminal device, by terminal device records to have logged in, and by correlation
Terminal device information preserve in the database.
Further, after the completion of present apparatus execution, what terminal login module 350 can be sent with receiving terminal apparatus exits
Information, by terminal device records to be not logged in, by the information of the terminal device of this preservation be deleted or modified from database for
It is not logged in information.
Vehicle login module 360, the information of vehicles sent for receiving vehicle, registration of vehicle is has logged in, and by vehicle
Information preserves in the database.
Vehicle login module 360 receives the relevant information of vehicles that vehicle is sent, and information of vehicles includes the user such as vehicle
Name, IP address information of the number-plate number of vehicle, the vehicle of vehicle, vehicle etc., vehicle login module 360 receives the car of vehicle
After information, by vehicle registration to have logged in, and relevant information of vehicles is preserved in the database.
Further, after the completion of present apparatus execution, what vehicle login module 360 can also receive that vehicle sends exits letter
Breath, by vehicle registration to be not logged in, the information of the vehicle of this preservation is deleted or modified from database to be not logged in information.
Two above module can first carry out terminal login module 350 there is no sequencing is performed, and the rear vehicle that performs is stepped on
Record module 360;Vehicle login module 360 can also be first carried out, it is rear to perform terminal login module 350;Or two modules can be same
Shi Zhihang.
Rejection sharing module 370, does not allow shared screen all and sends for receiving one or more vehicles that logged in
Screen rejection share message.
Screen sharing request message is transmitted to one or more and has logged in vehicle by execution reception request module 320, if institute
There is vehicle not allow shared screen all, rejection sharing module 370, which receives one or more vehicles that logged in, not to be allowed all
Message is shared in the screen rejection shared screen and sent, and the present apparatus does not continue to perform subsequent module, terminates this execution.
According to terminal device provided by the embodiments of the present application and the device of the Screen sharing of vehicle, in receiving terminal apparatus and
It is to have logged in by terminal device and vehicle registration after the relevant information that vehicle is sent.What receiving terminal apparatus was sent is used to search
The vehicle search request information of at least one vehicle, according to vehicle search request information, search at least one vehicle one or
Multiple information of vehicles for having logged in vehicle, terminal device is returned to by information of vehicles.The carrying one that receiving terminal apparatus is sent
Or the Screen sharing request message of multiple information of vehicles for having logged in vehicle, Screen sharing request message is transmitted to one or more
It is a to have logged in vehicle.The one or more wherein at least one for having logged in vehicle of reception, which have logged in vehicle, to be allowed shared screen and sends out
The Screen sharing response message sent.The screen content that terminal device is provided, which shares to, at least one has logged in vehicle.Realize
Screen content is shared between terminal device and vehicle, in vehicle travel process passenger can be supplied to share content such as whenever and wherever possible
Video, picture etc. so that between terminal device and vehicle can with real-time sharing, exchange, greatly enrich traveling during pleasure
Interest.Further, if all vehicles do not allow shared screen all, receiving one or more vehicles that logged in does not allow all altogether
Message is shared in the screen rejection enjoyed screen and sent, and does not continue to realize Screen sharing.When this programme reception vehicle allows shared
The Screen sharing response message sent, vehicle is shared to by the screen content of terminal device, also receives vehicle according to own situation
Message is shared in the screen rejection sent when not receiving shared, without Screen sharing.So that vehicle operating is flexible, can be according to itself
Situation carries out Screen sharing.
Some preferred embodiments of the application have shown and described in described above, but as previously described, it should be understood that the application
Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and available for various other combinations,
Modification and environment, and above-mentioned teaching or the technology or knowledge of association area can be passed through in the scope of the invention is set forth herein
It is modified., then all should be in this Shen and changes and modifications made by those skilled in the art do not depart from spirit and scope
Please be in the protection domain of appended claims.