CN108833136A - A kind of setting method and gateway of surf time - Google Patents

A kind of setting method and gateway of surf time Download PDF

Info

Publication number
CN108833136A
CN108833136A CN201810449869.2A CN201810449869A CN108833136A CN 108833136 A CN108833136 A CN 108833136A CN 201810449869 A CN201810449869 A CN 201810449869A CN 108833136 A CN108833136 A CN 108833136A
Authority
CN
China
Prior art keywords
surf
time
rule
expression
value
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.)
Pending
Application number
CN201810449869.2A
Other languages
Chinese (zh)
Inventor
房鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Kangfei Information Technology Co Ltd
Original Assignee
Shanghai Kangfei Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Kangfei Information Technology Co Ltd filed Critical Shanghai Kangfei Information Technology Co Ltd
Priority to CN201810449869.2A priority Critical patent/CN108833136A/en
Publication of CN108833136A publication Critical patent/CN108833136A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses the setting methods of surf time a kind of, control for the surf time to gateway, which is characterized in that the method includes:Surf time rule is converted to a character string;The character string is stored in gateway;Be set according to the value of the character string, wherein the character string includes at least N number of 16 system numbers the surf time that the gateway allows;The N is expressed as being divided into N number of period for 24 hours one day;Each described 16 system number are expressed as the date for allowing to surf the Internet in the corresponding period in Zhou Lizhong, reduce the memory space of surf time regular data.

Description

