TWI650974B - Wireless system data transmission method - Google Patents

Wireless system data transmission method Download PDF

Info

Publication number
TWI650974B
TWI650974B TW106126321A TW106126321A TWI650974B TW I650974 B TWI650974 B TW I650974B TW 106126321 A TW106126321 A TW 106126321A TW 106126321 A TW106126321 A TW 106126321A TW I650974 B TWI650974 B TW I650974B
Authority
TW
Taiwan
Prior art keywords
server
relay device
data
command
connection
Prior art date
Application number
TW106126321A
Other languages
Chinese (zh)
Other versions
TW201911816A (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 for a wireless system, the wireless system includes a first server, a relay device, and at least one device, the method comprising: the relay device is connected to the first server via a regional network; and determining whether the relay device is Having status information transmitted from the storage device, if yes, transmitting status information to the first server; if not, transmitting a first conversation command to the first server, wherein the first conversation command corresponds to no storage status information; A second conversation command is sent to the first server, and the connection with the first server is interrupted after the transmission, wherein the second conversation command requests the first server to disconnect the connection with the relay device. The first server can thereby determine whether the relay device has normal transmission data to ensure the 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 data will be lost, resulting in the server. It is not known whether the relay has 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.

有鑑於此,本發明之目的在於提供一種無線系統的資料傳輸方法,可確保資料傳輸的可靠度。 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.

緣以達成上述目的,本發明提供的一種無線系統的資料傳輸方法,其中該無線系統包含有一第一伺服器、一中繼裝置及至少一設備,該第一伺服器與該中繼裝置連線至區域網路,該中繼裝置訊號連接該設備,該中繼裝置供接收來自該設備的狀態資訊並儲存之;該資料傳輸方法包含有下列步驟:A、由該中繼裝置經區域網路與該第一伺服器連線;B、判斷該中繼裝置是否有儲存該設備所傳來的該狀態資訊:若是,由該中繼裝置傳送該狀態資訊至該第一伺服器;若否,由該中繼裝置傳送一第一交談指令至該第一伺服器,其中,該第一交談指令係對應無儲存該狀態資訊;C、傳送一第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線,其中,該第二交談指令係請求該第一伺服器中斷與該中繼裝置之連線。 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.

〔本發明〕 〔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為本發明第一較佳實施例無線系統之架構圖。 1 is a block diagram of a wireless system in accordance with a first preferred embodiment of the present invention.

圖2為本發明第一較佳實施例之資料傳輸方法中繼裝置之作動流程圖。 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為本發明第一較佳實施例之資料傳輸方法第一伺服器之作動流程圖。 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為本發明第三較佳實施例之資料傳輸方法流程圖。 4 is a flow chart of a data transmission method according to a third preferred embodiment of the present invention.

圖5A、圖5B為本發明第五較佳實施例之資料傳輸方法流程圖。 5A and FIG. 5B are flowcharts of a data transmission method according to a fifth preferred embodiment of the present invention.

圖6為本發明第六較佳實施例之資料傳輸方法流程圖。 FIG. 6 is a flowchart of a data transmission method according to a sixth preferred embodiment of the present invention.

圖7A、圖7B為本發明第七較佳實施例之資料傳輸方法流程圖。 7A and 7B are flowcharts of a data transmission method according to a seventh preferred embodiment of the present invention.

圖8為本發明第八較佳實施例無線系統之架構圖。 FIG. 8 is a structural diagram of a wireless system according to an eighth preferred embodiment of the present invention.

圖9~圖11為本發明第八較佳實施例之資料傳輸方法之部分流程圖。 9 to 11 are partial flowcharts of a data transmission method according to an eighth preferred embodiment of the present invention.

為能更清楚地說明本發明,茲舉一較佳實施例並配合圖式詳細說明如後。為能更清楚地說明本發明,茲舉較佳實施例並配合圖示詳細說明如後。請參閱圖1,為本發明第一較佳實施例之無線系統,包含有至少一設備10、一中繼裝置20、一無線基地台(Access Point)30、一電子裝置40及一第一伺服器50。其中:至少一設備10的數量於本實施例中為複數個,該些設備10位於用戶端,包括可受控的設備及偵測設備,本實施例中可受控設備係以空調系統10a、壁爐10b為例,偵測設備係以一氧化碳偵測器10c為例。各該設備10透過RF(Radio frequency)訊號與中繼裝置20訊號連接,但不以此為限,亦可透過Wi-Fi、Zigbee、藍牙、紅外線等訊號連接。可受控設備係接收控制指令而進行對應的作動,例如:開啟、關閉、調整溫度等,且可受控設備亦將本身的狀態資訊編譯成RF訊號後發送,所述之狀 態資訊可為目前設備10的開啟或關閉狀態、目前的溫度、異常訊息等資訊。偵測設備同樣會將狀態資訊編譯成RF訊號後發送,所述之狀態資訊可為所偵測的物理量,例如:一氧化碳濃度。 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. The number of the at least one device 10 is a plurality of devices in the embodiment, and the devices 10 are located at the user end, and include a controllable device and a detecting device. In this embodiment, the control device is an air conditioning system 10a. The fireplace 10b is taken as an example, and 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 the state information of the device into an RF signal and sends the same. The status information may be information such as the current state of the device 10 being turned on or off, the current temperature, and an abnormal message. 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. For recording the control command sent by the electronic device 40, 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.

藉由上述之架構,即可進行本實施例的資料傳輸方法,該方法包含有下列步驟,其中:請配合圖2,為中繼裝置20之作動流程: With the above architecture, the data transmission method of the embodiment can be performed. The method includes the following steps, wherein: in conjunction with FIG. 2, the operation process of the relay device 20 is as follows:

步驟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所傳來的狀態資訊:若是,由該中繼裝置20傳送所儲存的狀態資訊至該第一伺服器50;若否,由該中繼裝置20傳送一第一交談指令至該第一伺服器50,其中,該第一交談指令係對應目前中繼裝置20無儲存任一設備10的狀態資訊,亦即,向第一伺服器50表示目無狀態資訊可上傳第一伺服器50。 Step S202, the relay device 20 determines whether there is currently stored state information transmitted by any device 10: if yes, the relay device 20 transmits the stored state information to the first server 50; if not, by The relay device 20 transmits a first conversation command to the first server 50, wherein the first conversation command corresponds to the state information of the current relay device 20 not storing any device 10, that is, to the first servo. The device 50 indicates that the stateless information can be uploaded 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 time is to ensure that the second chat command can be smoothly sent to the first server 50 to avoid the second occurrence Before the conversation command is sent to the first server 50, the first server 50 first closes the channel with the relay device 20, causing the first server 50 to fail to receive the second conversation 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所傳來的資料後,解析所收到的資料之類型,其中:若為設備10的狀態資訊,則第一伺服器50將每次所接收的狀態資訊儲存於第一資料庫52並更新第一資料庫52中所對應之設備狀態,並將所對應之設備狀態資訊傳送到電子裝置40。回到步驟S301繼續等待接收中繼裝置20所傳來的資料。 Step S302, after receiving the data transmitted by the relay device 20, the first server 50 parses the type of the received data, wherein: if it is the status information of the device 10, the first server 50 will each time The received status information is stored 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, after the third conversation command is transmitted, the first server is started after a predetermined time. 50 interrupts the connection with the channel between the relay device 20, wherein the predetermined time is more than 1 second. 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的控制指令:若是,則第一伺服器50傳送第一資料庫52所儲存的控制指令至中繼裝置20,中繼裝置20接收後,將控制指令發送至對應的設備10,令設備10進行對應的作動;若否,則第一伺服器50傳送一第四交談指令至中繼裝置20,其中,第四交談指令係對應無待傳送至設備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: if yes, the first server 50 transmits the control stored in the first database 52. Commanding to the relay device 20, after receiving the relay device 20, transmitting the control command to the corresponding device 10, causing the device 10 to perform corresponding operations; if not, the first server 50 transmits a fourth talk command to the relay. Apparatus 20, wherein the fourth talk command corresponds to a control command that is not to be transmitted to 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的數值是否達到一第一終止值:若是,則傳送該第二交談指令至該第一伺服器50,並於傳送後中斷與該第一伺服器50間的連線。本實施例中,係於傳送完該第二交談指令後經一預定時間始由中繼裝置20中斷與第一伺服器50間之通道的連線,其中預定時間為1秒以上。 Step S403 includes: determining whether the value of the first counter 202 reaches a first end value: if yes, transmitting the second chat command to the first server 50, and interrupting the first server 50 after the transmitting The connection between the two. 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的數值是否達到一第二終止值:若是,由中繼裝置20中斷與該無線基地台30間的連線,並回到步驟S500執行。本實施例中,於中斷與無線基地台30間的連線後,中繼裝置20先自我重新啟動,再回到步驟S500執行。 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. 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判斷第一時間資料與第二時間資料之間的時間差是否達到一第一預定時間差:若是,則傳送第二交談指令至第一伺服器50,並於傳送後中斷與該第一伺服器50間的連線;本實施例中,係於傳送完該第二交談指令後經一預定時間始由中繼裝置20中斷與第一伺服器50間之通道的連線,其中預定時間為1秒以上;若否,回到步驟S602執行。 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: if yes, transmitting the second chat command to the first server 50, and interrupting the first servo after the transmitting In the embodiment, the connection between the channel and the first server 50 is interrupted by the relay device 20 after a predetermined time is transmitted after the second conversation command is transmitted, wherein the predetermined time is 1 second or longer; if not, return to step S602 to execute.

本實施例中,中繼裝置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. Especially when applied to the architecture of a plurality of relay devices 20, let each After the relay device 20 is connected to the first server 50, it can maintain a certain number of transmission times.

本實施例的資料傳輸方法同樣可以如第四實施例,於中繼裝置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判斷該第一時間資料與該第二時間資料之間的時間差是否達到一第二預定時間差:若是,由中繼裝置20中斷與該無線基地台30間的連線,並回到步驟S700執行。本實施例中,於中斷與無線基地台30間的連線後,中繼裝置20係先自我重新啟動,再回到步驟S700執行。 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: if so, the connection with the wireless base station 30 is interrupted by the relay device 20, and the process returns to step S700. 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, the second server 60 The remote server is remotely located and connected to the Internet I. The second server 60 is connected to a second database 62. The second database 62 is used for synchronization, and is stored for download. The information to be downloaded includes at least one of the following materials: 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 first server 50. Status information of the uploaded device. 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所示之下列步驟:由該第一伺服器50建立與該第二伺服器60之間的連線;該第一伺服器50是判斷是否有該待上傳資料需傳送至該第二伺服器60:若是,由該第一伺服器50將該待上傳資料傳送至該第二伺服器60;若否,由該第一伺服器50傳送一下載資料指令至該第二伺服器60;該第二伺服器60進行圖10所示之下列步驟: 由該第二伺服器60解析該第一伺服器50所傳來的資料,其中:所解析的資料為該待上傳資料時,該第二伺服器60將該待上傳資料儲存於該第二資料庫62,以供後續的資料分析;所解析的資料為該下載資料指令時,判斷有該待下載資料需傳送到該第一伺服器50時,則將該待下載資料傳送到該第一伺服器50;所解析的資料非為該待上傳資料與該下載資料指令之其中一者時,傳送一第五交談指令(即請求中斷指令)至該第一伺服器50,並於傳送後中斷與該第一伺服器50間的連線,其中,該第五交談指令係請求該第一伺服器50中斷與該第二伺服器60之連線。 After the first server 50 determines that the user setting allows the first server 50 to be connected to the second server 60, the first server 50 periodically performs the following steps as shown in FIG. 9: by the first The server 50 establishes a connection with the second server 60. The first server 50 determines whether the data to be uploaded needs to be transmitted to the second server 60: if yes, by the first server 50 Transmitting the data to be uploaded to the second server 60; if not, transmitting a download data command to the second server 60 by the first server 50; the second server 60 performs the following steps as shown in FIG. step: The second server 60 parses the data sent by the first server 50, wherein: when the parsed data is the data to be uploaded, the second server 60 stores the to-be-uploaded data in the second data. The library 62 is configured for subsequent data analysis; when the parsed data is the download data command, when it is determined that the to-be-downloaded data needs to be transmitted to the first server 50, the data to be downloaded is transmitted to the first servo. The device 50 transmits a fifth conversation command (ie, requests an interrupt instruction) to the first server 50 when the data to be parsed is not one of the data to be uploaded and the download data command, and is interrupted after the transmission. The connection between the first server 50, wherein the fifth conversation command requests the first server 50 to disconnect from the second server 60.

而後,該第一伺服器50進行圖11所示之下列步驟:由該第一伺服器50解析該第二伺服器60所傳來的資料,其中:所解析的資料為該待下載資料時,該第一伺服器50將該待下載資料儲存於該第一資料庫52,以供進行後續的第一伺服器50的軟體更新資料、中繼裝置20的軟體更新資料、設備10的軟體更新資料、於顯示裝置(圖未示)顯示通知訊息、或將曾經上傳的狀態資訊取回;所解析的資料為對應該下載資料的一錯誤訊息時,則再傳送該下載資料指令至該第二伺服器60;其中該錯誤訊息代表該第一伺服器50所接收的該下載資料有誤,例如該下載資料不完整,由該第一伺服器50產生該錯誤訊息。 Then, the first server 50 performs the following steps as shown in FIG. 11 : the first server 50 parses the data transmitted by the second server 60, wherein: when the parsed data is the data to be downloaded, 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, software update data of the relay device 20, and software update data of the device 10. Displaying a notification message on the display device (not shown) or retrieving the status information that was once uploaded; if the parsed data is an error message corresponding to the downloaded data, then transmitting the download data command to the second servo The error message indicates that the downloaded data received by the first server 50 is incorrect. For example, the downloaded 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.

Claims (17)

一種無線系統的資料傳輸方法,其中該無線系統包含有一第一伺服器、一中繼裝置及至少一設備,該第一伺服器與該中繼裝置連線至區域網路,該中繼裝置訊號連接該設備,該中繼裝置供接收來自該設備的狀態資訊並儲存之;該資料傳輸方法包含有下列步驟:A、由該中繼裝置經區域網路與該第一伺服器連線,以供該中繼裝置與該第一伺服器相互傳輸資料;B、判斷該中繼裝置是否有儲存該設備所傳來的該狀態資訊:若是,由該中繼裝置傳送該狀態資訊至該第一伺服器;若否,由該中繼裝置傳送一第一交談指令至該第一伺服器,其中,該第一交談指令係對應無儲存該狀態資訊;C、傳送一第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線,其中,該第二交談指令係請求該第一伺服器中斷與該中繼裝置之連線;其中,步驟A中包含,將該中繼裝置中的一第一計數器的數值設定為一第一起始值;步驟B中包含,將該第一計數器的數值經一預定運算後調整為另一第一數值;步驟C中係判斷該第一計數器的數值是否達到一第一終止值:若是,則傳送該第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線;若否,回到步驟B執行。 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 data; the data transmission method includes the following steps: A. connecting, by the relay device, the first server to the first server 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 the transmission, wherein the second conversation command requests the first server to disconnect the connection with the relay device; wherein the step A includes , Setting the value of a first counter in the relay device to a first starting value; in step B, the value of the first counter is adjusted to another first value after a predetermined operation; Determining whether the value of the first counter reaches a first termination value: if yes, transmitting the second conversation command to the first server, and interrupting the connection with the first server after the transmission; if not, Go back to step B to execute. 如請求項1所述之無線系統的資料傳輸方法,其中步驟C中係於傳送該第二交談指令後經一預定時間始中斷與該第一伺服器間的連線。 The data transmission method of the wireless system according to claim 1, wherein in step C, the connection with the first server is interrupted after a predetermined time period after transmitting the second conversation command. 如請求項1所述之無線系統的資料傳輸方法,其中該無線系統包含有一無線基地台,連線至區域網路且供該中繼裝置透過Wi-Fi訊 號連線;該資料傳輸方法包含於該中繼裝置與該無線基地台連線經一段時間後,該中繼裝置中斷與該無線基地台間的連線,並由該中繼裝置重新與該無線基地台連線。 The data transmission method of the wireless system of claim 1, wherein the wireless system includes a wireless base station, connected to the regional network, and the relay device transmits the Wi-Fi signal. The data transmission method is included after the relay device is connected to the wireless base station for a period of time, and the relay device interrupts the connection with the wireless base station, and the relay device re-connects with the wireless base station. Wireless base station connection. 如請求項1所述之無線系統的資料傳輸方法,其中該無線系統包含有一無線基地台,連線至區域網路且供該中繼裝置透過Wi-Fi訊號連線;步驟A之前包含,由該中繼裝置與該無線基地台連線,以及將該中繼裝置中的一第二計數器的數值設定為一第二起始值;步驟B中包含,將該第二計數器的數值經一預定運算後調整為另一第二數值;步驟C之後包含判斷該第二計數器的數值達到一第二終止值時,由該中繼裝置中斷與該無線基地台間的連線,再回到步驟A之前執行由該中繼裝置重新與該無線基地台連線且將該第二計數器的數值設定為該第二起始值。 The data transmission method of the wireless system of claim 1, 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 second 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 step A. It is previously performed by the relay device to reconnect with the wireless base station and set the value of the second counter to the second starting value. 如請求項4所述之無線系統的資料傳輸方法,其中步驟C之後在該中繼裝置中斷與該無線基地台間的連線後,係先重新啟動該中繼裝置,再回到步驟A之前執行由該中繼裝置重新與該無線基地台連線且將該第二計數器的數值設定為該第二起始值。 The data transmission method of the wireless system according to claim 4, 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. 如請求項4所述之無線系統的資料傳輸方法,其中步驟C之後包含判斷該第二計數器的數值未達到該第二終止值時,回到步驟B執行。 The data transmission method of the wireless system according to claim 4, 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. 一種無線系統的資料傳輸方法,其中該無線系統包含有一第一伺服器、一中繼裝置及至少一設備,該第一伺服器與該中繼裝置連線至區域網路,該中繼裝置訊號連接該設備,該中繼裝置供接收來自該設備的狀態資訊並儲存之;該資料傳輸方法包含有下列步驟: A、由該中繼裝置經區域網路與該第一伺服器連線,以供該中繼裝置與該第一伺服器相互傳輸資料;B、判斷該中繼裝置是否有儲存該設備所傳來的該狀態資訊:若是,由該中繼裝置傳送該狀態資訊至該第一伺服器;若否,由該中繼裝置傳送一第一交談指令至該第一伺服器,其中,該第一交談指令係對應無儲存該狀態資訊;C、傳送一第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線,其中,該第二交談指令係請求該第一伺服器中斷與該中繼裝置之連線;其中,步驟A中包含,由該中繼裝置向該第一伺服器取得一第一時間資料;步驟C中包含由該中繼裝置向該第一伺服器取得一第二時間資料,且係判斷該第一時間資料與該第二時間資料之間的時間差是否達到一第一預定時間差:若是,則傳送該第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線;若否,回到步驟B執行。 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. The relay device is connected to the first server via a regional network, so that the relay device and the first server transmit data to each other; B. determining whether the relay device stores the device. The status information coming from: if yes, the relay device transmits the status information to the first server; if not, the relay device transmits a first conversation command to the first server, wherein the first The conversation command corresponds to not storing the status information; C, transmitting a second conversation command to the first server, and interrupting the connection with the first server after the transmission, wherein the second conversation command is a request The first server interrupts the connection with the relay device; wherein, in step A, the relay device obtains a first time data from the first server; and the step C includes the relay device The first 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 conversation command to the first a server, and pass it on Interrupt the connection between the first server; if not, execution returns to step B. 如請求項7所述之無線系統的資料傳輸方法,其中步驟C中係於傳送該第二交談指令後經一預定時間始中斷與該第一伺服器間的連線。 The data transmission method of the wireless system of claim 7, wherein in step C, the connection with the first server is interrupted after a predetermined time period after transmitting the second conversation command. 如請求項7所述之無線系統的資料傳輸方法,其中該無線系統包含有一無線基地台,連線至區域網路且供該中繼裝置透過Wi-Fi訊號連線;該資料傳輸方法包含於該中繼裝置與該無線基地台連線經一段時間後,該中繼裝置中斷與該無線基地台間的連線,再由該中繼裝置重新與該無線基地台連線。 The data transmission method of the wireless system of claim 7, wherein the wireless system comprises 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. 如請求項7所述之無線系統的資料傳輸方法,其中該無線系統包含有一無線基地台,連線至區域網路且供該中繼裝置透過Wi-Fi 訊號連線;步驟A之前包含,由該中繼裝置與該無線基地台連線;步驟C之後包含判斷該第一時間資料與該第二時間資料之間的時間差達到一第二預定時間差時,由該中繼裝置中斷與該無線基地台間的連線,再回到步驟A之前執行由該中繼裝置重新與該無線基地台連線。 The data transmission method of the wireless system of claim 7, wherein the wireless system includes a wireless base station, connected to the regional network, and the relay device transmits the Wi-Fi Signal connection; before step A, the relay device is connected to the wireless base station; after step C, it is determined 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 connection with the wireless base station, and before returning to step A, the relay device reconnects with the wireless base station. 如請求項10所述之無線系統的資料傳輸方法,其中步驟C之後在該中繼裝置中斷與該無線基地台間的連線後,係先重新啟動該中繼裝置,再回到步驟A之前執行由該中繼裝置重新與該無線基地台連線。 The data transmission method of the wireless system according to claim 10, 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 connection is re-connected to the wireless base station by the relay device. 一種無線系統的資料傳輸方法,其中該無線系統包含有一第一伺服器、一中繼裝置及至少一設備,該第一伺服器與該中繼裝置連線至區域網路,該中繼裝置訊號連接該設備,該中繼裝置供接收來自該設備的狀態資訊並儲存之;該資料傳輸方法包含有下列步驟:A、由該中繼裝置經區域網路與該第一伺服器連線,以供該中繼裝置與該第一伺服器相互傳輸資料;B、判斷該中繼裝置是否有儲存該設備所傳來的該狀態資訊:若是,由該中繼裝置傳送該狀態資訊至該第一伺服器;若否,由該中繼裝置傳送一第一交談指令至該第一伺服器,其中,該第一交談指令係對應無儲存該狀態資訊;C、傳送一第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線,其中,該第二交談指令係請求該第一伺服器中斷與該中繼裝置之連線;其中,步驟B之後包含,由該第一伺服器判斷來自該中繼裝置的資料非為該狀態資訊、該第一交談指令與該第二交談指令之其中一者時,傳送一第三交談指令至該中繼裝置,並於傳送後中斷與該中繼裝置間的連 線,其中,該第三交談指令係請求該中繼裝置中斷與該第一伺服器之連線。 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 data; the data transmission method includes the following steps: A. connecting, by the relay device, the first server to the first server 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 the transmission, wherein the second conversation command requests the first server to disconnect the connection with the relay device; wherein, after step B, And when the first server determines that the data from the relay device is not the status information, the first conversation command and the second conversation command, transmitting a third conversation command to the relay device, And interrupt the connection with the relay device after transmission a line, wherein the third conversation command requests the relay device to disconnect from the first server. 如請求項12所述之無線系統的資料傳輸方法,其中步驟B之後包含,該中繼裝置收到該第三交談指令後,重新回到步驟A執行。 The data transmission method of the wireless system of claim 12, wherein after step B, the relay device returns to step A after receiving the third conversation command. 如請求項12所述之無線系統的資料傳輸方法,其中步驟B之後,係於傳送該第三交談指令後經一預定時間始由該第一伺服器中斷與該中繼裝置間的連線。 The data transmission method of the wireless system of claim 12, wherein after step B, the first server interrupts the connection with the relay device after a predetermined time period after transmitting the third conversation command. 一種無線系統的資料傳輸方法,其中該無線系統包含有一第一伺服器、一中繼裝置及至少一設備,該第一伺服器與該中繼裝置連線至區域網路,該中繼裝置訊號連接該設備,該中繼裝置供接收來自該設備的狀態資訊並儲存之;該資料傳輸方法包含有下列步驟:A、由該中繼裝置經區域網路與該第一伺服器連線,以供該中繼裝置與該第一伺服器相互傳輸資料;B、判斷該中繼裝置是否有儲存該設備所傳來的該狀態資訊:若是,由該中繼裝置傳送該狀態資訊至該第一伺服器;若否,由該中繼裝置傳送一第一交談指令至該第一伺服器,其中,該第一交談指令係對應無儲存該狀態資訊;C、傳送一第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線,其中,該第二交談指令係請求該第一伺服器中斷與該中繼裝置之連線;其中,該中繼裝置供傳送控制指令至該設備;步驟B之後包含,由該第一伺服器判斷來自該中繼裝置的資料為該狀態資訊與該第一交談指令之其中一者時,由該第一伺服器判斷是否有儲存待傳送至該設備的控制指令: 若是,傳送所儲存的控制指令至該中繼裝置;若否,傳送另一交談指令至該中繼裝置,其中,該另一交談指令係對應無待傳送至該設備的控制指令。 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 data; the data transmission method includes the following steps: A. connecting, by the relay device, the first server to the first server 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 the transmission, wherein the second conversation command requests the first server to disconnect the connection with the relay device; wherein the relay device for Sending a control command to the device; after step B, when the first server determines that the data from the relay device is one of the status information and the first conversation command, the first server determines whether the device is There are control instructions to store the device to be transferred to: If so, the stored control command is transmitted to the relay device; if not, another chat command is transmitted to the relay device, wherein the other talk command corresponds to a control command that is not to be transmitted to the device. 一種無線系統的資料傳輸方法,其中該無線系統包含有一第一伺服器、一中繼裝置及至少一設備,該第一伺服器與該中繼裝置連線至區域網路,該中繼裝置訊號連接該設備,該中繼裝置供接收來自該設備的狀態資訊並儲存之;該資料傳輸方法包含有下列步驟:A、由該中繼裝置經區域網路與該第一伺服器連線,以供該中繼裝置與該第一伺服器相互傳輸資料;B、判斷該中繼裝置是否有儲存該設備所傳來的該狀態資訊:若是,由該中繼裝置傳送該狀態資訊至該第一伺服器;若否,由該中繼裝置傳送一第一交談指令至該第一伺服器,其中,該第一交談指令係對應無儲存該狀態資訊;C、傳送一第二交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線,其中,該第二交談指令係請求該第一伺服器中斷與該中繼裝置之連線;其中,該無線系統包含有一第二伺服器,該第二伺服器與該第一伺服器分別連線至網際網路;該資料傳輸方法於步驟B中包含由該第一伺服器儲存該狀態資訊,以形成包含有該狀態資訊的一待上傳資料;步驟B之後包含:判斷使用者允許該第一伺服器與該第二伺服器連線後,進行下列步驟:由該第一伺服器建立與該第二伺服器之間的連線;判斷該第一伺服器是否有該待上傳資料需傳送至該第二伺服器: 若是,由該第一伺服器將該待上傳資料傳送至該第二伺服器;若否,由該第一伺服器傳送一下載資料指令至該第二伺服器;由該第二伺服器解析該第一伺服器所傳來的資料,其中:所解析的資料為該待上傳資料時,將該待上傳資料儲存之;所解析的資料為該下載資料指令時,判斷有一待下載資料需傳送到該第一伺服器時,則將該待下載資料傳送到該第一伺服器;所解析的資料非為該待上傳資料與該下載資料指令之其中一者時,傳送一請求中斷交談指令至該第一伺服器,並於傳送後中斷與該第一伺服器間的連線,其中,該請求中斷交談指令係請求該第一伺服器中斷與該第二伺服器之連線。 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 data; the data transmission method includes the following steps: A. connecting, by the relay device, the first server to the first server 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 the transmission, wherein the second conversation command requests the first server to disconnect the connection with the relay device; wherein the wireless system package a second server, the second server and the first server are respectively connected to the Internet; the data transmission method includes, in step B, storing, by the first server, the status information to form the After 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, the second server Interconnection; determining whether the first server has the information to be uploaded needs to be transmitted to the second server: If yes, the first server sends 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 data The data transmitted by the first server, 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 a data to be downloaded needs to be transmitted to And the first server sends the data to be downloaded to the first server; if the parsed data is not one of the data to be uploaded and the download data command, transmitting a request to interrupt the conversation command to the The first server interrupts the connection with the first server after the transmission, wherein the request interrupting the conversation command requests the first server to disconnect from the second server. 如請求項16所述之無線系統的資料傳輸方法,包含下列步驟:由該第一伺服器解析該第二伺服器所傳來的資料,其中:所解析的資料為該待下載資料時,將該待下載資料儲存之;所解析的資料為對應該待下載資料的一錯誤訊息時,則再傳送該下載資料指令至該第二伺服器;所解析的資料非為該待下載資料與該錯誤訊息之其中一者時,傳送另一請求中斷交談指令至該第二伺服器,並於傳送後中斷與該第二伺服器間的連線,其中,該另一請求中斷交談指令係請求該第二伺服器中斷與該第一伺服器之連線。 The method for transmitting data of the wireless system according to claim 16, comprising the steps of: parsing, by the first server, the data sent by the second server, wherein: when the parsed data is the data to be downloaded, 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 another request to interrupt the chat command to the second server, and interrupting the connection with the second server after the transfer, wherein the other request interrupts the chat command requesting the first The second server interrupts 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 true TWI650974B (en) 2019-02-11
TW201911816A 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)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070297391A1 (en) * 2000-04-06 2007-12-27 Hisao Furukawa Terminal-to-terminal communication connection control method using IP transfer network
US20110176483A1 (en) * 2009-07-23 2011-07-21 Ravi Palanki 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
TW201615026A (en) * 2014-10-03 2016-04-16 Grand Mate Co Ltd Proximal and remote control coordination method of wireless system
WO2017054661A1 (en) * 2015-09-28 2017-04-06 中兴通讯股份有限公司 Wireless relay method, wireless relay, and wireless relay system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070297391A1 (en) * 2000-04-06 2007-12-27 Hisao Furukawa Terminal-to-terminal communication connection control method using IP transfer network
US20110176483A1 (en) * 2009-07-23 2011-07-21 Ravi Palanki 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
TW201615026A (en) * 2014-10-03 2016-04-16 Grand Mate Co Ltd Proximal and remote control coordination method of wireless system
WO2017054661A1 (en) * 2015-09-28 2017-04-06 中兴通讯股份有限公司 Wireless relay method, wireless relay, and wireless relay system

