CN108055707A - state switching method, device, terminal and storage medium - Google Patents
state switching method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN108055707A CN108055707A CN201810150049.3A CN201810150049A CN108055707A CN 108055707 A CN108055707 A CN 108055707A CN 201810150049 A CN201810150049 A CN 201810150049A CN 108055707 A CN108055707 A CN 108055707A
- Authority
- CN
- China
- Prior art keywords
- data packet
- base station
- sent
- terminal
- empty data
- 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.)
- Pending
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
This application discloses a kind of state switching method, device, terminal and storage mediums, belong to field of communication technology.This method includes:When in connected state, data packet to be sent is determined whether there is in media access control MAC layer;If there is no the data packets to be sent, empty data packet is sent to base station in the MAC layer, the sky data packet is used to maintain the connected state;After the empty data packet is sent, Idle state is switched to from the connected state according to the control of the base station.When the application can solve terminal and will handle instantaneity business, Idle state is switched to from connected state so that terminal can not timely receive the data packet of instantaneity business, the problem of causing terminal processes instantaneity business not in time;The promptness of terminal processes instantaneity business can be improved.
Description
Technical field
The invention relates to field of communication technology, more particularly to a kind of state switching method, device, terminal and storage
Medium.
Background technology
Wireless heterogeneous networks (Radio Resource Control, RRC) state of terminal includes:Connected state and free time
State.Wherein, connected state refers to establish the state for having RRC connections between terminal and base station, in this state, between terminal and base station
It can be with transmitting and receiving service data;Idle state refers to the state that RRC connections are not set up between terminal and base station, in this state, terminal
Business datum cannot be sent to base station, but the system message and paging request message of base station transmission can be received.
In typical communication system, if terminal is currently at connected state, and do not sent out in default overtime duration to base station
Data packet is sent, then base station can discharge the RRC connections between terminal, at this point, terminal switches to Idle state from connected state.Work as terminal
When needing to transmit upstream data, terminal can send scheduling request (Scheduling Request, SR) to base station, and base station is according to this
SR establishes RRC with terminal again and is connected, at this point, terminal switches to connected state from Idle state.
The content of the invention
State switching method provided by the embodiments of the present application, device, terminal and storage medium, can solve terminal processes i.e.
The problem of promptness of when property business is poor.The technical solution is as follows:
In a first aspect, a kind of state switching method is provided, the described method includes:
When in connected state, data packet to be sent is determined whether there is in media access control MAC layer;
If there is no the data packets to be sent, empty data packet, the sky data packet are sent to base station in the MAC layer
For maintaining the connected state;
After the empty data packet is sent, Idle state is switched to from the connected state according to the control of the base station.
Second aspect, provides a kind of state switching device, and described device includes:
Determination unit, for when in connected state, data to be sent to be determined whether there is in media access control MAC layer
Bag;
Transmitting element, if for there is no the data packet to be sent, empty data to be sent to base station in the MAC layer
Bag, the sky data packet are used to maintain the connected state;
Switch unit, for after the empty data packet is sent, being cut according to the control of the base station from the connected state
Shift to Idle state.
The third aspect provides a kind of terminal, and the terminal includes processor, the memory being connected with the processor,
And the program instruction on the memory is stored in, the processor realizes that first aspect provides when performing described program instruction
State switching method.
Fourth aspect, a kind of computer-readable medium are stored thereon with program instruction, and described program instruction is held by processor
The state switching method that first aspect provides is realized during row.
9th aspect, a kind of computer program product for including instruction, when run on a computer so that computer
Perform the state switching method that first aspect provides.
The advantageous effect that technical solution provided by the embodiments of the present application is brought includes:
By when data packet to be sent is not present in MAC layer, sending empty data packet to base station so that terminal can disguise oneself as
Also data packet to base station send, if during this terminal need handle instantaneity business, due to base station can keep with terminal it
Between RRC connections, when extending terminal and be in the duration of connected state, therefore terminal can be solved will handle instantaneity business, from
Connected state is switched to Idle state so that terminal can not timely receive the data packet of instantaneity business, cause terminal processes instant
Property business not in time the problem of;The promptness of terminal processes instantaneity business can be improved.
Description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the structure diagram for the communication system that the application one embodiment provides;
Fig. 2 is the flow chart for the state switching method that one exemplary embodiment of the application provides;
Fig. 3 is the flow chart of the state switching method of the application another exemplary embodiment offer;
Fig. 4 is the block diagram for the state switching device that the application one embodiment provides;
Fig. 5 is the block diagram for the terminal that the application one embodiment provides.
Specific embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with attached drawing to the application embodiment party
Formula is described in further detail.
In mobile communication system, the RRC state of terminal includes:Connected state (or RRC_CONNECTED states) and sky
Not busy state (or RRC_IDLE states).
Connected state refers to:Being established between terminal and base station has the states of RRC connections, under connected state, terminal and base station it
Between can be with transmitting and receiving service data.
Idle state refers to:The state of RRC connections is not set up between terminal and base station, under Idle state, terminal cannot be to base
It stands and sends business datum, but the system message and paging request message of base station transmission can be received.
Instantaneity business refers to:Transmission speed, processing speed to data packet are higher than the business of other types of data packet.
In general, instantaneity business is to need the business for notifying that user is handled immediately.Such as:Instantaneity business is:It robs red packet business, rob ticket
Business etc. needs the business of timely processing.
Fig. 1 is the structure diagram of the communication system shown in the exemplary embodiment of the application.Optionally, the communication
System includes but not limited to:Long Term Evolution (Long Term Evolution, LTE) system, (New Radio, NR) system of newly eating dishes without rice or wine
System or:5th third-generation mobile communication technology (5th-Generation, 5G system).Certainly, which can also be other
The communication system of type, the present embodiment are not construed as limiting this.The communication system includes at least one terminal 110 and at least one base
Stand 120.
Base station 120 can be the base station (gNB) that integrated distribution formula framework is used in 5G systems.When base station 120 is using concentration
During distributed structure/architecture, centralized unit (central unit, CU) and at least two distribution unit (distributed are generally included
Unit, DU).Be provided in centralized unit Packet Data Convergence Protocol (Packet Data Convergence Protocol,
PDCP) layer, radio link layer control protocol (Radio Link Control, RLC) layer, media access control (Media
Access Control, MAC) layer protocol stack;Physics (Physical, PHY) layer protocol stack, this Shen are provided in distribution unit
Please embodiment the specific implementation of base station 120 is not limited.
Optionally, base station 120 can also include Home eNodeB (Home eNB, HeNB), relaying (Relay), femto base station
Pico etc..Base station 120 can also be known as network side equipment.The network side equipment of broad sense further includes the core positioned at 120 upper strata of base station
Heart net equipment (not shown).
Base station 120 and terminal 110 establish wireless connection by radio open.Optionally, which is based on the 4th
Third generation mobile communication network technology (4G) standard;Alternatively, it is the wireless sky based on the 5th third generation mobile communication network technology (5G) standard
Mouthful, for example the radio open is newly to eat dishes without rice or wine;Alternatively, the radio open can also be the more next generation mobile communication network based on 5G
The radio open of technical standard, the present embodiment are not construed as limiting this.
Terminal 110 can refer to the equipment for providing a user voice and/or data connectivity.Terminal can be through wireless access
Net (Radio Access Network, RAN) communicates with one or more core nets, and terminal 140 can be mobile terminal,
Such as mobile phone (or for " honeycomb " phone) and the computer with mobile terminal.
Terminal 110 includes media access control (Media Access Control, MAC) layer.MAC layer defines data packet
Which kind of transmitted on medium.
MAC layer (or uplink MAC layer) includes but not limited to following functions:
1st, measurement amount reports:Measurement including buffer status reporting (Buffer Status Report, BSR) reports.
The content that BSR is reported is data cached in the logic channel sequence of MAC layer in terminal 110, and by MAC signalings, i.e. MAC layer controls
PDU is completed.BSR be used for notify base station need for terminal 110 distribute ascending resource, the ascending resource be used for for terminal 110 to
120 transmission services data of base station.
2nd, SR is reported:SR is used to ask Uplink Shared Channel (Uplink Shared Channel, UL-SCH) resource.When
Terminal 110 needs to report BSR but during without UL-SCH resource, and terminal 110 needs to report SR, and request base station 120 is divided for terminal 110
With ascending resource.
It should be noted that in communication system shown in Fig. 1, multiple base stations 120 and/or multiple terminals can be included
In 140, Fig. 1 with a base station 120 is shown and a terminal 140 come for example, but the present embodiment this is not construed as limiting.
Optionally, the terminal 110 in the application using the executive agent of each embodiment as communication system shown in FIG. 1 is
Example illustrates.Optionally, terminal is equipped with application processor (Application Processor, AP) and base band
(baseband) (or:Baseband chip).Application processor is used to handle application program.Such as:Monitor the operation of application program
Situation, the data packet for monitoring application program etc..Base band is used to communicate with base station for terminal, such as:Network request is provided, is beaten
Phone, business of sending short messages.
Fig. 2 is the flow chart of the state switching method shown in the exemplary embodiment of the application.The state switching side
Method includes at least following steps.
Step 201, when in connected state, data packet to be sent is determined whether there is in MAC layer.
Optionally, connected state refers to:The state for there are RRC connections is established between terminal and base station.
Step 202, if there is no data packets to be sent, empty data packet is sent to base station in MAC layer.
Empty data packet is used to maintain connected state.
Optionally, empty data packet refers to data content for empty data packet, which can include mac-layer protocol head
The required information when sending.
Optionally, empty data packet is also referred to as empty protocol Data Unit (Protocol Data Unit, PDU).
Step 203, after empty data packet is sent, Idle state is switched to from connected state according to the control of base station.
Optionally, terminal is after empty data packet is sent, if not sending data packet (bag to base station in default overtime duration
Include sky data packet and the data packet including data content), then base station can disconnect and is connected with the RRC of terminal automatically, at this point, terminal root
According to the control of base station Idle state is switched to from connected state.
Wherein, Idle state refers to:The state of RRC connections is not set up between terminal and base station.
In conclusion state switching method provided in this embodiment, by when data packet to be sent is not present in MAC layer,
Empty data packet is sent to base station so that terminal can disguise oneself as also, and data packet is to base station transmission, if terminal needs to locate during this
Instantaneity business is managed, then since base station can keep the RRC connections between terminal, extends the duration that terminal is in connected state, because
When this can solve terminal and will handle instantaneity business, Idle state is switched to from connected state so that terminal can not receive in time
To the data packet of instantaneity business, the problem of causing terminal processes instantaneity business not in time;It is instant terminal processes can be improved
The promptness of property business.
It, can be by the sky data packet discarding, without to core network further, since after base station receives sky data packet
The sky data packet, therefore, core-network side will not count the flow of sky data packet occupancy, therefore, can save the flow of terminal
Expense.
Fig. 3 is the flow chart of the state switching method shown in another exemplary embodiment of the application.The state switches
Method includes at least following steps.
Step 301, when in connected state, terminal determines whether there is data packet to be sent in MAC layer.
Optionally, if terminal needs transmission packet in MAC layer, which can be stored in the caching of MAC layer.It can
Selection of land, terminal this after MAC layer has sent data packet, can all detect data packet to be sent whether is stored in the caching
(that is, the data packet not sent also);If in the presence of, it is determined that MAC layer there are data packet to be sent, continue to send this to base station and treat
Send data packet;It if is not present, it is determined that data packet to be sent is not present in MAC, performs step 303.
Optionally, terminal determines to determine whether there is data packet to be sent in MAC layer by base band.
Step 302, detect support instantaneity business specified application start and/or, detect specified application
During the data packet of the instantaneity business in program, terminal sends empty data packet to base band by application processor and sends request.
Optionally, application processor is used to handle application program.Such as:Monitor the operating condition of application program, monitoring is answered
Data packet with program etc..
Base band is used to communicate with base station for terminal, such as:Network request is provided, is made a phone call, business of sending short messages.
Optionally, the mark of specified application is stored in terminal, there are during an application program launching, using place
Reason device detects the mark identified whether as specified application of the application program;It is to specify application in the mark of the application program
It during the mark of program, determines to support the specified application of instantaneity business to start, generates empty data packet and send request.
Wherein, the mark of specified application includes but not limited to:The bag name of specified application, specified application
At least one of icon of title, the version number of specified application and specified application, the present embodiment does not limit this
It is fixed.The mark of specified application can be server send or or user setting, the present embodiment is to this
It is not construed as limiting.
Optionally, when terminal receives data packet, application processor obtains the relevant information of the data packet, according to data
The relevant information of bag determine data packet whether be instantaneity business data packet;It is the data packet of instantaneity business in the data packet
When, application processor determines to receive the data packet of instantaneity business in specified application, generates empty data packet and sends request.
Optionally, the relevant information of data packet includes but not limited to:In data type, data structure and data content extremely
Few one kind.
In a kind of mode, application processor determines whether data packet is instantaneity business according to the relevant information of data packet
Data packet, including:The relevant information of data packet is inputted detection model by application processor, obtains testing result;It is tied in detection
When fruit is instantaneity business, it is the data packet of instantaneity business to determine data packet;When testing result is not instantaneity business, really
Determine the data packet that data packet is not instantaneity business.
Wherein, detection model be by using the relevant information of the data packet of instantaneity business as input, according to output result
Compared with instantaneity business, comparative result is obtained;The mode of the model parameter of detection model is updated according to the comparative result
What training obtained.Detection model can be deep learning model, Logic Regression Models etc., and the present embodiment is not construed as limiting this.
In a further mode of operation, application processor determines whether data packet is instantaneity industry according to the relevant information of data packet
The data packet of business, including:Application processor detection data packet relevant information whether the data with stored instantaneity business
The relevant information of bag matches;In matching, it is the data packet of instantaneity business to determine data packet;When mismatching, number is determined
It is not the data packet of instantaneity business according to bag.
Optionally, the relevant information of the data packet of stored instantaneity business prestores in the terminal, stored instant
The relevant information of the data packet of property business can be that server is sent or or terminal default storage when dispatching from the factory.
Optionally, the data packet that application processor receives receives when in connected state.
Certainly, application processor can also detect the data packet of instantaneity business otherwise, and the present embodiment is to this
It is not construed as limiting.
Optionally, this step can perform before step 301;Alternatively, it can also perform after step 301;Alternatively,
It can also simultaneously be performed with step 301, the present embodiment is not construed as limiting this.
Step 303, terminal is sent by Baseband Receiver sky data packet and asked, when data packet to be sent is not present in MAC layer,
Request is sent according to empty data packet and generates empty data packet in MAC layer.
Empty data packet sends request and sends empty data packet to base station for triggering base band, to maintain between base station and terminal
RRC connections, i.e. maintain the connected state of terminal.
Optionally, empty data packet refers to data content for empty data packet, which can include mac-layer protocol head
The required information when sending.Optionally, empty data packet be also referred to as empty protocol Data Unit (Protocol Data Unit,
PDU)。
The empty data packet of base band generation includes:It is that empty data content adds MAC header, generation that base band is based on MAC protocol in MAC layer
Empty PDU.
Optionally, empty data packet includes the mark of terminal.The mark of terminal includes but not limited to:It is installed in terminal
The card number, terminal device number, operating system account number, mailbox of (Subscriber Identification Module, SIM) card
Location, user name, random string etc., the present embodiment is not construed as limiting this.
Step 304, terminal sends empty data packet by base band to base station.
Optionally, data packet is sent to base station by base band in MAC layer by physical layer.
Optionally, empty data packet is sent to base station every preset duration by base band.The present embodiment is not to preset duration
Value is construed as limiting.Preset duration is less than the default overtime duration of base station side.
Optionally, base band sends empty data packet in MAC layer before default overtime duration reaches to base station.
Wherein, it is under connected state to preset overtime duration, and base station continues not receive the maximum duration of data packet.
Optionally, base station receives terminal every time can start timer in the data packet that MAC layer is sent, the timer
Timing length is the default overtime duration.If this duration received after data packet reaches the default overtime duration, base station
The data packet that the terminal is sent again is not received yet, then the RRC that will disconnect between the terminal is connected.Therefore, in order to ensure
Terminal can send the data packet under connected state to base station, and terminal needs determining that there is no at the time of data packet to be sent
Start, empty data packet is sent before default overtime duration reaches, in this manner it is ensured that the validity of empty data packet.
Step 305, the duration for sending empty data packet reach default timing length and/or, sending time of empty data packet
When number reaches preset times, terminal stops sending empty data packet.
Optionally, in the present embodiment, in order to avoid terminal sends empty data packet to base station always so that terminal is constantly in
The problem of RRC connection status, power consumption is larger, terminal the duration for sending empty data packet reach default timing length and/or,
When the number of the empty data packet of transmission reaches preset times, stop sending empty data packet.
The present embodiment is not construed as limiting the value of preset duration and preset times, schematically, preset duration 5min, and in advance
If number is 10 times.
Step 306, terminal switches to Idle state according to the control of base station from connected state.
Base station is after terminal stops sending empty data packet, if the duration after receiving the last one empty data packet reaches
Default time-out duration, then the RRC connections between release and terminal, control terminal switch to Idle state from connected state.
In conclusion by when data packet to be sent is not present in MAC layer, sending empty data packet to base station so that terminal
The also data packet that can disguise oneself as is sent to base station, if terminal needs to handle instantaneity business during this, since base station can be protected
The RRC held between terminal is connected, and is extended terminal and is in the duration of connected state, therefore can solve terminal will handle instantaneity
During business, Idle state is switched to from connected state so that terminal can not timely receive the data packet of instantaneity business, cause terminal
The problem of handling instantaneity business not in time;The promptness of terminal processes instantaneity business can be improved.
It, can be by the sky data packet discarding, without to core network further, since after base station receives sky data packet
The sky data packet, therefore, core-network side will not count the flow of sky data packet occupancy, therefore, can save the flow of terminal
Expense.
Further, since the MAC layer of terminal can determine the data volume of data packet to be sent when determining BSR, it therefore, can
To determine to send the opportunity of empty data packet by MAC layer, i.e. transmit empty data packet by MAC layer, it is ensured that empty data packet
The accuracy on transmission opportunity.
Further, since application processor detects that the specified application for supporting instantaneity business starts, alternatively, detecting
In specified application during the data packet of instantaneity business, the probability that terminal will handle instantaneity business is larger, therefore, this reality
It applies in example by detecting that the specified application for supporting instantaneity business starts in application processor;And/or it is handled in application
When device detects the data packet of instantaneity business in specified application, generate empty data packet and send request, base band to be notified to give birth to
Into empty data packet, so that base station maintains the RRC connections between terminal so that terminal in MAC layer without being not present every time
During data packet to be sent, empty data packet all is sent come the problem of maintaining connected state, cause the power of consumption larger to base station;Both may be used
To save the resource of terminal, and it can ensure the promptness of terminal processes instantaneity business.
In addition, by before default overtime duration reaches, sending empty data packet to base station, can sent to avoid terminal
The problem of being in Idle state before empty data packet, caused the sky data packet that can not send, it is ensured that empty data packet has
Effect property.
Optionally, after step 306, if terminal is needed to base station transmission business datum, SR can be sent to base station,
Base station receives the RRC re-established after SR between terminal and is connected, at this point, terminal switches to connection from Idle state again
State.
Following is the application device embodiment, can be used for performing the application embodiment of the method.It is real for the application device
The details not disclosed in example is applied, refer to the application embodiment of the method.
It please refers to Fig.4, it illustrates the block diagram for the state switching device that the application one embodiment provides, the shapes
State switching device can be implemented in combination with by software, hardware or both as some or all of of terminal.The device can be with
Including:Determination unit 410, transmitting element 420 and switch unit 430.
Determination unit 410, for when in connected state, being determined whether there is in media access control MAC layer to be sent
Data packet;
Transmitting element 420, for when there is no during the data packet to be sent, empty number is sent to base station in the MAC layer
According to bag, the sky data packet is used to maintain the connected state;
Switch unit 430, for after the empty data packet is sent, according to the control of the base station from the connected state
Switch to Idle state.
In conclusion state switching device provided in this embodiment, by when data packet to be sent is not present in MAC layer,
Empty data packet is sent to base station so that terminal can disguise oneself as also, and data packet is to base station transmission, if terminal needs to locate during this
Instantaneity business is managed, then since base station can keep the RRC connections between terminal, extends the duration that terminal is in connected state, because
When this can solve terminal and will handle instantaneity business, Idle state is switched to from connected state so that terminal can not receive in time
To the data packet of instantaneity business, the problem of causing terminal processes instantaneity business not in time;It is instant terminal processes can be improved
The promptness of property business.
It, can be by the sky data packet discarding, without to core network further, since after base station receives sky data packet
The sky data packet, therefore, core-network side will not count the flow of sky data packet occupancy, therefore, can save the flow of terminal
Expense.
Optionally, embodiment based on shown in Fig. 4, the transmitting element 420, is used for:
When detecting that the specified application for supporting instantaneity business starts, sent in the MAC layer to the base station
The sky data packet;
And/or
In the data packet of the instantaneity business in detecting specified application, sent out in the MAC layer to the base station
Send the empty data packet.
Optionally, the transmitting element 420, is used for:
Empty data packet is sent to base band by application processor and sends request;
Request is sent by empty data packet described in the Baseband Receiver, and request is sent described according to the empty data packet
The MAC layer generation empty data packet;
The empty data packet is sent to base station by the base band.
Optionally, the transmitting element 420, is used for:
The empty data packet is sent to the base station every preset duration by the base band.
Optionally, the switch unit 430, is used for:
When the duration for sending the empty data packet reaches default timing length, stop sending the empty data packet;
The Idle state is switched to from the connected state according to the control of the base station.
Optionally, the switch unit 430, is used for:
When the number for sending the empty data packet reaches preset times, stop sending the empty data packet;
The Idle state is switched to from the connected state according to the control of the base station.
Optionally, the transmitting element 420, is used for:
If there is no the data packets to be sent, before default overtime duration reaches, sent out in the MAC layer to base station
Send sky data packet;
Wherein, the default overtime duration is under the connected state, and the base station continues not receive data packet most
Big duration.
Correlative detail refers to above method embodiment.
In conclusion state switching device provided in this embodiment, by when data packet to be sent is not present in MAC layer,
Empty data packet is sent to base station so that terminal can disguise oneself as also, and data packet is to base station transmission, if terminal needs to locate during this
Instantaneity business is managed, then since base station can keep the RRC connections between terminal, extends the duration that terminal is in connected state, because
When this can solve terminal and will handle instantaneity business, Idle state is switched to from connected state so that terminal can not receive in time
To the data packet of instantaneity business, the problem of causing terminal processes instantaneity business not in time;It is instant terminal processes can be improved
The promptness of property business.
It, can be by the sky data packet discarding, without to core network further, since after base station receives sky data packet
The sky data packet, therefore, core-network side will not count the flow of sky data packet occupancy, therefore, can save the flow of terminal
Expense.
Further, since the MAC layer of terminal can determine the data volume of data packet to be sent when determining BSR, it therefore, can
To determine to send the opportunity of empty data packet by MAC layer, i.e. transmit empty data packet by MAC layer, it is ensured that empty data packet
The accuracy on transmission opportunity.
Further, since application processor detects that the specified application for supporting instantaneity business starts, alternatively, detecting
In specified application during the data packet of instantaneity business, the probability that terminal will handle instantaneity business is larger, therefore, this reality
It applies in example by detecting that the specified application for supporting instantaneity business starts in application processor;And/or it is handled in application
When device detects the data packet of instantaneity business in specified application, generate empty data packet and send request, base band to be notified to give birth to
Into empty data packet, so that base station maintains the RRC connections between terminal so that terminal in MAC layer without being not present every time
During data packet to be sent, empty data packet all is sent come the problem of maintaining connected state, cause the power of consumption larger to base station;Both may be used
To save the resource of terminal, and it can ensure the promptness of terminal processes instantaneity business.
In addition, by before default overtime duration reaches, sending empty data packet to base station, can sent to avoid terminal
The problem of being in Idle state before empty data packet, caused the sky data packet that can not send, it is ensured that empty data packet has
Effect property.
The application also provides a kind of computer-readable medium, is stored thereon with program instruction, and program instruction is held by processor
The state switching method that above-mentioned each embodiment of the method provides is realized during row.
Present invention also provides it is a kind of comprising instruction computer program product, when run on a computer so that
Computer performs the state switching method that above-mentioned each embodiment of the method provides.
With reference to figure 5, it illustrates the block diagrams for the terminal that one exemplary embodiment of the application provides.In the application
Terminal can include it is one or more such as lower components:Processor 510 and memory 520.
Processor 510 can include one or more processing core.Processor 510 utilizes various interfaces and connection
Various pieces in entire terminal, by running or performing the instruction being stored in memory 520, program, code set or instruction
Collection and calling are stored in the data in memory 520, perform the various functions of terminal and processing data.Optionally, processor
510 may be employed Digital Signal Processing (Digital Signal Processing, DSP), field programmable gate array
(Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic
Array, PLA) at least one of example, in hardware realize.Processor 510 can integrating central processor (Central
Processing Unit, CPU) and one or more of modem etc. combination.Wherein, the main processing operation systems of CPU
System and application program etc.;Modem is used to handle wireless communication.It is understood that above-mentioned modem can not also
It is integrated into processor 510, is realized separately through chip piece.
Optionally, above-mentioned each embodiment of the method carries under being realized when processor 510 performs the program instruction in memory 520
The state switching method of confession.
Memory 520 can include random access memory (Random Access Memory, RAM), can also include read-only
Memory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non-
transitory computer-readable storage medium).Memory 520 can be used for store instruction, program, generation
Code, code set or instruction set.Memory 520 may include storing program area and storage data field, wherein, storing program area can store
Be used to implement operating system instruction, at least one function instruction, be used to implement the finger of above-mentioned each embodiment of the method
Order etc.;Storage data field can be stored uses created data etc. according to terminal.
It should be added that above-mentioned terminal is only schematically, in actual implementation, terminal can also include less
Or more component, such as:Terminal further includes touch display screen, communication component, sensor module etc., and the present embodiment is herein no longer
It limits one by one.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiment of the application, not to limit the application, it is all in spirit herein and
Within principle, any modifications, equivalent replacements and improvements are made should be included within the protection domain of the application.
Claims (11)
1. a kind of state switching method, which is characterized in that the described method includes:
When in connected state, data packet to be sent is determined whether there is in media access control MAC layer;
If there is no the data packets to be sent, empty data packet is sent to base station in the MAC layer, the sky data packet is used for
Maintain the connected state;
After the empty data packet is sent, Idle state is switched to from the connected state according to the control of the base station.
2. according to the method described in claim 1, it is characterized in that, described send empty data packet, bag in the MAC layer to base station
It includes:
When detecting that the specified application for supporting instantaneity business starts, described in the MAC layer to base station transmission
Empty data packet;
And/or
In the data packet of the instantaneity business in detecting specified application, institute is sent to the base station in the MAC layer
State sky data packet.
3. according to the method described in claim 1, it is characterized in that, described send empty data packet, bag in the MAC layer to base station
It includes:
Empty data packet is sent to base band by application processor and sends request;
Request is sent by empty data packet described in the Baseband Receiver, and request is sent in the MAC according to the empty data packet
The layer generation empty data packet;
The empty data packet is sent to base station by the base band.
4. according to the method described in claim 2, it is characterized in that, described send the empty data by the base band to base station
Bag, including:
The empty data packet is sent to the base station every preset duration by the base band.
5. method according to any one of claims 1 to 4, which is characterized in that described after the empty data packet is sent, root
Idle state is switched to from the connected state according to the control of the base station, including:
When the duration for sending the empty data packet reaches default timing length, stop sending the empty data packet;
The Idle state is switched to from the connected state according to the control of the base station.
6. method according to any one of claims 1 to 4, which is characterized in that described after the empty data packet is sent, root
Idle state is switched to from the connected state according to the control of the base station, including:
When the number for sending the empty data packet reaches preset times, stop sending the empty data packet;
The Idle state is switched to from the connected state according to the control of the base station.
7. method according to any one of claims 1 to 4, which is characterized in that if described be not present the data packet to be sent,
Empty data packet then is sent to base station in the MAC layer, including:
It is if empty to base station transmission in the MAC layer before default overtime duration reaches there is no the data packet to be sent
Data packet;
Wherein, the default overtime duration is under the connected state, when the base station continues not receive the maximum of data packet
It is long.
8. a kind of state switching device, which is characterized in that described device includes:
Determination unit, for when in connected state, data packet to be sent to be determined whether there is in media access control MAC layer;
Transmitting element, for when there is no during the data packet to be sent, empty data packet, institute are sent to base station in the MAC layer
Sky data packet is stated for maintaining the connected state;
Switch unit, for after the empty data packet is sent, being switched to according to the control of the base station from the connected state
Idle state.
9. device according to claim 8, which is characterized in that the transmitting element is used for:
When detecting that the specified application for supporting instantaneity business starts, described in the MAC layer to base station transmission
Empty data packet;
And/or
In the data packet of the instantaneity business in detecting specified application, institute is sent to the base station in the MAC layer
State sky data packet.
10. a kind of terminal, which is characterized in that the memory that the terminal includes processor, is connected with the processor, Yi Jicun
The program instruction on the memory is stored up, the processor is realized when performing described program instruction as claim 1 to 7 is any
The state switching method.
11. a kind of computer readable storage medium, which is characterized in that be stored thereon with program instruction, described program instruction is located
Manage the state switching method realized when device performs as described in claim 1 to 7 is any.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810150049.3A CN108055707A (en) | 2018-02-13 | 2018-02-13 | state switching method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810150049.3A CN108055707A (en) | 2018-02-13 | 2018-02-13 | state switching method, device, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108055707A true CN108055707A (en) | 2018-05-18 |
Family
ID=62125612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810150049.3A Pending CN108055707A (en) | 2018-02-13 | 2018-02-13 | state switching method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108055707A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108430070A (en) * | 2018-05-30 | 2018-08-21 | Oppo广东移动通信有限公司 | A kind of wireless heterogeneous networks connection method and equipment, computer storage media |
CN115460676A (en) * | 2022-06-16 | 2022-12-09 | 中国联合网络通信集团有限公司 | State management method, device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102821420A (en) * | 2012-07-23 | 2012-12-12 | 东南大学 | Data acquisition method based on double path transmission |
WO2014201697A1 (en) * | 2013-06-21 | 2014-12-24 | 华为技术有限公司 | Method and device for establishing rrc connection |
CN104812097A (en) * | 2015-05-21 | 2015-07-29 | 北京深思数盾科技有限公司 | Bluetooth equipment and communication method thereof |
CN104902584A (en) * | 2015-06-04 | 2015-09-09 | 广东欧珀移动通信有限公司 | Method and device for controlling wireless connection of multi-mode terminal |
CN105657860A (en) * | 2016-01-29 | 2016-06-08 | 珠海市魅族科技有限公司 | Method and device for improving data service response speed |
CN106105054A (en) * | 2014-03-27 | 2016-11-09 | 英特尔Ip公司 | Mthods, systems and devices for crosspoint Bluetooth communication |
-
2018
- 2018-02-13 CN CN201810150049.3A patent/CN108055707A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102821420A (en) * | 2012-07-23 | 2012-12-12 | 东南大学 | Data acquisition method based on double path transmission |
WO2014201697A1 (en) * | 2013-06-21 | 2014-12-24 | 华为技术有限公司 | Method and device for establishing rrc connection |
CN106105054A (en) * | 2014-03-27 | 2016-11-09 | 英特尔Ip公司 | Mthods, systems and devices for crosspoint Bluetooth communication |
CN104812097A (en) * | 2015-05-21 | 2015-07-29 | 北京深思数盾科技有限公司 | Bluetooth equipment and communication method thereof |
CN104902584A (en) * | 2015-06-04 | 2015-09-09 | 广东欧珀移动通信有限公司 | Method and device for controlling wireless connection of multi-mode terminal |
CN105657860A (en) * | 2016-01-29 | 2016-06-08 | 珠海市魅族科技有限公司 | Method and device for improving data service response speed |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108430070A (en) * | 2018-05-30 | 2018-08-21 | Oppo广东移动通信有限公司 | A kind of wireless heterogeneous networks connection method and equipment, computer storage media |
CN112888000A (en) * | 2018-05-30 | 2021-06-01 | Oppo广东移动通信有限公司 | Radio resource control connection method and device, and computer storage medium |
CN112888001A (en) * | 2018-05-30 | 2021-06-01 | Oppo广东移动通信有限公司 | Radio resource control connection method and device, and computer storage medium |
CN112888001B (en) * | 2018-05-30 | 2022-08-26 | Oppo广东移动通信有限公司 | Radio resource control connection method and device, and computer storage medium |
CN112888000B (en) * | 2018-05-30 | 2022-10-28 | Oppo广东移动通信有限公司 | Radio resource control connection method and device, and computer storage medium |
CN115460676A (en) * | 2022-06-16 | 2022-12-09 | 中国联合网络通信集团有限公司 | State management method, device and storage medium |
CN115460676B (en) * | 2022-06-16 | 2024-03-15 | 中国联合网络通信集团有限公司 | State management method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104145503B (en) | The methods, devices and systems of state switching | |
EP3282761B1 (en) | Method for controlling transmission and apparatus | |
CN103428874B (en) | A kind of data dispatching method and device | |
CN108810922A (en) | A kind of communication means and terminal, base station | |
CN106105307B (en) | User apparatus and uplink data sending method | |
CN109565896A (en) | Low-power RRC operating method and device | |
CN108781465A (en) | Channel access priority class selects | |
CN102387009B (en) | Uplink transmission method of radio link control layer and evolutionary node B | |
CN109246743A (en) | A kind of wave beam management method and terminal device, the network equipment | |
CN108811154B (en) | Data packet transmission method and device | |
CN105933099A (en) | Method for transmitting channel sounding reference signals SRSs, terminal and base station | |
CN108093495A (en) | DRX cycle collocation method, terminal, access network equipment and storage medium | |
CN108617020A (en) | A kind of method and system for establishing control plane connection | |
JP6953401B2 (en) | Methods and devices for sending and receiving paging messages in mobile communication systems | |
CN104159306B (en) | A kind of method, equipment and system for controlling interface-free resources | |
JP2013533683A (en) | Method and apparatus for reporting measurement information | |
CN106105273A (en) | Wireless communication system, terminal installation, wireless communications method and integrated circuit | |
CN101965021A (en) | Scheduling requesting method and communicator | |
EP3226606B1 (en) | Method for ran-wlan aggregation | |
CN106961727A (en) | A kind of paging and its control method and device | |
CN104350788A (en) | Wireless communication system, mobile station, base station and communication method | |
CN110167174A (en) | A kind of relay transmission method and device | |
CN109831809A (en) | A kind of method and apparatus of scheduling | |
CN108055707A (en) | state switching method, device, terminal and storage medium | |
CN108377579A (en) | Control method, device, terminal and the storage medium of wireless heterogeneous networks connection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180518 |