The content of the invention
It is a primary object of the present invention to provide a kind of Internet of Things network interface card flow cell monitoring method, equipment and computer-readable deposit
Storage media, it is intended to solve how to monitor the technical problem of the size of Internet of Things network interface card flow cell exactly.
To achieve the above object, the present invention provides a kind of Internet of Things network interface card flow cell monitoring method, the Internet of Things network interface card flow
Cell monitoring method comprises the following steps:
Timing obtains Internet of Things network card data, and every Internet of Things network interface card in the Internet of Things network card data from database
Life cycle determine every Internet of Things network interface card moon contribution flow computation rule;
The computation rule of flow is contributed to calculate the moon that every Internet of Things is stuck in current month according to the moon of every Internet of Things network interface card
Contribute flow value;
The moon contribution flow value that every Internet of Things is stuck in current month is added, to determine Internet of Things network interface card flow cell
Size.
Alternatively, the life cycle of every Internet of Things network interface card in the Internet of Things network card data determines every Internet of Things
The step of computation rule of the moon contribution flow of network interface card, includes:
The life cycle of every Internet of Things network interface card is obtained from the Internet of Things network card data, and determines opening for the life cycle
Begin date and Close Date;
The life cycle and current month of every Internet of Things network interface card are determined according to the Start Date and the Close Date
Inclusion relation;
The computation rule of the moon contribution flow of every Internet of Things network interface card is determined according to the inclusion relation.
Alternatively, the computation rule includes the first computation rule, the second computation rule and the 3rd computation rule, and described
One computation rule is Y1=A1*(B1*1024/C1), wherein, Y1Flow value, A are contributed for the moon1For current month number of days, B1For Internet of Things
The fixed contribution flow of network interface card, C1For the life cycle number of days of Internet of Things network interface card;
Second computation rule is Y2=A2*(B2*1024/C2)/3600, wherein, Y2Flow value, A are contributed for the moon2To work as
The deadline in preceding month and the difference of the Start Date of life cycle, B2For the fixed contribution flow of Internet of Things network interface card, C2For Internet of Things
The life cycle number of days of card;
3rd computation rule is Y3=A3*(B3*1024/C3)/3600, wherein, Y3Flow value, A are contributed for the moon3To work as
The Start Date in preceding month and the difference of the Close Date of life cycle, B3For the fixed contribution flow of Internet of Things network interface card, C3For Internet of Things
The life cycle number of days of card.
Alternatively, the moon contribution flow value that every Internet of Things is stuck in current month is added, to determine Internet of Things
After the step of size of network interface card flow cell, the Internet of Things network interface card flow cell monitoring method further includes:
Obtain the consumed flow value of every Internet of Things network interface card from database with interval preset time, and by every Internet of Things network interface card
Consumed flow value be added, to obtain wastage in bulk or weight flow value;
Total contribution flow value of the Internet of Things network interface card flow cell is obtained, and total contribution flow value always disappears with described
Consume flow value;
When total contribution flow value is more than the wastage in bulk or weight flow value, calculate total contribution flow value with it is described always
The flow difference of consumed flow value;
It is less than the first predetermined threshold value in the flow difference, or during higher than the second predetermined threshold value, generates prompting message, and show
Show the prompting message.
Alternatively, the total contribution flow value for obtaining the Internet of Things network interface card flow cell, and total contribution flow
After the step of value and the wastage in bulk or weight flow value, the Internet of Things network interface card flow cell monitoring method further includes:
When total contribution flow value is less than or equal to the wastage in bulk or weight flow value, calculate total contribution flow value and
The flow difference of the wastage in bulk or weight flow value, and when the flow difference is in preset difference value scope, perform added flow bag
Purchase operation.
In addition, to achieve the above object, the present invention also provides a kind of Internet of Things network interface card flow cell monitoring device, the Internet of Things
Card flow cell monitoring device includes:Memory, processor and it is stored on the memory and can runs on the processor
Internet of Things network interface card flow cell monitoring programme, when the Internet of Things network interface card flow cell monitoring programme is performed by the processor realize as above
The step of described Internet of Things network interface card flow cell monitoring method.
The present invention also provides a kind of computer-readable recording medium, Internet of Things is stored with the computer-readable recording medium
Network interface card flow cell monitoring programme, the Internet of Things network interface card flow cell monitoring programme realize Internet of Things as described above when being executed by processor
The step of network interface card flow cell monitoring method.
The present invention provides a kind of Internet of Things network interface card flow cell monitoring method, equipment and computer-readable recording medium, the present invention
Timing obtains Internet of Things network card data, and the life cycle of every Internet of Things network interface card in the Internet of Things network card data from database
The computation rule of the moon contribution flow of every Internet of Things network interface card is determined, then according to the calculating of the moon contribution flow of every Internet of Things network interface card
Rule calculates the moon contribution flow value that every Internet of Things is stuck in current month, and every Internet of Things is stuck in the moon tribute of current month
Offer flow value to be added, to determine the size of Internet of Things network interface card flow cell, this programme passes through every Internet of Things in Internet of Things network card data
The life cycle of network interface card determines the computation rule of the moon contribution flow of every Internet of Things network interface card, and is calculated based on definite computation rule
The moon contribution flow of every Internet of Things network interface card, and it is cumulative, it is Internet of Things so as to monitor the size of Internet of Things network interface card flow cell exactly
The operation of network interface card is provided and accurately supported, realizes the real time monitoring to Internet of Things network interface card monthly integrated flow pond.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:Timing obtains Internet of Things network card data from database, and according to this
The life cycle of every Internet of Things network interface card in Internet of Things network card data determines the computation rule of the moon contribution flow of every Internet of Things network interface card,
Then every Internet of Things is calculated according to the computation rule of the moon contribution flow of every Internet of Things network interface card and is stuck in contributing the moon for current month
Flow value, and by every Internet of Things be stuck in current month the moon contribution flow value be added, with determine Internet of Things network interface card flow cell
Size.
Due to the contribution flow estimation Internet of Things network interface card flow in the physical network card and Rate Plan that are activated by history monthly
During the size in pond, the size of obtained Internet of Things network interface card flow cell is inaccurate, can not provide for the operation of Internet of Things network interface card and accurately prop up
Hold.Therefore, the size of Internet of Things network interface card flow cell how is monitored exactly, provides accurately support it is mesh for the operation of Internet of Things network interface card
Preceding urgent problem to be solved.
The present invention provides a solution, the life cycle that this programme passes through every Internet of Things network interface card in Internet of Things network card data
Determine the computation rule of the moon contribution flow of every Internet of Things network interface card, and every Internet of Things network interface card is calculated based on definite computation rule
Moon contribution flow, and it is cumulative, so as to monitor the size of Internet of Things network interface card flow cell exactly, the operation for Internet of Things network interface card provides
Accurately support, realize the real time monitoring to Internet of Things network interface card monthly integrated flow pond.
As shown in Figure 1, the device structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Equipment of the embodiment of the present invention can be PC or smart mobile phone, tablet computer, pocket computer etc. with aobvious
Show the packaged type terminal device of function.
As shown in Figure 1, the Internet of Things network interface card flow cell monitoring device can include:Processor 1001, such as CPU, communication are total
Line 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used for realization these components
Between connection communication.User interface 1003 can include display screen (Display), input unit such as keyboard
(Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 can
Choosing can include standard wireline interface and wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM storage
Device or the memory of stabilization (non-volatile memory), such as magnetic disk storage.Memory 1005 is optional
It can also be the storage device independently of aforementioned processor 1001.
Alternatively, which can also include camera, (Radio Frequency, are penetrated RF
Frequently circuit), sensor, voicefrequency circuit, WiFi module etc..Wherein, sensor ratio such as optical sensor, motion sensor and its
His sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can root
The brightness of display screen is adjusted according to the light and shade of ambient light, proximity sensor can close display screen when equipment is moved in one's ear
And/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) and add
The size of speed, can detect that size and the direction of gravity when static, application (such as the horizontal/vertical screen available for identification equipment posture
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, the Internet of Things
Network interface card flow cell monitoring device can also configure gyroscope, barometer, hygrometer, thermometer, infrared ray sensor etc., and other are sensed
Device, details are not described herein.
It will be understood by those skilled in the art that the Internet of Things network interface card flow cell monitoring device structure shown in Fig. 1 is not formed
Restriction to Internet of Things network interface card flow cell monitoring device, can be included than illustrating more or fewer components, or some portions of combination
Part, or different components arrangement.
As shown in Figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module, Subscriber Interface Module SIM and Internet of Things network interface card flow cell monitoring programme.
In the Internet of Things network interface card flow cell monitoring device shown in Fig. 1, network interface 1004 is mainly used for connecting background service
Device, with background server into row data communication;User interface 1003 be mainly used for connect client (user terminal), with client into
Row data communication;And processor 1001 can be used for calling the Internet of Things network interface card flow cell monitoring programme stored in memory 1005,
And perform following steps:
Timing obtains Internet of Things network card data, and every Internet of Things network interface card in the Internet of Things network card data from database
Life cycle determine every Internet of Things network interface card moon contribution flow computation rule;
The computation rule of flow is contributed to calculate the moon that every Internet of Things is stuck in current month according to the moon of every Internet of Things network interface card
Contribute flow value;
The moon contribution flow value that every Internet of Things is stuck in current month is added, to determine Internet of Things network interface card flow cell
Size.
Further, processor 1001 can be used for calling the Internet of Things network interface card flow cell monitoring journey stored in memory 1005
Sequence, also performs following steps:
The life cycle of every Internet of Things network interface card is obtained from the Internet of Things network card data, and determines opening for the life cycle
Begin date and Close Date;
The life cycle and current month of every Internet of Things network interface card are determined according to the Start Date and the Close Date
Inclusion relation;
The computation rule of the moon contribution flow of every Internet of Things network interface card is determined according to the inclusion relation.
Further, the computation rule includes the first computation rule, the second computation rule and the 3rd computation rule, described
First computation rule is Y1=A1*(B1*1024/C1), wherein, Y1Flow value, A are contributed for the moon1For current month number of days, B1For thing
The fixed contribution flow of networking card, C1For the life cycle number of days of Internet of Things network interface card;
Second computation rule is Y2=A2*(B2*1024/C2)/3600, wherein, Y2Flow value, A are contributed for the moon2To work as
The deadline in preceding month and the difference of the Start Date of life cycle, B2For the fixed contribution flow of Internet of Things network interface card, C2For Internet of Things
The life cycle number of days of card;
3rd computation rule is Y3=A3*(B3*1024/C3)/3600, wherein, Y3Flow value, A are contributed for the moon3To work as
The Start Date in preceding month and the difference of the Close Date of life cycle, B3For the fixed contribution flow of Internet of Things network interface card, C3For Internet of Things
The life cycle number of days of card.
Further, processor 1001 can be used for calling the Internet of Things network interface card flow cell monitoring journey stored in memory 1005
Sequence, also performs following steps:
Obtain the consumed flow value of every Internet of Things network interface card from database with interval preset time, and by every Internet of Things network interface card
Consumed flow value be added, to obtain wastage in bulk or weight flow value;
Total contribution flow value of the Internet of Things network interface card flow cell is obtained, and total contribution flow value always disappears with described
Consume flow value;
When total contribution flow value is more than the wastage in bulk or weight flow value, calculate total contribution flow value with it is described always
The flow difference of consumed flow value;
It is less than the first predetermined threshold value in the flow difference, or during higher than the second predetermined threshold value, generates prompting message, and show
Show the prompting message.
Further, processor 1001 can be used for calling the Internet of Things network interface card flow cell monitoring journey stored in memory 1005
Sequence, also performs following steps:
When total contribution flow value is less than or equal to the wastage in bulk or weight flow value, calculate total contribution flow value and
The flow difference of the wastage in bulk or weight flow value, and when the flow difference is in preset difference value scope, perform added flow bag
Purchase operation.
The specific embodiment of Internet of Things network interface card flow cell monitoring device of the present invention and following Internet of Things network interface card flow cell monitoring methods
Each specific embodiment it is essentially identical, therefore not to repeat here.
The present invention also provides a kind of Internet of Things network interface card flow cell monitoring method.
With reference to Fig. 2, Fig. 2 is the flow diagram of Internet of Things network interface card flow cell monitoring method first embodiment of the present invention.
In the present embodiment, which includes:
Step S101, periodically obtains Internet of Things network card data from database, and every in the Internet of Things network card data
The life cycle for opening Internet of Things network interface card determines that the moon of every Internet of Things network interface card contributes the computation rule of flow;
The Internet of Things network interface card flow cell monitoring method is applied to Internet of Things network interface card flow cell monitoring device, the Internet of Things network interface card flow cell
Monitoring device is attached by network with laying the mobile terminal of Internet of Things network interface card, when Internet of Things card insertion is entered movement eventually by user
After end, which shows the activation ACK button of Internet of Things network interface card, when detecting that user is based on the activation ACK button,
The Internet of Things network interface card is activated, mobile terminal will activate Start Date of the date as the Internet of Things network interface card rate at this time, and this is started
Date and the unique mark of the Internet of Things network interface card, i.e. Internet of Things card number code, are transferred to the Internet of Things network interface card flow cell monitoring device, the thing
Card flow cell monitoring device of networking determines this when receiving Start Date and Internet of Things card number code based on the Internet of Things card number code
The fixed contribution flow and Close Date that the Rate Plan of Internet of Things network interface card, i.e. the Internet of Things network interface card can use, and this is started into day
Phase, Close Date, fixed contribution flow and Internet of Things card number code are stored to database, between the Start Date and the Close Date
Time difference be the Internet of Things network interface card life cycle.
Internet of Things network interface card flow cell monitoring device timing obtains Internet of Things network card data from database, and according to the Internet of Things
The life cycle of every Internet of Things network interface card in card data determines the computation rule of the moon contribution flow of every Internet of Things network interface card.
Specifically, in the present embodiment, step S101 includes:
The life cycle of every Internet of Things network interface card is obtained from the Internet of Things network card data, and determines opening for the life cycle
Begin date and Close Date;
The life cycle and current month of every Internet of Things network interface card are determined according to the Start Date and the Close Date
Inclusion relation;
The computation rule of the moon contribution flow of every Internet of Things network interface card is determined according to the inclusion relation.
Internet of Things network interface card flow cell monitoring device timing obtains Internet of Things network card data from database, and from the Internet of Things network interface card
The life cycle of every Internet of Things network interface card is obtained in data, and determines the Start Date and Close Date of the life cycle, Ran Hougen
According to the Start Date and Close Date of the life cycle, and current month determine the life cycle of every Internet of Things network interface card with it is current
The inclusion relation in month, the inclusion relation include the Start Date of Internet of Things network interface card before current month, and the Close Date is working as
After preceding month;The Start Date of Internet of Things is in current month, and the Close Date is after current month;Internet of Things is opened
The date begin before current month, and the Close Date is in current month.Every Internet of Things is finally determined according to the inclusion relation
The computation rule of the moon contribution flow of network interface card, which includes the first computation rule, the second computation rule and the 3rd calculates
Rule, specially when inclusion relation for Internet of Things network interface card Start Date before current month, and the Close Date is in current month
When afterwards, it may be determined that the computation rule of the moon contribution flow of the Internet of Things network interface card is the first computation rule, when inclusion relation is Internet of Things
The Start Date of net is in current month, and the Close Date is when after current month, it may be determined that the moon contribution of Internet of Things network interface card
The computation rule of flow is the second computation rule, when inclusion relation for Internet of Things Start Date before current month, and tie
When the beam date is in current month, it may be determined that the computation rule of the moon contribution flow of Internet of Things network interface card is the 3rd computation rule.
First computation rule is Y1=A1*(B1*1024/C1), wherein, Y1Flow value, A are contributed for the moon1For current month
Number of days, B1For the fixed contribution flow of Internet of Things network interface card, C1For the life cycle number of days of Internet of Things network interface card;Second computation rule is Y2
=A2*(B2*1024/C2)/3600, wherein, Y2Flow value, A are contributed for the moon2Deadline and life cycle for current month
The difference of Start Date, B2For the fixed contribution flow of Internet of Things network interface card, C2For the life cycle number of days of Internet of Things network interface card;3rd calculates
Rule is Y3=A3*(B3*1024/C3)/3600, wherein, Y3Flow value, A are contributed for the moon3Start Date and life for current month
Order the difference of the Close Date in cycle, B3For the fixed contribution flow of Internet of Things network interface card, C3For the life cycle number of days of Internet of Things network interface card.
Step S102, calculates every Internet of Things according to the computation rule of the moon contribution flow of every Internet of Things network interface card and is stuck in currently
The moon contribution flow value in month;
The Internet of Things network interface card flow cell monitoring device is based on after the computation rule of moon contribution flow of Internet of Things network interface card is determined
Definite computation rule calculates the moon contribution flow of the Internet of Things network interface card, that is, passes through the first computation rule Y1=A1*(B1*1024/C1)
Start Date is calculated before current month, and the moon contribution flow value of Internet of Things network interface card of the Close Date after current month,
Specially calculate the product of current month number of days and daily average contribution flow (fixed contribution flow divided by life cycle number of days);
Pass through the second computation rule Y2=A2*(B2*1024/C2The calculating Start Date of)/3600 is in current month, and the Close Date
The moon contribution flow value of Internet of Things network interface card after current month, specially calculates deadline and the life cycle of current month
The difference (being accurate to the second) of Start Date and multiplying for daily average contribution flow (fixed contribution flow divided by life cycle number of days)
Product;Pass through the 3rd computation rule Y3=A3*(B3*1024/C3)/3600 calculate Start Date before current month, and closing day
Phase is in the moon contribution flow value of the Internet of Things network interface card in current month, specially calculates Start Date and the Life Cycle of current month
The difference (being accurate to the second) of the Close Date of phase and daily average contribution flow (fixed contribution flow divided by life cycle number of days)
Product.
Step S103, the moon contribution flow value that every Internet of Things is stuck in current month is added, to determine Internet of Things
The size of card flow cell.
The Internet of Things network interface card flow cell monitoring device is stuck in the moon contribution flow value of current month every Internet of Things has been calculated
Afterwards, the moon contribution flow value that every Internet of Things is stuck in current month is added, to determine the big of Internet of Things network interface card flow cell
It is small.In specific implementation, while contributing flow value by the moon of current month can also be stuck in calculating every Internet of Things, carries out the moon
The accumulation operations of flow value are contributed, improve speed.
In the present embodiment, present invention timing obtains Internet of Things network card data from database, and according to the Internet of Things network interface card number
The life cycle of every Internet of Things network interface card in determines the computation rule of the moon contribution flow of every Internet of Things network interface card, then according to every
The computation rule for opening the moon contribution flow of Internet of Things network interface card calculates the moon contribution flow value that every Internet of Things is stuck in current month, and will
The moon contribution flow value that every Internet of Things is stuck in current month is added, to determine the size of Internet of Things network interface card flow cell, we
Case determines that the moon of every Internet of Things network interface card contributes the calculating of flow by the life cycle of every Internet of Things network interface card in Internet of Things network card data
Rule, and contribute flow the moon based on what definite computation rule calculated every Internet of Things network interface card, and it is cumulative, so as to supervise exactly
The size of Internet of Things network interface card flow cell is controlled, provides and accurately supports for the operation of Internet of Things network interface card, realize and Internet of Things network interface card is monthly added up
The real time monitoring of flow cell.
Further, with reference to Fig. 3, Internet of Things network interface card flow cell monitoring method of the present invention is proposed based on above-mentioned first embodiment
Second embodiment, difference lies in after step S103, the Internet of Things network interface card flow cell monitoring method is also with previous embodiment
Including:
Step S104, the consumed flow value of every Internet of Things network interface card is obtained with interval preset time from database, and will be every
The consumed flow value for opening Internet of Things network interface card is added, to obtain wastage in bulk or weight flow value;
Step S105, obtains total contribution flow value of the Internet of Things network interface card flow cell, and total contribution flow value
With the wastage in bulk or weight flow value;
Step S106, when total contribution flow value is more than the wastage in bulk or weight flow value, calculates total contribution flow
Value and the flow difference of the wastage in bulk or weight flow value;
Step S107, is less than the first predetermined threshold value in the flow difference, or during higher than the second predetermined threshold value, generation is reminded
Information, and show the prompting message.
It should be noted that the present invention proposes a kind of alerting pattern of Internet of Things network interface card flow cell based on previous embodiment,
Only it is explained below, it is other to can refer to previous embodiment.
The Internet of Things network interface card flow cell monitoring device is after the size of Internet of Things network interface card flow cell is determined, with interval preset time
The consumed flow value of every Internet of Things network interface card is obtained from database, and the consumed flow value of every Internet of Things network interface card is added,
To obtain wastage in bulk or weight flow value, total contribution flow value of the Internet of Things network interface card flow cell is then obtained, and compares total contribution flow
Value and the wastage in bulk or weight flow value, finally when always contribution flow value is more than the wastage in bulk or weight flow value, calculate total contribution flow
Value and the flow difference of the wastage in bulk or weight flow value, and it is less than the first predetermined threshold value in the flow difference, or higher than the second default threshold
During value, prompting message is generated, and show the prompting message.When the flow difference is less than the first predetermined threshold value, Internet of Things card is represented
Remaining flow is less in flow cell, when which is higher than the second predetermined threshold value, represents the residue of Internet of Things card flow cell
Flow it is more.It should be noted that first predetermined threshold value and the second predetermined threshold value can be based in fact by those skilled in the art
Border situation is configured, and the present embodiment is not especially limited this.
In the present embodiment, the present invention by by total contribution flow value of wastage in bulk or weight flow value and Internet of Things network interface card flow cell into
Row compares, more or when remaining flow is less in the remaining flow of Internet of Things network interface card flow cell, sends prompting, is Internet of Things network interface card
Operation provide accurately support.
Further, the 3rd reality of Internet of Things network interface card flow cell monitoring method of the present invention is proposed based on above-mentioned second embodiment
Example is applied, difference lies in after step SS105, which further includes with previous embodiment:
When total contribution flow value is less than or equal to the wastage in bulk or weight flow value, calculate total contribution flow value and
The flow difference of the wastage in bulk or weight flow value, and when the flow difference is in preset difference value scope, perform added flow bag
Purchase operation.
It should be noted that the present invention proposes a kind of automatic buying pattern of added flow bag based on previous embodiment,
Only it is explained below, it is other to can refer to previous embodiment.
The Internet of Things network interface card flow cell monitoring device is after the size of Internet of Things network interface card flow cell is determined, with interval preset time
The consumed flow value of every Internet of Things network interface card is obtained from database, and the consumed flow value of every Internet of Things network interface card is added,
To obtain wastage in bulk or weight flow value, total contribution flow value of the Internet of Things network interface card flow cell is then obtained, and compares total contribution flow
Value and the wastage in bulk or weight flow value, finally when total contribution flow value is less than or equal to the wastage in bulk or weight flow value, it is total to calculate this
The flow difference of flow value and the wastage in bulk or weight flow value is contributed, and when the flow difference is in preset difference value scope, performs volume
The purchase operation of external flux bag.If the flow difference is in preset difference value scope, then it represents that equipment has automatic purchase additional streams
The authority of bag is measured, therefore performs the purchase operation of added flow bag, if the flow difference is not in preset difference value scope, then it represents that
Authority of the equipment without automatic purchase added flow bag, needs to send prompting at this time.
In the present embodiment, the present invention can exceed the size of Internet of Things network interface card flow cell in this wastage in bulk or weight flow value, and super
When the consumed flow crossed is in a certain range, added flow bag can be timely bought automatically, without human intervention.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium
On be stored with Internet of Things network interface card flow cell monitoring programme, when the Internet of Things network interface card flow cell monitoring programme is executed by processor realize with
Lower step:
Timing obtains Internet of Things network card data, and every Internet of Things network interface card in the Internet of Things network card data from database
Life cycle determine every Internet of Things network interface card moon contribution flow computation rule;
The computation rule of flow is contributed to calculate the moon that every Internet of Things is stuck in current month according to the moon of every Internet of Things network interface card
Contribute flow value;
The moon contribution flow value that every Internet of Things is stuck in current month is added, to determine Internet of Things network interface card flow cell
Size.
Further, following steps are also realized when the Internet of Things network interface card flow cell monitoring programme is executed by processor:
The life cycle of every Internet of Things network interface card is obtained from the Internet of Things network card data, and determines opening for the life cycle
Begin date and Close Date;
The life cycle and current month of every Internet of Things network interface card are determined according to the Start Date and the Close Date
Inclusion relation;
The computation rule of the moon contribution flow of every Internet of Things network interface card is determined according to the inclusion relation.
Further, the computation rule includes the first computation rule, the second computation rule and the 3rd computation rule, described
First computation rule is Y1=A1*(B1*1024/C1), wherein, Y1Flow value, A are contributed for the moon1For current month number of days, B1For thing
The fixed contribution flow of networking card, C1For the life cycle number of days of Internet of Things network interface card;
Second computation rule is Y2=A2*(B2*1024/C2)/3600, wherein, Y2Flow value, A are contributed for the moon2To work as
The deadline in preceding month and the difference of the Start Date of life cycle, B2For the fixed contribution flow of Internet of Things network interface card, C2For Internet of Things
The life cycle number of days of card;
3rd computation rule is Y3=A3*(B3*1024/C3)/3600, wherein, Y3Flow value, A are contributed for the moon3To work as
The Start Date in preceding month and the difference of the Close Date of life cycle, B3For the fixed contribution flow of Internet of Things network interface card, C3For Internet of Things
The life cycle number of days of card.
Further, following steps are also realized when the Internet of Things network interface card flow cell monitoring programme is executed by processor:
Obtain the consumed flow value of every Internet of Things network interface card from database with interval preset time, and by every Internet of Things network interface card
Consumed flow value be added, to obtain wastage in bulk or weight flow value;
Total contribution flow value of the Internet of Things network interface card flow cell is obtained, and total contribution flow value always disappears with described
Consume flow value;
When total contribution flow value is more than the wastage in bulk or weight flow value, calculate total contribution flow value with it is described always
The flow difference of consumed flow value;
It is less than the first predetermined threshold value in the flow difference, or during higher than the second predetermined threshold value, generates prompting message, and show
Show the prompting message.
Further, following steps are also realized when the Internet of Things network interface card flow cell monitoring programme is executed by processor:
When total contribution flow value is less than or equal to the wastage in bulk or weight flow value, calculate total contribution flow value and
The flow difference of the wastage in bulk or weight flow value, and when the flow difference is in preset difference value scope, perform added flow bag
Purchase operation.
The specific embodiment of computer-readable recording medium of the present invention is each with above-mentioned Internet of Things network interface card flow cell monitoring method
Specific embodiment is essentially identical, and therefore not to repeat here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone,
Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.