The present invention relates to an IP address distribution device, an IP address distribution system, and an IP address distribution method for distributing IP addresses to devices in a train.
It is believed that network systems based on the Ethernet (registered trademark) standard will become the international standard for communication between devices mounted in railroad vehicles. The Ethernet (registered trademark) is already commonly being used mainly in Europe and North America for communication between devices mounted in railroad vehicles.
A typical communication protocol on the Ethernet (registered trademark) is the TCP/IP. With the TCP/IP, IP addresses are used as information for identifying devices, with an IP address being uniquely assigned to each device.
Various systems have been proposed and used as a system for distributing IP addresses in offices or on home LANs, examples of which include a system for distributing IP addresses by utilizing a dynamic host configuration protocol (DHCP), a system for determining IP addresses to be distributed to respective ports of a switching hub, and a system for manually setting IP addresses one by one.
Patent Literature 1 describes an IP address distribution device that distributes IP addresses to terminal devices in a train formation. The IP addresses are determined on the basis of the routing information from the IP address distribution device to the terminal devices.
Patent Literature 1: Japanese Patent No. 4790088
The IP addresses to be assigned to devices mounted in the train are fixed and given in accordance with the arrangement of the devices in the train, with the IP addresses being managed as IDs unique to the devices. The reason why IP addresses are fixed and assigned in the train is that, in a case where a device malfunctions and communication errors occur, the faulty device can be immediately identified using the IP address and then promptly replaced. Another reason is that, in a case where an event occurs in a certain device, it is possible to immediately identify, using the IP address, the car in which the device in which an event has occurred is located and the location of the device in the car.
However, with the method for distributing IP addresses by utilizing the DHCP, the same IP address is not always assigned to the same device when IP addresses are reset. For example, a media access control (MAC) address for the device needs to be specified in order to assign the same IP address to the same device, which requires a complicated process.
With the IP address distribution method described in Patent Literature 1, a specific function needs to be provided in a switch arranged on the communication route.
The present invention has been made in view of the above, and an object thereof is to provide an IP address distribution device, an IP address distribution system, and an IP address distribution method capable of assigning a fixed IP address to a device in a train more easily.
In order to solve the above problems and achieve the object, an IP address distribution system according to an aspect of the present invention includes: a plurality of devices connected to a communication network established in a train; and an IP address distribution device to select, in response to a request from a device, an IP address to be assigned to a requesting device and to transmit the IP address to the requesting device, the IP address distribution device being connected to the communication network. The IP address distribution device includes: a display; a storage to store an IP address management table in which an IP address and an in-train installation position of a device in which the IP address needs to be used are managed in association with each other and which includes information as to whether the IP address is in use or not in use; and an IP address distribution unit to refer to the IP address management table in response to receiving a request for an IP address from the requesting device, display, on the display, unused IP addresses in association with the in-train installation positions, accept input information for selecting, from among the unused IP addresses displayed on the display, an IP address corresponding to an in-train installation position of the requesting device, and select, from the IP address management table, an IP address to be assigned to the requesting device on a basis of the input information.
The present invention achieves an effect of being capable of assigning a fixed IP address to a device in a train more easily.
Hereinafter, an IP address distribution device, an IP address distribution system, and an IP address distribution method according to embodiments of the present invention will be described in detail with reference to the drawings. The present invention is not limited to the embodiments.
Although the devices 2 are denoted by the same reference sign, the same type and different types of devices are generally included in the devices 2. Although the six devices 2 are provided in
The device 2 only needs to be a device including a communication function. Examples of the device 2 include a camera that monitors the inside of the vehicle, an emergency reporting device for allowing passengers to report an emergency to the train crew, a guidance indicator that displays operation information to passengers, a train information management device, and various control devices.
The input unit 21 is, for example, an operation button provided on the device 2. A certain device 2, such as a camera for monitoring the inside of the vehicle, might not be equipped with the input unit 21.
The IP address 23a is stored in the storage 23 in
The control unit 20 includes an IP address request unit 20a that generates an IP address request signal for requesting an IP address. The IP address request unit 20a generates the IP address request signal at the time of the initial setting or resetting of the IP address, and sends the IP address request signal to the communication network 3. The IP address request unit 20a also receives an IP address transmitted from the IP address distribution device 1, saves the IP address in the storage 23, and sets the IP address as a communication address of the device 2.
The IP address management table 33a manages, in association with each other, IP addresses and the in-train installation positions of the devices in which the IP addresses should be used. In other words, in the IP address management table 33a, IP addresses are managed in association with the in-train installation positions of the devices 2 in which the IP addresses should be used.
The IP address management table 33a also includes information as to whether IP addresses are in use or not in use. A used IP address means an IP address that has already been sent to the device 2 and used in the device 2 to which the IP address has been sent, and an unused IP address means an IP address that has not been sent to and used by any of the devices 2 yet.
An IP address distribution unit 30a refers to the IP address management table 33a in response to accepting a request for an IP address from the device 2, and displays, on the display 1a, unused IP addresses in association with the in-train installation positions. The IP address distribution unit 30a can also accept input information for selecting, from among the unused IP addresses displayed in the display 1a, the IP address corresponding to the in-train installation position of the requesting device 2. Then, the IP address distribution unit 30a selects, from the IP address management table 33a, the IP address to be assigned to the requesting device 2 on the basis of the input information, and transmits the IP address to the requesting device 2.
The display 1a includes, for example, a touch panel as an input unit. The user can operate the touch panel to input the input information for selecting, from among the unused IP addresses displayed on the display 1a, the IP address corresponding to the in-train installation position of the requesting device 2. The input unit 32 illustrated in
Next, operations of the present embodiment will be described. In the present embodiment, a case where the device 2 includes the input unit 21 will be described. The input unit 21 is, for example, a button.
As illustrated in
As a result of the determination in S2, in a case where the button is not held down when the power source is turned on (S2, No), the device 2 proceeds to operations other than the IP address acquisition operation, i.e., normal operations. As a result of the determination in S2, in a case where the button is held down when the power source is turned on (S2, Yes), the IP address request unit 20a proceeds to the IP address acquisition operation in S3 and the subsequent steps.
In this manner, in a case where the button is held down when the power source is turned on, pressing the button triggers an IP address setting process. Generally, in a case where the input unit 21 has been operated when the power source is turned on, the IP address request unit 20a starts the IP address acquisition process regardless of whether the IP address is set or not.
Next, in a case where the button is held down when the power source is turned on (S2, Yes), the IP address request unit 20a generates the IP address request signal for requesting an IP address and sends the IP address request signal to the communication network 3 (S3). The IP address request signal is broadcasted using a broadcast address as a transmission destination address. A transmission source address is the MAC address of the device 2.
Next, in response to receiving an IP address distribution signal from the IP address distribution device 1 (S4), the IP address request unit 20a saves, in the storage 23, the IP address included in the IP address distribution signal and performs the initial setting or resetting of the IP address (S5). After that, the device 2 proceeds to normal operations (S6). The IP address distribution signal will be described below.
First, as illustrated in
Next, the IP address distribution unit 30a refers to the IP address management table 33a stored in the storage 33, retrieves unused IP addresses, and displays, on the display 1a, an indication of the request for the IP address and the unused IP addresses in association with the in-train installation positions (S12).
An exemplary display of a list of unused IP addresses is illustrated in
Next, the IP address distribution unit 30a accepts the input information for selecting, from among the unused IP addresses displayed on the display 1a, the IP address corresponding to the in-train installation position of the requesting device 2 (S13). Because the user knows the in-train installation position of the requesting device 2 in advance, for example, the user operates the touch panel on the display screen and selects the IP address corresponding to the in-train installation position of the requesting device 2 from the list of unused IP addresses displayed on the display 1a, whereby the input information for selecting the IP address can be input to the IP address distribution unit 30a. As mentioned above, this process is based on the premise that the in-train installation position of the requesting device 2 is known in advance.
The IP address distribution unit 30a selects, from the IP address management table 33a, the IP address to be assigned to the requesting device 2 on the basis of the input information, and transmits the IP address distribution signal including the selected IP address to the requesting device 2 (S14). The IP address distribution unit 30a registers the fact that the assigned IP address is the used IP address with the IP address management table 33a. For example, the use flag for the IP address is changed from 0 to 1 in the example of
Even if the IP address distribution unit 30a receives another IP address request signal during the period from the reception of the IP address request signal to the transmission of the IP address distribution signal, the IP address distribution unit 30a discards that IP address request signal. Therefore, when the indication of the request for the IP address is displayed on the display 1a, the single device 2 serves as a source of a request, and the IP address corresponding to the in-train installation position of the requesting device 2 can be uniquely selected from among the unused IP addresses.
A communication process used in the DHCP can be used for a communication process between the device 2 and the IP address distribution device 1.
First, as illustrated in
As described above, according to the present embodiment, the IP address distribution unit 30a refers to the IP address management table 33a in response to receiving the request for an IP address from the requesting device 2, and displays, on the display 1a, unused IP addresses in association with the in-train installation positions. The IP address distribution unit 30a then accepts the input information for selecting, from among the unused IP addresses displayed on the display 1a, the IP address corresponding to the in-train installation position of the requesting device 2, and selects, from the IP address management table 33a, the IP address to be assigned to the requesting device 2 on the basis of the input information. Therefore, the fixed IP address can be assigned to the requesting device 2 without giving any special function to the communication device 4, which is a relay device on the communication network 3.
Thus, because a special function does not need to be given to the communication device 4, the present embodiment can be configured using a general-purpose network device or can be used in a railroad vehicle configured using a combination of devices made by various manufacturers, and the fixed IP addresses can be assigned to the devices in the train more easily.
The user operates the mobile terminal 60, whereby the mobile terminal 60 and the display 1a can wirelessly communicate with each other. The display 1a transmits the display content of the display 1a to the mobile terminal 60 by wireless communication with the mobile terminal 60. The mobile terminal 60 can display the display content transmitted from the display 1a on a display (not illustrated) of the mobile terminal 60. More specifically, the display 1a transmits, to the mobile terminal 60, the display content that is unused IP addresses displayed in association with the in-train installation positions, and the mobile terminal 60 displays the display content transmitted from the display 1a on the display (not illustrated) of the mobile terminal 60.
Next, the mobile terminal 60 accepts input information for selecting, from among the unused IP addresses displayed on the display (not illustrated) of the mobile terminal 60, the IP address corresponding to the in-train installation position of the requesting device 2. The mobile terminal 60 then transmits the input information to the display 1a. The IP address distribution unit 30a accepts, via the display 1a, the input information transmitted from the mobile terminal 60.
The effects of the present modification are as follows. The display 1a is typically installed in the cab. In this case, when the device 2 is apart from the cab, the user carrying the mobile terminal 60 can operate the device 2 and perform the inputting process on the IP address distribution unit 30a at the in-train installation position of the device 2, whereby work performance is improved.
In addition, because the user can perform the input process on the IP address distribution unit 30a at the in-train installation position of the device 2, the in-train installation position of the device 2 can be obtained more readily, and the selection of the IP address corresponding to the in-train installation position of the device 2 from among the unused IP addresses displayed on the display (not illustrated) of the mobile terminal 60 is facilitated.
The first embodiment has described the case where the device 2 includes the input unit 21. In the present embodiment, a case where the device 2 does not include the input unit 21 will be described. Because the configuration of the device 2 is the same as that in
As illustrated in
As a result of the determination in S21, in a case where an IP address has already been set when the power source is turned on (S21, Yes), the device 2 proceeds to operations other than the IP address acquisition operation, i.e., normal operations. As a result of the determination in S21, in a case where an IP address has not been set yet when the power source is turned on (S21, No), the IP address request unit 20a proceeds to the IP address acquisition operation in S22 and the subsequent steps.
Next, in a case where an IP address has not been set yet when the power source is turned on, the IP address request unit 20a generates the IP address request signal for requesting an IP address and sends the IP address request signal to the communication network 3 (S22). The IP address request signal is broadcasted using a broadcast address as a transmission destination address. The transmission source address is the MAC address of the device 2.
Next, in response to receiving the IP address distribution signal from the IP address distribution device 1 (S23), the IP address request unit 20a saves, in the storage 23, the IP address included in the IP address distribution signal and performs the initial setting of the IP address (S24). After that, the device 2 proceeds to normal operations (S25). This is the end of the operation of the device 2 at the time of the initial setting of the IP address.
Next, the operation at the time of the resetting of the IP address will be described. In a case where the device 2 does not include the input unit, such as a button does, the IP address resetting process by the pressing of a button or the like cannot be performed. In the present embodiment, therefore, an IP address clear signal for causing the device 2 to erase the IP address is transmitted from the IP address distribution device 1, and the device 2 temporarily enters the state of initial setting of the IP address. After that, the IP address setting process is performed in accordance with the processes in
First, the user operates, for example, the touch panel of the display 1a and causes the display 1a to display a display screen for the resetting of the IP address. On the display screen, the used IP addresses managed by the IP address management table 33a are displayed in association with the in-train installation positions. The IP address management table 33a may be displayed on the display 1a.
Next, the user operates the touch panel to select, from among the used IP addresses displayed on the display 1a, the IP address corresponding to the in-train installation position of the device 2 that is a target for the resetting of the IP address. Consequently, input information for selecting the IP address is input to the IP address distribution device 1.
Next, the IP address clear signal generation unit 30b accepts the input information and generates the IP address clear signal for causing the device 2 to which the IP address is assigned to execute a clearing process on the IP address. The IP address clear signal generation unit 30b then transmits the IP address clear signal to the device 2 using the IP address as the transmission destination address. Subsequent processes are the same as those described using
As mentioned above, according to the present embodiment, both the initial setting and resetting processes for the IP address can be performed even when the device 2 does not include the input unit 21. The configuration, operation, and effect of the present embodiment other than those described above are the same as those in the first embodiment.
The present embodiment can also be used in a case where the device 2 includes the input unit 21. Specifically, in a case where the device 2 includes the input unit 21, the processes in
In addition, as in the modification of the first embodiment, the IP address setting process may be performed via a mobile terminal in such a manner that the wireless communication function is provided in the display 1a of the present embodiment and the mobile terminal and the display 1a are connected to each other so as to be capable of performing wireless communication.
The malfunction determination unit 20b determines whether a malfunction has occurred in a part of the device 2 and transmits malfunction information on the device 2 to the IP address distribution device 1 when a malfunction has occurred.
The IP address distribution device 1, or specifically the control unit 20, refers to the IP address management table 33a in response to receiving malfunction information from the device 2, displays, on the display 1a, the IP address of the transmission source and the in-train installation position associated with the IP address, and displays an indication of the occurrence of the malfunction in the device to which the IP address of the transmission source is assigned.
According to the present embodiment, in a case where a malfunction has occurred in the device 2, the IP address distribution device 1 causes the display 1a to display the in-train installation position of the device 2 in which the malfunction has occurred together with the IP address of the device 2. Therefore, the user can immediately recognize the installation place of the device 2 in which the malfunction has occurred. The operation and effect of the present embodiment other than those described above are the same as those of the first and second embodiments.
In a case where the communication unit 22 of the device 2 malfunctions, the IP address distribution device 1 cannot obtain malfunction information from the device 2. In order to deal with this circumstance, signals informing the IP address distribution device 1 that no communication error is occurring can be transmitted from the device 2 at fixed intervals, and whether or not the signals are received at the IP address distribution device 1 at fixed intervals can be monitored. Specifically, when it is determined that the signals are not being received at fixed intervals, the IP address distribution device 1 determines that an error has occurred in the communication with the device 2. Next, the IP address distribution device 1 refers to the IP address management table 33a, displays, on the display 1a, the IP address of the device 2 and the in-train installation position associated with the IP address, and displays an indication of the occurrence of the error in the communication with the device 2 to which the IP address is assigned. Consequently, the user can immediately recognize the installation place of the device 2 in which the communication error has occurred.
As described above, the present invention is useful as an IP address distribution device, an IP address distribution system, and an IP address distribution method for distributing fixed IP addresses to devices in a train.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2014/080646 | 11/19/2014 | WO | 00 |