WO2015154414A1 - 网关的事件侦听方法及装置 - Google Patents

网关的事件侦听方法及装置 Download PDF

Info

Publication number
WO2015154414A1
WO2015154414A1 PCT/CN2014/088908 CN2014088908W WO2015154414A1 WO 2015154414 A1 WO2015154414 A1 WO 2015154414A1 CN 2014088908 W CN2014088908 W CN 2014088908W WO 2015154414 A1 WO2015154414 A1 WO 2015154414A1
Authority
WO
WIPO (PCT)
Prior art keywords
event
gateway
external
external event
client
Prior art date
Application number
PCT/CN2014/088908
Other languages
English (en)
French (fr)
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 中兴通讯股份有限公司
Publication of WO2015154414A1 publication Critical patent/WO2015154414A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Definitions

  • the present invention relates to the field of event detection technology of a gateway, and in particular, to an event interception method, a gateway, and a server of a gateway.
  • the user wants to know the status of the local area network through the gateway, it needs to log in to the management page of the gateway, and the user can view the status information of the local area network at a certain time point on the management page of the gateway, for example, the online client at a certain point in time. information.
  • you need to know the external events of the gateway at a certain point in time or in a certain period of time such as the user going online and offline, completing the offline download task, new application update, etc.
  • An external event that occurs at a point in time or within a certain period of time. It can be seen that when an external event of the gateway occurs, the management webpage of the gateway cannot prompt the user for an external event, which brings inconvenience to the user.
  • the main purpose of the present invention is to solve the technical problem that the webpage of the gateway cannot prompt the user to generate an external event, which brings inconvenience to the user.
  • a gateway event listening method includes the following steps:
  • the gateway listens for external events
  • the gateway generates an event message according to the external event when determining that the external event meets a preset condition
  • the gateway sends the event message to a local client or a remote client to prompt the user An external event that occurred.
  • the step of the gateway determining whether the external event that is heard to hear the preset condition includes:
  • the gateway matches the event type of the external event with a preset event type, and when there is an external event that matches the preset event type, determining that the external event satisfies a preset condition.
  • the step of the gateway sending the event message to the remote client includes:
  • the gateway sends the event message to a server corresponding to the remote client, where the server forwards the event message to the remote client.
  • the method further includes:
  • the gateway receives an external event response instruction sent by the local client or the remote client, and processes an external event corresponding to the external event response instruction.
  • a gateway event listening method includes the following steps:
  • the client receives the event message sent by the gateway, and prompts the user to generate the external event;
  • the client receives a processing operation of the event message by the user, and sends an external event response command to the gateway, where the gateway processes the external event according to the external event response instruction.
  • An event intercepting device of a gateway is located in a gateway, and the device comprises a listening module, a determining module, a generating module and a sending module, wherein:
  • the listening module is configured to: listen for an external event
  • the determining module is configured to: determine whether the external event that is heard is satisfying a preset condition
  • the generating module is configured to: generate an event message according to the external event when determining that the external event meets a preset condition;
  • the sending module is configured to: send the event message to a local client or a remote client to prompt the user for an external event.
  • the determining module is configured to:
  • the sending module is configured to:
  • the apparatus further includes a first processing module, wherein:
  • the first processing module is configured to: receive an external event response instruction sent by the local client or the remote client, and process an external event corresponding to the external event response instruction.
  • An event listening device of a gateway is located in a client, and the device includes a prompting module and a second processing module, wherein:
  • the prompting module is configured to: receive an event message sent by the gateway, and prompt the user to generate the external event;
  • the second processing module is configured to: receive a processing operation of the event message by the user, and send an external event response instruction to the gateway, where the gateway processes the external event according to the external event response instruction.
  • a computer program comprising program instructions that, when executed by a gateway, cause the gateway to perform an event interception method of the gateway.
  • a carrier carrying the computer program A carrier carrying the computer program.
  • a computer program comprising program instructions that, when executed by a client, cause the client to perform an event listening method of the gateway.
  • a carrier carrying the computer program A carrier carrying the computer program.
  • the gateway detects an external event; the gateway determines whether the external event detected by the gateway meets a preset condition; and when the gateway determines that the external event meets the preset condition, generates an event message according to the external event; The gateway sends the event message to a local client or a remote client to prompt the user for an external event.
  • the solution of the foregoing solution sends an event message to the client, and the user can learn the external event that occurs through the client, and does not need to inspect the state information of the local area network on the management page of the gateway.
  • An external event occurs, and when an external event occurs, the client prompts the user with an event message. Therefore, the above technical solution is convenient for the user to use.
  • FIG. 1 is a schematic flowchart of an event interception method of a gateway according to a first embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an event interception method of a gateway according to a fourth embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of an event interception method of a gateway according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a function module of an event interception device of a gateway according to a first embodiment of the present invention
  • FIG. 5 is a schematic diagram of a function module of an event interception apparatus of a gateway according to a fourth embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a function module of an event interception device of a gateway according to an embodiment of the present invention.
  • the invention provides an event interception method of a gateway.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of an event interception method of a gateway according to the present invention.
  • the event interception method of the gateway includes:
  • Step S10 the gateway listens to external events
  • the external event refers to an event that occurs outside the gateway and occurs within the local area network, for example, the user goes online and offline, completes the offline download task, and updates the new application.
  • Step S20 The gateway determines whether the external event detected by the gateway satisfies a preset condition
  • the gateway determines whether the external event meets the preset condition.
  • the preset condition may be preset by the user or the gateway, and the user selects a preset condition to filter out an external event that needs to be known.
  • the preset condition may be: the external event matches the preset keyword; or the time when the external event occurs is within a preset time range.
  • Step S30 The gateway generates an event message according to the external event when determining that the external event meets a preset condition
  • the method for generating an event message according to an external event may be: acquiring a corresponding message template according to an external event, inserting key information of the external event into the message module according to the message template, and generating an event message; or any other applicable manner.
  • step S40 the gateway sends the event message to the local client or the remote client to prompt the user for an external event.
  • the gateway sends the event message to the local client or remote client for the client to prompt the user for an external event.
  • the user is prompted by text, voice broadcast, video, animation, etc.; the external event can also be recorded for subsequent viewing by the user.
  • the gateway when the gateway detects an external event that meets the preset condition, the event message is sent to the client, and the user can learn the external event that occurs through the client, and does not need to inspect the state information of the local area network on the management webpage of the gateway.
  • An external event occurs, and when an external event occurs, the client prompts the user with an event message. Therefore, the embodiment is convenient for the user to use.
  • the present embodiment is based on the first embodiment, and the step S20 includes:
  • the gateway matches the event type of the external event with a preset event type, and when there is an external event matching the preset event type, determining that the external event satisfies a preset condition.
  • the event type is preset by the user or the gateway.
  • the gateway obtains the event type of the external event, compares the event type of the external event with the preset event type, and if there is an event type of the external event with the same event type or the same, the external event and the preset are identified.
  • the event type matches, otherwise, the external event is identified as not matching the preset event type.
  • the method for determining whether the external event satisfies the preset condition may also be: comparing the event information with the preset keyword verbatim, and when the keyword is the same or similar, the external event and the preset event type are identified. Match, otherwise, identify that the external event does not match the preset event type; or any other suitable method.
  • the method for determining whether an external event satisfies a preset condition by using an event type matching method is simple and easy, and can meet the personalized requirement of the user.
  • the present embodiment is based on the first embodiment and the second embodiment, and the step S40 includes:
  • the gateway sends the event message to a server corresponding to the remote client, and the server forwards the event message to the remote client.
  • the gateway sends an event message to the client via the server, so that the user can remotely receive the event message sent by the gateway at a location that is not limited to the local area network.
  • FIG. 2 is a schematic flowchart diagram of a fourth embodiment of an event interception method of a gateway according to the present invention.
  • the fourth embodiment of the present invention is based on the first embodiment, the second embodiment, and the third embodiment. After the step S40, the method further includes:
  • Step S50 The gateway receives an external event response instruction sent by the local client or the remote client, and processes an external event corresponding to the external event response instruction.
  • the user processes the external event, and the local client or the remote client sends an external event response command to the gateway according to the processing operation of the user. Therefore, the user can send an external event response command through the local client or the remote client to achieve the purpose of controlling or handling external events.
  • the feedback message is sent to the client. This is beneficial for the client's users to know the processing process.
  • the gateway when the gateway detects the external event of "complete offline download task", it determines whether the external event meets the preset condition, and if so, generates an event message according to the event information of the external event "Wednesday, July 9, 2014, 10: 00, offline download task 03.rmvb complete download.
  • the event message is sent to the server, the server sends the event message to the client, the user
  • the event message is seen from the client and the event message is operated to send an external event response command "suspend the download of 05.rmvb, delete the 06.mpg download task, start the download of 04.rmvb" to the server, and forward it by the server.
  • the external event responds to the command to the gateway, and the gateway performs a corresponding processing operation according to the external event response instruction, that is, suspends the download of 05.rmvb, deletes the 06.mpg download task, and starts the download of 04.rmvb.
  • the gateway when the gateway detects the external event of the "client new online”, it determines whether the external event meets the preset condition, and if so, generates an event message according to the event information of the external event. "Thursday, June 17, 2014, 15:00 pm Newly added to the client Jack. There are currently three clients Tom, Jerry, and Lucy running the Internet service.”
  • the event message is sent to the server, and the server sends the event message to the client, and the user sees the event from the client.
  • the message operates on the event message to send an external event response command "Allow Tom and Lucy to log in, prohibit Jerry from logging in” to the server, and the server forwards the external event response command to the gateway, and the gateway performs the corresponding response according to the external event response instruction.
  • the processing operation allows Tom and Lucy to log in and prohibits Jerry from logging in.
  • the invention further provides an event listening method of a gateway.
  • FIG. 3 is a schematic flowchart diagram of an embodiment of an event interception method of a gateway according to the present invention.
  • the event interception method of the gateway includes the following steps:
  • Step S01 the client receives an event message sent by the gateway, and prompts the user to generate the external event.
  • the gateway listens to the external event; determines whether the external event that is heard is satisfying the preset condition; generates an event message according to the external event when determining that the external event meets the preset condition; and sends the event message to the local client or the remote client To prompt the user for an external event.
  • the client After receiving the event message sent by the gateway, the client prompts the user for an external event, for example, prompting the user by means of text, voice broadcast, video, animation, etc.; and recording the external event of the event for subsequent viewing by the user.
  • an external event for example, prompting the user by means of text, voice broadcast, video, animation, etc.
  • the step of the client receiving the event message sent by the gateway may include:
  • the client receives an event message sent by the gateway via the server.
  • Step S02 The client receives the processing operation of the event message by the user, and sends an external event response command to the gateway, where the gateway processes the external event according to the external event response instruction.
  • the client After receiving the event message sent by the gateway, the client prompts the user to process the event message, and the user can process the event message according to the requirement, and the client sends an external event response command to the gateway according to the processing operation of the user, and the gateway according to the external
  • the event response instruction processes the external event.
  • the step of the client sending an external event response command to the gateway according to the processing operation of the user may include:
  • the client sends an external event response command to the server according to the processing operation of the user, and the server forwards the external event response command to the gateway.
  • the user can know the external event that occurs through the client, and does not need to check the external event of the local area network on the management webpage of the gateway to estimate the external event, and when the external event occurs, the client prompts the user through the event message.
  • users can also handle external events through the client. Therefore, the embodiment is convenient for the user to use.
  • the invention provides an event interception device of a gateway, which is located in a gateway.
  • FIG. 4 is a schematic diagram of functional modules of a first embodiment of an event interception apparatus of a gateway according to the present invention.
  • the event monitoring device of the gateway includes:
  • the listening module 10 is configured to: listen for external events
  • the determining module 20 is configured to: determine whether the external event that is heard is satisfying a preset condition;
  • the generating module 30 is configured to: generate an event message according to the external event when determining that the external event meets a preset condition;
  • the sending module 40 is configured to: send the event message to a local client or a remote client to prompt the user for an external event.
  • the external event refers to an event that occurs outside the gateway and occurs within the local area network, for example, the user goes online and offline, completes the offline download task, and updates the new application.
  • the judging module 20 judges whether the external event satisfies the preset condition.
  • the preset condition may be preset by the user or the judging module 20, and the user selects a preset condition to filter out an external event that needs to be known.
  • the preset condition may be: the external event matches the preset keyword; or the time when the external event occurs is within a preset time range.
  • the method for generating the event message by the generating module 30 according to the external event may be: acquiring a corresponding message template according to the external event, inserting key information of the external event into the message module according to the message template, and generating an event message; or any other applicable manner.
  • the sending module 40 sends the event message to the local client or the remote client for the client to prompt the user for an external event.
  • the user is prompted by text, voice broadcast, video, animation, etc.; the external event can also be recorded for subsequent viewing by the user.
  • the gateway when the gateway detects an external event that meets the preset condition, the event message is sent to the client, and the user can learn the external event that occurs through the client, and does not need to inspect the state information of the local area network on the management webpage of the gateway.
  • An external event occurs, and when an external event occurs, the client prompts the user with an event message. Therefore, the embodiment is convenient for the user to use.
  • the determining module 20 is configured to:
  • the event type is preset by the user or the gateway.
  • the determining module 20 obtains the event type of the external event, compares the event type of the external event with the preset event type, and if there is an event type of the external event with the same event type or the same, the external event is recognized. Set the event type to match, otherwise, identify that the external event does not match the preset event type.
  • the method for determining whether the external event satisfies the preset condition may also be: comparing the event information with the preset keyword verbatim, and when the keyword is the same or similar, the external event and the preset event type are identified. Match, otherwise, identify that the external event does not match the preset event type; or any other suitable method.
  • the method for determining whether an external event satisfies a preset condition by using an event type matching method is simple and easy, and can meet the personalized requirement of the user.
  • the sending module 40 is configured to:
  • the sending module 40 sends an event message to the client via the server, so that the user can remotely receive the event message sent by the gateway at a location that is not limited to the local area network.
  • FIG. 5 is a schematic diagram of functional modules of a fourth embodiment of an event interception apparatus of a gateway according to the present invention.
  • the event detecting apparatus of the gateway further includes: based on the first embodiment, the second embodiment, and the third embodiment, the event detecting device of the gateway further includes:
  • the first processing module 50 is configured to: receive the external sent by the local client or the remote client
  • the event response instruction processes the external event corresponding to the external event response instruction.
  • the user processes the external event, and the local client or the remote client sends an external event response command to the first processing module 50 according to the processing operation of the user. Therefore, the user can send an external event response command to the first processing module 50 through the local client or the remote client to achieve the purpose of controlling or processing the external event.
  • the first processing module 50 is further configured to: when the gateway performs the processing operation, send a feedback message to the client. This is beneficial for the client's users to know the processing process.
  • the present invention further provides an event listening device of a gateway, which is located in a client.
  • FIG. 6 is a schematic diagram of functional modules of an embodiment of an event interception apparatus of a gateway according to the present invention.
  • the event interception device of the gateway includes:
  • the prompting module 01 is configured to: receive an event message sent by the gateway, and prompt the user to generate the external event;
  • the second processing module 02 is configured to: receive a processing operation of the event message by the user, and send an external event response instruction to the gateway, where the gateway processes the external event according to the external event response instruction.
  • the gateway listens to the external event; determines whether the external event that is heard is satisfying the preset condition; generates an event message according to the external event when determining that the external event meets the preset condition; and sends the event message to the local client or the remote client To prompt the user for an external event.
  • the prompting module 01 After receiving the event message sent by the gateway, the prompting module 01 prompts the user to generate an external event, for example, prompting the user by means of text, voice broadcast, video, animation, etc.; and may also record the external event of the event for subsequent viewing by the user.
  • an external event for example, prompting the user by means of text, voice broadcast, video, animation, etc.
  • the step of the prompting module 01 receiving the event message sent by the gateway may include:
  • the prompt module 01 receives an event message sent by the gateway via the server.
  • the second processing module 02 After receiving the event message sent by the gateway, the second processing module 02 prompts the user to process the event message, and the user can process the event message according to requirements, and the second processing module 02 is based on the user's
  • the processing operation sends an external event response command to the gateway, and the gateway processes the external event according to the external event response instruction.
  • the step of the second processing module 02 sending an external event response command to the gateway according to the processing operation of the user may include:
  • the second processing module 02 sends an external event response command to the server according to the processing operation of the user, and the server forwards the external event response command to the gateway.
  • the user can know the external event that occurs through the client, and does not need to check the external event of the local area network on the management webpage of the gateway to estimate the external event, and when the external event occurs, the client prompts the user through the event message.
  • users can also handle external events through the client. Therefore, the embodiment is convenient for the user to use.
  • the solution of the foregoing solution When detecting the external event that meets the preset condition, the solution of the foregoing solution sends an event message to the client, and the user can learn the external event that occurs through the client, and does not need to inspect the state information of the local area network on the management page of the gateway.
  • An external event occurs, and when an external event occurs, the client prompts the user with an event message. Therefore, the above technical solution is convenient for the user to use. Therefore, the present invention has strong industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种网关的事件侦听方法,该方法包括:网关侦听外部事件;网关判断所侦听到的外部事件是否满足预设条件;网关在判定外部事件满足预设条件时,根据外部事件生成事件消息;网关发送事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件。本发明还公开了一种网关的事件侦听装置及相应的计算机程序及其载体。上述技术方案方便了用户使用。