A kind of setting method and gateway of surf time
Technical field
The invention belongs to gateway technical fields, the in particular to setting method and gateway of surf time.
Background technique
Parent, which controls rule, can help user effectively to control the period that children use mobile electronic device, by setting Determine the usage time interval of mobile electronic device and is set in the mode in different time segment limit allowing or being forbidden to use, than Such as, " parent controls rule " function in router, setting child daily surf time can be passed through.
In the prior art for the data of the surf time rule of the setting of each equipment, default is deposited using a plurality of rule The data are stored up, and generate longer unique number at random for every rule, so as to subsequent rule process.As shown in Figure 1, on road By being directed to the parental control function of some equipment setting on device, what is be arranged in one week allows the period of online.The prior art In, the data information of the surf time rule of parental control function setting shown in FIG. 1 is sent to road with following data format By device:
[{"id":"","start_time":68400,"end_time":79200,"cycle":"1000000","mac":" 68%3A05%3ACA%3A35%3AFD%3A48","name":"unkonw"},
{"id":"","start_time":14400,"end_time":54000,"cycle":"0100000","mac":"68% 3A05%3ACA%3A35%3AFD%3A48","name":"unknow"},
{"id":"","start_time":3600,"end_time":10800,"cycle":"0001000","mac":"68% 3A05%3ACA%3A35%3AFD%3A48","name":"unknow"},
{"id":"","start_time":43200,"end_time":75600,"cycle":"0001000","mac":"68% 3A05%3ACA%3A35%3AFD%3A48","name":"unknow"},
{"id":"","start_time":3600,"end_time":10800,"cycle":"0000100","mac":"68% 3A05%3ACA%3A35%3AFD%3A48","name":"unknow"},
{"id":"","start_time":3600,"end_time":10800,"cycle":"0000010","mac":"68% 3A05%3ACA%3A35%3AFD%3A48","name":"unknow"},
{"id":"","start_time":25200,"end_time":46800,"cycle":"0000010","mac":"68% 3A05%3ACA%3A35%3AFD%3A48","name":"unknow"},
{"id":"","start_time":79200,"end_time":86400,"cycle":"0000001","mac":"68% 3A05%3ACA%3A35%3AFD%3A48","name":"unknow"}];
Wherein, id:Indicate unique rule ID, which is arranged by router, and the ID is sky when adding parental control function; start time ,end time:It indicates the initial time of setting and terminates the number of minutes of time, can be exchanged into hour;cycle: It indicates every day in one week, originates from week at the beginning, for example, 1000000 representatives have only selected Monday, and so on;mac: Indicate the MAC Address of equipment;The title of name expression equipment.
Above-mentioned data information memory is in the form of router:
68:05:CA:35:FD:48,1000000,19:00,22:00,1225803326;
68:05:CA:35:FD:48,0100000,04:00,15:00,1752280520;
68:05:CA:35:FD:48,0001000,01:00,03:00,1114582660;
68:05:CA:35:FD:48,0001000,12:00,21:00,1812802039;
68:05:CA:35:FD:48,0000100,01:00,03:00,2793815370;
68:05:CA:35:FD:48,0000010,01:00,03:00,5646075200;
68:05:CA:35:FD:48,0000010,07:00,13:00,4170970200;
68:05:CA:35:FD:48,0000001,22:00,24:00,2471703920
In above-mentioned storing data, every rule all use ";" separate, independent data in every data are separated with ", ", and the time is with small When indicate.It can be found that MAC Address will do it repetition storage by above-mentioned storing data, is needed only behind every storing data One rule ID.
The shortcomings that prior art, is primarily present two aspects:The storage of data needs to consume relatively large space, and number There are many places repeated datas in;The unique rule ID generated is a random digit, and needing to inquire after random generation every time should Whether number has used, and such as being used need to regenerate, and also inconvenient to data are searched.
Therefore, the storage of surf time regular data how is reduced, and how to be dynamically generated rule ID, is become urgently It solves the problems, such as.
Summary of the invention
In consideration of it, reducing online the purpose of the present invention is to provide the setting method of surf time a kind of and gateway The memory space of time rule data.
According to foregoing invention purpose, the present invention provides the setting method of surf time a kind of, for gateway The net time is controlled, the method includes:
S1, surf time rule is converted to a character string;
S2, the character string is stored in gateway;
S3, be set according to the value of the character string surf time that the gateway allows;
Wherein, the character string includes at least N number of 16 system numbers;
The N is expressed as being divided into N number of period for 24 hours one day;
Each described 16 system number are expressed as the date for allowing to surf the Internet in the corresponding period in Zhou Lizhong.
Preferably, the surf time rule further includes the MAC Address of a terminal device;
The character string further includes the MAC Address of the terminal device.
Preferably, the N is 24, and the character string includes at least 24 16 system numbers;
Each described 16 system number binary system " x1x2x3x4 x5x6x7x8" indicate, wherein
x1:It is defaulted as 0;
x2~ x8:If bit place value is 1, then it represents that the bit corresponding all calendar date selects the period to surf the Internet, if bit place value It is 0, then it represents that the bit corresponding all calendar date does not select the period to surf the Internet.
Preferably, the method also includes:The character string is reduced into interface data format, and by connecing after reduction Mouth data are sent to a terminal device, for its display or modification.
It preferably, include a rule ID in the interface data format, the generation format of the rule ID includes with week One or several kinds on the basis of going through, on the basis of the period and on the basis of period and Zhou Li.
Preferably, format of the rule ID on the basis of Zhou Li is indicated using " xddwssee " form, wherein
X indicates that n is 0 expression on the basis of Zhou Li with binary one nm, and n is 1 expression on the basis of time point, and m indicates permission for 0 Online, m are that 1 expression is forbidden surfing the Internet;
Dd indicates terminal device ID;
W indicates all calendar dates, and being worth be 0 ~ 6,0 is Monday;
Ssee indicates starting hour and terminates hour, and ss minimum 00 is up to 23, ee minimum 01, is up to 24.
Preferably, format of the rule ID on the basis of the period is indicated using " xddhhwww " form, wherein
X indicates that n is 0 expression on the basis of Zhou Li with binary one nm, and n is 1 expression on the basis of time point, and m indicates permission for 0 Online, m are that 1 expression is forbidden surfing the Internet;
Dd indicates terminal device ID;
Hh indicates several points, and being worth is 00 ~ 23;
Www indicates all calendar dates, and being worth is 0 ~ 127.
Preferably, format of the rule ID on the basis of time point and Zhou Li uses the form of " xddwwwfse ", In,
The 4th of the rule ID is 7 or 8;
X indicates that n is arbitrary value with binary one nm, and m is that 0 expression allows to surf the Internet, and m is that 1 expression is forbidden surfing the Internet;
Dd indicates terminal device ID;
Www indicates all calendar dates, and being worth is 128 ~ 700;
F is 00 ~ 9 section of expression, and s value is that 0 ~ 8, e value is 1 ~ 9;
F is 1 10 ~ 19 sections of expression, and s value is that 0 ~ 8, e value is 1 ~ 9;
F is 2 20 ~ 24 sections of expression, and s value is that 0 ~ 3, e value is 1 ~ 4;
It is some time point among 0 ~ 9 point that f, which is 3 expression initial times, and the end time is 10 ~ 19 points of some time points, s value 0 ~ 9, e values are 0 ~ 9;
F is that 4 expression initial times are some time point among 10 ~ 19 points, is terminated as 20 ~ 24 points of some time points, s value is 0 ~ 9, e values are 0 ~ 4;
F is that 5 expression initial times are some time point among 0 ~ 9 point, is terminated as 20 ~ 24 points of some time points, s value is 0 ~ 9, e values are 0 ~ 4.
According to foregoing invention purpose, the present invention provides a kind of gateway, including:
Surf time rule is converted to a character string, and stores the character string by generation module;
The surf time that the gateway allows is arranged according to the value of the character string in setup module;
Wherein, the character string includes at least N number of 16 system numbers;
The N is expressed as being divided into N number of period for 24 hours one day;
Each described 16 system number are expressed as the date for allowing to surf the Internet in the corresponding period in Zhou Lizhong.
Preferably, the gateway further includes:
The character string is reduced into interface data format, and the interface data after reduction is sent to one eventually by parsing module End equipment, for its display or modification;
Rule ID module includes a rule ID in the interface data format, and the generation format of the rule ID includes Zhou Li On the basis of, the one or several kinds on the basis of the period and on the basis of period and Zhou Li.
Compared with prior art, the setting method and gateway of a kind of surf time provided by the invention has following Beneficial effect:A plurality of surf time regular data in the prior art is generated into a storing data, reduces the storage of data Space;Reduce the resource consumption of system;Better experience is brought to user;According to the rule ID format of setting, dynamically give birth to At rule ID, the quantity of rule ID is reduced, the work such as inquiry and modification to rule ID bring great convenience conveniently.
Detailed description of the invention
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, the setting to a kind of surf time Above-mentioned characteristic, technical characteristic, advantage and its implementation of method and gateway are further described.
Fig. 1 is the schematic diagram for the parental control function that the present invention is arranged in the prior art;
Fig. 2 is a kind of flow chart of the setting method of surf time of the present invention;
Fig. 3 is a kind of composed structure schematic diagram of gateway of the present invention.
Specific embodiment
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, Detailed description of the invention will be compareed below A specific embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically shown in each figure, they are not represented Its practical structures as product.In addition, there is identical structure or function in some figures so that simplified form is easy to understand Component only symbolically depicts one of those, or has only marked one of those.Herein, "one" is not only indicated " only this ", can also indicate the situation of " more than one ".
As shown in Fig. 2, one embodiment of the present of invention, a kind of setting method of surf time, for gateway Surf time is controlled, the method includes:
S201, surf time rule is converted to a character string;
S202, the character string is stored in gateway;
S203, be set according to the value of the character string surf time that the gateway allows;
Wherein, the character string includes at least N number of 16 system numbers;
The N is expressed as being divided into N number of period for 24 hours one day;
Each described 16 system number are expressed as the date for allowing to surf the Internet in the corresponding period in Zhou Lizhong.
In the prior art, user can use parental control function in gateway, can be with by parental control function Surf time information of the child in one week is set, corresponding parent is set for each terminal device and controls function, such as Fig. 1 institute Show.As described in the background, the data information of the surf time rule of gateway receiving terminal apparatus setting.It is described Surf time rule includes the period for allowing the period surfed the Internet every day within one week and not allowing to surf the Internet.The online Time rule further includes the MAC Address of a terminal device.The gateway receives surf time rule, and parses the online Time rule obtains the period for allowing the period surfed the Internet and not allowing to surf the Internet every day within one week, and obtains eventually The MAC Address of end equipment.
Surf time rule is converted to a character string by the gateway, and the character string is stored in the net Close equipment.According to the value of the character string, the surf time that the gateway allows is set;Wherein, the character string is at least wrapped Include N number of 16 system numbers;The N is expressed as being divided into N number of period for 24 hours one day;Each described 16 system number table It is shown as the date for allowing to surf the Internet in the corresponding period in Zhou Lizhong.The character string further includes the MAC Address of the terminal device. The character string further includes the device id of gateway.
A specific embodiment of the invention was set as 24 time points, N 24 for one day, and the character string includes at least 24 16 system numbers;Each described 16 system number binary system " x1x2x3x4 x5x6x7x8" indicate, wherein x1:It is silent Think 0;x2~ x8:If bit place value is 1, then it represents that the bit corresponding all calendar date selects the period to surf the Internet, if bit Value is 0, then it represents that the bit corresponding all calendar date does not select the period to surf the Internet.That is, x2Monday is indicated for 1 It selects the period to surf the Internet, indicates that Monday does not select the period to surf the Internet for 0; x3Indicate that Tuesday selects the time for 1 Section online, x3Indicate that Tuesday does not select the period to surf the Internet for 0;x4Indicate that Wednesday selects the period to surf the Internet for 1, x4 Indicate that Wednesday does not select the period to surf the Internet for 0; x5Position is 1 Thursday the period to be selected to surf the Internet, x5Week is indicated for 0 Four do not select the period to surf the Internet;x6Indicate that Friday selects the period to surf the Internet for 1, x6Indicate that Friday does not select for 0 Period online;x7Indicate that Saturday selects the period to surf the Internet for 1, x7Indicate that Saturday selects the period to surf the Internet for 0; x8Indicate that Sunday selects the period to surf the Internet for 1, x8Indicate that Sunday does not select the period to surf the Internet for 0.And so on, The time segment information surfed the Internet in 24 hours is set.
A specific embodiment of the invention, by taking the surf time segment information in one week set in Fig. 1 as an example, the online The character string of time rule conversion is following data format:
68:05:CA:35:FD:48,000E0E0020202022222222222A2828080808084848400101,00;
The character string is described in detail below."68:05:CA:35:FD:48 " indicate the MAC Address of equipment. “000E0E0020202022222222222A2828080808084848400101”
It indicates to select surf time segment information in one week.It was divided into 24 periods for 24 hours one day.Every two 16 system numbers with The corresponding relationship at time point is as shown in the table, and the first row indicates time point, and to 23 points since 0 point, the second row indicates corresponding and is somebody's turn to do Upper net state in one week time point:
As shown in Figure 1, Thursday, Saturday Friday have selected 1 point ~ 2 points this periods that can surf the Internet.It is carried out for 1 point in detail Describe in detail bright, this two 16 system numbers are indicated with binary system " xxxx xxxx ", and binary first default position is 0, are taken below 7 digits.Second indicates whether 1 point of this Monday at time point of corresponding Monday selects to surf the Internet, if x is not select 0 expression Monday 1 point of this time point online is selected, if x is to select 1 point of this time point online 1 expression Monday.And so on, it is according to the present invention Technical solution, Thursday, Friday, Saturday has selected at 1 point to surf the Internet, and not selecting Monday, two, three, day at 1 point can surf the Internet, because It is 0E that this 1 point of corresponding binary form, which is 0,000 1110,16 systems, therefore 1 point of 16 system 0E of correspondence, is indicated in this week The online of corresponding 1 point of setting selects state.The end 00 of the storing data indicates the ID number of equipment.
By the technical solution, by a plurality of time in the prior art, then data generate a storing data, and are deposited Storage, reduces data space, brings better experience to user.
A specific embodiment of the invention, the method also includes:The character string is reduced into interface data format, and Interface data after reduction is sent to a terminal device, for its display or modification.It is set as described above the surf time In technical solution, character string is converted by surf time rule and is stored.But as described in background technique, the prior art The page and APP data-interface in middle parental control function, surf time regular data are carried out with a fixed interface data Transmission.Therefore it needs for the character string to be reduced into interface data format, and the interface data after reduction is sent to one eventually End equipment, for its display or modification.For example, inquiring set time rule information in terminal device, gateway is needed The character string of storage is parsed, the character string is made to be reduced into interface data format, and is sent to the terminal device.
A specific embodiment of the invention includes a rule ID, the life of the rule ID in the interface data format On the basis of including Zhou Li at format, the one or several kinds on the basis of the period and on the basis of period and Zhou Li.Institute Stating includes a rule ID in interface data format.The rule ID is generated by gateway, and is encapsulated in the interface data format In.
A specific embodiment of the invention, format of the rule ID on the basis of Zhou Li use " xddwssee " form table Show, wherein x indicates that n is 0 expression on the basis of Zhou Li with binary one nm, and n is 1 expression on the basis of time point, and m indicates for 0 Allow to surf the Internet, m is that 1 expression is forbidden surfing the Internet;Dd indicates terminal device ID;W indicates all calendar dates, and being worth be 0 ~ 6,0 is Monday;
Ssee indicates starting hour and terminates hour, and ss minimum 00 is up to 23, ee minimum 01, is up to 24.
A specific embodiment of the invention, format of the rule ID on the basis of the period use " xddhhwww " form It indicates, wherein x indicates that n is 0 expression on the basis of Zhou Li with binary one nm, and n is 1 expression on the basis of time point, and m is 0 table Showing allows to surf the Internet, and m is that 1 expression is forbidden surfing the Internet;Dd indicates terminal device ID;Hh indicates several points, and being worth is 00 ~ 23;Www indicates week Calendar date, being worth is 0 ~ 127.
A specific embodiment of the invention, format of the rule ID on the basis of time point and Zhou Li use The form of " xddwwwfse ", wherein the 4th of the rule ID is 7 or 8;X indicates with binary one nm, n be 0 indicate with On the basis of Zhou Li, n is arbitrary value, and m is that 0 expression allows to surf the Internet, and m is that 1 expression is forbidden surfing the Internet;Dd indicates terminal device ID;www Indicate all calendar dates, being worth is 700 ~ 127;F is 00 ~ 9 section of expression, and s value is that 0 ~ 8, e value is 1 ~ 9;F is 1 10 ~ 19 points of expression Section, s value are that 0 ~ 8, e value is 1 ~ 9;F is 2 20 ~ 24 sections of expression, and s value is that 0 ~ 3, e value is 1 ~ 4;When f is 3 expression starting Between for some time point among 0 ~ 9 point, the end time is 10 ~ 19 points of some time points, and s value 0 ~ 9, e value is 0 ~ 9;F is 4 expressions Initial time is some time point among 10 ~ 19 points, is terminated as 20 ~ 24 points of some time points, s value is that 0 ~ 9, e value is 0 ~ 4;F is 5 indicate that initial times are some time point among 0 ~ 9 point, terminate as 20 ~ 24 points of some time points, s value is that 0 ~ 9, e value is 0 ~4。
According to the technical solution, by the way that the generation format of rule id is arranged, which is not a random digit, to online The inquiry of time rule information is brought convenience;When the modification of surf time Rule Information, can quickly be looked by the rule ID Corresponding terminal device ID is looked for, to rapidly search corresponding storing data in gateway, and then data are carried out more to it Newly, better experience effect is brought to user.
As shown in figure 3, one embodiment of the invention, a kind of gateway, including:
Surf time rule is converted to a character string, and stores the character string by generation module 30;
The surf time that the gateway allows is arranged according to the value of the character string in setup module 31;
Wherein, the character string includes at least N number of 16 system numbers;
The N is expressed as being divided into N number of period for 24 hours one day;
Each described 16 system number are expressed as the date for allowing to surf the Internet in the corresponding period in Zhou Lizhong.
In the generation module, the data information of the surf time rule of gateway receiving terminal apparatus setting.Institute Stating surf time rule includes the period for allowing the period surfed the Internet every day within one week and not allowing to surf the Internet.On described Net time rule further includes the MAC Address of a terminal device.The gateway receives surf time rule, and parses on described Net time rule obtains the period for allowing the period surfed the Internet and not allowing to surf the Internet every day within one week, and obtains The MAC Address of terminal device.Surf time rule is converted to a character string by the gateway, and the character string is deposited It is stored in the gateway.
In the setup module, be set according to the value of the character string surf time that the gateway allows;Wherein, The character string includes at least N number of 16 system numbers;The N is expressed as being divided into N number of period for 24 hours one day;It is described every One 16 system number is expressed as the date for allowing to surf the Internet in the corresponding period in Zhou Lizhong.The character string further includes the end The MAC Address of end equipment.The character string further includes the device id of gateway.A specific embodiment of the invention, by one day 24 time points, N 24 are set as, the character string includes at least 24 16 system numbers;Each described 16 system number With binary system " x1x2x3x4 x5x6x7x8" indicate, wherein x1:It is defaulted as 0;x2~ x8:If bit place value is 1, then it represents that the bit Position corresponding all calendar dates select the period to surf the Internet, if bit place value is 0, then it represents that the bit corresponding all calendar date does not have The period is selected to surf the Internet.
A specific embodiment of the invention, the gateway further include parsing module and rule ID module.The parsing The character string is reduced into interface data format by module, and the interface data after reduction is sent to a terminal device, with For its display or modification.The rule ID module includes a rule ID, the life of the rule ID in the interface data format On the basis of including Zhou Li at format, the one or several kinds on the basis of the period and on the basis of period and Zhou Li.Institute State format of the rule ID on the basis of Zhou Li is indicated using " xddwssee " form, wherein x indicates that n is 0 table with binary one nm Show on the basis of Zhou Li, n is 1 expression on the basis of time point, and m is that 0 expression allows to surf the Internet, and m indicates to forbid surfing the Internet for 1;Dd table Show terminal device ID;W indicates all calendar dates, and being worth be 0 ~ 6,0 is Monday;Ssee indicates starting hour and terminates hour, and ss is most Small is 00, is up to 23, ee minimum 01, is up to 24.
Format of the rule ID on the basis of the period is indicated using " xddhhwww " form, wherein x binary system 1nm indicates that n is indicated on the basis of Zhou Li for 0, and n is indicated on the basis of time point for 1, and m is that 0 expression allows to surf the Internet, and m is 1 expression Forbid surfing the Internet;Dd indicates terminal device ID;Hh indicates several points, and being worth is 00 ~ 23;Www indicates all calendar dates, and being worth is 0 ~ 127.
A specific embodiment of the invention, format of the rule ID on the basis of time point and Zhou Li use The form of " xddwwwfse ", wherein x indicates that n is 0 expression on the basis of Zhou Li, and n is 1 expression with time point with binary one nm On the basis of, m is that 0 expression allows to surf the Internet, and m is that 1 expression is forbidden surfing the Internet;Dd indicates terminal device ID;Www indicates all calendar dates, value It is 128 ~ 700;
F is 00 ~ 9 section of expression, and s value is that 0 ~ 8, e value is 1 ~ 9;F is 1 to indicate 10 ~ 19 sections, s value be 0 ~ 8, e value be 1 ~ 9;F is 2 20 ~ 24 sections of expression, and s value is that 0 ~ 3, e value is 1 ~ 4;F is that 3 expression initial times are some time among 0 ~ 9 point Point, end time are 10 ~ 19 points of some time points, and s value 0 ~ 9, e value is 0 ~ 9;F is that 4 expression initial times are among 10 ~ 19 points Some time point terminated as 20 ~ 24 points of some time points, and s value is that 0 ~ 9, e value is 0 ~ 4;F is that 5 expression initial times are 0 ~ 9 point Some intermediate time point terminated as 20 ~ 24 points of some time points, and s value is that 0 ~ 9, e value is 0 ~ 4.
According to the technical solution, reduce the memory space of data;Reduce the resource consumption of system;According to the rule of setting Then ID format is dynamically generated rule ID, reduces the quantity of rule ID, and the work belts such as inquiry and modification to rule ID are come very big Convenience.
In conclusion the present invention realizes the memory space for reducing data, it is dynamically generated rule ID, to rule ID The work such as inquiry and modification bring great convenience conveniently.
It should be noted that above-described embodiment can be freely combined as needed.The above is only of the invention preferred Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention Under, several improvements and modifications can also be made, these modifications and embellishments should also be considered as the scope of protection of the present invention.

