Summary of the invention
The objective of the invention is to propose a kind of based on portable radio device and electricity saving method thereof.
For achieving the above object, the present invention proposes a kind of portable radio device electricity saving method, described method comprises: portable radio device uses user's MAC address that the user is identified according to user's access characteristics, the session of setting up the MAC Address list for user manages, and state of user is provided with label, according to the hold mode of user conversation, real-time update user's tag state, thus make the wireless module of portable radio device under idle condition, enter battery saving mode fast.
Further, before portable radio device identifies the user according to user's access characteristics use user's MAC address, user conversation of Wi-Fi module creation is set up user resources in the portable radio device, and user's MAC address is kept in the MAC Address tabulation.
Further, the user conversation of portable radio device management merit module can be monitored each online user, and when the user does not keep communications status at definition time at interval, upgrading User Status is non-active state.
Further, when the user initiatively disconnects connection, user conversation finishes, and the MAC Address deletion from the MAC Address tabulation with the user discharges user resources.
Further, the power saving module of portable radio device is monitored all state of user in real time, when all users are in non-active state, has perhaps disconnected connection, and equipment enters battery saving mode fast.
Further, after subscriber dialing was surfed the Net successfully, portable radio device user access control module can be created a user conversation to the user that reaches the standard grade, and sets up user's resource, and user's address information is kept in the mac address information tabulation, with unique the user is identified; The module of access control simultaneously discharges user's resource when user offline, and user's MAC address is removed from address list.
The present invention also proposes a kind of portable radio device, and described portable radio device comprises user's MAC address tabulation, multi-user conversation administration module, Wi-Fi power saving module;
One of each MAC Address unique identification of described MAC Address tabulation inserts the user, and each user safeguards a state tag, shows the current state of activation that whether is in of user;
Described multi-user conversation administration module carries out real-time management to the session that the user in the MAC Address tabulation produces;
Whether described Wi-Fi power saving module controls Wi-Fi chip enters low power consumpting state.
Further, described real-time management comprises that the hold mode according to user conversation dynamically updates the active state of user in the MAC Address tabulation, and according to the session status of multi-user's integral body, control Wi-Fi power saving module enters low power mode.
Further, before portable radio device identifies the user according to user's access characteristics use user's MAC address, user conversation of Wi-Fi module creation is set up user resources in the portable radio device, and user's MAC address is kept in the MAC Address tabulation.
Further, the user conversation of portable radio device management merit module can be monitored each online user, and when the user does not keep communications status at definition time at interval, upgrading User Status is non-active state.
To sum up, adopt technical scheme of the present invention, can make the power saving module that user's operating state is carried out real-time judge, improve province's electrical efficiency of Wi-Fi module, prolong the service time of battery, and then improve the whole stand-by time of equipment, improve client's experience.
Embodiment
The thought of technical solution of the present invention is: portable radio device uses user's MAC address that the user is identified according to user's access characteristics, the session of setting up the MAC Address list for user manages, and state of user is provided with label, hold mode according to user conversation, real-time update user's tag state, thus make the wireless module of portable radio device under idle condition, enter battery saving mode fast.
The invention provides a kind of wireless mobile hot spot device and electricity saving method thereof, it inserts by detecting the wireless user, and the access behavior according to the user dynamically enters battery saving mode, thereby has prolonged the whole stand-by time of device.
Technical solution of the present invention, (it is few to connect the user to utilize in the wireless mobile hot spot device design soft AP implementation feature, be generally 5, all access user data streams all pass through the Wi-Fi module), use user's MAC address that the user is identified according to user's access characteristics, setting up MAC Address tabulation manages multi-user's session, and state of user is provided with label, hold mode according to user conversation, real-time update user's tag state, thus make the Wi-Fi module under idle condition, can enter battery saving mode fast.
Below in conjunction with the drawings and specific embodiments technical solution of the present invention is done and to be described in further detail.In the following embodiments, to move focus with Wi-Fi be that example describes to described portable radio device.
Please refer to shown in Figure 1, Fig. 1 is the hardware configuration schematic diagram of embodiment of the invention portable radio device, and described Wi-Fi device comprises the core processing logic system, is used to provide the Wi-Fi interface of wireless user's focus access and the 3G Modem interface that user Internet inserts.
Described core processing logic system comprises Wi-Fi access module, Web configuration module, power saving module, dial module, 3G on-line module and TCP/IP Stack module.
The Wi-Fi access module inserts data to the user of Wi-Fi interface and handles; The Web configuration module offers the parameter that user's configuration interface comprises configuration and the dialing of Wi-Fi and Modem; Dial module is finished the user and is dialled in controlled function by the 3G on-line module; The 3G on-line module is handled the interaction data with the 3G interface, provides Wi-Fi to insert the data path of user to the 3G interface, and provides service for dial module; TCP/IP Stack finishes from Wi-Fi and inserts data route and the forwarding of data to the 3G interface; The power saving module comprises that the internet behavior by Wi-Fi being inserted the user carries out real-time monitoring, comprises the management of access and disconnection and multi-user conversation, comes control system to enter electricity-saving function according to the result who monitors.
With reference to Fig. 2, be the schematic flow sheet that embodiment of the invention Wi-Fi moves the hot spot device access network, it comprises the steps:
S201: open Wi-Fi and move the focus function, set up the Wi-Fi Hotspot network;
S202: the user inserts Wi-Fi Hotspot by the Wi-Fi access module;
The user uses the search of Wi-Fi client to find Wi-Fi Hotspot to connect.
S203: the user logins Web page login system and dials;
After connecting with Wi-Fi Hotspot, open the Web login page, the dial feature that uses Web UI to provide dials.
S204: after dialing was finished, the function of surfing the Net that Wi-Fi user provides by the 3G module was linked into the Internet network.
Please refer to shown in Figure 3ly, Fig. 3 is the fast composition schematic diagram of power saving mould in the embodiment of the invention portable radio device core processing logic system, and this power saving module comprises user's MAC address tabulation, multi-user conversation administration module and Wi-Fi power saving module.
One of each MAC Address unique identification of MAC Address tabulation inserts the user, and each user safeguards a state tag, shows current activation (Active) state that whether is in of user.
The multi-user conversation administration module, real-time management is carried out in the session that user in the MAC Address tabulation produces, dynamically update the active state of user in the MAC Address tabulation according to the hold mode of user conversation, and according to the session status of multi-user's integral body, control Wi-Fi power saving module enters low power mode, thereby reaches the effect of saving power consumption.
Wi-Fi power saving module, the API that Wi-Fi power saving module provides by Wi-Fi hardware can control the Wi-Fi chip and whether enter low power consumpting state, provides calling interface to export-oriented user conversation administration module.
With reference to shown in Figure 4, be that embodiment of the invention Wi-Fi moves hot spot device electricity saving method schematic flow sheet, it comprises the steps:
S401: start the multi-user conversation management function;
S402: the user access control module is created Session Resources for the user, and station address information is kept in the mac address information tabulation;
After subscriber dialing was surfed the Net successfully, the user access control module can be created a user conversation to the user that reaches the standard grade, and sets up user's resource, and user's address information is kept in the mac address information tabulation, with unique the user was identified.The module of access control simultaneously can discharge user's resource in the user offline operation.And user's MAC address removed from address list.
S403: the user conversation module detects each User IP data flow communication state of MAC;
The multi-user conversation management function is monitored each user who is identified in the MAC Address tabulation, and the assay intervals time is 60S.
S404: judge that whether reception flow and transmitted traffic are all less than threshold value, if then change step S405 over to, if not then changing step S407 over to;
S405: it is Inactive that User Status is set;
S406: judge whether that the user is Inactive for empty or all users in the MAC Address tabulation, if then change step S408 over to, if not then returning step S403;
S407: judge whether User Status is Inactive, and the words that are change step S408 over to, otherwise change step S406 over to;
S408: the power saving module is closed the Wi-Fi module, closes the Wi-Fi indicator light simultaneously.
Insert situation for the multi-user, this device uses soft AP only to support 5 users to insert simultaneously, because equipment can or be provided with by DHCP dynamic assignment IP address a static ip address manually is set after each user inserted, by adding up the real time data of IP the IP traffic amount.Insert user's network settings two state activation-Active state and non-activation-Inactive state in addition for each.Active state representation user is online and have and have effective data communication, and Inactive state representation user connects existence, but never carries out data communication.After starting the user conversation management function each is monitored in real time by the user conversation that Wi-Fi Router inserts, with the 60s time interval be one-period, up-downgoing flux cumulating to the user, if User IP session stream upstream data flow and downlink data flow are all less than the threshold value of setting in a time cycle, threshold level is RxTreshold, the transmission thresholding is TxTreshold, then the user is become the Inactive state from the Active state.When all with disconnect to connect per family or do not have under the situation that Active state user exists, enter and make the Wi-Fi chip enter battery saving mode by calling Wi-Fi power saving module, the Wi-Fi relay indicating light is also closed thereupon, when needs are reused Wi-Fi Router and carried out user's access service, can make the Wi-Fi chip reenter mode of operation by the mode of button.
The present invention is by sharing the method that inserts the multi-user conversation management to Wi-Fi, telex network is under soft AP structure, all user's data connect all will pass through Wi-Fi Router, therefore the multi-user conversation administrative mechanism of creating in the Wi-Fi module can cover the user that all insert Wi-Fi Router by monitoring and management to user's MAC address, present in addition soft AP class data product design and application scenarios, the access number of users is small, generally is no more than 5.The good application that the scheme of multi-user conversation monitoring can compare.And this scheme is divided into any active ues and non-any active ues two states with the user area.The connection status that the user is possible is carried out finer division, thereby can make the power saving module that user's operating state is carried out real-time judge, improved province's electrical efficiency of Wi-Fi module, and then improved the whole stand-by time of equipment.
Certainly; the present invention also can have numerous embodiments; in the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes or variation according to the present invention certainly; in every case any modification of being done within the spirit and principles in the present invention, be equal to replacements, improvement, all should be included within protection scope of the present invention.