Description

网关的事件侦听方法及装置 技术领域
本发明涉及网关的事件侦听技术领域,尤其涉及网关的事件侦听方法、网关及服务器。
背景技术
用户若要通过网关获知局域网的状态,则需要登录网关的管理网页查看,而用户在网关的管理网页上查看的仅是某一时间点局域网的状态信息,例如,某一时间点在线的客户端的信息。若需要获知某一时间点或者某一段时间内发生的网关的外部事件(如用户上下线、完成脱机下载任务、新应用更新等),则需要根据各时间点的局域网的状态信息推测某一时间点或某一段时间内发生的外部事件。可见,在网关的外部事件发生时,网关的管理网页无法提示用户发生的外部事件,给用户的使用带来不便。
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。
发明内容
本发明的主要目的在于解决网关的网页无法提示用户发生的外部事件,给用户的使用带来不便的技术问题。
为解决上述技术问题,采用如下技术方案:
一种网关的事件侦听方法,包括以下步骤:
网关侦听外部事件;
所述网关判断所侦听到的所述外部事件是否满足预设条件;
所述网关在判定所述外部事件满足预设条件时,根据所述外部事件生成事件消息;
所述网关发送所述事件消息至本地客户端或者远程客户端,以提示用户 所发生的外部事件。
可选地,所述网关判断所侦听到的所述外部事件是否满足预设条件的步骤包括:
所述网关将所述外部事件的事件类型与预设的事件类型进行匹配,当存在与所述预设的事件类型匹配的外部事件时,判定所述外部事件满足预设条件。
可选地,所述网关发送所述事件消息至远程客户端的步骤包括:
所述网关发送所述事件消息至远程客户端对应的服务器,供所述服务器转发所述事件消息至远程客户端。
可选地,所述网关发送所述事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件的步骤之后,该方法还包括:
所述网关接收所述本地客户端或远程客户端发送的外部事件响应指令,对所述外部事件响应指令对应的外部事件进行处理。
一种网关的事件侦听方法,包括以下步骤:
客户端接收网关发送的事件消息,并提示用户所述外部事件的发生;
所述客户端接收用户对事件消息的处理操作,发送外部事件响应指令至所述网关,供所述网关根据所述外部事件响应指令对所述外部事件进行处理。
一种网关的事件侦听装置,位于网关中,该装置包括侦听模块、判断模块、生成模块和发送模块,其中:
所述侦听模块设置成:侦听外部事件;
所述判断模块设置成:判断所侦听到的所述外部事件是否满足预设条件;
所述生成模块设置成:在判定所述外部事件满足预设条件时,根据所述外部事件生成事件消息;
所述发送模块设置成:发送所述事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件。
可选地,所述判断模块设置成:
将所述外部事件的事件类型与预设的事件类型进行匹配,在存在与所述预设的事件类型匹配的外部事件时,判定所述外部事件满足预设条件。
可选地,所述发送模块设置成:
发送所述事件消息至远程客户端对应的服务器,供所述服务器转发所述事件消息至远程客户端。
可选地,该装置还包括第一处理模块,其中:
所述第一处理模块设置成:接收所述本地客户端或远程客户端发送的外部事件响应指令,对所述外部事件响应指令对应的外部事件进行处理。
一种网关的事件侦听装置,位于客户端中,该装置包括提示模块和第二处理模块,其中:
所述提示模块设置成:接收网关发送的事件消息,并提示用户所述外部事件的发生;
所述第二处理模块设置成:接收用户对事件消息的处理操作,发送外部事件响应指令至网关,供网关根据所述外部事件响应指令对所述外部事件进行处理。
一种计算机程序,包括程序指令,当该程序指令被网关执行时,使得该网关可执行权利要求上述网关的事件侦听方法。
一种载有该计算机程序的载体。
一种计算机程序,包括程序指令,当该程序指令被客户端执行时,使得该客户端可执行上述网关的事件侦听方法。
一种载有该计算机程序的载体。
上述技术方案中,网关侦听外部事件;网关判断所侦听到的所述外部事件是否满足预设条件;网关在判定所述外部事件满足预设条件时,根据所述外部事件生成事件消息;网关发送所述事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件。上述技术方案网关在侦听到满足预设条件的外部事件时,发送事件消息至客户端,用户可通过客户端获知发生的外部事件,不需通过查看网关的管理网页上的局域网的状态信息推测发生的外部事件,且在外部事件发生时,客户端通过事件消息提示用户。因此,上述技术方案方便了用户使用。
附图概述
图1为本发明第一实施例的网关的事件侦听方法流程示意图;
图2为本发明第四实施例的网关的事件侦听方法流程示意图;
图3为本发明一实施例的网关的事件侦听方法流程示意图;
图4为本发明第一实施例的网关的事件侦听装置功能模块示意图;
图5为本发明第四实施例的网关的事件侦听装置功能模块示意图;
图6为本发明一实施例的网关的事件侦听装置功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的较佳实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限 定本发明。
本发明提供一种网关的事件侦听方法。
参照图1,图1为本发明网关的事件侦听方法第一实施例的流程示意图。
在本发明网关的事件侦听方法第一实施例中,该网关的事件侦听方法包括:
步骤S10,网关侦听外部事件;
其中,外部事件是指网关之外且在局域网之内发生的事件,例如,用户上下线、完成脱机下载任务、新应用更新等。
步骤S20,网关判断所侦听到的所述外部事件是否满足预设条件;
网关判断外部事件是否满足预设条件。其中,预设条件可由用户或者网关预先设置,用户通过设置预设条件,从而筛选出需要获知的外部事件。其中,预设条件可以是:外部事件与预设关键词匹配;或者,外部事件发生的时间在预设时间范围内等。
步骤S30,网关在判定所述外部事件满足预设条件时,根据所述外部事件生成事件消息;
网关根据外部事件生成事件消息的方法可以是:根据外部事件获取对应的消息模板,根据消息模板将外部事件的关键信息插入消息模块,生成事件消息;或者,其他任何适用的方式。
步骤S40,网关发送所述事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件。
网关发送该事件消息至本地客户端或者远程客户端,供客户端提示用户发生的外部事件。例如,通过文字、语音播报、视频、动画等方式提示用户;还可以记录该外部事件供用户后续查看。
本实施例网关在侦听到满足预设条件的外部事件时,发送事件消息至客户端,用户可通过客户端获知发生的外部事件,不需通过查看网关的管理网页上的局域网的状态信息推测发生的外部事件,且在外部事件发生时,客户端通过事件消息提示用户。因此,本实施例方便了用户使用。
本发明网关的事件侦听方法第二实施例中,本实施例在第一实施例的基础上,所述步骤S20包括:
网关将所述外部事件的事件类型与预设的事件类型进行匹配,在存在与所述预设的事件类型匹配的外部事件时,判定所述外部事件满足预设条件。
其中,事件类型由用户或者网关预先设置。
网关获取外部事件的事件类型,将外部事件的事件类型与预设的事件类型进行比对,若存在预设的事件类型相同或相似的外部事件的事件类型,则识别该外部事件与预设的事件类型匹配,否则,识别该外部事件与预设的事件类型不匹配。
判断外部事件是否满足预设条件方法还可以是:将该事件信息与预设的关键词逐字比对,存在于关键词相同或相近的文字时,则识别该外部事件与预设的事件类型匹配,否则,识别该外部事件与预设的事件类型不匹配;或者其他任何适用的方法。
本实施例中,使用事件类型匹配的方法判断外部事件是否满足预设条件的方法简单易行,且可满足用户个性化的需求。
本发明网关的事件侦听方法第三实施例中,本实施例在第一实施例、第二实施例的基础上,所述步骤S40包括:
网关发送所述事件消息至远程客户端对应的服务器,供所述服务器转发所述事件消息至远程客户端。
本实施例网关经服务器发送事件消息至客户端,使得用户可以在不限于局域网的位置远程接收网关发送的事件消息。
参照图2,图2为本发明网关的事件侦听方法第四实施例的流程示意图。
本发明网关的事件侦听方法第四实施例中,本实施例在第一实施例、第二实施例、第三实施例的基础上,所述步骤S40之后还包括:
步骤S50,网关接收所述本地客户端或远程客户端发送的外部事件响应指令,对所述外部事件响应指令对应的外部事件进行处理。
用户对外部事件进行处理操作,本地客户端或远程客户端根据用户的处理操作,发送外部事件响应指令至网关。因此,用户可通过本地客户端或远程客户端发送外部事件响应指令以达到控制或者处理外部事件的目的。
本实施例中,在网关执行完处理操作时,发送反馈消息至客户端。这有利于客户端的用户获知处理进程。
下面举两个实例帮助理解,并不用于限定本发明。
例一,网关侦听到“完成脱机下载任务”的外部事件时,判断外部事件是否满足预设条件,若是,根据外部事件的事件信息生成事件消息“2014年7月9日星期三上午10:00,脱机下载任务03.rmvb完成下载。当前共有三个任务01.rmvb、02.rmvb、03.rmvb完成下载”,将该事件消息发送至服务器,服务器发送该事件消息至客户端,用户从客户端看到该事件消息并对该事件消息进行操作,从而发送外部事件响应指令“暂停05.rmvb的下载、删除06.mpg下载任务、开始04.rmvb的下载”至服务器,由服务器转发该外部事件响应指令至网关,网关根据该外部事件响应指令,执行相应的处理操作,即暂停05.rmvb的下载,删除06.mpg下载任务,开始04.rmvb的下载。
例二,网关侦听到“客户端新上线”的外部事件时,判断外部事件是否满足预设条件,若是,根据外部事件的事件信息生成事件消息“2014年6月17日星期二下午15:00,新加入客户端Jack。当前已有三个客户端Tom、Jerry、Lucy在开展上网业务。”,将该事件消息发送至服务器,服务器发送该事件消息至客户端,用户从客户端看到该事件消息并对该事件消息进行操作,从而发送外部事件响应指令“允许Tom及Lucy登入、禁止Jerry登入”至服务器,由服务器转发该外部事件响应指令至网关,网关根据该外部事件响应指令,执行相应的处理操作,即允许Tom及Lucy登入,禁止Jerry登入。
本发明进一步提供一种网关的事件侦听方法。
参照图3,图3为本发明网关的事件侦听方法一实施例的流程示意图。
本发明网关的事件侦听方法一实施例中,所述网关的事件侦听方法包括以下步骤:
步骤S01,客户端接收网关发送的事件消息,并提示用户所述外部事件的发生;
网关侦听外部事件;判断所侦听到的所述外部事件是否满足预设条件;在判定外部事件满足预设条件时,根据外部事件生成事件消息;发送事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件。
客户端接收网关发送的事件消息后,提示用户发生的外部事件,例如,通过文字、语音播报、视频、动画等方式提示用户;还可以记录该事外部事件供用户后续查看。
本实施例中,客户端接收网关发送的事件消息的步骤可包括:
客户端接收网关经服务器发送的事件消息。
步骤S02,客户端接收用户对事件消息的处理操作,发送外部事件响应指令至网关,供网关根据所述外部事件响应指令对所述外部事件进行处理。
客户端在接收到网关发送的事件消息后,提示用户对该事件消息进行处理,用户可根据需求处理该事件消息,客户端根据用户的处理操作,发送外部事件响应指令至网关,网关根据该外部事件响应指令对外部事件进行处理。
本实施例中,客户端根据用户的处理操作,发送外部事件响应指令至网关的步骤可包括:
客户端根据用户的处理操作,发送外部事件响应指令至服务器,服务器转发该外部事件响应指令至网关。
本实施例用户可通过客户端获知发生的外部事件,不需通过查看网关的管理网页上的局域网的状态信息推测发生的外部事件,且在外部事件发生时,客户端通过事件消息提示用户。此外,用户还可通过客户端对外部事件进行处理。因此,本实施例方便了用户使用。
本发明提供一种网关的事件侦听装置,位于网关中。
参照图4,图4为本发明网关的事件侦听装置第一实施例的功能模块示意图。
在本发明网关的事件侦听装置第一实施例中,该网关的事件侦听装置包括:
侦听模块10设置成:侦听外部事件;
判断模块20设置成:判断所侦听到的所述外部事件是否满足预设条件;
生成模块30设置成:在判定所述外部事件满足预设条件时,根据所述外部事件生成事件消息;
发送模块40设置成:发送所述事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件。
其中,外部事件是指网关之外且在局域网之内发生的事件,例如,用户上下线、完成脱机下载任务、新应用更新等。
判断模块20判断外部事件是否满足预设条件。其中,预设条件可由用户或者判断模块20预先设置,用户通过设置预设条件,从而筛选出需要获知的外部事件。其中,预设条件可以是:外部事件与预设关键词匹配;或者,外部事件发生的时间在预设时间范围内等。
生成模块30根据外部事件生成事件消息的方法可以是:根据外部事件获取对应的消息模板,根据消息模板将外部事件的关键信息插入消息模块,生成事件消息;或者,其他任何适用的方式。
发送模块40发送该事件消息至本地客户端或者远程客户端,供客户端提示用户发生的外部事件。例如,通过文字、语音播报、视频、动画等方式提示用户;还可以记录该外部事件供用户后续查看。
本实施例网关在侦听到满足预设条件的外部事件时,发送事件消息至客户端,用户可通过客户端获知发生的外部事件,不需通过查看网关的管理网页上的局域网的状态信息推测发生的外部事件,且在外部事件发生时,客户端通过事件消息提示用户。因此,本实施例方便了用户使用。
本发明网关的事件侦听装置第二实施例中,本实施例在第一实施例的基 础上,所述判断模块20设置成:
将所述外部事件的事件类型与预设的事件类型进行匹配,在存在与所述预设的事件类型匹配的外部事件时,判定所述外部事件满足预设条件。
其中,事件类型由用户或者网关预先设置。
判断模块20获取外部事件的事件类型,将外部事件的事件类型与预设的事件类型进行比对,若存在预设的事件类型相同或相似的外部事件的事件类型,则识别该外部事件与预设的事件类型匹配,否则,识别该外部事件与预设的事件类型不匹配。
判断外部事件是否满足预设条件方法还可以是:将该事件信息与预设的关键词逐字比对,存在于关键词相同或相近的文字时,则识别该外部事件与预设的事件类型匹配,否则,识别该外部事件与预设的事件类型不匹配;或者其他任何适用的方法。
本实施例中,使用事件类型匹配的方法判断外部事件是否满足预设条件的方法简单易行,且可满足用户个性化的需求。
本发明网关的事件侦听装置第三实施例中,本实施例在第一实施例、第二实施例的基础上,所述发送模块40设置成:
发送所述事件消息至远程客户端对应的服务器,供所述服务器转发所述事件消息至远程客户端。
本实施例发送模块40经服务器发送事件消息至客户端,使得用户可以在不限于局域网的位置远程接收网关发送的事件消息。
参照图5,图5为本发明网关的事件侦听装置第四实施例的功能模块示意图。
本发明网关第四实施例中,本实施例在第一实施例、第二实施例、第三实施例的基础上,所述网关的事件侦听装置还包括:
第一处理模块50设置成:接收所述本地客户端或远程客户端发送的外部 事件响应指令,对所述外部事件响应指令对应的外部事件进行处理。
用户对外部事件进行处理操作,本地客户端或远程客户端根据用户的处理操作,发送外部事件响应指令至第一处理模块50。因此,用户可通过本地客户端或远程客户端发送外部事件响应指令至第一处理模块50以达到控制或者处理外部事件的目的。
本实施例中,第一处理模块50还设置成:在网关执行完处理操作时,发送反馈消息至客户端。这有利于客户端的用户获知处理进程。
本发明进一步提供一种网关的事件侦听装置,位于客户端中。
参照图6,图6为本发明网关的事件侦听装置一实施例的功能模块示意图。
本发明网关的事件侦听装置一实施例中,所述网关的事件侦听装置包括:
提示模块01设置成:接收网关发送的事件消息,并提示用户所述外部事件的发生;
第二处理模块02设置成:接收用户对事件消息的处理操作,发送外部事件响应指令至网关,供网关根据所述外部事件响应指令对所述外部事件进行处理。
网关侦听外部事件;判断所侦听到的所述外部事件是否满足预设条件;在判定外部事件满足预设条件时,根据外部事件生成事件消息;发送事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件。
提示模块01接收网关发送的事件消息后,提示用户发生的外部事件,例如,通过文字、语音播报、视频、动画等方式提示用户;还可以记录该事外部事件供用户后续查看。
本实施例中,提示模块01接收网关发送的事件消息的步骤可包括:
提示模块01接收网关经服务器发送的事件消息。
第二处理模块02在接收到网关发送的事件消息后,提示用户对该事件消息进行处理,用户可根据需求处理该事件消息,第二处理模块02根据用户的 处理操作,发送外部事件响应指令至网关,网关根据该外部事件响应指令对外部事件进行处理。
本实施例中,第二处理模块02根据用户的处理操作,发送外部事件响应指令至网关的步骤可包括:
第二处理模块02根据用户的处理操作,发送外部事件响应指令至服务器,服务器转发该外部事件响应指令至网关。
本实施例用户可通过客户端获知发生的外部事件,不需通过查看网关的管理网页上的局域网的状态信息推测发生的外部事件,且在外部事件发生时,客户端通过事件消息提示用户。此外,用户还可通过客户端对外部事件进行处理。因此,本实施例方便了用户使用。
工业实用性
上述技术方案网关在侦听到满足预设条件的外部事件时,发送事件消息至客户端,用户可通过客户端获知发生的外部事件,不需通过查看网关的管理网页上的局域网的状态信息推测发生的外部事件,且在外部事件发生时,客户端通过事件消息提示用户。因此,上述技术方案方便了用户使用。因此本发明具有很强的工业实用性。

