TWI694684B - Wireless communication circuit with scheduling circuit in mac layer - Google Patents
Wireless communication circuit with scheduling circuit in mac layer Download PDFInfo
- Publication number
- TWI694684B TWI694684B TW107130206A TW107130206A TWI694684B TW I694684 B TWI694684 B TW I694684B TW 107130206 A TW107130206 A TW 107130206A TW 107130206 A TW107130206 A TW 107130206A TW I694684 B TWI694684 B TW I694684B
- Authority
- TW
- Taiwan
- Prior art keywords
- circuit
- media access
- access control
- control layer
- data
- Prior art date
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本發明涉及無線通信電路,尤指一種可提升資料傳輸量的無線通信電路。 The invention relates to a wireless communication circuit, in particular to a wireless communication circuit which can increase the data transmission amount.
許多無線通信電路採用載波偵測多重存取(carrier sense multiple access,CSMA)的機制來做為媒體存取控制協議,以實現時分多重存取(time-division multiple access,TDMA)的傳輸目的。在傳統的無線通信電路中,微處理器需要頻繁地讀取媒體存取控制層電路中的暫存器,才能得知媒體存取控制層電路的資料傳輸進度。 Many wireless communication circuits use a carrier sense multiple access (CSMA) mechanism as a media access control protocol to achieve time-division multiple access (TDMA) transmission purposes. In the traditional wireless communication circuit, the microprocessor needs to frequently read the temporary memory in the circuit of the media access control layer to know the progress of data transmission in the circuit of the media access control layer.
然而,前述微處理器頻繁地讀取媒體存取控制層電路中的暫存器的動作,會增加微處理器與媒體存取控制層電路之間的信息溝通量,因而降低了無線通信電路的整體傳輸效能。 However, the aforementioned microprocessor frequently reads the register in the circuit of the media access control layer, which will increase the amount of information communication between the microprocessor and the circuit of the media access control layer, thus reducing the wireless communication circuit. Overall transmission performance.
有鑒於此,如何改善無線通信電路的整理傳輸效能,實為有待解决的問題。 In view of this, how to improve the transmission performance of wireless communication circuits is really a problem to be solved.
本發明提供一種無線通信電路的實施例,其包含:物理層電路,設置成通過天線與其他無線通信裝置進行通信;微處理器,設置成產生要傳送給其他無線通信裝置的資料幀;以及媒體存取控制層電路,該媒體存取控制層電路包含:媒體存取控制層儲存電路,用於儲存資料佇列;媒體存取控制層控制電路,耦接於該物理層電路、該微處理器、與該媒體存取控制層儲存電路,設置成將該微處理器產生的該資料幀,暫存在該資料佇列中;以及排程電路,耦接於該媒體 存取控制層儲存電路與該媒體存取控制層控制電路,設置成控制該媒體存取控制層控制電路將該資料佇列中儲存的資料傳送給該物理層電路的排程。 The present invention provides an embodiment of a wireless communication circuit, including: a physical layer circuit configured to communicate with other wireless communication devices through an antenna; a microprocessor configured to generate data frames to be transmitted to other wireless communication devices; and media An access control layer circuit, the media access control layer circuit includes: a media access control layer storage circuit for storing data queues; a media access control layer control circuit, coupled to the physical layer circuit and the microprocessor , And the storage circuit of the media access control layer, configured to temporarily store the data frame generated by the microprocessor in the data queue; and a scheduling circuit, coupled to the media The access control layer storage circuit and the media access control layer control circuit are configured to control the scheduling of the media access control layer control circuit to transmit the data stored in the data queue to the physical layer circuit.
本發明另提供一種無線通信電路的實施例,其包含:物理層電路,設置成通過天線與其他無線通信裝置進行通信;微處理器,設置成產生要傳送給其他無線通信裝置的資料幀與相關的動作幀;以及媒體存取控制層電路,該媒體存取控制層電路包含:媒體存取控制層儲存電路,用於儲存資料佇列與管理佇列;媒體存取控制層控制電路,耦接於該物理層電路、該微處理器、與該媒體存取控制層儲存電路,設置成將該微處理器產生的該資料幀與相關的動作幀,分別暫存在該資料佇列與該管理佇列中;排程電路,耦接於該媒體存取控制層儲存電路與該媒體存取控制層控制電路,設置成間歇性檢查該資料佇列與該管理佇列的內容,以控制該媒體存取控制層控制電路將該資料佇列與該管理佇列中儲存的資料傳送給該物理層電路的排程;以及媒體存取控制層暫存器,耦接於該媒體存取控制層控制電路與該微處理器,設置成儲存該媒體存取控制層電路的運作狀態值,可供該微處理器據以判斷該媒體存取控制層電路的運作狀態;其中,該媒體存取控制層控制電路將該資料佇列與該管理佇列中儲存的資料傳送給該物理層電路的時序,是由該排程電路控制,而不是由該微處理器控制,倘若該排程電路判定該資料佇列中沒有需要傳送的資料,則該排程電路會控制該媒體存取控制層控制電路將該無線通信電路的網路佔用權提前釋放給其他無線通信裝置。 The present invention also provides an embodiment of a wireless communication circuit, which includes: a physical layer circuit configured to communicate with other wireless communication devices through an antenna; a microprocessor configured to generate data frames and related data to be transmitted to other wireless communication devices Action frame; and a media access control layer circuit, the media access control layer circuit includes: a media access control layer storage circuit for storing data queues and management queues; a media access control layer control circuit, coupled The physical layer circuit, the microprocessor, and the media access control layer storage circuit are configured to temporarily store the data frame and the related action frame generated by the microprocessor in the data queue and the management queue, respectively Row; scheduling circuit, coupled to the media access control layer storage circuit and the media access control layer control circuit, configured to intermittently check the contents of the data queue and the management queue to control the media storage The fetch control layer control circuit sends the data queue and the data stored in the management queue to the schedule of the physical layer circuit; and the media access control layer register is coupled to the media access control layer control circuit And the microprocessor are arranged to store the operating state value of the media access control layer circuit, which can be used by the microprocessor to judge the operating state of the media access control layer circuit; wherein, the media access control layer controls The timing of the circuit transmitting the data queue and the data stored in the management queue to the physical layer circuit is controlled by the scheduling circuit, not by the microprocessor, if the scheduling circuit determines that the data queue If there is no data to be transmitted in the row, the scheduling circuit will control the media access control layer control circuit to release the network occupation right of the wireless communication circuit to other wireless communication devices in advance.
上述實施例的優點之一,是媒體存取控制層電路將資料傳送給該物理層電路的排程,是由媒體存取控制層電路中的排程電路來控制,而不是由媒體存取控制層電路外部的微處理器來控制,因此能够大幅降低微處理器與媒體存取控制層電路之間的溝通負擔,進而提升無線通信電路的整體傳輸效能。 One of the advantages of the above embodiments is that the scheduling of the media access control layer circuit to transmit data to the physical layer circuit is controlled by the scheduling circuit in the media access control layer circuit, not the media access control It is controlled by the microprocessor outside the layer circuit, so it can greatly reduce the communication burden between the microprocessor and the media access control layer circuit, thereby improving the overall transmission performance of the wireless communication circuit.
上述實施例的另一優點,是利用媒體存取控制層電路中的排程電路控制媒體存取控制層控制電路的資料傳輸時序,可提高無線通信電路傳送資料給其他無線通信裝置的時序正確性。 Another advantage of the above embodiment is that the scheduling circuit in the media access control layer circuit is used to control the data transmission timing of the media access control layer control circuit, which can improve the timing accuracy of the wireless communication circuit transmitting data to other wireless communication devices. .
本發明的其他優點將搭配以下的說明和圖式進行更詳細的解說。 Other advantages of the present invention will be explained in more detail with the following description and drawings.
100:無線通信電路(wireless communication circuit) 100: wireless communication circuit (wireless communication circuit)
102~106:無線通信裝置(wireless communication device) 102~106: wireless communication device (wireless communication device)
108:天線(antenna) 108: antenna
110:物理層電路(physical-layer circuit) 110: physical-layer circuit
120:微處理器(micro-controller) 120: Microprocessor (micro-controller)
130:儲存電路(storage circuit) 130: storage circuit
140:資料匯流排(data bus) 140: data bus
150:媒體存取控制層電路(MAC-layer circuit) 150: MAC-layer circuit
151:媒體存取控制層儲存電路(MAC-layer storage circuit) 151: MAC-layer storage circuit
152:資料佇列(data queue) 152: data queue (data queue)
153:管理佇列(management queue) 153: management queue (management queue)
154:媒體存取控制層控制電路(MAC-layer control circuit) 154: MAC-layer control circuit
155:排程電路(scheduling circuit) 155: Scheduling circuit
156:媒體存取控制層暫存器(MAC-layer register) 156: MAC-layer register
圖1為本發明一實施例的無線通信電路簡化後的功能方框圖。 FIG. 1 is a simplified functional block diagram of a wireless communication circuit according to an embodiment of the present invention.
以下將配合相關圖式來說明本發明的實施例。在這些圖式中,相同的標號表示相同或類似的元件或方法流程。 The embodiments of the present invention will be described below in conjunction with related drawings. In these drawings, the same reference numerals indicate the same or similar elements or method flows.
圖1為本發明一實施例的無線通信電路100簡化後的功能方框圖。無線通信電路100可通過天線108與多個無線通信裝置(例如,圖1中的示例性無線通信裝置102~106)以無線傳輸方式進行資料通信。
FIG. 1 is a simplified functional block diagram of a
無線通信電路100採用載波偵測多重存取(CSMA)的機制來做為媒體存取控制協議,以實現時分多重存取(TDMA)的傳輸目的。無線通信電路100與無線信號傳輸範圍內的其他無線通信裝置102~106可共同構成一個無線區域網路(wireless local area network,WLAN),並各自扮演無線區域網路當中的一個網路節點。
The
在運作時,無線通信電路100與無線通信裝置102~106可採用合適的令牌傳遞(token passing)機制,來决定具有網路佔用權(occupation)的網路節點。一般而言,擁有令牌(token)的網路節點才有權使用網路介質來進行資料傳輸。採用令牌傳遞機制可以極大化無線區域網路的頻寬使用率,以充分利用網路的頻寬。
During operation, the
如圖1所示,無線通信電路100包含有物理層電路110、微處理器120、儲存電路130、資料匯流排140、以及媒體存取控制層電路150。
As shown in FIG. 1, the
微處理器120設置成產生要傳送給其他無線通信裝置102~106的資料幀(data frame)與相關的動作幀(action frame)。前述的動作幀可包含與令牌傳遞機制有關的令牌請求(token request)信息與
令牌釋出(token release)信息。
The
儲存電路130通過資料匯流排140耦接於微處理器120,設置成儲存微處理器120運作所需的軟體程式與相關資料。
The
媒體存取控制層電路150通過資料匯流排140耦接於微處理器120,設置成處理微處理器120所產生的資料幀與相關的動作幀,並在適當的時間點將這些資料幀與相關的動作幀以合適的封包形式傳送給物理層電路110進行處理。
The media access
物理層電路110耦接於媒體存取控制層電路150,設置成將媒體存取控制層電路150傳來的封包轉換成適當的類比信號,並通過天線108傳送給其他的無線通信裝置102~106。
The
實作上,前述的無線通信裝置102~106皆可採用具有無線網路通信能力的各種合適裝置來實現,例如,智慧手機、電腦、平板電腦、筆記型電腦等等。另外,無線通信電路100中的物理層電路110、微處理器120、儲存電路130、以及資料匯流排140,皆可用各種既有的合適電路來實現。
In practice, the aforementioned wireless communication devices 102-106 can be implemented with various suitable devices having wireless network communication capabilities, such as smart phones, computers, tablet computers, notebook computers, and so on. In addition, the
如圖1所示,本實施例中的媒體存取控制層電路150包含媒體存取控制層儲存電路151、媒體存取控制層控制電路154、排程電路155、以及媒體存取控制層暫存器156。
As shown in FIG. 1, the media access
媒體存取控制層儲存電路151被區分成至少二個區塊用於分別儲存資料佇列152與管理佇列153,其中,資料佇列152還包括有分別對應於不同的服務品質(Quality of Service,QoS)的複數個資料子佇列。
The
媒體存取控制層控制電路154耦接於物理層電路110、微處理器120、與媒體存取控制層儲存電路151,設置成將微處理器120產生的資料幀暫存在資料佇列152中,並將微處理器120產生的動作幀暫存在管理佇列153中。
The media access control
排程電路155耦接於媒體存取控制層儲存電路151與媒體存取控制層
控制電路154,設置成控制媒體存取控制層控制電路154將資料佇列152與管理佇列153中儲存的資料傳送給物理層電路110的排程。
The
媒體存取控制層暫存器156耦接於媒體存取控制層控制電路154與微處理器120,設置成儲存媒體存取控制層電路150的運作狀態值。媒體存取控制層控制電路154在運作的過程中,可將媒體存取控制層電路150的運作狀態(例如資料傳輸進度),以適當的資料格式寫入媒體存取控制層暫存器156中,使得微處理器120可藉由讀取媒體存取控制層暫存器156的內容,來得知媒體存取控制層電路150的相關運作狀態。
The media access
實作上,媒體存取控制層電路150中的媒體存取控制層儲存電路151、媒體存取控制層控制電路154、以及媒體存取控制層暫存器156,皆可用各種既有的合適電路來實現。排程電路155則可利用具有資料讀取能力與判斷能力的數位電路來實現。
In practice, the media access control
另外,前述無線通信電路100中的不同功能方塊可分別用不同的電路來實現,也可整合在一單一電路晶片中。
In addition, the different functional blocks in the aforementioned
請注意,在無線通信電路100中,媒體存取控制層電路150將相關的資料幀和/或動作幀傳送給物理層電路110進行處理的時序,並不是由微處理器120來控制,而是由媒體存取控制層電路150中的排程電路155來控制。
Please note that in the
在一實施例中,由於媒體存取控制層電路150將相關的資料幀和/或動作幀傳送給物理層電路110進行處理的時序,並不是由微處理器120來控制,故可以將微處理器120進行上述控制所需的軟體程序進行移除。也就是,在此實施例中,儲存於儲存電路130中的軟體程序不包括有微處理器120控制相關的資料幀和/或動作幀傳送給物理層電路110進行處理的時序的相關軟體程序。
In an embodiment, because the timing of the media access
在運作時,排程電路155會間歇性地檢查資料佇列152與管理佇列153的內容,以判斷是否有需要傳遞給其他無線通信裝置的資料,
並依據判斷的結果來控制媒體存取控制層控制電路154將資料佇列152與管理佇列153中儲存的資料傳送給物理層電路110的時序。例如,排程電路155可定期檢查資料佇列152與管理佇列153中要傳送給個別無線通信裝置的剩餘資料量。
During operation, the
倘若排程電路155判定資料佇列152和/或管理佇列153中有需要傳送給特定無線通信裝置的資料,則排程電路155會在無線通信電路100具有網路佔用權時,控制媒體存取控制層控制電路154將資料佇列152和/或管理佇列153中的資料傳送給物理層電路110進行處理,並通過天線108傳送給相應的無線通信裝置,例如,前述無線通信裝置102~106的其中一個或多個裝置。
If the
另一方面,倘若排程電路155判定資料佇列152與管理佇列153中沒有需要傳送給其他無線通信裝置的資料,則排程電路155會控制媒體存取控制層控制電路154將無線通信電路100的網路佔用權提前釋出給其他無線通信裝置使用。
On the other hand, if the
如此一來,便可在無線通信電路100無需傳送資料給其他無線通信裝置102~106的情况下,縮短無線通信電路100佔用網路介質的時間,以使其他無線通信裝置102~106得以提早取得網路介質的使用權。
In this way, when the
由前述說明可知,媒體存取控制層控制電路154將資料佇列152與管理佇列153中儲存的資料傳送給物理層電路110的排程及時序,是由排程電路155控制,而不是由微處理器120控制。
As can be seen from the foregoing description, the schedule and timing at which the media access control
因此,微處理器120不需要頻繁地讀取媒體存取控制層暫存器156,所以能够大幅降低微處理器120與媒體存取控制層電路150之間的溝通負擔,進而提升無線通信電路100的整體傳輸效能。
Therefore, the
另外,由於媒體存取控制層電路150中的排程電路155可直接讀取並檢查資料佇列152與管理佇列153中的資料,所以能够精確且即時得知媒體存取控制層控制電路154的資料傳輸進度。因此,利用排程
電路155來控制媒體存取控制層控制電路154的資料傳輸時序,可提高無線通信電路100傳送資料給其他無線通信裝置的時序正確性,避免資料的傳送端與接收端出現不同步的情况。
In addition, since the
請注意,前述的電路架構只是本發明的一實施例,並非局限本發明的實際實施方式。例如,在某些實施例中,前述的資料匯流排140可用其他合適的資料及指令傳輸機制來取代。
Please note that the aforementioned circuit architecture is only an embodiment of the present invention and does not limit the actual implementation of the present invention. For example, in some embodiments, the
又例如,在另一實施例中,排程電路155可耦接於媒體存取控制層暫存器156,並可藉由讀取媒體存取控制層暫存器156的內容,來得知媒體存取控制層控制電路154的資料傳輸進度。在此情况下,排程電路155便無需檢查資料佇列152與管理佇列153的內容,所以也無需耦接於媒體存取控制層儲存電路151。
For another example, in another embodiment, the
在說明書及申請專利範圍中使用了某些詞彙來指稱特定的元件,而本領域內的技術人員可能會用不同的名詞來稱呼同樣的元件。本說明書及申請專利範圍並不以名稱的差異來做為區分元件的方式,而是以元件在功能上的差異來做為區分的基準。在說明書及申請專利範圍中所提及的「包含」為開放式的用語,應解釋成「包含但不限定於」。另外,「耦接」一詞在此包含任何直接及間接的連接手段。因此,若文中描述第一元件耦接於第二元件,則代表第一元件可通過電性連接或無線傳輸、光學傳輸等信號連接方式而直接地連接於第二元件,或通過其它元件或連接手段間接地電性或信號連接至第二元件。 Certain words are used in the specification and patent application scope to refer to specific elements, and those skilled in the art may use different terms to refer to the same element. This specification and the scope of patent application do not use the difference in names as a means of distinguishing elements, but the difference in function of elements as a basis for distinguishing. "Inclusion" mentioned in the description and the scope of patent application is an open term and should be interpreted as "including but not limited to." In addition, the term "coupled" here includes any direct and indirect connection means. Therefore, if it is described that the first element is coupled to the second element, it means that the first element can be directly connected to the second element through electrical connection, wireless transmission, optical transmission, or other signal connection, or through other elements or connections The means is indirectly electrically or signally connected to the second element.
在說明書中所使用的「和/或」的描述方式,包含所列舉的其中一個項目或多個項目的任意組合。另外,除非說明書中特別指明,否則任何單數格的用語都同時包含複數格的含義。 The description method of "and/or" used in the specification includes any one of the listed items or any combination of multiple items. In addition, unless otherwise specified in the specification, any singular expressions also include the plural meaning.
以上僅為本發明的較佳實施例,凡依本發明請求項所做的等效變化與修改,皆應屬本發明的涵蓋範圍。 The above are only preferred embodiments of the present invention, and any equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.
100:無線通信電路 100: wireless communication circuit
102~106:無線通信裝置 102~106: wireless communication device
108:天線 108: antenna
110:物理層電路 110: Physical layer circuit
120:微處理器 120: Microprocessor
130:儲存電路 130: storage circuit
140:資料匯流排 140: data bus
150:媒體存取控制層電路 150: Media access control layer circuit
151:媒體存取控制層儲存電路 151: Media access control layer storage circuit
152:資料佇列 152: Data Queue
153:管理佇列 153: Management Queue
154:媒體存取控制層控制電路 154: Media access control layer control circuit
155:排程電路 155: Schedule circuit
156:媒體存取控制層暫存器 156: Media access control layer register
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107130206A TWI694684B (en) | 2018-08-29 | 2018-08-29 | Wireless communication circuit with scheduling circuit in mac layer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107130206A TWI694684B (en) | 2018-08-29 | 2018-08-29 | Wireless communication circuit with scheduling circuit in mac layer |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202010275A TW202010275A (en) | 2020-03-01 |
TWI694684B true TWI694684B (en) | 2020-05-21 |
Family
ID=70766371
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107130206A TWI694684B (en) | 2018-08-29 | 2018-08-29 | Wireless communication circuit with scheduling circuit in mac layer |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI694684B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI829470B (en) * | 2022-12-13 | 2024-01-11 | 大陸商星宸科技股份有限公司 | Media access control circuit and packet management method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100278062A1 (en) * | 2009-04-09 | 2010-11-04 | Qualcomm Incorporated | Mac architectures for wireless communications using multiple physical layers |
US20120236789A1 (en) * | 2006-03-31 | 2012-09-20 | Qualcomm Incorporated | Memory management for high speed media access control |
-
2018
- 2018-08-29 TW TW107130206A patent/TWI694684B/en active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120236789A1 (en) * | 2006-03-31 | 2012-09-20 | Qualcomm Incorporated | Memory management for high speed media access control |
US20100278062A1 (en) * | 2009-04-09 | 2010-11-04 | Qualcomm Incorporated | Mac architectures for wireless communications using multiple physical layers |
Also Published As
Publication number | Publication date |
---|---|
TW202010275A (en) | 2020-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108605056B (en) | Unidirectional clock signaling in high speed serial links | |
US6539488B1 (en) | System with a plurality of media access control circuits with a shared memory for storing data and synchronizing data from a clock domain to a host clock domain | |
US7565467B2 (en) | USB hub, USB-compliant apparatus, and communication system | |
US6910092B2 (en) | Chip to chip interface for interconnecting chips | |
US20100188980A1 (en) | Explicit Flow Control in a Gigabit/10 Gigabit Ethernet System | |
US7613849B2 (en) | Integrated circuit and method for transaction abortion | |
US8111623B2 (en) | Node, method and system for control of communication including a buffer | |
US20070047443A1 (en) | Channelized flow control | |
TWI411264B (en) | Non-block network system and packet arbitration method thereof | |
TWI694684B (en) | Wireless communication circuit with scheduling circuit in mac layer | |
US7584307B2 (en) | Direct memory access DMA with positional information and delay time | |
KR20180030985A (en) | Method and system for USB 2.0 bandwidth reservation | |
TW540206B (en) | Apparatus and method for sharing memory using a single ring data bus connection configuration | |
TWI449381B (en) | Communication method and bluetooth device | |
US8732325B2 (en) | System and method for transmitting data | |
CN110875754B (en) | Wireless communication circuit capable of improving data transmission efficiency | |
US6868461B1 (en) | Link layer controller that provides a memory status signal to a network layer system in a communication device | |
US10185606B2 (en) | Scalable autonomic message-transport with synchronization | |
US10701001B2 (en) | Wireless communication circuit with scheduling circuit in MAC layer | |
US7411972B2 (en) | Link layer device with non-linear polling of multiple physical layer device ports | |
CN101594291B (en) | Unblock network system and subgroup arbitration method thereof | |
JP2002185560A (en) | Serial transfer method | |
TWI756444B (en) | Network interface cards, fabric cards, and line cards for loop avoidance in a chassis switch | |
CN103544123A (en) | SDRAM controller and access method for SDRAM memory space | |
JP3043742B1 (en) | Bandwidth generation device for uplink transmission information |