CN106332241A - Physical layer and upper layer synchronization method - Google Patents
Physical layer and upper layer synchronization method Download PDFInfo
- Publication number
- CN106332241A CN106332241A CN201510369146.8A CN201510369146A CN106332241A CN 106332241 A CN106332241 A CN 106332241A CN 201510369146 A CN201510369146 A CN 201510369146A CN 106332241 A CN106332241 A CN 106332241A
- Authority
- CN
- China
- Prior art keywords
- physical layer
- upper strata
- semaphore
- secondary signal
- signal amount
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention relates to a physical layer and upper layer synchronization method. The method comprises steps: when the physical layer sends a message to the upper layer, the physical layer obtains a first signal quantity in a sleep management unit, the first signal quantity is used for sending a message to the upper layer, and after sending of the message is completed, the first signal quantity is released; and when the upper layer sends a message to the physical layer, the upper layer obtains a second signal quantity in the sleep management unit, the second signal quantity is used for sending a message to the physical layer, and after sending of the message is completed, the second signal quantity is released. According to the method provided by the invention, through adding two signal quantities to the sleep management unit, the physical layer and the upper layer use the two signal quantities for message sending and sleep, and work synchronization and sleep synchronization between the physical layer and the upper layer are thus realized.
Description
Technical field
The application relates to communication technical field, particularly relates to the synchronous method on a kind of physical layer and upper strata.
Background technology
Power consumption is highly important evaluation index for mobile terminal, and power consumption is the lowest, during terminal standby
Between the longest, terminal capabilities is the best.In order to power saving considers, generally both define not in wireless communication protocol
Receive continuously, it is allowed to terminal was slept according to certain cycle and rule.
The sleep of wireless communication terminal relates to upper strata and the design of physical layer and realization.Physical layer can be according to not
The feature received continuously and the needs receiving paging and measurement determine when sleep and when wake up up, and
Requirement is reported to decide whether to wake up upper strata up according to different reception conditions and measurement;Upper strata can be according to discontinuous
The feature received and the needs of application determine when sleep and when wake up up, and decision is as required
No wake up physical layer up;Physical layer and upper strata are two independent subsystems, can independently control sleeping of self
Sleep or wake up up, and whether waking up the other side up.Meanwhile, it is also required to according to agreement between physical layer and upper strata
Requiring and application needs to send message to the other side, these message all need the other side to process in real time, otherwise
The performance indications such as the response time that can affect the mobility of terminal, business.
According to above-mentioned upper strata and the sleep of two independent particle systems of physical layer, wake up up feature and between message
The needs sent, terminal system there may be following problem: a Founder is starting sleep, and another is upright
In messaging, message possibly cannot be normally written, cause the message losing message or write imperfect, finally
System is caused to be hung dead;Even if message is normally written, sleep side also cannot process in real time, affects terminal capabilities.
In prior art, in order to solve the upright conflict in sleep with B direction A side messaging of A, arrange one
Individual state variable, before A side starts sleep, arranging state variable is sleep state, and B side sends out every time and disappears
All inquire about this state variable before breath, if sleep state, then start and A side is waken up up flow process, A side
Changing state variable after waking up up is non-sleep state, and inquiry A side of B side is to start to A side after non-sleep state
The flow process of messaging, A side can process message in real time at non-sleep state.A side and B side can be physics
One of layer and upper-layer subsystem.
But, the time of each messaging in B side inquiry state variable, just may determine in A side that sleep sets
Before configuration state variable, in this case, B side is still thought can send message, and still can in A side
Start sleep, owing to both sides' sleep and messaging do not accomplish to synchronize, still can exist and lose message or message
The problem that cannot process in real time.
Summary of the invention
The purpose of the application is to provide the synchronous method on a kind of physical layer and upper strata, to solve physical layer and upper
Cannot process in real time due to a wherein side is in sleep state and causes information drop-out or message between Ceng
Problem.
To achieve these goals, on the one hand, this application provides the synchronous method on a kind of physical layer and upper strata,
Described method includes:
When described physical layer sends message to described upper strata, described physical layer obtains in sleep administrative unit
First semaphore, utilizes described first semaphore to send message to described upper strata, after message is sent completely,
Discharge described first semaphore;
When described upper strata sends message to described physical layer, described upper strata obtains in sleep administrative unit
Secondary signal amount, utilizes described secondary signal amount to send message to described physical layer, treats that message is sent completely
After, discharge described secondary signal amount.
On the other hand, this application provides the synchronous method on a kind of physical layer and upper strata, described method includes:
When described upper strata needs to enter sleep state, described upper strata obtains the first letter in sleep administrative unit
Number amount, utilizes described first semaphore to enter sleep state, after being awake, discharges described the
One semaphore;
When described physical layer needs to enter sleep state, described physical layer obtains in sleep administrative unit
Secondary signal amount, utilizes described secondary signal amount to enter sleep state, after being awake, and release
Described secondary signal amount.
The physical layer of the application offer and the synchronous method on upper strata, by increasing by two in sleep administrative unit
Individual semaphore, physical layer and upper strata utilize two semaphores to carry out message transmission and sleep, it is achieved thereby that
Working synchronization between physical layer and upper strata and sleep synchronizes, it is to avoid owing to physical layer and upper strata one side sleep
And the information drop-out caused or message cannot process in real time.
Accompanying drawing explanation
Fig. 1 is the interaction schematic diagram between the upper strata in the application, physical layer and sleep administrative unit;
Physical layer that Fig. 2 provides for the embodiment of the present application one and the synchronous method flow chart on upper strata;
Physical layer that Fig. 3 provides for the embodiment of the present application two and the synchronous method flow chart on upper strata.
Detailed description of the invention
For making the purpose of the embodiment of the present application, technical scheme and advantage clearer, below in conjunction with this Shen
Please accompanying drawing in embodiment, the technical scheme in the embodiment of the present application is clearly and completely described,
Obviously, described embodiment is some embodiments of the present application rather than whole embodiments.Based on
Embodiment in the application, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of the application protection.
Technical scheme be applied to wireless communication terminal (e.g., mobile phone, panel computer and notebook
Computer etc.) communication between internal physical layer and upper strata, sleep administrative unit is that terminal inner controls thing
Reason layer and upper strata enter the unit of sleep and wake-up states, and the application adds two in sleep administrative unit
Individual semaphore, the first semaphore and secondary signal amount, the first semaphore for upper strata sleep and physical layer to
Upper strata sends message, and secondary signal amount sends message for physical layer sleep and upper strata to physical layer.Upper strata,
Interaction between physical layer and sleep administrative unit is as shown in Figure 1.
Physical layer that Fig. 2 provides for the embodiment of the present application one and the synchronous method flow chart on upper strata.Such as Fig. 2
Shown in, described method specifically includes:
Step 201, when described physical layer sends message to described upper strata, described physical layer obtains sleep pipe
The first semaphore in reason unit, utilizes described first semaphore to send message to described upper strata, treats message
After being sent completely, discharge described first semaphore.
Specifically, when physical layer sends message to upper strata, physical layer judges that the first semaphore is the most idle,
If it is, utilize the first semaphore to send message to upper strata.After message is sent completely, discharge first
Semaphore.If it is not, then wake up upper strata up, upper strata discharges the first semaphore, and physical layer utilizes the first signal
Measure and send message to described upper strata.After message is sent completely, discharge the first semaphore.
For example, when physical layer sends message to upper strata, physical layer accesses in sleep administrative unit
Depositor, if return value is 1, then it represents that the first semaphore is idle, physical layer utilize the first semaphore to
Upper strata sends message, and after message is sent completely, physical layer is released by the way of writing 1 in a register
Put the first semaphore.If depositor return value is 0, then it represents that upper strata, at sleep state, occupies first
Semaphore, physical layer wakes up upper strata up by waking up mechanism up, after upper strata is waken up, by writing in a register
The mode entering 1 discharges the first semaphore, in order to physical layer utilizes the first semaphore to send message to upper strata,
Upper strata processes after receiving the message that physical layer sends, it is to avoid owing to sleeping the message caused in upper strata
Lose and cannot process in real time.
When upper strata sends message to physical layer, step 201 replaces with following steps:
Upper strata obtains the secondary signal amount in sleep administrative unit, utilizes secondary signal amount to send to physical layer
Message, after message is sent completely, discharges secondary signal amount.
Specifically, upper strata judges that secondary signal amount is the most idle, if it is, utilize secondary signal amount to
Physical layer sends message.If it is not, then wake up physical layer up, physical layer release secondary signal amount, upper strata profit
Message is sent to physical layer by secondary signal amount.
For example, when upper strata sends message to physical layer, posting in upper access sleep administrative unit
Storage, if return value is 1, then it represents that secondary signal amount is idle, and upper strata utilizes secondary signal amount to physics
Layer sends message, and after message is sent completely, upper strata discharges the by the way of writing 1 in a register
Binary signal amount.If depositor return value is 0, then it represents that physical layer, at sleep state, occupies the second letter
Number amount, upper strata wakes up physical layer up by waking up mechanism up, after physical layer is waken up, by writing in a register
The mode entering 1 discharges secondary signal amount, in order to upper strata utilizes secondary signal amount to send message to physical layer,
Physical layer processes after receiving the message that upper strata sends, it is to avoid due to disappearing that physical layer sleep causes
Breath is lost and cannot process in real time.
The physical layer of the present embodiment offer and the synchronous method on upper strata, by increasing in sleep administrative unit
Two semaphores, physical layer and upper strata utilize two semaphores to carry out message transmission and sleep, thus realize
Work synchronization between physical layer and upper strata and sleep synchronizes, it is to avoid owing to physical layer and upper strata one side sleep
Information drop-out or the message slept and cause cannot process in real time.
Physical layer that Fig. 3 provides for the embodiment of the present application two and the synchronous method flow chart on upper strata.Such as Fig. 3
Shown in, described method specifically includes:
Step 301, when described upper strata needs to enter sleep state, described upper strata obtains sleep administrative unit
In the first semaphore, utilize described first semaphore enter sleep state, after being awake,
Discharge described first semaphore.
Specifically, when upper strata needs to enter sleep state, upper strata judges that the first semaphore is the most idle,
If it is, utilize the first semaphore to enter sleep state.If it is not, then receive disappearing of physical layer transmission
Breath, after message sink completes, physical layer discharges the first semaphore, and upper strata has processed the message received
After, utilize the first semaphore to enter sleep state.
For example, in wireless communication protocol, generally both define discontinuous reception, it is allowed to terminal according to
Certain cycle and rule are slept.When upper strata needs to enter sleep state, upper access sleep pipe
Depositor in reason unit, if return value is 1, then it represents that the first semaphore is idle, and now physical layer does not has
Oriented upper strata sends message, then upper strata utilizes the first semaphore to enter sleep state, waits to be awake
After, upper strata discharges the first semaphore by the way of writing 1 in a register.If depositor return value
It is 0, then it represents that physical layer is sending message to upper strata, occupies the first semaphore, then upper strata receives thing
The message that reason layer sends, after message sink completes, physical layer is by the way of writing 1 in a register
Discharge the first semaphore, after upper strata has processed the message received, utilize the first semaphore to enter sleep shape
State, it is to avoid the information drop-out that causes due to upper strata sleep and cannot process in real time.
When physical layer needs to enter sleep state, step 301 replaces with following steps:
Described physical layer obtains the secondary signal amount in described sleep administrative unit, utilizes described secondary signal
Amount enters sleep state, after being awake, discharges described secondary signal amount.
Specifically, when physical layer needs to enter sleep state, physical layer judges that secondary signal amount is the most empty
Spare time, if it is, utilize secondary signal amount to enter sleep state.If it is not, then receive what upper strata sent
Message, after message sink completes, upper strata release secondary signal amount, physical layer process is complete disappearing of receiving
After breath, secondary signal amount is utilized to enter sleep state.
For example, in wireless communication protocol, generally both define discontinuous reception, it is allowed to terminal according to
Certain cycle and rule are slept.When physical layer needs to enter sleep state, physical layer accesses sleeps
Depositor in dormancy administrative unit, if return value is 1, then it represents that secondary signal amount is idle, now upper strata
Do not send message to physical layer, then physical layer utilizes secondary signal amount to enter sleep state, shape to be slept
After state terminates, physical layer discharges secondary signal amount by the way of writing 1 in a register.If deposited
Device return value is 0, then it represents that upper strata sends message to physical layer, occupies secondary signal amount, then thing
Reason layer receives the message that upper strata sends, and after message sink completes, upper strata is by writing 1 in a register
Mode discharge secondary signal amount, after the complete message received of physical layer process, utilize secondary signal amount to enter
Enter sleep state, it is to avoid the information drop-out that causes due to physical layer sleep and cannot process in real time.
The physical layer of the present embodiment offer and the synchronous method on upper strata, by increasing in sleep administrative unit
Two semaphores, physical layer and upper strata utilize two semaphores to carry out message transmission and sleep, thus realize
Work synchronization between physical layer and upper strata and sleep synchronizes, it is to avoid owing to physical layer and upper strata one side sleep
Information drop-out or the message slept and cause cannot process in real time.
Professional should further appreciate that, describes in conjunction with the embodiments described herein
The object of each example and algorithm steps, it is possible to come with electronic hardware, computer software or the combination of the two
Realize, in order to clearly demonstrate the interchangeability of hardware and software, the most according to function
Generally describe composition and the step of each example.These functions are come with hardware or software mode actually
Perform, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can be to often
Individual specifically should being used for uses different methods to realize described function, but this realization it is not considered that
Beyond scope of the present application.
The method described in conjunction with the embodiments described herein or the step of algorithm can use hardware, process
The software module that device performs, or the combination of the two implements.Software module can be placed in random access memory
(RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable ROM,
Other form any well known in depositor, hard disk, moveable magnetic disc, CD-ROM or technical field
Storage medium in.
Above-described detailed description of the invention, is carried out purpose, technical scheme and the beneficial effect of the application
Further describe, be it should be understood that the foregoing is only the application detailed description of the invention and
, it is not used to limit the protection domain of the application, all within spirit herein and principle, done
Any modification, equivalent substitution and improvement etc., within should be included in the protection domain of the application.
Claims (10)
1. a physical layer and the synchronous method on upper strata, it is characterised in that described method includes:
When described physical layer sends message to described upper strata, described physical layer obtains in sleep administrative unit
First semaphore, utilizes described first semaphore to send message to described upper strata, after message is sent completely,
Discharge described first semaphore;
When described upper strata sends message to described physical layer, described upper strata obtains in described sleep administrative unit
Secondary signal amount, utilize described secondary signal amount to described physical layer send message, treat that message has sent
Cheng Hou, discharges described secondary signal amount.
Method the most according to claim 1, it is characterised in that described physical layer obtains sleep management
The first semaphore in unit, utilizes described first semaphore to send message to described upper strata and specifically includes:
Described physical layer judges that described first semaphore is the most idle, if it is, utilize described first signal
Measure and send message to described upper strata.
Method the most according to claim 1, it is characterised in that described physical layer obtains described sleep
The first semaphore in administrative unit, utilizes described first semaphore to send message to described upper strata and specifically wraps
Include:
Described physical layer judges that described first semaphore is the most idle, if it is not, then wake up described upper strata up, and institute
Stating upper strata and discharge described first semaphore, described physical layer utilizes described first semaphore to send out to described upper strata
Send message.
Method the most according to claim 1, it is characterised in that it is single that described upper strata obtains sleep management
Secondary signal amount in unit, utilizes described secondary signal amount to send message to described physical layer and specifically includes:
Described upper strata judges that described secondary signal amount is the most idle, if it is, utilize described secondary signal amount
Message is sent to described physical layer.
Method the most according to claim 1, it is characterised in that it is single that described upper strata obtains sleep management
Secondary signal amount in unit, utilizes described secondary signal amount to send message to described physical layer and specifically includes:
Described upper strata judges that described secondary signal amount is the most idle, if it is not, then wake up described physical layer up, and institute
Stating physical layer and discharge described secondary signal amount, described upper strata utilizes described secondary signal amount to described physical layer
Send message.
6. a physical layer and the synchronous method on upper strata, it is characterised in that described method includes:
When described upper strata needs to enter sleep state, described upper strata obtains the first letter in sleep administrative unit
Number amount, utilizes described first semaphore to enter sleep state, after being awake, discharges described the
One semaphore;
When described physical layer needs to enter sleep state, described physical layer obtains in described sleep administrative unit
Secondary signal amount, utilize described secondary signal amount enter sleep state, after being awake, release
Put described secondary signal amount.
Method the most according to claim 6, it is characterised in that it is single that described upper strata obtains sleep management
The first semaphore in unit, utilizes described first semaphore to enter sleep state and specifically includes:
When described upper strata needs to enter sleep state, described upper strata judges that described first semaphore is the most empty
Spare time, if it is, utilize described first semaphore to enter sleep state.
Method the most according to claim 6, it is characterised in that described upper strata obtains described sleep pipe
The first semaphore in reason unit, utilizes described first semaphore to enter sleep state and specifically includes:
When described upper strata needs to enter sleep state, described upper strata judges that described first semaphore is the most empty
In the spare time, if it is not, then receive the message that physical layer sends, after message sink completes, described physical layer is released
Put described first semaphore, after described upper strata has processed the message received, utilize described first semaphore
Enter sleep state.
Method the most according to claim 6, it is characterised in that described physical layer obtains described sleep
Secondary signal amount in administrative unit, utilizes described secondary signal amount to enter sleep state and specifically includes:
When described physical layer needs to enter sleep state, whether described physical layer judges described secondary signal amount
Free time, if it is, utilize described secondary signal amount to enter sleep state.
Method the most according to claim 6, it is characterised in that described physical layer obtains described sleep
Secondary signal amount in administrative unit, utilizes described secondary signal amount to enter sleep state and specifically includes:
When described physical layer needs to enter sleep state, whether described physical layer judges described secondary signal amount
Free time, if it is not, then receive the message that upper strata sends, after message sink completes, described upper strata discharges
Described secondary signal amount, after the complete message received of described physical layer process, utilizes described secondary signal amount
Enter sleep state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510369146.8A CN106332241A (en) | 2015-06-29 | 2015-06-29 | Physical layer and upper layer synchronization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510369146.8A CN106332241A (en) | 2015-06-29 | 2015-06-29 | Physical layer and upper layer synchronization method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106332241A true CN106332241A (en) | 2017-01-11 |
Family
ID=57723276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510369146.8A Pending CN106332241A (en) | 2015-06-29 | 2015-06-29 | Physical layer and upper layer synchronization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106332241A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101112109A (en) * | 2004-11-30 | 2008-01-23 | 格姆普拉斯公司 | Initiation of a proactive session in a smart card from an applet |
CN101170777A (en) * | 2007-11-23 | 2008-04-30 | 中兴通讯股份有限公司 | A method for realizing sleeping/awaking of multi-mode mobile terminal |
CN102708064A (en) * | 2011-02-24 | 2012-10-03 | 微软公司 | Multi-phase resume from hibernate |
CN102833829A (en) * | 2012-08-17 | 2012-12-19 | 广州海格天立通信息技术有限公司 | Standby wakeup method based on time division multiple access (TDMA) system |
-
2015
- 2015-06-29 CN CN201510369146.8A patent/CN106332241A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101112109A (en) * | 2004-11-30 | 2008-01-23 | 格姆普拉斯公司 | Initiation of a proactive session in a smart card from an applet |
CN101170777A (en) * | 2007-11-23 | 2008-04-30 | 中兴通讯股份有限公司 | A method for realizing sleeping/awaking of multi-mode mobile terminal |
CN102708064A (en) * | 2011-02-24 | 2012-10-03 | 微软公司 | Multi-phase resume from hibernate |
CN102833829A (en) * | 2012-08-17 | 2012-12-19 | 广州海格天立通信息技术有限公司 | Standby wakeup method based on time division multiple access (TDMA) system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11582121B2 (en) | Method and apparatus for a power-efficient framework to maintain data synchronization of a mobile personal computer to simulate a connected scenario | |
TWI557550B (en) | Application-aware radio power saving | |
CN103402027B (en) | Mobile terminal and method for putting same into sleeping state | |
CN100576147C (en) | Operating environment based on non-host CPU/OS | |
US8850247B2 (en) | Power management for a system on a chip (SoC) | |
US20140372777A1 (en) | Adaptive latency tolerance for power management of memory bus interfaces | |
CN104166542A (en) | Method and device for detecting electricity consumption of application | |
CN110045915A (en) | Refreshed using the back-end data of the system timestamp in storage device | |
CN104125077B (en) | The communication means and device of a kind of network-termination device | |
CN104244381A (en) | Method, device and terminal device for awakening control | |
TWI670602B (en) | Electronic device and method for power-conserving cache memory usage | |
WO2015062316A1 (en) | Data manipulation method and device for hibernating disk | |
CN111512266A (en) | System, apparatus, and method for handshake protocol for low power state transitions | |
CN105227784A (en) | A kind of power-saving processing method of mobile terminal and mobile terminal | |
CN103857021A (en) | Method for controlling Bluetooth device, Bluetooth device and electronic device | |
CN101707796A (en) | Power saving method for mobile communication terminal in idle mode | |
CN109547945A (en) | Communication means, device, access point apparatus and the site apparatus of WLAN | |
CN103150191A (en) | Terminal equipment | |
US20060026297A1 (en) | Computer system with multiple data access channels and control method thereof | |
US20160170877A1 (en) | System and method for managing bandwidth and power consumption through data filtering | |
CN106332241A (en) | Physical layer and upper layer synchronization method | |
CN104424142A (en) | Method and device for accessing shared resource in multi-core processor system | |
CN115756143A (en) | Energy-saving method and device for data packet processing, computer equipment and storage medium | |
CN103984543A (en) | Method for implementing standby, hibernation and wake-up on domestic FeiTeng processor | |
CN104572240B (en) | Control method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170111 |
|
RJ01 | Rejection of invention patent application after publication |