TWI730760B - Electronic device and transmission scheduling method the same - Google Patents

Electronic device and transmission scheduling method the same Download PDF

Info

Publication number
TWI730760B
TWI730760B TW109115710A TW109115710A TWI730760B TW I730760 B TWI730760 B TW I730760B TW 109115710 A TW109115710 A TW 109115710A TW 109115710 A TW109115710 A TW 109115710A TW I730760 B TWI730760 B TW I730760B
Authority
TW
Taiwan
Prior art keywords
wireless communication
communication module
power supply
microcontroller
electronic device
Prior art date
Application number
TW109115710A
Other languages
Chinese (zh)
Other versions
TW202143777A (en
Inventor
陳俊志
吳建逸
金煒傑
魏正宇
吳政遠
Original Assignee
和碩聯合科技股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 和碩聯合科技股份有限公司 filed Critical 和碩聯合科技股份有限公司
Priority to TW109115710A priority Critical patent/TWI730760B/en
Application granted granted Critical
Publication of TWI730760B publication Critical patent/TWI730760B/en
Publication of TW202143777A publication Critical patent/TW202143777A/en

Links

Images

Landscapes

  • Transceivers (AREA)

Abstract

An electronic device and transmission scheduling method the same are provided. The transmission scheduling method is used in the electronic device including at least a first wireless communication module, a second wireless communication module and a microcontroller. The microcontroller is coupled to the first wireless communication module and the second wireless communication module, and the transmission scheduling method includes the following steps. When there is data waiting to be sent by the second wireless communication module and the first wireless communication is receiving, the microcontroller determines whether the supply current supplied by the electronic device to the second wireless communication module is greater than a default value. If yes, the microcontroller controls the second wireless communication module not to send the data until the first wireless communication module finishes receiving. If not, the microcontroller controls the second wireless communication module to send the data simultaneously while the first wireless communication module is receiving.

Description

電子裝置及其傳輸排程方法Electronic device and its transmission scheduling method

本發明涉及一種電子裝置及其傳輸排程方法,且特別涉及一種為多個無線通訊模組(Wireless Communication Modules)共存的電子裝置及其傳輸排程方法。The present invention relates to an electronic device and a transmission scheduling method thereof, and more particularly to an electronic device coexisting with multiple wireless communication modules (Wireless Communication Modules) and a transmission scheduling method thereof.

隨著物聯網(Internet of Things,IoT)的興起,不同的無線通訊技術(例如,Wi-Fi、Bluetooth、ZigBee和ANT+等)已能夠集成在同一電子裝置中。然而,除了Wi-Fi和Bluetooth有解決頻道干擾的方案外,對於其它不同的無線通訊技術,其傳輸協定(Communications Protocols)卻沒有共存設計,以至於若其中一個無線通訊模組(例如,以下簡稱為TX)以高輸出功率進行發射時,會干擾同一電子裝置內的其它正進行接收的無線通訊模組(例如,以下簡稱為RX),且過大的功率長時間下來也可能損壞同一電子裝置內的其它無線通訊模組。With the rise of the Internet of Things (IoT), different wireless communication technologies (for example, Wi-Fi, Bluetooth, ZigBee, ANT+, etc.) can be integrated in the same electronic device. However, in addition to Wi-Fi and Bluetooth, which have solutions to channel interference, for other different wireless communication technologies, their communications protocols (Communications Protocols) do not have a coexistence design, so that if one of the wireless communication modules (for example, hereinafter referred to as For TX) when transmitting at high output power, it will interfere with other receiving wireless communication modules in the same electronic device (for example, RX for short), and excessive power may damage the same electronic device for a long time. Other wireless communication modules.

基於這種無線通訊模組共存的干擾問題,現有的傳輸排程方法則秉持「分時多工」的原則而讓TX等待直到RX完成接收後才進行發射。也就是說,當RX正進行接收時,依據現有的傳輸排程方法,TX會一直工作在最大輸出功率且效率不佳。然而,在某些情況下,TX是有機會可與RX同時進行傳輸,不需要避開正進行接收的RX。因此,如何設計出一種可使這種無線通訊模組共存更有效率的電子裝置及其傳輸排程方法則成為本領域的一項重要課題。Based on this interference problem caused by the coexistence of wireless communication modules, the existing transmission scheduling method adheres to the principle of "time division multiplexing" and makes the TX wait until the RX completes the reception before transmitting. That is to say, when the RX is receiving, according to the existing transmission scheduling method, the TX will always work at the maximum output power and the efficiency is not good. However, in some cases, TX has the opportunity to transmit at the same time as RX, and there is no need to avoid receiving RX. Therefore, how to design an electronic device and a transmission scheduling method that enables such wireless communication modules to coexist more efficiently has become an important issue in this field.

有鑑於此,本發明實施例提供一種傳輸排程方法,用於至少包括第一無線通訊模組、第二無線通訊模組和微控制器的電子裝置中。微控制器耦接第一無線通訊模組和第二無線通訊模組,且所述傳輸排程方法包括如下步驟。當有資料等待被第二無線通訊模組發送且第一無線通訊模組正進行接收件時,透過微控制器判斷電子裝置所供給第二無線通訊模組的電源電流是否大於預設值。若是,透過微控制器控制第二無線通訊模組不發送資料直到第一無線通訊模組結束接收。若不是,透過微控制器控制第二無線通訊模組在第一無線通訊模組正進行接收時同時發送資料。In view of this, an embodiment of the present invention provides a transmission scheduling method used in an electronic device including at least a first wireless communication module, a second wireless communication module, and a microcontroller. The microcontroller is coupled to the first wireless communication module and the second wireless communication module, and the transmission scheduling method includes the following steps. When there is data waiting to be sent by the second wireless communication module and the first wireless communication module is receiving the data, the microcontroller determines whether the power current supplied by the second wireless communication module by the electronic device is greater than the preset value. If yes, the second wireless communication module is controlled by the microcontroller not to send data until the first wireless communication module finishes receiving. If not, the second wireless communication module is controlled by the microcontroller to simultaneously send data while the first wireless communication module is receiving.

除此之外,本發明實施例另提供一種電子裝置,至少包括第一無線通訊模組、第二無線通訊模組和微控制器。微控制器耦接第一無線通訊模組和第二無線通訊模組。當有資料等待被第二無線通訊模組發送且第一無線通訊模組正進行接收時,微控制器判斷電子裝置所供給第二無線通訊模組的電源電流是否大於預設值。若是,微控制器控制第二無線通訊模組不發送資料直到第一無線通訊模組結束接收。若不是,微控制器控制第二無線通訊模組在第一無線通訊模組正進行接收時同時發送資料。In addition, an embodiment of the present invention further provides an electronic device, which includes at least a first wireless communication module, a second wireless communication module, and a microcontroller. The microcontroller is coupled to the first wireless communication module and the second wireless communication module. When there is data waiting to be sent by the second wireless communication module and the first wireless communication module is receiving, the microcontroller determines whether the power current supplied by the electronic device to the second wireless communication module is greater than a preset value. If yes, the microcontroller controls the second wireless communication module not to send data until the first wireless communication module finishes receiving. If not, the microcontroller controls the second wireless communication module to simultaneously send data while the first wireless communication module is receiving.

為使能更進一步瞭解本發明的特徵及技術內容,請參閱以下有關本發明的詳細說明與圖式,然而所提供的圖式僅用於提供參考與說明,並非用來對本發明加以限制。In order to further understand the features and technical content of the present invention, please refer to the following detailed description and drawings about the present invention. However, the provided drawings are only for reference and description, and are not used to limit the present invention.

首先,請同時參閱圖1和圖2,圖1是本發明實施例所提供的電子裝置的功能方塊圖,圖2是本發明實施例所提供的傳輸排程方法的步驟流程圖。需說明的是,圖2的傳輸排程方法可用於圖1的電子裝置1中,但本發明不限制圖1的電子裝置1只能夠執行圖2的傳輸排程方法。如圖1所示,電子裝置1至少包括第一無線通訊模組11、第二無線通訊模組12和微控制器13。在本實施例中,第一無線通訊模組11和第二無線通訊模組12將採用不同無線通訊技術進行傳輸。First, please refer to FIG. 1 and FIG. 2 at the same time. FIG. 1 is a functional block diagram of an electronic device provided by an embodiment of the present invention, and FIG. 2 is a step flow chart of a transmission scheduling method provided by an embodiment of the present invention. It should be noted that the transmission scheduling method of FIG. 2 can be used in the electronic device 1 of FIG. 1, but the present invention does not limit the electronic device 1 of FIG. 1 to only execute the transmission scheduling method of FIG. 2. As shown in FIG. 1, the electronic device 1 at least includes a first wireless communication module 11, a second wireless communication module 12 and a microcontroller 13. In this embodiment, the first wireless communication module 11 and the second wireless communication module 12 will use different wireless communication technologies for transmission.

例如,第一無線通訊模組11可為ZigBee無線通訊模組,且第二無線通訊模組12可為Wi-Fi無線通訊模組,但本發明不以此為限制。另外,微控制器13耦接第一無線通訊模組11和第二無線通訊模組12,並且是把中央處理器、記憶體和各種輸入輸出介面等都整合在積體電路上的微型電腦,但本發明不限制微控制器13的具體實現方式。為了是克服現有技術所提的上述缺陷,圖2的傳輸排程方法就必須限定在有資料等待被第二無線通訊模組12發送且第一無線通訊模組11正進行接收下開始執行,但本發明亦不限制有資料等待被第二無線通訊模組12發送的具體實現方式,以及第一無線通訊模組11正進行接收的具體實現方式。For example, the first wireless communication module 11 may be a ZigBee wireless communication module, and the second wireless communication module 12 may be a Wi-Fi wireless communication module, but the present invention is not limited thereto. In addition, the microcontroller 13 is coupled to the first wireless communication module 11 and the second wireless communication module 12, and is a microcomputer that integrates a central processing unit, memory, and various input and output interfaces on an integrated circuit. However, the present invention does not limit the specific implementation of the microcontroller 13. In order to overcome the above-mentioned drawbacks in the prior art, the transmission scheduling method of FIG. 2 must be limited to start execution when there is data waiting to be sent by the second wireless communication module 12 and the first wireless communication module 11 is receiving it. The present invention also does not limit the specific implementation manner in which data is waiting to be sent by the second wireless communication module 12, and the specific implementation manner in which the first wireless communication module 11 is receiving.

如圖2所示,當有資料等待被第二無線通訊模組12發送且第一無線通訊模組11正進行接收時,電子裝置1執行步驟S210,透過微控制器13判斷電子裝置1所供給第二無線通訊模組12的電源電流Is是否大於預設值。若是,電子裝置1執行步驟S220,透過微控制器13控制第二無線通訊模組12不發送資料直到第一無線通訊模組11結束接收;若不是,電子裝置1執行步驟S230,透過微控制器13控制第二無線通訊模組12在第一無線通訊模組11正進行接收時同時發送資料。至於微控制器13如何控制第二無線通訊模組12不發送資料直到第一無線通訊模組11結束接收將在下文中藉由其它段落說明,因此其細節就先不再多加贅述。As shown in FIG. 2, when there is data waiting to be sent by the second wireless communication module 12 and the first wireless communication module 11 is receiving, the electronic device 1 executes step S210, and the microcontroller 13 determines the supply of the electronic device 1 Whether the power current Is of the second wireless communication module 12 is greater than a preset value. If yes, the electronic device 1 executes step S220 and controls the second wireless communication module 12 through the microcontroller 13 not to send data until the first wireless communication module 11 finishes receiving; if not, the electronic device 1 executes step S230, through the microcontroller 13 13 controls the second wireless communication module 12 to simultaneously send data while the first wireless communication module 11 is receiving. As for how the microcontroller 13 controls the second wireless communication module 12 not to send data until the first wireless communication module 11 finishes receiving, it will be explained in other paragraphs below, so the details will not be described again.

另一方面,可請參閱圖3A和圖3B,圖3A和圖3B是圖1的電子裝置1所進行圖2的傳輸排程方法的時序示意圖。如圖3A和圖3B所示,當有資料等待被第二無線通訊模組12發送且第一無線通訊模組11正進行接收時,微控制器13判斷電子裝置1所供給第二無線通訊模組12的電源電流Is是否大於預設值,即步驟S210。然後,當判斷電源電流Is大於預設值時,微控制器13控制第二無線通訊模組12不發送資料直到第一無線通訊模組11結束接收,或者是說,如圖3A所示,微控制器13讓第二無線通訊模組12等待直到第一無線通訊模組11結束接收後才進行發射。實務上,微控制器13能夠藉由收到第一無線通訊模組11所傳的信號RX_END而知道第一無線通訊模組11結束接收,但本發明不以此為限制。On the other hand, please refer to FIGS. 3A and 3B. FIGS. 3A and 3B are timing diagrams of the transmission scheduling method of FIG. 2 performed by the electronic device 1 of FIG. 1. As shown in FIGS. 3A and 3B, when there is data waiting to be sent by the second wireless communication module 12 and the first wireless communication module 11 is receiving, the microcontroller 13 determines that the second wireless communication module provided by the electronic device 1 Whether the power supply current Is of the group 12 is greater than the preset value is step S210. Then, when it is determined that the power supply current Is is greater than the preset value, the microcontroller 13 controls the second wireless communication module 12 not to send data until the first wireless communication module 11 finishes receiving, or in other words, as shown in FIG. 3A, the microcontroller 13 The controller 13 makes the second wireless communication module 12 wait until the first wireless communication module 11 finishes receiving before transmitting. In practice, the microcontroller 13 can know that the first wireless communication module 11 has finished receiving by receiving the signal RX_END transmitted by the first wireless communication module 11, but the present invention is not limited to this.

相對地,如圖3B所示,當判斷電源電流Is不大於預設值時,微控制器13讓第二無線通訊模組12在第一無線通訊模組11正進行接收時同時進行發射。由此可知,相較於現有技術,本發明並不完全秉持「分時多工」的原則,而是因為較大的電源電流Is具有較高的輸出功率,所以本發明通過量測供給第二無線通訊模組12的電源電流Is來辨別第二無線通訊模組12的輸出功率,並且根據電源電流Is的大小,決定讓第二無線通訊模組12等待直到第一無線通訊模組11結束接收後才進行發射,或者讓第二無線通訊模組12可與第一無線通訊模組11同時進行傳輸,即步驟S220或步驟S230,使得這種無線通訊模組共存更有效率。In contrast, as shown in FIG. 3B, when it is determined that the power supply current Is is not greater than the preset value, the microcontroller 13 allows the second wireless communication module 12 to simultaneously transmit while the first wireless communication module 11 is receiving. It can be seen that, compared with the prior art, the present invention does not completely adhere to the principle of "time division multiplexing", but because the larger power supply current Is has a higher output power, the present invention supplies the second power through measurement. The power current Is of the wireless communication module 12 is used to identify the output power of the second wireless communication module 12, and according to the size of the power current Is, it is determined to let the second wireless communication module 12 wait until the first wireless communication module 11 finishes receiving The transmission is performed later, or the second wireless communication module 12 can transmit simultaneously with the first wireless communication module 11, namely, step S220 or step S230, so that the coexistence of such wireless communication modules is more efficient.

實務上,如圖1所示,第一無線通訊模組11和第二無線通訊模組12可分別至少包括收發器(Transceiver)和前端模組(Front End Module,FEM),且前端模組更可至少包括功率放大器(Power Amplifier,PA)。然而,由於各類無線通訊模組的運作原理已為本技術領域中具有通常知識者所習知,因此有關第一無線通訊模組11和第二無線通訊模組12的細節就不再多加贅述。需說明的是,因為前端模組和功率放大器的主要功能為增益和輸出功率,且功率放大器不僅可做為前端模組的一部分,它也可獨立受電,所以前述電源電流Is為電子裝置1的電源供應器14所供給第二無線通訊模組12的前端模組(或功率放大器)122的電流。In practice, as shown in FIG. 1, the first wireless communication module 11 and the second wireless communication module 12 may respectively include at least a transceiver (Transceiver) and a front end module (Front End Module, FEM), and the front end module is more It may include at least a power amplifier (Power Amplifier, PA). However, since the operating principles of various wireless communication modules are already known to those skilled in the art, the details of the first wireless communication module 11 and the second wireless communication module 12 will not be repeated. . It should be noted that because the main functions of the front-end module and the power amplifier are gain and output power, and the power amplifier can not only be used as a part of the front-end module, it can also receive power independently, so the aforementioned power current Is is the value of the electronic device 1. The power supply 14 supplies current to the front-end module (or power amplifier) 122 of the second wireless communication module 12.

電子裝置1更可至少包括電流感測器(Current Sensor)15,耦接於微控制器13、電源供應器14和第二無線通訊模組12的前端模組(或功率放大器)122間,用來量測電源供應器14所供給第二無線通訊模組12的前端模組(或功率放大器)122的電源電流Is。也就是說,在硬體設計上,本發明可通過在供給前端模組(或功率放大器)122的電流路徑上增加電流感測器15,以量測當前的電源電流Is作為判斷的參數。這樣一來,本發明將不需要在射頻(Radio Frequency,RF)路徑上增加任何額外元件,也就不會增加射頻路徑上的損失。The electronic device 1 may further include at least a current sensor (Current Sensor) 15, which is coupled between the microcontroller 13, the power supply 14 and the front-end module (or power amplifier) 122 of the second wireless communication module 12 for use To measure the power current Is of the front-end module (or power amplifier) 122 of the second wireless communication module 12 supplied by the power supply 14. That is to say, in terms of hardware design, the present invention can add a current sensor 15 to the current path supplied to the front-end module (or power amplifier) 122 to measure the current power supply current Is as a judgment parameter. In this way, the present invention will not need to add any additional components on the radio frequency (RF) path, and will not increase the loss on the radio frequency path.

另外,既然前端模組(或功率放大器)122是第二無線通訊模組12進行發射的主要元件,且其運作又必須得仰賴電源供應器14供電,所以在本實施例中,微控制器13更耦接電源供應器14,並根據電源電流Is與預設值的比較結果,控制電源供應器14關閉或開啟。由此可知,當比較結果指示電源電流Is大於預設值時,微控制器13控制電源供應器14關閉,以控制第二無線通訊模組12不發送資料,並且在第一無線通訊模組11結束接收後,微控制器13控制電源供應器14重新開啟,以控制第二無線通訊模組12發送資料。In addition, since the front-end module (or power amplifier) 122 is the main component of the second wireless communication module 12 for transmission, and its operation must rely on the power supply 14 to supply power, so in this embodiment, the microcontroller 13 It is further coupled to the power supply 14 and controls the power supply 14 to be turned off or turned on according to the comparison result of the power current Is and the preset value. It can be seen that when the comparison result indicates that the power supply current Is is greater than the preset value, the microcontroller 13 controls the power supply 14 to turn off to control the second wireless communication module 12 not to send data, and the first wireless communication module 11 After the reception is completed, the microcontroller 13 controls the power supply 14 to restart to control the second wireless communication module 12 to send data.

值得一提的是,雖然本實施例透過微控制器13控制作為TX的第二無線通訊模組12,但針對作為RX,即正在進行接收的第一無線通訊模組11,電子裝置1還可至少包括電源供應器16和電流感測器17。電源供應器16用來提供電源電流Is2給第一無線通訊模組11的前端模組(或功率放大器)112。電流感測器17耦接於微控制器13、電源供應器16和第一無線通訊模組11的前端模組(或功率放大器)112間,用來量測電源供應器16所供給第一無線通訊模組11的前端模組(或功率放大器)112的電源電流Is2。It is worth mentioning that although the microcontroller 13 controls the second wireless communication module 12 as TX in this embodiment, the electronic device 1 can also be used for the first wireless communication module 11 as RX, that is, receiving. At least a power supply 16 and a current sensor 17 are included. The power supply 16 is used to provide the power current Is2 to the front-end module (or power amplifier) 112 of the first wireless communication module 11. The current sensor 17 is coupled between the microcontroller 13, the power supply 16 and the front-end module (or power amplifier) 112 of the first wireless communication module 11, and is used to measure the first wireless communication supplied by the power supply 16 The power supply current Is2 of the front-end module (or power amplifier) 112 of the communication module 11.

如前所述,基於供給前端模組(或功率放大器)112對應不同輸出功率的電源電流Is,本實施例可建立一個電源電流Is與輸出功率對照圖表,使得微控制器13根據電流感測器15所量測到的電源電流Is,辨別出第二無線通訊模組12的輸出功率。請注意,雖然讓第二無線通訊模組12與第一無線通訊模組11同時進行傳輸會犧牲到第一無線通訊模組11的效能,但本實施例也可通過經驗法則得出在供給前端模組(或功率放大器)112多少的電源電流Is下,第二無線通訊模組12不會干擾或損壞到第一無線通訊模組11。因此,前述預設值可為電源電流Is不使得第二無線通訊模組12干擾或損壞到第一無線通訊模組11的上限值。As mentioned above, based on the power supply current Is corresponding to different output powers supplied to the front-end module (or power amplifier) 112, this embodiment can establish a power supply current Is and output power comparison chart, so that the microcontroller 13 is based on the current sensor 15 The measured power current Is, the output power of the second wireless communication module 12 is identified. Please note that although allowing the second wireless communication module 12 and the first wireless communication module 11 to transmit at the same time will sacrifice the performance of the first wireless communication module 11, this embodiment can also be obtained through empirical rules With the power supply current Is of the module (or power amplifier) 112, the second wireless communication module 12 will not interfere with or damage the first wireless communication module 11. Therefore, the aforementioned preset value may be the upper limit value of the power supply current Is not causing the second wireless communication module 12 to interfere with or damage the first wireless communication module 11.

也就是說,一旦電源電流Is高於這上限,例如80mA,且如果這時候第一無線通訊模組11正進行接收的話,供電給前端模組(或功率放大器)112的電源供應器14將被關閉,直到第一無線通訊模組11完成接收後才重新開啟。相對地,在其它實施例中,電源供應器14的關閉與否也可由第一無線通訊模組11的工作頻率所決定,但此修改或變更並不悖離本發明的技術構想。另外,為了能夠讓微控制器13知道第一無線通訊模組11是否正在進行接收,本發明進一步提供了一種實施方式。In other words, once the power supply current Is is higher than the upper limit, for example 80mA, and if the first wireless communication module 11 is receiving at this time, the power supply 14 supplying power to the front-end module (or power amplifier) 112 will be Turn off, and turn on again after the first wireless communication module 11 finishes receiving. In contrast, in other embodiments, whether the power supply 14 is turned off or not can also be determined by the operating frequency of the first wireless communication module 11, but this modification or change does not depart from the technical concept of the present invention. In addition, in order to let the microcontroller 13 know whether the first wireless communication module 11 is receiving, the present invention further provides an implementation manner.

如圖1所示,第一無線通訊模組11的收發器111可輸出一接收致能信號RX_EN到微控制器13的通用型輸入/輸出(GPIO)引腳,且微控制器13能藉由讀取接收致能信號RX_EN的準位而判斷第一無線通訊模組11是否正在進行接收。舉例來說,收發器111所輸出的接收致能信號RX_EN為高邏輯準位「1」代表第一無線通訊模組11正在進行接收,而接收致能信號RX_EN為低邏輯準位「0」代表第一無線通訊模組11沒有在進行接收,但本發明不以此為限制。因此,應當理解的是,圖3A中的信號RX_END更能夠用低邏輯準位「0」的接收致能信號RX_EN來取代,但此舉亦不影響本發明的實現,總而言之,本發明的傳輸排程方法可基於不同應用來做修改或變更。As shown in FIG. 1, the transceiver 111 of the first wireless communication module 11 can output a reception enable signal RX_EN to the general-purpose input/output (GPIO) pin of the microcontroller 13, and the microcontroller 13 can use The level of the receiving enable signal RX_EN is read to determine whether the first wireless communication module 11 is receiving. For example, if the receive enable signal RX_EN output by the transceiver 111 is at a high logic level "1", it means that the first wireless communication module 11 is receiving, and the receive enable signal RX_EN is at a low logic level "0", which means The first wireless communication module 11 is not receiving, but the present invention is not limited thereto. Therefore, it should be understood that the signal RX_END in FIG. 3A can be replaced by the receive enable signal RX_EN with a low logic level "0", but this does not affect the implementation of the present invention. In short, the transmission row of the present invention The programming method can be modified or changed based on different applications.

請一併參閱圖4,圖4是本發明另一實施例所提供的傳輸排程方法的步驟流程圖。相較於圖2的傳輸排程方法,圖4的傳輸排程方法不限定在第一無線通訊模組11正進行接收下開始執行。如圖4所示,當有資料等待被第二無線通訊模組12發送時,電子裝置1先執行步驟S410,透過微控制器13判斷電子裝置1所供給第二無線通訊模組12的電源電流Is是否大於預設值,並且不論判斷結果為是或否,電子裝置1都會再透過微控制器13根據接收致能信號RX_EN的準位,判斷第一無線通訊模組11是否正在進行接收,即執行步驟S420或步驟S430。需注意的是,在其他實施例中,步驟410的順序與步驟420及步驟430的順序可以互相調換。也就是說,第一無線通訊模組11可先判斷是否在進行接收後,再判斷第二無線通訊模組12的電源電流Is是否大於預設值。Please also refer to FIG. 4, which is a flowchart of the steps of a transmission scheduling method according to another embodiment of the present invention. Compared with the transmission scheduling method of FIG. 2, the transmission scheduling method of FIG. 4 is not limited to start execution while the first wireless communication module 11 is receiving. As shown in FIG. 4, when there is data waiting to be sent by the second wireless communication module 12, the electronic device 1 first executes step S410, and determines the power current supplied by the electronic device 1 to the second wireless communication module 12 through the microcontroller 13 Whether Is is greater than the preset value, and regardless of whether the judgment result is yes or no, the electronic device 1 will then use the microcontroller 13 to determine whether the first wireless communication module 11 is receiving according to the level of the receiving enable signal RX_EN, that is, Perform step S420 or step S430. It should be noted that in other embodiments, the order of step 410 and the order of step 420 and step 430 can be interchanged. In other words, the first wireless communication module 11 may first determine whether it is receiving, and then determine whether the power current Is of the second wireless communication module 12 is greater than a preset value.

也就是說,當電源電流Is大於預設值,且第一無線通訊模組11正在進行接收時,電子裝置1執行步驟S440,透過微控制器13控制第二無線通訊模組12不發送資料直到第一無線通訊模組11結束接收。相對地,當電源電流Is不大於預設值,且第一無線通訊模組11正在進行接收時,電子裝置1執行步驟S450,透過微控制器13控制第二無線通訊模組12在第一無線通訊模組11正進行接收時同時發送資料。另外,當電源電流Is大於預設值,且第一無線通訊模組11不在進行接收時,或者當電源電流Is不大於預設值,且第一無線通訊模組11不在進行接收時,電子裝置1都會執行步驟S460,透過微控制器13控制第二無線通訊模組12發送資料。That is, when the power supply current Is is greater than the preset value and the first wireless communication module 11 is receiving, the electronic device 1 executes step S440 to control the second wireless communication module 12 through the microcontroller 13 not to send data until The first wireless communication module 11 ends the reception. In contrast, when the power supply current Is is not greater than the preset value and the first wireless communication module 11 is receiving, the electronic device 1 executes step S450 to control the second wireless communication module 12 to operate in the first wireless communication module through the microcontroller 13 The communication module 11 simultaneously sends data while receiving. In addition, when the power current Is is greater than the preset value and the first wireless communication module 11 is not receiving, or when the power current Is is not greater than the preset value and the first wireless communication module 11 is not receiving, the electronic device 1 will execute step S460 to control the second wireless communication module 12 to send data through the microcontroller 13.

由此可知,在圖1的電子裝置1所執行圖4的傳輸排程方法中,微控制器13根據電源電流Is與預設值的比較結果以及接收致能信號RX_EN的準位,控制電源供應器14關閉或開啟。舉例來說,可請一併參閱圖5,圖5是圖4的傳輸排程方法用表格形式來呈現電源供應器14關閉或開啟的狀態的示意圖。請注意,圖5的實施例同樣假設接收致能信號RX_EN為高邏輯準位「1」代表第一無線通訊模組11正在進行接收,而接收致能信號RX_EN為低邏輯準位「0」代表第一無線通訊模組11沒有在進行接收,但本發明不以此為限制。因此,如圖5所示,當電源電流Is超過限制,即電源電流Is大於預設值,且接收致能信號RX_EN為高邏輯準位「1」時,微控制器13控制電源供應器14關閉,以控制第二無線通訊模組12不發送資料,並且在第一無線通訊模組11結束接收後,微控制器13才控制電源供應器14重新開啟,以控制第二無線通訊模組12發送資料。由於各項細節已如同前述內容所述,故於此就不再多加贅述。It can be seen that in the transmission scheduling method of FIG. 4 executed by the electronic device 1 of FIG. 1, the microcontroller 13 controls the power supply according to the comparison result of the power supply current Is and the preset value and the level of the receiving enable signal RX_EN. The device 14 is turned off or turned on. For example, please refer to FIG. 5 altogether. FIG. 5 is a schematic diagram of the transmission scheduling method of FIG. 4 showing the state of the power supply 14 being turned off or on in the form of a table. Please note that the embodiment of FIG. 5 also assumes that the receive enable signal RX_EN is at a high logic level "1", which means that the first wireless communication module 11 is receiving, and the receive enable signal RX_EN is at a low logic level "0", which means The first wireless communication module 11 is not receiving, but the present invention is not limited thereto. Therefore, as shown in FIG. 5, when the power supply current Is exceeds the limit, that is, the power supply current Is is greater than the preset value, and the reception enable signal RX_EN is at a high logic level "1", the microcontroller 13 controls the power supply 14 to turn off , To control the second wireless communication module 12 not to send data, and after the first wireless communication module 11 finishes receiving, the microcontroller 13 controls the power supply 14 to turn on again to control the second wireless communication module 12 to send data. Since the details are as described in the previous content, I will not repeat them here.

綜上所述,本發明實施例提供一種電子裝置及其傳輸排程方法。所述電子裝置及其傳輸排程方法是根據電源電流的大小,決定讓第二無線通訊模組等待至第一無線通訊模組完成接收後才進行發射,或者讓第二無線通訊模組可與第一無線通訊模組同時進行傳輸,使得這種無線通訊模組共存更有效率。除此之外,在硬體設計上,所述電子裝置是通過在供給第二無線通訊模組的前端模組(或功率放大器)的電流路徑上增加電流感測器,以量測當前的電源電流作為判斷的參數。這樣一來,所述電子裝置將不需要在射頻路徑上增加任何額外元件,也就不會增加射頻路徑上的損失。In summary, the embodiments of the present invention provide an electronic device and a transmission scheduling method thereof. The electronic device and its transmission scheduling method are based on the size of the power supply current, decide to let the second wireless communication module wait until the first wireless communication module completes reception before transmitting, or allow the second wireless communication module to communicate with The first wireless communication module transmits at the same time, which makes the coexistence of such wireless communication modules more efficient. In addition, in terms of hardware design, the electronic device measures the current power supply by adding a current sensor to the current path for the front-end module (or power amplifier) of the second wireless communication module. The current is used as a parameter for judgment. In this way, the electronic device will not need to add any additional components on the radio frequency path, and will not increase the loss on the radio frequency path.

以上所提供的內容僅為本發明的優選可行實施例,並非因此侷限本發明的申請專利範圍,所以凡是運用本發明說明書及圖式內容所做的等效技術變化,均包含於本發明的申請專利範圍內。The content provided above is only the preferred and feasible embodiments of the present invention, and does not limit the scope of the patent application of the present invention. Therefore, all equivalent technical changes made by using the description and schematic content of the present invention are included in the application of the present invention. Within the scope of the patent.

1:電子裝置 11:第一無線通訊模組 12:第二無線通訊模組 13:微控制器 14,16:電源供應器 15,17:電流感測器 111, 121:收發器 112, 122:前端模組(或功率放大器) Is, Is2:電源電流 RX_END:信號 RX_EN:接收致能信號 S210~S230, S410~S460:流程步驟1: Electronic device 11: The first wireless communication module 12: The second wireless communication module 13: Microcontroller 14,16: power supply 15,17: Current sensor 111, 121: Transceiver 112, 122: Front-end module (or power amplifier) Is, Is2: power supply current RX_END: signal RX_EN: Receive enable signal S210~S230, S410~S460: process steps

圖1是本發明實施例所提供的電子裝置的功能方塊圖。FIG. 1 is a functional block diagram of an electronic device provided by an embodiment of the present invention.

圖2是本發明實施例所提供的傳輸排程方法的步驟流程圖。Fig. 2 is a flow chart of the steps of a transmission scheduling method provided by an embodiment of the present invention.

圖3A和圖3B是圖1的電子裝置所進行圖2的傳輸排程方法的時序示意圖。3A and 3B are time sequence diagrams of the transmission scheduling method of FIG. 2 performed by the electronic device of FIG. 1.

圖4是本發明另一實施例所提供的傳輸排程方法的步驟流程圖。FIG. 4 is a flowchart of the steps of a transmission scheduling method provided by another embodiment of the present invention.

圖5是圖4的傳輸排程方法用表格形式來呈現電源供應器關閉或開啟的狀態的示意圖。FIG. 5 is a schematic diagram of the transmission scheduling method of FIG. 4 showing a power supply off or on state in the form of a table.

S210~S230:流程步驟 S210~S230: Process steps

Claims (12)

一種傳輸排程方法,用於至少包括一第一無線通訊模組、一第二無線通訊模組和一微控制器的電子裝置中,該微控制器耦接該第一無線通訊模組和該第二無線通訊模組,且該傳輸排程方法包括: 當有資料等待被該第二無線通訊模組發送且該第一無線通訊模組正進行接收時,透過該微控制器判斷該電子裝置所供給該第二無線通訊模組的一電源電流是否大於一預設值; 若是,透過該微控制器控制該第二無線通訊模組不發送該資料直到該第一無線通訊模組結束接收;以及 若不是,透過該微控制器控制該第二無線通訊模組在該第一無線通訊模組正進行接收時同時發送該資料。 A transmission scheduling method used in an electronic device including at least a first wireless communication module, a second wireless communication module, and a microcontroller, the microcontroller being coupled to the first wireless communication module and the The second wireless communication module, and the transmission scheduling method includes: When there is data waiting to be sent by the second wireless communication module and the first wireless communication module is receiving, it is determined by the microcontroller whether a power supply current supplied by the electronic device to the second wireless communication module is greater than A preset value; If yes, control the second wireless communication module through the microcontroller not to send the data until the first wireless communication module finishes receiving; and If not, control the second wireless communication module through the microcontroller to simultaneously send the data while the first wireless communication module is receiving. 如請求項1所述的傳輸排程方法,其中該第一無線通訊模組和該第二無線通訊模組分別至少包括一收發器和一前端模組,該前端模組更至少包括一功率放大器,且該電源電流為該電子裝置的一電源供應器所供給該第二無線通訊模組的該前端模組或該功率放大器的電流。The transmission scheduling method according to claim 1, wherein the first wireless communication module and the second wireless communication module respectively include at least a transceiver and a front-end module, and the front-end module further includes at least a power amplifier And the power current is the current supplied by a power supply of the electronic device to the front-end module or the power amplifier of the second wireless communication module. 如請求項2所述的傳輸排程方法,更包括: 透過一電流感測器量測該電源供應器所供給該第二無線通訊模組的該前端模組或該功率放大器的該電流,其中該電流感測器耦接於該微控制器、該電源供應器和該第二無線通訊模組的該前端模組或該功率放大器之間。 The transmission scheduling method described in claim 2 further includes: Measure the current supplied to the front-end module or the power amplifier of the second wireless communication module by the power supply through a current sensor, wherein the current sensor is coupled to the microcontroller and the power supply Between the supplier and the front-end module or the power amplifier of the second wireless communication module. 如請求項3所述的傳輸排程方法,更包括: 根據該電源電流與該預設值的一比較結果,透過該微控制器控制該電源供應器關閉或開啟。 The transmission scheduling method described in claim 3 further includes: According to a comparison result of the power supply current and the preset value, the power supply is controlled to be turned off or turned on through the microcontroller. 如請求項4所述的傳輸排程方法,其中當該比較結果指示該電源電流大於該預設值時,透過該微控制器控制該電源供應器關閉,以控制該第二無線通訊模組不發送該資料,並且在該第一無線通訊模組結束接收後,透過該微控制器控制該電源供應器重新開啟,以控制該第二無線通訊模組發送該資料。The transmission scheduling method according to claim 4, wherein when the comparison result indicates that the power supply current is greater than the preset value, the microcontroller is used to control the power supply to be turned off to control the second wireless communication module not to Send the data, and after the first wireless communication module finishes receiving, control the power supply to turn on again through the microcontroller to control the second wireless communication module to send the data. 如請求項1所述的傳輸排程方法,其中該預設值為該電源電流不使得該第二無線通訊模組干擾或損壞該第一無線通訊模組的上限值。The transmission scheduling method according to claim 1, wherein the preset value is an upper limit value at which the power supply current does not cause the second wireless communication module to interfere with or damage the first wireless communication module. 一種電子裝置,至少包括: 一第一無線通訊模組; 一第二無線通訊模組;以及 一微控制器,耦接該第一無線通訊模組和該第二無線通訊模組,其中當有資料等待被該第二無線通訊模組發送且該第一無線通訊模組正進行接收時,該微控制器判斷該電子裝置所供給該第二無線通訊模組的一電源電流是否大於一預設值; 若是,該微控制器控制該第二無線通訊模組不發送該資料直到該第一無線通訊模組結束接收;以及 若不是,該微控制器控制該第二無線通訊模組在該第一無線通訊模組正進行接收時同時發送該資料。 An electronic device including at least: A first wireless communication module; A second wireless communication module; and A microcontroller coupled to the first wireless communication module and the second wireless communication module, wherein when there is data waiting to be sent by the second wireless communication module and the first wireless communication module is receiving, The microcontroller determines whether a power current supplied by the electronic device to the second wireless communication module is greater than a preset value; If yes, the microcontroller controls the second wireless communication module not to send the data until the first wireless communication module finishes receiving; and If not, the microcontroller controls the second wireless communication module to simultaneously send the data while the first wireless communication module is receiving. 如請求項7所述的電子裝置,其中該第一無線通訊模組和該第二無線通訊模組分別至少包括一收發器和一前端模組,該前端模組更至少包括一功率放大器,且該電源電流為該電子裝置的一電源供應器所供給該第二無線通訊模組的該前端模組或該功率放大器的電流。The electronic device according to claim 7, wherein the first wireless communication module and the second wireless communication module respectively include at least a transceiver and a front-end module, and the front-end module further includes at least a power amplifier, and The power supply current is the current supplied by a power supply of the electronic device to the front-end module or the power amplifier of the second wireless communication module. 如請求項8所述的電子裝置,其中該電子裝置更至少包括: 一電流感測器,耦接於該微控制器、該電源供應器和該第二無線通訊模組的該前端模組或該功率放大器之間,該電流感測器用來量測該電源供應器所供給該第二無線通訊模組的該前端模組或該功率放大器的該電流。 The electronic device according to claim 8, wherein the electronic device further includes at least: A current sensor coupled between the microcontroller, the power supply, and the front-end module of the second wireless communication module or the power amplifier, the current sensor is used to measure the power supply The current supplied to the front-end module or the power amplifier of the second wireless communication module. 如請求項9所述的電子裝置,其中該微控制器更耦接該電源供應器,並根據該電源電流與該預設值的一比較結果,控制該電源供應器關閉或開啟。The electronic device according to claim 9, wherein the microcontroller is further coupled to the power supply, and controls the power supply to be turned off or on according to a comparison result of the power supply current and the preset value. 如請求項10所述的電子裝置,其中當該比較結果指示該電源電流大於該預設值時,該微控制器控制該電源供應器關閉,以控制該第二無線通訊模組不發送該資料,並且在該第一無線通訊模組結束接收後,該微控制器控制該電源供應器重新開啟,以控制該第二無線通訊模組發送該資料。The electronic device according to claim 10, wherein when the comparison result indicates that the power supply current is greater than the preset value, the microcontroller controls the power supply to turn off, so as to control the second wireless communication module not to send the data And after the first wireless communication module finishes receiving, the microcontroller controls the power supply to turn on again to control the second wireless communication module to send the data. 如請求項7所述的電子裝置,其中該預設值為該電源電流不使得該第二無線通訊模組干擾或損壞該第一無線通訊模組的上限值。The electronic device according to claim 7, wherein the preset value is an upper limit value at which the power supply current does not cause the second wireless communication module to interfere with or damage the first wireless communication module.
TW109115710A 2020-05-12 2020-05-12 Electronic device and transmission scheduling method the same TWI730760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109115710A TWI730760B (en) 2020-05-12 2020-05-12 Electronic device and transmission scheduling method the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109115710A TWI730760B (en) 2020-05-12 2020-05-12 Electronic device and transmission scheduling method the same

Publications (2)

Publication Number Publication Date
TWI730760B true TWI730760B (en) 2021-06-11
TW202143777A TW202143777A (en) 2021-11-16

Family

ID=77517207

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109115710A TWI730760B (en) 2020-05-12 2020-05-12 Electronic device and transmission scheduling method the same

Country Status (1)

Country Link
TW (1) TWI730760B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060062146A1 (en) * 2004-09-16 2006-03-23 Nokia Corporation Scheduling data transmissions in a wireless communications network
US20070066222A1 (en) * 2005-09-16 2007-03-22 Xiao-Jiao Tao Methods, electronic devices, and computer program products for coordinating bluetooth and wireless local area network communication
US20080253352A1 (en) * 2005-09-30 2008-10-16 Cambridge Silicon Radio Limited Communication in Dual Protocol Environments
US20150109984A1 (en) * 2010-04-02 2015-04-23 Mediatek Inc. Methods for coordinating transmission and reception operations of radio modules in a communications apparatus and communication apparatuses utilizing the same
US20160249351A1 (en) * 2013-09-11 2016-08-25 Zte Corporation Data Transmission Scheduling Method, Device and System

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060062146A1 (en) * 2004-09-16 2006-03-23 Nokia Corporation Scheduling data transmissions in a wireless communications network
US20120238318A1 (en) * 2004-09-16 2012-09-20 Sisvel International S.A. Scheduling data transmissions in a wireless communications network
US20070066222A1 (en) * 2005-09-16 2007-03-22 Xiao-Jiao Tao Methods, electronic devices, and computer program products for coordinating bluetooth and wireless local area network communication
US20080253352A1 (en) * 2005-09-30 2008-10-16 Cambridge Silicon Radio Limited Communication in Dual Protocol Environments
US20150109984A1 (en) * 2010-04-02 2015-04-23 Mediatek Inc. Methods for coordinating transmission and reception operations of radio modules in a communications apparatus and communication apparatuses utilizing the same
US20160249351A1 (en) * 2013-09-11 2016-08-25 Zte Corporation Data Transmission Scheduling Method, Device and System

Also Published As

Publication number Publication date
TW202143777A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
US20190380100A1 (en) Method and apparatus for power autoscaling in a resource-constrained network
US7072326B2 (en) Network connectivity system and method
TWI651941B (en) Method for testing data packet signal transceiver using coordinated transmitted data packet signal power
JP4901828B2 (en) Transceiver, RF transceiver, communication system, and control packet transmission method
US20220303896A1 (en) Intelligent power saving
US9674788B2 (en) Devices and methods for transmit concurrency by conditioned signal combining
WO2018152709A1 (en) Communication method and mobile terminal
WO2018231550A1 (en) Slave-to-slave communication in i3c bus topology
US10271327B2 (en) Wireless communication device and wireless communication system
CN106535308B (en) A kind of method and system of intelligent control WIFI transmission ranges
JP5989077B2 (en) Wireless communication apparatus and RF-BB state control method thereof
US20200310780A1 (en) Firmware upgrade for wireless stereo earbuds
WO2019089673A1 (en) Shared radio arbitration
US20080065916A1 (en) Transitioning of a Port in a Communications System from an Active State to a Standby State
TWI730760B (en) Electronic device and transmission scheduling method the same
US8391135B1 (en) Method and apparatus for channel interference mitigation for wireless communications
RU2480930C2 (en) Data transfer device
WO2016161547A1 (en) Method and apparatus for transmitting indication message to be received
WO2018214353A1 (en) Method for automatically adjusting the rate of usb, and wireless router
TWI447410B (en) System of testing multiple rf modules and method thereof
US10587295B1 (en) Wireless receiver with automatic gain control optimization for sensitivity and distortion
JP6419714B2 (en) RFIC configuration for reducing antenna trace loss
US20210092620A1 (en) Communication apparatus and test method thereof
US7555669B2 (en) Timing vector program mechanism
TWI525893B (en) Method and system for intra-chip waveguide communication