Claims (14)

  1. 一种网关的事件侦听方法,包括以下步骤:
    网关侦听外部事件;
    所述网关判断所侦听到的所述外部事件是否满足预设条件;
    所述网关在判定所述外部事件满足预设条件时,根据所述外部事件生成事件消息;
    所述网关发送所述事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件。
  2. 如权利要求1所述的网关的事件侦听方法,其中,所述网关判断所侦听到的所述外部事件是否满足预设条件的步骤包括:
    所述网关将所述外部事件的事件类型与预设的事件类型进行匹配,当存在与所述预设的事件类型匹配的外部事件时,判定所述外部事件满足预设条件。
  3. 如权利要求1或2所述的网关的事件侦听方法,其中,所述网关发送所述事件消息至远程客户端的步骤包括:
    所述网关发送所述事件消息至远程客户端对应的服务器,供所述服务器转发所述事件消息至远程客户端。
  4. 如权利要求1或2所述的网关的事件侦听方法,其中,所述网关发送所述事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件的步骤之后,该方法还包括:
    所述网关接收所述本地客户端或远程客户端发送的外部事件响应指令,对所述外部事件响应指令对应的外部事件进行处理。
  5. 一种网关的事件侦听方法,包括以下步骤:
    客户端接收网关发送的事件消息,并提示用户所述外部事件的发生;
    所述客户端接收用户对事件消息的处理操作,发送外部事件响应指令至 所述网关,供所述网关根据所述外部事件响应指令对所述外部事件进行处理。
  6. 一种网关的事件侦听装置,位于网关中,该装置包括侦听模块、判断模块、生成模块和发送模块,其中:
    所述侦听模块设置成:侦听外部事件;
    所述判断模块设置成:判断所侦听到的所述外部事件是否满足预设条件;
    所述生成模块设置成:在判定所述外部事件满足预设条件时,根据所述外部事件生成事件消息;
    所述发送模块设置成:发送所述事件消息至本地客户端或者远程客户端,以提示用户所发生的外部事件。
  7. 如权利要求6所述的网关的事件侦听装置,其中,所述判断模块设置成:
    将所述外部事件的事件类型与预设的事件类型进行匹配,在存在与所述预设的事件类型匹配的外部事件时,判定所述外部事件满足预设条件。
  8. 如权利要求6或7所述的网关的事件侦听装置,其中,所述发送模块设置成:
    发送所述事件消息至远程客户端对应的服务器,供所述服务器转发所述事件消息至远程客户端。
  9. 如权利要求6或7所述的网关的事件侦听装置,该装置还包括第一处理模块,其中:
    所述第一处理模块设置成:接收所述本地客户端或远程客户端发送的外部事件响应指令,对所述外部事件响应指令对应的外部事件进行处理。
  10. 一种网关的事件侦听装置,位于客户端中,该装置包括提示模块和第二处理模块,其中:
    所述提示模块设置成:接收网关发送的事件消息,并提示用户所述外部事件的发生;
    所述第二处理模块设置成:接收用户对事件消息的处理操作,发送外部事件响应指令至网关,供网关根据所述外部事件响应指令对所述外部事件进行处理。
  11. 一种计算机程序,包括程序指令,当该程序指令被网关执行时,使得该网关可执行权利要求1-4中任一项所述的网关的事件侦听方法。
  12. 一种载有权利要求11所述计算机程序的载体。
  13. 一种计算机程序,包括程序指令,当该程序指令被客户端执行时,使得该客户端可执行权利要求5所述的网关的事件侦听方法。
  14. 一种载有权利要求13所述计算机程序的载体。
