TW201911816A - Data transmission method of wireless system capable of determining whether a relay device transmits data normally to ensure reliability of data transmission - Google Patents

Data transmission method of wireless system capable of determining whether a relay device transmits data normally to ensure reliability of data transmission Download PDF

Info

Publication number
TW201911816A
TW201911816A TW106126321A TW106126321A TW201911816A TW 201911816 A TW201911816 A TW 201911816A TW 106126321 A TW106126321 A TW 106126321A TW 106126321 A TW106126321 A TW 106126321A TW 201911816 A TW201911816 A TW 201911816A
Authority
TW
Taiwan
Prior art keywords
server
relay device
data
transmission method
data transmission
Prior art date
Application number
TW106126321A
Other languages
Chinese (zh)
Other versions
TWI650974B (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 TW106126321A priority Critical patent/TWI650974B/en
Application granted granted Critical
Publication of TWI650974B publication Critical patent/TWI650974B/en
Publication of TW201911816A publication Critical patent/TW201911816A/en

Links

Abstract

A data transmission method of a wireless system is provided. The wireless system includes a first server, a relay device, and at least one apparatus. The method includes the following steps: connecting the relay device to the first server through a local area network; determining whether the relay device stores status information transmitted from the apparatus, and if so, transmitting the status information to the first server; if not, transmitting a first conversion command to the first server, wherein the first conversion command corresponds to non-storage status information; and transmitting a second conversion command to the first server, and interrupting the connection with the first server after transmitting, wherein the second conversation command requests the first server to disconnect from the relay device. The first server can thereby determine whether the relay device transmits data normally to ensure reliability of data transmission.

Description

無線系統的資料傳輸方法Wireless system data transmission method

本發明係與無線系統有關;特別是指一種無線系統的資料傳輸方法。The invention relates to a wireless system; in particular to a data transmission method of a wireless system.

按,一般可遙控的設備皆配備有遙控器,讓使用者無須在設備的安裝位置即可操控設備,為生活添增了許多便利性。而隨著使用者所擁有的設備的數量愈來愈多,將使得遙控器數量也愈多。遙控器的數量增多不僅不易收藏,在某些情況下,如同一類型的設備,其遙控器外觀類似,使得使用者難以分辨遙控器與設備的配對關係。Press, the general remote control device is equipped with a remote control, so that users can control the device without having to install the device, which adds a lot of convenience to life. And as the number of devices owned by users increases, the number of remote controls will increase. The increase in the number of remote controls is not only difficult to collect, but in some cases, such as the same type of device, the remote control has a similar appearance, making it difficult for the user to distinguish the remote control from the device.

為此,遂有業者推出一種中繼裝置,該中繼裝置可讓使用者以一電子裝置(例如,電腦、行動電話)透過網路與該中繼裝置連線。使用者由該電子裝置上執行控制指令並傳送至該中繼裝置後,由該中繼裝置將所接收的控制指令轉換成對應的控制訊號並發送至特定的設備,如此,即可在同一個電子裝置上控制不同的設備作動,有效解決遙控器數量過多的缺失。To this end, the manufacturer has introduced a relay device that allows a user to connect to the relay device via an electronic device (for example, a computer or a mobile phone). After the user executes the control command on the electronic device and transmits the control command to the relay device, the relay device converts the received control command into a corresponding control signal and sends it to a specific device, so that the same device can be The electronic device controls different devices to effectively solve the problem of excessive number of remote controls.

在雲端技術蓬勃發展的今日,中繼裝置亦會經由網路連線到伺服器,以將設備的狀態資訊經由中繼裝置傳送至伺服器,以作後續的運用。資料在網路傳送時,難免會遇到資料丟失的情形,導致伺服器無法得知中繼裝置是否有傳送狀態資訊。是以,如何確保中繼裝置與伺服器間資料傳輸的可靠度,乃是目前急需解決的問題。Today, when cloud technology is booming, the relay device is also connected to the server via the Internet to transmit the status information of the device to the server via the relay device for subsequent use. When the data is transmitted over the network, it is inevitable that the data will be lost, and the server cannot know whether the relay device has the transmission status information. Therefore, how to ensure the reliability of data transmission between the relay device and the server is an urgent problem to be solved.

有鑑於此,本發明之目的在於提供一種無線系統的資料傳輸方法,可確保資料傳輸的可靠度。 緣以達成上述目的,本發明提供的一種無線系統的資料傳輸方法,其中該無線系統包含有一第一伺服器、一中繼裝置及至少一設備,該第一伺服器與該中繼裝置連線至區域網路,該中繼裝置訊號連接該設備,該中繼裝置供接收來自該設備的狀態資訊並儲存之;該資料傳輸方法包含有下列步驟:A、由該中繼裝置經區域網路與該第一伺服器連線;B、判斷該中繼裝置是否有儲存該設備所傳來的該狀態資訊:若是,由該中繼裝置傳送該狀態資訊至該第一伺服器;若否,由該中繼裝置傳送一第一交談指令至該第一伺服器,其中,該第一交談指令係對應無儲存該狀態資訊;C、傳送一第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線,其中,該第二交談指令係請求該第一伺服器中斷與該中繼裝置之連線。In view of the above, an object of the present invention is to provide a data transmission method for a wireless system, which can ensure the reliability of data transmission. In order to achieve the above object, the present invention provides a data transmission method for a wireless system, wherein the wireless system includes a first server, a relay device, and at least one device, and the first server is connected to the relay device. To the regional network, the relay device signals the device, and the relay device receives the status information from the device and stores the data. The data transmission method includes the following steps: A. The relay device passes through the regional network. Connecting with the first server; B. determining whether the relay device stores the status information sent by the device: if yes, transmitting the status information to the first server by the relay device; if not, Transmitting, by the relay device, a first conversation command to the first server, wherein the first conversation command corresponds to not storing the status information; C, transmitting a second conversation command to the first server, and After the transmission, the connection with the first server is interrupted, wherein the second conversation command requests the first server to disconnect the connection with the relay device.

本發明之效果在於中繼裝置即使無儲存的狀態資訊亦會傳送第一交談指令至第一伺服器,讓第一伺服器可藉此判斷中繼裝置是否有正常傳輸資料,以確保資料傳輸的可靠度。The effect of the invention is that the relay device transmits the first conversation command to the first server even if there is no stored state information, so that the first server can determine whether the relay device has normal transmission data to ensure data transmission. Reliability.

為能更清楚地說明本發明,茲舉一較佳實施例並配合圖式詳細說明如後。為能更清楚地說明本發明,茲舉較佳實施例並配合圖示詳細說明如後。請參閱圖1,為本發明第一較佳實施例之無線系統,包含有至少一設備10、一中繼裝置20、一無線基地台(Access Point)30、一電子裝置40及一第一伺服器50。其中:In order to explain the present invention more clearly, a preferred embodiment will be described in detail with reference to the drawings. In order that the present invention may be more clearly described, the preferred embodiments are illustrated in the accompanying drawings. 1 is a wireless system according to a first embodiment of the present invention, including at least one device 10, a relay device 20, a wireless access point (Access Point) 30, an electronic device 40, and a first servo. 50. among them:

至少一設備10的數量於本實施例中為複數個,該些設備10位於用戶端,包括可受控的設備及偵測設備,本實施例中可受控設備係以空調系統10a、壁爐10b為例,偵測設備係以一氧化碳偵測器10c為例。各該設備10透過RF(Radio frequency)訊號與中繼裝置20訊號連接,但不以此為限,亦可透過Wi-Fi、Zigbee、藍牙、紅外線等訊號連接。可受控設備係接收控制指令而進行對應的作動,例如:開啟、關閉、調整溫度等,且可受控設備亦將本身的狀態資訊編譯成RF訊號後發送,所述之狀態資訊可為目前設備10的開啟或關閉狀態、目前的溫度、異常訊息等資訊。偵測設備同樣會將狀態資訊編譯成RF訊號後發送,所述之狀態資訊可為所偵測的物理量,例如:一氧化碳濃度。The number of the at least one device 10 is plural in the embodiment, and the devices 10 are located at the user end, including the controllable device and the detecting device. In this embodiment, the control device is an air conditioning system 10a and a fireplace 10b. For example, the detecting device is exemplified by the carbon monoxide detector 10c. Each device 10 is connected to the relay device 20 through an RF (Radio Frequency) signal, but not limited thereto, and can also be connected through Wi-Fi, Zigbee, Bluetooth, infrared, and the like. The controllable device receives the control command and performs corresponding actions, such as: turning on, off, adjusting the temperature, etc., and the controlled device also compiles its own state information into an RF signal, and the status information can be currently Information such as the on or off state of the device 10, the current temperature, an abnormal message, and the like. The detecting device also compiles the status information into an RF signal, and the status information may be the detected physical quantity, for example, a carbon monoxide concentration.

該中繼裝置20位於用戶端且透過Wi-Fi訊號與該無線基地台30訊號連接,藉以連線至用戶端內的區域網路。該無線基地台30亦連線到網際網路I,且除了透過Wi-Fi訊號之外還可透過有線的方式與其它裝置連線。中繼裝置20用以接收RF訊號並轉換成Wi-Fi訊號後發送,以及接收Wi-Fi訊號並轉換成RF訊號後發送。該中繼裝置20用以接收該些設備10所傳來之具有狀態資訊的RF訊號,解譯後取得狀態資訊並儲存於記憶體(圖未示)中。此外,該中繼裝置20具有一第一計數器202與一第二計數器204,第一計數器202與第二計數器204之功能容後再述。The relay device 20 is located at the user end and is connected to the wireless base station 30 via a Wi-Fi signal to connect to the local area network in the user terminal. The wireless base station 30 is also connected to the Internet I, and can be wired to other devices in addition to the Wi-Fi signal. The relay device 20 is configured to receive the RF signal and convert it into a Wi-Fi signal for transmission, and receive the Wi-Fi signal and convert it into an RF signal for transmission. The relay device 20 is configured to receive the RF signals with status information sent by the devices 10, and obtain status information after being interpreted and stored in a memory (not shown). In addition, the relay device 20 has a first counter 202 and a second counter 204. The functions of the first counter 202 and the second counter 204 are described later.

該電子裝置40在本實施例中為平板電腦,其可連接至網際網路I並經由網際網路無線基地台30連線,或直接與無線基地台30於區域網路中連線。該電子裝置40內建有一應用程式(Application)可供使用者輸入控制設備10的控制指令(如開啟、關閉、調整溫度等)。使用者可透過該電子裝置40的應用程式指定欲控制的設備10,在該電子裝置40可經由網際網路I或區域網路,則將使用者所輸入之一個或多個控制指令傳送到第一伺服器50,其中,該電子裝置40所傳送的控制指令包括該中繼裝置20的識別碼、至少一個所欲控制的設備10之代碼、及指令碼(例如開啟、關閉、調整溫度皆有對應的指令碼),藉以指定中繼裝置20及所欲控制的設備10。In this embodiment, the electronic device 40 is a tablet computer that can be connected to the Internet I and connected via the Internet wireless base station 30, or directly connected to the wireless base station 30 in the regional network. The electronic device 40 has an application built in for the user to input control commands (such as turning on, off, adjusting temperature, etc.) of the control device 10. The user can specify the device 10 to be controlled through the application of the electronic device 40, and the electronic device 40 can transmit one or more control commands input by the user to the first via the Internet I or the regional network. a server 50, wherein the control command transmitted by the electronic device 40 includes an identifier of the relay device 20, at least one code of the device 10 to be controlled, and an instruction code (eg, turning on, off, and adjusting the temperature) The corresponding instruction code) is used to specify the relay device 20 and the device 10 to be controlled.

該第一伺服器50為本地伺服器,其係位於用戶端且經由該無線基地台30連接至用戶端的區域網路,第一伺服器50連接一第一資料庫52,該第一資料庫52供記錄該電子裝置40所傳來的該控制指令,並將待發送的控制指令儲存之。第一伺服器50與第一資料庫52可於同一台伺服器主機或分別於二台伺服器主機上執行。The first server 50 is a local server, and is connected to the local area network of the user terminal via the wireless base station 30. The first server 50 is connected to a first database 52. The first database 52 is connected to the first database 52. The control command sent by the electronic device 40 is recorded, and the control command to be sent is stored. The first server 50 and the first database 52 can be executed on the same server host or on two server hosts respectively.

藉由上述之架構,即可進行本實施例的資料傳輸方法,該方法包含有下列步驟,其中:With the above architecture, the data transmission method of the embodiment can be performed, and the method includes the following steps, wherein:

請配合圖2,為中繼裝置20之作動流程:Please cooperate with FIG. 2 for the operation process of the relay device 20:

步驟S201,由該中繼裝置20透過無線基地台30經區域網路與該第一伺服器50連線,以供該中繼裝置20與該第一伺服器50可相互傳輸資料。In step S201, the relay device 20 is connected to the first server 50 via the regional network through the wireless base station 30, so that the relay device 20 and the first server 50 can mutually transmit data.

步驟S202,該中繼裝置20判斷目前是否有儲存任一設備10所傳來的狀態資訊:In step S202, the relay device 20 determines whether there is currently stored status information transmitted by any device 10:

若是,由該中繼裝置20傳送所儲存的狀態資訊至該第一伺服器50;If yes, the relay device 20 transmits the stored status information to the first server 50;

若否,由該中繼裝置20傳送一第一交談指令至該第一伺服器50,其中,該第一交談指令係對應目前中繼裝置20無儲存任一設備10的狀態資訊,亦即,向第一伺服器50表示目無狀態資訊可上傳第一伺服器50。If not, the first conversation command is transmitted by the relay device 20 to the first server 50, wherein the first conversation command corresponds to the current relay device 20 not storing the status information of any device 10, that is, The first server 50 can be uploaded by indicating the headless information to the first server 50.

步驟S203,在該中繼裝置20傳送完狀態資訊或第一交談指令後,中繼裝置20傳送一第二交談指令(即請求中斷指令)至該第一伺服器50,並於傳送後中斷與該第一伺服器50間的連線,其中,該第二交談指令係請求該第一伺服器50中斷與該中繼裝置20之連線。本實施例中,係於傳送完該第二交談指令後經一預定時間始由中繼裝置20中斷與第一伺服器50間之通道的連線,其中預定時間為1秒以上。1秒的時間係為了確保第二交談指令可以順利地送到第一伺服器50,以避免發生第二交談指令未送到第一伺服器50之前,第一伺服器50先關閉與中繼裝置20間之通道,導致第一伺服器50無法收到第二交談指令。Step S203, after the relay device 20 transmits the status information or the first chat command, the relay device 20 transmits a second chat command (ie, requests an interrupt command) to the first server 50, and interrupts after the transfer. The connection between the first server 50, wherein the second conversation command requests the first server 50 to disconnect the connection with the relay device 20. In this embodiment, the connection between the channel and the first server 50 is interrupted by the relay device 20 after a predetermined time has elapsed after the second conversation command is transmitted, wherein the predetermined time is 1 second or longer. 1 second is to ensure that the second chat command can be smoothly sent to the first server 50 to prevent the first server 50 from being turned off and the relay device before the second chat command is sent to the first server 50. The 20 channels cause the first server 50 to fail to receive the second talk command.

請配合圖3為第一伺服器50之作動流程。Please refer to FIG. 3 for the operation flow of the first server 50.

步驟S301,是接續於步驟S201連線之後,第一伺服器50等待接收中繼裝置20所傳來的資料。In step S301, after the connection is continued in step S201, the first server 50 waits to receive the data transmitted by the relay device 20.

步驟S302,第一伺服器50收到中繼裝置20所傳來的資料後,解析所收到的資料之類型,其中:Step S302, after receiving the data transmitted by the relay device 20, the first server 50 parses the type of the received data, where:

若為設備10的狀態資訊,則第一伺服器50將每次所接收的狀態資訊儲存於第一資料庫52並更新第一資料庫52中所對應之設備狀態,並將所對應之設備狀態資訊傳送到電子裝置40。回到步驟S301繼續等待接收中繼裝置20所傳來的資料。If it is the status information of the device 10, the first server 50 stores the received status information in the first database 52 and updates the device status corresponding to the first database 52, and the corresponding device status. Information is transmitted to the electronic device 40. Returning to step S301, it continues to wait for receiving the material transmitted from the relay device 20.

若為第一交談指令,則回到步驟S301繼續等待接收中繼裝置20所傳來的資料。If it is the first conversation command, the process returns to step S301 to continue waiting for the data transmitted by the relay device 20.

若為第二交談指令,代表完成資料的傳輸,第一伺服器50關閉與中繼裝置20間的通道,以中斷連線,等待該中繼裝置20再次連線或其它的中繼裝置20連線,藉此,讓第一伺服器50的連線資源釋出,在多個中繼裝置20的架構時,使其它的中繼裝置20可連線,而不會被原本連線的中繼裝置20所獨佔。If it is the second conversation command, on behalf of completing the transmission of the data, the first server 50 closes the channel with the relay device 20 to interrupt the connection, waiting for the relay device 20 to reconnect or other relay device 20 In this way, the connection resources of the first server 50 are released, and when the structure of the plurality of relay devices 20 is made, the other relay devices 20 can be connected without being relayed by the original connection. The device 20 is exclusive.

若非為設備10的狀態資訊、第一交談指令及第二交談指令之其中一者,代表所收到的資料格式不符,即資料於傳送過程中丟失,第一伺服器50傳送一第三交談指令(即請求中斷指令)至該中繼裝置20,並於傳送後中斷與該中繼裝置20間的連線,其中,該第三交談指令係請求該中繼裝置20中斷與該第一伺服器50之連線。本實施例中,係於傳送完該第三交談指令後經一預定時間始由第一伺服器50中斷與該中繼裝置20間之通道的連線,其中預定時間為1秒以上。1秒的時間係為了確保第三交談指令可以順利地送到中繼裝置20,以避免發生第三交談指令未送到中繼裝置20之前,中繼裝置20先關閉與第一伺服器50間之通道,導致中繼裝置20無法收到第三交談指令。中繼裝置20收到第三交談指令後,重回步驟S201,重新經區域網路與該第一伺服器50連線。If the status information of the device 10, the first conversation command, and the second conversation command are not representative of the received data format, that is, the data is lost during the transmission, the first server 50 transmits a third conversation command. (that is, requesting an interrupt instruction) to the relay device 20, and interrupting the connection with the relay device 20 after the transmission, wherein the third conversation command requests the relay device 20 to interrupt the first server 50 connection. In this embodiment, the connection between the channel and the relay device 20 is interrupted by the first server 50 after a predetermined time has elapsed after the third conversation command is transmitted, wherein the predetermined time is 1 second or longer. The time of 1 second is to ensure that the third conversation command can be smoothly sent to the relay device 20 to prevent the relay device 20 from being turned off and before the first server 50 before the third conversation command is sent to the relay device 20. The channel causes the relay device 20 to fail to receive the third talk command. After receiving the third conversation command, the relay device 20 returns to step S201 and reconnects to the first server 50 via the regional network.

在第二實施例中,係以第一實施例為基礎,於步驟S302中更包括,第一伺服器50判斷來自中繼裝置20的資料為狀態資訊與第一交談指令之其中一者時,第一伺服器50判斷目前第一資料庫52中是否有儲存來自電子裝置40之待傳送至任一設備10的控制指令:In the second embodiment, based on the first embodiment, in step S302, the first server 50 determines that the data from the relay device 20 is one of the status information and the first conversation command. The first server 50 determines whether there is currently a control command stored in the first database 52 from the electronic device 40 to be transmitted to any of the devices 10:

若是,則第一伺服器50傳送第一資料庫52所儲存的控制指令至中繼裝置20,中繼裝置20接收後,將控制指令發送至對應的設備10,令設備10進行對應的作動;If yes, the first server 50 transmits the control command stored in the first database 52 to the relay device 20. After receiving the relay device 20, the relay device 20 sends a control command to the corresponding device 10 to enable the device 10 to perform corresponding operations.

若否,則第一伺服器50傳送一第四交談指令至中繼裝置20,其中,第四交談指令係對應無待傳送至設備10的控制指令。If not, the first server 50 transmits a fourth talk command to the relay device 20, wherein the fourth talk command corresponds to a control command that is not to be transmitted to the device 10.

前述中,傳送控制指令或第四交談指令的時機可以在回到步驟301之前或之後進行。In the foregoing, the timing of transmitting the control command or the fourth chat command may be performed before or after returning to step 301.

上述第一、第二實施例中,係在步驟S202中繼裝置20傳送完狀態資訊或第一交談指令後,即進行步驟S203,如此一來,中繼裝置20無論有無儲存的狀態資訊皆會與第一伺服器50溝通,第一伺服器50可藉此判斷中繼裝置20是否有異常(例如中繼裝置20連線後皆未傳送任何資料或所傳送的資料格式不符),以確保資料傳輸的可靠度。當然,步驟S202可以執行至少一次,或在以下實施例中進行步驟S203之前,讓中繼裝置20多次傳送狀態資訊或第一交談指令。In the foregoing first and second embodiments, after the relay device 20 transmits the status information or the first conversation command in step S202, step S203 is performed, so that the relay device 20 will be stored with or without status information. Communicating with the first server 50, the first server 50 can determine whether the relay device 20 is abnormal (for example, the relay device 20 does not transmit any data after the connection is connected or the transmitted data format does not match) to ensure data. The reliability of the transmission. Of course, step S202 can be performed at least once, or before the step S203 is performed in the following embodiment, the relay device 20 is caused to transmit the status information or the first chat command a plurality of times.

圖4所示者為本發明第三較佳實施例之無線系統的資料傳輸方法,其具有大致相同於第一實施例之步驟,不同的是:FIG. 4 is a data transmission method of a wireless system according to a third preferred embodiment of the present invention, which has substantially the same steps as the first embodiment, except that:

步驟S401中包含,將該中繼裝置20中的該第一計數器202的數值設定為一第一起始值,本實施例中第一起始值為0。In step S401, the value of the first counter 202 in the relay device 20 is set to a first starting value. In this embodiment, the first starting value is 0.

步驟S402中包含,將該第一計數器202的數值經一預定運算後調整為另一數值,本實施例中係將第一計數器的數值加上一第一預定數值,第一預定數值以1為例。當然預定運算亦可為減去第一預定數值。In step S402, the value of the first counter 202 is adjusted to another value after a predetermined operation. In this embodiment, the value of the first counter is added to a first predetermined value, and the first predetermined value is 1 example. Of course, the predetermined operation may also be to subtract the first predetermined value.

步驟S403中包含,判斷該第一計數器202的數值是否達到一第一終止值:Step S403 includes: determining whether the value of the first counter 202 reaches a first termination value:

若是,則傳送該第二交談指令至該第一伺服器50,並於傳送後中斷與該第一伺服器50間的連線。本實施例中,係於傳送完該第二交談指令後經一預定時間始由中繼裝置20中斷與第一伺服器50間之通道的連線,其中預定時間為1秒以上。If so, the second chat command is transmitted to the first server 50, and the connection with the first server 50 is interrupted after the transfer. In this embodiment, the connection between the channel and the first server 50 is interrupted by the relay device 20 after a predetermined time has elapsed after the second conversation command is transmitted, wherein the predetermined time is 1 second or longer.

若否,回到步驟S402執行。If no, the process returns to step S402.

本實施例中第一終止值係以20為例,換言之,中繼裝置20與第一伺服器50連線後將會傳送20次狀態資訊或第一交談指令,除非如第一實施例步驟S302第一伺服器50所收到的資料非為設備10的狀態資訊、第一交談指令及第二交談指令之其中一者,傳送次數才會提前中斷。In this embodiment, the first termination value is taken as an example. In other words, the relay device 20 transmits the status information or the first conversation command 20 times after being connected to the first server 50, unless the step S302 is as in the first embodiment. The data received by the first server 50 is not one of the status information of the device 10, the first conversation command, and the second conversation command, and the number of transmissions is interrupted in advance.

藉此,讓每次中繼裝置20與第一伺服器50連線後,可多次傳送狀態資訊或第一交談指令。特別是應用於多個中繼裝置20的架構時,讓每個中繼裝置20與第一伺服器50連線後,都可以保有一定的傳送次數之權限。Thereby, each time the relay device 20 is connected to the first server 50, the status information or the first chat command can be transmitted multiple times. In particular, when applied to the architecture of the plurality of relay devices 20, each relay device 20 can maintain a certain number of transmission times after being connected to the first server 50.

在第四實施例中,係以第三實施例為基礎,無線系統的資料傳輸方法更包含,於中繼裝置20與無線基地台30連線經一段時間後,由中繼裝置20中斷與無線基地台30間的連線,並由該中繼裝置20重新與該無線基地台30連線。本實施例中,於中斷與無線基地台30間的連線後,中繼裝置20係先自我重新啟動,再由中繼裝置20重新與無線基地台30連線。如此,可以讓中繼裝置20與無線基地台30的連線更穩定,避免資料丟失。In the fourth embodiment, based on the third embodiment, the data transmission method of the wireless system further includes: after the relay device 20 and the wireless base station 30 are connected for a period of time, the relay device 20 interrupts and wirelessly The connection between the base stations 30 is reconnected to the wireless base station 30 by the relay device 20. In this embodiment, after the connection with the wireless base station 30 is interrupted, the relay device 20 first restarts itself, and then the relay device 20 reconnects with the wireless base station 30. In this way, the connection between the relay device 20 and the wireless base station 30 can be made more stable, and data loss can be avoided.

圖5A與圖5B所示者為本發明第五較佳實施例之無線系統的資料傳輸方法,其具有大致相同於第三實施例之步驟,不同的是:FIG. 5A and FIG. 5B are diagrams showing a data transmission method of a wireless system according to a fifth preferred embodiment of the present invention, which has substantially the same steps as the third embodiment, except that:

在步驟S501之前包含步驟S500,由該中繼裝置20與該無線基地台30連線,以及將中繼裝置20的第二計數器204的數值設定為一第二起始值,本實施例中第二起始值為0。Step S500 is included before step S501, the relay device 20 is connected to the wireless base station 30, and the value of the second counter 204 of the relay device 20 is set to a second starting value. In this embodiment, The second starting value is 0.

步驟S502中除了將第一計數器202的數值調整為另一數值之外,更包含將第二計數器204的數值經一預定運算後調整為另一數值,本實施例中係將第二計數器204的數值加上一第二預定數值,第二預定數值以1為例。當然預定運算亦可為減去第二預定數值。In step S502, in addition to adjusting the value of the first counter 202 to another value, the value of the second counter 204 is further adjusted to another value after a predetermined operation. In this embodiment, the second counter 204 is The value is added to a second predetermined value, and the second predetermined value is taken as an example. Of course, the predetermined operation can also be subtracted from the second predetermined value.

步驟S503於中繼裝置20中斷與第一伺服器50之間的連線後,更包含步驟S504(圖5B參照),由中繼裝置20判斷第二計數器204的數值是否達到一第二終止值:Step S503, after the relay device 20 interrupts the connection with the first server 50, further includes step S504 (refer to FIG. 5B), and the relay device 20 determines whether the value of the second counter 204 reaches a second end value. :

若是,由中繼裝置20中斷與該無線基地台30間的連線,並回到步驟S500執行。本實施例中,於中斷與無線基地台30間的連線後,中繼裝置20先自我重新啟動,再回到步驟S500執行。If so, the relay device 20 interrupts the connection with the wireless base station 30, and returns to step S500 for execution. In this embodiment, after the connection with the wireless base station 30 is interrupted, the relay device 20 first restarts itself, and then returns to step S500 for execution.

若否,回到步驟S501執行。If no, the process returns to step S501.

本實施例同樣可以達到讓中繼裝置20與無線基地台30連線經一段時間後重新連線之目的,讓中繼裝置20與無線基地台30的連線更穩定。In this embodiment, the connection between the relay device 20 and the wireless base station 30 can be reconnected after a period of time, and the connection between the relay device 20 and the wireless base station 30 is more stable.

圖6所示者為本發明第六較佳實施例之無線系統的資料傳輸方法,其具有大致相同於第一實施例之步驟,不同的是:FIG. 6 is a data transmission method of a wireless system according to a sixth preferred embodiment of the present invention, which has substantially the same steps as the first embodiment, and the difference is:

步驟S601中包含,由該中繼裝置20向該第一伺服器50取得一第一時間資料,本步驟中,係由中繼裝置20傳送一時間要求指令予第一伺服器50,第一伺服器50收到後,則回傳第一時間資料給中繼裝置20,其中,第一時間資料包含第一伺服器50目前的系統時間。Step S601 includes: receiving, by the relay device 20, a first time data to the first server 50. In this step, the relay device 20 transmits a time request command to the first server 50, the first servo. After receiving the device 50, the first time data is returned to the relay device 20, wherein the first time data includes the current system time of the first server 50.

步驟S603中包含,該中繼裝置20傳送該時間要求指令予第一伺服器50,以向該第一伺服器50取得包含第一伺服器50目前的系統時間之一第二時間資料,且中繼裝置20判斷第一時間資料與第二時間資料之間的時間差是否達到一第一預定時間差:Step S603 includes: the relay device 20 transmits the time request command to the first server 50, to obtain, from the first server 50, a second time data including one of the current system time of the first server 50, and The device 20 determines whether the time difference between the first time data and the second time data reaches a first predetermined time difference:

若是,則傳送第二交談指令至第一伺服器50,並於傳送後中斷與該第一伺服器50間的連線;本實施例中,係於傳送完該第二交談指令後經一預定時間始由中繼裝置20中斷與第一伺服器50間之通道的連線,其中預定時間為1秒以上;If yes, the second conversation command is transmitted to the first server 50, and the connection with the first server 50 is interrupted after the transmission; in this embodiment, after the second conversation command is transmitted, a reservation is made. The time is interrupted by the relay device 20 to disconnect the channel between the first server 50, wherein the predetermined time is more than 1 second;

若否,回到步驟S602執行。If no, the process returns to step S602.

本實施例中,中繼裝置20與第一伺服器50連線後,在對應該第一預定時間差之時段內,將會傳送多次狀態資訊或第一交談指令,除非如第一實施例步驟S302第一伺服器50所收到的資料非為設備的狀態資訊、第一交談指令及第二交談指令之其中一者,傳送次數才會提前中斷。藉此,讓每次中繼裝置20與第一伺服器50連線後,可多次傳送狀態資訊或第一交談指令。特別是應用於多個中繼裝置20的架構時,讓每個中繼裝置20與第一伺服器50連線後,都可以保有一定的傳送次數之權限。In this embodiment, after the relay device 20 is connected to the first server 50, the status information or the first conversation command will be transmitted multiple times during the period corresponding to the first predetermined time difference, unless the steps are as in the first embodiment. The data received by the first server 50 of the S302 is not one of the status information of the device, the first conversation command, and the second conversation command, and the number of transmissions is interrupted in advance. Thereby, each time the relay device 20 is connected to the first server 50, the status information or the first chat command can be transmitted multiple times. In particular, when applied to the architecture of the plurality of relay devices 20, each relay device 20 can maintain a certain number of transmission times after being connected to the first server 50.

本實施例的資料傳輸方法同樣可以如第四實施例,於中繼裝置20與無線基地台30連線經一段時間後,由中繼裝置20中斷與無線基地台30間的連線後,中繼裝置20先自我重新啟動,再由中繼裝置20重新與無線基地台30連線。如此,可以讓中繼裝置20與無線基地台30的連線更穩定,避免資料丟失。The data transmission method of this embodiment can also be the same as the fourth embodiment. After the relay device 20 and the wireless base station 30 are connected for a period of time, after the connection between the wireless base station 30 and the wireless base station 30 is interrupted by the relay device 20, After the device 20 first restarts itself, the relay device 20 reconnects with the wireless base station 30. In this way, the connection between the relay device 20 and the wireless base station 30 can be made more stable, and data loss can be avoided.

圖7A與圖7B所示者為本發明第七較佳實施例之無線系統的資料傳輸方法,其具有大致相同於第六實施例之步驟,不同的是:7A and FIG. 7B are data transmission methods of a wireless system according to a seventh preferred embodiment of the present invention, which have substantially the same steps as those of the sixth embodiment, except that:

在步驟S701之前包含步驟S700,由該中繼裝置20與該無線基地台30連線。Step S700 is included before step S701, and the relay device 20 is connected to the wireless base station 30.

經步驟S702後進行步驟S703,而步驟S703於中繼裝置20中斷與第一伺服器50之間的連線後,更包含步驟S704(圖7B參照),由中繼裝置20判斷該第一時間資料與該第二時間資料之間的時間差是否達到一第二預定時間差:After step S702, step S703 is performed. Step S703, after the relay device 20 interrupts the connection with the first server 50, further includes step S704 (refer to FIG. 7B), and the relay device 20 determines the first time. Whether the time difference between the data and the second time data reaches a second predetermined time difference:

若是,由中繼裝置20中斷與該無線基地台30間的連線,並回到步驟S700執行。本實施例中,於中斷與無線基地台30間的連線後,中繼裝置20係先自我重新啟動,再回到步驟S700執行。If so, the relay device 20 interrupts the connection with the wireless base station 30, and returns to step S700 to execute. In this embodiment, after the connection with the wireless base station 30 is interrupted, the relay device 20 restarts itself first, and then returns to step S700 to execute.

若否,回到步驟S701執行。If no, the process returns to step S701.

本實施例同樣可以達到讓中繼裝置20與無線基地台30連線經一段時間後重新連線之目的,讓中繼裝置20與無線基地台30的連線更穩定。In this embodiment, the connection between the relay device 20 and the wireless base station 30 can be reconnected after a period of time, and the connection between the relay device 20 and the wireless base station 30 is more stable.

圖8所示為本發明第八較佳實施例之無線系統,其係以第一實施例的無線系統為基礎,更包含一第二伺服器60,該第二伺服器60為遠端伺服器,其係位於遠端且連接到網際網路I,該第二伺服器60連接一第二資料庫62,該第二資料庫62係供同步使用,以及供儲存一待下載資料,該待下載資料包含下列資料的其中至少一者:第一伺服器50的軟體更新資料、中繼裝置20的軟體更新資料、設備10的軟體更新資料、通知訊息、第一伺服器50曾經上傳的設備之狀態資訊。第二伺服器60與第二資料庫62可於同一台伺服器主機或分別於二台伺服器主機上執行。使用者可以在第一伺服器50中設定是否允許該第一伺服器50與該第二伺服器60連線。FIG. 8 is a diagram showing a wireless system according to an eighth preferred embodiment of the present invention, which is based on the wireless system of the first embodiment, and further includes a second server 60, which is a remote server. The second server 60 is connected to a second database 62, and the second database 62 is used for synchronization, and for storing a to-be-downloaded data, the to-be-downloaded The data includes at least one of the following: the software update data of the first server 50, the software update data of the relay device 20, the software update data of the device 10, the notification message, and the status of the device that the first server 50 has uploaded. News. The second server 60 and the second database 62 can be executed on the same server host or on two server hosts. The user can set whether to allow the first server 50 to be connected to the second server 60 in the first server 50.

本實施例的資料傳輸方法包含有第一實施例之各步驟之外,於圖2之步驟S202中更包含第一伺服器50將所接收的至少一個該狀態資訊儲存於第一資料庫52中,以形成包含有至少一個該狀態資訊的一待上傳資料。The data transmission method of the embodiment includes the steps of the first embodiment. In step S202 of FIG. 2, the first server 50 further stores the received at least one status information in the first database 52. To form a to-be-published material containing at least one of the status information.

之後,該第一伺服器50判斷使用者設定允許該第一伺服器50與該第二伺服器60連線後,該第一伺服器50定期進行圖9所示之下列步驟:After the first server 50 determines that the user is allowed to connect the first server 50 to the second server 60, the first server 50 periodically performs the following steps as shown in FIG. 9:

由該第一伺服器50建立與該第二伺服器60之間的連線;Establishing a connection with the second server 60 by the first server 50;

該第一伺服器50是判斷是否有該待上傳資料需傳送至該第二伺服器60:The first server 50 determines whether the data to be uploaded needs to be transmitted to the second server 60:

若是,由該第一伺服器50將該待上傳資料傳送至該第二伺服器60;If yes, the first server 50 transmits the data to be uploaded to the second server 60;

若否,由該第一伺服器50傳送一下載資料指令至該第二伺服器60;If not, the first server 50 transmits a download data command to the second server 60;

該第二伺服器60進行圖10所示之下列步驟:The second server 60 performs the following steps as shown in FIG. 10:

由該第二伺服器60解析該第一伺服器50所傳來的資料,其中:The second server 60 parses the data transmitted by the first server 50, wherein:

所解析的資料為該待上傳資料時,該第二伺服器60將該待上傳資料儲存於該第二資料庫62,以供後續的資料分析;When the parsed data is the data to be uploaded, the second server 60 stores the to-be-uploaded data in the second database 62 for subsequent data analysis;

所解析的資料為該下載資料指令時,判斷有該待下載資料需傳送到該第一伺服器50時,則將該待下載資料傳送到該第一伺服器50;When the parsed data is the download data command, when it is determined that the data to be downloaded needs to be transmitted to the first server 50, the data to be downloaded is transmitted to the first server 50;

所解析的資料非為該待上傳資料與該下載資料指令之其中一者時,傳送一第五交談指令(即請求中斷指令)至該第一伺服器50,並於傳送後中斷與該第一伺服器50間的連線,其中,該第五交談指令係請求該第一伺服器50中斷與該第二伺服器60之連線。When the parsed data is not one of the to-be-uploaded data and the download data command, transmitting a fifth talk instruction (ie, requesting an interrupt instruction) to the first server 50, and interrupting the first server after the transfer The connection between the servers 50, wherein the fifth conversation command requests the first server 50 to disconnect the connection with the second server 60.

而後,該第一伺服器50進行圖11所示之下列步驟:Then, the first server 50 performs the following steps as shown in FIG. 11:

由該第一伺服器50解析該第二伺服器60所傳來的資料,其中:The first server 50 parses the data transmitted by the second server 60, wherein:

所解析的資料為該待下載資料時,該第一伺服器50將該待下載資料儲存於該第一資料庫52,以供進行後續的第一伺服器50的軟體更新資料、中繼裝置20的軟體更新資料、設備10的軟體更新資料、於顯示裝置(圖未示)顯示通知訊息、或將曾經上傳的狀態資訊取回;When the parsed data is the to-be-downloaded data, the first server 50 stores the to-be-downloaded data in the first database 52 for performing subsequent software update data of the first server 50 and the relay device 20 Software update data, software update data of the device 10, displaying a notification message on a display device (not shown), or retrieving status information that has been uploaded;

所解析的資料為對應該下載資料的一錯誤訊息時,則再傳送該下載資料指令至該第二伺服器60;其中該錯誤訊息代表該第一伺服器50所接收的該下載資料有誤,例如該下載資料不完整,由該第一伺服器50產生該錯誤訊息。When the parsed data is an error message corresponding to the downloaded data, the download data command is further transmitted to the second server 60; wherein the error message indicates that the downloaded data received by the first server 50 is incorrect. For example, the download data is incomplete, and the error message is generated by the first server 50.

所解析的資料非為該待下載資料與該錯誤訊息之其中一者時,傳送一第六交談指令(即請求中斷指令)至該第二伺服器60,並於傳送後中斷與該第二伺服器60間的連線,其中,該第六交談指令係請求該第二伺服器60中斷與該第一伺服器50之連線。When the parsed data is not one of the to-be-downloaded data and the error message, a sixth conversation command (ie, requesting an interrupt instruction) is transmitted to the second server 60, and the second servo is interrupted after the transmission. The connection between the controllers 60, wherein the sixth conversation command requests the second server 60 to disconnect from the first server 50.

藉此,讓位於用戶端的第一伺服器50可以將設備10的狀態資訊上傳至遠端儲存,以及取得第二伺服器60中的待下載資料。當使用者設定不允許該第一伺服器50與該第二伺服器60連線,則第一伺服器50不會將待上傳資料傳送到第二伺服器60中,以確保用戶端的隱私。本實施例的資料傳輸方法同樣可以應用於第一至第七實施例中。Thereby, the first server 50 located at the user end can upload the status information of the device 10 to the remote storage, and obtain the data to be downloaded in the second server 60. When the user setting does not allow the first server 50 to connect to the second server 60, the first server 50 does not transfer the data to be uploaded to the second server 60 to ensure the privacy of the client. The data transmission method of this embodiment can also be applied to the first to seventh embodiments.

據上所述,本發明無線系統的資料傳輸方法,可讓中繼裝置20即使無儲存的狀態資訊亦會傳送第一交談指令至第一伺服器50,讓第一伺服器50可藉此判斷中繼裝置20是否正常傳輸資料,以確保資料傳輸的可靠度。According to the above, the data transmission method of the wireless system of the present invention allows the relay device 20 to transmit the first conversation command to the first server 50 even if there is no stored status information, so that the first server 50 can determine Whether the relay device 20 normally transmits data ensures the reliability of data transmission.

以上所述僅為本發明較佳可行實施例而已,舉凡應用本發明說明書及申請專利範圍所為之等效變化,理應包含在本發明之專利範圍內。The above is only a preferred embodiment of the present invention, and equivalent changes to the scope of the present invention and the scope of the patent application are intended to be included in the scope of the present invention.

[本發明][this invention]

10‧‧‧設備10‧‧‧ Equipment

10a‧‧‧空調系統10a‧‧‧Air conditioning system

10b‧‧‧壁爐10b‧‧‧Fireplace

10c‧‧‧一氧化碳偵測器10c‧‧‧ Carbon monoxide detector

20‧‧‧中繼裝置20‧‧‧Relay device

202‧‧‧第一計數器202‧‧‧First counter

204‧‧‧第二計數器204‧‧‧Second counter

30‧‧‧無線基地台30‧‧‧Wireless base station

40‧‧‧電子裝置40‧‧‧Electronic devices

50‧‧‧第一伺服器50‧‧‧First server

52‧‧‧第一資料庫52‧‧‧First database

60‧‧‧第二伺服器60‧‧‧Second server

62‧‧‧第二資料庫62‧‧‧Second database

I‧‧‧網際網路I‧‧‧Internet

S201~S203‧‧‧步驟S201~S203‧‧‧Steps

S301、S302‧‧‧步驟S301, S302‧‧‧ steps

S401~S403‧‧‧步驟S401~S403‧‧‧Steps

S500~S504‧‧‧步驟S500~S504‧‧‧Steps

S601~S603‧‧‧步驟S601~S603‧‧‧Steps

S700~S704‧‧‧步驟S700~S704‧‧‧Steps

圖1為本發明第一較佳實施例無線系統之架構圖。 圖2為本發明第一較佳實施例之資料傳輸方法中繼裝置之作動流程圖。 圖3為本發明第一較佳實施例之資料傳輸方法第一伺服器之作動流程圖。 圖4為本發明第三較佳實施例之資料傳輸方法流程圖。 圖5A、圖5B為本發明第五較佳實施例之資料傳輸方法流程圖。 圖6為本發明第六較佳實施例之資料傳輸方法流程圖。 圖7A、圖7B為本發明第七較佳實施例之資料傳輸方法流程圖。 圖8為本發明第八較佳實施例無線系統之架構圖。 圖9~圖11為本發明第八較佳實施例之資料傳輸方法之部分流程圖。1 is a block diagram of a wireless system in accordance with a first preferred embodiment of the present invention. 2 is a flow chart showing the operation of the relay device of the data transmission method according to the first preferred embodiment of the present invention. 3 is a flow chart showing the operation of the first server of the data transmission method according to the first preferred embodiment of the present invention. 4 is a flow chart of a data transmission method according to a third preferred embodiment of the present invention. 5A and FIG. 5B are flowcharts of a data transmission method according to a fifth preferred embodiment of the present invention. FIG. 6 is a flowchart of a data transmission method according to a sixth preferred embodiment of the present invention. 7A and 7B are flowcharts of a data transmission method according to a seventh preferred embodiment of the present invention. FIG. 8 is a structural diagram of a wireless system according to an eighth preferred embodiment of the present invention. 9 to 11 are partial flowcharts of a data transmission method according to an eighth preferred embodiment of the present invention.

Claims (18)

一種無線系統的資料傳輸方法,其中該無線系統包含有一第一伺服器、一中繼裝置及至少一設備,該第一伺服器與該中繼裝置連線至區域網路,該中繼裝置訊號連接該設備,該中繼裝置供接收來自該設備的狀態資訊並儲存之;該資料傳輸方法包含有下列步驟: A、由該中繼裝置經區域網路與該第一伺服器連線,以供該中繼裝置與該第一伺服器相互傳輸資料; B、判斷該中繼裝置是否有儲存該設備所傳來的該狀態資訊: 若是,由該中繼裝置傳送該狀態資訊至該第一伺服器; 若否,由該中繼裝置傳送一第一交談指令至該第一伺服器,其中,該第一交談指令係對應無儲存該狀態資訊; C、傳送一第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線,其中,該第二交談指令係請求該第一伺服器中斷與該中繼裝置之連線。A data transmission method for a wireless system, wherein the wireless system includes a first server, a relay device, and at least one device, the first server and the relay device are connected to a regional network, and the relay device signal Connecting the device, the relay device is configured to receive status information from the device and store the same; the data transmission method includes the following steps: A. connecting, by the relay device, the first server via a regional network, The relay device and the first server mutually transmit data; B. determining whether the relay device stores the status information sent by the device: if yes, transmitting, by the relay device, the status information to the first a server, if not, transmitting, by the relay device, a first conversation command to the first server, wherein the first conversation command corresponds to not storing the status information; C, transmitting a second conversation command to the first a server, and disconnecting the connection with the first server after transmitting, wherein the second conversation command requests the first server to disconnect the connection with the relay device. 如請求項1所述之無線系統的資料傳輸方法,其中步驟A中包含,將該中繼裝置中的一第一計數器的數值設定為一第一起始值;步驟B中包含,將該第一計數器的數值經一預定運算後調整為另一數值;步驟C中係判斷該第一計數器的數值是否達到一第一終止值:若是,則傳送該第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線;若否,回到步驟B執行。The data transmission method of the wireless system of claim 1, wherein the step A includes: setting a value of a first counter in the relay device to a first start value; and including in step B, the first The value of the counter is adjusted to another value after a predetermined operation; in step C, it is determined whether the value of the first counter reaches a first end value: if yes, the second chat command is transmitted to the first server, and The connection with the first server is interrupted after the transfer; if not, the process returns to step B. 如請求項2所述之無線系統的資料傳輸方法,其中步驟C中係於傳送該第二交談指令後經一預定時間始中斷與該第一伺服器間的連線。The data transmission method of the wireless system of claim 2, wherein in step C, the connection with the first server is interrupted after a predetermined time period after transmitting the second conversation command. 如請求項2所述之無線系統的資料傳輸方法,其中該無線系統包含有一無線基地台,連線至區域網路且供該中繼裝置透過Wi-Fi訊號連線;該資料傳輸方法包含於該中繼裝置與該無線基地台連線經一段時間後,該中繼裝置中斷與該無線基地台間的連線,並由該中繼裝置重新與該無線基地台連線。The data transmission method of the wireless system of claim 2, wherein the wireless system includes a wireless base station, connected to the regional network, and the relay device is connected through the Wi-Fi signal; the data transmission method is included in After the relay device is connected to the wireless base station for a period of time, the relay device interrupts the connection with the wireless base station, and the relay device reconnects with the wireless base station. 如請求項2所述之無線系統的資料傳輸方法,其中該無線系統包含有一無線基地台,連線至區域網路且供該中繼裝置透過Wi-Fi訊號連線;步驟A之前包含,由該中繼裝置與該無線基地台連線,以及將該中繼裝置中的一第二計數器的數值設定為一第二起始值;步驟B中包含,將該第二計數器的數值經一預定運算後調整為另一數值;步驟C之後包含判斷該第二計數器的數值達到一第二終止值時,由該中繼裝置中斷與該無線基地台間的連線,再回到步驟A之前執行由該中繼裝置重新與該無線基地台連線且將該第二計數器的數值設定為該第二起始值。The data transmission method of the wireless system of claim 2, wherein the wireless system comprises a wireless base station, connected to the regional network and connected by the relay device via a Wi-Fi signal; The relay device is connected to the wireless base station, and the value of a second counter in the relay device is set to a second starting value; in step B, the value of the second counter is predetermined After the operation is adjusted to another value; after the step C includes determining that the value of the second counter reaches a second end value, the relay device interrupts the connection with the wireless base station, and then returns to the step A before execution. The relay device reconnects with the wireless base station and sets the value of the second counter to the second starting value. 如請求項5所述之無線系統的資料傳輸方法,其中步驟C之後在該中繼裝置中斷與該無線基地台間的連線後,係先重新啟動該中繼裝置,再回到步驟A之前執行由該中繼裝置重新與該無線基地台連線且將該第二計數器的數值設定為該第二起始值。The data transmission method of the wireless system according to claim 5, wherein after the relay device interrupts the connection with the wireless base station after the step C, the relay device is restarted before returning to step A. The relay device re-connects to the wireless base station and sets the value of the second counter to the second start value. 如請求項5所述之無線系統的資料傳輸方法,其中步驟C之後包含判斷該第二計數器的數值未達到該第二終止值時,回到步驟B執行。The data transmission method of the wireless system of claim 5, wherein the step C is followed by determining that the value of the second counter does not reach the second termination value, and returning to step B for execution. 如請求項1所述之無線系統的資料傳輸方法,其中步驟A中包含,由該中繼裝置向該第一伺服器取得一第一時間資料;步驟C中包含由該中繼裝置向該第一伺服器取得一第二時間資料,且係判斷該第一時間資料與該第二時間資料之間的時間差是否達到一第一預定時間差:若是,則傳送該第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線;若否,回到步驟B執行。The data transmission method of the wireless system of claim 1, wherein the step A includes: obtaining, by the relay device, a first time data from the first server; and the step C includes: a server obtains a second time data, and determines whether the time difference between the first time data and the second time data reaches a first predetermined time difference: if yes, transmitting the second chat command to the first servo And disconnecting the connection with the first server after the transmission; if not, returning to step B for execution. 如請求項8所述之無線系統的資料傳輸方法,其中步驟C中係於傳送該第二交談指令後經一預定時間始中斷與該第一伺服器間的連線。The data transmission method of the wireless system of claim 8, wherein in step C, the connection with the first server is interrupted after a predetermined time period after transmitting the second conversation command. 如請求項8所述之無線系統的資料傳輸方法,其中該無線系統包含有一無線基地台,連線至區域網路且供該中繼裝置透過Wi-Fi訊號連線;該資料傳輸方法包含於該中繼裝置與該無線基地台連線經一段時間後,該中繼裝置中斷與該無線基地台間的連線,再由該中繼裝置重新與該無線基地台連線。The data transmission method of the wireless system of claim 8, wherein the wireless system includes a wireless base station, connected to the regional network, and the relay device is connected through the Wi-Fi signal; the data transmission method is included in After the relay device is connected to the wireless base station for a period of time, the relay device interrupts the connection with the wireless base station, and the relay device reconnects with the wireless base station. 如請求項8所述之無線系統的資料傳輸方法,其中該無線系統包含有一無線基地台,連線至區域網路且供該中繼裝置透過Wi-Fi訊號連線;步驟A之前包含,由該中繼裝置與該無線基地台連線;步驟C之後包含判斷該第一時間資料與該第二時間資料之間的時間差達到一第二預定時間差時,由該中繼裝置中斷與該無線基地台間的連線,再回到步驟A之前執行由該中繼裝置重新與該無線基地台連線。The data transmission method of the wireless system of claim 8, wherein the wireless system comprises a wireless base station, connected to the regional network and connected by the relay device via a Wi-Fi signal; The relay device is connected to the wireless base station; and after the step C includes determining that the time difference between the first time data and the second time data reaches a second predetermined time difference, the relay device interrupts the wireless base The connection between the stations is returned to the wireless base station by the relay device before returning to step A. 如請求項11所述之無線系統的資料傳輸方法,其中步驟C之後在該中繼裝置中斷與該無線基地台間的連線後,係先重新啟動該中繼裝置,再回到步驟A之前執行由該中繼裝置重新與該無線基地台連線。The data transmission method of the wireless system of claim 11, wherein after the relay device interrupts the connection with the wireless base station, the relay device is restarted before returning to step A. The connection is re-connected to the wireless base station by the relay device. 如請求項1所述之無線系統的資料傳輸方法,其中步驟B之後包含,由該第一伺服器判斷來自該中繼裝置的資料非為該狀態資訊、該第一交談指令與該第二交談指令之其中一者時,傳送一第三交談指令至該中繼裝置,並於傳送後中斷與該中繼裝置間的連線,其中,該第三交談指令係請求該中繼裝置中斷與該第一伺服器之連線。The data transmission method of the wireless system of claim 1, wherein the step B includes: determining, by the first server, that the data from the relay device is not the status information, the first conversation command and the second conversation And transmitting, by the relay device, a third conversation command to the relay device, and interrupting the connection with the relay device after the transmission, wherein the third conversation command requests the relay device to interrupt the The connection of the first server. 如請求項13所述之無線系統的資料傳輸方法,其中步驟B之後包含,該中繼裝置收到該第三交談指令後,重新回到步驟A執行。The data transmission method of the wireless system according to claim 13, wherein after the step B, the relay device returns to the step A after receiving the third conversation instruction. 如請求項13所述之無線系統的資料傳輸方法,其中步驟B之後,係於傳送該第三交談指令後經一預定時間始由該第一伺服器中斷與該中繼裝置間的連線。The data transmission method of the wireless system of claim 13, wherein after the step B, the connection between the relay device and the relay device is interrupted by the first server after a predetermined time. 如請求項1所述之無線系統的資料傳輸方法,其中該中繼裝置供傳送控制指令至該設備;步驟B之後包含,由該第一伺服器判斷來自該中繼裝置的資料為該狀態資訊與該第一交談指令之其中一者時,由該第一伺服器判斷是否有儲存待傳送至該設備的控制指令: 若是,傳送所儲存的控制指令至該中繼裝置; 若否,傳送一第四交談指令至該中繼裝置,其中,該第四交談指令係對應無待傳送至該設備的控制指令。The data transmission method of the wireless system of claim 1, wherein the relay device is configured to transmit a control command to the device; and after step B, the first server determines that the data from the relay device is the status information. And one of the first conversation instructions, the first server determines whether there is a control instruction to store the device to be transmitted to the device: if yes, transmitting the stored control command to the relay device; if not, transmitting one The fourth conversation command is to the relay device, wherein the fourth chat command corresponds to a control command that is not to be transmitted to the device. 如請求項1所述之無線系統的資料傳輸方法,其中該無線系統包含有一第二伺服器,該第二伺服器與該第一伺服器分別連線至網際網路;該資料傳輸方法於步驟B中包含由該第一伺服器儲存該狀態資訊,以形成包含有該狀態資訊的一待上傳資料;步驟B之後包含: 判斷使用者允許該第一伺服器與該第二伺服器連線後,進行下列步驟: 由該第一伺服器建立與該第二伺服器之間的連線; 判斷該第一伺服器是否有該待上傳資料需傳送至該第二伺服器: 若是,由該第一伺服器將該待上傳資料傳送至該第二伺服器; 若否,由該第一伺服器傳送一下載資料指令至該第二伺服器; 由該第二伺服器解析該第一伺服器所傳來的資料,其中: 所解析的資料為該待上傳資料時,將該待上傳資料儲存之; 所解析的資料為該下載資料指令時,判斷有一待下載資料需傳送到該第一伺服器時,則將該待下載資料傳送到該第一伺服器; 所解析的資料非為該待上傳資料與該下載資料指令之其中一者時,傳送一第五交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線,其中,該第五交談指令係請求該第一伺服器中斷與該第二伺服器之連線。The data transmission method of the wireless system of claim 1, wherein the wireless system includes a second server, the second server and the first server are respectively connected to the Internet; the data transmission method is in the step The B includes storing the status information by the first server to form a to-be-displayed data including the status information. The step B includes: determining that the user allows the first server to connect with the second server Performing the following steps: establishing, by the first server, a connection with the second server; determining whether the first server has the to-be-uploaded data to be transmitted to the second server: If yes, by the first a server transmits the data to be uploaded to the second server; if not, the first server transmits a download data command to the second server; and the second server parses the first server The information transmitted, wherein: the parsed data is the data to be uploaded, and the data to be uploaded is stored; when the parsed data is the download data command, it is determined that there is a to-be-downloaded data to be transmitted to the a server, the data to be downloaded is transmitted to the first server; when the parsed data is not one of the data to be uploaded and the download data command, a fifth conversation command is transmitted to the first And the server disconnects the connection with the first server after the transmission, wherein the fifth conversation command requests the first server to disconnect the connection with the second server. 如請求項17所述之無線系統的資料傳輸方法,包含下列步驟: 由該第一伺服器解析該第二伺服器所傳來的資料,其中: 所解析的資料為該待下載資料時,將該待下載資料儲存之; 所解析的資料為對應該待下載資料的一錯誤訊息時,則再傳送該下載資料指令至該第二伺服器; 所解析的資料非為該待下載資料與該錯誤訊息之其中一者時,傳送一第六交談指令至該第二伺服器,並於傳送後中斷與該第二伺服器間的連線,其中,該第六交談指令係請求該第二伺服器中斷與該第一伺服器之連線。The data transmission method of the wireless system of claim 17, comprising the steps of: parsing, by the first server, the data transmitted by the second server, wherein: when the parsed data is the to-be-downloaded data, The data to be downloaded is stored; if the parsed data is an error message corresponding to the data to be downloaded, the download data command is transmitted to the second server; the parsed data is not the data to be downloaded and the error Transmitting a sixth conversation command to the second server, and interrupting the connection with the second server after the transmission, wherein the sixth conversation command requests the second server Interrupt the connection with the first server.
TW106126321A 2017-08-04 2017-08-04 Wireless system data transmission method TWI650974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106126321A TWI650974B (en) 2017-08-04 2017-08-04 Wireless system data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106126321A TWI650974B (en) 2017-08-04 2017-08-04 Wireless system data transmission method

Publications (2)

Publication Number Publication Date
TWI650974B TWI650974B (en) 2019-02-11
TW201911816A true TW201911816A (en) 2019-03-16

Family

ID=66213639

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106126321A TWI650974B (en) 2017-08-04 2017-08-04 Wireless system data transmission method

Country Status (1)

Country Link
TW (1) TWI650974B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7301952B2 (en) * 2000-04-06 2007-11-27 The Distribution Systems Research Institute Terminal-to-terminal communication connection control method using IP transfer network
US9042296B2 (en) * 2009-07-23 2015-05-26 Qualcomm Incorporated Synchronization of devices in a wireless communication network
CN104660312A (en) * 2013-11-25 2015-05-27 上海益尚信息科技有限公司 Novel full-rate transmission method for establishing connection between mobile terminal and base stations in MIMO system
TWI540906B (en) * 2014-10-03 2016-07-01 Grand Mate Co Ltd Coordinated Method of Near - end and Remote Control for Wireless System
CN106559798A (en) * 2015-09-28 2017-04-05 中兴通讯股份有限公司 A kind of radio relay method, radio repeater station and wireless relay system

Also Published As

Publication number Publication date
TWI650974B (en) 2019-02-11

Similar Documents

Publication Publication Date Title
JP6751094B2 (en) Method, apparatus and system for supporting wireless communication
EP3556116B1 (en) Apparatus, system and method for promoting apps to smart devices
US10203924B2 (en) Display apparatus, controlling method thereof and controlling method of display system
EP3298753B1 (en) Renewing registrations for client applications installed on different proximate client devices
WO2022089088A1 (en) Display device, mobile terminal, screen-casting data transmission method, and transmission system
US20200169774A1 (en) Control method and device
CN108306796B (en) Intelligent home system, and information processing method and device of intelligent home equipment
EP3227758B1 (en) Wireless docking system for audio-video relay
CN110012527B (en) Awakening method and electronic equipment
CN103634657A (en) Television and mobile terminal synchronous WIFI connection setup method and device
KR20140146004A (en) Method and apparatus for displaying application data in wireless communication system
JP2014131143A (en) Transmitter, transmitting method and program
JP2005301913A (en) Communication system, information processing terminal and communication method
TWI650974B (en) Wireless system data transmission method
TWI647931B (en) Wireless system data transmission method
TWI647929B (en) Wireless system data transmission method
CN109391652B (en) Data transmission method for radio system
CN109547913B (en) Data transmission method for radio system
EP3229446B1 (en) Application interaction method, device and terminal
CN109391519B (en) Data transmission method for radio system
US9584627B2 (en) Control device, control system, and control method
JP2014230064A (en) Communication system, server device, communication method, and program
CN108025209B (en) Wireless control of streaming computing devices
US20230345560A1 (en) Wireless communication device and wireless communication method
US20230388145A1 (en) Systems and methods for controlling grilling appliances via edge computing platforms