TWI734282B - Method for data transmission and communication system thereof - Google Patents

Method for data transmission and communication system thereof Download PDF

Info

Publication number
TWI734282B
TWI734282B TW108144335A TW108144335A TWI734282B TW I734282 B TWI734282 B TW I734282B TW 108144335 A TW108144335 A TW 108144335A TW 108144335 A TW108144335 A TW 108144335A TW I734282 B TWI734282 B TW I734282B
Authority
TW
Taiwan
Prior art keywords
packet
data transmission
memory
terminal device
time
Prior art date
Application number
TW108144335A
Other languages
Chinese (zh)
Other versions
TW202123636A (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 TW108144335A priority Critical patent/TWI734282B/en
Priority to JP2020082139A priority patent/JP7328177B2/en
Publication of TW202123636A publication Critical patent/TW202123636A/en
Application granted granted Critical
Publication of TWI734282B publication Critical patent/TWI734282B/en

Links

Images

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method for data transmission and a communication system thereof are provided. The communication system includes a server and one or more terminal devices. The method is operated in the terminal device. If the terminal device does not receive any acknowledgment packet within a preset period of time after sending packets to the server, the packets are reserved in a memory of the device. After that, when reaching a predetermined resending time, a controller of the terminal device checks if any packet is reserved in the memory. If the memory reserves the packet to be resent, the packet can be resent with a data rate in the predetermined resending time.

Description

資料傳輸方法與通信系統Data transmission method and communication system

本發明涉及一種資料傳輸方法,特別是關於應用在物聯網通訊中的資料傳輸方法及其通信系統。The invention relates to a data transmission method, in particular to a data transmission method and its communication system used in Internet of Things communication.

在物聯網(IoT)的應用中,最重要的特色之一是其中採用了省電為設計原則的通信系統,物聯網終端裝置一般是採用嵌入式作業系統的電子裝置,如各式感測器、網路裝置、家電設備等。In the application of the Internet of Things (IoT), one of the most important features is the communication system that adopts the design principle of power saving. The terminal device of the Internet of Things is generally an electronic device that uses an embedded operating system, such as various sensors. , Network devices, home appliances, etc.

實現一個物聯網的通信系統,其中所有終端裝置通過網路相連,特別採用了具有低耗能特性的通信協定,常見如長距離低功耗無線網路技術(LoRa)、BLE(Bluetooth Low Energy)、Zigbee等。A communication system for the Internet of Things is realized, in which all terminal devices are connected through the network, especially using a communication protocol with low energy consumption characteristics, such as long-distance low-power wireless network technology (LoRa), BLE (Bluetooth Low Energy) , Zigbee, etc.

但是,當應用在物聯網中的無線通信技術主要考量的是低耗能的需求,則產生的缺點就是當有封包遺失,可能造成封包遺失的原因如裝置所連接的閘道器失效(Gateway is out of service)、裝置離開閘道訊號的涵蓋範圍(Device is out of gateway coverage)、封包碰撞(Signal collision)以及噪聲干擾(Noise interference)等,當習知通信技術缺乏資料重送或是反覆確認封包是否抵達的機制時,也就使得這類通信技術無法擔負傳送重要資料的任務。However, when the wireless communication technology applied in the Internet of Things mainly considers the demand for low energy consumption, the disadvantage is that when a packet is lost, the reason for the loss of the packet may be caused by the failure of the gateway connected to the device (Gateway is Out of service), Device is out of gateway coverage (Device is out of gateway coverage), packet collision (Signal collision) and noise interference (Noise interference), etc., when the conventional communication technology lacks data retransmission or repeated confirmation The mechanism of whether the packet arrives or not makes this kind of communication technology unable to undertake the task of transmitting important data.

說明書公開一種物聯網資料傳輸方法與通信系統,目的之一是解決常用於物聯網的無線通信技術因為封包遺失造成資料不全的問題。The manual discloses a data transmission method and communication system for the Internet of Things, one of the purposes is to solve the problem of incomplete data caused by the loss of packets due to the wireless communication technology commonly used in the Internet of Things.

根據實施例,通信系統包括了運行於一物聯網中的伺服器以及一或多個終端裝置,各終端裝置包括一控制器,以及電性連接此控制器的通信單元、記憶單元以及工作單元。According to the embodiment, the communication system includes a server running in an Internet of Things and one or more terminal devices. Each terminal device includes a controller, and a communication unit, a memory unit, and a working unit electrically connected to the controller.

通信系統運行時,終端裝置產生的信息將通過通信單元轉換為封包,以傳送到伺服器,在所述的資料傳輸方法中,若傳送封包後並未獲得伺服器所回傳的確認封包時,終端裝置中的控制電路將此封包保存在記憶體中。當到達一預定重送時間,控制電路檢查記憶體中是否有任一被保存等待重送的封包,若有,即於此預定重送時間內,以一資料傳輸率以及一次傳送封包的最大資料量重送保存於記憶體中等待重送的封包。When the communication system is running, the information generated by the terminal device will be converted into a packet through the communication unit for transmission to the server. In the data transmission method described, if the confirmation packet returned by the server is not obtained after the packet is transmitted, The control circuit in the terminal device stores this packet in the memory. When a predetermined retransmission time is reached, the control circuit checks whether there is any packet stored in the memory waiting to be retransmitted. If there is, within the predetermined retransmission time, a data transmission rate and the maximum data of the packet will be transmitted at one time Resend the packets stored in the memory waiting to be re-sent.

進一步地,於重送保存於記憶體中等待重送的封包時,系統設定重送的次數上限,若達到此次數上限且仍無法完成重送時,即再次將本次重送的封包保存於記憶體中。Further, when resending a packet stored in the memory waiting to be resent, the system sets the upper limit of the number of resends. If the upper limit of the number of resends is reached and the resending still cannot be completed, the resent packet will be saved again in the In memory.

優選地,終端裝置設有預定重送時間,此為控制電路根據裝置的資料傳輸狀態所設定重送保存於記憶體中的封包的時間。而所述資料傳輸率以及最大資料量的設定為根據終端裝置當下的信噪比(SNR)與接收信號強度指示(RSSI)所決定。Preferably, the terminal device is provided with a predetermined resend time, which is a time set by the control circuit to resend the packet stored in the memory according to the data transmission status of the device. The data transmission rate and the maximum data volume are set according to the current signal-to-noise ratio (SNR) and received signal strength indicator (RSSI) of the terminal device.

進一步地,當決定資料傳輸率,或加上最大資料量,即決定終端裝置中通信單元運行的無線調變參數。Further, when the data transmission rate is determined, or the maximum data amount is added, the wireless modulation parameters for the operation of the communication unit in the terminal device are determined.

為使能更進一步瞭解本發明的特徵及技術內容,請參閱以下有關本發明的詳細說明與圖式,然而所提供的圖式僅用於提供參考與說明,並非用來對本發明加以限制。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.

以下是通過特定的具體實施例來說明本發明的實施方式,本領域技術人員可由本說明書所公開的內容瞭解本發明的優點與效果。本發明可通過其他不同的具體實施例加以施行或應用,本說明書中的各項細節也可基於不同觀點與應用,在不悖離本發明的構思下進行各種修改與變更。另外,本發明的附圖僅為簡單示意說明,並非依實際尺寸的描繪,事先聲明。以下的實施方式將進一步詳細說明本發明的相關技術內容,但所公開的內容並非用以限制本發明的保護範圍。The following are specific specific examples to illustrate the implementation of the present invention. Those skilled in the art can understand the advantages and effects of the present invention from the content disclosed in this specification. The present invention can be implemented or applied through other different specific embodiments, and various details in this specification can also be based on different viewpoints and applications, and various modifications and changes can be made without departing from the concept of the present invention. In addition, the drawings of the present invention are merely schematic illustrations, and are not drawn according to actual dimensions, and are stated in advance. The following embodiments will further describe the related technical content of the present invention in detail, but the disclosed content is not intended to limit the protection scope of the present invention.

應當可以理解的是,雖然本文中可能會使用到“第一”、“第二”、“第三”等術語來描述各種元件或者信號,但這些元件或者信號不應受這些術語的限制。這些術語主要是用以區分一元件與另一元件,或者一信號與另一信號。另外,本文中所使用的術語“或”,應視實際情況可能包括相關聯的列出項目中的任一個或者多個的組合。It should be understood that although terms such as "first", "second", and "third" may be used herein to describe various elements or signals, these elements or signals should not be limited by these terms. These terms are mainly used to distinguish one element from another, or one signal from another signal. In addition, the term "or" used in this document may include any one or a combination of more of the associated listed items depending on the actual situation.

應用在物聯網(Internet of Things,IoT)的無線通信技術常見如長距離低功耗無線網路技術(LoRa)、BLE(Bluetooth Low Energy)、Zigbee等,這類通信技術的通信協定考量了物聯網運作的特性,因此具有低耗能的設計,在通信技術中,為了要達到低耗能,作法之一為利用電源管理的技術讓終端裝置(如感測器、訊號傳輸器、音訊接收器等)在沒有運作時進入休眠,直到滿足一喚醒的條件時;另有方案僅提供傳送小數據封包的頻寬,且避免全時運作;或是精簡當中的通信協定,例如當有封包傳送出去時,並不確認對方是否收到,或是省去重送封包的機制,因此較適合傳送較小數據的應用,或是僅傳送安全性不高的數據封包的物聯網的應用。Wireless communication technologies used in the Internet of Things (IoT) are common, such as long-distance low-power wireless network technology (LoRa), BLE (Bluetooth Low Energy), Zigbee, etc. The communication protocol of this type of communication technology takes things into consideration. Because of the characteristics of network operation, it has a low energy consumption design. In communication technology, in order to achieve low energy consumption, one of the methods is to use power management technology to allow terminal devices (such as sensors, signal transmitters, audio receivers, etc.) Etc.) It goes to sleep when it is not operating until a wake-up condition is met; other solutions only provide bandwidth for transmitting small data packets and avoid full-time operation; or streamline the communication protocol, such as when packets are sent out At this time, it does not confirm whether the other party has received it, or saves the mechanism of re-sending the packet, so it is more suitable for applications that transmit smaller data, or applications of the Internet of Things that only transmit data packets with low security.

然而,這類通信技術的缺點就是封包遺失帶來資料不全的問題,其中可能造成封包遺失的原因如裝置所連接的閘道器失效(Gateway is out of service)、裝置離開閘道訊號的涵蓋範圍(Device is out of gateway coverage)、封包碰撞(Signal collision)以及噪聲干擾(Noise interference)等,當習知通信技術缺乏資料重送或是反覆確認封包是否抵達的機制時,也就使得這類通信技術無法擔負傳送重要資料的任務。However, the disadvantage of this type of communication technology is the problem of incomplete data caused by packet loss. The possible reasons for packet loss are the failure of the gateway to which the device is connected (Gateway is out of service), and the device leaving the coverage of the gateway signal. (Device is out of gateway coverage), packet collision (Signal collision) and noise interference (Noise interference), etc., when the conventional communication technology lacks data retransmission or repeatedly confirm whether the packet arrives or not, it also makes this type of communication Technology cannot take on the task of transmitting important data.

說明書公開一種資料傳輸方法與通信系統,這可以為應用在物聯網的通信技術,但仍不排除可以使用者一般裝置之間的通信需求,其中揭示的資料傳輸方法主要是要解決物聯網常見的通信協定中會因為低耗能的要求而產生無法解決封包遺失的問題,其中主要的解決問題的技術特徵在於將無法確認是否已經送達的數據封包保存在裝置的記憶體中,等待一預定重送的時間再次重送。在此一提的是,所述預定重送時間為終端裝置中的一控制器根據通信單元的資料傳輸狀態所設定重送保存於記憶體中的封包的時間。The manual discloses a data transmission method and communication system, which can be a communication technology applied to the Internet of Things, but it still does not rule out the communication needs between users’ general devices. The data transmission method disclosed therein mainly aims to solve the common problems of the Internet of Things. The communication protocol will cause the problem of packet loss that cannot be solved due to the requirement of low energy consumption. The main technical feature to solve the problem is to save the data packet that cannot be confirmed whether it has been delivered in the memory of the device, and wait for a scheduled retransmission. Time to resend again. It is mentioned here that the predetermined retransmission time is a time set by a controller in the terminal device to retransmit the packet stored in the memory according to the data transmission status of the communication unit.

圖1顯示通信系統的系統架構示意圖。Figure 1 shows a schematic diagram of the system architecture of the communication system.

圖示通信系統涵蓋一個區域網路,設有伺服器15,例如為一個物聯網中的中央伺服器,用於聯繫佈設於各處的終端裝置10,一或多個終端裝置10可以通過閘道器12與伺服器15連線。通信系統中的各終端裝置10例如為此物聯網中的感測器、網路裝置或是其他,終端裝置10的主要控制電路如圖中所示的控制器101,用於控制整個終端裝置10的運作,以及聯繫與控制其他電路元件;設有通信單元102,電性連接控制器101,此為支援特定無線通信協定的通信電路,終端裝置10通過通信單元102與伺服器15連線,並傳輸終端裝置10產生的信息;設有記憶單元103,為終端裝置10運行使用的記憶體,特別也可作為保存封包使用的佇留記憶體;以及工作單元104,此為終端裝置10在物聯網中的運作的功能,可為感測器元件、訊號傳輸器、音訊接收器等,工作單元104運行而產生的信息,如感測信號,可以通過控制器101處理後,經通信單元102轉換為特定通信協定的封包後傳送給伺服器15。The communication system shown in the figure covers a local area network with a server 15, such as a central server in the Internet of Things, which is used to contact terminal devices 10 deployed everywhere. One or more terminal devices 10 can pass through the gateway The server 12 is connected to the server 15. Each terminal device 10 in the communication system is, for example, a sensor, a network device or others in the Internet of Things. The main control circuit of the terminal device 10 is shown in the figure as the controller 101, which is used to control the entire terminal device 10. The operation of the terminal device, as well as the communication and control of other circuit elements; is provided with a communication unit 102, which is electrically connected to the controller 101, which is a communication circuit supporting a specific wireless communication protocol. The terminal device 10 is connected to the server 15 through the communication unit 102, and The information generated by the terminal device 10 is transmitted; there is a memory unit 103, which is used for the operation of the terminal device 10, especially as a reserved memory for storing packets; and a working unit 104, which is the terminal device 10 in the Internet of Things The operating functions in the system can be sensor components, signal transmitters, audio receivers, etc. The information generated by the operation of the working unit 104, such as sensing signals, can be processed by the controller 101 and converted into the communication unit 102. The packet of a specific communication protocol is sent to the server 15.

在此通信系統架構下,當終端裝置10與閘道器12的連線,或是閘道器12與伺服器15之間的連線出現狀況時,例如信號中斷,或是閘道器12的無線通信信號無法涵蓋到終端裝置10,或是來往封包碰撞,或是因為其他干擾,導致終端裝置10傳送封包時,封包無法順利到達伺服器15,或是因為無法接收確認封包(ACK封包)而無法確認伺服器15是否接收到封包,這時,通信系統的終端裝置10中所執行的資料傳送方法將提出一解決方案。Under this communication system architecture, when the connection between the terminal device 10 and the gateway 12, or the connection between the gateway 12 and the server 15, occurs, for example, the signal is interrupted, or the connection between the gateway 12 The wireless communication signal cannot cover the terminal device 10, or the collision of packets to and from the terminal device, or other interference, causes the terminal device 10 to transmit the packet, and the packet cannot reach the server 15 smoothly, or the acknowledgement packet (ACK packet) cannot be received. It is impossible to confirm whether the server 15 has received the packet. In this case, the data transmission method implemented in the terminal device 10 of the communication system will propose a solution.

圖2顯示所述資料傳輸方法的運作時序示意圖,圖示有一終端裝置20,與伺服器25進行通信,中間可以通過其他網路裝置(如閘道器),並未限制所述資料傳輸的方法。Figure 2 shows a schematic diagram of the operation sequence of the data transmission method. It shows a terminal device 20 that communicates with a server 25. Other network devices (such as gateways) can be used in the middle, and the data transmission method is not restricted. .

終端裝置20對伺服器25傳送封包,如圖示的上行封包201(uplink packet),並應於一時間內接收到對應此封包的確認封包(ACK)203,接著再傳送下一筆上行封包205,並應於時間內接收確認封包207,但當逾時而並未能接收到確認封包207時,這筆上行封包205將被保存在終端裝置20的記憶體中。The terminal device 20 transmits a packet to the server 25, such as an uplink packet 201 (uplink packet) as shown in the figure, and should receive an acknowledgment packet (ACK) 203 corresponding to the packet within a time, and then transmits the next uplink packet 205. The confirmation packet 207 should be received within the time, but when the confirmation packet 207 is not received after the timeout, the upstream packet 205 will be stored in the memory of the terminal device 20.

之後,當到達一預定重送時間22,終端裝置20中的控制電路將檢查其中記憶單元中是否有任一被保存等待重送的封包,一旦檢查到保存有待重送的封包,即在此預定重送時間22內,根據當下終端裝置20的通信品質與網路狀態決定一資料傳輸率(data rate),或是也決定一個一次傳送的最大資料量(maximum size of data/packet),即在預定重送時間22中以當下決定的資料傳輸率以及/或最大資料量重送保存於記憶單元中等待重送的封包,形成圖式中在此時間內重送的上行封包209、213,並同樣地還是可以等待對應的確認封包211、215等。Afterwards, when a predetermined retransmission time 22 is reached, the control circuit in the terminal device 20 will check whether there is any packet stored in the memory unit waiting to be retransmitted. Once the packet to be retransmitted is stored, it is scheduled here During the retransmission time 22, a data rate is determined according to the current communication quality of the terminal device 20 and the network state, or a maximum size of data/packet is also determined at one time. In the scheduled resend time 22, the packets stored in the memory unit waiting to be resent are resent at the currently determined data transmission rate and/or the maximum amount of data, forming the uplink packets 209, 213 resent within this time in the diagram, and Similarly, it is still possible to wait for the corresponding confirmation packets 211, 215, etc.

相關方法實施例流程可參考圖3所示資料傳輸方法的實施例流程圖(A)。For the flow of the related method embodiment, please refer to the flow chart (A) of the embodiment of the data transmission method shown in FIG. 3.

在此流程中(A),一開始,由終端裝置產生封包後傳送上行封包至伺服器(步驟S301),並等待確認封包(ACK)(步驟S303),其中控制電路在尚未逾時前判斷是否接收到確認封包?(步驟S305)。若已經接收到對應的確認封包(是),即繼續終端裝置的工作(步驟S307),流程回到步驟S301,可以繼續傳送下一筆封包與等待確認封包等步驟。當沒有封包要傳送時,終端裝置可以繼續原本工作,或是進入休眠等的省電狀態。In this process (A), at the beginning, the terminal device generates a packet and then transmits an uplink packet to the server (step S301), and waits for an acknowledgement packet (ACK) (step S303), where the control circuit determines whether it has timed out before Received the confirmation packet? (Step S305). If the corresponding confirmation packet has been received (Yes), the terminal device continues to work (step S307), and the flow returns to step S301, where the next packet can be transmitted and the steps of waiting for the confirmation packet can be continued. When there is no packet to be transmitted, the terminal device can continue its original work or enter a power-saving state such as sleep.

當判斷並未接收到確認封包(否),控制電路繼續判斷是否超過系統根據實際需求所設定的逾時時間?(步驟S309),若尚未逾時(否),仍繼續等待確認封包(步驟S303)與相關步驟。When it is judged that the confirmation packet has not been received (No), the control circuit continues to judge whether the timeout time set by the system according to the actual demand has been exceeded? (Step S309), if the time has not expired (No), continue to wait for the confirmation packet (Step S303) and related steps.

若已經逾時而還未接收到確認封包(是),終端裝置的控制電路將目前封包保存在記憶體中(步驟S311),保存封包在佇留記憶體(queue memory)時,還可執行一壓縮步驟。If it has timed out and the confirmation packet has not been received (Yes), the control circuit of the terminal device saves the current packet in the memory (step S311). When the packet is saved in the queue memory, it can also execute a Compression step.

當並未確認是否完成傳送的封包保存在記憶體中時,所述資料傳輸的流程繼續圖4所示的實施例流程(B)。When it is not confirmed whether the transmitted packet is stored in the memory, the process of the data transmission continues with the process (B) of the embodiment shown in FIG. 4.

在此流程(B)中,終端裝置的控制電路運作以等待預定重送時間(步驟S401),並判斷是否到達預定重送時間?(步驟S403),若尚未達到此系統設定的預定重送時間(否),流程持續步驟S401。In this process (B), the control circuit of the terminal device operates to wait for the predetermined retransmission time (step S401), and determines whether the predetermined retransmission time is reached? (Step S403), if the predetermined retransmission time set by the system has not been reached (No), the process continues to step S401.

若已達預定重送時間(是),終端裝置的控制電路將根據當下通信品質或加上裝置的運作狀態決定一資料傳輸率(步驟S405),再以此資料傳輸率傳送記憶體保存的待重送封包,先取出封包,並在有必要時進行解壓縮(步驟S407),再進行重送封包(步驟S409)。完成重送封包時,流程也回到如圖3描述的流程(A)。If the predetermined retransmission time has elapsed (Yes), the control circuit of the terminal device will determine a data transfer rate according to the current communication quality or the operating state of the device (step S405), and then send the data stored in the memory to the waiting list at this data transfer rate. To resend the packet, first take out the packet, decompress it if necessary (step S407), and then resend the packet (step S409). When the resending packet is completed, the process also returns to the process (A) described in Figure 3.

圖5示意顯示封包佇留於記憶體的例圖,圖示有一佇留記憶體50,其中在不同的記憶區塊中儲存被保存的封包,此例標示有第一筆封包501、第二筆封包502以及第三筆封包503。當達到預定重送時間時,終端裝置的控制電路即由此佇留記憶體50取得待重送的封包,若還未能完成重送,還可能會重新保存在此記憶體中。Fig. 5 schematically shows an example of a packet staying in the memory. It shows a reserved memory 50 in which the saved packets are stored in different memory blocks. In this example, the first packet 501 and the second packet are marked. Packet 502 and the third packet 503. When the predetermined retransmission time is reached, the control circuit of the terminal device obtains the packet to be retransmitted from the reserved memory 50. If the retransmission has not been completed, it may be stored in this memory again.

圖6顯示運行於終端裝置的控制電路中的資料傳輸方法的實施例流程圖。FIG. 6 shows a flowchart of an embodiment of a data transmission method running in the control circuit of the terminal device.

當終端裝置的控制電路判斷時間到達預定重送時間時(步驟S601),主動檢查記憶體(如佇留記憶體)(步驟S603),判斷是否有保存的封包?(步驟S605)When the control circuit of the terminal device judges that the time reaches the predetermined resend time (step S601), it actively checks the memory (such as the reserved memory) (step S603) to determine whether there is a saved packet? (Step S605)

若並未有保存的待重送封包時(否),流程回到終端裝置的工作(步驟S607);反之,若檢查到保存有待重送封包時(是),控制電路將決定資料傳輸率以及最大資料量(步驟S609)。在這個步驟中,決定資料傳輸率或是加上一次傳送的最大資料量的因素包括終端裝置當下的信噪比(SNR)與接收信號強度指示(RSSI)等會影響當下通信品質的條件。在一實施例中,當以所述的信噪比以及/或接收信號強度指示判斷通信品質(資料傳輸率,或加上最大資料量)好或不好時,可以決定終端裝置中通信單元運行的無線調變參數(modulation parameters),使之適應當下的資料傳輸率或最大資料量,以提供改善的通信品質。更者,終端裝置的控制電路或可保存過去傳輸資料的歷史記錄,歷史記錄可以包括此終端裝置在任一時刻的傳輸記錄(如通信品質),這也是一個可以參考判斷目前資料傳輸率或/以及最大資料量的依據,也可以用來決定預定重送時間。If there is no saved packet to be resent (No), the process returns to the work of the terminal device (step S607); on the contrary, if it is checked that the packet to be resent is saved (Yes), the control circuit will determine the data transfer rate and Maximum data amount (step S609). In this step, the factors that determine the data transmission rate or the maximum amount of data transmitted at one time include the current signal-to-noise ratio (SNR) of the terminal device and the received signal strength indicator (RSSI), which will affect the current communication quality. In an embodiment, when the communication quality (data transmission rate, or plus the maximum amount of data) is judged to be good or bad based on the signal-to-noise ratio and/or received signal strength indicator, it can be determined that the communication unit in the terminal device operates The wireless modulation parameters are adapted to the current data transmission rate or maximum data volume to provide improved communication quality. In addition, the control circuit of the terminal device may save the historical record of the past transmission data. The historical record may include the transmission record of the terminal device at any time (such as communication quality), which is also a reference for judging the current data transmission rate or/and The basis for the maximum amount of data can also be used to determine the scheduled resend time.

當決定了資料傳輸率、最大資料量等重送封包的條件時,控制電路即自記憶體中取出封包(步驟S611),並在必要時需要解壓縮,開始第n次重送(n=1, 2, …m)(步驟S613)。系統可以決定重送封包的次數上限(m),從第一次傳送(n=1)開始,重送後判斷是否收到確認封包?(步驟S615),若順利接收到確認封包(是),流程回到步驟S603,繼續檢查下一個待重送的封包等步驟。When the conditions for retransmitting the packet such as the data transfer rate and the maximum amount of data are determined, the control circuit fetches the packet from the memory (step S611), decompresses it if necessary, and starts the nth retransmission (n=1 , 2, …m) (step S613). The system can determine the upper limit of the number of retransmissions (m), starting from the first transmission (n=1), and after retransmission, judge whether the confirmation packet is received? (Step S615), if the confirmation packet is successfully received (Yes), the flow returns to step S603 to continue to check the next packet to be resent and other steps.

反之,若尚未接收到確認封包(否),即判斷是否達到重送次數上限(m)?(步驟S617)。若尚未達到重送的次數上限(否),流程繼續步驟S619,將重送次數(n)加1(n+1),繼續步驟S613,開始下一次重送(如第2次…等),若一直沒有收到確認封包,重送次數(n)累加下去,直到n=m(次數上限)為止(是),執行步驟S621,表示達到次數上限(m)仍無法完成重送時,即再次將本次重送的封包保存於記憶體中,流程回到步驟S603。On the contrary, if the confirmation packet has not been received (No), it is judged whether the upper limit of the number of retransmissions (m) has been reached? (Step S617). If the upper limit of the number of retransmissions has not been reached (No), the flow continues to step S619, the number of retransmissions (n) is increased by 1 (n+1), and the step S613 is continued to start the next retransmission (such as the second time... etc.), If the confirmation packet has not been received, the number of retransmissions (n) is accumulated until n=m (the upper limit of the number of times) (Yes), and step S621 is executed, which means that the retransmission cannot be completed after reaching the upper limit of the number of times (m). The re-sent packet this time is stored in the memory, and the flow returns to step S603.

綜上所述,根據以上實施例的描述,所提出的資料傳輸方法可應用在有省電、較小資料量以及通信協定不主動重送封包的物聯網的通信系統中,能夠通過所述資料傳輸方法,在系統設定或是動態調整得出的預定重送時間重新傳送被保存而待重送的封包,以此解決這類系統面對傳統缺乏解決無法確認封包是否送達所造成的問題。To sum up, according to the description of the above embodiments, the proposed data transmission method can be applied to a communication system of the Internet of Things that has power saving, a small amount of data, and a communication protocol that does not actively retransmit packets. In the transmission method, the saved packet to be resent is retransmitted at the preset retransmission time set by the system or dynamically adjusted, so as to solve the problem caused by the lack of solutions for this type of system that cannot confirm whether the packet is delivered or not.

以上所公開的內容僅為本發明的優選可行實施例,並非因此侷限本發明的申請專利範圍,所以凡是運用本發明說明書及圖式內容所做的等效技術變化,均包含於本發明的申請專利範圍內。The content disclosed 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 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.

終端裝置10 控制器101 通信單元102 記憶單元103 工作單元104 閘道器12 伺服器15 終端裝置20 伺服器25 上行封包201, 205, 209, 213 確認封包203, 207, 211, 215 預定重送時間22 佇留記憶體50 第一筆封包501 第二筆封包502 第三筆封包503 步驟S301~S311物聯網資料傳輸流程 步驟S401~S409物聯網資料傳輸流程 步驟S601~S621物聯網資料傳輸流程 Terminal device 10 Controller 101 Communication unit 102 Memory unit 103 Work unit 104 Gateway 12 Server 15 Terminal device 20 Server 25 Upstream packets 201, 205, 209, 213 Confirm packet 203, 207, 211, 215 Scheduled resend time 22 Queue memory 50 The first packet 501 The second packet 502 The third packet 503 Steps S301~S311 IoT data transmission process Steps S401~S409 IoT data transmission process Steps S601~S621 IoT data transmission process

圖1顯示通信系統的系統架構示意圖;Figure 1 shows a schematic diagram of the system architecture of the communication system;

圖2顯示資料傳輸方法的運作時序示意圖;Figure 2 shows a schematic diagram of the operation sequence of the data transmission method;

圖3顯示資料傳輸方法的實施例流程圖之一;Figure 3 shows one of the flowcharts of the embodiment of the data transmission method;

圖4顯示資料傳輸方法的實施例流程圖之二;Figure 4 shows the second flow chart of the embodiment of the data transmission method;

圖5示意顯示封包佇留於記憶體的例圖;Figure 5 schematically shows an example diagram of a packet remaining in the memory;

圖6顯示實現資料傳輸方法的實施例流程圖。Fig. 6 shows a flowchart of an embodiment of a method for implementing data transmission.

終端裝置20 伺服器25 上行封包201, 205, 209, 213 確認封包203, 207, 211, 215 預定重送時間22 Terminal device 20 Server 25 Upstream packets 201, 205, 209, 213 Confirm packet 203, 207, 211, 215 Scheduled resend time 22

Claims (10)

一種資料傳輸方法,運作於一終端裝置中,該終端裝置設有一記憶體,包括: 當到達一預定重送時間,檢查該記憶體中是否有任一被保存等待重送的封包;以及 於該預定重送時間內,以一資料傳輸率重送保存於該記憶體中等待重送的封包。 A data transmission method operates in a terminal device, the terminal device is provided with a memory, and includes: When a predetermined resend time is reached, check whether there are any packets stored in the memory waiting to be resent; and Within the predetermined retransmission time, retransmit the packets stored in the memory waiting to be retransmitted at a data transmission rate. 如請求項1所述的資料傳輸方法,其中,於重送保存於該記憶體中等待重送的封包時,設定重送的一次數上限,若達到該次數上限仍無法完成重送,即再次將本次重送的封包保存於該記憶體中。The data transmission method according to claim 1, wherein when resending a packet stored in the memory waiting to be resent, an upper limit of the number of resends is set. If the upper limit of the number of resends is reached, the resending cannot be completed, that is, resend Save the re-sent packet this time in the memory. 如請求項1所述的資料傳輸方法,其中該預定重送時間為該終端裝置中的一控制器根據一通信單元的資料傳輸狀態所設定重送保存於該記憶體中的封包的時間。The data transmission method according to claim 1, wherein the predetermined retransmission time is a time set by a controller in the terminal device to retransmit the packet stored in the memory according to the data transmission status of a communication unit. 如請求項1所述的資料傳輸方法,其中,於檢查該記憶體中是否有任一被保存待重送的封包時,根據該終端裝置當下的信噪比與接收信號強度指示決定該資料傳輸率。The data transmission method according to claim 1, wherein when checking whether there is any packet stored in the memory to be resent, the data transmission is determined according to the current signal-to-noise ratio of the terminal device and the received signal strength indicator Rate. 如請求項4所述的資料傳輸方法,其中,於檢查該記憶體中是否有任一被保存待重送的封包時,更決定一次傳送封包的一最大資料量。The data transmission method according to claim 4, wherein when checking whether there is any packet stored in the memory to be resent, a maximum data amount of the packet to be transmitted at a time is determined. 如請求項4或5所述的資料傳輸方法,其中,當決定該資料傳輸率,或加上該最大資料量,即決定該終端裝置中一通信單元運行的無線調變參數。The data transmission method according to claim 4 or 5, wherein when the data transmission rate is determined, or the maximum data amount is added, the wireless modulation parameter of a communication unit in the terminal device is determined. 一種通信系統,包括: 運行於一物聯網中的一伺服器; 該物聯網中的一或多個終端裝置,各終端裝置包括一控制器,以及電性連接該控制器的一通信單元、一記憶單元以及一工作單元,其中該通信單元連線該伺服器,並傳輸由該工作單元產生的信息形成的封包; 其中,於該控制器運行的一資料傳輸方法包括: 當到達一預定重送時間,檢查該記憶單元中是否有任一被保存等待重送的封包;以及 於該預定重送時間內,以一資料傳輸率以及一次傳送封包的一最大資料量重送保存於該記憶單元中等待重送的封包。 A communication system including: A server running in an Internet of Things; One or more terminal devices in the Internet of Things, each terminal device includes a controller, and a communication unit, a memory unit, and a working unit electrically connected to the controller, wherein the communication unit is connected to the server, And transmit the packet formed by the information generated by the work unit; Wherein, a data transmission method running on the controller includes: When a predetermined retransmission time is reached, check whether there is any packet in the memory unit that is saved and waiting to be retransmitted; and Within the predetermined retransmission time, the packets stored in the memory unit waiting to be retransmitted are retransmitted at a data transmission rate and a maximum data amount of the transmitted packet at a time. 如請求項7所述的通信系統,其中,於重送保存於該記憶單元中等待重送的封包時,設定重送的一次數上限,若達到該次數上限仍無法完成重送,即再次將本次重送的封包保存於該記憶單元中。The communication system according to claim 7, wherein when resending a packet stored in the memory unit waiting to be resent, an upper limit of the number of resends is set, and if the upper limit of the number of resends is reached, the resend cannot be completed, that is, the packet is sent again The re-sent packet this time is stored in the memory unit. 如請求項8所述的通信系統,其中該預定重送時間為該控制器根據該通信單元的資料傳輸狀態所設定重送保存於該記憶單元中的封包的時間。The communication system according to claim 8, wherein the predetermined retransmission time is a time for retransmitting the packet stored in the memory unit as set by the controller according to the data transmission status of the communication unit. 如請求項7至9中任一項所述的通信系統,其中,於檢查該記憶單元中是否有任一被保存待重送的封包時,根據該終端裝置當下的信噪比與接收信號強度指示決定該資料傳輸率以及該最大資料量。The communication system according to any one of Claims 7 to 9, wherein when checking whether there is any packet stored in the memory unit to be resent, it is based on the current signal-to-noise ratio and received signal strength of the terminal device Instruct to determine the data transfer rate and the maximum amount of data.
TW108144335A 2019-12-04 2019-12-04 Method for data transmission and communication system thereof TWI734282B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW108144335A TWI734282B (en) 2019-12-04 2019-12-04 Method for data transmission and communication system thereof
JP2020082139A JP7328177B2 (en) 2019-12-04 2020-05-07 Data transmission method and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108144335A TWI734282B (en) 2019-12-04 2019-12-04 Method for data transmission and communication system thereof

