TW201729579A - Push message transmitting method and message transmitting system - Google Patents
Push message transmitting method and message transmitting system Download PDFInfo
- Publication number
- TW201729579A TW201729579A TW105104215A TW105104215A TW201729579A TW 201729579 A TW201729579 A TW 201729579A TW 105104215 A TW105104215 A TW 105104215A TW 105104215 A TW105104215 A TW 105104215A TW 201729579 A TW201729579 A TW 201729579A
- Authority
- TW
- Taiwan
- Prior art keywords
- message
- push
- unit
- queue
- connection
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/043—Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
Abstract
Description
本發明有關於一種訊息傳遞方法與系統,特別是一種推播訊息傳遞方法與訊息傳遞系統。The invention relates to a message transmission method and system, in particular to a push message transmission method and a message delivery system.
現有的推播技術,指的是由伺服器端將使用者所需之資料,傳送到使用者指定之處,例如電子郵件、多點傳送等技術。由於推播技術可令使用者由被動地接收資料轉變為可主動地要求資料,因此為非常方便之技術。The existing push technology refers to the technology that the user needs to transmit the user's required information to the user's designated place, such as e-mail, multicast, and the like. Since the push technology can make the user change from passively receiving data to actively requesting data, it is a very convenient technology.
然而,由於現有的訊息推播仍需要受第三方進行控制,如此使用者常常無法掌握訊息是否已經傳遞給對方,尤其是特別重要的訊息,並且訊息推播的即時性及可靠度也不夠且無法追蹤。另外,現有的訊息推播僅限於單向推送,亦即僅能由推播設備將訊息推送到移動設備,而移動設備無法反向將訊息推送回原來的推播設備,則推播設備無法得知訊息是否有正確傳遞,造成重要訊息可能遺漏之缺陷。因此,推播訊息的傳遞仍有改善的空間。However, since the existing message push still needs to be controlled by a third party, such users often cannot grasp whether the message has been delivered to the other party, especially the particularly important message, and the immediacy and reliability of the message push are not enough. track. In addition, the existing message push is limited to one-way push, that is, the push device can only push the message to the mobile device, and the mobile device cannot push the message back to the original push device, the push device cannot obtain the push device. Knowing whether the message is correctly transmitted, causing defects that important information may be missed. Therefore, there is still room for improvement in the delivery of push messages.
有鑑於此,本發明提供一種推播訊息傳遞方法與訊息傳遞系統,藉以達成具有雙向進行推播訊息的傳遞、使推播訊息具有即時性、避免受限於第三方服務、提升服務可靠度、適合智慧家庭與人的互動、具有推播訊息的可追蹤性、確保推播訊息仍然不會丟失等。In view of the above, the present invention provides a push messaging method and a message delivery system, so as to achieve the delivery of a bidirectional push message, make the push message immediacy, avoid being restricted to third party services, and improve service reliability. It is suitable for intelligent family-to-person interaction, with traceability of push messages, and ensuring that push messages are still not lost.
本發明提供一種訊息傳遞系統,包括第一裝置連結伺服器與推播處理裝置。第一裝置產生推播訊息,其中推播訊息包括識別碼。連結伺服器耦接第二裝置,儲存有第一位址訊息,其中第一位址信息是對應第二裝置。推播處理裝置耦接第一裝置與連結伺服器,推播處理裝置自第一裝置接收推播訊息,並根據識別碼自連結伺服器取得第一位址訊息及第二裝置之狀態,當第二裝置為離線狀態時,推播處理裝置保留推播訊息,而當第二裝置為在線狀態時,推播處理裝置依據第一位址訊息,將推播訊息傳遞至第二裝置。The present invention provides a message delivery system including a first device connection server and a push broadcast processing device. The first device generates a push message, wherein the push message includes an identification code. The connection server is coupled to the second device and stores the first address information, wherein the first address information is corresponding to the second device. The push processing device is coupled to the first device and the connection server, and the push processing device receives the push message from the first device, and obtains the first address information and the state of the second device from the connection server according to the identification code. When the second device is in the offline state, the push processing device retains the push message, and when the second device is in the online state, the push processing device transmits the push message to the second device according to the first address message.
本發明提供一種推播訊息傳遞方法,是應用於一推播處理裝置。此推播訊息傳遞方法包括下列步驟。自第一裝置接收推播訊息,其中推播訊息包括識別碼。根據識別碼,自連結伺服器取得第一位址訊息及第二裝置之狀態,其中第一位址訊息是對應於第二裝置。當第二裝置為離線狀態時,保留推播訊息。當第二裝置為在線狀態時,依據第一位址訊息,將推播訊息傳遞至第二裝置。The invention provides a push message transmission method, which is applied to a push broadcast processing device. This push messaging method includes the following steps. A push message is received from the first device, wherein the push message includes an identification code. According to the identification code, the first address information and the status of the second device are obtained from the connection server, wherein the first address information corresponds to the second device. When the second device is offline, the push message is retained. When the second device is in the online state, the push message is transmitted to the second device according to the first address message.
本發明之實施例所提供之推播訊息傳遞方法與訊息傳遞系統,藉由推播處理裝置接收第一裝置的推播訊息,並根據推播訊息中的識別碼自連結伺服器取得第一位址訊息。接著,推播處理裝置自該連結伺服器取得該第二裝置之狀態,而據以保留推播訊息或依據位址訊息,將推播訊息傳遞至第二裝置。如此一來,可達成使推播訊息具有即時性、避免受限於第三方服務、提升服務可靠度、適合智慧家庭與人的互動等。The push message transmitting method and the message delivery system provided by the embodiment of the present invention receive the push message of the first device by the push broadcast processing device, and obtain the first place from the link server according to the identifier in the push message. Address message. Then, the push processing device obtains the state of the second device from the connection server, and transmits the push message to the second device according to the reserved push message or the address information. In this way, it is possible to achieve immediacy of the push message, avoid restrictions on third-party services, improve service reliability, and interact with smart families and people.
以上之關於本發明內容之說明及以下之實施方式之說明用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。The above description of the present invention and the following description of the embodiments of the present invention are intended to illustrate and explain the spirit and principles of the invention.
在以下各實施例中,將以相同的標號表示相同或相似的元件。In the following embodiments, the same or similar elements will be denoted by the same reference numerals.
圖1為本發明之第一實施例所揭露之訊息傳遞系統的示意圖。本實施例之訊息傳遞系統100包括第一裝置110、連結伺服器120與推播處理裝置130,適於將一推播訊息自第一裝置110傳遞至第二裝置180。其中,第一裝置110例如為手機、冰箱、電視及/或網路攝影機等終端設備,用以產生具有一識別碼(Unique Identify, UID)之推播訊息,第二裝置180例如為手機、冰箱、電視及/或網路攝影機等終端設備,用以接收第一裝置110所產生的推播訊息。FIG. 1 is a schematic diagram of a message delivery system according to a first embodiment of the present invention. The message delivery system 100 of the present embodiment includes a first device 110, a connection server 120, and a push processing device 130, and is adapted to transmit a push message from the first device 110 to the second device 180. The first device 110 is, for example, a terminal device such as a mobile phone, a refrigerator, a television, and/or a network camera, for generating a push message with a unique identifier (UID), and the second device 180 is, for example, a mobile phone or a refrigerator. The terminal device, such as a television and/or a network camera, is configured to receive the push message generated by the first device 110.
連結伺服器120儲存有對應於第二裝置180之第一位址訊息,其中,連結伺服器120例如為點對點(peer to peer, P2P)連結伺服器。The connection server 120 stores a first address information corresponding to the second device 180, wherein the connection server 120 is, for example, a peer-to-peer (P2P) connection server.
推播處理裝置130耦接第一裝置110與連結伺服器120。推播處理裝置130自第一裝置110接收推播訊息,並根據識別碼自連結伺服器120取得第一位址訊息。並且,推播處理裝置130亦根據識別碼自連結伺服器120取得第二裝置180之狀態,以決定是否將推播訊息傳送至第二裝置180。The push processing device 130 is coupled to the first device 110 and the connection server 120. The push processing device 130 receives the push message from the first device 110, and obtains the first address message from the link server 120 according to the identifier. Further, the push processing device 130 also acquires the state of the second device 180 from the connection server 120 based on the identification code to determine whether or not to transmit the push message to the second device 180.
當第二裝置180為離線狀態時,推播處理裝置130保留推播訊息。另一方面,當第二裝置180為在線狀態時,推播處理裝置130依據第一位址訊息,將推播訊息傳遞至第二裝置180。When the second device 180 is in an offline state, the push processing device 130 retains the push message. On the other hand, when the second device 180 is in the online state, the push processing device 130 transmits the push message to the second device 180 according to the first address message.
進一步來說,當第二裝置180為在線狀態時,推播處理裝置130更透過連結伺服器120傳送第二位址訊息至第二裝置180,其中第二位址訊息是對應於推播處理裝置130。接著,推播處理裝置130會根據第一位址訊息,在一時間區間中持續傳送至少一連線請求至第二裝置180,直到自第二裝置180接收連線確認訊息。Further, when the second device 180 is in the online state, the push processing device 130 transmits the second address information to the second device 180 through the connection server 120, where the second address information corresponds to the push processing device. 130. Then, the push processing device 130 continuously transmits at least one connection request to the second device 180 in a time interval according to the first address information until the connection confirmation message is received from the second device 180.
在接收到連線確認訊息後,推播處理裝置130根據連線確認訊息,推播處理裝置130以第一通訊協定與第二裝置180進行連線,並將推播訊息傳遞至第二裝置180。其中,第一通訊協定例如為點對點(peer to peer, P2P)方式的通訊協定。After receiving the connection confirmation message, the push processing device 130, according to the connection confirmation message, the push processing device 130 connects to the second device 180 in the first communication protocol, and transmits the push message to the second device 180. . The first communication protocol is, for example, a peer-to-peer (P2P) communication protocol.
另一方面,當在時間區間中未自第二裝置180接收到連線確認訊息時,例如第一通訊協定在防火牆或特定情況下無法進行,則推播處理裝置130將推播訊息發送至連結伺服器120,透過連結伺服器120以第二通訊協定將推播訊息發送至第二裝置180。其中,第二通訊協定例如為中繼(relay)方式的通訊協定。並且,連結伺服器120對推播訊息不會進行任何監視以及修改。On the other hand, when the connection confirmation message is not received from the second device 180 in the time interval, for example, the first communication protocol cannot be performed in a firewall or a specific case, the push processing device 130 transmits the push message to the link. The server 120 transmits the push message to the second device 180 via the connection server 120 in the second communication protocol. The second communication protocol is, for example, a relay type communication protocol. Moreover, the connection server 120 does not perform any monitoring and modification on the push message.
另外,本發明所述之推播訊息並不限於是自第一裝置110傳送至第二裝置180,即將第一裝置110與第二裝置180的位置對調,也就是將第一裝置110置換成第二裝置180及將第二裝置180置換成第一裝置110。由於第一裝置110與第二裝置180各自具有識別碼,因此可根據其內所配置的識別碼而雙向找到彼此的位址訊息,以進行推播訊息的傳遞。In addition, the push message according to the present invention is not limited to being transmitted from the first device 110 to the second device 180, that is, the position of the first device 110 and the second device 180 are reversed, that is, the first device 110 is replaced with the first device 110. The second device 180 and the second device 180 are replaced with the first device 110. Since the first device 110 and the second device 180 each have an identification code, the address information of each other can be found bidirectionally according to the identification code configured therein for the delivery of the push message.
此外,由於配置有識別碼,發送端(即第一裝置110或第二裝置180)不必知道接收端(即第二裝置180或第一裝置110)在哪裡(即接收端的位址訊息),推播處理裝置130會保證將推播訊息自發送端確實送達至接收端。如此一來,本發明所提供的訊息傳遞系統100可以具有雙向進行推播訊息的傳遞,且進一步使推播訊息具有即時性、避免受限於第三方服務、提升服務可靠度、適合智慧家庭與人的互動等。In addition, since the identification code is configured, the transmitting end (ie, the first device 110 or the second device 180) does not need to know where the receiving end (ie, the second device 180 or the first device 110) is located (ie, the address information of the receiving end), and pushes The broadcast processing device 130 will ensure that the push message is actually delivered from the sender to the receiver. In this way, the message delivery system 100 provided by the present invention can have a two-way delivery of the push message, and further make the push message timely, avoid being restricted to third party services, improve service reliability, and be suitable for smart homes and Human interaction, etc.
進一步的說明,在本實施例進行訊息傳遞之前,第一裝置110與第二裝置180都需要到連結伺服器120進行報到註冊,且註冊成功後才成為被服務者,於此同時,連結伺服器120便會得知第一裝置110與第二裝置180的識別碼及位址訊息。並且,推播處理裝置130與連結伺服器120進行通訊時,也會自動完成報到註冊動作,即推播處理裝置130也會連同自己的識別碼及位址訊息一起提供給連結伺服器120,使得連結伺服器120能夠建立第一裝置110、推播處理裝置130及第二裝置180之間的對應關係。Further, before the message transmission in this embodiment, both the first device 110 and the second device 180 need to go to the connection server 120 to register and register, and the registration is successful, and then become the server. At the same time, the server is connected. 120 will know the identification code and address information of the first device 110 and the second device 180. Moreover, when the push processing device 130 communicates with the connection server 120, the registration registration operation is also automatically completed, that is, the push processing device 130 is also provided to the connection server 120 together with its own identification code and address information, so that The connection server 120 can establish a correspondence between the first device 110, the push processing device 130, and the second device 180.
圖2為本發明之第二實施例所揭露之推播處理裝置的示意圖。推播處理裝置130包括接收單元210、推播單元220與發送處理單元230。2 is a schematic diagram of a push processing device according to a second embodiment of the present invention. The push processing device 130 includes a receiving unit 210, a push unit 220, and a transmission processing unit 230.
接收單元210耦接第一裝置110。其中,接收單元210例如為應用程式介面(application programming interface, API)。The receiving unit 210 is coupled to the first device 110. The receiving unit 210 is, for example, an application programming interface (API).
推播單元220耦接接收單元210。推播單元220透過接收單元210接收並輸出推播訊息。The pushing unit 220 is coupled to the receiving unit 210. The push unit 220 receives and outputs a push message through the receiving unit 210.
發送處理單元230例如具有與API相同之傳輸功能,並耦接連結伺服器120與推播單元220。發送處理單元230接收推播訊息後,根據識別碼自連結伺服器120取得第一位址訊息。並且,發送處理單元230亦根據識別碼自連結伺服器120取得第二裝置180之狀態。當第二裝置180為離線狀態時,發送處理單元230保留推播訊息;而當第二裝置180為在線狀態時,發送處理單元230依據第一位址訊息,將推播訊息傳遞至第二裝置180。The transmission processing unit 230 has the same transmission function as the API, and is coupled to the connection server 120 and the push unit 220. After receiving the push message, the sending processing unit 230 obtains the first address information from the connection server 120 according to the identification code. Moreover, the transmission processing unit 230 also acquires the state of the second device 180 from the connection server 120 based on the identification code. When the second device 180 is in the offline state, the sending processing unit 230 reserves the push message; and when the second device 180 is in the online state, the sending processing unit 230 transmits the push message to the second device according to the first address message. 180.
進一步來說,當第二裝置180為在線狀態時,發送處理單元230透過連結伺服器120傳送第二位址訊息至第二裝置180,其中第二位址訊息是對應於推播處理裝置130。接著,發送處理單元230根據第二位址訊息,在一時間區間中持續傳送至少一連線請求至第二裝置180,直到接收到第二裝置180根據第二位址訊息回傳的連線確認訊息。Further, when the second device 180 is in the online state, the sending processing unit 230 transmits the second address information to the second device 180 through the connection server 120, where the second address information corresponds to the push processing device 130. Then, the sending processing unit 230 continues to transmit the at least one connection request to the second device 180 in a time interval according to the second address information, until the second device 180 receives the connection confirmation according to the second address information. message.
在接收到連線確認訊息後,發送處理單元230根據連線確認訊息,以第一通訊協定與第二裝置180進行連線,並將推播訊息傳遞至第二裝置180。其中,第一通訊協定例如為點對點(peer to peer, P2P)方式的通訊協定。進一步來說,第一通訊協定例如是透過對應第二裝置180的第一位址訊息與對應推播處理裝置130的第二位址訊息來進行建立。After receiving the connection confirmation message, the transmission processing unit 230 connects to the second device 180 in the first communication protocol according to the connection confirmation message, and transmits the push message to the second device 180. The first communication protocol is, for example, a peer-to-peer (P2P) communication protocol. Further, the first communication protocol is established, for example, by the first address information corresponding to the second device 180 and the second address information of the corresponding push processing device 130.
另一方面,當在時間區間中未自第二裝置180接收到連線確認訊息時,例如第一通訊協定在防火牆或特定情況下無法進行,則發送處理單元230將推播訊息發送至連結伺服器120,透過連結伺服器120以第二通訊協定將推播訊息發送至第二裝置180。其中,第二通訊協定例如為中繼(relay)方式的通訊協定。並且,連結伺服器120對推播訊息不會進行任何監視以及修改。On the other hand, when the connection confirmation message is not received from the second device 180 in the time interval, for example, the first communication protocol cannot be performed in a firewall or a specific case, the transmission processing unit 230 transmits the push message to the connection server. The device 120 transmits the push message to the second device 180 via the connection server 120 in the second communication protocol. The second communication protocol is, for example, a relay type communication protocol. Moreover, the connection server 120 does not perform any monitoring and modification on the push message.
另外,推播處理裝置130更包括佇列單元240與儲存單元250。In addition, the push processing device 130 further includes a queue unit 240 and a storage unit 250.
佇列單元240耦接發送處理單元230與推播單元220。在一實施例中,當第二裝置180為離線狀態時,發送處理單元230可直接傳送推播訊息至佇列單元240,以使佇列單元240將推播訊息儲存至佇列(Queue)中。在另一實施例中,當第二裝置180為離線狀態時,發送處理單元230可告知或透過推播單元220,將推播訊息傳送至佇列單元240,以使佇列單元240將推播訊息儲存至佇列中。The queue unit 240 is coupled to the transmission processing unit 230 and the push unit 220. In an embodiment, when the second device 180 is in an offline state, the sending processing unit 230 can directly transmit the push message to the queue unit 240, so that the queue unit 240 stores the push message in the queue. . In another embodiment, when the second device 180 is in an offline state, the sending processing unit 230 can notify or transmit the push broadcast message to the queue unit 240 through the push unit 220, so that the queue unit 240 will push the broadcast. The message is saved to the queue.
當第二裝置180由離線狀態轉為在線狀態時,佇列單元240將推播訊息發送至推播單元220,使推播單元220透過發送處理單元230將推播訊息推送至第二裝置180。之後,佇列單元240例如可進一步清除佇列中的推播訊息。When the second device 180 is switched from the offline state to the online state, the queue unit 240 transmits the push broadcast message to the push broadcast unit 220, so that the push broadcast unit 220 pushes the push broadcast message to the second device 180 through the transmission processing unit 230. Thereafter, the queue unit 240 may, for example, further clear the push message in the queue.
進一步來說,在佇列單元240將推播訊息儲存至佇列中後,佇列單元240會每隔第一預設時間,透過連結伺服器120取得第二裝置180之狀態。也就是說,佇列單元240例如透過發送處理單元230詢問連結伺服器120,以取得第二裝置180的狀態。其中,前述第一預設時間可由使用者視其需求自行設定,例如2秒、3秒、5秒等。當第二裝置180仍為離線狀態時,佇列單元240會再次每隔第一預設時間,透過連結伺服器120取得第二裝置180之狀態,直到第二裝置180由離線狀態轉為在線狀態為止。Further, after the queue unit 240 stores the push message in the queue, the queue unit 240 acquires the state of the second device 180 through the connection server 120 every first preset time. That is to say, the queue unit 240 inquires of the connection server 120 via the transmission processing unit 230, for example, to acquire the state of the second device 180. The first preset time may be set by the user according to his/her needs, for example, 2 seconds, 3 seconds, 5 seconds, and the like. When the second device 180 is still in the offline state, the queue unit 240 again acquires the state of the second device 180 through the connection server 120 every first preset time until the second device 180 changes from the offline state to the online state. until.
另一方面,當第二裝置180由離線狀態轉為在線狀態(即第二裝置180上線)後,第二裝置180會主動根據第二位址訊息,自發送處理單元230(即推播處理裝置130)索取佇列單元240的佇列的推播訊息。也就是說,當第二裝置180上線時,發送處理單元230會根據第二位址訊息而接收到第二裝置180的連線確認請求,以便於自佇列單元240取得佇列中的推播訊息,進而根據第一位址訊息,將推播訊息再次發送給第二裝置180。On the other hand, when the second device 180 is switched from the offline state to the online state (ie, the second device 180 is online), the second device 180 actively initiates the self-transmission processing unit 230 according to the second address information (ie, the push processing device). 130) Request a push message of the queue of the queue unit 240. That is, when the second device 180 is online, the sending processing unit 230 receives the connection confirmation request of the second device 180 according to the second address information, so as to obtain the push in the queue from the queue unit 240. The message, in turn, sends the push message to the second device 180 again according to the first address message.
進一步來說,在一實施例中,當第二裝置180上線且發送處理單元230(推播處理裝置130)尚未得知第二裝置180上線時,第二裝置180會先向連結伺服器120報到,且連結伺服器120會告知第二裝置180有未索取之推播訊息,並將對應於發送處理單元230(推播處理裝置130)的第二位址訊息提供給第二裝置180。此時,連結伺服器120也會將第二裝置180已上線的訊息告知發送處理單元230(推播處理裝置130),使得發送處理單元230(推播處理裝置130)與第二裝置180可以開始連線,以便第二裝置180可主動根據第二位址訊息,自發送處理單元230(即推播處理裝置130)索取佇列單元240的佇列的推播訊息。Further, in an embodiment, when the second device 180 is online and the transmission processing unit 230 (the push processing device 130) does not know that the second device 180 is online, the second device 180 first reports to the connection server 120. And the connection server 120 informs the second device 180 that there is an unsolicited push message, and provides the second address message corresponding to the transmission processing unit 230 (the push processing device 130) to the second device 180. At this time, the connection server 120 also notifies the transmission processing unit 230 (the push processing device 130) that the second device 180 has been online, so that the transmission processing unit 230 (the push processing device 130) and the second device 180 can start. The connection is such that the second device 180 can actively request the push information of the queue of the queue unit 240 from the transmission processing unit 230 (ie, the push processing device 130) according to the second address information.
在另一實施例中,當第二裝置180上線時,發送處理單元230(推播處理裝置130)可能剛好向連結伺服器120詢問而得知第二裝置180已上線的訊息,則發送處理單元230(推播處理裝置130)便會透過連結伺服器120發送第二位址訊息給第二裝置180,以建立發送處理單元230(推播處理裝置130)與第二裝置180的連線,使得第二裝置180可主動根據第二位址訊息,自發送處理單元230(即推播處理裝置130)索取佇列單元240的佇列的推播訊息。In another embodiment, when the second device 180 is online, the sending processing unit 230 (the push processing device 130) may just query the connection server 120 to learn that the second device 180 has been online, and then send the processing unit. 230 (push processing device 130) sends a second address message to the second device 180 through the connection server 120 to establish a connection between the transmission processing unit 230 (the push processing device 130) and the second device 180, so that The second device 180 can actively request the push information of the queue of the queue unit 240 from the transmission processing unit 230 (ie, the push processing device 130) according to the second address information.
儲存單元250耦接佇列單元240用以儲存推播訊息。其中,儲存單元250例如為資料庫或其他用以儲存資料的儲存裝置。The storage unit 250 is coupled to the queue unit 240 for storing the push message. The storage unit 250 is, for example, a database or other storage device for storing data.
另外,在本實施例中,在第一裝置110產生推播訊息之前,第一裝置110會向連結伺服器120發出第一註冊請求,也就是前述之進行報到註冊動作,並且第二裝置180也會於上線時向連結伺服器120發出第二註冊請求,以便向連結伺服器120進行報到註冊的動作,其中,第一註冊請求包括對應於第一裝置110的識別碼,第二註冊請求包括對應於第二裝置180的識別碼。並且,連結伺服器120會根據註冊請求,將第一裝置110與第二裝置180進行綁定,以建立位址列表。其中,位址列表包括第一裝置110的識別碼與第二裝置180的第一位址訊息的對應關係,以便於推播處理裝置130可順利地透過識別碼的資訊找到第二裝置180,並將推播訊息自第一裝置110傳送到第二裝置180。In addition, in this embodiment, before the first device 110 generates the push message, the first device 110 sends a first registration request to the link server 120, that is, the foregoing report registration operation, and the second device 180 also A second registration request is sent to the connection server 120 at the time of going online to perform a registration registration operation to the connection server 120, wherein the first registration request includes an identification code corresponding to the first device 110, and the second registration request includes a corresponding The identification code of the second device 180. Moreover, the connection server 120 binds the first device 110 and the second device 180 according to the registration request to establish an address list. The address list includes the correspondence between the identifier of the first device 110 and the first address information of the second device 180, so that the push processing device 130 can successfully find the second device 180 through the information of the identifier, and The push message is transmitted from the first device 110 to the second device 180.
藉由前述實施例的說明,可以歸納出一種推播訊息傳遞方法。圖3為本發明之第三實施例所揭露之推播訊息傳遞方法的操作方法的流程圖。With the description of the foregoing embodiments, a push message delivery method can be summarized. FIG. 3 is a flowchart of a method for operating a push message delivery method according to a third embodiment of the present invention.
在步驟S302中,自第一裝置接收推播訊息,其中該推播訊息包括識別碼。在步驟S304中,根據識別碼,自連結伺服器取得第一位址訊息及第二裝置之狀態,其中第一位址訊息是對應於第二裝置。In step S302, a push message is received from the first device, wherein the push message includes an identification code. In step S304, the first address information and the state of the second device are obtained from the connection server according to the identification code, wherein the first address information corresponds to the second device.
在步驟S306中,當第二裝置為離線狀態時,保留推播訊息。在步驟S308中,當第二裝置為在線狀態時,依據第一位址訊息,將推播訊息傳遞至第二裝置。In step S306, when the second device is in an offline state, the push message is retained. In step S308, when the second device is in the online state, the push message is transmitted to the second device according to the first address message.
圖4為圖3之步驟S308的詳細流程圖。在步驟S402中,透過連結伺服器傳送第二位址訊息至第二裝置,其中第二位址訊息是對應於推播處理裝置。FIG. 4 is a detailed flowchart of step S308 of FIG. In step S402, the second address information is transmitted to the second device through the connection server, wherein the second address information corresponds to the push processing device.
在步驟S404中,根據第一位址訊息,在時間區間中持續傳送至少一連線請求至第二裝置,直到接收到第二裝置根據第二位址訊息而回傳的連線確認訊息。在步驟S406,根據連線確認訊息,以第一通訊協定與第二裝置進行連線,並將推播訊息傳遞至第二裝置。在步驟S408中,當在時間區間中未自第二裝置接收到連線確認訊息時,將推播訊息發送至連結伺服器,透過連結伺服器以第二通訊協定將該推播訊息發送至第二裝置。In step S404, according to the first address information, at least one connection request is continuously transmitted to the second device in the time interval until the connection confirmation message returned by the second device according to the second address information is received. In step S406, according to the connection confirmation message, the second communication device is connected with the first communication protocol, and the push broadcast message is transmitted to the second device. In step S408, when the connection confirmation message is not received from the second device in the time interval, the push message is sent to the connection server, and the push message is sent to the second communication protocol through the connection server. Two devices.
圖5為圖3之步驟S306的詳細流程圖。在步驟S502中,將推播訊息儲存至佇列中。在步驟S504中,每隔第一預設時間,透過連結伺服器取得第二裝置之狀態。FIG. 5 is a detailed flowchart of step S306 of FIG. In step S502, the push message is stored in the queue. In step S504, the state of the second device is obtained through the connection server every first predetermined time.
在步驟S506中,當第二裝置由離線狀態轉為在線狀態時,將推播訊息發送至第二裝置,且清除佇列中的推播訊息。在步驟S508,當第二裝置為離線狀態時,則回到步驟S504,以持續每隔第一預設時間,透過連結伺服器取得第二裝置之狀態。進一步來說,步驟S506還包括:該第二裝置由離線狀態轉為在線狀態,第二裝置會主動根據第二位址訊息,自該推播處理裝置索取得該佇列中之該推播訊息,以便將推播訊息發送至第二裝置,且清除佇列中的推播訊息。In step S506, when the second device is switched from the offline state to the online state, the push broadcast message is sent to the second device, and the push broadcast message in the queue is cleared. In step S508, when the second device is in the offline state, the process returns to step S504 to continue to acquire the state of the second device through the connection server every first preset time. Further, the step S506 further includes: the second device is switched from the offline state to the online state, and the second device actively obtains the push message in the queue from the push processing device according to the second address message. In order to send the push message to the second device and clear the push message in the queue.
圖6為圖3之步驟S302之前的詳細流程圖。在步驟S602中,第一裝置向連結伺服器發出第一註冊請求。在步驟S604中,第二裝置向連結伺服器發出第二註冊請求。在步驟S606中,連結伺服器根據第一註冊請求與第二註冊請求,將第一裝置與第二裝置進行綁定,以建立一位址列表,其中位址列表包括第一裝置的識別碼與第二裝置的第一位址訊息的對應關係。FIG. 6 is a detailed flowchart before step S302 of FIG. 3. In step S602, the first device issues a first registration request to the connection server. In step S604, the second device issues a second registration request to the connection server. In step S606, the connection server binds the first device to the second device according to the first registration request and the second registration request to establish a address list, where the address list includes the identifier of the first device and Correspondence of the first address information of the second device.
本實施例所提供之推播訊息傳遞方法與訊息傳遞系統,藉由推播處理裝置接收第一裝置的推播訊息,並根據推播訊息中的識別碼自連結伺服器取得第一位址訊息。同時,推播處理裝置可以自該連結伺服器取得該第二裝置之狀態,而據以保留推播訊息或依據位址訊息,將推播訊息傳遞至第二裝置。如此一來,可達成使推播訊息具有即時性、避免受限於第三方服務、提升服務可靠度、適合智慧家庭與人的互動等效果。The push message transmitting method and the message delivery system provided by the embodiment receive the push message of the first device by using the push processing device, and obtain the first address message from the link server according to the identifier in the push message. . At the same time, the push processing device can obtain the state of the second device from the connection server, and accordingly, the push broadcast message is transmitted or the push broadcast message is transmitted to the second device according to the address information. In this way, the effect of making the push message immediacy, avoiding restrictions on third-party services, improving service reliability, and adapting to intelligent family and people can be achieved.
另外,第一裝置與第二裝置的位置可以對調,並且藉由佇列單元控制推播處理裝置所保留的推播訊息的再次發送。如此一來,還可進一步達成具有雙向進行推播訊息的傳遞、具有推播訊息的可追蹤性、確保推播訊息仍然不會丟失等效果。In addition, the positions of the first device and the second device may be reversed, and the retransmission of the push message retained by the push processing device is controlled by the queue unit. In this way, it is further possible to achieve the effect of transmitting the bidirectional push message, the traceability of the push message, and ensuring that the push message is still not lost.
雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention has been disclosed above in the foregoing embodiments, it is not intended to limit the invention. It is within the scope of the invention to be modified and modified without departing from the spirit and scope of the invention. Please refer to the attached patent application for the scope of protection defined by the present invention.
100‧‧‧訊息傳遞系統
110‧‧‧第一裝置
120‧‧‧連結伺服器
130‧‧‧推播處理裝置
180‧‧‧第二裝置
210‧‧‧接收單元
220‧‧‧推播單元
230‧‧‧發送處理單元
240‧‧‧佇列單元
250‧‧‧儲存單元100‧‧‧Message Delivery System
110‧‧‧ first device
120‧‧‧Link server
130‧‧‧Pushing processing device
180‧‧‧second device
210‧‧‧ Receiving unit
220‧‧‧Pushing unit
230‧‧‧Send processing unit
240‧‧‧伫 unit
250‧‧‧ storage unit
圖1為本發明之第一實施例所揭露之訊息傳遞系統的示意圖。 圖2為本發明之第二實施例所揭露之推播處理裝置的示意圖。 圖3為本發明之第三實施例所揭露之推播訊息傳遞方法的操作方法的流程圖。 圖4為圖3之步驟S308的詳細流程圖。 圖5為圖3之步驟S306的詳細流程圖。 圖6為圖3之步驟S302之前的詳細流程圖。FIG. 1 is a schematic diagram of a message delivery system according to a first embodiment of the present invention. 2 is a schematic diagram of a push processing device according to a second embodiment of the present invention. FIG. 3 is a flowchart of a method for operating a push message delivery method according to a third embodiment of the present invention. FIG. 4 is a detailed flowchart of step S308 of FIG. FIG. 5 is a detailed flowchart of step S306 of FIG. FIG. 6 is a detailed flowchart before step S302 of FIG. 3.
Claims (20)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW105104215A TWI599207B (en) | 2016-02-08 | 2016-02-08 | Push message transmitting method and message transmitting system |
CN201610179041.0A CN105872025B (en) | 2016-02-08 | 2016-03-25 | push message transmission method and message transmission system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW105104215A TWI599207B (en) | 2016-02-08 | 2016-02-08 | Push message transmitting method and message transmitting system |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201729579A true TW201729579A (en) | 2017-08-16 |
TWI599207B TWI599207B (en) | 2017-09-11 |
Family
ID=56626097
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW105104215A TWI599207B (en) | 2016-02-08 | 2016-02-08 | Push message transmitting method and message transmitting system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105872025B (en) |
TW (1) | TWI599207B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391274B (en) * | 2017-06-29 | 2020-06-16 | 武汉斗鱼网络科技有限公司 | Offline message processing method and device |
CN108512898B (en) * | 2018-02-09 | 2021-02-26 | 深圳壹账通智能科技有限公司 | File pushing method and device, computer equipment and storage medium |
CN110769064B (en) * | 2019-10-29 | 2023-02-24 | 广州趣丸网络科技有限公司 | System, method and equipment for offline message pushing |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327039A (en) * | 2012-03-20 | 2013-09-25 | 腾讯科技(深圳)有限公司 | Method and device and system for pushing messages |
CN103051715B (en) * | 2012-12-24 | 2016-03-30 | 东软熙康健康科技有限公司 | A kind of method, relevant apparatus and system made an announcement to terminal |
CN103944979A (en) * | 2014-04-09 | 2014-07-23 | Tcl集团股份有限公司 | Method, device and system for message pushing |
CN104796495A (en) * | 2015-05-08 | 2015-07-22 | 集怡嘉数码科技(深圳)有限公司 | Message pushing method and system |
CN104954446B (en) * | 2015-05-28 | 2019-02-12 | 北京中亦安图科技股份有限公司 | Information push method and system |
-
2016
- 2016-02-08 TW TW105104215A patent/TWI599207B/en active
- 2016-03-25 CN CN201610179041.0A patent/CN105872025B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105872025A (en) | 2016-08-17 |
TWI599207B (en) | 2017-09-11 |
CN105872025B (en) | 2019-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9356976B2 (en) | Real-time communications methods providing pause and resume and related devices | |
JP4948525B2 (en) | Instant message transmission method and system for mobile communication terminal | |
KR101106926B1 (en) | Submit report handling in smsip | |
US9246863B2 (en) | Method for transferring session in converged Internet protocol messaging system | |
US10868780B2 (en) | Method of notifying a sender of an inability to deliver a message to an unreachable terminal | |
WO2007033549A1 (en) | An offline message transmission method | |
TWI599207B (en) | Push message transmitting method and message transmitting system | |
US20120322468A1 (en) | Interface between restful web services and packet-switched networks for text messaging | |
JP5185952B2 (en) | Processing of submit reports in SMSIP | |
US20110158231A1 (en) | Communication system and computer program product | |
CN104168302A (en) | Device control realizing method, device control realizing system and proxy gateway | |
US9444649B2 (en) | Method for sending and receiving session history in a communications system | |
CN1961561B (en) | Method and apparatus to convey a URI for content indirection use in SIP | |
JP2017175225A (en) | Intercom controller, intercom system, intercom apparatus and intercom control method | |
KR101328028B1 (en) | System and method for message transmission based on session | |
KR101527196B1 (en) | Bi-directional service system for push message and Control method for the system | |
JP2010219580A (en) | Communication repeater, communication terminal and communication method | |
KR101528268B1 (en) | System and method for streaming content to remote locations | |
KR100922139B1 (en) | System and method for blocking a multicast spam in pim multicast protocol | |
KR100822856B1 (en) | Method for transmitting of application control message and server for the same | |
KR101689196B1 (en) | Method for transmitting and receiving session history in communication system | |
JP2010044673A (en) | Instant message server, and instant message communication method | |
WO2019069124A1 (en) | Universal transmission protocol (utp) | |
KR20080069367A (en) | Method of instant messenger service | |
KR20000054581A (en) | A Method of Information Transmission based on TCP/IP Protocol for Control System of Mobile Objects |