Also Published As

Publication number Publication date
TW201911816A (en) 2019-03-16

Similar Documents

Publication Publication Date Title
EP4037343B1 (en) Apparatus and method for promoting apps to smart devices
KR101941060B1 (en) Signal Processing Method and Apparatus for Performing Communication with Mobile Robot
US10203924B2 (en) Display apparatus, controlling method thereof and controlling method of display system
JP2018506885A (en) Method, apparatus and system for supporting wireless communication
WO2022089088A1 (en) Display device, mobile terminal, screen-casting data transmission method, and transmission system
US20200169774A1 (en) Control method and device
EP3197094B1 (en) Software upgrading method and device
CN108306796B (en) Intelligent home system, and information processing method and device of intelligent home equipment
JP6277263B2 (en) Remote control for first and second devices
TWI650974B (en) Wireless system data transmission method
JP2018157277A5 (en)
JP2015176234A (en) Sensor network software delivery system, wireless terminal, software delivery method, and program
TWI647931B (en) Wireless system data transmission method
TWI647929B (en) Wireless system data transmission method
CN109547913B (en) Data transmission method for radio system
CN109391652B (en) Data transmission method for radio system
JP2014143660A (en) Mobile terminal, display device, television receiver, and radio communication system
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
US20230388145A1 (en) Systems and methods for controlling grilling appliances via edge computing platforms
US20230345560A1 (en) Wireless communication device and wireless communication method
CN115396984A (en) Method for mobile terminal to sense remote controller of display equipment based on WiFi
EP3029910B1 (en) Device and method for controlling rendering in a network