Claims (10)

1. a kind of setting method of surf time, controls, which is characterized in that described for the surf time to gateway Method includes:
S1, surf time rule is converted to a character string;
S2, the character string is stored in gateway;
S3, be set according to the value of the character string surf time that the gateway allows;
Wherein, the character string includes at least N number of 16 system numbers;
The N is expressed as being divided into N number of period for 24 hours one day;
Each described 16 system number are expressed as the date for allowing to surf the Internet in the corresponding period in Zhou Lizhong.
2. the setting method of surf time as described in claim 1, which is characterized in that the surf time rule further includes one The MAC Address of terminal device;
The character string further includes the MAC Address of the terminal device.
3. the setting method of surf time as described in claim 1, which is characterized in that the N is 24, and the character string is at least Including 24 16 system numbers;
Each described 16 system number binary system " x1x2x3x4 x5x6x7x8" indicate, wherein
x1:It is defaulted as 0;
x2~ x8:If bit place value is 1, then it represents that the bit corresponding all calendar date selects the period to surf the Internet, if bit place value It is 0, then it represents that the bit corresponding all calendar date does not select the period to surf the Internet.
4. the setting method of surf time as described in claim 1, which is characterized in that the method also includes:By the word Symbol string is reduced into interface data format, and the interface data after reduction is sent to a terminal device, for its display or repairs Change.
5. the setting method of surf time as claimed in claim 4, which is characterized in that include one in the interface data format A rule ID, the generation format of the rule ID include on the basis of Zhou Li, on the basis of the period and with period and week One or several kinds on the basis of going through.
6. the setting method of surf time as claimed in claim 5, which is characterized in that the rule ID is on the basis of Zhou Li Format is indicated using " xddwssee " form, wherein
X indicates that n is 0 expression on the basis of Zhou Li with binary one nm, and n is 1 expression on the basis of time point, and m indicates permission for 0 Online, m are that 1 expression is forbidden surfing the Internet;
Dd indicates terminal device ID;
W indicates all calendar dates, and being worth be 0 ~ 6,0 is Monday;
Ssee indicates starting hour and terminates hour, and ss minimum 00 is up to 23, ee minimum 01, is up to 24.
7. the setting method of surf time as claimed in claim 5, which is characterized in that the rule ID is on the basis of the period Format using " xddhhwww " form indicate, wherein
X indicates that n is 0 expression on the basis of Zhou Li with binary one nm, and n is 1 expression on the basis of time point, and m indicates permission for 0 Online, m are that 1 expression is forbidden surfing the Internet;
Dd indicates terminal device ID;
Hh indicates several points, and being worth is 00 ~ 23;
Www indicates all calendar dates, and being worth is 0 ~ 127.
8. the setting method of surf time as claimed in claim 5, which is characterized in that the rule ID is with time point and Zhou Li On the basis of format using " xddwwwfse " form, wherein
The 4th of the rule ID is 7 or 8;
X indicates that n is arbitrary value with binary one nm, and m is that 0 expression allows to surf the Internet, and m is that 1 expression is forbidden surfing the Internet;
Dd indicates terminal device ID;
Www indicates all calendar dates, and being worth is 700 ~ 127;
F is 00 ~ 9 section of expression, and s value is that 0 ~ 8, e value is 1 ~ 9;
F is 1 10 ~ 19 sections of expression, and s value is that 0 ~ 8, e value is 1 ~ 9;
F is 2 20 ~ 24 sections of expression, and s value is that 0 ~ 3, e value is 1 ~ 4;
It is some time point among 0 ~ 9 point that f, which is 3 expression initial times, and the end time is 10 ~ 19 points of some time points, s value 0 ~ 9, e values are 0 ~ 9;
F is that 4 expression initial times are some time point among 10 ~ 19 points, is terminated as 20 ~ 24 points of some time points, s value is 0 ~ 9, e values are 0 ~ 4;
F is that 5 expression initial times are some time point among 0 ~ 9 point, is terminated as 20 ~ 24 points of some time points, s value is 0 ~ 9, e values are 0 ~ 4.
9. a kind of gateway, which is characterized in that including:
Surf time rule is converted to a character string, and stores the character string by generation module;
The surf time that the gateway allows is arranged according to the value of the character string in setup module;
Wherein, the character string includes at least N number of 16 system numbers;
The N is expressed as being divided into N number of period for 24 hours one day;
Each described 16 system number are expressed as the date for allowing to surf the Internet in the corresponding period in Zhou Lizhong.
10. gateway as claimed in claim 9, which is characterized in that the gateway further includes:
The character string is reduced into interface data format, and the interface data after reduction is sent to one eventually by parsing module End equipment, for its display or modification;
Rule ID module includes a rule ID in the interface data format, and the generation format of the rule ID includes Zhou Li On the basis of, the one or several kinds on the basis of the period and on the basis of period and Zhou Li.
CN201810449869.2A 2018-05-11 2018-05-11 A kind of setting method and gateway of surf time Pending CN108833136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810449869.2A CN108833136A (en) 2018-05-11 2018-05-11 A kind of setting method and gateway of surf time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810449869.2A CN108833136A (en) 2018-05-11 2018-05-11 A kind of setting method and gateway of surf time