PCT/CN2014/088908 2014-08-05 2014-10-20 网关的事件侦听方法及装置 WO2015154414A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410382752.9A CN105323292A (zh) 2014-08-05 2014-08-05 网关的事件侦听方法及装置
CN201410382752.9 2014-08-05

Publications (1)

Publication Number Publication Date
WO2015154414A1 true WO2015154414A1 (zh) 2015-10-15

Family

ID=54287183

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088908 WO2015154414A1 (zh) 2014-08-05 2014-10-20 网关的事件侦听方法及装置

Country Status (2)

Country Link
CN (1) CN105323292A (zh)
WO (1) WO2015154414A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915412A (zh) * 2016-06-28 2016-08-31 合肥润东通信科技股份有限公司 一种物联网网关信息处理方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040017779A1 (en) * 2002-07-25 2004-01-29 Moxa Technologies Co., Ltd. Remote equipment monitoring system with active warning function
CN101064698A (zh) * 2006-04-30 2007-10-31 中国移动通信集团公司 信息家电的事件消息的分类处理方法
WO2012047185A1 (en) * 2010-10-06 2012-04-12 Thomson Licensing Systems and methods for gateway status information handling
CN103955179A (zh) * 2014-04-08 2014-07-30 小米科技有限责任公司 一种远程智能控制方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694752B (zh) * 2011-03-21 2015-03-11 国基电子(上海)有限公司 网关设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040017779A1 (en) * 2002-07-25 2004-01-29 Moxa Technologies Co., Ltd. Remote equipment monitoring system with active warning function
CN101064698A (zh) * 2006-04-30 2007-10-31 中国移动通信集团公司 信息家电的事件消息的分类处理方法
WO2012047185A1 (en) * 2010-10-06 2012-04-12 Thomson Licensing Systems and methods for gateway status information handling
CN103955179A (zh) * 2014-04-08 2014-07-30 小米科技有限责任公司 一种远程智能控制方法和装置

Also Published As

Publication number Publication date
CN105323292A (zh) 2016-02-10

Similar Documents

Publication Publication Date Title
CN111052230B (zh) 用于语音捕获设备的语音激活的选择性存储器
US9454961B2 (en) Speech recognition using loosely coupled components
US11741959B2 (en) Isolating a device, from multiple devices in an environment, for being responsive to spoken assistant invocation(s)
JP2019530033A5 (zh)
US9473628B2 (en) Method and system for providing communication hold status management
WO2017000476A1 (zh) 语音验证方法、装置以及系统
US10547564B2 (en) Service-based load-balancing management of processes on remote hosts
US20140208405A1 (en) Simplified and Safe User Authentication
US10298690B2 (en) Method of proactive object transferring management
WO2014086222A1 (zh) 设置视频通话参数、和发送能力参数的方法及装置
WO2019062090A1 (zh) 控制服务设备执行服务操作的方法、装置、设备及介质
CN109391476B (zh) 网络通话方法、装置及系统
JP2016131020A (ja) ホスト・ユーザに自動受付を提供するための方法、コンピュータ、およびコンピュータ・プログラム
US20140254788A1 (en) Communication between a mobile device and a call center
WO2016082344A1 (zh) 一种语音控制的方法、装置及存储介质
CN107920018B (zh) 一种实现延迟推送数据的方法、服务器及系统
WO2022105365A1 (zh) 设备控制的方法及系统、电子设备、及存储介质
WO2018000348A1 (zh) 一种基于云端实现智能安防的方法及系统
WO2015154414A1 (zh) 网关的事件侦听方法及装置
JP2008191711A5 (zh)
US10249295B2 (en) Method of proactive object transferring management
CN110893616B (zh) 一种远程控制方法、装置、计算机设备和存储介质
WO2016008349A1 (zh) 一种获取本地信息的方法、装置及系统
US20210406806A1 (en) Systems and methods for intelligent monitoring
US20180350359A1 (en) Methods, systems, and media for controlling a media content presentation device in response to a voice command

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14889140

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14889140

Country of ref document: EP

Kind code of ref document: A1