CN105338603B - A kind of method and wireless router of automatic adjusument wireless router transmission power - Google Patents
A kind of method and wireless router of automatic adjusument wireless router transmission power Download PDFInfo
- Publication number
- CN105338603B CN105338603B CN201510696084.1A CN201510696084A CN105338603B CN 105338603 B CN105338603 B CN 105338603B CN 201510696084 A CN201510696084 A CN 201510696084A CN 105338603 B CN105338603 B CN 105338603B
- Authority
- CN
- China
- Prior art keywords
- wireless
- wireless router
- packet
- router
- power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0203—Power saving arrangements in the radio access network or backbone network of wireless communication networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/04—TPC
- H04W52/18—TPC being performed according to specific parameters
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses the methods and wireless router of a kind of automatic adjusument wireless router transmission power, method includes the following steps: step 1: the microprocessor in router calculates theoretical total data packet and substantial amt according to packet in real time as follows;The variation of the data packet of detection in every 10 seconds;Step 2: based on substantial amt according to the working condition of packet control wireless router;If the substantial amt within the T time of adjustment wireless power both less than or is equal to theoretical total data packet according to packet, by adjusting the power module of wireless router, so that the wireless router is in a dormant state;If substantial amt is greater than theoretical total data packet NO according to packet n, the horizontal L of emission function of wireless router is determined by piecewise function mode.The method and wireless router of the automatic adjusument wireless router transmission power can significantly reduce the energy consumption of router, reduce wireless radiation.
Description
Technical field
The present invention relates to the method and wireless router of a kind of automatic adjusument wireless router transmission power, belong to wireless
Communication equipment intelligence field.
Background technique
With the development of internet, wireless routing device is largely popularized, and nearly all town dweller is owned by one
Or more wireless routers.However transmission power operation of the wireless module of these routers all steadily to set, both wasted
The energy also increases injury of the electromagnetic radiation to human body.Even if the adjustable wireless power of other equipment on the market, but also need
The back-stage management interface of router is passed into, or carrys out the link road setting complicated by progress using cell phone application software,
It is complicated for operation, and do not have the function of adaptively adjusting.Therefore, it is necessary to design a kind of automatic adjusument wireless router transmitting
The method and wireless router of power.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of methods of automatic adjusument wireless router transmission power
And wireless router, the method and wireless router of the automatic adjusument wireless router transmission power can significantly reduce router
Energy consumption, reduce wireless radiation.
The technical solution of invention is as follows:
A kind of method of automatic adjusument wireless router transmission power, comprising the following steps:
Step 1: the microprocessor in router (i.e. automatic adjusument wireless router) calculates reason in real time as follows
By total data packet and substantial amt according to packet;
It executes in the router, the Power Regulation subprogram of wlan_auto is named as in router, has been started in route system
At rear automatic execution, according to actual monitoring to how much wireless come the adjust automatically power of wireless interface data packet.
Theoretical total data packet=wireless unloaded data packet threshold value+wireless user's number * packet radio threshold value;
Substantial amt is according to this stats.tx_packet of packet=last time stats.tx_packets-;
The variation of the data packet of detection in every 10 seconds;
As long as wherein the substantial amt of one-shot change is greater than theoretical total data packet number according to packet, then it is assumed that using network, directly
It connects according to how much data packet variation is transferred to corresponding power.And the detection substantial amt of 5 minutes continuous (i.e. hereafter T time) is according to packet
All it is not above theoretical value, then it is assumed that no user uses network, is adjusted into dormant state.
Wireless unloaded data packet threshold value, that is, no user connects the data traffic packet of wireless TX when using;TX refers to wireless
Transmission, Transmits, RX represent wireless reception;
Still there is no data packet numbers needed for access data traffic for packet radio threshold values, i.e. wireless device successful connection;
Wireless user's number, that is, be presently connected to wireless router number of users;
Stats.tx_packet is the data packet of total transmission of router wireless interface;
Router wireless interface refers to router 2.4G and 5G wireless interface.I.e. wireless router is set to other terminal wireless
Standby such as mobile phone sends the interface of data.Power Regulation subprogram according to router wireless interface send data packet number, Lai Tisheng
Or the wireless power of equipment is reduced, to guarantee wireless transmission speed;
Step 2: based on substantial amt according to the working condition of packet control wireless router;
(1) if [T is 3-10 minutes, preferably 5 minutes] detects that substantial amt is both less than according to packet within the scope of T time
Or be equal to theoretical total data packet, then by Power Regulation subprogram, by the power adjustment of router to suspend mode.[Power Regulation subprogram
Within the scope of T time, when being consecutively detected substantial amt according to both less than theoretical value is wrapped, then it is assumed that equipment enters dormant state,
Therefore power will be adjusted to minimum.As long as and Power Regulation subprogram one detect actual use data packet it is bigger than theoretical value when, that is, recognize
Directly with regard to hoisting power, not need period detection using wirelessly.Power Regulation subprogram, runs in router software
The subprogram that radio transmitted power is adjusted according to the number of wireless transmission data packet.
(2) if substantial amt is greater than theoretical total data packet N0 according to packet n, the transmitting of wireless router is determined in the following manner
Functional level L:
Illustrate: it is 1500 bytes, 1KB=1024 that a network packet is calculated by maximum byte
Byte, therefore actually should herein are as follows: n*1500/1024 (KB), and horizontal axis in Fig. 1
Unit is KB/10s, i.e. the number-of-packet at interval of the transmitting of 10 seconds equipment;
If (a) N0*1500/1024 < n*1500/1024 < 32kB, L 5dBm;
If (b) 32kB≤n*1500/1024 < 64kB, L 10dBm;
If (c) 64kB≤n*1500/1024 < 128kB, L 15dBm;
If (d) 128kB≤n*1500/1024 < 256kB, L 20dBm;
If the unit of (e) n*1500/1024 >=256kB, L 25dBm, n*1500/1024 are kB,
Wherein * indicates multiplication sign.
Power and P (watt) reduction formula: P'dBm=30+10lgP (P: watt;P': unit dbm);
Wireless router is connected with server, and mobile phone or tablet computer pass through the APP routine access server of installation to nothing
Line router is managed;It is communicated between wireless router and server by socket communication mode.
The user of server end divides firsts and seconds permission, and level-one permission is server administrators, can check configuration institute
There is the wireless router registered on the server;Second level permission is to possess the personal user of wireless router, each nothing
The corresponding ID and login account number of line router and password, user are logged in from APP program by held account number cipher and are taken
Business device, only manages the wireless router of corresponding ID, and can not see the routing state of other users.
There is automatic power regulation subsystem [i.e. power module] in wireless router, by monitoring/proc/net/dev, obtain
The data on flows of wireless portion tx;In wireless protocols definition have message, for timing keep-alive [timing keep-alive: wireless messages it is wide
Broadcasting can allow other terminal searchings to arrive, and have connected the link maintenance of user] and management STA[STA: the work in WLAN
Stand, generally wireless client, such as mobile phone or pass through the notebook of wireless connection], and broadcast probe frame;By obtain/
The total data flow information of proc/net/dev wireless interface judges the User Status of current wireless router.
The power module of wireless router uses Lei Xun section LXK6601PA amplifying circuit.
A kind of wireless router has the power module for adjusting radio transmitted power;It is also linked into internet and uses
It is interacted in the server of configuration wireless router;Using the method pair of automatic adjusument wireless router transmission power above-mentioned
Radio transmitted power carries out automatic adjusument.
The power module of line router uses Lei Xun section LXK6601PA amplifying circuit.
The wireless router is equipped with LED light;
When the power of wireless router is in the transmission power range of 5dbm, LED light is bright green;
When the power of wireless router is in the transmission power range of 10dbm, 15dbm or 20dbm, LED light is bright orange;
When the power of wireless router is in the transmission power range of 25dbm, LED light is shiny red.
When in use, adjust automatically wireless power subsystem intelligent decision mobile phone or other wireless devices are connected to healthy road
It is work after in what mode, be terminal user is suspend mode or normal use flow, according to this situation come adjust automatically
The watt level of health routing.In the case where not shutting down such as evening sleep mobile phone, it is wirelessly connected to router, but is not generated
Flow or the flow very little of generation, routing device then judge no user using wifi, automatic power adjustment to minimal mode.
And when user is resulted in the need for using mobile phone access webpage or other purposes using flow, health routing detects the cell phone apparatus
There is a massive dataflow request, therefore automatic power adjustment is to the maximum value of setting, allows user's normal use wireless network.
Operation interface retains adjustment functional switch function simultaneously, or hardware switch is arranged on the router, user
Want to allow equipment steady transmission power when, it is only necessary to closing intelligent control function can reach and manually adjusts power on the market
The same effect, good compatibility.
The utility model has the advantages that
The method and wireless router of automatic adjusument wireless router transmission power of the invention, can make according to user
With the transmission power that the size real-time intelligent adjust automatically of data traffic packet is wireless, guarantee wireless router at any time all with
Optimum state work
This wireless router can be described as healthy router, using intelligent adjust automatically radio function, embed adjust automatically
Power subprogram, can according to actual wireless service condition, in conjunction with number of users how much, automated intelligent segmentation adjustment power,
Reach and really use wifi as needed, reducing wireless radiation influences, and equipment is allowed all to be worked at any time ideal, safe
In wireless coverage.It is designed using wireless gain PA, promotes wireless power transmission, increase coverage area and enhancing energy through walls
Power.One equipment of user solves whole family's wireless network and uses, and guarantees wireless coverage without dead angle.
Detailed description of the invention
Fig. 1 is flow and transmission power comparative diagram.
Fig. 2 is main flow chart of the invention.
Fig. 3 is socket connection setup process schematic.
Fig. 4 is to receive data flowchart.
Fig. 5 is to send data flowchart;
Fig. 6 is system structural map.
Fig. 7 is the flow chart for judging whether there is legitimate user.
Specific embodiment
The present invention is described in further details below with reference to the drawings and specific embodiments:
Embodiment 1:
Such as Fig. 1-7, a kind of method of automatic adjusument wireless router transmission power, comprising the following steps:
Step 1: the microprocessor in router (i.e. automatic adjusument wireless router) calculates reason in real time as follows
By total data packet and substantial amt according to packet;
It executes in the router, the Power Regulation subprogram of wlan_auto is named as in router, has been started in route system
At rear automatic execution, according to actual monitoring to how much wireless come the adjust automatically power of wireless interface data packet.
Theoretical total data packet=wireless unloaded data packet threshold value+wireless user's number * packet radio threshold value;
Substantial amt is according to this stats.tx_packet of packet=last time stats.tx_packets-;
The variation of the data packet of detection in every 10 seconds;
As long as wherein the substantial amt of one-shot change is greater than theoretical total data packet number according to packet, then it is assumed that using network, directly
It connects according to how much data packet variation is transferred to corresponding power.And the detection substantial amt of 5 minutes continuous (i.e. hereafter T time) is according to packet
All it is not above theoretical value, then it is assumed that no user uses network, is adjusted into dormant state.
Wireless unloaded data packet threshold value, that is, no user connects the data traffic packet of wireless TX when using;TX refers to wireless
Transmission, Transmits, RX represent wireless reception;
Still there is no data packet numbers needed for access data traffic for packet radio threshold values, i.e. wireless device successful connection;
Wireless user's number, that is, be presently connected to wireless router number of users;
Stats.tx_packet is the data packet of total transmission of router wireless interface;
Router wireless interface refers to router 2.4G and 5G wireless interface.I.e. wireless router is set to other terminal wireless
Standby such as mobile phone sends the interface of data.Power Regulation subprogram according to router wireless interface send data packet number, Lai Tisheng
Or the wireless power of equipment is reduced, to guarantee wireless transmission speed;
Step 2: based on substantial amt according to the working condition of packet control wireless router;
(1) if [T is 3-10 minutes, preferably 5 minutes] detects that substantial amt is both less than according to packet within the scope of T time
Or be equal to theoretical total data packet, then by Power Regulation subprogram, by the power adjustment of router to suspend mode.[Power Regulation subprogram
Within the scope of T time, when being consecutively detected substantial amt according to both less than theoretical value is wrapped, then it is assumed that equipment enters dormant state,
Therefore power will be adjusted to minimum.As long as and Power Regulation subprogram one detect actual use data packet it is bigger than theoretical value when, that is, recognize
Directly with regard to hoisting power, not need period detection using wirelessly.Power Regulation subprogram, runs in router software
The subprogram that radio transmitted power is adjusted according to the number of wireless transmission data packet.
(2) if substantial amt is greater than theoretical total data packet N0 according to packet n, the transmitting of wireless router is determined in the following manner
Functional level L:
Illustrate: it is 1500 bytes, 1KB=1024 byte, therefore reality herein that a network packet is calculated by maximum byte
It should are as follows: n*1500/1024 (KB), and horizontal axis unit is KB/10s in Fig. 1, the i.e. data at interval of the transmitting of 10 seconds equipment
Packet number;
If (a) N0*1500/1024 < n*1500/1024 < 32kB, L 5dBm;
If (b) 32kB≤n*1500/1024 < 64kB, L 10dBm;
If (c) 64kB≤n*1500/1024 < 128kB, L 15dBm;
If (d) 128kB≤n*1500/1024 < 256kB, L 20dBm;
If the unit of (e) n*1500/1024 >=256kB, L 25dBm, n*1500/1024 are kB,
Wherein * indicates multiplication sign.
Power and P (watt) reduction formula: P'dBm=30+10lgP (P: watt;P': unit dbm);
Wireless router is connected with server, and mobile phone or tablet computer pass through the APP routine access server of installation to nothing
Line router is managed;It is communicated between wireless router and server by socket communication mode.
The user of server end divides firsts and seconds permission, and level-one permission is server administrators, can check configuration institute
There is the wireless router registered on the server;Second level permission is to possess the personal user of wireless router, each nothing
The corresponding ID and login account number of line router and password, user are logged in from APP software by held account number cipher and are taken
Business device, only manages the healthy router of corresponding ID, and can not see the routing state of other users.
There is automatic power regulation subsystem [i.e. power module] in wireless router, by monitoring/proc/net/dev, obtain
The data on flows of wireless portion tx;In wireless protocols definition have message, for timing keep-alive [timing keep-alive: wireless messages it is wide
Broadcasting can allow other terminal searchings to arrive, and have connected the link maintenance of user] and management STA[STA: the work in WLAN
Stand, generally wireless client, such as mobile phone or pass through the notebook of wireless connection], and broadcast probe frame;By obtain/
The total data flow information of proc/net/dev wireless interface judges the User Status of current wireless router.
The power module of wireless router uses Lei Xun section LXK6601PA amplifying circuit.
A kind of wireless router has the power module for adjusting radio transmitted power;It is also linked into internet and uses
It is interacted in the server of configuration wireless router;Using the method pair of automatic adjusument wireless router transmission power above-mentioned
Radio transmitted power carries out automatic adjusument.
The power module of line router uses Lei Xun section LXK6601PA amplifying circuit.
The wireless router is equipped with LED light;
When the power of wireless router is in the transmission power range of 5dbm, LED light is bright green;
When the power of wireless router is in the transmission power range of 10dbm, 15dbm or 20dbm, LED light is bright orange;
When the power of wireless router is in the transmission power range of 25dbm, LED light is shiny red.
The wireless router of automatic adjusument wireless router transmission power has wireless 2.4G/5G automatic power regulation subsystem
System obtains the data on flows of wireless portion tx by monitoring/proc/net/dev.Some messages are defined in wireless protocols, are used
In timing keep-alive, [timing keep-alive: the broadcast of wireless messages can allow other terminal searchings to arrive, and have connected the link dimension of user
Shield] and management sta[STA: the work station in WLAN, generally wireless client, such as mobile phone or by wireless connection
Notebook], and broadcast probe frame.By monitor these messages number [user and application program can by system/
Proc file system, acquisition/proc/net/dev wireless interface total data flow information] judge user's shape of current AP
State.
Theoretical total data packet=wireless unloaded data packet threshold value+wireless user's number * 2.4/5G packet radio threshold value
Substantial amt is according to packet=last time stats.tx_packets- this time stats.tx_packet
[stats.tx_packet is name variable defined in software, is the packet of total transmission of wireless interface.Software
In the total data flow information and write structure body of real-time acquisition/proc/net/dev wireless interface, stats.tx_
In packet title.]
Wherein:
Wireless unloaded data packet threshold value, i.e., no user connect the data traffic packet of wireless tx when using;
Packet radio threshold values, i.e. wireless device successful connection, but there is no access data traffics, and wireless routing itself is sent out
Whether the protocol frame wireless for keep-alive sent, such as detectable cell phone apparatus have the data packet of connection or broken string;
Wireless user's number, i.e., the number of users being connected at present.In conjunction with connection number of users number, calculate current total
Wireless flow demand, adjust wireless power transmission in real time in conjunction with actual conditions.
After legitimate user is by the connectionless routing to health, if number both less than theoretical within 5 minutes of adjustment
According to packet sum, then by the AP[health routing device] in a dormant state, by the power adjustment of system to corresponding suspend mode
State;And when actual data packet is greater than gross data packet, it is believed that user is used wirelessly at this time, and Power Regulation subsystem then will be wireless
To default transmission power level, [default transmission power level is 5db to power adjustment, can guarantee the user every a wall
It may search for and be connected to healthy routing device].It is implemented in combination with the size using flow, real-time segmentation judgement does not influence shortly
The online experience of user in turn ensures the effective of wireless power, safe handling.
1. health routing is communicated with server creation socket;
Cell phone application is routed by Cloud Server management health and is communicated using socket.Detailed process be referring to Fig. 3,
Server calls socket creates a filec descriptor, and function bind ties up this filec descriptor with server address and port
It is scheduled on together, calls listen that port translation is waited connection request at socket port is monitored, call accept then to connect
By the request of router.In the other end of communication, router calls function socket to create a filec descriptor, then adjusts
Connection is established with server with connect.
2. thread is monitored, reasonable distribution server resource;
Server creates listening thread, and when router solicitation connects server, server creates this corresponding router
Worker thread, and be added to the medium calling to be triggered of thread pool, the thread in thread pool is in sleep state, when there is user company
It connects and the user is legitimate user, while when this user occurs big data flow requirements for access, can just trigger operating status;
Monitoring part is implemented in Ali's Cloud Server, and health routing is connected to Ali's cloud as client, and timing reporting equipment
The essential informations such as some connection status.Cell phone application passes through Ali's Cloud Server, indirect control health routing device.
Worker thread quantity in thread pool is determined according to the operation quantity of healthy router, and router solicitation is worked as
It just will create new worker thread when connection, it is only necessary to the router of fixed quantity is managed, so determining work by router quantity
Make the quantity of thread, it is possible to reduce the wasting of resources for creating extra thread is also enough to manage all-router.
3. data store chained list, safety is not lost;
Such as Fig. 4, for example new user's connection of data is uploaded when health routing has, then has that data are readable on socket descriptor, then
The data received are put into and are received in chained list, and readable task queue is added in the socket descriptor, worker thread is again
Socket descriptor is obtained from work queue handles data.
Radio transmitted power value is such as set when server end needs to send data to healthy router, then socket descriptor
On have data writeable, store data into and send in chained list, and writeable task queue, worker thread is added in socket descriptor
Socket descriptor is obtained from work queue again handles data.
Such as Fig. 5, server can constantly monitor socket descriptor, and when there is read/write operation, socket descriptor is added
Into task queue, which is labeled as read/write simultaneously.The work of server calls free time
It is exactly that corresponding read/write operation is carried out according to the attribute when thread process task.Server calls worker thread handles task
It concurrently carries out, multiple threads are executed by quick poll.
4. user right is classified, safety management is promoted;
Such as Fig. 6, the user of server end divides firsts and seconds permission, and level-one permission is server administrators, can check
Configure all healthy routers registered on the server;Second level permission for institute's unsoundness router personal user, often
One healthy router corresponds to ID and login account number and password, and user passes through held account number cipher from APP software
Login service device, only manages the healthy router of corresponding ID, and can not see the routing state of other users.
5. legitimate user detects, other users loiter network is prevented;
Such as Fig. 7, after user first logs into server, need that " legitimate user " is arranged to the healthy router of oneself, i.e. hand
The MAC Address of the mobile devices such as machine can show all MAC Address connected in setting list, and it is legal for showing
Or illegal user.When illegal user's connection, wireless Power Regulation subprogram, therefore the wireless transmission function of equipment can not be triggered
Rate enters dormant state, which can influence him in the body of loiter network because transmission power is lower when using wireless network
It tests.Alternatively, it is also possible to carry out online control to illegal user from set interface or APP software, even if allowing others' successful connection
It also can not loiter network.
6. real-time monitoring data flow amount, adjust automatically radio transmitted power;
After healthy router normally starts, according to whether being connected in the presence of " legitimate user ", router will be done into suspend mode
State (i.e. closing wireless transmitting function or reducing radio transmitted power to setting value) or activation wireless transmitting function (i.e. will be wireless
Transmitting power promotion is to setting value) processing.System can call the data of intelligent Power Regulation software subsystem real time monitoring connection user
Packet forwarding situation, when user access data flow amount is lower than setting threshold values, router Power Regulation software subsystem is automatically by nothing
The power adjustment of line to it is minimum or setting value;When data traffic is higher than threshold values, subsystem then activates wireless transmission automatically
Power and by power ascension grade setting value.
Wireless 2.4G/5G automatic power regulation subsystem obtains the flow of wireless portion tx by monitoring/proc/net/dev
Data.Some messages are defined in wireless protocols, for timing keep-alive and management sta, and broadcast probe frame.Pass through monitoring
The number of these messages judges the User Status of current AP.
Theoretical total data packet=wireless unloaded data packet threshold value+wireless user's number * 2.4/5G packet radio threshold value
Substantial amt is according to packet=last time stats.tx_packets- this time stats.tx_packet
Wherein:
Wireless unloaded data packet threshold value, i.e., no user connect the data traffic packet of wireless tx when using;
Packet radio threshold values, i.e. wireless device successful connection, but there is no access data traffics, and wireless routing itself is sent out
Whether the protocol frame wireless with remaining keep-alive sent, such as detectable cell phone apparatus have the data packet of connection or broken string;
Wireless user's number, i.e., the number of users being connected at present.In conjunction with connection number of users number, calculate current total
Wireless flow demand, adjust wireless power transmission in real time in conjunction with actual conditions.
Referring to Fig. 1, after legitimate user is by the connectionless routing to health, if within 5 minutes of adjustment both less than
If theoretical data packet sum, the AP in a dormant state, by the power adjustment of system to corresponding dormant state;And when real
Border data packet is greater than gross data packet, it is believed that user is used wirelessly at this time, and wireless power is then adjusted to by Power Regulation subsystem
The performance number most set.It is implemented in combination with the size using flow, real-time segmentation judgement does not influence the online experience of user shortly,
It in turn ensures the effective of wireless power, uses safely.
Claims (5)
1. a kind of method of automatic adjusument wireless router transmission power, which comprises the following steps:
Step 1: the microprocessor in router calculates theoretical total data packet and substantial amt according to packet in real time as follows;
Theoretical total data packet=wireless unloaded data packet threshold value+wireless user's number * packet radio threshold value;
Substantial amt is according to this stats.tx_packet of packet=last time stats.tx_packets-;
The variation of the data packet of detection in every 10 seconds;
Wireless unloaded data packet threshold value, that is, no user connects the data traffic packet of wireless TX when using, and TX refers to wireless hair
It send;
Still there is no data packet numbers needed for access data traffic for packet radio threshold values, i.e. wireless device successful connection;
Wireless user's number, that is, be presently connected to wireless router number of users;
Stats.tx_packet is the data packet of total transmission of router wireless interface;
Step 2: based on substantial amt according to the working condition of packet control wireless router;
(1) if substantial amt, both less than or equal to theoretical total data packet, passes through tune according to packet to detecting within the scope of T time
Function subprogram, by the power adjustment of router to suspend mode;
If substantial amt is greater than theoretical total data packet N0 according to packet n, the transmission power water of wireless router is determined in the following manner
Flat L:
If (a) N0*1500/1024 < n*1500/1024 < 32kB, L 5dBm;
If (b) 32kB≤n*1500/1024 < 64kB, L 10dBm;
If (c) 64kB≤n*1500/1024 < 128kB, L 15dBm;
If (d) 128kB≤n*1500/1024 < 256kB, L 20dBm;
If the unit of (e) n*1500/1024 >=256kB, L 25dBm, n*1500/1024 are kB, wherein * indicates multiplication sign;
Wireless router is connected with server, and mobile phone or tablet computer pass through the APP routine access server of installation to no route
It is managed by device;It is communicated between wireless router and server by socket communication mode.
2. the method for automatic adjusument wireless router transmission power according to claim 1, which is characterized in that server
The user at end divides firsts and seconds permission, and level-one permission is server administrators, can check that configuration is all and be registered in clothes
The wireless router being engaged on device;Second level permission is to possess the personal user of wireless router, each wireless router corresponding one
A ID and login account number and password, user, from APP program login service device, only manage phase by held account number cipher
The wireless router of ID is answered, and can not see the routing state of other users.
3. the method for automatic adjusument wireless router transmission power according to claim 1, which is characterized in that without route
By having automatic power regulation subsystem in device, Power Regulation subsystem runs Power Regulation subprogram, by monitoring/proc/net/dev, obtains
The data on flows of wireless TX;Message defined in wireless protocols in Power Regulation subprogram, for timing keep-alive and management STA, and
Broadcast probe frame;Power Regulation subsystem runs Power Regulation subprogram, passes through acquisition/proc/net/dev wireless interface total data stream
Information is measured to judge the User Status of current wireless router, wherein STA indicates the work station in WLAN.
4. a kind of wireless router, which is characterized in that have the power module for adjusting radio transmitted power;Also be linked into because
For being interacted with the server of configuration wireless router in spy's net;It is described that any one of claim 1-3 is used by power module
The method of the automatic adjusument wireless router transmission power carries out radio transmitted power according to Power Regulation subprogram adaptive
It should adjust.
5. wireless router according to claim 4, which is characterized in that the wireless router is equipped with LED light;
(1) when the power of wireless router is in the transmission power range of 5dbm, LED light is bright green;
(2) when the power of wireless router is in the transmission power range of 10dbm, 15dbm or 20dbm, LED light is bright orange;
(3) when the power of wireless router is in the transmission power range of 25dbm, LED light is shiny red.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510696084.1A CN105338603B (en) | 2015-10-23 | 2015-10-23 | A kind of method and wireless router of automatic adjusument wireless router transmission power |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510696084.1A CN105338603B (en) | 2015-10-23 | 2015-10-23 | A kind of method and wireless router of automatic adjusument wireless router transmission power |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105338603A CN105338603A (en) | 2016-02-17 |
CN105338603B true CN105338603B (en) | 2019-04-19 |
Family
ID=55288789
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510696084.1A Active CN105338603B (en) | 2015-10-23 | 2015-10-23 | A kind of method and wireless router of automatic adjusument wireless router transmission power |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105338603B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744615A (en) * | 2016-04-11 | 2016-07-06 | 上海斐讯数据通信技术有限公司 | Method and Device for Dynamically Adjusting Transmission Power of WLAN Access Points |
CN106550441A (en) * | 2016-10-31 | 2017-03-29 | 上海斐讯数据通信技术有限公司 | A kind of control method and device of radio transmitted power |
CN106851797A (en) * | 2016-12-16 | 2017-06-13 | 上海斐讯数据通信技术有限公司 | Can wireless awakening router, wireless wake-up system and router wireless awakening method |
CN106874123A (en) * | 2017-03-13 | 2017-06-20 | 湖南恒茂高科股份有限公司 | The method and system of multiple line distance management WAP |
CN107819689A (en) * | 2017-10-23 | 2018-03-20 | 上海斐讯数据通信技术有限公司 | A kind of intelligent energy-saving inter router and its control system |
CN108495363A (en) * | 2018-03-22 | 2018-09-04 | 上海康斐信息技术有限公司 | A kind of router control method and system |
CN111884938B (en) * | 2020-06-30 | 2022-12-30 | 海尔优家智能科技(北京)有限公司 | Router information acquisition method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1480878A (en) * | 2002-09-02 | 2004-03-10 | 联想(北京)有限公司 | Method for obtaining information of linux operation system |
CN103731911A (en) * | 2014-01-21 | 2014-04-16 | 英飞特电子(杭州)股份有限公司 | Wireless router control method and device and wireless router applying same |
CN104851274A (en) * | 2015-05-22 | 2015-08-19 | 侯明鑫 | Internet of Things designing scheme of WIFI (Wireless Fidelity), ZigBee and server |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080014981A1 (en) * | 2006-07-17 | 2008-01-17 | Muthaiah Venkatachalam | Methods and apparatus for providing idle mode operations for a platform with a plurality of wireless communication devices |
-
2015
- 2015-10-23 CN CN201510696084.1A patent/CN105338603B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1480878A (en) * | 2002-09-02 | 2004-03-10 | 联想(北京)有限公司 | Method for obtaining information of linux operation system |
CN103731911A (en) * | 2014-01-21 | 2014-04-16 | 英飞特电子(杭州)股份有限公司 | Wireless router control method and device and wireless router applying same |
CN104851274A (en) * | 2015-05-22 | 2015-08-19 | 侯明鑫 | Internet of Things designing scheme of WIFI (Wireless Fidelity), ZigBee and server |
Also Published As
Publication number | Publication date |
---|---|
CN105338603A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105338603B (en) | A kind of method and wireless router of automatic adjusument wireless router transmission power | |
EP3127366B1 (en) | Overload control and coordination between m2m service layer and 3gpp networks | |
US8351358B2 (en) | Channel state transition optimization | |
CN101489294B (en) | Method, router and network appliance for regulating power | |
JP2018196139A (en) | Service layer southbound interface and quality of service | |
WO2018035224A1 (en) | Keeping the ue awake | |
CN109150670B (en) | Heartbeat method and system for maintaining connection | |
CN105610913A (en) | Heartbeat keep-alive method and apparatus for long connection in communication network | |
US20200192457A1 (en) | Power-saving processing method and device, mobile terminal and computer-readable storage medium | |
US11467647B2 (en) | Method and system for low power internetwork communication with machine devices | |
EP3249967B1 (en) | Method and user equipment for indicating traffic-related information to network | |
CN103731872A (en) | Method and device for controlling data transmission of user equipment through signaling | |
CN102869047A (en) | Method and device for realizing load balance | |
CN105307257A (en) | Router signal automatic regulation method, router signal automatic regulation device and router | |
WO2011144127A2 (en) | Stand-by method for access point and access point | |
CN105722139A (en) | Signaling storm management method and apparatus based on PCC framework | |
WO2015085763A1 (en) | Data transmission method and router | |
CN110022577A (en) | Honeycomb IOT downlink business sending method, device and computer readable storage medium | |
CN106572482B (en) | Parameter configuration method and device and core network self-configuration self-optimization platform | |
WO2013143388A1 (en) | Power control method, power control system and equipment thereof | |
WO2013013571A1 (en) | Radio resource management method and apparatus | |
CN108040031B (en) | Method for realizing AC black and white list control based on portal protocol | |
US9326298B2 (en) | Wireless device background uplink small data packet | |
US9864422B1 (en) | Reducing transitions between idle and active states | |
CN105939280A (en) | Flow scheduling method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 412200 Hunan city of Zhuzhou province Liling City Economic Development Zone Hengmao science and Technology Park Applicant after: Hunan Hengmao tech Limited by Share Ltd Address before: 412200 Hunan city of Zhuzhou province Liling City Economic Development Zone Hengmao science and Technology Park Applicant before: Liling Hengmao Electronics Technology Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |