CN109947469A - Address division methods, device and computer readable storage medium - Google Patents

Address division methods, device and computer readable storage medium Download PDF

Info

Publication number
CN109947469A
CN109947469A CN201910179399.7A CN201910179399A CN109947469A CN 109947469 A CN109947469 A CN 109947469A CN 201910179399 A CN201910179399 A CN 201910179399A CN 109947469 A CN109947469 A CN 109947469A
Authority
CN
China
Prior art keywords
address
destination address
block
address block
destination
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.)
Granted
Application number
CN201910179399.7A
Other languages
Chinese (zh)
Other versions
CN109947469B (en
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.)
Guangzhou Anga Interconnection Technology Co Ltd
Original Assignee
Guangzhou Anga Interconnection 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 Guangzhou Anga Interconnection Technology Co Ltd filed Critical Guangzhou Anga Interconnection Technology Co Ltd
Priority to CN201910179399.7A priority Critical patent/CN109947469B/en
Publication of CN109947469A publication Critical patent/CN109947469A/en
Application granted granted Critical
Publication of CN109947469B publication Critical patent/CN109947469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of address division methods, device and computer readable storage medium, is related to technical field of data processing.The address division methods include: by obtaining destination address from address list, judge whether destination address and pre-set address block meet preset condition again, obtain judging result, wherein, address block is for storing destination address, and address block is stored in address block list, finally, destination address is stored into destination address block according to judging result, destination address block is corresponding with judging result.By judging whether destination address and pre-set address block meet preset condition, destination address is stored into corresponding destination address block further according to judging result, realize the division for address, terminal is avoided to be read out unwanted address when reading address block, reduce terminal and read unwanted address the time it takes, improves efficiency when terminal reads address.

Description