Publications (1)

Publication Number Publication Date
CN108833136A true CN108833136A (en) 2018-11-16

Family

ID=64147902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810449869.2A Pending CN108833136A (en) 2018-05-11 2018-05-11 A kind of setting method and gateway of surf time

Country Status (1)

Country Link
CN (1) CN108833136A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102916826A (en) * 2011-08-01 2013-02-06 中兴通讯股份有限公司 Method and device for controlling network access
CN104883720A (en) * 2015-05-29 2015-09-02 北京奇虎科技有限公司 Object network access method, object network access guiding and control methods, and corresponding terminals
CN105068790A (en) * 2015-07-13 2015-11-18 广东安居宝智能控制系统有限公司 Arbitrary time data recording method and system
US9515837B1 (en) * 2014-03-05 2016-12-06 Sprint Communications Company L.P. Policy implementation during charging server interruption
CN107070580A (en) * 2017-05-16 2017-08-18 上海斐讯数据通信技术有限公司 A kind of detection method and device of time conflict

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102916826A (en) * 2011-08-01 2013-02-06 中兴通讯股份有限公司 Method and device for controlling network access
US9515837B1 (en) * 2014-03-05 2016-12-06 Sprint Communications Company L.P. Policy implementation during charging server interruption
CN104883720A (en) * 2015-05-29 2015-09-02 北京奇虎科技有限公司 Object network access method, object network access guiding and control methods, and corresponding terminals
CN105068790A (en) * 2015-07-13 2015-11-18 广东安居宝智能控制系统有限公司 Arbitrary time data recording method and system
CN107070580A (en) * 2017-05-16 2017-08-18 上海斐讯数据通信技术有限公司 A kind of detection method and device of time conflict

