Method and system for controlling intelligent terminal and gateway equipmentTechnical Field
The invention relates to the technical field of internet of things, in particular to a method and a system for controlling an intelligent terminal and gateway equipment.
Background
With the rapid development of network technology, intelligent terminals such as mobile phones and Personal Computers (PCs) are becoming more and more popular, which brings great convenience to people in life, study and work.
Generally, the intelligent terminals implement network connection through a connection router to meet the service requirement of users for surfing the internet. Therefore, the internet access time of the user can be controlled through the router. The router generally performs internet access control for a fixed time period on a given device.
Taking the control of the internet surfing time of the child as an example, when a parent wants to control the internet surfing time of the child, a router can set a fixed internet surfing time period corresponding to a device used by the child, for example, the fixed internet surfing time period corresponding to an intelligent terminal used by the child is set to 6 to 8 pm, that is, the child is allowed to surf the internet during the time period from 6 to 8 pm, and the child cannot surf the internet at other times. It can be seen that the current internet access limiting method of the router is not flexible enough.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a method for controlling an intelligent terminal, so as to solve the problem that a gateway device limits the internet surfing time of the intelligent terminal and has low flexibility.
Correspondingly, the embodiment of the invention also provides a system for controlling the intelligent terminal and gateway equipment, which are used for ensuring the realization and application of the method.
In order to solve the above problem, an embodiment of the present invention discloses a method for controlling an intelligent terminal, including: generating log information by monitoring the internet access behavior of the target equipment; determining access time information corresponding to each access of the target equipment within preset time according to the log information; determining total access time information of the target equipment according to the access time information corresponding to each access; and when the total access time information reaches a preset limit threshold, limiting the internet surfing behavior of the target equipment according to the internet access prohibition instruction.
Optionally, the method further includes: and presetting at least one target device corresponding to monitoring and a limit threshold value of the target device.
The embodiment of the invention also discloses a system for controlling the intelligent terminal, which comprises: the log generation module is used for generating log information by monitoring the internet access behavior of the target equipment; the time information determining module is used for determining access time information corresponding to each access of the target equipment within preset time according to the log information; the total time information determining module is used for determining total access time information of the target equipment according to the access time information corresponding to each access; and the internet access limiting module is used for limiting the internet access behavior of the target equipment according to the internet access forbidding instruction when the total access time information reaches a preset limiting threshold value.
The embodiment of the invention also discloses a gateway device, which comprises: an input device and a processor. The processor is coupled to the input device and used for generating log information through monitoring the internet access behavior of the target device; determining access time information corresponding to each access of the target equipment within preset time according to the log information; determining total access time information of the target equipment according to the access time information corresponding to each access; and when the total access time information reaches a preset limit threshold, limiting the internet surfing behavior of the target equipment according to the internet access prohibition instruction.
The embodiment of the invention has the following advantages:
the embodiment can generate the log information by monitoring the internet surfing behavior of the target device to determine the total access time information of the target device within the preset time, so that the total internet surfing time of the user within the preset time can be calculated in real time, and the accumulation of the internet surfing time of the target device within the preset time is realized. When the total access time information reaches a preset limit threshold value, namely when the total internet surfing time of the user in the preset time reaches the preset total internet surfing time threshold value, the internet surfing behavior of the target device is limited according to the internet surfing forbidding instruction, the total internet surfing time of the target device in the preset time is controlled but not limited in a fixed time period, therefore, the problem that the flexibility of the gateway device for limiting the internet surfing time of the intelligent terminal is low can be solved, and the total internet surfing time of the user in a specified time range is flexibly controlled.
The embodiment of the invention can lead a plurality of intelligent terminals to belong to the same specific user, namely, the plurality of intelligent terminals are set to monitor the corresponding target equipment and set the limiting threshold value of the target equipment, thereby realizing the accumulation and control of the internet surfing time of all the target equipment in the preset time by monitoring the internet surfing behavior of the target equipment.
Drawings
Fig. 1 is a schematic flow chart of a control intelligent terminal according to an embodiment of the present invention;
FIG. 2 is a flow chart of steps of an embodiment of a method of controlling a smart terminal of the present invention;
FIG. 3 is a flowchart illustrating steps of a preferred embodiment of a method for controlling a smart terminal according to the present invention;
fig. 4 is a schematic diagram of a target device corresponding to monitoring and configured by a gateway device in a specific example of the present invention;
fig. 5 is a schematic diagram of interaction between a server and a gateway device in a method for controlling an intelligent terminal according to the present invention;
FIG. 6A is a block diagram of an embodiment of a system for controlling a smart terminal according to the present invention;
FIG. 6B is a block diagram of a preferred embodiment of a system for controlling a smart terminal according to the present invention;
fig. 7 is a schematic diagram of a hardware structure of a control terminal according to an embodiment of the present invention;
fig. 8 is a block diagram of an embodiment of a system for controlling an intelligent terminal according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The user can own a plurality of intelligent terminals, such as a plurality of smart phones, tablet computers, personal computers and the like, and can surf the internet by operating the own intelligent terminals. These intelligent terminals are connected to the Internet (Internet) through gateway devices such as intelligent routers, etc. to meet the Internet access requirements of users. In view of the above technical problems, embodiments of the present invention provide a method and a system for controlling an intelligent terminal, so as to control the intelligent terminal owned by a user, thereby flexibly controlling a total internet access time (i.e., a total internet access duration) of the user within a specified time range.
The embodiment of the invention can call each intelligent terminal needing to be controlled as target equipment, for example, the intelligent terminals needing to be used by objects needing to be monitored, such as children, old people, patients and the like, are configured as the target equipment, so that the total internet surfing duration of a user in the preset time can be controlled by monitoring the internet surfing behavior of the target equipment. Specifically, the time when the user uses the intelligent terminal to surf the internet is fragmented, and the used internet surfing equipment is diversified, such as a tablet computer, a mobile phone, a desktop computer, and the like, that is, the user may surf the internet through one or more intelligent terminals at different time periods. Therefore, the embodiment can determine the total internet surfing time of the user within the preset time by monitoring all the intelligent terminals used by the user, and limit the internet surfing behavior of the target device when the total internet surfing time reaches the preset limit threshold, so that the control of the total internet surfing time of the target device within the preset time is realized but not limited within a fixed time period, namely the problem that the flexibility of the gateway device for limiting the internet surfing time of the intelligent terminal is low is solved, and the flexible control of the total internet surfing time of the user within the specified time range is realized.
Example one
The embodiment of the invention provides a method for controlling an intelligent terminal, which can monitor the intelligent terminal operated by a user so as to control the total internet surfing time of the user within the preset time. Fig. 1 is a schematic flow chart of controlling an intelligent terminal according to an embodiment of the present invention, where a is an intelligent terminal to be monitored, that is, a controlled terminal, and may include multiple target devices 1, 2, and 3 … … N; and B is a control terminal. When the monitored intelligent terminal is connected with the Internet through the control terminal, the control terminal can monitor the Internet surfing behavior of the controlled terminal according to the data packet sent by the controlled terminal and can count the total Internet surfing duration of the controlled terminal within the preset time, so that the Internet surfing behavior of the controlled terminal can be limited according to the Internet surfing prohibition instruction when the total Internet surfing duration reaches the preset limit threshold. The master terminal may include various terminals that forward data packets of the intelligent terminal, and specifically may include: any one of the terminals, such as a router, a gateway device of a switch, a server, or an intelligent terminal as a control end, or a combination of any several of the terminals, which is not limited in this embodiment of the present invention. The following discusses the present invention by taking the combination of the gateway device and the server as an example. The method specifically comprises the following steps:
referring to fig. 2, a flowchart illustrating steps of an embodiment of a method of controlling a smart terminal of the present invention is shown.
Step 202, generating log information by monitoring the internet access behavior of the target device.
Generally, the intelligent terminal is connected with the gateway device, for example, the router, so as to connect with the network server, thereby meeting the internet access requirement of the user. In this embodiment, the gateway device may detect the forwarded data packet, so as to monitor the internet access behavior of the target device and generate corresponding log information.
Specifically, the intelligent terminal may determine operation information according to an input operation of a user, may encapsulate the operation information into a data packet, and may send the data packet to a gateway device, such as a router, so as to forward the data packet to the network server through the gateway device. The data packet may include a destination address, a source address, device identification data, operation data, and the like. The destination address may be used to indicate a destination to which the data packet is sent, i.e., may be used to determine an Internet Protocol (IP) address of a device, such as a cloud server or a web server, to which the smart terminal needs to access. The source address may be used to indicate the IP address of the terminal sending the packet, such as the intelligent terminal sending the data packet. The device identification information may be used to determine a device uniquely corresponding to the device, such as determining a target device, and specifically may include a physical Address (MAC Address) of the device, a Model (Model) data of the device, and the like. The operation information may be used to determine an internet access behavior of the intelligent terminal, and specifically may include data generated by the intelligent terminal according to an input operation, such as an Identity number (ID) of an Application (APP), time for starting the Application, and/or time for closing the Application, which is not limited in this embodiment.
After receiving the data packet sent by the intelligent terminal, the gateway device can determine the intelligent terminal corresponding to the data packet by detecting the device identification data in the data packet, and monitor the internet access behavior of the intelligent terminal. For example, when recognizing that the intelligent terminal corresponding to the device identification data carried in the data packet is the target device, the router may recognize the internet access behavior of the target device by detecting the content carried in the data packet, for example, determine whether a packet carried in the data packet is empty by detecting the traffic of the data packet, determine that the intelligent terminal sending the data packet does not have the internet access behavior when the packet carried in the data packet is empty, and discard the data packet; when the message carried by the data packet is not empty, determining that the intelligent terminal sending the data packet has an internet behavior, and generating corresponding internet behavior data; therefore, the log information can be generated based on the internet behavior data of the target equipment. The log information may specifically record an operation condition of the gateway device, and may specifically include parameter information such as device identification data of the intelligent terminal, internet behavior data, and/or an ID of a specific user, for example, a condition that the gateway device forwards a data packet may be determined. The ID of the feature user may be used to determine a unique corresponding user and/or all target devices that may be used by the feature user, which is not limited in this embodiment of the present invention.
And 204, determining access time information corresponding to each access of the target equipment within preset time according to the log information.
The embodiment can determine the access time information corresponding to each network access of the target device through the recorded data in the log information. Wherein the access time information may include: the target device starts to surf the internet at this time, the target device stops surfing the internet at this time, the current corresponding surfing time of the target device, the current surfing time of the target device, and the like. Specifically, after the gateway device generates the log information, the gateway device may calculate, based on data recorded in the log information, a difference between an initial time and a termination time corresponding to each access of the target device by using the central processing unit, to obtain access time information corresponding to each access of the target device, such as an internet surfing time; the log information may also be transmitted to a server, so that the server determines access time information corresponding to each access of the target device according to the log information, and thus may determine time information corresponding to each time of surfing the internet by using the feature user corresponding to the target device, such as start time, end time, duration of surfing the internet, and the like corresponding to each time of surfing the internet. If the internet access behavior of the target device within the preset time is to be monitored, for example, total access time information of the target device within the preset time is monitored, access time information corresponding to each access can be determined for each network access of the target device within the preset time.
As a specific example of the present embodiment, the server may determine the corresponding target device by extracting the MAC address and the model data of the device from the data recorded in the log information; and extracting the internet access behavior data corresponding to a certain access of the target equipment within the preset time from the log information, so that the internet access time of the target equipment at the time can be determined through calculation, namely the current access time information is determined. For example, if the time for the target device to start the APP is T1 and the time for the target device to close the APP is T2, the server may determine that the current internet surfing time length of the target device is a time difference between the start and the close of the APP of the target device (T2-T1); or, when the time for closing the APP by the target device is not obtained, the current time T0 of the network system may be obtained in real time, and then the current internet surfing duration corresponding to the target device in the internet surfing process may be determined in real time as the difference between the current time of the network system and the time for starting the APP by the target device (T0-T1).
And step 206, determining the total access time information of the target device according to the access time information corresponding to each access.
After determining the access time information corresponding to each access of the target device, the present embodiment may further perform statistics on all the determined access time information according to a preset statistical rule to obtain the total access time information of the target device within a preset time, and for example, after determining the internet surfing time length of each access of the target device within the preset time, may determine the total internet surfing time length currently corresponding to the target device in real time, that is, determine the total access time information of the target device.
In a specific example of the present invention, after determining the access time information of the current internet access, the server may obtain the previously determined access time information of the target device in the preset time, and further may count the access time information of the target device in the preset time, and determine the total access time information of the target device in the preset time. Specifically, in the process of accessing the internet by the target device, the server may sum the current internet access time length corresponding to the target device and the total internet access time length determined when the last internet access is finished, so as to obtain the current total internet access time length corresponding to the target device; or when the internet surfing is finished, summing the internet surfing time of the time with the total internet surfing time determined when the internet surfing is finished last time to obtain the total internet surfing time corresponding to the target device when the internet surfing is finished. For example, the server may determine that the current corresponding time duration of the target device to surf the internet is 15 minutes, and obtain that the total time duration of surfing the internet when surfing the internet last time is finished is 45 minutes, so that the current corresponding total time duration of surfing the internet of the target device in the day may be determined to be 1 hour.
And 208, when the total access time information reaches a preset limit threshold, limiting the internet access behavior of the target device according to the internet access prohibition instruction.
In this embodiment, a limit threshold may be preset for the monitored target device to limit the total internet surfing duration of the target device within a preset time, but is limited to a fixed time.
In a specific example of the present invention, the server may preset a target device monitored by the gateway device, and set a limit threshold of the target device. The limiting threshold may include a total internet surfing time length for limiting the target device within a preset time, for example, the server may preset the limiting threshold of the target device to be 1 hour, so as to set the total internet surfing time length corresponding to the target device within each day to be 1 hour. Of course, the server may also set the upper threshold of the target device for other preset time, for example, set the upper threshold for the target device for preset time such as weekly, monthly, etc., which is not limited in this embodiment.
After determining the total access time information of the target device, the server may detect whether the current total access time information reaches a preset limit threshold, so as to determine whether the current corresponding total internet surfing duration of the target device reaches the preset limit threshold. When the current total internet surfing duration corresponding to the target device reaches the limit threshold, the server can generate an internet surfing prohibition instruction for the target device and send the internet surfing prohibition instruction to the gateway device, so that the gateway device can limit the internet surfing behavior of the target device. The internet surfing forbidding instruction can be used for limiting the internet surfing behavior of the target device, so that the internet surfing behavior of a user using the target device is limited.
Specifically, after receiving the internet access prohibition instruction, the gateway device may restrict the internet access behavior of the target device according to the internet access prohibition instruction. For example, after executing the command for prohibiting internet access, when detecting a data packet sent by the target device, the gateway device may directly discard the data packet sent by the target device, so that the target device may not access the server, i.e., a user using the target device may not surf the internet; the data packet sent to the designated address may also be released, for example, the data packet is discarded when it is detected that the destination address of the data packet sent by the target device matches a preset designated address range, and the data packet is forwarded when it is detected that the destination address of the data packet sent by the target device matches the designated address, that is, the data packet is forwarded to the device corresponding to the designated address.
In summary, in the embodiment, the access time information corresponding to each access of the target device within the preset time can be determined by monitoring the internet surfing behavior of the target device, so that the time information corresponding to each internet surfing of a user operating the target device within the preset time, such as the internet surfing time, can be determined; and the total access time information of the target device can be determined according to the access time information corresponding to each access, namely, the total internet surfing time of the user in the preset time can be calculated in real time, the accumulation of the internet surfing time of the target equipment in the preset time is realized until the total access time information is reached, and can limit the internet access behavior of the target device according to the internet access forbidding instruction when the total access time information reaches the preset limit threshold, therefore, the internet access behavior of the user can be limited when the total internet access time of the user in the preset time reaches the preset total internet access time threshold value, the control of the total internet access time of the target equipment in the preset time is realized but not limited in a fixed time period, therefore, the problem that the gateway equipment limits the flexibility of the internet surfing time of the intelligent terminal to be low can be solved, namely, the total internet surfing time of the user in a specified time range can be flexibly controlled.
Example two
In this embodiment, a user may set one or more intelligent terminals as a monitoring target device in advance, and set a limit threshold corresponding to all target devices within a preset time, so as to monitor a total internet surfing duration of the user operating the target devices within the preset time, and flexibly control the internet surfing behavior of the user. The method specifically comprises the following steps:
referring to fig. 3, a flow chart of the steps of a preferred embodiment of a method of controlling a smart terminal of the present invention is shown.
Step 302, presetting at least one target device corresponding to the monitoring and a limit threshold of the target device.
In the specific application of this embodiment, a user may send a message to a server by operating an APP installed on an intelligent terminal, so as to set one or more intelligent terminals as target devices to be monitored by gateway devices, for example, all intelligent terminals used by an exclusive specific user may be set as target devices to be monitored by network management devices, so that monitoring of the internet behavior of the specific user may be achieved by monitoring the internet behavior of the target devices. The specific user may specifically include a patient, a child, an old person, and the like, and may be set according to an actually monitored user object, which is not limited in this embodiment.
Of course, the server may also set the limit threshold of the target device according to the message sent by the user, so as to control the total internet surfing duration corresponding to the target device within the preset time, that is, set the total internet surfing duration threshold corresponding to all the target devices within the preset time for the specific user, so as to control the total internet surfing duration of the specific user within the preset time according to the preset total internet surfing duration threshold, but not limited to the fixed time period. For example, the server may set, for a specific user, a total internet access time threshold of all corresponding target devices within a preset specified time of a day, a week, and the like, which is not limited in this embodiment.
As a specific example of this implementation, as shown in fig. 4, a user may start a child mode on the smart router by operating an APP on a smart phone, and set one or more smart terminals as child-specific devices. Specifically, a user can connect with the Internet (Internet) through the smart phone APP and send a message to the server, so that the server controls the smart router to start a child mode, and one or more intelligent terminals dedicated to children can be set as target devices corresponding to monitoring of the smart router. Certainly, the user may also send a message to the server through the APP, so that the server sets the limit threshold of the target device, for example, the limit thresholds of all the target devices in one day are set to 1 hour, that is, the total internet surfing time of the child in one day is set to 1 hour, but the specific internet surfing time of the child in one day may not be limited.
Of course, the user may also directly set the target device to be monitored by the gateway device and the limit threshold corresponding to the target device by operating the gateway device, such as an intelligent router, which is not specifically limited in this embodiment.
And 304, generating log information by monitoring the internet access behavior of the target equipment.
In this embodiment, the gateway device may detect the received data packet, may identify the target device, and may monitor the internet behavior of the target device, so that corresponding log information may be generated based on the monitored internet behavior of the target device. In a preferred embodiment of the present invention, the generating of the log information by monitoring the internet access behavior of the target device may include the following sub-steps:
substep 3042, obtaining the device identification data from the received data packet, and identifying the target device according to the device identification data.
In this embodiment, after receiving a data packet, the gateway device may extract corresponding device identification data, such as an MAC address and device Model data, according to a preset device identifier, so as to identify a target device according to the extracted device identification data, and for example, when the extracted MAC address and device Model data match a MAC address and device Model data corresponding to a preset monitoring target device, it may be determined that the data packet belongs to the target device, that is, the target device is identified; when the extracted MAC address and device Model data do not match the MAC address and device Model data corresponding to the preset monitoring target device, it may be determined that the data packet does not belong to the target device.
Of course, the embodiment may also determine whether the data packet belongs to the target device through other manners, for example, whether the data packet belongs to the target device may be determined through a source address and a destination address in the data packet; when the source address or the destination address in the data packet matches the IP address of the target device, it may be determined that the data belongs to the target device, which is not limited by the present invention.
Substep 3044, monitoring the internet access behavior of the target device by detecting the data packet, and generating corresponding internet access behavior data.
In this embodiment, after determining that the data packet belongs to the target device, the data packet may be detected to monitor the internet access behavior of the target device, so as to generate corresponding internet access behavior data. The internet access behavior data may specifically include: the destination address and corresponding time data accessed by the target device. The time data may specifically include a start time and an end time corresponding to each access.
Optionally, the monitoring the internet access behavior of the target device by detecting the data packet, and generating corresponding internet access behavior data may specifically include: detecting a destination address of a data packet and determining a mode for connecting the destination address; when a destination address is connected in a first mode, recording an access request to the destination address in each period; when a destination address is connected through a second mode, recording the starting time when the target equipment starts to be connected with the destination address and the ending time when the target equipment is disconnected with the destination address. For example, when the intelligent terminal refreshes an accessed website page or APP page, the gateway device may extract a destination address and a source address from the received data packet, and may further determine an IP address accessed by the target device, determine a connection mode between the target device and the accessed IP address, monitor an internet access behavior of the target device based on the connection mode, and generate corresponding internet access behavior data.
In a specific application scenario of the present invention, the gateway device may detect that the target device sends an access request to the same destination address multiple times within a preset period, and an access response fed back to the target device by the destination address, and may determine that the target device is connected to the destination address in the first manner. The first method has a short connection time, i.e. a short communication time, such as a short connection, and usually disconnects the connection in time after each access request is completed, and processes one independent service or Transaction (Transaction) at a time. The gateway device may count the number of times that the target device accesses the same destination address in the same period, so that when it is detected that the number of times of access reaches a preset threshold value of the number of times of access, it may be determined that the target device connects to the destination address in the first manner, and may record an access request to the destination address by the target device in each period, such as the number of times of requests to access the destination address, time data corresponding to each access, such as a start time corresponding to sending the access request, a response time to receive a corresponding response, an end time corresponding to tearing down the connection, and the like. Preferably, in this embodiment, when the access time reaches a preset access time threshold, the current network time of the system is acquired as the start time corresponding to the current internet surfing start, or the start time corresponding to the target device sending the access request to the destination address for the first time is taken as the start time corresponding to the current internet surfing start; and when the access times are lower than a preset access time threshold, acquiring the current network time of the system as the termination time corresponding to the termination of the internet surfing, or taking the response time corresponding to the access response fed back by the target device for the last time receiving the destination address as the termination time corresponding to the termination of the internet surfing, which is not limited in this embodiment.
When detecting that the access frequency of the target device to the same destination address in the same period is lower than a preset access frequency threshold, the gateway device may determine that the target device is connected to the destination address through the second mode. The second method is relatively long in communication time, which may be referred to as long connection, and generally establishes a connection with a destination address at the time of starting an access, for example, when sending an access request to the destination address, and may transmit various actual services on the basis of the connection, and disconnects the connection when ending the access to the destination address. Therefore, when the destination address is connected in the second mode, the gateway device may record, by detecting the data packet, a start time when the target device starts to connect with the destination address and a stop time when the target device disconnects from the destination address; and the start time and the end time may be taken as the time data. For example, when a user logs in a communication APP through an intelligent terminal, gateway equipment may record, by acquiring current time of a system, start time corresponding to connection of the intelligent terminal with a server corresponding to the communication APP when forwarding a data packet corresponding to start of the communication APP, and may exercise, at the intelligent terminal, termination time corresponding to connection of the server corresponding to disconnection with the communication APP, and take the start time and the termination time as time data of accessing the server corresponding to the APP by the intelligent terminal, so that the duration of accessing the internet corresponding to accessing the server corresponding to the communication APP by the intelligent terminal may be counted according to the time data.
Substep 3046, generating log information by using the device identification data and the internet behavior data.
In a specific application of the present invention, the gateway device may generate corresponding generated log information based on the acquired device identification data and the corresponding internet behavior data as data of log information record, and may upload the generated log information to the server, so as to count the total internet access duration corresponding to the target device within the preset time in real time through the server.
Step 306, for each network access of the target device within a preset time, detecting internet behavior data corresponding to the target device, and determining the access time information.
In a specific application of this embodiment, after receiving log information reported by the gateway device, the server may extract data recorded by the target device monitored by the gateway device from the log information, and determine access time information corresponding to each network access of the target device.
As a specific example of the present invention, after receiving log information, a server may extract device identification data, such as an MAC address of a device and Model data of the device, from the log information, so as to determine a device monitored by a gateway device using the device identification data, and further determine whether the device corresponding to the extracted device identification data is a target device, such as determine whether the extracted device identification data matches device identification data corresponding to a preset target device. If not, it may be determined that the device corresponding to the extracted device identification data is not the target device, that is, it may be determined that the device corresponding to the extracted device identification data is not the dedicated device used by the specific user. If the device identifier is matched with the device identifier, it may be determined that the device corresponding to the extracted device identifier is the target device, that is, it may be determined that the device corresponding to the extracted device identifier belongs to the dedicated device used by the specific user and the total access time information of the target device needs to be determined.
The server can extract the internet access behavior data corresponding to the target device according to the device identification data, so that the time data corresponding to the target address accessed by the target device each time is determined by adopting the internet access behavior data. Optionally, for each network access of the target device within a preset time, detecting the internet access behavior data corresponding to the target device to determine access time information, which may specifically include the following substeps:
and a substep 3062 of searching time data for accessing the destination address from the internet access behavior data.
In a specific application of the present invention, if the target device connects to the destination address in the first manner, the server may determine the start time and the end time according to the access request of the target device to the destination address in each period recorded in the log information, for example, the start time and the end time may be determined based on the request of the target device to the web page continuously in the same period. Specifically, when the number of requests corresponding to the continuous requests to the web page by the target device in the same period reaches a preset number threshold, the server may determine the start time corresponding to the start of surfing the internet by the target device. Correspondingly, when the number of times of requests corresponding to the continuous requests of the target device for the web page in the same period is lower than a preset number threshold, the server may determine the termination time corresponding to the termination of the internet surfing of the target device. If the target device connects to the destination address in the second mode, the server may search the log information for the start time and the end time of the target device for the connection to the destination address.
In a preferred embodiment of the present invention, before searching the time data for accessing the destination address from the internet behavior data, it may further be detected whether the destination address matches a preset specified address, so as to determine whether statistics needs to be performed on the access time information corresponding to the destination address. Specifically, the server determining the access time information by detecting the internet access behavior data corresponding to the target device further includes: detecting whether the destination address of each access is matched with the specified address; when the destination address is matched with the specified address, ignoring network access behavior to the specified address; and when the destination address is not matched with the specified address, performing a substep of searching the time data for accessing the destination address from the internet behavior data. For example, when the IP address of the learning website is preset as the designated address, and the server detects that the destination address matches the designated address, the target device can be determined to access the learning website, and the access time information corresponding to the access of the learning website can be not counted, that is, the internet access behavior of the user accessing the learning website is ignored, so that the internet access behavior of the user can be flexibly controlled.
Sub-step 3064, determining access time information for accessing the destination address using the difference between the start time and the end time in the time data.
In this embodiment, for each network access to the destination address by the target device, a difference between an end time corresponding to the end of the access and an initial time corresponding to the start of the access is calculated and used as an internet surfing time corresponding to the current internet surfing; or when the termination time corresponding to the current termination access is not obtained, the difference between the current time of the system and the starting time corresponding to the current starting access can be calculated and used as the current internet surfing time length corresponding to the current internet surfing process, so that the total internet surfing time length corresponding to the target device in the preset time can be monitored in real time.
As a specific example of the present invention, the server may determine the time when the target device starts to surf the internet based on the time when the APP is started, for example, when the target device starts one or more APPs in the process of surfing the internet, the start time when the APP starts to start first may be determined as the time when the target device starts to surf the internet; the time for the target device to stop surfing the internet at this time can also be determined based on the time for closing the APPs, for example, when the target device starts one or more APPs in the process of surfing the internet at this time, the time for closing the APPs at the latest can be determined as the time for stopping surfing the internet at this time; the time difference between the current network system time and the time for starting the APP can be calculated to determine the current corresponding internet surfing time length of the target device; the time length of the current internet surfing may also be determined by calculating a time difference between the time when the current internet surfing starts and the time when the current internet surfing stops, which is not particularly limited in this embodiment.
Of course, when there are multiple target devices to surf the internet at the same time in the same time period, that is, when a specific user surfs the internet by using multiple target devices, the server may determine the access time information of this time, that is, the time information of the specific user surfing the internet, by using the internet behavior data corresponding to any one of the target devices. For example, when a child uses a mobile phone and a desktop computer to surf the internet at the same time, the server can determine the time information of the current internet surfing of the feature user by adopting the internet surfing behavior data corresponding to the mobile phone; or the time information of the current internet surfing of the characteristic user can be determined by adopting the internet surfing behavior data corresponding to the desktop computer, namely the time information of the current internet surfing of the target equipment is determined.
And 308, determining the total access time information of the target equipment according to the access time information corresponding to each access.
After determining the access time information of the current internet access, the server can acquire the previously determined access time information of the target device in each time within the preset time, and further can count the access time information of the target device in each time within the preset time to determine the total access time information of the target device in the preset time. As a specific example of the present invention, in the process of accessing the internet by the target device, the server may sum the current internet access time length corresponding to the target device and the total internet access time length determined when the last internet access is finished, so as to obtain the current total internet access time length corresponding to the target device; or when the internet surfing is finished, summing the internet surfing time of the time with the total internet surfing time determined when the internet surfing is finished last time to obtain the total internet surfing time corresponding to the target device when the internet surfing is finished. For example, the server may determine that the current corresponding time duration of the target device to surf the internet is 15 minutes, and obtain that the total time duration of surfing the internet when surfing the internet last time is finished is 45 minutes, so that the current corresponding total time duration of surfing the internet of the target device in the day may be determined to be 1 hour.
When there is more than one target device, the present embodiment may count the access time information corresponding to access by all the target devices within the preset time to determine the total access time information, for example, sum the access time information of each target device within the preset time to determine the total access time information of the target device. Specifically, the server may obtain access time information of each target device within a preset time, and may detect the access time information of each target device within the preset time to determine whether more than two target devices have internet surfing behavior at the same time, that is, determine whether a specific user uses more than two target devices to surf the internet at the same time. When a specific user uses more than two target devices to surf the internet at the same time, the server can determine that the more than two target devices have internet surfing behaviors at the same time, can calculate access time information of only one target device to calculate, and determines current corresponding network access time information of all the target devices within preset time, such as current corresponding total internet surfing duration in one day. For example, in the time period of 9:30-9:45, the child uses a mobile phone and a tablet computer to surf the internet, the server can determine that the mobile phone and the tablet computer have internet surfing behaviors in the time period of 9:30-9:45 at the same time through log information, extract internet surfing behavior data of the mobile phone or the tablet computer to calculate, and determine access time information of the target device at this time, for example, the time length of the target device accessing the internet at this time can be recorded as 15 minutes or the access time information of the target device can be recorded as 9:30-9:45, wherein 9:30 can represent the time of starting access at the internet and 9:45 the time of finishing access at the internet at this time. If the time information of each internet access of the target device is 11 minutes, 4 minutes and 30 minutes in other time periods of the day, the server may determine that the total internet access time length currently corresponding to the target device reaches the preset limit threshold value of 1 hour at 9:45, and execute step 310.
And step 310, when the total access time information reaches a preset limit threshold, limiting the internet access behavior of the target device according to the internet access prohibition instruction.
Specifically, the server may automatically generate an internet access prohibition instruction and send the internet access prohibition instruction to the gateway device when the total access time information reaches a preset limitation threshold, so that the gateway device limits the internet access behavior of the target device. As a specific example of this embodiment, when the total internet access time of the target device accessing the network in one day reaches a preset limit threshold, that is, when the internet access time of a specific user in one day reaches a preset limit threshold of 1 hour, the server may generate an internet access prohibition instruction for the specific user, and send the internet access prohibition instruction to the gateway device, so as to limit the internet access behavior of the target device used by the specific user through the gateway device.
Through the embodiment, a user can set one or more intelligent terminals to be monitored as target equipment corresponding to the gateway equipment through the server, and configure corresponding limit thresholds for all the target equipment, so that the total internet surfing time of the target equipment in the preset time can be flexibly controlled, that is, the total internet surfing time of a specific user in the preset time can be flexibly controlled, and further, the phenomenon that the internet surfing time of the specific user in the preset time is too long can be avoided. Wherein, the specific user refers to a user who uses the target device to surf the internet.
Of course, if the gateway device can count the total access time information corresponding to the target device within the preset time access, the gateway device may also generate a corresponding internet access prohibition instruction when the total access time information reaches a preset limitation threshold, and execute the internet access prohibition instruction to limit the internet access behaviors of all the target devices.
In a preferred embodiment of the present invention, the limiting the internet access behavior of the target device according to the internet access prohibition instruction includes: and when the destination address is connected in a second mode, disconnecting the destination address according to the internet access forbidding instruction so as to forbid accessing the destination address. Specifically, when the total internet surfing duration corresponding to the target device reaches the preset time upper limit, the gateway device of this embodiment may disconnect the target device from the destination address according to the internet surfing prohibition instruction automatically generated for the target device, so as to terminate the service transmitted to the destination address by the target device, that is, prohibit the target device from accessing the destination address, and achieve the purpose of restricting the internet surfing behavior of the target device.
Of course, when the destination address is connected in the first manner, the present embodiment may discard the packet corresponding to the destination device, so as to prohibit the destination device from accessing the destination address.
Total access time information in a preferred embodiment of the present invention, the limiting the internet access behavior of the target device according to the internet access prohibition instruction may specifically include: and discarding the data packet sent by the target device. For example, after receiving the internet access prohibition instruction generated by the server, the gateway device may execute the internet access prohibition instruction, so that when a data packet sent by the target device is identified, the data packet may be discarded, so that the target device may not access the network server, that is, the target device used by the specific user may not surf the internet, thereby controlling the total internet access duration of the specific user within the preset time period but not limited to the fixed time period.
In another preferred embodiment of the present invention, the limiting the internet surfing behavior of the target device according to the internet surfing prohibition instruction may specifically include: and releasing the data packet sent to the specified address by the target device. In a specific application of the present invention, after executing the internet access prohibition instruction generated by the server, the gateway device may release the data packet sent to the preset specified address by the target device, so that the target device may access the server or website corresponding to the specified address, and the flexibility of controlling the internet access behavior of the target device is further improved.
Optionally, the gateway device passing the data packet sent by the target device to the specified address may include: after the internet surfing forbidding instruction is executed, if a data packet sent by target equipment is received, whether a destination address of the data packet is matched with a preset specified address is detected; forwarding the data packet when the destination address matches a specified address; and discarding the packet if the destination address does not match a specified address.
Specifically, the gateway device may forward a packet of another intelligent terminal in addition to a packet of the target device, for example, the router may forward a packet of an intelligent terminal dedicated to a specific user, or may forward a packet of an intelligent terminal not dedicated to a specific user. Therefore, after receiving the data packet, the gateway device may determine whether the data packet is a data packet of the target device according to the source address or the device identification data in the device packet, that is, detect whether the data packet is a data packet sent by the target device. For example, when the data packet is a data packet sent by the target device, the gateway device may extract a destination address, such as a destination IP address, from the data packet to detect whether the destination address matches a preset specified address, that is, determine whether the target device accesses a preset specified website server. When the destination address in the data packet matches the designated address, the gateway device may determine that the target device accesses the designated website server, and forward the data packet to the designated website server based on the destination address, so as to limit the website server accessed by the target device when the total internet surfing time of the target device within the preset time reaches the limit threshold, that is, to limit the web page or website and the like accessed by the specific user when the total internet surfing time of the specific user within the preset time reaches the limit threshold. When the destination address in the data packet is not matched with the designated address, the gateway device may determine that the target device does not access the designated website server, and may discard the data packet, so that the target device may not access the website server corresponding to the destination address, that is, the internet access behavior of the target device is limited.
To sum up, the embodiment of the present invention can enable a plurality of intelligent terminals to belong to the same specific user, that is, the plurality of intelligent terminals are set as target devices to be monitored by the gateway device correspondingly, and can accumulate and control the internet access time of all the target devices within the preset time, so as to realize that the total internet access time of the specific user within the preset time is limited but not limited within a fixed time period, for example, the total internet access time of children per day can be controlled, that is, the flexibility of controlling the internet access time of the user is improved.
EXAMPLE III
On the basis of the above embodiments, the present embodiment discusses the method steps of controlling the intelligent terminal based on the interaction between the server and the gateway device. The method specifically comprises the following steps:
referring to fig. 5, a schematic diagram of interaction between a server and a gateway device in a method for controlling an intelligent terminal according to the present invention is shown.
And 5.02, setting the target equipment correspondingly monitored by the gateway equipment and the limit threshold value of the target equipment by the server.
Specifically, the user may send a message to the server through the APP, so that the server sets the target device monitored by the gateway device correspondingly and the limit threshold of the target device.
And 5.04, the gateway equipment generates log information by monitoring the internet access behavior of the target equipment and sends the log information to the server.
Generally, a user may start a monitoring mode of the gateway device through a server, or may directly operate the gateway device to start the monitoring mode of the gateway device, so that the target device monitors the internet behavior of the target device. The gateway device may include a router, and may be specifically configured to forward a data packet, for example, forward a data packet sent by an intelligent terminal to a network server, or forward a data packet fed back by the server to the intelligent terminal. Specifically, the gateway device may identify the target device and monitor the internet access behavior of the target device by detecting a data packet corresponding to the target device, and generate corresponding log information. The log information may specifically include parameter information such as device identification data and internet access behavior data. The device identification data may specifically include a MAC address of the device, Model data of the device, and the like; the internet behavior data can be used for determining the internet behavior of the intelligent terminal.
And 5.06, the server determines the corresponding total access time information of the target equipment in the preset time according to the log information sent by the gateway equipment.
When receiving the log information sent by the gateway device, the server may determine, through the data recorded in the log information, the target device corresponding to the device identification information, and determine the total access time information of the target device, such as the current corresponding total internet access time length. For example, the server may determine the time when the target device starts to surf the internet based on the log information, so that the current corresponding time length for surfing the internet may be determined in real time by calculating the current network time of the system and the time when the target device starts to surf the internet, and the current corresponding time length for surfing the internet may be summed with the total time length for surfing the internet when the last time of surfing the internet is completed, so as to obtain the current corresponding total time length for surfing the internet of the target device within the preset time.
And 5.08, when the total access time information of the target equipment reaches a preset limit threshold value, the server generates an internet access forbidding instruction and transmits the internet access forbidding instruction to the gateway equipment.
Specifically, after determining the current corresponding total internet surfing time of the target device within the preset time, the server may determine whether the current corresponding total internet surfing time reaches the limit threshold, so that the server may generate the corresponding internet surfing prohibition instruction when the current corresponding total internet surfing time reaches the limit threshold.
And 5.10, the gateway equipment limits the internet surfing behavior of the target equipment according to the internet surfing forbidding instruction.
Therefore, the server can determine the total access time information of the target device through the log information sent by the gateway device, namely the total internet surfing time of the user in the preset time can be calculated in real time, and the accumulation of the internet surfing time of the target device in the preset time is realized; when the total access time information reaches a preset limit threshold value, namely when the total internet surfing time of the user in the preset time reaches the preset total internet surfing time threshold value, an internet surfing forbidding instruction is generated and sent to the gateway equipment to limit the internet surfing behavior of the target equipment, the control of the total internet surfing time of the target equipment in the preset time is realized but is not limited in a fixed time period, the problem that the flexibility of the gateway equipment for limiting the internet surfing time of the intelligent terminal is low is solved, and the total internet surfing time of the user in a specified time range is flexibly controlled.
In the embodiment, the total internet surfing time of the target device in the preset time is controlled through the server and the gateway device, that is, the total internet surfing time of the specific user needing the monitoring object in the preset time can be controlled but is not limited to a fixed time period, so that the flexibility of controlling the internet surfing time of the user by the gateway device is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Example four
Referring to fig. 6A, a block diagram of a system embodiment for controlling an intelligent terminal according to the present invention is shown, and specifically includes the following modules:
the log generating module 602 is configured to generate log information by monitoring an internet access behavior of the target device.
And a time information determining module 604, configured to determine, according to the log information, access time information corresponding to each access of the target device within a preset time.
A total time information determining module 606, configured to determine total access time information of the target device according to the access time information corresponding to each access.
And an internet access limiting module 608, configured to limit, when the total access time information reaches a preset limiting threshold, an internet access behavior of the target device according to an internet access prohibition instruction.
Through the embodiment, the system for controlling the intelligent terminal can calculate the total internet surfing time of the target device in the preset time in real time, so that when the total internet surfing time reaches the preset limit threshold, the internet surfing behavior of the target device is limited according to the network prohibition instruction, that is, the total internet surfing time of the target device in the preset time is controlled not to be limited to a fixed time period, namely, the flexibility of controlling the internet surfing time of the target device is improved.
On the basis of fig. 6A, optionally, the system for controlling the intelligent terminal may further include: the default block 610 is shown in FIG. 6B.
The preset module 610 may be configured to preset at least one target device corresponding to monitoring and a limit threshold of the target device.
Optionally, the total time information determining module 606 may be specifically configured to, when there is more than one target device, count access time information corresponding to access of all the target devices within a preset time, and determine the total access time information.
In a preferred embodiment of the present invention, the log generation module 602 may include the following sub-modules:
the device identification submodule 6022 is configured to acquire device identification data from the received data packet, and identify the target device according to the device identification data.
And the internet behavior monitoring submodule 6024 is configured to monitor the internet behavior of the target device by detecting the data packet, and generate corresponding internet behavior data.
And the log generation submodule 6026 is configured to generate log information by using the device identification data and the internet access behavior data.
In an embodiment, the internet behavior data may include: destination address and time data. Optionally, the internet behavior monitoring sub-module 6024 may include the following units:
a detection unit 60242 for detecting the destination address of the data packet and determining the way to connect to the destination address.
A recording unit 60244 for recording an access request to a destination address in each cycle when the destination address is connected by the first means; and when the destination address is connected through the second mode, recording the starting time when the target device starts to be connected with the destination address and the ending time when the target device disconnects from the destination address.
In a preferred embodiment of the present invention, the time information determining module 604 may be specifically configured to detect internet behavior data corresponding to the target device and determine the access time information for each network access of the target device within a preset time.
Optionally, the time information determining module 604 may include the following sub-modules:
and the searching sub-module 6042 is configured to search the time data for accessing the destination address from the internet access behavior data.
A determining sub-module 6046, configured to determine, by using the difference between the start time and the end time in the time data, access time information for accessing the destination address.
In another preferred embodiment of the present invention, the time information determination module 604 may further include an address detection sub-module 6048. The address detection sub-module 6048 may be configured to detect whether the destination address of each access matches a specified address; when the destination address is matched with the specified address, ignoring network access behavior to the specified address; when the destination address does not match the designated address, the search sub-module 6042 may be triggered to perform the step of searching the internet behavior data for the time data for accessing the destination address.
Optionally, the lookup sub-module 6042 may be specifically configured to determine a start time and an end time according to an access request to the destination address in each cycle when the destination address is connected in the first manner.
In a preferred embodiment of the present invention, the internet access restriction module 608 may include the following sub-modules:
and a connection disconnection submodule 6082, configured to, when a destination address is connected in the second manner, disconnect the connection to the destination address according to the internet access prohibition instruction, so as to prohibit access to the destination address.
And a designated release sub-module 6084 for releasing the data packet sent to the designated address by the target device.
Optionally, the designated release sub-module 6084 may be specifically configured to, after the internet access prohibition instruction is executed, detect whether a destination address of a data packet matches a designated address if the data packet sent by the target device is received; forwarding the data packet when the destination address matches a specified address; and discarding the packet if the destination address does not match a specified address.
A discard submodule 6086, configured to discard the data packet sent by the target device.
The specific processing procedure of the system for controlling the intelligent terminal is similar to that of the method embodiment, and therefore, the detailed description is omitted.
Through the embodiment, a user can set one or more intelligent terminals to be monitored as target equipment corresponding to the gateway equipment and configure corresponding limiting thresholds for all the target equipment, so that the corresponding total internet surfing time of the target equipment in the preset time can be flexibly controlled, that is, the total internet surfing time of a specific user in the preset time can be flexibly controlled, and further, the phenomenon that the internet surfing time of the specific user in the preset time is too long can be avoided.
In the embodiment of the present invention, a system for controlling an intelligent terminal may be executed by a terminal, and the terminal may include the log generation module, the time information determination module, the total time information determination module, the internet access restriction module, and the preset module; the present invention may also be implemented by a server and a gateway device, where the server includes the time information determining module, the total time information determining module, and a preset module, and the gateway device includes a log generating module and an internet access limiting module, which is not limited in this respect.
The present embodiment further provides a control terminal, including: one or more processors; a memory; and one or more modules stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules are configured to perform the methods of the embodiments described above.
The present embodiment also provides a non-transitory readable storage medium, where one or more modules (programs) are stored in the storage medium, and when the one or more modules are applied to a terminal device, the one or more modules may cause the terminal device to execute instructions (instructions) of:
generating log information by monitoring the internet access behavior of the target equipment;
determining access time information corresponding to each access of the target equipment within preset time according to the log information; determining total access time information of the target equipment according to the access time information corresponding to each access; and when the total access time information reaches a preset limit threshold, limiting the internet surfing behavior of the target equipment according to the internet access prohibition instruction.
Optionally, the monitoring the internet access behavior of the target device to generate log information includes:
acquiring equipment identification data from a received data packet, and identifying target equipment according to the equipment identification data; monitoring the internet surfing behavior of the target equipment by detecting the data packet to generate corresponding internet surfing behavior data; and generating log information by adopting the equipment identification data and the internet behavior data.
Optionally, the internet surfing behavior data includes: destination address and time data.
Optionally, the monitoring the internet access behavior of the target device by detecting the data packet, and generating corresponding internet access behavior data includes: detecting a destination address of a data packet and determining a mode for connecting the destination address; when a destination address is connected in a first mode, recording an access request to the destination address in each period; when a destination address is connected through a second mode, recording the starting time when the target equipment starts to be connected with the destination address and the ending time when the target equipment is disconnected with the destination address.
Optionally, determining, according to the log information, access time information corresponding to each access of the target device within a preset time includes: and detecting internet behavior data corresponding to the target equipment and determining the access time information aiming at each network access of the target equipment within preset time.
Optionally, the detecting internet surfing behavior data corresponding to the target device and determining the access time information include: searching time data for accessing the destination address from the internet behavior data; and determining access time information for accessing the destination address by adopting the difference value of the starting time and the ending time in the time data.
Optionally, the detecting internet surfing behavior data corresponding to the target device and determining the access time information further include: detecting whether the destination address of each access is matched with the specified address; when the destination address is matched with the specified address, ignoring network access behavior to the specified address; and when the destination address is not matched with the specified address, searching time data for accessing the destination address from the internet behavior data.
Optionally, the searching for the time data for accessing the destination address from the internet surfing behavior data includes: when connecting destination addresses in a first manner, a start time and an end time are determined in accordance with access requests to the destination addresses in each cycle.
Optionally, the limiting the internet surfing behavior of the target device according to the internet surfing prohibition instruction includes: and when the destination address is connected in a second mode, disconnecting the destination address according to the internet access forbidding instruction so as to forbid accessing the destination address.
Optionally, the limiting the internet surfing behavior of the target device according to the internet surfing prohibition instruction includes: and releasing the data packet sent to the specified address by the target device.
Optionally, the passing the data packet sent by the target device to the designated address includes: after the internet surfing forbidding instruction is executed, if a data packet sent by target equipment is received, whether a destination address of the data packet is matched with a specified address is detected; forwarding the data packet when the destination address matches a specified address; and discarding the packet if the destination address does not match a specified address.
Optionally, the limiting the internet surfing behavior of the target device according to the internet surfing prohibition instruction includes: and discarding the data packet sent by the target device.
Optionally, the method further includes: and presetting at least one target device corresponding to monitoring and a limit threshold value of the target device.
Optionally, the determining total access time information of the target device according to the access time information corresponding to each access includes: when more than one target device exists, counting access time information corresponding to access of all the target devices in preset time, and determining the total access time information.
Fig. 7 is a schematic diagram of a hardware structure of a control terminal according to an embodiment of the present invention. As shown in fig. 7, the control terminal may include an input device 70, a processor 71, an output device 72, a memory 73, and at least one communication bus 74. The communication bus 74 is used to enable communication connections between the elements. The memory 73 may comprise a high speed RAM memory, and may also include a non-volatile memory NVM, such as at least one disk memory, in which various programs may be stored for performing various processing functions and implementing the method steps of the present embodiment.
The control terminal may specifically include any one of a server, a gateway device, an intelligent terminal, and the like, which is not limited in this disclosure.
Alternatively, the processor 71 may be implemented by, for example, a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and the processor 61 is coupled to the input device 70 and the output device 72 through a wired or wireless connection.
In this embodiment, the processor of the control terminal includes a system for executing the log generation module, the time information determination module, the total time information determination module, the internet access limitation module, and the preset module, and specific functions and technical effects are as described in the above embodiments, which is not described herein again.
It should be noted that, the intelligent terminal in the embodiment of the present invention includes the target device in the above embodiment, and specifically may include: memory, display, processor, input unit, and the like. The input unit can be used for receiving numerical or character information input by a user and a control signal. Specifically, in the embodiment of the present invention, the input unit may include a touch screen, which may collect a touch operation performed by a user on or near the touch screen (for example, an operation performed by the user on the touch screen by using any suitable object or accessory such as a finger, a stylus pen, etc.), and drive the corresponding connection device according to a preset program. Of course, the input unit may include other input devices such as a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like, in addition to the touch screen. The Display includes a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED). The touch screen can cover the display panel to form a touch display screen, and when the touch display screen detects a touch operation on or near the touch display screen, the touch display screen transmits the touch operation to the processor to execute corresponding processing.
On the basis of the foregoing embodiment, this embodiment further provides another system for controlling an intelligent terminal, as shown in fig. 7, the system for controlling an intelligent terminal includes: a server 702, a gateway device 704, and a target device 706.
The server 702 is configured to perform steps performed by the server in the method embodiment, such as counting total access time information of the target device within a preset time according to the log information; the gateway device 704 is configured to perform steps performed by the gateway device in the method embodiment, such as monitoring internet access behavior log information of the target device, limiting an internet access behavior of the target device according to the internet access prohibition instruction, and the like; the target device 606 may specifically include an intelligent terminal that needs to be monitored.
In this embodiment, the system for controlling the intelligent terminal may control the total internet surfing time of the target device within the preset time through the server and the gateway device, that is, the total internet surfing time of the specific user needing the monitoring object within the preset time may be controlled without being limited to a fixed time period, so that the flexibility of controlling the internet surfing time of the user by the gateway device is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and system for controlling the intelligent terminal and the gateway device provided by the invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.