CN107226110B - A kind of method for numbering serial and device of compartment - Google Patents

A kind of method for numbering serial and device of compartment Download PDF

Info

Publication number
CN107226110B
CN107226110B CN201710366691.0A CN201710366691A CN107226110B CN 107226110 B CN107226110 B CN 107226110B CN 201710366691 A CN201710366691 A CN 201710366691A CN 107226110 B CN107226110 B CN 107226110B
Authority
CN
China
Prior art keywords
numbering
compartment
benchmark
benchmark numbering
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710366691.0A
Other languages
Chinese (zh)
Other versions
CN107226110A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201710366691.0A priority Critical patent/CN107226110B/en
Publication of CN107226110A publication Critical patent/CN107226110A/en
Application granted granted Critical
Publication of CN107226110B publication Critical patent/CN107226110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B61RAILWAYS
    • B61LGUIDING RAILWAY TRAFFIC; ENSURING THE SAFETY OF RAILWAY TRAFFIC
    • B61L25/00Recording or indicating positions or identities of vehicles or vehicle trains or setting of track apparatus
    • B61L25/02Indicating or recording positions or identities of vehicles or vehicle trains
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation

Abstract

The present invention provides the method for numbering serial and device of a kind of compartment, applies in access controller, which comprises when receiving the first benchmark numbering of the first AP upload, determines whether first benchmark numbering is default headstock number;When first benchmark numbering is default headstock number, corresponding first IP address of the first AP is determined;Based on first IP address and default car information list, whole compartments are numbered, the default car information list is for recording the corresponding hop count in each section compartment in whole compartments, first interface information, IP address information.Using the embodiment of the present invention, when whole compartments are numbered, number setting up procedure is simple, greatly shortens time-consuming.

Description

A kind of method for numbering serial and device of compartment
Technical field
The present invention relates to network communication technology field more particularly to the method for numbering serial and device of a kind of compartment.
Background technique
Each train may recombinate after entering the station.When compartment recombinates, the compartment of recombination be may be from not With the compartment of train, the number of compartment is disturbed.
In the prior art, Train Management person needs to set gradually number in each compartment, and number setting up procedure is cumbersome, consumes Duration.
Summary of the invention
In view of this, the present invention provides the method for numbering serial and device of a kind of compartment, with solve in each compartment according to The problem of secondary setting number, number setting up procedure is cumbersome, time-consuming.
To achieve the above object, it is as follows to provide technical solution by the present invention:
According to the first aspect of the invention, a kind of method for numbering serial of compartment is proposed, which comprises
When receiving the first benchmark numbering of the first AP upload, determine whether first benchmark numbering is default headstock Number;
When first benchmark numbering is default headstock number, corresponding first IP address of the first AP is determined;
Based on first IP address and default car information list, whole compartments are numbered, the default compartment Information list is for recording the corresponding hop count in each section compartment in whole compartments, first interface information, IP address information.
According to the second aspect of the invention, a kind of numbering device of compartment is proposed, comprising:
First determining module, for determining first benchmark when receiving the first benchmark numbering of the first AP upload Whether number is default headstock number;
Second determining module, for when first benchmark numbering is default headstock number, determining the described first AP pairs The first IP address answered;
First number module carries out whole compartments for being based on first IP address and default car information list Number, the default car information list for record the corresponding hop count in each section compartment in whole compartments, first interface information, IP address information.
By above technical scheme as it can be seen that AC determines the first base when AC receives the first benchmark numbering of the first AP upload Whether quasi- number is default headstock number, and when the first benchmark numbering is default headstock number, AC determines the first AP corresponding the One IP address, AC are based on the first IP address and default car information list, whole compartments are numbered, number setting up procedure letter List greatly shortens time-consuming.
Detailed description of the invention
Fig. 1 is the network architecture diagram that the method for numbering serial of compartment provided by the invention is applicable in;
Fig. 2 is the embodiment flow chart of the method for numbering serial of a compartment provided by the invention;
Fig. 3 is the embodiment flow chart of the method for numbering serial of another compartment provided by the invention;
Fig. 4 is the embodiment flow chart of the method for numbering serial of another compartment provided by the invention;
Fig. 5 is the embodiment flow chart of the method for numbering serial of another compartment provided by the invention;
Fig. 6 is the embodiment flow chart of the method for numbering serial of another compartment provided by the invention;
Fig. 7 is the embodiment flow chart of the method for numbering serial of another compartment provided by the invention;
Fig. 8 is a kind of hardware structure diagram of access controller provided by the invention;
Fig. 9 is the embodiment block diagram of the numbering device of a compartment provided by the invention;
Figure 10 is the embodiment block diagram of the numbering device of another compartment provided by the invention.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
It is only to be not intended to limit the invention merely for for the purpose of describing particular embodiments in terminology used in the present invention. It is also intended in the present invention and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the scope of the invention, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Fig. 1 is the network architecture diagram that the method for numbering serial of compartment provided by the invention is applicable in, as shown in Figure 1, the net It include: compartment 1, compartment 2, compartment 3, compartment 4, compartment 5 in network architecture diagram;First routing device 11, first routing device 21, One routing device 31, secondary route equipment 41, first routing device 51;AP12 (AP is wireless access point), AP22, AP32, AC42 (AC is access controller), AP52;Client 6.Wherein, first routing device 11 and AP12 correspond to compartment 1, the first via by Equipment 21 and AP22 correspond to compartment 2, and first routing device 31 and AP32 correspond to compartment 3, and secondary route equipment 41 and AC42 are corresponding Compartment 4, first routing device 51 and AP52 correspond to compartment 5.First routing device 11, first routing device 21, the first via are by setting Standby 31, can be connected by bridge between 51 5 secondary route equipment 41, first routing device routing devices.It needs to illustrate , the routing device being connected with AP is first routing device, and the routing device being connected with AC is secondary route equipment.Client 6 be the application software being mounted on intelligent terminal, which is used to receive the number of Train Management person's input.It is logical Often, when train recombinates, AC42 obtains the corresponding car information in each section compartment to be numbered, and establishes default compartment letter Cease list, default car information list is for recording the corresponding hop count in each section compartment in whole compartments, first interface information, IP Address information.The specific descriptions how AC42 establishes default car information list can refer to the step 401- step 404 of following Fig. 4 Related content, herein first be not described further.AC42, which can usually be set, is placed in dining car compartment, and dining car compartment is to recombinate every time Compartment existing for Shi Bixu, and usually dining car compartment is located at mid-train, it can be ensured that the AP in headstock direction and tailstock direction is It can be to access AC42 compared with strong signal.AC42 receives Train Management person and passes through the first benchmark numbering that client 6 inputs, first base Quasi- number is that Train Management person inputs when client 6 accesses in the first AP range of signal, and the first AP is, for example, AP22, and AC42 is true Whether fixed first benchmark numbering is default headstock number, and presetting headstock number is, for example, 001, when the first benchmark numbering is default vehicle When head number, AC42 determines that corresponding first IP address of the first AP, the first IP address are, for example, 1.1.1.2, and AC42 is based on first IP address and default car information list, are numbered whole compartments.Through the embodiment of the present invention, AC42 determines Train Management Whether the first benchmark numbering that member is inputted by client 6 is default headstock number, if so, AC42 can be based on the first IP address And whole compartments are numbered in default car information list, number setting up procedure is simple, greatly shortens time-consuming.
For invention is further explained, the following example is provided:
Fig. 2 is the embodiment flow chart of the method for numbering serial of a compartment provided by the invention, carries out example in conjunction with Fig. 1 Property explanation, as shown in Fig. 2, including the following steps:
Step 201: when receiving the first benchmark numbering of the first AP upload, determining whether the first benchmark numbering is default Headstock number.
Step 202: when the first benchmark numbering is default headstock number, determining corresponding first IP address of the first AP.
Step 203: being based on the first IP address and default car information list, whole compartments are numbered, preset compartment Information list is for recording the corresponding hop count in each section compartment in whole compartments, first interface information, IP address information.
In step 201, in one embodiment, when the first benchmark numbering is that client 6 accesses in the first AP range of signal Train Management person's input, it will be appreciated by persons skilled in the art that the AP that 6 priority access of client is nearest apart from oneself, The usual corresponding AP of each compartment, therefore, when Train Management person, which carries the compartment that client 6 is in, corresponds to an AP, AC42 can be obtained corresponding first benchmark numbering in the first AP range of signal, it should be noted that more stable to ensure to obtain Accurate AP signal cover, can be used portal authentication mode, specifically, the related content of portal authentication mode herein It can refer to the prior art.
In step 202, in one embodiment, for example, Train Management person is in compartment 1, the corresponding first via in compartment 1 is by setting Standby 11 and AP12, using 1 direction of compartment as headstock direction, the first AP is AP12, and the first benchmark numbering is 001, presets headstock number For 001, AC42 determines that the first benchmark numbering 001 is default headstock number 001.AC42 determines corresponding first IP of the first AP Address, since client 6 is by the first AP access network connection, AC42 is with can determining corresponding first IP of the first AP Location, the first IP address are, for example, 1.1.1.1.
In step 203, in one embodiment, car information list is preset for recording each section compartment in whole compartments Corresponding hop count, first interface information, IP address information.Wherein hop count is setting apart from secondary route for first routing device record Standby 41 hop count, first interface information are secondary route equipment 41 when any first routing device accesses secondary route equipment 41 Incoming interface.The specific descriptions how AC42 establishes default car information list can refer to the step 401- step 404 of following Fig. 4 Related content is not described further first herein.AC42 is based on the first IP address and default car information list, compiles to whole compartments Number.As shown in table 1, the topology example to preset car information list:
Table 1
License number Routing device IP address Hop count Interface IP address information (AP or AC)
Z52176 192.168.2.3 3 1 1.1.1.1
Z32336 192.168.2.4 1 1 1.1.1.7
Z62166 192.168.2.5 1 0 1.1.1.6
Z55126 192.168.2.6 2 1 1.1.1.9
Z82773 192.168.2.7 0 - 1.1.1.2
In table 1, license number is equivalent to the ID address in compartment, and AC42 obtains every section by the corresponding AP of each compartment and waits numbering Compartment license number, whole license numbers are recorded in default car information list, pass through in time convenient for Train Management person pre- by AC42 If the compartment situation currently recombinated is grasped in car information list.The IP address of AC42 also available whole routing device.License number Including Z52176, Z32336, Z62166, Z55126, Z82773;Routing device IP address include 192.168.2.3, 192.168.2.4,192.168.2.5,192.168.2.6,192.168.2.7;Hop count is jumped including 3,1 jumps, 1 jumps, 2 jump, 0 jump; Interface includes 1,1,0,1 ,-, wherein "-" corresponding A C42;IP address information (AP or AC) include 1.1.1.1,1.1.1.7, 1.1.1.6,1.1.1.9,1.1.1.2.With the second row in table 1 to the license number of the 6th row, routing device IP address, hop count, connect Mouthful, for IP address information (AP or AC) respectively corresponds compartment 1 in Fig. 1, compartment 3, compartment 5, compartment 2, compartment 4, in conjunction with step Rapid 202, the corresponding AP in compartment 1 are the first AP12, the corresponding first IP address 1.1.1.1 of the first AP12, specifically, AC42 how base In the first IP address and default car information list, whole compartments are numbered, can refer to the step 501- in following Fig. 5 The associated description of step 504 is not described further first herein.
In the embodiment of the present invention, when AC receives the first benchmark numbering of the first AP upload, AC determines that the first benchmark is compiled It number whether is default headstock number, when the first benchmark numbering is default headstock number, AC determines corresponding first IP of the first AP Address, AC be based on the first IP address and default car information list, whole compartments are numbered, number setting up procedure simply, Greatly shorten time-consuming.
Fig. 3 is the embodiment flow chart of the method for numbering serial of another compartment provided by the invention, the embodiment of the present invention In conjunction with Fig. 1, Fig. 2, when not being default headstock number to the first benchmark numbering the case where, is illustrated, as shown in figure 3, wrapping Include following steps:
Step 301: if the first benchmark numbering is not default headstock number, it is determined whether the second benchmark numbering has been recorded, if It has been recorded that, execute step 302, if not recording, executed step 303.
Step 302: whole compartments being carried out based on the first benchmark numbering, the second benchmark numbering and default car information list Number.
Step 303: obtaining third benchmark numbering, record the first benchmark numbering.
In step 301, for example, Train Management person, which carries client 6, is located at compartment 2, the corresponding first routing device in compartment 2 21 and AP22, i.e. the first AP are AP22, and the first benchmark numbering is 002, and the first benchmark numbering 002 is not default headstock number 001. Whether AC42 determination receives and has recorded the second benchmark numbering before receiving the first benchmark numbering 002, and the second benchmark numbering is Train Management person inputs when being accessed in the corresponding AP range of signal in any non-headstock compartment by client 6, and the AP and the The one same compartment of AP non-corresponding, which is, for example, AP52.It should be noted that being covered to ensure to obtain more stable accurate AP signal Portal authentication mode can be used in lid range herein, specifically, the related content of portal authentication mode can refer to the prior art
In step 302, AC42 is based on the first benchmark numbering, the second benchmark numbering and default car information list to whole Compartment is numbered, specifically, how AC42 is based on the first benchmark numbering, the second benchmark numbering and default car information list pair What whole compartments were numbered, it can refer to step 701- step 704 in step 601- step 603 and Fig. 7 in following Fig. 6 Associated description is not described further first herein.
In step 303, it will be appreciated by persons skilled in the art that when the first benchmark numbering is not default headstock number When, headstock and the tailstock direction of compartment arrangement can not be only determined by a first benchmark numbering AC42, therefore when the first benchmark When number is not to preset headstock number, AC42 needs to obtain a third benchmark numbering again.Specifically, AC42 can be to client End 6 sends the prompt information that prompt obtains third benchmark numbering, and third benchmark numbering is that Train Management person is accessed by client 6 It is inputted when in the corresponding AP range of signal in any non-headstock compartment, and the AP and the first same compartment of AP non-corresponding.Work as AC42 After getting third reference information, AC42 determines whether third benchmark numbering is default headstock number, if so, AC42 is to third The process flow of benchmark numbering can be found in Fig. 2 step 202- step 203 AC42 to the process flow of the first benchmark numbering;If no It is that then AC42 is numbered whole compartments based on the first benchmark numbering, third benchmark numbering and default car information list Process flow can be found in AC42 in Fig. 6, Fig. 7 and be based on the first benchmark numbering, the second benchmark numbering and default car information list pair The related content that whole compartments are numbered.
In the embodiment of the present invention, when the first benchmark numbering is not default headstock number, AC42 needs at least two benchmark Number can just determine compartment orientation, therefore when the first benchmark numbering is not default headstock number, AC42 needs again Obtain a third benchmark numbering.So that it is guaranteed that AC42 can determine compartment direction by two benchmark numberings, without in every section Number is set gradually in compartment, is simplified number setting up procedure, is shortened number time-consuming.
Fig. 4 is the embodiment flow chart of the method for numbering serial of another compartment provided by the invention, the embodiment of the present invention In conjunction with the table 1 in Fig. 1, Fig. 2 and Fig. 2, illustrated to how to establish default car information list, as shown in figure 4, Include the following steps:
Step 401: the corresponding IP address of whole AP is obtained, each of whole AP AP corresponds to a section compartment, each AP is connected with the first routing device for counting hop count.
Step 402: obtaining the hop count of each first routing device statistics.
Step 403: when obtaining each first routing device access secondary route equipment recorded in secondary route equipment First interface information, the corresponding section compartment AC, AC corresponds to secondary route equipment.
Step 404: based on get the corresponding IP address of whole AP, each first routing device statistics hop count, First interface information when each first routing device access secondary route equipment recorded in secondary route equipment, is established pre- If car information list.
In step 401, AC42 obtains the corresponding IP address of whole AP, the corresponding section vehicle of each of whole AP AP Compartment, each AP are connected with the first routing device for counting hop count.Specifically, AC42 obtain AP12, AP22, AP32, AP52 corresponding IP address 1.1.1.1,1.1.1.9,1.1.1.7,1.1.1.6;IP address 1.1.1.1,1.1.1.9, 1.1.1.7,1.1.1.6 respectively corresponds compartment 1, compartment 3, compartment 5, compartment 2;AP12, AP22, AP32, AP52 are respectively with first Routing device 11, first routing device 31, first routing device 51, first routing device 21 are connected.
In step 402, hop count is the hop count apart from secondary route equipment 41 that first routing device is counted and recorded. AC42 obtains the hop count of each first routing device statistics.Specifically, AC42 obtains first routing device 11, the first via by setting Standby 31, the hop count 3,1,1,2 that first routing device 51, first routing device 21 count respectively.
In step 403, AC42 obtains each first routing device access second recorded in secondary route equipment 41 First interface information when routing device 41, AC42 correspond to compartment 4, and AC42 corresponds to secondary route equipment 41.Specifically, AC42 is obtained First routing device 11, first routing device 31, first routing device 51, first routing device 21 corresponding first is taken to connect Message breath 1,1,0,1.
In step 404, AC42 is based on the corresponding IP address of whole AP, each got in step 401- step 403 When each first routing device access AC42 recorded in the hop count of a first routing device statistics, secondary route equipment 41 First interface information establishes default car information list, for convenient for unified management, presetting car information list can also be by compartment Corresponding license number, the corresponding IP address of routing device, the IP address information etc. of AC42 are recorded in default car information list, this The topology example figure for locating default car information list can be found in the table 1 in above-mentioned Fig. 2.
In the embodiment of the present invention, AC42 based on get the corresponding IP address of whole AP, each first routing device First interface when each first routing device access secondary route equipment recorded in the hop count of statistics, secondary route equipment Information establishes default car information list, and default car information list records the information in each compartment, pre- by obtaining If car information list can grasp car information, it is easy to implement the unified management to car information.
Fig. 5 is the embodiment flow chart of the method for numbering serial of another compartment provided by the invention, the embodiment of the present invention In conjunction with Fig. 1, Fig. 2, it how to be based on the first IP address and default car information list for AC42, whole compartments are numbered It illustrates, as shown in figure 5, including the following steps:
Step 501: in the whole first interface information recorded in default car information list, determining and the first IP address Corresponding second interface information.
Step 502: direction corresponding with the consistent first interface information of second interface information is determined as the first headstock side To direction corresponding with the first interface information that second interface information is inconsistent is determined as the first tailstock direction.
Step 503: being based on the first headstock direction, the first benchmark numbering and the corresponding hop count of the first AP, determine that AC is corresponding Compartment the 4th benchmark numbering.
Step 504: based in the 4th benchmark numbering, the first headstock direction, the first tailstock direction, default car information list Whole compartments are numbered in the hop count corresponding with compartment to be numbered of record.
In step 501, it in whole first interface information that AC42 is recorded in default car information list, determines and the The corresponding second interface information of one IP address, in conjunction with step 202 and table 1, AC42 determines corresponding first IP of the first AP by table 1 Address is 1.1.1.1, in whole first interface information 1,1,0,1 that AC42 is recorded in default car information list, determine with The corresponding second interface information " 1 " of first IP address 1.1.1.1.
In step 502, AC42 will direction corresponding with second interface information " 1 " consistent first interface information " 1 " it is true It is set to the first headstock direction, direction corresponding with first interface information " 0 " that second interface information is inconsistent is determined as first Tailstock direction.
In step 503, in conjunction with step 202 and table 1, with the first benchmark numbering for " 001 ", the corresponding hop count of the first AP For " 3 ", AC42 is based on the first headstock direction, the first benchmark numbering " 001 " and the corresponding hop count " 3 " of the first AP, determines AC42 corresponds to the 4th benchmark numbering in compartment 4, specifically, the 4th benchmark numbering=the first benchmark numbering+hop count, the 4th benchmark is compiled Number=004.
In step 504, in conjunction with table 1, AC42 is based on the 4th benchmark numbering " 004 ", the first headstock direction, the first tailstock side Whole compartments are numbered to the hop count corresponding with compartment to be numbered recorded in, default car information list.
The number calculation formula in the first headstock direction are as follows:
Number the=the four benchmark numberings-hop count
The number calculation formula in the first tailstock direction are as follows:
Number the=the four benchmark numberings+hop count.
By above-mentioned formula can be obtained the corresponding number in compartment 1, compartment 2, compartment 3, compartment 4, compartment 5 be 001,002, 003,004, number is recorded in shown in table 2 and presets in car information list by 005, AC42:
Table 2
License number Routing device IP address Hop count Interface IP address information (AP or AC) Number
Z52176 192.168.2.3 3 1 1.1.1.1 001
Z32336 192.168.2.4 1 1 1.1.1.7 003
Z62166 192.168.2.5 1 0 1.1.1.6 005
Z55126 192.168.2.6 2 1 1.1.1.9 002
Z82773 192.168.2.7 0 - 1.1.1.2 004
In the embodiment of the present invention, if the first benchmark numbering is default headstock number, AC42 can be directly determined and first The corresponding direction of the consistent first interface information of the corresponding second interface information of IP address is the first headstock direction, with second interface The inconsistent corresponding direction of first interface information of information is the first tailstock direction, and AC42 is based on the first headstock direction, the first base Quasi- number and the corresponding hop count of the first AP determine that AC42 corresponds to the 4th benchmark numbering in compartment, and AC42 is compiled based on the 4th benchmark Number, the first headstock direction, the first tailstock direction, the jump corresponding with compartment to be numbered recorded in default car information list Several pairs of whole compartments are numbered, and without setting gradually number in each compartment, simplify number setting up procedure, shorten number It is time-consuming.
Fig. 6 is the embodiment flow chart of the method for numbering serial of another compartment provided by the invention, the embodiment of the present invention In conjunction with Fig. 1, Fig. 2, table 1, table 5, to how based on the first benchmark numbering, the second benchmark numbering and default car information list to complete Portion compartment, which is numbered, to be illustrated, as shown in fig. 6, including the following steps:
Step 601: the second headstock direction and the second tailstock direction are determined based on the first benchmark numbering and the second benchmark numbering.
Step 602: based on any benchmark numbering in the first benchmark numbering and the second benchmark numbering and one any The corresponding compartment direction of benchmark numbering determines that AC corresponds to the 5th benchmark numbering in compartment.
Step 603: based on the 5th benchmark numbering, the second headstock direction, the second tailstock direction and default car information column Whole compartments are numbered in the hop count corresponding with compartment to be numbered recorded in table.
In step 601, the second benchmark numbering accesses any non-headstock compartment by client 6 for Train Management person and corresponds to AP range of signal in when input, and the AP and the first same compartment of AP non-corresponding.AC42 is based on the first benchmark numbering and the Two benchmark numberings determine the second headstock direction and the second tailstock direction.Such as first benchmark numbering be 002, the second benchmark numbering is 005, the lesser compartment direction of benchmark numbering should be headstock direction, and the biggish compartment direction of benchmark numbering should be tailstock side To specifically, how AC42 based on the first benchmark numbering and the second benchmark numbering determines the second headstock direction and the second tailstock side To, it can refer to the associated description of the step 701- step 704 in following Fig. 7, be not described further first herein.
In step 602, AC42 is based on any benchmark numbering in the first benchmark numbering and the second benchmark numbering, and The corresponding compartment direction of any benchmark numbering, determines that AC42 corresponds to the 5th benchmark numbering in compartment 4.5th benchmark numbering Calculation formula are as follows:
The corresponding 5th benchmark numbering calculation formula in second headstock direction are as follows:
Five benchmark numberings=benchmark numbering+hop count
The corresponding 5th benchmark numbering calculation formula in second tailstock direction are as follows:
Five benchmark numberings=benchmark numbering-hop count
In conjunction with step 601 and table 1, with the first benchmark numbering for 002, for the second benchmark numbering is 005, the first benchmark is compiled Number 002 corresponding second headstock direction, corresponding second tailstock direction of the second benchmark numbering 005, the corresponding hop count of the first benchmark numbering 002 2, the corresponding hop count 1 of the second benchmark numbering 005.5th benchmark numbering can be added to obtain by the first benchmark numbering 002 with hop count 2 AC42 corresponds to the 5th benchmark numbering 004 in compartment 4, can also subtract each other to obtain AC42 pairs with hop count 1 by the second benchmark numbering 005 Answer the 5th benchmark numbering 004 in compartment 4.
In step 603, AC42 is based on the 5th benchmark numbering, the second headstock direction, the second tailstock direction and default vehicle Whole compartments are numbered in the hop count corresponding with compartment to be numbered recorded in the information list of compartment.
The number calculation formula in the second headstock direction are as follows:
Number the=the five benchmark numberings-hop count
The number calculation formula in the second tailstock direction are as follows:
Number the=the five benchmark numberings+hop count.
Specifically, number result can refer to above-mentioned table 2.
In the embodiment of the present invention, AC42 determines the second headstock direction and the based on the first benchmark numbering and the second benchmark numbering Two tailstock directions, AC42 is based on any benchmark numbering in the first benchmark numbering and the second benchmark numbering and one any The corresponding compartment direction of benchmark numbering determines that AC corresponds to the 5th benchmark numbering in compartment, and AC42 is based on the 5th benchmark numbering, second The hop count pair corresponding with compartment to be numbered recorded in headstock direction, the second tailstock direction and default car information list Whole compartments are numbered, and number setting up procedure is simple, greatly shortens time-consuming.
Fig. 7 is the embodiment flow chart of the method for numbering serial of another compartment provided by the invention, the embodiment of the present invention In conjunction with Fig. 1, Fig. 2, Fig. 6, to how based on the first benchmark numbering and the second benchmark numbering determining the second headstock direction and the second vehicle Tail direction illustrates, as shown in fig. 7, comprises following steps:
Step 701: comparing the size of the first benchmark numbering Yu the second benchmark numbering, obtain comparison result.
Step 702: determining in comparison result corresponding 2nd AP of smaller benchmark numbering and determine the 2nd AP corresponding the Two IP address determine corresponding 3rd AP of larger benchmark numbering in comparison result and determine the corresponding third IP address of the 3rd AP.
Step 703: in default car information list, determining the corresponding third interface message of the second IP address, determine Corresponding 4th interface message of three IP address.
Step 704:, will be with third interface message in the whole first interface information recorded in default car information list The corresponding direction of consistent first interface information is determined as the second headstock direction, will be with the 4th consistent first interface of interface message The corresponding direction of information is determined as the second tailstock direction.
In step 701, AC42 compares the size of the first benchmark numbering Yu the second benchmark numbering, obtains comparison result.With First benchmark numbering is 002, and for the second benchmark numbering is 005, AC42 compares the first benchmark numbering 002 and the second benchmark numbering 005 size
In a step 702, AC42 determines corresponding 2nd AP of smaller benchmark numbering in comparison result and determines the 2nd AP Corresponding second IP address, AC42 determine corresponding 3rd AP of larger benchmark numbering in comparison result and determine that the 3rd AP is corresponding Third IP address.In conjunction with above-mentioned table 1, AC42 determines that corresponding 2nd AP of smaller first benchmark numbering is AP21 in comparison result, Corresponding second IP address of 2nd AP is 1.1.1.9, and AC42 determines corresponding 3rd AP of larger second benchmark numbering in comparison result For AP31, the corresponding third IP address of AP31 is 1.1.1.7.
In step 703, in conjunction with above-mentioned table 1 and step 702, based on the IP address letter recorded in default car information list The corresponding relationship for ceasing (AP or AC) and interface, determines the corresponding third interface message 1 of the second IP address 1.1.1.9, determines third Corresponding 4th interface message 0 of IP address 1.1.1.7.
In step 704, when third interface message and the 4th interface message are inconsistent, third interface message and the is indicated The corresponding compartment of four interface messages adheres to 4 two sides of compartment separately, the whole first interface information recorded in default car information list In, direction corresponding with the consistent first interface information of third interface message is determined as the second headstock direction by AC42, and AC42 will Direction corresponding with the consistent first interface information of the 4th interface message is determined as the second tailstock direction.It should be noted that working as When third interface message is consistent with the 4th interface message, indicate that third interface message compartment corresponding with the 4th interface message exists together In the headstock side or tailstock side in compartment 4.When third interface message compartment corresponding with the 4th interface message exists together compartment 4 Headstock side when, in third interface message hop count corresponding with the 4th interface message, the more big then corresponding benchmark of hop count It numbers smaller;When third interface message compartment corresponding with the 4th interface message exists together the tailstock side in compartment 4, third interface In information hop count corresponding with the 4th interface message, the more big then corresponding benchmark numbering of hop count is bigger.Therefore, when third connects Message cease corresponding with the 4th interface message compartment exist together compartment 4 headstock side when, AC42 will with third interface message (or 4th interface message) the corresponding direction of consistent first interface information is determined as the second headstock direction, and AC42 will be with third interface The inconsistent corresponding direction of first interface information of information (or the 4th interface message) is determined as the second tailstock direction;Work as third Interface message compartment corresponding with the 4th interface message exist together compartment 4 the tailstock side when, AC42 will with third interface message (or The 4th interface message of person) the corresponding direction of consistent first interface information is determined as the second tailstock direction, and AC42 will connect with third The inconsistent corresponding direction of first interface information of message breath (or the 4th interface message) is determined as the second headstock direction.
In the embodiment of the present invention, AC42 compares the size of the first benchmark numbering Yu the second benchmark numbering, obtains comparison result, AC42 determines smaller corresponding 2nd AP of benchmark numbering and corresponding second IP address of determining 2nd AP in comparison result, determines The corresponding third IP address of larger benchmark numbering corresponding 3rd AP and determining 3rd AP in comparison result.In default car information In list, AC42 determines the corresponding third interface message of the second IP address, determines corresponding 4th interface message of third IP address. Direction corresponding with the consistent first interface information of third interface message is determined as the second headstock direction by AC42, and AC42 will be with The corresponding direction of the consistent first interface information of four interface messages is determined as the second tailstock direction.AC42 can pass through two benchmark It numbers and determines compartment direction, without setting gradually number in each compartment, simplify number setting up procedure, shorten number consumption When.
Corresponding to the method for numbering serial of above-mentioned compartment, the invention also provides the hardware of access controller shown in Fig. 8 Structure chart.Referring to FIG. 8, in hardware view, the access controller include processor, internal bus, network interface, memory and Nonvolatile memory is also possible that hardware required for other business certainly.Processor is read from nonvolatile memory It takes corresponding computer program then to run into memory, forms the numbering device of compartment on logic level.Certainly, it removes Except software realization mode, other implementations, such as the side of logical device or software and hardware combining is not precluded in the present invention Formula etc., that is to say, that the executing subject of following process flow is not limited to each logic unit, is also possible to hardware or patrols Collect device.
Fig. 9 is the embodiment block diagram of the numbering device of a compartment provided by the invention, as shown in figure 9, the train The numbering device in compartment may include: the first determining module 91, the second determining module 92, the first number module 93, in which:
First determining module 91, for determining that the first benchmark is compiled when receiving the first benchmark numbering of the first AP upload It number whether is default headstock number;
Second determining module 92, for when the first benchmark numbering is default headstock number, determining the first AP corresponding the One IP address;
First number module 93 compiles whole compartments for being based on the first IP address and default car information list Number, default car information list is for recording the corresponding hop count in each section compartment in whole compartments, first interface information, IP address Information.
Figure 10 is the embodiment block diagram of the numbering device of another compartment provided by the invention, as shown in Figure 10, On the basis of above-mentioned embodiment illustrated in fig. 9, the numbering device of compartment further include:
Third determining module 94, if for the first benchmark numbering not being default headstock number, it is determined whether recorded second Benchmark numbering;
Second number module 95, if for having recorded, based on the first benchmark numbering, the second benchmark numbering and default compartment letter Whole compartments are numbered in breath list;
First obtains module 96, if obtaining third benchmark numbering for not recording, records the first benchmark numbering.
In one embodiment, the numbering device of compartment further include:
Second obtains module 97, for obtaining the corresponding IP address of whole AP, the corresponding section of each of whole AP AP Compartment, each AP are connected with the first routing device for counting hop count;
Third obtains module 98, for obtaining the hop count of each first routing device statistics;
4th obtains module 99, for obtaining each first routing device recorded in secondary route equipment access second First interface information when routing device, the corresponding section compartment secondary route equipment corresponding A C, AC;
Module 100 is established in list, for based on get the corresponding IP address of whole AP, each first routing device First interface when each first routing device access secondary route equipment recorded in the hop count of statistics, secondary route equipment Information establishes default car information list.
In one embodiment, the first number module 93 includes:
First determines submodule 931, in whole first interface information for recording in default car information list, really Fixed second interface information corresponding with the first IP address;
Second determine submodule 932, for will direction corresponding with the consistent first interface information of second interface information it is true It is set to the first headstock direction, direction corresponding with the first interface information that second interface information is inconsistent is determined as first tailstock Direction;
Third determines submodule 933, for being based on the first headstock direction, the first benchmark numbering and the corresponding jump of the first AP Number, determines the 4th benchmark numbering in the corresponding compartment AC;
First number submodule 934, for being based on the 4th benchmark numbering, the first headstock direction, the first tailstock direction, presetting Whole compartments are numbered in the hop count corresponding with compartment to be numbered recorded in car information list.
In one embodiment, the second number module 95 includes:
4th determines submodule 951, for determining the second headstock direction based on the first benchmark numbering and the second benchmark numbering And second tailstock direction;
5th determines submodule 952, for based on any benchmark in the first benchmark numbering and the second benchmark numbering Number and the corresponding compartment direction of any benchmark numbering, determine that AC corresponds to the 5th benchmark numbering in compartment;
Second number submodule 953, for based on the 5th benchmark numbering, the second headstock direction, the second tailstock direction and Whole compartments are numbered in the hop count corresponding with compartment to be numbered recorded in default car information list.
In one embodiment, the 4th determine that submodule includes:
Number comparing unit obtains comparison result for comparing the size of the first benchmark numbering Yu the second benchmark numbering;
First determination unit, for determining corresponding 2nd AP of smaller benchmark numbering in comparison result and determining the 2nd AP Corresponding second IP address determines corresponding 3rd AP of larger benchmark numbering in comparison result and determines the corresponding third of the 3rd AP IP address;
Second determination unit, in default car information list, determining the corresponding third interface letter of the second IP address Breath, determines corresponding 4th interface message of third IP address;
Third determination unit is used for when third interface message and the 4th interface message are inconsistent, in default car information In the whole first interface information recorded in list, will direction corresponding with the consistent first interface information of third interface message it is true It is set to the second headstock direction, direction corresponding with the consistent first interface information of the 4th interface message is determined as the second tailstock side To.
The unit that above-mentioned 4th determining submodule includes is not shown in FIG. 10.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, when AC receives the first benchmark numbering of the first AP upload, AC determines the first benchmark Whether number is default headstock number, and when the first benchmark numbering is default headstock number, AC determines the first AP corresponding first IP address, AC are based on the first IP address and default car information list, whole compartments are numbered, number setting up procedure letter List greatly shortens time-consuming.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (8)

1. a kind of method for numbering serial of compartment, which is characterized in that the described method includes:
When receiving the first benchmark numbering of the first AP upload, determine whether first benchmark numbering is that default headstock is compiled Number;
When first benchmark numbering is default headstock number, corresponding first IP address of the first AP is determined;
Obtain the corresponding IP address of whole AP, each of described whole AP AP correspondence one section compartment, each described AP and First routing device for counting hop count is connected;
Obtain the hop count of each first routing device statistics;
Obtain the when each described first routing device for recording in secondary route equipment accesses the secondary route equipment One interface message, the corresponding section compartment the secondary route equipment corresponding A C, the AC;
Hop count and described based on the corresponding IP address of the whole AP, each described first routing device statistics that get Each the described first routing device recorded in secondary route equipment accesses the first interface letter when secondary route equipment Breath, establishes the default car information list;
Based on first IP address and default car information list, whole compartments are numbered, the default car information List is for recording the corresponding hop count in each section compartment in whole compartments, first interface information and IP address information.
2. the method according to claim 1, wherein the method also includes:
If first benchmark numbering is not default headstock number, it is determined whether recorded the second benchmark numbering;
If having recorded, based on first benchmark numbering, second benchmark numbering and the default car information list to institute Whole compartments are stated to be numbered;
If not recording, third benchmark numbering is obtained, first benchmark numbering is recorded.
3. the method according to claim 1, wherein described be based on first IP address and default car information Whole compartments are numbered in list, comprising:
In the whole first interface information recorded in the default car information list, determination is corresponding with first IP address Second interface information;
Direction corresponding with the consistent first interface information of the second interface information is determined as the first headstock direction, it will be with institute It states the inconsistent corresponding direction of first interface information of second interface information and is determined as the first tailstock direction;
Based on first headstock direction, first benchmark numbering and the corresponding hop count of the first AP, the AC is determined 4th benchmark numbering in corresponding compartment;
Based on the 4th benchmark numbering, first headstock direction, first tailstock direction, the default car information column Whole compartments are numbered in the hop count corresponding with compartment to be numbered recorded in table.
4. according to the method described in claim 2, it is characterized in that, being compiled based on first benchmark numbering, second benchmark Number and the default car information list whole compartments are numbered, comprising:
The second headstock direction and the second tailstock direction are determined based on first benchmark numbering and second benchmark numbering;
Based on any benchmark numbering in first benchmark numbering and second benchmark numbering and any one described The corresponding compartment direction of benchmark numbering determines that the AC corresponds to the 5th benchmark numbering in compartment;
Based on the 5th benchmark numbering, second headstock direction, second tailstock direction and the default compartment letter Whole compartments are numbered in the hop count corresponding with compartment to be numbered recorded in breath list.
5. according to the method described in claim 4, it is characterized in that, described be based on first benchmark numbering and second base Standard, which is numbered, determines the second headstock direction and the second tailstock direction, comprising:
Compare the size of first benchmark numbering Yu second benchmark numbering, obtains comparison result;
Determine smaller corresponding 2nd AP of benchmark numbering and corresponding 2nd IP of determining 2nd AP in the comparison result Address determines that larger benchmark numbering is with corresponding to the 3rd AP and corresponding 3rd IP of determining 3rd AP in the comparison result Location;
In the default car information list, the corresponding third interface message of second IP address is determined, determine described Corresponding 4th interface message of three IP address;
When the third interface message and the 4th interface message are inconsistent, recorded in the default car information list Whole first interface information in, direction corresponding with the consistent first interface information of the third interface message is determined as Direction corresponding with the consistent first interface information of the 4th interface message is determined as the second tailstock side by two headstock directions To.
6. a kind of numbering device of compartment, which is characterized in that described device includes:
First determining module, for determining first benchmark numbering when receiving the first benchmark numbering of the first AP upload It whether is default headstock number;
Second determining module, for determining that the first AP is corresponding when first benchmark numbering is default headstock number First IP address;
Second obtains module, for obtaining the corresponding IP address of whole AP, the corresponding section vehicle of each of described whole AP AP Compartment, each described AP are connected with the first routing device for counting hop count;
Third obtains module, for obtaining the hop count of each first routing device statistics;
4th obtains module, for obtain recorded in secondary route equipment described in each first routing device access described the First interface information when two routing devices, the corresponding section compartment the secondary route equipment corresponding A C, the AC;
Module is established in list, for based on the corresponding IP address of the whole AP got, each described first via is by setting Each the described first routing device recorded in the hop count of standby statistics and the secondary route equipment accesses the secondary route First interface information when equipment establishes the default car information list;
First number module, for based on first IP address and default car information list, whole compartments to be numbered, The default car information list is for recording the corresponding hop count in each section compartment in whole compartments, first interface information and IP Location information.
7. device according to claim 6, which is characterized in that described device further include:
Third determining module, if for first benchmark numbering not being default headstock number, it is determined whether recorded the second base Quasi- number;
Second number module, if for having recorded, based on first benchmark numbering, second benchmark numbering and described default Whole compartments are numbered in car information list;
First obtains module, if obtaining third benchmark numbering for not recording, recording first benchmark numbering.
8. device according to claim 6, which is characterized in that the first number module includes:
First determines submodule, in whole first interface information for recording in the default car information list, determines Second interface information corresponding with first IP address;
Second determines submodule, for direction corresponding with the consistent first interface information of the second interface information to be determined as Direction corresponding with the inconsistent first interface information of the second interface information is determined as first tailstock by the first headstock direction Direction;
Third determines submodule, for based on first headstock direction, first benchmark numbering and the described first AP pairs The hop count answered determines the 4th benchmark numbering in the corresponding compartment the AC;
First number submodule, for being based on the 4th benchmark numbering, first headstock direction, first tailstock direction And whole compartments are numbered in the hop count corresponding with compartment to be numbered recorded in the default car information list.
CN201710366691.0A 2017-05-23 2017-05-23 A kind of method for numbering serial and device of compartment Active CN107226110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710366691.0A CN107226110B (en) 2017-05-23 2017-05-23 A kind of method for numbering serial and device of compartment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710366691.0A CN107226110B (en) 2017-05-23 2017-05-23 A kind of method for numbering serial and device of compartment

Publications (2)

Publication Number Publication Date
CN107226110A CN107226110A (en) 2017-10-03
CN107226110B true CN107226110B (en) 2019-02-19

Family

ID=59934583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710366691.0A Active CN107226110B (en) 2017-05-23 2017-05-23 A kind of method for numbering serial and device of compartment

Country Status (1)

Country Link
CN (1) CN107226110B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5052704B1 (en) * 2012-01-04 2012-10-17 三菱電機株式会社 Train information management device
AU2013282700B2 (en) * 2012-06-30 2018-08-02 Co.El.Da. Software Srl Rail transport system with convoys automatic composition
CN104477214B (en) * 2014-09-19 2017-02-15 成都可益轨道技术有限公司 Intelligent electric terminal based train length and vehicle information automatic identification system
CN104843033A (en) * 2015-05-19 2015-08-19 北京空间方阵网络科技有限公司 Train automatic marshaling method based on train vehicle-mounted wireless network equipment

Also Published As

Publication number Publication date
CN107226110A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
CN105430760B (en) Connection method and system between equipment
US10303135B2 (en) Method and apparatus for controlling smart home device
CN105579976B (en) Webpage automated testing method and device
CN109582517A (en) System application automated testing method, device, system and tool storage end
CN108199942A (en) Vehicle diagnosis method, device, equipment, system and diagnosis connection equipment
CN108228444A (en) A kind of test method and device
CN106162829A (en) WIFI method of attachment and device
US20140286339A1 (en) Hardware Acceleration for Routing Programs
CN109982034A (en) Access request processing method and processing device in video monitoring system
CN114710513B (en) Processing system and method for network data
CN108418752A (en) A kind of creation method and device of aggregation group
CN104284351B (en) A kind of distance-finding method and device
CN108259348A (en) A kind of message transmitting method and device
CN109429239A (en) Connect the method and device of wireless network
CN108228248A (en) A kind of determining method and apparatus of dependence
CN109451537A (en) Network shunt method and relevant device
CN107226110B (en) A kind of method for numbering serial and device of compartment
WO2014194744A1 (en) A method, client, server, and system for processing data
JP7447248B2 (en) Listen-before-talk LBT subband segmentation method, device, equipment and medium
CN108536869A (en) A kind of method, apparatus and computer readable storage medium of search participle
CN108446088A (en) Terminal and throwing screen system
CN110519797A (en) Load-balancing method, device, the network equipment and storage medium
US20150194145A1 (en) Computing system with command-sense mechanism and method of operation thereof
CN114979148B (en) Data transmission method, device and computer readable storage medium

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