CN104822167B - A kind of selection method, the device and system of NFC carrier switch - Google Patents
A kind of selection method, the device and system of NFC carrier switch Download PDFInfo
- Publication number
- CN104822167B CN104822167B CN201510176287.8A CN201510176287A CN104822167B CN 104822167 B CN104822167 B CN 104822167B CN 201510176287 A CN201510176287 A CN 201510176287A CN 104822167 B CN104822167 B CN 104822167B
- Authority
- CN
- China
- Prior art keywords
- carrier wave
- carrier
- use state
- optional
- state information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of selection method, the device and system of NFC carrier switch, the system comprises:Carrier switch request side, the current use state information of each optional carrier wave for detecting one's own side's support, and after being added in the switching request message generated by agreement, it is sent to carrier switch selecting party;Carrier switch selecting party, for receiving switching request message, extract the current use state information of each optional carrier wave of the carrier switch request side's support carried in the switching request message, and based on the current use state information of each optional carrier wave that one's own side and carrier switch request side support, can most establish carrier communication soon as principle, a carrier wave is selected, and sends it to carrier switch request side.The present invention increases the negotiation to the currently used state of optional carrier wave when NFC carrier waves are negotiated, and according to the combined situation of the optional carrier wave use state of communicating pair, selects optimal optional carrier wave and carries out data transmission, improve data transmission efficiency.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of NFC (Near Field Communication, low coverages
From wireless telecommunications) selection method, the device and system of carrier switch.
Background technology
Support two mobile terminals of NFC function that can realize optional carrier wave association by NFC communication defined in NFC protocol
Quotient, it is final to establish the required carrier technology of transmission data.
Specifically, NFC Forum define Connection Handover specifications, i.e. connection switching specification.The connection is cut
It is as shown in Figure 1 to change the connection handover negotiation optimization process that specification defines.Switching request direction switches selecting party and sends switching request message.
Quantity, the type of optional carrier wave etc. supported comprising switching request side in the message also include the relevant configuration letter of these carrier waves
Breath.By taking Wi-Fi as an example, these configuration informations include SSID (the Service Set of AP (Access Point, access point)
Identifier, service set) and password etc..After switching selecting party receives switching request message, compare what oneself was supported
Communication carrier technology simultaneously returns to switching selection message to switching request side, if the communication carrier technology that both sides support can not match,
Then switch selecting party and selects message by the switching that one does not include any optional carrier technology is returned.
From in Fig. 1 it may be seen that optional carrier list in switching request message is Wi-Fi and Bluetooth, Wi-
Fi is preceding, it is considered that priority in front is higher than back.Therefore the switching that switching selecting party is sent in upper figure selects message
In carrier wave be Wi-Fi.Such as switch selecting party and do not support Wi-Fi, can just consider to use Bluetooth.
As it can be seen that specification, which is only defined, negotiates between two NFC devices by NFC technique and activates other wireless communication techniques
The workflow of (such as Wi-Fi, bluetooth) and corresponding message format.But for the case where there are many optional carrier waves in specification
But it does not illustrate, the mode of default priority generally can be used to specify preferred carrier technology, but for many scenes
It is not suitable for this default priority strategy, leads to that data can not be transmitted rapidly or efficiency of transmission is very poor, such as:Acquiescence uses blue
Tooth is preferred carrier wave, but when two NFC terminals carry out carrier wave negotiation, certain station terminal may carry out bluetooth with other-end
Data transmission, then at this time if it is desired that with Bluetooth transmission file, that after the completion of data transmission before having to wait for just can, this
Under kind scene, efficiency of transmission is reduced, and user experience is very poor.
Invention content
The present invention provides a kind of selection method, the device and system of NFC carrier switch, to solve to connect in the prior art
The problem of handover negotiation optimization flow does not consider Carrier State, influences data transmission efficiency.
One side according to the present invention provides a kind of selection method of NFC carrier switch, including:
The current use state information of each optional carrier wave that one's own side supports detects in carrier switch request side, and is added to
In the switching request message generated by agreement;
The switching request message is sent to carrier switch selecting party by carrier switch request side.
Optionally, in the method for the invention, the use state information that each optional carrier wave is current is added to by association
It discusses in the switching request message generated, further comprises:
Condition is set using the use state information of carrier wave as carrier wave priority, resets in switching request message and includes
Optional carrier list in each carrier wave priority orders.
Optionally, in the method for the invention:
The current use state information of each optional carrier wave, including:Use state or idle state;
Condition is arranged as carrier wave priority in the use state information using carrier wave, including:With the load under idle state
Wave priority orders are higher than the carrier wave priority orders under use state and condition are arranged as carrier wave priority.
Optionally, in the method for the invention, when carrier wave is in use state, the current use state letter of corresponding carrier wave
Breath further includes:The carrier wave estimated uses remaining time;
Condition is arranged as carrier wave priority in the use state information using carrier wave, further includes:It is all under use state
Carrier wave, it is excellent to be higher than the carrier wave grown using remaining time estimated with the carrier wave priority orders short using remaining time estimated
Condition is arranged as carrier wave priority in first grade sequence.
Other side according to the present invention also provides a kind of selection method of NFC carrier switch, including:
Carrier switch selecting party receives switching request message, and extracts the carrier switch carried in the switching request message
The current use state information of each optional carrier wave that requesting party supports;
Carrier switch selecting party is based on the current use state of each optional carrier wave that one's own side and carrier switch request side support
Information selects a carrier wave, and send it to carrier switch request side can most establish carrier communication soon as principle.
Optionally, in the method for the invention:
The current use state information of each optional carrier wave includes:Use state or idle state;
It is described to select a carrier wave most establish carrier communication soon as principle, including:
If there are the intersection carrier wave for being in idle state in one's own side and carrier switch request side, in the intersection carrier wave
According to priority orders select a carrier wave;
If there is no the intersection carrier waves for being in idle state in one's own side and carrier switch request side, according to pre- establishing
It sets, in the carrier wave that both sides support, using the carrier wave of one's own side or carrier switch request side's highest priority as the carrier wave of selection.
Optionally, in the method for the invention:
The current use state information of each optional carrier wave includes:Use state or idle state, and in making
When with state, the use remaining time for the carrier wave estimated;
It is described to select a carrier wave most establish carrier communication soon as principle, including:
If there are the intersection carrier wave for being in idle state in one's own side and carrier switch request side, in the intersection carrier wave
According to priority orders select a carrier wave;
If there is no the intersection carrier waves for being in idle state in one's own side and carrier switch request side, for each load
Wave, time of the carrier wave in both sides apart from idle state, it is that both sides are in idle state to take wherein longer time
Idle remaining time, the idle remaining time of more each carrier wave, using shortest carrier wave of idle remaining time as the carrier wave of selection.
In terms of third according to the present invention, a kind of selection device of NFC carrier switch is provided, including:
Carrier switch request module, for when described device is carrier switch request side, detection described device to be supported
The current use state information of each optional carrier wave, and after being added in the switching request message generated by agreement, be sent to
Carrier switch selecting party;
Carrier switch selecting module, for when described device is carrier switch selecting party, receiving carrier switch request side
The switching request message of transmission extracts each optional carrier wave that the carrier switch request side carried in the switching request message supports
Current use state information, and based on the current use state letter of each optional carrier wave that one's own side and carrier switch request side support
Breath selects a carrier wave, and send it to carrier switch request side can most establish carrier communication soon as principle.
Optionally, in device of the present invention, the carrier switch request module is further used for by each optional carrier wave
After current use state information is added in the switching request message generated by agreement, using the use state information of carrier wave as
Condition is arranged in carrier wave priority, and the priority for resetting in switching request message each carrier wave in the optional carrier list for including is suitable
Sequence.
Optionally, in device of the present invention:
The current use state information of each optional carrier wave, including:Use state or idle state;
The carrier switch request module is specifically used for being higher than use state with the carrier wave priority orders under idle state
Under carrier wave priority orders as carrier wave priority be arranged condition;
Alternatively, the use state information that each optional carrier wave is current, including:Use state or idle state, and place
When use state, the use remaining time for the carrier wave estimated;
The carrier switch request module is specifically used for being higher than use state with the carrier wave priority orders under idle state
Under carrier wave priority orders as carrier wave priority, condition is set, and be all the carrier wave under use state, made with what is estimated
Remaining time short carrier wave priority orders are used to be higher than the carrier wave priority orders grown using remaining time estimated as carrier wave
Condition is arranged in priority.
Optionally, in device of the present invention:
When the current use state information of each optional carrier wave includes use state or idle state information, the carrier wave is cut
Selecting module is changed, if specifically for there are the intersection carrier wave for being in idle state in one's own side and carrier switch request side,
In the intersection carrier wave carrier wave is selected according to priority orders;If there is no be in one's own side and carrier switch request side
The intersection carrier wave of idle state, then according to preset configuration, in the carrier wave that both sides support, with one's own side or carrier switch request
The carrier wave of square highest priority is the carrier wave of selection;
When the current use state information of each optional carrier wave includes use state or idle state information, and in using
When state, when the using remaining time information of carrier wave estimated, the carrier switch selecting module, if specifically for there are one's own side
With the intersection carrier wave for being in idle state in carrier switch request side, then selected according to priority orders in the intersection carrier wave
Select a carrier wave;If there is no the intersection carrier waves for being in idle state in one's own side and carrier switch request side, for each
Carrier wave compares time of the carrier wave in both sides apart from idle state, and it is that both sides are in idle state to take wherein longer time
Idle remaining time, the idle remaining time of more each carrier wave, using shortest carrier wave of idle remaining time as the carrier wave of selection.
The 4th aspect according to the present invention, provides a kind of selection system of NFC carrier switch, including:Carrier switch is asked
The side of asking and carrier switch selecting party;
The carrier switch request side, the current use state information of each optional carrier wave for detect support, and by its
After being added in the switching request message generated by agreement, it is sent to carrier switch selecting party;
The carrier switch selecting party is extracted and is carried in the switching request message for receiving switching request message
The current use state information of each optional carrier wave that carrier switch request side supports, and it is based on one's own side and carrier switch request side's branch
The current use state information of each optional carrier wave for holding selects a carrier wave can most establish carrier communication soon as principle, and
Send it to carrier switch request side.
The present invention has the beneficial effect that:
Methods, devices and systems of the present invention increase when NFC carrier waves are negotiated to the currently used state of optional carrier wave
Negotiation select optimal optional carrier wave and carry out data biography according to the combined situation of the optional carrier wave use state of communicating pair
It is defeated, data transmission efficiency is improved, the user experience is improved.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only
Some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, also
It can be obtain other attached drawings according to these attached drawings.
Fig. 1 is that NFC forum negotiate switching flow figure in the prior art;
Fig. 2 is a kind of flow chart of the selection method for NFC carrier switch that the embodiment of the present invention one provides;
Fig. 3 is a kind of flow chart of the selection method of NFC carrier switch provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of structure diagram of the selection device for NFC carrier switch that the embodiment of the present invention three provides;
Fig. 5 is a kind of Organization Chart of the selection system for NFC carrier switch that the embodiment of the present invention four provides;
Fig. 6 is the handover negotiation optimization flow chart of carrier switch request side in the embodiment of the present invention five;
Fig. 7 is the handover negotiation optimization flow chart of carrier switch selecting party in the embodiment of the present invention five.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment one
The embodiment of the present invention provides a kind of selection method of NFC carrier switch, and this method is from carrier switch request side side pair
Carrier selection process is illustrated, as shown in Fig. 2, the method specifically includes:
The current use state information of each optional carrier wave that one's own side supports detects in step S201, carrier switch request side, and
It is added in the switching request message generated by agreement;
Switching request message is sent to carrier switch selecting party by step S202, carrier switch request side.
To sum up, it is known that carrier switch request side is when switching over negotiation, the use for each carrier wave for just being supported itself
Status information is added in negotiation information, can be chosen for carrier switch selecting party and realize that the carrier wave most communicated soon provides branch
It holds.
It is illustrated based on above-mentioned principle, several specific and preferred embodiments is given below, to refine and optimize the present invention
The function of the method, so that the implementation of the present invention program is more convenient, accurately.Specifically:
In some embodiments, the current use state information of each optional carrier wave is added to by association by carrier switch request side
It discusses in the switching request message generated, further comprises:
Condition is arranged using the use state information of carrier wave as carrier wave priority for carrier switch request side, resets switching
The priority orders of each carrier wave in the optional carrier list for including in request message.
That is, the present invention takes into account the use state of carrier wave, in optional carrier list each carrier wave it is preferential
Grade sequence is readjusted, and can thus avoid also being chosen as negotiating in the case of the carrier wave of high priority is occupied as possible
Carrier wave, the problem of influencing efficiency of transmission.
In some embodiments, the current use state information of each optional carrier wave, including:Use state or idle state;
At this point, condition is set using the use state information of carrier wave as carrier wave priority, including:With the load under idle state
Wave priority orders are higher than the carrier wave priority orders under use state and condition are arranged as carrier wave priority.
It is further preferred that in some embodiments, the current use state information of each optional carrier wave, including:Use shape
State or idle state, and when in use state, the carrier wave estimated uses remaining time;
At this point, condition is set using the use state information of carrier wave as carrier wave priority, including:With the load under idle state
Wave priority orders are higher than the carrier wave priority orders under use state and condition are arranged as carrier wave priority, and are all to use
Carrier wave under state is higher than being grown using remaining time of estimating with the carrier wave priority orders short using remaining time estimated
Condition is arranged as carrier wave priority in carrier wave priority orders.
The preferred embodiment estimates the use remaining time of carrier wave under use state, and passes through the estimated time pair
Carrier wave carries out priority ranking, the carrier wave earliest into idle state can be selected to provide support for carrier switch selecting party, with
Data transmission efficiency is improved as far as possible.
Embodiment two
The embodiment of the present invention provides a kind of selection method of NFC carrier switch, and this method is from carrier switch selecting party side pair
Carrier selection process is illustrated, as shown in figure 3, the method specifically includes:
Step S301, carrier switch selecting party receives switching request message, and extracts and carried in the switching request message
The current use state information of each optional carrier wave supported of carrier switch request side;
Step S302, carrier switch selecting party are based on each optional carrier wave that one's own side and carrier switch request side support current
Use state information selects a carrier wave, and send it to carrier switch and ask can most establish carrier communication soon as principle
The side of asking.
To sum up, it is known that carrier switch selecting party is selected according to the combined situation of the optional carrier wave use state of communicating pair
Optimal optional carrier wave carries out data transmission, and improves data transmission efficiency, the user experience is improved.
It is illustrated based on above-mentioned principle, several specific and preferred embodiments is given below, to refine and optimize the present invention
The function of the method, so that the implementation of the present invention program is more convenient, accurately.Specifically:
In some embodiments, the current use state information of each optional carrier wave includes:Use state or idle shape
State.
At this point, carrier switch selecting party selects a carrier wave can most establish carrier communication soon as principle, including:
If carrier switch selecting party there are the intersection carrier wave for being in idle state in one's own side and carrier switch request side,
In the intersection carrier wave carrier wave is selected according to priority orders;
If the intersection carrier wave for being in idle state in one's own side and carrier switch request side is not present in carrier switch selecting party,
Then according to preset configuration, in the carrier wave that both sides support, with one's own side or the carrier wave of carrier switch request side's highest priority
For the carrier wave of selection.
In some embodiments, the current use state information of each optional carrier wave includes:Use state or idle shape
State, and when in use state, the use remaining time for the carrier wave estimated;
At this point, carrier switch selecting party selects a carrier wave can most establish carrier communication soon as principle, including:
If carrier switch selecting party there are the intersection carrier wave for being in idle state in one's own side and carrier switch request side,
In the intersection carrier wave carrier wave is selected according to priority orders;
If the intersection carrier wave for being in idle state in one's own side and carrier switch request side is not present in carrier switch selecting party,
Then for each carrier wave, remaining time is used based on carrier wave, compares time of the carrier wave in both sides apart from idle state, takes wherein
Longer time is the idle remaining time that both sides are in idle state, the idle remaining time of more each carrier wave, with the free time
Remaining time shortest carrier wave is the carrier wave of selection.
As an example it is assumed that the carrier wave that carrier switch request side and carrier switch selecting party are supported is WiFi, bluetooth and red
Outside.
In carrier switch request side side, carrier wave WiFi is in use state, and it is 5min using remaining time to estimate;Carrier wave
Bluetooth is in idle condition;Carrier wave is infrared to be in use state, and it is 2min using remaining time to estimate.
In carrier switch selecting party side, carrier wave WiFi is in idle condition;CW bluetooth is in use state, and that estimates makes
It is 3min with remaining time;Carrier wave is infrared to be in use state, and it is 6min using remaining time to estimate.
It is 5min in the time of requesting party's lateral extent idle state at this point, for carrier wave WiFi, it is empty in selecting party lateral extent
The time of not busy state is 0min;The time that so carrier wave WiFi is in idle state apart from both sides is then 5min.
It is 0min in the time of requesting party's lateral extent idle state, in selecting party lateral extent free time shape for CW bluetooth
The time of state is 3min;The time that so CW bluetooth is in idle state apart from both sides is then 3min.
It is infrared for carrier wave, it is 2min in the time of requesting party's lateral extent idle state, in selecting party lateral extent free time shape
The time of state is 6min;So the carrier wave infrared time that idle state is in apart from both sides is then 6min.
By above-mentioned comparison, it is known that the idle remaining time that carrier wave WiFi is in idle state in both sides is 5min, is carried
The idle remaining time that wave bluetooth is in idle state in both sides is 3min, and carrier wave is infrared to be in idle state in both sides
Idle remaining time is 6min.At this point, then selecting the carrier wave of bluetooth alternatively.
Under the selection mode, carrier switch selecting party does not have under the intersection carrier case of idle state both sides, chooses
The carrier wave that idle state can be entered as early as possible realizes as the carrier wave negotiated and carries out carrier communication as early as possible, to a certain extent
Improve carrier communication efficiency.
Embodiment three
The embodiment of the present invention provides a kind of selection device of NFC carrier switch, as shown in figure 4, described device includes:
Carrier switch request module 410, for when described device is carrier switch request side, detection described device to be supported
The current use state information of each optional carrier wave, and after being added in the switching request message generated by agreement, send
To carrier switch selecting party;
Carrier switch selecting module 420, for when described device is carrier switch selecting party, receiving carrier switch request
The switching request message just sent extracts each optional load that the carrier switch request side carried in the switching request message supports
The current use state information of wave, and based on the current use state of each optional carrier wave that one's own side and carrier switch request side support
Information selects a carrier wave, and send it to carrier switch request side can most establish carrier communication soon as principle.
The present embodiment described device increases the negotiation to the currently used state of optional carrier wave when NFC carrier waves are negotiated, according to
The combined situation of the optional carrier wave use state of communicating pair is selected optimal optional carrier wave and is carried out data transmission, improves number
According to efficiency of transmission, the user experience is improved.
Based on above structure frame and implementation principle, several specific and preferred implementation sides under the above constitution are given below
Formula, to refine and optimize the function of device of the present invention, so that the implementation of the present invention program is more convenient, accurately.Specifically relate to
And following content:
In some embodiments, carrier switch request module 410 is further used for by the current use of each optional carrier wave
After status information is added in the switching request message generated by agreement, using the use state information of carrier wave as carrier wave priority
Setting condition resets in switching request message the priority orders of each carrier wave in the optional carrier list for including.
That is, the present invention takes into account the use state of carrier wave, in optional carrier list each carrier wave it is preferential
Grade sequence is readjusted, and can thus avoid also being chosen as negotiating in the case of the carrier wave of high priority is occupied as possible
Carrier wave, the problem of influencing efficiency of transmission.
In some embodiments, the current use state information of each optional carrier wave, including:Use state or free time
State;
At this point, carrier switch request module 410, with the carrier wave priority orders under idle state higher than under use state
Condition is arranged as carrier wave priority in carrier wave priority orders.
In some embodiments, the current use state information of each optional carrier wave, including:Use state or free time
State, and when in use state, the carrier wave estimated uses remaining time;
At this point, carrier switch request module 410, with the carrier wave priority orders under idle state higher than under use state
Condition is arranged as carrier wave priority in carrier wave priority orders, and is all the carrier wave under use state, surplus with the use estimated
It is preferential as carrier wave that short carrier wave priority orders of remaining time are higher than the carrier wave priority orders grown using remaining time estimated
Grade setting condition.
In some embodiments, when the current use state information of each optional carrier wave includes use state or idle state letter
When breath, carrier switch selecting module 420, if specifically for there are be in idle state in one's own side and carrier switch request side
Intersection carrier wave then selects a carrier wave in the intersection carrier wave according to priority orders;If one's own side and carrier switch is not present
The intersection carrier wave of idle state is in requesting party, then according to preset configuration, in the carrier wave that both sides support, with one's own side or
The carrier wave of person carrier switch request side highest priority is the carrier wave of selection;
In some embodiments, when the current use state information of each optional carrier wave includes use state or idle state letter
When ceasing, and being in use state, when the using remaining time information of carrier wave estimated, the carrier switch selecting module 420,
Specifically for if there are the intersection carrier waves for being in idle state in one's own side and carrier switch request side, in the intersection carrier wave
According to priority orders select a carrier wave;If there is no the friendships for being in idle state in one's own side and carrier switch request side
Collection carrier wave compares time of the carrier wave in both sides apart from idle state then for each carrier wave, and it is both sides to take wherein longer time
It is in the idle remaining time of idle state, the idle remaining time of more each carrier wave, with shortest load of idle remaining time
Wave is the carrier wave of selection.
Under the selection mode, carrier switch selecting module 420 does not have under the intersection carrier case of idle state both sides,
The carrier wave that can enter idle state as early as possible is chosen as the carrier wave negotiated, realizes and carries out carrier communication as early as possible, from certain journey
Carrier communication efficiency is improved on degree.
Example IV
The embodiment of the present invention provides a kind of selection system of NFC carrier switch, as shown in figure 5, the system comprises:Carrier wave
Switching request side 510 and carrier switch selecting party 520;
Carrier switch request side 510 is used to detect the current use state information of each optional carrier wave supported, and is added
After being added in the switching request message generated by agreement, it is sent to carrier switch selecting party 520;
Carrier switch selecting party 520 extracts the load carried in the switching request message for receiving switching request message
The current use state information of each optional carrier wave that wave switching request side supports, and supported based on one's own side and carrier switch request side
The current use state information of each optional carrier wave select a carrier wave, and will can most establish carrier communication soon as principle
It is sent to carrier switch request side 510.
Elaboration, this reality are had been carried out in embodiment one for 510 further implementation detail of carrier switch request side
Example is applied not repeat.520 further implementation detail of carrier switch selecting party is also had been carried out in embodiment two and is explained
It states, the present embodiment does not also repeat.
In short, system described in the present embodiment increases the negotiation to the currently used state of optional carrier wave when NFC carrier waves are negotiated,
It according to the combined situation of the optional carrier wave use state of communicating pair, selects optimal optional carrier wave and carries out data transmission, improve
Data transmission efficiency, the user experience is improved.
Embodiment five
The present embodiment provides a kind of selection method of NFC carrier switch, this method is made by disclosing more technical details
The specific implementation process of the methods, devices and systems described in the embodiment of the present invention one, two, three, four can be better described in it.When
So, the technical detail disclosed by the present embodiment uniquely limits the present invention to explain the present invention but be not used in.
The method of the embodiment of the present invention increases communicating pair optional carrier wave during existing negotiation switches and works as
The interactive process of preceding state.Carrier switch request side not only sends the number of the optional carrier wave of its support when sending switching request
Amount, type and relevant configuration information, also need to send the current use state of optional carrier wave, are to be used to carry out data transmission
Or it is idle unused, remaining time is used for also needing to calculate in the carrier wave used, i.e., how long is also needed in idle shape
State covers the value in switching request message together.After carrier switch selecting party receives switching request message, compare oneself institute
The communication carrier of support simultaneously returns to switching selection message to carrier switch request side, includes final negotiation in switching selection message
Carrier wave.The final determination for negotiating carrier wave is mainly determined by the current use state of each optional carrier wave of communicating pair.It retouches below
State the negotiation switching flow of the present invention program.
The implementation process and message format of the unmodified NFC Forum of the method for the embodiment of the present invention, completely compatible NFC
The connection of Forum switches specification.The negotiations process for focusing on optional carrier wave of the method for the embodiment of the present invention, it is final to determine
Negotiate carrier wave.It is mainly described below from the process flow of the process flow of carrier switch request side and carrier switch selecting party
Concrete implementation details.
(1) the handover negotiation optimization process of carrier switch request side;
The handover negotiation optimization process of carrier switch request side mainly sends switching request message to carrier switch selecting party, disappears
Optional carrier list is carried in breath, and all wireless carriers of switching request side's support, the relevant configuration of carrier wave are store in the table
Information and current use state information.The present invention is in the sequence of each carrier wave in determining optional carrier list, for idle shape
The carrier wave of state has higher priority, is placed on front.For the optional carrier wave under use state, need to calculate each optional
Carrier wave uses remaining time, i.e., also needs how long the carrier wave is in idle condition, according to the size for using remaining time, adjustment can
The sequence for selecting carrier list, using remaining time smaller more forward, priority is higher.Specific implementation flow is as shown in fig. 6, packet
Include following steps:
Step S601 starts;
Step S602 detects the current use state of optional carrier wave;
Step S603, judges whether optional carrier wave is in use state, if so, thening follow the steps S604;Otherwise, it executes
Step S605;
Step S604, calculates the remaining time that uses of each optional carrier wave, and according to using remaining time from short to long suitable
Sequence adjusts the carrier wave priority orders of optional carrier list, goes to step S607;
Wherein, the mode using remaining time for calculating each optional carrier wave belongs to the technology of comparative maturity, such as:It is utilizing
When wifi transmission datas, it will usually have the prompt of transmission speed and transmission time, the present invention can be using transmission time as calculating
Use remaining time.
Step S605, judges whether optional carrier wave is in idle state, if so, not to the carrier wave of optional carrier list
Priority orders are adjusted, and go to step S607;Otherwise, step S606 is executed;
Step S606, calculate each carrier wave in use state uses remaining time, and excellent with the carrier wave of idle state
First grade is higher than the carrier wave priority of use state, is all the carrier wave under use state, uses the carrier wave priority that remaining time is short
Higher than the mode for the carrier wave priority for using remaining time length, the carrier wave priority orders of optional carrier list are adjusted, are gone to step
S607;
Wherein, the case where being in idle condition for multiple carrier waves, the priority orders of each free time intercarrier are according to original
Sequence sorts.
Step S607 sends switching request message to carrier switch selecting party;
Step S608 monitors and receives the switching selection message of carrier switch selecting party feedback;
Step S609, parsing switching selection message, obtains and negotiates carrier wave specific configuration information, sent out to carrier switch selecting party
Specific carrier wave is sent to establish request;
The present embodiment is obtained when the switching for receiving the transmission of carrier switch selecting party selects message in switching selection message
Negotiation carrier configuration information, the connection setup process for carrier wave of holding consultation belongs to prior art, and the present invention does not explain excessively
It states.
Step S610 terminates.
(2) the handover negotiation optimization process of carrier switch selecting party;
The handover negotiation optimization process of carrier switch selecting party mainly receives and parsing switching request message, obtains switching request
Each optional Carrier State in message calculates optimal carrier wave as carrier wave is negotiated, finally in conjunction with itself current optional Carrier State
Negotiation carrier wave is encapsulated into switching selection message and is sent to carrier switch request side.
The process emphasis is in the determination process for negotiating carrier wave, and there are mainly three types of processing modes:A modes:When carrier switch selects
When the optional carrier wave for the side of selecting is in idle state, final negotiation carrier wave by the optional carrier list in switching request message Lai
It determines.First carrier wave is to negotiate carrier wave in optional carrier wave selective listing, i.e., the conduct negotiation carrier wave of highest priority in list;
B modes:When the optional carrier wave of carrier switch request side is idle, and carrier switch selecting party only has the optional carrier wave in part and is using
In the case of, the idle carrier wave that switching request side and switching selecting party are supported disappears as carrier wave is negotiated according to switching request
The preferred sequence of optional carrier list is selected in breath;C modes:It obtains carrier switch selecting party and carrier switch request side is each
Optional carrier wave uses remaining time, is applied in addition to A by comparing carrier wave idle earliest is calculated as carrier wave, which is negotiated
Other application scene except the application scenarios of mode and B modes.Wherein, other than the application scenarios of A modes and B modes
In other application scene, there are a kind of situations to be:The carrier wave of carrier switch request side and carrier switch selecting party partly uses
The case where, at this time, it is preferable that first judge whether the carrier wave idle in both sides, and if it exists, then directly from idle carrier wave
Otherwise middle selection, then is selected using C modes.
Following table describes carrier wave of the carrier switch selecting party in one's own side and carrier switch request side and is in different conditions situation
Lower switching selection course needs the processing mode correspondence taken.
It being illustrated based on above-mentioned principle, the detailed process for carrying out carrier wave selection to carrier switch selecting party below illustrates,
As shown in fig. 7, comprises following steps:
Step S701 starts;
Step S702 is monitored and is received switching request message;
Step S703 parses switching request message and obtains each optional carrier wave current state in carrier switch request side, simultaneously
Obtain carrier switch selecting party currently optional Carrier State;
Step S704, judges whether the optional carrier wave of carrier switch selecting party is currently in idle state, if so, executing step
Rapid S705;Otherwise, step S706 is executed;
Step S705 turns step using first carrier wave in optional carrier list in switching request message as carrier wave is negotiated
Rapid S709;
Step S706 judges that carrier switch request can select whether carrier wave is currently in idle state and carrier switch selects
The side of selecting only has the optional carrier wave in part and is in use state, if so, executing step S707;Otherwise, step S708 is executed;
Step S707, compares carrier switch request side and idle carrier wave that carrier switch selecting party is supported is as negotiating to carry
Wave is selected according to the priority orders of optional carrier list in switching request message, goes to step S709;
Step S708, acquisition carrier switch selecting party and each optional carrier wave in carrier switch request side use remaining time,
By comparing idle carrier wave earliest is calculated S709 is gone to step as carrier wave is negotiated;
It illustrates:Assuming that switching request side supports two kinds of carrier technology of Wi-Fi and Bluetooth, remaining time is used
Respectively 13 seconds and 15 seconds;Switching selecting party similarly supports Wi-Fi and Bluetooth, the use of remaining time is respectively 10 seconds
With 20 seconds.Compare calculating by both sides, both sides Wi-Fi can just be in idle state in earliest 13 seconds, and Bluetooth is needed earliest
Want can just enter idle state within 20 seconds, then the idle remaining time of Wi-Fi is 13 seconds, the idle remaining time of Bluetooth
It is 20 seconds.Both therefore compare, select Wi-Fi can be relatively high as negotiation carrier wave efficiency.Therefore final choice Wi-Fi in the example
As final negotiation carrier wave.
Final negotiation carrier wave is encapsulated into switching selection message and is sent to carrier switch request side by step S709.
Step S710 terminates.
In conclusion the present embodiment the method increases when NFC carrier waves are negotiated to the currently used state of optional carrier wave
Negotiate, according to the combined situation of the optional carrier wave use state of communicating pair, select optimal optional carrier wave and carry out data transmission,
Data transmission efficiency is improved, the user experience is improved.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, such as right
As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool
Thus claims of body embodiment are expressly incorporated in the specific implementation mode, wherein each claim conduct itself
The separate embodiments of the present invention.
In addition, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of selection method of close range wireless communication carrier switch, which is characterized in that including:
The current use state information of each optional carrier wave that one's own side supports detects in carrier switch request side, and is added to by association
It discusses in the switching request message generated;The switching request message is sent to carrier switch selecting party by carrier switch request side;
The current use state information of each optional carrier wave is added in the switching request message generated by agreement, is further wrapped
It includes:
Using the use state information of carrier wave as carrier wave priority be arranged condition, reset include in switching request message can
Select the priority orders of each carrier wave in carrier list.
2. the method as described in claim 1, which is characterized in that
The current use state information of each optional carrier wave, including:Use state or idle state;
Condition is arranged as carrier wave priority in the use state information using carrier wave, including:It is excellent with the carrier wave under idle state
Condition is arranged as carrier wave priority higher than the carrier wave priority orders under use state in first grade sequence.
3. method as claimed in claim 2, which is characterized in that
When carrier wave is in use state, the current use state information of corresponding carrier wave further includes:The use for the carrier wave estimated is surplus
The remaining time;
Condition is arranged as carrier wave priority in the use state information using carrier wave, further includes:It is all the load under use state
Wave is higher than the carrier wave priority grown using remaining time estimated with the carrier wave priority orders short using remaining time estimated
Condition is arranged as carrier wave priority in sequence.
4. a kind of selection method of close range wireless communication carrier switch, which is characterized in that including:
Carrier switch selecting party receives switching request message, and extracts the carrier switch request carried in the switching request message
The current use state information of each optional carrier wave for just supporting;
The current use state information of each optional carrier wave of the carrier switch selecting party based on one's own side and the support of carrier switch request side,
Can most establish carrier communication soon as principle, a carrier wave is selected, and send it to carrier switch request side.
5. method as claimed in claim 4, which is characterized in that
The current use state information of each optional carrier wave includes:Use state or idle state;
It is described to select a carrier wave most establish carrier communication soon as principle, including:
If there are the intersection carrier wave for being in idle state in one's own side and carrier switch request side, pressed in the intersection carrier wave
A carrier wave is selected according to priority orders;
If there is no the intersection carrier wave for being in idle state in one's own side and carrier switch request side, according to preset configuration,
In the carrier wave that both sides support, using the carrier wave of one's own side or carrier switch request side's highest priority as the carrier wave of selection.
6. method as claimed in claim 4, which is characterized in that
The current use state information of each optional carrier wave includes:Use state or idle state, and in using shape
When state, the use remaining time for the carrier wave estimated;
It is described to select a carrier wave most establish carrier communication soon as principle, including:
If there are the intersection carrier wave for being in idle state in one's own side and carrier switch request side, pressed in the intersection carrier wave
A carrier wave is selected according to priority orders;
If there is no the intersection carrier wave for being in idle state in one's own side and carrier switch request side, for each carrier wave, than
Time of the carrier wave in both sides apart from idle state, it is the free time that both sides are in idle state to take wherein longer time
Remaining time, the idle remaining time of more each carrier wave, using shortest carrier wave of idle remaining time as the carrier wave of selection.
7. a kind of selection device of close range wireless communication carrier switch, which is characterized in that including:
Carrier switch request module, for when described device is carrier switch request side, each of detection described device support can
The use state information that carrier wave is current is selected, and after being added in the switching request message generated by agreement, is sent to carrier wave
Switch selecting party;
Carrier switch selecting module, for when described device is carrier switch selecting party, receiving carrier switch request side and sending
Switching request message, it is current to extract each optional carrier wave that the carrier switch request side that is carried in the switching request message supports
Use state information, and based on the current use state information of each optional carrier wave that one's own side and carrier switch request side support,
Can most establish carrier communication soon as principle, a carrier wave is selected, and send it to carrier switch request side;
The carrier switch request module is further used for being added to by association by the current use state information of each optional carrier wave
After discussing in the switching request message generated, condition is set using the use state information of carrier wave as carrier wave priority, is reset
The priority orders of each carrier wave in the optional carrier list for including in switching request message.
8. device as claimed in claim 7, which is characterized in that
The current use state information of each optional carrier wave, including:Use state or idle state;
The carrier switch request module is specifically used for the carrier wave priority orders under idle state higher than under use state
Condition is arranged as carrier wave priority in carrier wave priority orders;
Alternatively, the use state information that each optional carrier wave is current, including:Use state or idle state, and in making
When with state, the use remaining time for the carrier wave estimated;
The carrier switch request module is specifically used for the carrier wave priority orders under idle state higher than under use state
Condition is arranged as carrier wave priority in carrier wave priority orders, and is all the carrier wave under use state, surplus with the use estimated
It is preferential as carrier wave that short carrier wave priority orders of remaining time are higher than the carrier wave priority orders grown using remaining time estimated
Grade setting condition.
9. device as claimed in claim 8, which is characterized in that
When the current use state information of each optional carrier wave includes use state or idle state information, the carrier switch choosing
Module is selected, if specifically for there are the intersection carrier waves for being in idle state in one's own side and carrier switch request side, described
In intersection carrier wave a carrier wave is selected according to priority orders;If there is no be in the free time in one's own side and carrier switch request side
The intersection carrier wave of state, then according to preset configuration, in the carrier wave that both sides support, with one's own side or carrier switch request Fang You
The first highest carrier wave of grade is the carrier wave of selection;
When the current use state information of each optional carrier wave includes use state or idle state information, and it is in use state
When, when the using remaining time information of carrier wave estimated, the carrier switch selecting module, if specifically for there are one's own side and load
It is in the intersection carrier wave of idle state in wave switching request side, then selects one according to priority orders in the intersection carrier wave
A carrier wave;If there is no the intersection carrier wave for being in idle state in one's own side and carrier switch request side, for each carrier wave,
Compare time of the carrier wave in both sides apart from idle state, take wherein longer time be both sides be in idle state free time it is surplus
Remaining time, the idle remaining time of more each carrier wave, using shortest carrier wave of idle remaining time as the carrier wave of selection.
10. a kind of selection system of close range wireless communication carrier switch, which is characterized in that including:Carrier switch request side and
Carrier switch selecting party;
The carrier switch request side is used to detect the current use state information of each optional carrier wave supported, and is added
To after in the switching request message generated by agreement, it is sent to carrier switch selecting party;By the current use shape of each optional carrier wave
State information is added in the switching request message generated by agreement, further comprises:
Using the use state information of carrier wave as carrier wave priority be arranged condition, reset include in switching request message can
Select the priority orders of each carrier wave in carrier list;
The carrier switch selecting party extracts the carrier wave carried in the switching request message for receiving switching request message
The current use state information of each optional carrier wave that switching request side supports, and supported based on one's own side and carrier switch request side
The current use state information of each optional carrier wave selects a carrier wave can most establish carrier communication soon as principle, and by its
It is sent to carrier switch request side.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510176287.8A CN104822167B (en) | 2015-04-15 | 2015-04-15 | A kind of selection method, the device and system of NFC carrier switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510176287.8A CN104822167B (en) | 2015-04-15 | 2015-04-15 | A kind of selection method, the device and system of NFC carrier switch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104822167A CN104822167A (en) | 2015-08-05 |
CN104822167B true CN104822167B (en) | 2018-11-06 |
Family
ID=53732302
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510176287.8A Active CN104822167B (en) | 2015-04-15 | 2015-04-15 | A kind of selection method, the device and system of NFC carrier switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104822167B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106973358B (en) * | 2017-02-28 | 2019-12-10 | 宇龙计算机通信科技(深圳)有限公司 | Communication connection method and terminal |
US10419984B2 (en) * | 2017-06-19 | 2019-09-17 | GM Global Technology Operations LLC | Wireless device connection management |
CN110474728B (en) * | 2018-05-11 | 2022-02-08 | 大唐移动通信设备有限公司 | Selection method and terminal for synchronous message sending carrier |
EP3576441A1 (en) * | 2018-05-31 | 2019-12-04 | Koninklijke Philips N.V. | Device for wireless communication handover |
CN111131934B (en) * | 2019-12-27 | 2022-03-18 | 武汉长光科技有限公司 | Extended wavelength allocation method based on PON system |
CN118540795A (en) * | 2023-02-17 | 2024-08-23 | 华为技术有限公司 | Data transmission method and communication device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102457849A (en) * | 2010-10-20 | 2012-05-16 | 诺基亚公司 | Wireless docking with out-of-band initiation |
CN102771064A (en) * | 2010-02-26 | 2012-11-07 | Lg电子株式会社 | Electronic device and method for operating an electronic device |
CN104066135A (en) * | 2013-03-18 | 2014-09-24 | 华为终端有限公司 | Connection switching method based on near field communication and corresponding device |
CN104254980A (en) * | 2012-06-08 | 2014-12-31 | 惠普发展公司,有限责任合伙企业 | Secure wireless peer-peer connection using near-field communication |
-
2015
- 2015-04-15 CN CN201510176287.8A patent/CN104822167B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102771064A (en) * | 2010-02-26 | 2012-11-07 | Lg电子株式会社 | Electronic device and method for operating an electronic device |
CN102457849A (en) * | 2010-10-20 | 2012-05-16 | 诺基亚公司 | Wireless docking with out-of-band initiation |
CN104254980A (en) * | 2012-06-08 | 2014-12-31 | 惠普发展公司,有限责任合伙企业 | Secure wireless peer-peer connection using near-field communication |
CN104066135A (en) * | 2013-03-18 | 2014-09-24 | 华为终端有限公司 | Connection switching method based on near field communication and corresponding device |
Also Published As
Publication number | Publication date |
---|---|
CN104822167A (en) | 2015-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104822167B (en) | A kind of selection method, the device and system of NFC carrier switch | |
CN107801222B (en) | Bluetooth and WiFi switching method and system, client and wireless access point equipment | |
CN109041262B (en) | Data transmission method and related device | |
EP2384061B1 (en) | Apparatus and method for automatic SIM card selection according to network environment in dual mode terminal | |
EP2852219A1 (en) | Multimode terminal and service implementation method for multimode terminal | |
EP3637824B1 (en) | Measurement gap configuration method and device | |
US10716043B2 (en) | Access point handover method and device | |
CN111615123A (en) | Method, device and storage medium for intelligent device network distribution | |
CN110391926A (en) | Network is sliced application control method and device, communication equipment and storage medium | |
CN109348514B (en) | Method and terminal for controlling electromagnetic interference | |
EP2874436B1 (en) | Channel switching method, apparatus and device | |
CN106358174A (en) | Wireless roaming hotspot access method, system and wireless terminal | |
CN107529154B (en) | Communication method and device of multimode terminal | |
CN106792658B (en) | Wireless backhaul link assisted establishment method and apparatus | |
JP5642287B2 (en) | Communication system, base station, and communication control method | |
KR20160113226A (en) | Method for establishing communication connection and medium device | |
CN107529125B (en) | Bluetooth device communication method and communication device | |
CN108901015A (en) | Terminal communicating method, terminal and storage medium | |
EP2104387A1 (en) | Allocation of a radio access bearer with a lower rate than desired in case of lack of resources, if an indicator in the assignment request indicates that the communication rate is negotiable | |
US10708775B2 (en) | Method for establishing network connection by using WPS, and mobile Wi-Fi device | |
CN111752289B (en) | Unmanned aerial vehicle control method and related device | |
CN111901895B (en) | Method and device for establishing user plane | |
CN110035465B (en) | Data transmission method, device, equipment and computer readable storage medium | |
CN114071586A (en) | Method for splitting end-to-end QoS (quality of service) demand information, terminal and network side equipment | |
EP3065445B1 (en) | Method, cse, and system for transmitting m2m application request |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |