Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method and a system for managing connection of personal network devices, which can dynamically manage the connection state of the personal network devices, so as to reduce the load burden, or called load power consumption, of a personal network gateway.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a personal network device connection management method, the method comprising:
when the personal network equipment does not have service data transmission, the connection between the personal network equipment and the personal network gateway is disconnected, and the state of the personal network equipment is updated.
When the personal network gateway detects that no service data is transmitted between the personal network device and the personal network gateway, the method further comprises the following steps: the personal network gateway informs the personal network equipment of disconnecting the connection between the personal network equipment and the personal network gateway; or,
when the personal network device detects that no service data is transmitted between the personal network device and the personal network gateway, the method further comprises the following steps: the personal network device requests the personal network gateway to disconnect the connection between the personal network device and the personal network gateway.
Wherein the disconnecting of the connection between the personal network device and the personal network gateway specifically comprises: and disconnecting the logical connection between the personal network device and the personal network gateway or disconnecting the physical connection between the personal network device and the personal network gateway.
Wherein, the updating the state of the personal network device specifically comprises: when the connection between the personal network equipment and the personal network gateway is disconnected, updating the state information of the personal network equipment on a state server or a state storage device; wherein,
the state information is specifically a state identifier; the state identification comprises: online, offline, busy, idle, standby, dormant.
When the personal network device which is not connected with the personal network gateway has a service data transmission requirement, the method further comprises the following steps: the personal area network equipment which is not connected with the personal area network gateway sends a connection establishing request to the personal area network gateway, and establishes connection between the personal area network equipment and the personal area network gateway; or,
when the personal network gateway receives a request that an external device needs to access the personal network device, the method further comprises: the personal area network gateway informs the personal area network device to establish connection between the personal area network device and the personal area network gateway.
Wherein, the method also comprises: after the connection between the personal network equipment and the personal network gateway is established, updating the state information of the personal network equipment on a state server or a state storage device; wherein,
the state information is specifically a state identifier; the state identification comprises: online, offline, busy, idle, standby, dormant.
A personal network device connection management system, the system comprising: and the connection management unit is used for disconnecting the connection between the personal network equipment and the personal network gateway and updating the state of the personal network equipment when the personal network equipment does not have service data transmission.
The connection management unit is further used for informing the personal network device to disconnect the connection between the personal network device and the personal network gateway when the personal network gateway detects that no service data is transmitted between the personal network device and the personal network gateway; or when the personal network device detects that no service data is transmitted between the personal network device and the personal network gateway, the personal network device requests the personal network gateway to disconnect the connection between the personal network device and the personal network gateway.
The connection management unit is further configured to, when there is a service data transmission demand for a personal area network device that is not connected to a personal area network gateway, send a connection establishment request to the personal area network gateway by the personal area network device that is not connected to the personal area network gateway, and establish a connection between the personal area network device and the personal area network gateway; or, when the personal network gateway receives a request that the external device needs to access the personal network device, the personal network gateway notifies the personal network device to establish a connection between the personal network device and the personal network gateway.
The connection management unit is further used for updating the state information of the personal network equipment on the state server or the state storage equipment when the connection between the personal network equipment and the personal network gateway is disconnected; wherein,
the state information is specifically a state identifier; the state identification comprises: online, offline, busy, idle, standby, dormant.
When the personal network equipment does not have service data transmission, the invention disconnects the connection between the personal network equipment and the personal network gateway and updates the state of the personal network equipment.
By adopting the invention, the connection between the personal network equipment and the personal network gateway can be disconnected once the personal network equipment is detected to have no service data transmission, so that the personal network equipment can dynamically change the connection state with the personal network gateway.
Detailed Description
The basic idea of the invention is: when the personal network equipment does not have service data transmission, the connection between the personal network equipment and the personal network gateway is disconnected, and the state of the personal network equipment is updated.
The following describes the embodiments in further detail with reference to the accompanying drawings.
A personal network device connection management method mainly comprises the following contents:
when the personal network equipment does not have service data transmission, the connection between the personal network equipment and the personal network gateway is disconnected; and updating the state of the personal network equipment.
Here, it should be noted that: the personal network device can dynamically change the connection state with the personal network gateway, and is different from the prior art, even if no service data transmission exists, the personal network device is still connected to the personal network gateway, and the load burden, or called load power consumption, of the personal network gateway is increased. It can be seen that: compared with the prior art, the method and the device have the advantages that the personal network device can dynamically change the connection state with the gateway, so that the load burden, or called load power consumption, of the personal network gateway is reduced. And moreover, the personal network device without service transmission is disconnected, so that the personal network gateway can access other personal network devices by utilizing the residual resources, and the use efficiency of the personal network gateway is improved. In addition, in the field of the internet, if the internet is not accessed for a period of time, the network connection can be disconnected, but the method belongs to the self-execution of the equipment and does not relate to the state of the equipment. In the field of personal networks, in order to reduce load burden or load power consumption, particularly when the personal network gateway is a mobile phone, the personal network gateway actively informs a personal network device to disconnect the personal network device from the personal network gateway, and the gateway in the field of internet does not relate to active notification and is only a gateway for connecting one network to another network.
Further, when the detected subject is the personal network gateway before the connection between the personal network device and the personal network gateway is disconnected, that is: when the personal network gateway detects that no service data is transmitted between the personal network equipment and the personal network gateway, the personal network gateway informs the personal network equipment to disconnect the connection between the personal network equipment and the personal network gateway; or, when the detected subject is a personal network device, that is: when the personal network device detects that no service data is transmitted between the personal network device and the personal network gateway, the personal network device requests the personal network gateway to disconnect the personal network device from the personal network gateway.
Further, the personal network device updates the state information of the personal network device on the state server or the state saving device when the personal network device is disconnected from the gateway. Here, the status information may be a status identification of the personal network device.
Further, when the personal area network equipment which is not connected with the personal area network gateway has a service data transmission requirement, sending a connection establishing request to the personal area network gateway; or when the personal network gateway receives a request that an external device needs to access the personal network device, the personal network gateway informs the personal network device to establish connection. And after the connection is established, updating the state of the personal network equipment.
Further, disconnecting the connection between the personal network device and the personal network gateway includes: and disconnecting the logical connection between the personal network device and the personal network gateway or disconnecting the physical connection between the personal network device and the personal network gateway.
Further, updating the state of the personal network device includes: switching among a plurality of states. Here, it should be noted that: the state here refers to the connection state of the device, including: online, offline, busy, idle, standby, dormant, etc. But there are other states of the device itself, such as a low power alarm state, etc. That is, the state information of the personal network device on the state server or the state saving device is updated; wherein, the state information is specifically a state identifier; the state identification comprises the following steps: online, offline, busy, idle, standby, dormant.
Further, updating the state of the personal network device is initiated by the personal network device or the personal network gateway.
Further, the connection policy of the personal network device, such as timed connection, timed disconnection, etc., may be configured in advance. When the connection management is performed according to the configured connection policy, it is only necessary to judge whether the connection policy set in the configuration is satisfied.
The invention is illustrated below.
Fig. 1 is a schematic connection diagram of each device in the personal network service system of the present invention. The personal network device is connected to the personal network server through the personal network gateway to acquire services or provide services to the outside. The state of the personal network device is saved in a state server or a state saving device. The state saving device may be a personal network gateway. When no service data is transmitted between the personal area network device and the personal area network gateway, the connection between the personal area network device and the personal area network gateway can be disconnected, so that transmission bandwidth resources are released, and the resource consumption of the personal area network gateway is reduced. In the invention, the personal area network device or the personal area network gateway is used for detecting whether service data transmission exists between the personal area network device and the personal area network gateway, if the service data transmission does not exist, the personal area network device requests the personal area network gateway to disconnect the connection between the personal area network device and the personal area network gateway; or the personal network gateway informs the personal network device to disconnect the personal network device from the personal network gateway.
Meanwhile, the personal network device or the personal network gateway also updates the state information of the personal network device stored in the state server or the state storage device. When the personal network equipment needs to transmit service data, the personal network equipment requests the personal network gateway to establish connection again; or the personal network gateway informs the personal network equipment to establish connection; and meanwhile, updating the state information of the personal network equipment. In the above description, updating the state information of the personal network device includes: switching between various states that the personal network device has, such as online, offline, busy, idle, standby, dormant, etc. For example, when the personal network gateway initiates updating of the state information of the personal network device and the connection between the personal network gateway and the personal network device is disconnected, the personal network device can be normally changed from the online state to the offline state. If the personal network equipment initiates to update the status information, more detailed status information such as busy, idle, standby, dormant, etc. can be set. The updated state information is helpful when the connection between the personal network device and the personal network gateway is reestablished, for example, the state information of the personal network device is checked, and when the personal network gateway is found to be offline, the personal network gateway is required to be connected with the personal network device; if the personal network equipment is in the dormant state, the personal network gateway sends an activation command to the personal network equipment, and the personal network equipment is recovered to the standby state. Some connection management configuration policies also need to rely on these updated states, such as checking the current state (online) for a certain duration and then disconnecting if there is still no data transfer, while updating the connection state information of the personal network device again.
Fig. 2 shows a flow chart of the implementation of the method of the present invention, which includes the following steps:
step 110, detecting whether service data transmission exists between the personal area network device and the personal area network gateway.
Here, this detection action may be performed by the personal network device or the personal network gateway. When the connection management is performed according to the pre-configured connection policy, the detection operation instep 110 is not required, and it is only required to determine whether the connection policy set in the configuration is satisfied, for example, a timed connection, a timed disconnection, or the like is set, and it is only required to determine whether the time reaches a set condition, and when the time point of the automatic disconnection is reached, the connection between the personal network device and the personal network gateway is automatically disconnected.
Wherein, the configured connection policy can be set in the personal network device or the personal network gateway. For example, a personal network gateway may be provided with various connection policies such as limiting transmission speed and limiting the number of connected personal network devices, which facilitates the personal network gateway to manage the connection of subordinate personal network devices. Some personal network devices may also set a connection policy that remains online at all times, and no dynamic connection management is required for such personal network devices. In addition, in order to avoid frequent operations of connecting or disconnecting the personal network device by some personal network devices, a detection time threshold may be set, and if no data transmission is detected within a certain time period, the connection between the personal network device and the gateway is disconnected.
And step 120, when no service data transmission is detected, disconnecting the connection between the personal network device and the personal network gateway.
Here, the disconnection between the personal network device and the personal network gateway may be disconnection of a physical communication connection; or, the connection on the logic is disconnected, the transmission channel is released, and the like, so that the load burden of the personal network gateway or the load power consumption is reduced. Either the personal network device or the personal network gateway may initiate a request or notification of the disconnection.
And step 130, updating the state information of the personal network equipment.
Here, the connection between the personal network device and the personal network gateway may be changed from connection to disconnection, and the connection state is changed, so that the state information of the personal network device needs to be updated accordingly. If the personal network equipment actively initiates the state updating, the state updating is carried out before the disconnection. And if the personal network gateway initiates to update the state of the personal network equipment, no limitation is imposed.
Here, when there is a service data transmission request, the disconnected personal network device sends a connection establishment request to the personal network gateway; or when the personal network gateway receives the external requirement to access the personal network device, the personal network gateway informs the personal network device to establish connection with the personal network gateway. After the connection is established, the state of the personal network device is updated again.
A personal network device connection management system comprises a connection management unit, wherein the connection management unit is used for disconnecting the personal network device from a personal network gateway and updating the state of the personal network device when the personal network device does not transmit service data.
Here, the connection management unit is further configured to notify the personal network device to disconnect the connection between the personal network device and the personal network gateway by the personal network gateway when the personal network gateway detects that there is no traffic data transmission between the personal network device and the personal network gateway; or when the personal network device detects that no service data is transmitted between the personal network device and the personal network gateway, the personal network device requests the personal network gateway to disconnect the personal network device from the personal network gateway.
Here, the connection management unit is further configured to, in a case where there is a service data transmission demand for the personal network device not connected to the personal network gateway, send a connection establishment request to the personal network gateway to establish a connection between the personal network device and the personal network gateway; or, when the personal network gateway receives a request that the external device needs to access the personal network device, the personal network gateway notifies the personal network device to establish a connection between the personal network device and the personal network gateway.
Here, the connection management unit is further configured to update the state information of the personal network device on the state server or the state saving device when the connection between the personal network device and the personal network gateway is disconnected. Wherein, the state information is specifically a state identifier; the state identification comprises the following steps: online, offline, busy, idle, standby, dormant.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.