Address division methods, device and computer readable storage medium
Technical field
The present invention relates to technical field of data processing, in particular to a kind of address division methods, device and computer Readable storage medium storing program for executing.
Background technique
With the continuous development of technology of Internet of things, by the various data acquisition building information system in production process Through becoming a kind of trend, wherein read PLC (Programmable Logic Controller, programmable logic by terminal Controller) in address have become indispensable link, therefore, the address in PLC is quickly and effectively read by terminal Also become increasingly to weigh.
In the related technology, the available initial address of terminal, is ranked up initial address, then after available sequence Address, and obtain preset maximum and length can be read, uniform piecemeal is carried out to the address after sequence according to the length, obtains piecemeal Address afterwards, the address after piecemeal includes multiple address blocks.
But in the related technology, when reading discontinuous address, it can read unwanted address, terminal be easy to cause to read When taking address, the too low problem of reading efficiency.
Summary of the invention
It is an object of the present invention to aiming at the shortcomings in the prior art, a kind of address partitioning method and device is provided, so as to It solves in the prior art, when reading discontinuous address, to can read unwanted address, when terminal being be easy to cause to read address, The too low problem of reading efficiency.
To achieve the above object, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the invention provides a kind of address division methods, which comprises
Destination address is obtained from address list;
Judge whether the destination address and at least one address block meet preset condition, obtains judging result, describedly For storing the destination address, the address block is stored in address block list location block;
The destination address is stored into destination address block according to the judging result, the destination address block with it is described Judging result is corresponding.
Further, judge whether the destination address and at least one address block meet preset condition, obtain judgement knot Fruit, comprising:
Judge in the address block list whether to include at least one described address block, obtains the first judging result;
It is described to be stored the destination address into destination address block according to the judging result, comprising:
If first judging result indicates that in the address block list do not include at least one described address block, create The destination address block;
The destination address is stored into the destination address block.
Further, judge whether the destination address and at least one address block meet preset condition, obtain judgement knot Fruit, further includes:
If first judging result indicates in the address block list to include at least one described address block, from least The mark value of the first address block is obtained in one address block, first address block is block label in the address block list It is worth maximum address block;
Judge the destination address whether be less than first address block mark value and maximum length and value, obtain Two judging results, the mark value of first address block are the smallest address in first address block;
It is described to be stored the destination address into destination address block according to the judging result, comprising:
If second judging result indicates mark value of the destination address not less than first address block and maximum Length and value, then create the destination address block;
The destination address is stored into the destination address block.
Further, described to judge whether the destination address and address block meet preset condition, judging result is obtained, also Include:
If second judging result indicate the destination address be less than first address block mark value with most greatly enhance Degree and value, then judge whether the destination address is greater than maximum address and spacing value in first address block and value, Obtain third judging result;
It is described to be stored the destination address into destination address block according to the judging result, comprising:
If the third judging result indicate the destination address no more than maximum address in first address block with Spacing value and value, then create the destination address block, the destination address stored into the destination address block;
If the third judging result indicate the destination address be greater than in first address block maximum address and Every value and value, then using first address block as the destination address block, the destination address is stored to the target In address block.
Further, the method also includes:
If creating the destination address block, using the destination address as the mark value of the destination address block.
It is further, described that destination address is obtained from address list, comprising:
Obtain initial address;
The initial address is ranked up, the address list after being sorted, the address list after the sequence includes Multiple addresses;
Obtain the destination address of predeterminated position.
Further, the destination address for obtaining predeterminated position, comprising:
Whether the address list after judging the sequence includes the address;
If the address list after the sequence includes the address, the destination address of predeterminated position will acquire.
Further, it is described the destination address is stored into destination address block according to the judging result after, The method also includes:
The destination address is deleted from the address list after the sequence.
Second aspect, the embodiment of the invention also provides a kind of address dividing device, described device includes:
Module is obtained, for obtaining destination address from address list;
Judgment module is sentenced for judging whether the destination address and at least one address block meet preset condition Break as a result, the address block is for storing the destination address, the address block is stored in address block list;
Memory module, for the destination address to be stored into destination address block according to the judging result, the mesh It is corresponding with the judging result to mark address block.
Further, the judgment module is specifically used for judging in the address block list whether including at least one institute Address block is stated, the first judging result is obtained;
The memory module, if indicating that in the address block list do not include at least specifically for first judging result One address block then creates the destination address block;The destination address is stored into the destination address block.
Further, the judgment module, if indicating the address block list also particularly useful for first judging result In include at least one described address block, then the mark value of the first address block is obtained from address block described at least one, it is described First address block is the maximum address block of block mark value in the address block list;It is described to judge whether the destination address is less than The mark value of first address block and maximum length and value, obtain the second judging result, the mark value of first address block is The smallest address in first address block;
The memory module, if indicating the destination address not less than described the also particularly useful for second judging result The mark value of one address block and maximum length and value, then create the destination address block;The destination address is stored to institute It states in destination address block.
Further, the judgment module, if indicating that the destination address is small also particularly useful for second judging result In first address block mark value and maximum length and value, then judge whether the destination address is greater than first ground In the block of location maximum address and spacing value and value, obtain third judging result;
The memory module, if indicating the destination address no more than described the also particularly useful for the third judging result In one address block maximum address and spacing value and value, then create the destination address block, by the destination address store to In the destination address block;If it is maximum in first address block that the third judging result indicates that the destination address is greater than Address and spacing value and value, then using first address block as the destination address block, by the destination address store to In the destination address block.
Further, described device further includes determining module, the determining module, if for creating the destination address Block, using the destination address as the mark value of the destination address block.
Further, the acquisition module is specifically used for obtaining initial address;The initial address is ranked up, is obtained Address list after to sequence, the address list after the sequence include multiple addresses;With obtaining the target of predeterminated position Location.
Further, the acquisition module, also particularly useful for judging whether the address list after the sequence includes described Address;If the address list after the sequence includes the address, the destination address of predeterminated position will acquire.
Further, described device further includes removing module, the removing module, for from the address column after the sequence The destination address is deleted in table.
The third aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, the computer program is when being executed by processor the step of above-mentioned first aspect the method.
The beneficial effects of the present invention are: the embodiment of the present invention provides a kind of address partitioning method and device, by from address Destination address is obtained in list, then judges whether destination address and pre-set address block meet preset condition, is judged As a result, wherein for storing destination address, address block is stored in address block list address block, finally, will according to judging result Destination address is stored into destination address block, and destination address block is corresponding with judging result.By judge destination address and in advance Whether the address block of setting meets preset condition, stores destination address to corresponding destination address block further according to judging result In, the division for address is realized, terminal is avoided and unwanted address is read out when reading address block, is reduced Terminal reads unwanted address the time it takes, improves efficiency when terminal reads address.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the flow diagram for the address division methods that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides address division methods flow diagram;
Fig. 3 is the structural schematic diagram for the address dividing device that one embodiment of the invention provides;
Fig. 4 be another embodiment of the present invention provides address dividing device structural schematic diagram;
Fig. 5 is the structural schematic diagram for the address dividing device that further embodiment of this invention provides;
Fig. 6 is the structural schematic diagram for the address dividing device that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.
Fig. 1 is the flow diagram for the address division methods that one embodiment of the invention provides;As shown in Figure 1, this method packet It includes:
S101, destination address is obtained from address list.
Address efficiency is read in order to improve terminal, terminal needs to divide address.Therefore, terminal is carried out to address When division, can first obtain include multiple addresses address list, then gradually to each of address list address carry out It divides, therefore, terminal needs to obtain destination address, i.e., the address currently divided.
Specifically, the available initial address of terminal, and according to the corresponding parameter value of the initial address, to initial address into Row sequence, the address list after being sorted, using the address of predeterminated position in the address list after sequence as destination address, from And obtain destination address.
It should be noted that the address list after above-mentioned sequence is address list.
S102, judge whether destination address and pre-set address block meet preset condition, obtain judging result.
Wherein, for storing destination address, address block is stored in address block list address block
After terminal obtains destination address, needs first to judge whether destination address and address block meet preset condition, obtain Corresponding judging result, so that in subsequent steps, terminal can use not destination address according to different judging results Same mode carries out division storage.
Specifically, whether it includes address block that terminal may determine that in address block list, if not including ground in address block list Location block then creates destination address block, if including address block in address block list, according to the first address in address block list Block, judges whether destination address meets preset condition, obtains judging result.
S103, destination address is stored into destination address block according to judging result.
Wherein, destination address block is corresponding with judging result, and destination address block can be the address block created or address The first address block in block list.
Specifically, if not including address block in judging result instruction address block list, destination address is stored in creation In destination address block, then terminal stores destination address into destination address block, if wrapping in judging result instruction address block list Address block is included, destination address is stored in the first address block in address block list, then terminal can make the first address block For destination address block, destination address is stored into destination address block.
In practical applications, terminal can store destination address into destination address block according to judging result, so as to To realize the classifying rationally to destination address,
It should be noted that the embodiment of the present invention is illustrated by taking an address as an example, it and in practical applications, can Divided to multiple addresses using aforesaid way, the embodiment of the present invention for the address of division number without specifically limiting It is fixed.
Further, terminal can successively divide each of address list address, then available division Address block afterwards.
In conclusion address division methods provided in an embodiment of the present invention, by obtaining destination address from address list, Judge whether destination address and pre-set address block meet preset condition again, obtains judging result, wherein address block is used for Destination address is stored, address block is stored in address block list, finally, storing destination address to target according to judging result In the block of location, destination address block is corresponding with judging result.By judging whether destination address and pre-set address block meet Preset condition stores destination address into corresponding destination address block further according to judging result, realizes drawing for address Point, it avoids terminal and unwanted address is read out when reading address block, reduce terminal and read unwantedly Location the time it takes improves efficiency when terminal reads address.
Fig. 2 be another embodiment of the present invention provides address division methods flow diagram;As shown in Fig. 2, this method Include:
S201, destination address is obtained from address list.
In order to improve terminal read address efficiency, terminal when being divided to the address in address list, need first from Destination address is obtained in address list, so that in subsequent steps, terminal can judge the destination address, and according to Judging result stores destination address.
Optionally, the available initial address of terminal, and initial address is ranked up, the address column after being sorted Table finally obtains the destination address of predeterminated position, wherein the address list after sequence includes multiple addresses.
Specifically, terminal obtains initial address, and according to the corresponding parameter value of the initial address, to initial address carry out from Small to sort to big, the address list after being sorted obtains the address of predeterminated position, and using the address of predeterminated position as target Address.
In addition, address, that is, destination address of predeterminated position, it can be in the address list after current sequence, address be corresponding The smallest address of parameter value.
It should be noted that being obtained to determine whether the address in the address list after sequence has divided completely During the destination address of predeterminated position, terminal may determine that whether the address list after sequence includes destination address, if row Address list after sequence includes address, then will acquire the destination address of predeterminated position.
S202, judge in address block list whether to include at least one address block, obtain the first judging result.
After obtaining destination address in address list, whether terminal needs in disconnected address block list to include at least one terminal A address block obtains the first judging result, so that in subsequent steps, terminal can be according to first judging result to target Address is divided.
Wherein, for storing destination address, address block is stored in address block list address block.
In embodiments of the present invention, if including at least one address block in the instruction address block list of the first judging result, S203 is executed, executes S207 if not including at least one address block in the instruction address block list of the first judging result.
If S203, the first judging result indicate to include at least one address block in address block list, from least one ground The mark value of the first address block is obtained in the block of location.
Terminal obtains after judging the first judging result, if including at least one in the instruction address block list of the first judging result When a address block, then the mark value of available first address block of terminal, so that in subsequent steps, terminal can be according to The mark value of one address block divides destination address block.
Wherein, the first address block is the maximum address block of block mark value in address block list.
Specifically, if including at least one address block in the instruction address block list of the first judging result, terminal is available In address block list, the maximum address block of block mark value, and using the maximum address block of block mark value as the first address block, it obtains Take the corresponding mark value of the first address block.
It should be noted that may include multiple addresses in the first address block, the mark value of the first address block can be should The smallest address of the corresponding parameter value in address in first address block.
S204, judge destination address whether less than the first address block mark value and maximum length and value, obtain second Judging result.
In terminal after the mark value for obtaining the first address block at least one address block, terminal is needed according to the first The mark value of location block judges destination address again, so that in subsequent steps, terminal can be tied according to the second judgement Fruit divides destination address.
Wherein, the mark value of the first address block be the first address block in the smallest address, maximum length be it is pre-set, Corresponding maximum length can be preset for the PLC read.
Specifically, the available maximum length of terminal, calculate the first address block mark value and maximum length and value, sentence Disconnected destination address whether less than the first address block mark value and maximum length and value, obtain the second judging result.
Certainly, if the second judging result indicate destination address less than the first address block mark value and maximum length and Value, then execute S205, if the second judging result instruction destination address is not less than the mark value and maximum length of first address block And value, then execute S207.
If S205, the second judging result indicate destination address less than the first address block mark value and maximum length and Value then judges whether destination address is greater than maximum address and spacing value in the first address block and value, obtains third judgement and tie Fruit.
Wherein, spacing value is pre-set.Spacing value can be configured according to for the demand that address divides, can also To be configured by staff's experience, can also be configured by other means, the embodiment of the present invention to this without Concrete restriction.
After terminal obtains the second judging result, if the second judging result indicates destination address less than the first address block Mark value and maximum length and value, then terminal needs to judge destination address again, obtain third judging result, so as to In subsequent steps, terminal can divide destination address according to third judging result.
In addition, if the second judging result indicate destination address less than the first address block mark value and maximum length and Value, then illustrate the address can store in range in the first address block, judged again destination address, may be implemented pair In the accurate division of destination address, so as to reduce reading of the terminal for unwanted address.
Specifically, maximum address in available first address block of terminal obtains preset spacing value, calculates the first ground In the block of location maximum address and spacing value and value, judge destination address whether be greater than in the first address block maximum address and Every value and value, obtain third judging result.
It should be noted that if third judging result instruction destination address no more than maximum address in the first address block with Spacing value and value, then execute S206, if third judging result instruction destination address be greater than the first address block in maximum address With spacing value and value, then execute S207.
If S206, third judging result indicate destination address no more than maximum address in the first address block and spacing value And value stores destination address into destination address block then using the first address block as destination address block.
After terminal obtains third judging result, if third judging result instruction destination address is not more than the first address block In maximum address and spacing value and value, illustrate that destination address meets the condition of the first address block of deposit, therefore, can be by the One address block stores destination address into destination address block as destination address block.
In practical applications, if third judging result instruction destination address no more than maximum address in the first address block with Spacing value and value, then illustrate being spaced within the scope of preset interval value for maximum address in destination address and the first address block, Destination address can then be stored into the first address block, be that is to say, the interval between neighbor address in the first address block is little In spacing value, when terminal reads the address block, it is possible to reduce the reading for unwanted address.
S207, destination address is stored into the destination address block of creation.
It is corresponding to obtain multiple judging results since terminal has carried out multiple judgement, when the first judging result indicates ground When not including at least one address block in the block list of location, when the second judging result instruction destination address is not less than the first address block Mark value and maximum length and value or, if when third judging result instruction destination address be greater than it is maximum in the first address block Address and spacing value and when value, terminal can create destination address block, and destination address is stored to the target of creation In the block of location.
Optionally, if not including at least one address block in the instruction address block list of the first judging result, target is created Address block stores destination address into destination address block.
Wherein, if not including at least one address block in the instruction address block list of the first judging result, illustrate to need to create Destination address block, i.e. first address block in creation address block list are built, destination address is stored into destination address block, then will Destination address is divided into the address block i.e. destination address block of creation.
Optionally, if the second judging result instruction destination address not less than first address block mark value and maximum length And value, then destination address block is created, destination address is stored into destination address block.
Optionally, if third judging result instruction destination address is greater than maximum address and spacing value in the first address block And value, then destination address block is created, destination address is stored into destination address block.
It should be noted that if mark value and maximum of the second judging result instruction destination address not less than the first address block Length and value, or, if third judging result instruction destination address is greater than maximum address and spacing value in the first address block And value, destination address block is created, and destination address is stored into the process into destination address block, is created with according to the first judging result Destination address block is built, destination address stores to the process into destination address block is similar, and details are not described herein.
If S208, creation destination address block, using destination address as the mark value of destination address block.
After terminal stores destination address in the destination address block to creation, terminal can be using destination address as mesh The mark value of address block is marked, so that the mark of the available destination address block of terminal, consequently facilitating dividing the address column after sequence Other addresses in table.
In addition, not having address in the destination address block of creation, destination address is stored into the destination address block of creation it Afterwards, destination address is the first address in destination address block, then terminal can be using destination address as the mark of destination address block Note value.
S209, the delete target address from the address list after sequence.
In terminal using the first address block as destination address block, after destination address is stored into destination address block, or If person creation destination address block, using destination address as the mark value of destination address block after, after terminal can delete sequence Address list in delete target address, the address list after currently being sorted.
It should be noted that the embodiment of the present invention is illustrated by taking an address as an example, the embodiment of the present invention can also be right Each of address list after sequence address is divided, and therefore, can be recycled and be executed S201 to S209, until completion pair Each of address list after sequence address is divided.
In conclusion address division methods provided in an embodiment of the present invention, by obtaining destination address from address list, Judge whether destination address and pre-set address block meet preset condition again, obtains judging result, wherein address block is used for Destination address is stored, address block is stored in address block list, finally, storing destination address to target according to judging result In the block of location, destination address block is corresponding with judging result.By judging whether destination address and pre-set address block meet Preset condition stores destination address into corresponding destination address block further according to judging result, realizes drawing for address Point, it avoids terminal and unwanted address is read out when reading address block, reduce terminal and read unwantedly Location the time it takes improves efficiency when terminal reads address.
Fig. 3 is the structural schematic diagram for the address dividing device that one embodiment of the invention provides, as shown in figure 3, address divides Device includes:
Module 301 is obtained, for obtaining destination address from address list;
Judgment module 302 is judged for judging whether destination address and at least one address block meet preset condition As a result, address block is for storing destination address, address block is stored in address block list;
Memory module 303, for destination address to be stored into destination address block according to judging result, destination address block with Judging result is corresponding.
Optionally, whether judgment module 302 are specifically used for judging in address block list including at least one address block, obtain To the first judging result;
Memory module 303, if specifically for not including at least one address in the instruction address block list of the first judging result Block then creates destination address block;Destination address is stored into destination address block.
Optionally, judgment module 302, if also particularly useful for including at least one in the instruction address block list of the first judging result A address block, then obtain the mark value of the first address block from least one address block, and the first address block is in address block list The maximum address block of block mark value;Judge destination address whether less than the first address block mark value and maximum length and value, The second judging result is obtained, the mark value of the first address block is the smallest address in the first address block;
Memory module 303, if being not less than the mark of the first address block also particularly useful for the second judging result instruction destination address Note value and maximum length and value, then create destination address block;Destination address is stored into destination address block.
Optionally, judgment module 302, if also particularly useful for the second judging result instruction destination address less than the first address block Mark value and maximum length and value, then judge whether destination address is greater than maximum address and spacing value in the first address block And value, obtain third judging result;
Memory module 303, if being not more than in the first address block most also particularly useful for third judging result instruction destination address Big address and spacing value and value, then create destination address block, destination address stored into destination address block;If third is sentenced Disconnected result instruction destination address is greater than maximum address and spacing value in the first address block and value, then using the first address block as Destination address block stores destination address into destination address block.
Optionally, as shown in figure 4, device further includes determining module 304, determining module 304, if for creating destination address Block, using destination address as the mark value of destination address block.
Optionally, module 301 is obtained, is specifically used for obtaining initial address;Initial address is ranked up, after obtaining sequence Address list, the address list after sequence includes multiple addresses;Obtain the destination address of predeterminated position.
Optionally, obtain module 301, also particularly useful for judge sort after address list whether include address;If sequence Address list afterwards includes address, then will acquire the destination address of predeterminated position.
Optionally, as shown in figure 5, device further includes removing module 305, removing module 305, for from the address after sequence Delete target address in list.
The method that above-mentioned apparatus is used to execute previous embodiment offer, it is similar that the realization principle and technical effect are similar, herein not It repeats again.
The above module can be arranged to implement one or more integrated circuits of above method, such as: one Or multiple specific integrated circuits (Application Specific Integrated Circuit, abbreviation ASIC), or, one Or multi-microprocessor (digital singnal processor, abbreviation DSP), or, one or more field programmable gate Array (Field Programmable Gate Array, abbreviation FPGA) etc..For another example, when some above module passes through processing elements When the form of part scheduler program code is realized, which can be general processor, such as central processing unit (Central Processing Unit, abbreviation CPU) or it is other can be with the processor of caller code.For another example, these modules can integrate Together, it is realized in the form of system on chip (system-on-a-chip, abbreviation SOC).
Fig. 6 is the structural schematic diagram for the address dividing device that one embodiment of the invention provides, which can integrate in end The chip of end equipment or terminal device, the terminal can be the calculating equipment for having data processing function.
The device includes: processor 601, memory 602.
Memory 602 is for storing program, the program that processor 601 calls memory 602 to store, to execute the above method Embodiment.Specific implementation is similar with technical effect, and which is not described herein again.
Optionally, the present invention also provides a kind of computer readable storage medium, including program, which holds by processor For executing above method embodiment when row.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this hair The part steps of bright each embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviation: ROM), random access memory (English: Random Access Memory, letter Claim: RAM), the various media that can store program code such as magnetic or disk.

Claims (10)

1. a kind of address division methods, which is characterized in that the described method includes:
Destination address is obtained from address list;
Judge whether the destination address and at least one address block meet preset condition, obtains judging result, the address block For storing the destination address, the address block is stored in address block list;
The destination address is stored into destination address block according to the judging result, the destination address block and the judgement As a result corresponding.
2. the method as described in claim 1, which is characterized in that judge whether the destination address and at least one address block are full Sufficient preset condition, obtains judging result, comprising:
Judge in the address block list whether to include at least one described address block, obtains the first judging result;
It is described to be stored the destination address into destination address block according to the judging result, comprising:
If first judging result indicates that in the address block list do not include at least one described address block, described in creation Destination address block;
The destination address is stored into the destination address block.
3. method according to claim 2, which is characterized in that judge whether the destination address and at least one address block are full Sufficient preset condition, obtains judging result, further includes:
If first judging result indicates in the address block list to include at least one described address block, from least one Obtain the mark value of the first address block in the address block, first address block is that block mark value is most in the address block list Big address block;
Judge the destination address whether be less than first address block mark value and maximum length and value, obtain second and sentence Break as a result, the mark value of first address block is the smallest address in first address block;
It is described to be stored the destination address into destination address block according to the judging result, comprising:
If second judging result indicates that the destination address is not less than the mark value and maximum length of first address block And value, then create the destination address block;
The destination address is stored into the destination address block.
4. method as claimed in claim 3, which is characterized in that described to judge whether the destination address and address block meet pre- If condition obtains judging result, further includes:
If second judging result indicates that the destination address is less than the mark value and maximum length of first address block And value, then judge whether the destination address is greater than maximum address and spacing value in first address block and value, obtains Third judging result;
It is described to be stored the destination address into destination address block according to the judging result, comprising:
If the third judging result indicates the destination address no more than maximum address in first address block and interval Be worth and value, then create the destination address block, the destination address stored into the destination address block;
If the third judging result indicates that the destination address is greater than maximum address and spacing value in first address block And value, then using first address block as the destination address block, the destination address is stored to the destination address In block.
5. such as the described in any item methods of claim 2 to 4, which is characterized in that the method also includes:
If creating the destination address block, using the destination address as the mark value of the destination address block.
6. such as the described in any item methods of Claims 1-4, which is characterized in that it is described that destination address is obtained from address list, Include:
Obtain initial address;
The initial address is ranked up, the address list after being sorted, the address list after the sequence includes multiple Address;
Obtain the destination address of predeterminated position.
7. method as claimed in claim 6, which is characterized in that the destination address for obtaining predeterminated position, comprising:
Whether the address list after judging the sequence includes the address;
If the address list after the sequence includes the address, the destination address of predeterminated position will acquire.
8. method as claimed in claim 6, which is characterized in that deposited the destination address according to the judging result described After storage is into destination address block, the method also includes:
The destination address is deleted from the address list after the sequence.
9. a kind of address dividing device, which is characterized in that described device includes:
Module is obtained, for obtaining destination address from address list;
Judgment module obtains judgement knot for judging whether the destination address and at least one address block meet preset condition Fruit, for storing the destination address, the address block is stored in address block list the address block;
Memory module, for the destination address to be stored into destination address block according to the judging result, the target Location block is corresponding with the judging result.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of any one of claims 1 to 8 the method is realized when being executed by processor.
CN201910179399.7A 2019-03-08 2019-03-08 Address division method, device and computer readable storage medium Active CN109947469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910179399.7A CN109947469B (en) 2019-03-08 2019-03-08 Address division method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910179399.7A CN109947469B (en) 2019-03-08 2019-03-08 Address division method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109947469A true CN109947469A (en) 2019-06-28
CN109947469B CN109947469B (en) 2021-09-17