Similar Documents

Publication Publication Date Title
Cancho et al. Least effort and the origins of scaling in human language
Acemoglu Introduction to economic growth
CN102098389A (en) Method and device for automatically reminding schedule as well as terminal equipment
CN101651870A (en) Mobile phone realizing function menu dynamic sequencing, system and method
US20080301556A1 (en) Method and apparatus for displaying operational information about an electronic device
CN102231775A (en) Message reminding method and system based on communication terminal
US9614886B2 (en) Method for processing information and server
CN101465953A (en) Method for displaying picture and system for browsing digital television picture as well as television set-top box
CN103365671A (en) Method for displaying application icons at time interval and mobile terminal
GB2349314B (en) Optical network unit
CN106844065A (en) message display method, device and intelligent terminal
US20150106398A1 (en) Jewelry piece with graphical display
CN106658689A (en) Node and control method thereof, gateway and control method thereof
CN106708568A (en) Method and apparatus for paged loading of client contents
CN102594859B (en) A kind of rendering method of business datum, terminal, server and system
CN108833136A (en) A kind of setting method and gateway of surf time
WO2016184149A1 (en) Display method and device, display control method and device, and equipment
Gribkoff Applications of deterministic finite automata
CN104753964B (en) Networking products methods of exhibiting, apparatus and system
CN113949735B (en) Message pushing method and device, electronic equipment and storage medium
CN105530362A (en) Setting method, device and system of terminal timing event
CN108446284A (en) The information processing method and system of wechat public platform based on structuring
CN106658180A (en) Method and apparatus for determining preference degrees of user for channels
CN110851711B (en) Method and system for intelligently pushing content according to month age of children
US20090276066A1 (en) Interleaving continuity related audio fragments between segments of an audio file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181116

WD01 Invention patent application deemed withdrawn after publication