Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following
When description is related to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous
Key element.Implementation method described in following exemplary embodiment does not represent the institute consistent with the application
There is implementation method.Conversely, they are only with described in detail in such as appended claims, the application
The example of the consistent apparatus and method of a little aspects.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting
The application." one kind ", " institute of the singulative used in the application and appended claims
State " and " being somebody's turn to do " be also intended to include most forms, unless context clearly shows that other implications.Should also
Work as understanding, term "and/or" used herein refers to and associated lists item comprising one or more
Purpose any or all may combine.
It will be appreciated that though may describe various using term first, second, third, etc. in the application
Information, but these information should not necessarily be limited by these terms.These terms only be used for by same type of information that
This is distinguished.For example, in the case where the application scope is not departed from, the first information can also be referred to as
Two information, similarly, the second information can also be referred to as the first information.Depending on linguistic context, as in this institute
Use word " if " can be construed to " and ... when " or " when ... when " or " response
In it is determined that ".
Fig. 1 is the network under the business scenario that the application is applicable.Set including multiple in network 10
Standby (equipment 101, equipment 102, equipment 103 ...);Multiple business application can be housed in each equipment
App softwares (App1, App2, App3 ...).
Equipment can be polytype, for example, mobile phone, panel computer, computer, intelligent earphone, intelligence
Car machine in TV, intelligent watch, automobile etc..
Service application App softwares (hereinafter referred to as App) can be to provide the software of certain service, such as
There is provided the App that audio plays service, there is provided App of navigation Service etc., or policer operation system
The system message of the provided service of system (such as service such as phone, short message) App (for convenience of describing,
Referred to as system message monitoring App).Can be set up between each equipment and wirelessly or non-wirelessly connected.
When same App is respectively arranged with two equipment (such as the App1 in being respectively arranged with Fig. 1), this
The task performed by the App that the achievable App by other equipment of application is taken in this equipment.
Implementation is referred to shown in Fig. 2.
Task adapter in the application refers to task taking over seamlessly on different devices, for example, by equipment
Task on 101 is switched in equipment 102 and performs, and after switching, equipment 102 can have to equipment 101
There is a small amount of controling power, equipment 101 can also be controlled no longer by equipment 102, different from prior art
When equipment 101 receives in VNC (Virtual Network Computer, Virtual network computer) technology
During the remote control of equipment 102, its essence is equipment 102 is by transmitting control instruction, by equipment 101
Task still perform on device 101.
S201, after terminal device sets up connection, if service application corresponding in terminal device has
Task adapter ability, then the task data of the service application of local terminal is issued the service application treatment of opposite end;
The type identification of the service application of local terminal is carried in transmitted task data;And/or
S202, when the task data of service application of opposite end is received, issues the service application with opposite end
The local terminal that matches of type identification service application treatment.
In the application, performing the entity of this method can select one execution step S201 and S202, also may be used
It is performed both by with two steps.That is, the service application where the entity can be only used as the quilt of task
Adapter side is only used as the adapter side of task, it is also possible to while having the adapter side of task and by adapter side
Function.
Can be set up by LAN mobile radio communication in the application, between two equipment and connected, for example
Can be using one of equipment as service end, there is provided short-distance wireless Connection Service (such as WIFI, indigo plant
The wireless connection service such as tooth, infrared);Certainly, it is not excluded that two equipment company of foundation in other way
Connect, for example, set up by 3G, 4G mobile network and connected, or connection etc. is set up by wired mode.
As one embodiment, in order that the service application at two ends possesses the ability of task adapter, Ke Yi
Embedded SDK (Software in the service application of task adapter ability are not had in the prior art
Development Kit, software development kit), step S201 and S202 are performed by SDK;Certainly,
New service application can also be specially designed to perform step S201 and S202.As one embodiment,
SDK can include connection management service and transfer management service.Connection management service is responsible for monitoring two ends and is set
Standby connection status, transfer management service is responsible for being interacted with opposite equip..
After connection is set up between two equipment, can be by connection management service by current connection status
Notify the service application at two ends.
The service application at two ends knows that terminal device has been set up after connection, it is necessary to confirm whether are itself and opposite end
Ability with task adapter.Whether can possess come differentiated service application by task adapter ability label
The ability of task adapter, for example, can represent that this service application has task adapter ability, 0 table with 1
Show that this service application does not have task adapter ability.
The message of negotiation tasks adapter ability can be interacted between the service application at two ends;Connect in negotiation tasks
Task adapter ability label is carried in the message of pipe ability, represents that negotiation is appointed by task adapter ability label
Whether the sender of the message of adapter ability of being engaged in has task adapter ability;The success of task adapter capability negotiation
Afterwards, step S201 is performed, if consulting failure, the flow of the adapter that ends task.
In some scenarios, for the task of same service application, can not fixed by adapter side.
For example, when equipment 101 is car machine in Fig. 1, equipment 102 is the mobile phone of driver, equipment 103 is car
The mobile phone of interior passenger, can allow the App1 in equipment 101 to enter the task of the App1 in equipment 102
Row adapter, and in order to solve driver in driving procedure to the unhandy problem of equipment 102, also may be used
The task of the App1 in equipment 103 is taken over the App1 in permission equipment 101.It is more than when having
When one service application of equipment asks the service application taking over tasks by same opposite end, the business of opposite end
There may be various ways to the strategy that the service application of which equipment carries out task adapter using selection.Example
Such as, the App of opposite equip. can consult successfully to appoint in the service application of the equipment taken over multiple
After business adapter ability, task adapter is carried out to first task data for receiving;Or can also basis
The accounts information of the service application of the equipment taken over, by the task consistent with the App accounts informations of itself
Data come limit priority;Or prompt message can also be ejected, for artificial selection to which task
Data carry out task adapter etc..
Due to the service application more than one that task adapter may occur in equipment, in the business of transmission local terminal
During the task data of application, the type identification of the service application of local terminal can be carried, so as to opposite equip. energy
It is enough that task data is issued the service application treatment for matching.In addition, by the number of tasks transmitted
According to more than one is likely to, in one embodiment, the business of transmitted task data can also be carried
Type, so that the service application of opposite end can be carried out in process task data with the type of identification mission data
Corresponding treatment.
In one example, user can also be pointed out to be configured the authority that task is taken over, is being received
After task data transmitted by the service application of adapter method, apparatus, the task adapter that user is set first is checked
Whether authority allows this service application to carry out task adapter, if it is allowed, will then be received from other equipment
Task data issue the service application of the local terminal matched with the type identification of the service application of sender.
Equally as an example, the service application of local terminal, can after the task data for receiving other equipment
The current use state or user instruction of the service application according to local terminal determine whether to process the business of opposite end
The task data of application.For example, if the service application of local terminal were currently at idle condition, could be direct
Operation task data;If this service application is receiving the operational order of user, or be currently running appoint
Business data, or the similar task data of other service applications operations is currently in use (for example, reception is taken office
The service application of data of being engaged in is QQ music App, but dried shrimp music is currently in use in this equipment
App plays music data), then the received task data of adapter can be prompted the user whether, according to user's
Instruction is further operated to perform.Task data is performed under what conditions for service application, and
How task data is performed, different flows can be had according to different design requirements.
Flow disclosed in Fig. 2 goes for the service that multiple business application is provided.For example business should
Type can be navigation application, audio plays application, video playback application, system monitoring message should
With, instant messaging application etc., the operating system that system monitoring messages application is used to monitor local device passes through
The system message (such as SMS notification, Advise By Wire etc.) that notice center receives.It is to be appreciated that system is supervised
Control messages application can be with the function of integrated required system service, for example can be by short message service, phone
The function of service is realized in being integrated into system monitoring messages application.For the business involved by different services
Flow is different, and the task data that the service application of local terminal is transmitted is different, and the service application treatment of opposite end is appointed
The process of data of being engaged in can also be different.
As an example, when service application is navigation application, the task data that navigation application is transmitted
Following at least one navigation information can be included:The current destination data for navigating, when preplanning
Path destination data, the recently destination data of the predetermined quantity of search, navigation preference data etc., when
Can also so include other it is unrequited go out the related information of navigation.
And in another example, when service application is that audio broadcasting is applied, the task data transmitted
Following at least one audio broadcast information can be included:Current song front cover picture, current song ID, when
The preceding affiliated artist of song, the affiliated special edition of current song;The voice data of current song, current song are broadcast
Put control data;List of songs, the list of songs includes that song ID and song put in order,
Can certainly include other it is unrequited go out audio play related information.
In addition, when business datum is system message monitoring application, and the system message for being monitored is short message
When, the task data transmitted includes following at least one short message:Sender name, sender's electricity
Words number, short message content, short message reception time etc., naturally it is also possible to including other it is unrequited go out short message
Related information.
In some scenarios, the situation of alternately task adapter can occur between the application of terminal device.
For the service application for providing navigation Service, task data is issued into leading for opposite end in the navigation application of local terminal
After boat application, it may occur that the process that the navigation application of opposite end is updated to navigation information is (for example more
It is multinomial more than one in new following navigation information:The current destination data for navigating, when preplanning
Path destination data, the recently destination data of the predetermined quantity of search, navigation preference data etc.), such as
The navigation application of fruit opposite end requires that the navigation of the navigation application adapter opposite end of local terminal should after navigation information is updated
Task data, then the navigation application of local terminal, can after the task data of navigation application of opposite end is received
The navigation information stored before being updated according to the task data of the navigation application of the opposite end for being received with elder generation,
Navigated according to the navigation information after renewal afterwards.
For the service application for providing music service, the task data of application will be played by the audio of adapter side
The audio for being sent to adapter side plays the audio broadcasting of application and adapter side using process task data
Process can have various ways.
For example, can by current song front cover picture, current song ID, the affiliated artist of current song, when
The preceding affiliated special edition of song is packaged into the task data of predetermined format, and the audio of adapter side is issued by WIFI
Play application;The audio of adapter side is played and applied after task data is received, if agreeing to that adapter is received
Task data, and the broadcasting control of the voice data or current song of current song is not stored in this equipment
Data processed, then notify to play application by the audio of the side of adapter, and playing application by the audio of adapter side receives
After the request, the broadcasting control data of the voice data of current song or current song is issued by bluetooth
The audio of adapter side plays application.
Another way can be by by the current song front cover picture of adapter side, current song ID, current
The affiliated artist of song, the affiliated special edition of current song and the voice data of current song or broadcasting for current song
Put the audio broadcasting application that control data issues adapter side by WIFI.
Can also be belonging to the current song front cover picture of adapter side, current song ID, current song
Artist, the affiliated special edition of current song are packaged into the task data of predetermined format, and adapter is issued by WIFI
The audio of side plays application;The audio of adapter side is played and applied after task data is received, if agreement connects
The task data that pipe is received, and this equipment does not store the voice data of current song or broadcasting for current song
Control data is put, application is played when the audio of this equipment and application is played with audio by mobile communications network
When cloud server is connected, then the voice data or current song of current song can be downloaded from cloud server
Bent broadcasting control data.
In some scenarios, it can be list of songs that the audio of adapter side is played using the task data for receiving
Or song ID, such as the equipment 102 in Fig. 1 wishes to share the list of songs in the machine to equipment 101.
Now, the audio of adapter side plays application and can generate temporary inlet;Pre-defined rule is protected in temporary inlet
Deposit or delete list of songs.Pre-defined rule there may be diversified forms, for example, can be according to being received
The sequencing of the list of songs for arriving preserves list of songs, in playing audio-fequency data, can be according to song
Order in list is played out.Acquisition voice data refers to related above to the mode of control data
Part, repeats no more.
As an example, the quantity of the list of songs that temporary inlet is stored can be pre-set, work as institute
After the list of songs of preservation reaches predetermined quantity, if receiving other list of songs again, will be received
List of songs delete;Or after working as preserved list of songs arrival predetermined quantity, from earliest preservation
Song ID starts, and the song that deletion has been played, such as list of songs at most retain 100 head, when new
When adding the 101st head and playing the song, the ID of the 1st song is deleted.
Used as an example, temporary inlet can be deleted only when local device shuts down, and work as audio and broadcast
Put using when being closed, or Current task data continues when being finished to retain.It is readily appreciated that, to facing
When entrance management strategy can be with design requirement depending on.
In one example, application, system message monitoring application can be monitored equipped with system message in equipment
The notice center of monitor in real time operating system, obtains the system message that notice center receives, and such as short message is led to
Know, Advise By Wire, update notifying etc..Can be with the system message of opposite end monitoring application agreement support in advance
Task adapter type, for example, can arrange to support short message service etc..
After the system message monitoring application of local terminal gets the new system message that notice center receives, according to institute
The task adapter type of support judges whether to support the service corresponding to system message, if supported, will
System message is packaged into the system message monitoring application that task data issues opposite end;Institute is carried in task data
State the type identification of the service corresponding to the type identification and system message of system message monitoring service.Opposite end
System message monitoring apply after task data is received, if agree to adapter, task data is issued
The notice center of this equipment, notifies whether center prompts user checks system message, if user instruction is
System message is checked, and system message monitoring application has been integrated with the function of short message service, then notify center
Inform the content of system message monitoring application display system message;If system message monitoring application is not integrated
There is the function of short message service, then notify that the content of short message service display system message is informed at center.
The following is an application example of the application, Fig. 3 a are the network environment figure where application example.Figure
Middle equipment a is the car machine being loaded on automobile, and equipment b is the mobile phone of driver, and equipment c, d is on car
The mobile phone of passenger.Navigation App, music App are respectively provided with equipment a, b, c, d, are used for
The system message monitoring App of monitoring system message (such as SMS notification, Advise By Wire etc.), system disappears
The function of breath monitoring App integrated short message service, telephone services.SDK is embedded with each App
(SDK1 SDK2 SDK3), each SDK includes connection management service and transfer management service.
Each equipment support WIFI functions and Bluetooth function, car machine can as the service end of WIFI functions,
Broadcast SSIDs (Service Set Identifier, service set), set up for in-car mobile phone with car machine
WIFI is connected.After car machine is opened, the WIFI functions on car machine are automatically opened up, and the SSID of itself is wide
Broadcast to in-car other equipment.Other in-car mobile phones select the SSID of car machine after WIFI functions are opened,
WIFI is set up with car machine to be connected.Set up the phase that the process of WIFI connections refers to disclosed in prior art
Pass scheme.In this example, multiple devices can be allowed to set up WIFI with car machine and to be connected.
1st, for the task adapter flow of the App that navigates, referring to Fig. 3 b:
Driver needs to navigate travel route by equipment a, but driver drives vehicle,
Operate inconvenience to the equipment b that holds, therefore the owner of equipment c opens navigation App in this equipment.
S301b, connection management service detection in the SDK1 on equipment c to equipment c with equipment a
WIFI connections are set up, navigation App is then notified.
S302b, the App that navigated on equipment c passes through transfer management service disappearing negotiation tasks adapter ability
Breath issues the navigation App of equipment a, so as to equipment a on navigation App negotiation tasks adapter abilities,
The task adapter ability label of itself, task adapter ability mark are carried in the message of negotiation tasks adapter ability
The value of knowledge is 1, represents there is task adapter ability.
S303b, the SDK1 that the navigation App on navigation App and equipment c on equipment a passes through itself
The message of the transfer management service interaction negotiation tasks adapter ability for being provided, notifies equipment after interaction success
Navigation App on a and equipment c.
The related information of the navigation that is input into for owner by S304b, navigation App on equipment c according to fixing in advance
Formula is packaged into task data, and issues equipment a.Predetermined format include navigate App type identification with
And the type identification of navigation data.Related information of navigating include the current destination data for navigating,
The current path destination data planned, recently 5 destination datas of search, navigation preference number
According to.
The navigation App of S305b, equipment a receives the number of tasks that equipment c sends by transfer management service
According to rear, the type identification according to service application therein judges it is task to be processed needed for navigation App
Data, and then judge whether the authority that user is set allows adapter navigation task, if it is, by task
Data issue the navigation App of equipment a;If it is not allowed, then prompting the user whether to reset authority.
The navigation App of S306b, equipment a judges whether to begin a task with adapter after task data is received:
If the navigation App of equipment a is currently under use state, or is receiving the operation map of user
Instruction, then prompt the user whether to be switched to the navigational state (form of prompting of the task data to equipment c
With reference to Fig. 3 c, task data can be stored when user refuses taking over tasks data);If equipment a
Navigation App be currently under idle condition, then the task data of start to process equipment c.
In vehicle travel process, driver has found that navigation purpose ground or navigation preference need change, can be with
The navigation information after renewal is packaged into the navigation that task data issues equipment a by the navigation App of equipment c
App, it is also possible to the navigation information after being input into change on the navigation App of equipment a, the navigation of equipment a
App restarts navigation according to the navigation information of new input;Can also be and new leading is input on equipment a
The task data of equipment c adapter equipment a is asked after boat information.
If the task of the navigation App for now needing to be switched to the navigation App adapter equipment a of equipment c,
Then navigation information is packaged into task data, predetermined format by the navigation App on equipment a according to predetermined format
Include the navigate type identification of App and the type identification of navigation data, sent out by transfer management service
To the transfer management service (S307b) of the navigation App on equipment c.
S308b, the task data that transfer management service will be received issues the navigation App of equipment c, equipment c
On navigation App receive task data after, judge received task data and the navigation letter for initially preserving
Whether breath is consistent, if do not corresponded, the navigation information updating that will be preserved.
S309b, after renewal, if the navigation App on equipment c is not on navigational state at present,
Set with preference and start navigation with automatically entering the navigation purpose of the equipment a of newest preservation.
When the navigation App of equipment a terminates navigation or equipment a and equipment c is disconnected, lead to
Know that the navigation App on equipment a and equipment c ends task adapter flow.
2nd, the task adapter flow for music App:
The owner of equipment c opens the music App in the machine, it is desirable to by the music in this equipment
The music App that the voice data that App is currently played issues equipment a is played.Equipment c with set
Standby a has set up WIFI connections and bluetooth connection.Music App has loaded SDK2.
Music App on the music App and equipment a of equipment c consults successfully task adapter energy
After power (negotiations process is repeated no more), the flow of two equipment taking over tasks is referring to Fig. 3 d:
The information such as S301d, front cover, song title, artist, the special edition of the music that will be currently played are sealed
Task data is dressed up, equipment a is dealt into, the type identification of music App is carried in task data.
The music App of S302d, equipment a is by appointing that transfer management service receives that equipment c sends
After business data, the type identification according to service application therein judges it is place required for music App
The task data of reason, and then judge whether the authority that user is set allows adapter music task, if
It is that task data is then issued the music App of equipment a;If it is not allowed, then prompting user is
It is no to reset authority.
The music App of S303d, equipment a judges whether to begin a task with after task data is received
Adapter:
S304d, if the music App of equipment a is currently under use state, or has other same
The music App of class then prompts the user whether to be switched to the task to equipment c in use state
The broadcast state of data;
When user instruction is when being switched to the broadcast state to the task data of equipment c, or equipment a leads
Boat App is currently under idle condition, then notify the music App of equipment c;
The voice data of the music that the music App of S305d, equipment c will be currently played, broadcast
Put control data (such as control data such as advance, retrogressing, stopping) and equipment a is sent to by bluetooth.
S306d, receives voice data and plays control number in the music App of equipment a by bluetooth
Commenced play out after, and the front cover of the music received by WIFI before display on display interface,
The information such as song title, artist, special edition.
If the song title that the owner of equipment d wishes will to be searched by the music App of the machine,
List of songs issues equipment a, is played by the music App of equipment a, then can be by following
The flow of S307d~S310d realizes adapters of the equipment a to the music task of equipment d.Can pass through
Guide page prompts the user whether to wish that music task is taken over as shown in Figure 3 e:When user opens sound
After happy broadcasting App, if SDK2 recognizes that current WIFI hot spot equipment is equipment a, ejection is drawn
Lead page (only can occur once, when user opens music App next time no longer in guide page this example
Occur).
S307d, the song ID or list of songs that will be searched is packaged into task data according to predetermined format
Equipment a is issued, all song ID that can be included in list of songs and song put in order, number of tasks
Except the type identification including music App in, the type identification of task data can also be included,
Represent transmission is song ID or list of songs.
After task data is received, " good friend shares song to the music App of S308d, equipment a for generation
It is bent " temporary inlet, and the task data that will be received is stored in temporary inlet, and the temporary inlet can
It is deleted with only when equipment a shuts down, list of songs is emptied simultaneously for entrance disappearance, restarts car machine next time
Shi Buzai shows the entrance.In this example, it is for the mode that temporary inlet preserves task data:To be many
The secondary task data for receiving is added to temporary inlet successively according to reception order, for example receive 1 for the first time, 2,
3rd, 4,5 song, receives 6,7,8,9,10 songs for the second time, then preserved in temporary inlet
It is 1,2,3,4,5,6,7,8,9,10 that list of songs refreshes, if the list of songs for being preserved
Predetermined value is alreadyd exceed, the task data that will be received after predetermined value is deleted.
S309d, after task data is saved in into temporary inlet, judges whether to begin a task with adapter:
S310d, if the music App of equipment a is currently under use state, points out user
Whether it is switched to the music state of the task data of equipment d (as the music App of equipment d
Task data repeatedly is sent to equipment a, or the music App for having multiple equipment sends to equipment a and appoints
During business data, can only in first time prompting user);If the music App of equipment a is just locating at present
In idle condition, or user instruction is start to process equipment d when allowing the task data of adapter equipment d
Task data:
If equipment a is in connection status with internet, according to the information in " good friend shares song "
Generation circular list, the order according to circular list downloads voice data from internet, by what is downloaded
Voice data is played out.In addition to the flow shown in Fig. 3 d, if equipment a is not connected with internet,
Play the voice data for having cached in " good friend shares song ";If without the voice data for having cached,
Then ejection system suspension prompting, stops task adapter.
When equipment a is pointed out user, if the owner of equipment a confirms to be switched to appoint equipment d
After the music state of data of being engaged in, if equipment d sends song list again, it is not longer notified about, directly
Connect the song list that will be received to be stored in the list of " good friend shares song ", and commence play out the song
Bent (or the single First of song);If the owner of equipment a is unconfirmed being switched to the task data of equipment d
Music state, if then equipment d sends song list again, still notifies the machine of prompting equipment a
It is main.
If the music App of equipment a is during task adapter, there are other media audios to play
App receives user instruction, it is necessary to playing audio-fequency data, then " good friend shares music " broadcasting pause, note
When recording currently playing progress, then switching back into this music App again, according to the playing progress rate for being recorded
Commence play out.
3) the task adapter flow for short message App can be found in Fig. 3 f:
The owner of equipment b opens the system message monitoring App in the machine, it is desirable to by the short message in this equipment
The task data of service gives equipment a adapters.System message monitoring App in two equipment has been loaded
SDK3.The task type for supporting adapter is pre-set in system message monitoring App, supports to connect in this example
The task type of pipe is short message service.
In the stage 1, the system message of equipment b monitors the logical of the operating system of App real-time monitoring equipments b
Know center, when the center of notice produces new system message, obtain the new system message for producing.
In the stage 2, the task type taken over according to the support for pre-setting judges received system message
It is SMS notification, then the content of system message is packaged into the task data of predetermined format, content includes hair
Part people title, sender's telephone number, short message content;System message monitoring App is carried in task data
Type identification and task data type identification (represent system message corresponding to service be short message clothes
Business).
In the stage 3, the system message monitoring App of equipment a receives equipment a and sends out by transfer management service
After the task data come, the type identification according to service application therein judges it is system message monitoring
Task data to be processed needed for App, and then judge whether the authority that user is set allows task to take over,
If it is, the system message that task data issues equipment a is monitored into App;If it is not allowed, then carrying
Show whether user resets authority.The system monitoring message App of equipment a after task data is received,
Task data is issued the notice center of equipment a.
In the stage 4, notify whether center prompts user checks short message;
In the stage 5, user instruction checks the instruction of short message to notice center feedback;
In the stage 6, notice center will check that system monitoring message App is issued in the instruction of short message;
In the stage 7, system monitoring message App can point out the user to carry out next step when short message content is shown
Operation, for example, if play this short message, or point out whether to call after short message is opened.
The embodiment of the method for task adapter is corresponding between aforementioned device, present invention also provides equipment room
The embodiment of the device of task adapter.
The embodiment of the device of the application equipment room task adapter can be applied on smart machine.Device reality
Applying example can be realized by software, it is also possible to be realized by way of hardware or software and hardware combining.With soft
It is the processor by smart machine where it as the device on a logical meaning as a example by part is realized
Run what is formed during corresponding computer program instructions in nonvolatile memory are read into internal memory.From hard
For part aspect, as shown in figure 4, the smart machine where the device of the application equipment room task adapter
A kind of hardware structure diagram, except the processor shown in Fig. 4, internal memory, network interface and non-volatile
Outside memory, smart machine in embodiment where device generally according to the smart machine actual functional capability,
Other hardware can also be included, this is repeated no more.
Fig. 5 is refer to, the device 500 of equipment room task adapter includes:
Connection management module 501, the connection status for monitoring terminal device, and set up in terminal device
After connection, the service application where notice;
Transport management module 502, for the service application corresponding in terminal device there is task to connect
During pipe ability, the task data of the service application of local terminal is issued the service application treatment of opposite end;Described
The type identification of the service application of local terminal is carried in business data;And/or when the service application for receiving opposite end
During task data, issue at the service application of the local terminal matched with the type identification of the service application of opposite end
Reason.
Device 500 can be software development kit SDK;The SDK is respectively embedded into the industry in terminal device
In business application 503.
Transport management module 502 can be also used for interacting negotiation tasks adapter ability with the service application of opposite end
Message, the message according to the negotiation tasks adapter ability determine two ends service application whether have appoint
Business adapter ability;Task adapter ability label is carried in the message of the negotiation tasks adapter ability, is used
Whether there is task adapter ability in the sender of the message for representing the negotiation tasks adapter ability.
Transport management module 502 can be also used for when the task data of service application of opposite end is received,
Judge whether to issue the type identification phase with the service application of opposite end according to the task adapter authority that user is set
The service application treatment of the local terminal of matching.
The service application 503 of local terminal can be also used for being determined according to current use state or user instruction
The task data of the service application of no treatment opposite end.
The type of service application 503 can include one of:
Navigation application, audio play application, video playback application, system monitoring messages application, IMU
News application, the operating system that the system monitoring messages application is used to monitor local device passes through notice center
The system message for receiving.
The task data that navigation application is transmitted can include following at least one navigation information:Currently
The destination data of navigation, when preplanning path destination data, recently search predetermined quantity mesh
Ground data, navigation preference data;
Audio play application transmitted task data can include it is following at least one:Current song front cover
Picture, current song title, the affiliated artist of current song, the affiliated special edition of current song;Current song
The broadcasting control data of voice data, current song;Song ID, list of songs, in the list of songs
Put in order including song ID and song;
When system message monitoring the monitored system message of application is short message, the system message monitoring clothes
The transmitted task data of business can include following at least one short message:Sender name, sender
Telephone number, short message content, short message receive the time.
Can also be according to opposite end during the task data of the navigation application of the navigation application treatment opposite end of local terminal
The task data of navigation application updates following at least one navigation information:The current destination number for navigating
According to, when preplanning path destination data, recently search predetermined quantity destination data, navigation
Preference data;Navigated according to the navigation information after renewal.
The audio of local terminal plays application can be by current song front cover picture, current song ID, current song
Affiliated artist, the affiliated special edition of current song are packaged into the task data of predetermined format, are issued by WIFI
The audio of opposite end plays application;After the audio for receiving opposite end plays the request of application, by current song
Voice data or current song broadcasting control data by bluetooth issue opposite end audio play application.
When the audio that the audio broadcasting application of local terminal can process opposite end plays the task data of application, if
The task data that the audio of opposite end plays application does not include the voice data of current song or broadcasting for current song
Control data is put, and local terminal does not store the voice data of current song or the broadcasting control data of current song,
Then application is played to the audio of opposite end or download the voice data of current song to cloud server request or work as
The broadcasting control data of preceding song.
The audio of local terminal plays application can be worked as when receiving list of songs, generate temporary inlet;Face described
When entrance in preserved according to pre-defined rule or delete the list of songs;
When local device shuts down, the temporary inlet is deleted.
The system message monitoring application of local terminal can obtain the system message that notice center receives, and according to institute
The task adapter type of support judges whether to support the service corresponding to system message, if supported, will
The system message is packaged into the system message monitoring application that task data issues opposite end;The task data
The class of the service corresponding to the middle type identification and the system message for carrying the system message monitoring application
Type is identified.
The function of unit and the implementation process of effect specifically refer to correspondence in the above method in said apparatus
The implementation process of step, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part ginseng
See the part explanation of embodiment of the method.Device embodiment described above be only it is schematical,
It is wherein described as separating component illustrate unit can be or may not be it is physically separate, make
For the part that unit shows can be or may not be physical location, you can with positioned at a place,
Or can also be distributed on multiple NEs.Can select according to the actual needs part therein or
Person whole modules realize the purpose of application scheme.Those of ordinary skill in the art are not paying creativeness
In the case of work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, it is all at this
Within the spirit and principle of application, any modification, equivalent substitution and improvements done etc. should be included in
Within the scope of the application protection.