Family

ID=67009416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910179399.7A Active CN109947469B (en) 2019-03-08 2019-03-08 Address division method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109947469B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120317379A1 (en) * 2011-06-08 2012-12-13 Microsoft Corporation Storage architecture for backup application
CN103722893A (en) * 2013-12-23 2014-04-16 珠海天威技术开发有限公司 Consumable chip, working method of consumable chip and consumable container
CN104253748A (en) * 2014-09-24 2014-12-31 大唐移动通信设备有限公司 Routing method based on distributed architecture and routing system based on distributed architecture
CN104503707A (en) * 2014-12-24 2015-04-08 华为技术有限公司 Method and device for reading data
CN106455132A (en) * 2016-09-28 2017-02-22 广东欧珀移动通信有限公司 Method and apparatus for controlling multiple WIFI modules, and terminal device
CN106572461A (en) * 2016-10-11 2017-04-19 乐视控股(北京)有限公司 Data transmission control method and related device
CN107102951A (en) * 2016-02-19 2017-08-29 群联电子股份有限公司 Storage management method, memorizer control circuit unit and memorizer memory devices
CN107273053A (en) * 2017-06-22 2017-10-20 郑州云海信息技术有限公司 A kind of method and apparatus of digital independent
CN109218458A (en) * 2017-07-07 2019-01-15 中兴通讯股份有限公司 Wiring method, equipment and the computer readable storage medium of MAC Address
CN109426517A (en) * 2017-08-30 2019-03-05 比亚迪股份有限公司 Micro-control unit and its control method and control device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120317379A1 (en) * 2011-06-08 2012-12-13 Microsoft Corporation Storage architecture for backup application
CN103722893A (en) * 2013-12-23 2014-04-16 珠海天威技术开发有限公司 Consumable chip, working method of consumable chip and consumable container
CN104253748A (en) * 2014-09-24 2014-12-31 大唐移动通信设备有限公司 Routing method based on distributed architecture and routing system based on distributed architecture
CN104503707A (en) * 2014-12-24 2015-04-08 华为技术有限公司 Method and device for reading data
CN107102951A (en) * 2016-02-19 2017-08-29 群联电子股份有限公司 Storage management method, memorizer control circuit unit and memorizer memory devices
CN106455132A (en) * 2016-09-28 2017-02-22 广东欧珀移动通信有限公司 Method and apparatus for controlling multiple WIFI modules, and terminal device
CN106572461A (en) * 2016-10-11 2017-04-19 乐视控股(北京)有限公司 Data transmission control method and related device
CN107273053A (en) * 2017-06-22 2017-10-20 郑州云海信息技术有限公司 A kind of method and apparatus of digital independent
CN109218458A (en) * 2017-07-07 2019-01-15 中兴通讯股份有限公司 Wiring method, equipment and the computer readable storage medium of MAC Address
CN109426517A (en) * 2017-08-30 2019-03-05 比亚迪股份有限公司 Micro-control unit and its control method and control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
铂尔曼: "《网络互联 网桥;路由器;交换机和互联协议 英文版第2版》", 31 January 2002 *

