HIYBRD TIME-DIVISION MULTIPLEXING
20190238246 ยท 2019-08-01
Assignee
Inventors
Cpc classification
H04W28/0263
ELECTRICITY
H04J1/06
ELECTRICITY
International classification
Abstract
A hybrid time-division multiplexing comprises: S1, determining a length of a single time cycle; S2, formulating a working state table corresponding to the length of the single time cycle; S3, dividing the single time cycle into a synchronous time-division multiplexing time section and/or a statistical time-division multiplexing time section with a ratio of the synchronous time-division multiplexing time section to the single time cycle no less than 0 and no greater than 1; and S4, according to the working state table, accessing the channel and transmitting information by the MAC protocol user adopting synchronous time-division multiplexing in the synchronous time-division multiplexing time section, and/or accessing the channel and transmitting information by the MAC protocol user adopting statistical time-division multiplexing in the statistical time-division multiplexing time section. The method realizes compatibility of the above two communication methods on one chip, and satisfies user's requirements on real-time communication and a high channel utilization rate.
Claims
1. A hybrid time-division multiplexing, comprising: determining a length of a single time cycle according to preset communication requirements; formulating a working state table corresponding to the length of the single time cycle for the hybrid time-division multiplexing; dividing the single time cycle into a synchronous time-division multiplexing time section and/or a statistical time-division multiplexing time section based on the working state table; wherein the synchronous time-division multiplexing time section is allocated to a MAC protocol user adopting synchronous time-division multiplexing to access a channel, and the statistical time-division multiplexing time section is allocated to a MAC protocol user adopting statistical time-division multiplexing to access the channel; and a ratio of the synchronous time-division multiplexing time section to the single time cycle is no less than 0 and no greater than 1; and according to the working state table, accessing the channel and transmitting information by the MAC protocol user adopting synchronous time-division multiplexing in the synchronous time-division multiplexing time section, and/or accessing the channel and transmitting information by the MAC protocol user adopting statistical time-division multiplexing in the statistical time-division multiplexing time section.
2. The hybrid time-division multiplexing according to claim 1, further comprising: if the ratio of the synchronous time-division multiplexing time section to the single time cycle is greater than 0 and no greater than 1, dividing the synchronous time-division multiplexing time section into a plurality of synchronous time-division multiplexing time subsections based on the working state table to build a one-to-one correspondence between a plurality of MAC protocol users adopting synchronous time-division multiplexing and the plurality of synchronous time-division multiplexing time subsections with each user accessing to the channel and transmitting information in its own time subsection.
3. The hybrid time-division multiplexing according to claim 2, wherein a length of each synchronous time-division multiplexing time subsection is determined according to information quantity to be transmitted by the corresponding MAC protocol user.
4. The hybrid time-division multiplexing according to claim 2, wherein the plurality of synchronous time-division multiplexing time subsections correspond one to one with a plurality of channels respectively.
5. The hybrid time-division multiplexing according to claim 1, wherein a state machine model is used to switch among working states of the plurality of synchronous time-division multiplexing time subsections.
6. The hybrid time-division multiplexing according to claim 1, wherein a state machine model is used to switch among working states of synchronous time-division multiplexing time sections and statistical time-division multiplexing time sections.
7. The hybrid time-division multiplexing according to claim 1, further comprising: if the ratio of the synchronous time-division multiplexing time section to the single time cycle is no less than 0 and smaller than 1, a channel accessing state of a MAC protocol user is determined by an actual channel accessing situation of the user in the statistical time-division multiplexing time section.
8. The hybrid time-division multiplexing according to claim 7, wherein a channel accessing mechanism of the MAC protocol user adopting the statistical time-division multiplexing comprises: collision avoidance and collision detection.
9. The hybrid time-division multiplexing according to claim 1, wherein an information transmitting mode of the MAC protocol user adopting the synchronous time-division multiplexing or the statistical time-division multiplexing is simplex, half duplex or duplex.
10. The hybrid time-division multiplexing according to claim 1, wherein the synchronous time-division multiplexing time section and/or the statistical time-division multiplexing time section correspond to a plurality of channels with different frequency ranges.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to make the technical solutions in the disclosure or in the prior art described more clearly, the drawings associated to the description of the embodiments or the prior art will be illustrated concisely hereinafter. Obviously, the drawings described below are only some embodiments according to the disclosure. Numerous drawings therein will be apparent to one of ordinary skill in the art based on the drawings described in the disclosure without creative efforts.
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
[0033] The embodiment of the present disclosure provides a hybrid time-division multiplexing to solve the technical problem in the prior art that the two methods of TDM and STDM are not compatible with each other in one wireless communication chip and hence cannot satisfy user's requirements on real-time communication and high channel utilization rate, realizes compatibility of the above two communication methods on one wireless communication chip, and satisfies user's requirements on real-time communication and a high channel utilization rate.
[0034] A general concept of the technical solutions in the present embodiment to solve the above technical problem is as follows:
[0035] The embodiment of the present disclosure provides a hybrid time-division multiplexing, comprising: determining a length of a single time cycle according to preset communication requirements; formulating a working state table corresponding to the length of the single time cycle for the hybrid time-division multiplexing; dividing the single time cycle into a synchronous time-division multiplexing time section and/or a statistical time-division multiplexing time section based on the working state table; wherein the synchronous time-division multiplexing time section is allocated to a MAC protocol user adopting synchronous time-division multiplexing to access a channel, and the statistical time-division multiplexing time section is allocated to a MAC protocol user adopting statistical time-division multiplexing to access the channel; and a ratio of the synchronous time-division multiplexing time section to the single time cycle is no less than 0 and no greater than 1; and according to the working state table, accessing the channel and transmitting information by the MAC protocol user adopting synchronous time-division multiplexing in the synchronous time-division multiplexing time section, and/or accessing the channel and transmitting information by the MAC protocol user adopting statistical time-division multiplexing in the statistical time-division multiplexing time section.
[0036] It can be seen that the time cycle can be freely configured and the working state table corresponding to the length of the single time cycle for the hybrid time-division multiplexing can be formulated according to user's communication requirements. Further, ratios of the synchronous time-division multiplexing time section and the statistical time-division multiplexing time section in each time cycle can be freely configured according to the working state table to realize that the MAC protocol user adopting synchronous time-division multiplexing can access the channel and transmit information in the synchronous time-division multiplexing time section, and/or the MAC protocol user adopting statistical time-division multiplexing can access the channel and transmit information in the statistical time-division multiplexing time section. The present disclosure effectively solves the technical problem in the prior art that the TDM and STDM are not compatible with each other in one wireless communication chip which hence cannot satisfy user's requirements on real-time communication and high channel utilization rate. The present disclosure realizes compatibility of the above two communication methods TDM and STDM on one wireless communication chip, and satisfies user's requirements on real-time communication and a high channel utilization rate.
[0037] For the purpose of better understanding to above technical solution, the present disclosure will be further described in detail with reference to the accompanying drawings and embodiments below. It should be understood that embodiments described here are only for explaining the present disclosure and the disclosure, however, should not be constructed as limited to the embodiment as set forth herein. Embodiments and technical features in embodiments are be combined together without conflict.
Embodiment One
[0038] Referring to
[0039] S1, determining a length T of a single time cycle according to preset communication requirements;
[0040] S2, formulating a working state table corresponding to the length T of the single time cycle for the HTDM;
[0041] S3, dividing the single time cycle into a synchronous time-division multiplexing time section Ttd and/or a statistical time-division multiplexing time section Tstd based on the working state table; wherein the synchronous time-division multiplexing time section Ttd is allocated to a MAC protocol user adopting synchronous time-division multiplexing (TDM) to access a channel, and the statistical time-division multiplexing time section Tstd is allocated to a MAC protocol user adopting statistical time-division multiplexing (STDM) to access the channel; and a ratio K of the synchronous time-division multiplexing time section Ttd to the single time cycle T is no less than 0 and no greater than 1; and
[0042] S4, according to the working state table, accessing the channel and transmitting information by the MAC protocol user adopting TDM in the synchronous time-division multiplexing time section Ttd, and/or accessing the channel and transmitting information by the MAC protocol user adopting STDM in the statistical time-division multiplexing time section Tstd.
[0043] Specifically, a router may arranged in the communication chip as a master of the control center, and the master of the control center is connected to MAC protocol users including the MAC protocol users adopting TDM and the MAC protocol users adopting the STDM. The master of the control center is capable of estimating the length of data frame to be transmitted by the MAC protocol users connected to the master and determining the length T of one single time cycle according to the length of data frame obtained. Further, the master of the control center is configured to formulate the working state table corresponding to the length T of the single time cycle for the HTDM according to the length T of the single time cycle and the length of the date frame to be transmitted by the MAC protocol users adopting TDM. State information included in the working state table is as shown in table 1 in the following.
TABLE-US-00001 TABLE 1 a working state table for HTDM Length of a STDM Ratio of single time cycle TDM time section time section TDM time section T Ttd Tstd = T Ttd K = Ttd/T
[0044] It is noted that only a part of the parameters are listed in table 1. A complete working state table can be formed by configuring corresponding parameters. The ratio of the TDM time section Ttd to the single time cycle T (K=Ttd/T) is adjustable between 0-1. As shown in
[0045] Further, in the specific implementation, the number of the MAC protocol user adopting the TDM may be several. In this case, the state information included in the working state table is as shown in table 2 below, which further includes information of the MAC protocol user adopting TDM based on table 1.
TABLE-US-00002 TABLE 2 another working state table for HTDM Information Length of a Ratio of the MAC single time TDM time STDM of TDM protocol cycle section time section time section user adopting T Ttd Tstd = T Ttd K = Ttd/T TDM
[0046] The information of the MAC protocol user adopting TDM may include the number of the MAC protocol users adopting TDM, name of each MAC protocol user adopting TDM, protocol type of each MAC protocol user adopting TDM, length of data frame to be transmitted by each MAC protocol user adopting TDM, length of frame label to be transmitted under each protocol type of the MAC protocol user adopting TDM. Similar to table 1, only a part of the parameters are listed in table 2. A complete working state table can be formed by configuring corresponding parameters.
[0047] If the ratio of the synchronous time-division multiplexing time section Ttd to the single time cycle T is greater than 0 and no greater than 1, the synchronous time-division multiplexing time section Ttd may be divided into a plurality of synchronous time-division multiplexing time subsections based on the working state corresponding to table 2 to build a one-to-one correspondence between a plurality of MAC protocol users adopting TDM and the plurality of synchronous time-division multiplexing time subsections with each user accessing to a channel and transmitting information in its own time subsection; wherein the channels are one-to-one correspondence to the plurality of synchronous time-division multiplexing time subsections. As shown in
[0048] Taking one MAC protocol user adopting the TDM corresponding to one protocol type as an example, protocol types of any two MAC protocol users in the n MAC protocol users (U1-Un) adopting TDM may be the same or may be different. For example, the protocol type of the user U1 is TD-SCDMA, the protocol type of the user U2 is WCDMA, the protocol type of the user U3 is 802.16, . . . , and the protocol type of the user Un is TD-SCDMA and so on.
[0049] Regarding the statistical time-division multiplexing time section Tstd, the user accessing mechanism in this time section cannot be agreed in advance. Only when the user finishes using the channel, the information can be known, such as the name of the user accessing the channel, accessing time length and so on. As shown in
[0050] In the specific implementation, a state machine model is used in the HTDM to switch among working states of the plurality of synchronous time-division multiplexing time subsections Ttd1 to Ttdn. The state machine model is further used to switch among working states of the synchronous time-division multiplexing time section Ttd and the statistical time-division multiplexing time section Tstd. Specifically, as shown in
[0051] It can be known from above content that working states of the state machine correspond to time sections divided in the single time cycle. In the specific implementation, a counter and a state machine controller may further defined within the communication chip. By building a correspondence between the time sections (i.e. working states) and count values of the counter, the counter may send an interrupt request to the state machine controller at a special time during value increasing or value decreasing process of the counter so as to switch among the working states.
[0052] Referring to
[0053] When Count is no less than 0 and less than C1, the state machine works in time section Ttd1 which corresponds to working state S1;
[0054] When Count is no less than C1 and less than C2, the state machine works in time section Ttd2 which corresponds to working state S2;
[0055] When Count is no less than C2 and less than C3, the state machine works in time section Ttd3 which corresponds to working state S3;
[0056] When Count is no less than C3 and less than C4, the state machine works in time section Tstd which corresponds to working state S4.
[0057] The time sections Ttd1-Ttd3 together constitute the synchronous time-division multiplexing time section Ttd. The counter sends a first interrupt request to the state machine controller when the count value Count=0 (i.e. when it start to count) to enter into the state S1; the counter sends a second interrupt request to the state machine controller when the count value Count=C1 to the state machine controller to enter into the state S2; the counter sends a third interrupt request to the state machine controller when the count value Count=C2 to the state machine controller to enter into the state S3; the counter sends a fourth interrupt request to the state machine controller when the count value Count=C3 to the state machine controller to enter into the state S4; and the counter sends a fifth interrupt request to the state machine controller when the count value Count=C4 to the state machine controller to indicate the completeness of the work in a time cycle, and the counter will be reset to be zero for next new time cycle.
[0058] In specific implementation, the state machine can be realized in combination with a linked list. The linked list is a common and important data structure which allocates storage dynamically. It is capable of opening memory unit according to requirements. The linked list has a head pointer variable, and it stores an address. This address points to an element. Each element in the linked list is called a node. Each node includes two parts: one is the actual data to be used by the user, and the other is an address of the next node. Therefore, the head pointer points to a first element, the first element points to a second element, . . . , until the last element, the last element does not point to any other element, and the last element is called list end. NULL (blank address) is stored in the address part of the last element. The linked list is ended at the last element. It is noted that the last element may point to the first element according to specific application requirements, to form a circulated working mode.
[0059] Referring to
[0060] When controlling the state machine, the state machine controller obtains the head address As of the linked list of corresponding event cycle, and obtains the address, such as Atd1, of the next node according to the node (i.e. register) to which the head address As points. In one aspect, the state machine controller further obtains working parameters corresponding to the synchronous time-division multiplexing time subsection Ttd1 according to the node (i.e. register) to which the address Atd1 points, including count value of the counter corresponding to the time subsection Ttd1, name of the MAC protocol user working in time subsection Ttd1, and MAC protocol type and so on. In another aspect, the state machine controller obtains the address of the next node, such as Atd2, according to the node (i.e. register) to which the address Atd1 points, and switches to the address of the next node when the count value corresponding to the time subsection Ttd1 ends and hence enters into a working state corresponding to the next time subsection. Other circumstances are similar to the above circumstance, which will not be repeated here.
[0061] It is noted that the last address, such as Astd, to which the address pointer points, points to the next node address, i.e. the head address As. In addition, since STDM cannot definitely control the MAC protocol user in communication, working parameters of the node (i.e. register) to which the address Astd points does not include the information of the MAC protocol user adopting the STDM (such as name of the MAC protocol user working in time section Tstd, MAC protocol type and so on).
[0062]
[0063] Regarding the 4) point above, channel accessing mechanism for the MAC protocol user adopting STDM includes: collision avoidance and collision detection. Referring to
[0064] I, Collision Avoidance (Such as 802.11)
[0065] When the bus is idle, the counter for each protocol user generates a random number, and begins to subtract gradually until some user comes to 0 first, and the bus is detected again to determine whether it is still idle. If the bus is idle, the user with the counter first coming to 0 sends data. Accordingly, other protocol users can only receiving data at this time.
[0066] II, Collision Detection (Such as 802.3)
[0067] When the bus is idle, a plurality of protocol users send data via the bus. When a collision is detected (i.e. a plurality of protocol users send data via the bus at the same time), the random delay T.sub.delay is generated, and the counter begins to subtract gradually. When T.sub.delay=0, the user sends data via the bus, that to say, the user with the shortest delay will first occupy the bus. When the bus is occupied by the user with the shortest delay, the master of the control center will broadcast to other users that the channel has been occupied and they only receive data.
[0068] In specific implementation, the information transmitting mode of the MAC protocol user adopting TDM or the MAC protocol user adopting the STDM is simplex, half duplex or duplex. If the information transmitting mode is half duplex, the MAC protocol user uses only one channel for both transmitting and receiving data. If the information transmitting mode is duplex, the MAC protocol user uses different channels for transmitting and receiving data.
[0069] In specific implementation, the synchronous time-division multiplexing time section Ttd and/or the statistical time-division multiplexing time section Tstd correspond to a plurality of channels with different frequency ranges. As shown in
[0070] In summary, in the technical solution of the present disclosure, the time cycle can be freely configured and the working state table corresponding to the length of the single time cycle for the HTDM can be formulated according to user's communication requirements. Further, ratios of the synchronous time-division multiplexing time section Ttd and the statistical time-division multiplexing time section Tstd in each time cycle can be freely configured according to the working state table to realize that the MAC protocol user adopting TDM can access the channel and transmit information in the synchronous time-division multiplexing time section Ttd, and/or the MAC protocol user adopting STDM can access the channel and transmit information in the statistical time-division multiplexing time section Tstd. The present disclosure effectively solves the technical problem in the prior art that the TDM and STDM are not compatible with each other in one wireless communication chip which hence cannot satisfy user's requirements on real-time communication and high channel utilization rate. The present disclosure realizes compatibility of the above two communication methods TDM and STDM on one wireless communication chip, and satisfies user's requirements on real-time communication and a high channel utilization rate.
[0071] In addition, according to communication requirements, the communication mechanism (specifically the time-division mechanism and frequency-division mechanism) of the sub-channels corresponding to any time subsection are configurable, and the channels can be allocated to the users in terms of sub-channel, so that the channel utilization rate is improved while user's requirement on information transmission is satisfied at the same time.
[0072] Although the present disclosure has been described with preferred embodiments, one of ordinary skill in the art may make modifications and amendments to these embodiments under the teaching of above creative concept. Accordingly, the appended claims are intended to be interpreted as including the above preferred embodiment and all the modifications and amendments that fall into the scope of the invention.
[0073] Obviously, various modifications and variations will become apparent to those skilled in the art to which the present invention pertains without departing from the spirit and scope of the disclosure. If these modifications and variants belong to the scope of the appended claims and its equivalent technical solutions, the present invention is intended to include these modifications and variants.