Publications (2)

Publication Number Publication Date
TW202123636A TW202123636A (en) 2021-06-16
TWI734282B true TWI734282B (en) 2021-07-21

Family

ID=76220622

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108144335A TWI734282B (en) 2019-12-04 2019-12-04 Method for data transmission and communication system thereof

Country Status (2)

Country Link
JP (1) JP7328177B2 (en)
TW (1) TWI734282B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113890691B (en) * 2021-09-29 2024-04-23 天翼物联科技有限公司 Data transmission control method and device, internet of things terminal and storage medium
CN115297443B (en) * 2022-08-03 2024-06-07 歌尔科技有限公司 Data transmission method, device, broadcasting equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030179752A1 (en) * 2002-03-19 2003-09-25 Network Equipment Technologies, Inc. Reliable transport of TDM data streams over packet networks
CN101998522A (en) * 2009-08-25 2011-03-30 大唐移动通信设备有限公司 Buffer state information report processing method and relay node

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3561510B2 (en) 2002-03-22 2004-09-02 松下電器産業株式会社 Base station apparatus and packet transmission method
JP2003283472A (en) 2002-03-25 2003-10-03 Hitachi Kokusai Electric Inc Data transfer control method
JP4994706B2 (en) 2006-05-12 2012-08-08 三菱電機株式会社 Wireless communication apparatus and data transmission method
WO2008120275A1 (en) * 2007-03-29 2008-10-09 Fujitsu Limited Mobile communication apparatus
JP2009246533A (en) * 2008-03-28 2009-10-22 Nec Corp Communication terminal, communicating method, data communication system, and program
WO2015114541A1 (en) * 2014-01-30 2015-08-06 Telefonaktiebolaget L M Ericsson (Publ) 256 quadrature amplitude modulation user equipment category handling
JP2016119557A (en) 2014-12-19 2016-06-30 日本放送協会 Video transmission device and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030179752A1 (en) * 2002-03-19 2003-09-25 Network Equipment Technologies, Inc. Reliable transport of TDM data streams over packet networks
CN101998522A (en) * 2009-08-25 2011-03-30 大唐移动通信设备有限公司 Buffer state information report processing method and relay node

Also Published As

Publication number Publication date
JP2021090185A (en) 2021-06-10
JP7328177B2 (en) 2023-08-16
TW202123636A (en) 2021-06-16

Similar Documents

Publication Publication Date Title
JP5438153B2 (en) Status information transmission method and receiver for wireless communication system
EP1161822B1 (en) Enhanced wireless-specific interfaces
EP1558000B1 (en) Transmitter device for controlling data transmission
CN104247543B (en) The processing time relevant control of transmission of data blocks
CN101167339B (en) Expanding universal plug and play capabilities in power constrained environment
US20070191052A1 (en) Automatic power save delivery (APSD) compatible with 802.11n frame aggregation and block acknowledgement
US20080101290A1 (en) Apparatus for Arq Controlling in Wireless Portable Internet System and Method Thereof
CN102387009B (en) Uplink transmission method of radio link control layer and evolutionary node B
US8638677B2 (en) Data communication system
JP2007089177A (en) Method and apparatus for improving transmission rate of state report signal in radio communication system
CN106471750B (en) Full duplex wireless communication on devices with limited echo cancellation capability
JP5037633B2 (en) RLC PDU transmission method, radio resource allocation method, and RLC entity of mobile communication system in mobile communication system
WO2009022877A2 (en) A method of transmitting and processing data block of specific protocol layer in wireless communication system
JP2008005021A (en) Retransmission control method and device
TWI734282B (en) Method for data transmission and communication system thereof
JP4601871B2 (en) Data flow control method in communication system
CN102868504A (en) Method for sending status report and radio link control (RLC) receiving entity
CN109194452A (en) Data repeating method, device, storage medium and its network equipment
TW200417193A (en) Method for automatically and dynamically adjusting packet transmission speed of wireless communication network system
US20090181703A1 (en) Method and Apparatus for Triggering Status Report in a Wireless Communications System
US8964652B2 (en) Method for enhancing of controlling radio resources, method for transmitting status report, and receiver in mobile communication system
CN102804664B (en) Communication system, communication device, communication method, and program
US20040042465A1 (en) Radio packet data transmission control system and method
JP2016174211A (en) Communication system
WO2010094320A1 (en) Methods and apparatuses for adjusting the medium access latency on radio links