Also Published As

Publication number Publication date
CN109947469B (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN105677755B (en) A kind of method and device handling diagram data
CN106815254A (en) A kind of data processing method and device
CN111984400A (en) Memory allocation method and device of neural network
CN109710542B (en) Full N-way tree construction method and device
CN106372977B (en) A kind of processing method and equipment of virtual account
CN110389822A (en) The node scheduling method, apparatus and server of execution task
CN105488176A (en) Data processing method and device
CN111651137A (en) Sorting method and device, electronic device and computer equipment
CN106649385B (en) Data reordering method and device based on HBase database
CN109800074A (en) Task data concurrently executes method, apparatus and electronic equipment
CN109379384A (en) Wireless network secure partition method, device and electronic equipment
CN109522282A (en) Picture management method, device, computer installation and storage medium
CN113377998A (en) Data loading method and device, electronic equipment and storage medium
CN105095382B (en) Sample distribution formula cluster calculation method and device
CN105589683B (en) Sample extraction method and device
CN109947469A (en) Address division methods, device and computer readable storage medium
CN110399026B (en) Multi-source single-output reset method and device based on FPGA and related equipment
CN108268523A (en) Database aggregation processing method and device
CN106504298B (en) Curve plotting method and device
CN110209656A (en) Data processing method and device
CN110532267A (en) Determination method, apparatus, storage medium and the electronic device of field
CN108984427A (en) The processing method and processing device of memory in a kind of equipment based on Shen prestige framework
CN106933896B (en) Shortest access path identification method and device
US20170090820A1 (en) Method and device for operating a many-core system
CN108173689B (en) Output system of load balancing data

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
GR01 Patent grant
GR01 Patent grant