WO2015015562A1 - Wireless data collection system, and wireless data collection method - Google Patents

Wireless data collection system, and wireless data collection method Download PDF

Info

Publication number
WO2015015562A1
WO2015015562A1 PCT/JP2013/070565 JP2013070565W WO2015015562A1 WO 2015015562 A1 WO2015015562 A1 WO 2015015562A1 JP 2013070565 W JP2013070565 W JP 2013070565W WO 2015015562 A1 WO2015015562 A1 WO 2015015562A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
polling
packet
information
wireless
Prior art date
Application number
PCT/JP2013/070565
Other languages
French (fr)
Japanese (ja)
Inventor
達矢 副島
芳樹 松浦
悠一 五十嵐
Original Assignee
株式会社日立製作所
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 株式会社日立製作所 filed Critical 株式会社日立製作所
Priority to PCT/JP2013/070565 priority Critical patent/WO2015015562A1/en
Publication of WO2015015562A1 publication Critical patent/WO2015015562A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/22Self-organising networks, e.g. ad-hoc networks or sensor networks with access to wired networks

Definitions

  • the present invention relates to a wireless data collection system and a wireless data collection method.
  • a system that automatically collects energy monitoring data in homes, buildings, factories, etc. by multi-hop communication of a large number of wireless sensor terminals has attracted attention.
  • By connecting sensor terminals that detect power consumption and the like through a wireless multi-hop network it is not necessary to perform cabling or the like, so that a data collection system can be constructed relatively easily.
  • wireless communication has a drawback in that the communication state changes from moment to moment due to changes in obstacles on the communication path and is not stable.
  • a technique for increasing the reliability of data collection by appropriately changing a communication path used for multi-hop communication has been proposed.
  • Patent Document 1 data is exchanged between wireless communication terminals, and a routing table is created by collecting the results of data exchange at a higher node.
  • Patent Document 1 When a communication failure occurs and polling fails, another route is selected by referring to the routing table, and polling from another route is attempted. Thereby, in the prior art, even when a communication failure occurs, polling can be performed by creating an alternative route in the upper node.
  • the surrounding environment of the wireless sensor terminal changes greatly.
  • a communication failure may occur in a plurality of links of a certain wireless sensor terminal.
  • a communication path failure occurs in a plurality of links of a wireless sensor terminal, it is necessary to perform polling from the parent node a plurality of times while changing the communication path, which may take a long time for recovery.
  • a large delay occurs in proportion to the number of multi-hop hops. Therefore, it is necessary to estimate the time required for recovery from a failure according to the number of hops and the number of retries. As a result, for example, the number of terminals that can be managed by the system may be limited, or it may be difficult to recover within a fixed period. When the time required for recovery is too long or when it is difficult to predict, it is not convenient for a person who uses sensor data, and it is difficult to use it for a system that needs to collect data within a predetermined time.
  • an event can be issued from the wireless sensor terminal in order to update the routing information, but the management function of each wireless sensor terminal is controlled while suppressing radio wave interference in the wireless data collection system.
  • a wireless data collection system is a wireless data collection system including a plurality of wireless sensor terminals and a server that acquires data from the plurality of wireless sensor terminals.
  • the sensor terminal receives the polling packet from the server, the sensor terminal broadcasts predetermined terminal information about the own terminal to wireless sensor terminals around the own terminal, and other wireless sensors broadcast from other wireless sensor terminals around the own terminal.
  • Predetermined terminal information related to the terminal is received and held, and the predetermined terminal information related to the own terminal and the predetermined terminal information related to another wireless sensor terminal are transmitted to the server as a polling response to the polling packet.
  • the wireless sensor terminal when receiving a polling packet, can broadcast and hold predetermined terminal information to other wireless sensor terminals in the vicinity.
  • the wireless sensor terminal can transmit predetermined terminal information about the terminal itself and predetermined terminal information received from surrounding wireless sensor terminals to the server.
  • FIG. 1 is an overall configuration diagram of a wireless data collection system. Explanatory drawing which shows the outline
  • (A) shows the structural example of the database which manages the data collected regularly from each wireless sensor terminal,
  • (b) shows the structural example of the link database which manages the communication state between wireless sensor terminals.
  • (A) shows the structural example of the database which manages routing,
  • (b) shows the structural example of the database which manages the information of apparatuses, such as a sensor terminal and a gateway.
  • (A) shows a configuration example of a database that manages node-specific information
  • (b) shows a configuration example of a database that manages data related to neighboring terminals as “peripheral terminals”.
  • the structural example of the database which manages the data collected regularly is shown.
  • (A) is a configuration example of a common header
  • (b) is a configuration example of a polling packet
  • (c) is a configuration example of a polling response packet
  • (d) is a configuration example of a packet for notifying information
  • (E) shows a configuration example of an inquiry packet.
  • the flowchart which shows the process which collects data regularly.
  • the flowchart which shows a polling process.
  • the flowchart which shows the packet communication process which receives and responds to a packet.
  • the flowchart of the process which receives a polling packet The flowchart of the process which receives a polling response packet.
  • the flowchart of the process which receives an information notification packet The flowchart of the process which receives an inquiry packet.
  • the sequence diagram which shows the data collection method The sequence diagram which shows the method of making an inquiry to a failure occurrence terminal from the adjacent terminal which can communicate with a failure occurrence terminal, and broadcasting information from a failure occurrence terminal to a peripheral terminal.
  • each wireless sensor terminal can broadcast predetermined terminal information related to its own terminal before polling response, and predetermined terminal information related to other wireless sensor terminals received last time. And predetermined terminal information about the own terminal to the server.
  • predetermined terminal information about the own terminal to the server.
  • the data detected by the faulty terminal can be collected in the next data collection cycle at the latest, and can be recovered in a short time without depending on the number of pops. Since the failure occurrence terminal is a terminal that has failed in polling communication, it may be called a polling failure terminal.
  • a plurality of wireless sensor terminals whose communication timing is controlled by polling, a data collection server that periodically polls each wireless sensor terminal to collect data, each wireless sensor terminal, and the data collection server A data collection method in a wireless multi-hop communication polling system including a gateway that relays communication with
  • the data collection server fails to collect data from a faulty terminal among the wireless sensor terminals, an inquiry is made to an adjacent terminal capable of directly communicating with the faulty terminal among the wireless sensor terminals. Sending a polling packet with a flag set;
  • the adjacent terminal that has received the polling packet with the inquiry flag set transmits an inquiry packet to the faulty terminal;
  • the neighboring terminal that has received the information notification packet transmits a polling response packet including data in the information notification packet to the data collection server;
  • the data collection server that has received the polling response packet, based on the polling response data and adjacent terminal data, manages the data collected periodically and the communication state between each wireless sensor terminal Updating a link database for managing A data collection method comprising:
  • This embodiment can be further expressed as follows.
  • the data collection server transmits a polling packet including an information notification packet transmission code defining a transmission method of the information notification packet to the wireless sensor terminal,
  • the wireless sensor terminal that has received the polling packet broadcasts an information notification packet according to the information notification packet transmission code or broadcasts an information notification packet in which a save flag for preferentially storing the notified information is set. Selecting either method of not transmitting an information notification packet,
  • the neighboring terminal that has received the information notification packet updates the neighboring terminal database for managing neighboring terminals when the saving flag is set, or when the saving flag is not set. Selecting whether to update the neighboring terminal database based on a predetermined criterion or not to update the neighboring terminal database;
  • the wireless sensor terminal sends a polling response packet including the data of the adjacent terminal database to the data collection server when receiving the current polling packet. Sending, and
  • the data collection server that has received the polling response packet reflects the content of the adjacent terminal data in the link database; A wireless multi-hop communication polling system.
  • the present embodiment even when the surrounding environment of the wireless sensor terminal changes greatly and a communication path failure occurs in a plurality of links, data can be acquired from the failed terminal in a short time and recovered quickly. Furthermore, according to the present embodiment, recovery from failure of data collection due to communication failure can be performed only by communication starting from polling. For this reason, it is not necessary to issue an event from the wireless sensor terminal, and radio wave interference in the data collection system can be suppressed.
  • FIG. 1 shows an overall configuration of a wireless data collection system 1 according to the present embodiment.
  • the system 1 collects sensing data from each wireless sensor terminal 10 by polling using wireless multi-hop communication.
  • a plurality of wireless sensor terminals 10 are distributed in a region such as a residential area, an office building area, an industrial park, or a facility such as a factory or a building.
  • the data collection server 30 collects regularly collected data measured by the sensor unit 15 or the like by the wireless sensor terminal 10 arranged at each measurement point via the communication network 40.
  • Regular collection data also called regular collection value or regular collection information
  • Regular collection data is an example of “data detected by a wireless sensor terminal”.
  • the gateway 20 provided between the data collection server 30 and each wireless sensor terminal 10 receives periodic collection data from each wireless sensor terminal 10 using wireless multi-hop communication, and sends the received data to the data collection server 30. send.
  • the data collection server 30 can manage a plurality of gateways 20, and each gateway 20 can accommodate a plurality of wireless sensor terminals 10. That is, the data collection server 30 can manage a plurality of sensor networks.
  • the wireless sensor terminal 10 periodically measures and holds data such as power consumption and power generation, for example.
  • the information to be measured is not limited to information about power.
  • weather information such as temperature, humidity, and atmospheric pressure
  • social consumption data such as water and sewage usage and gas usage
  • various controls such as temperature, pressure, flow rate, and speed It may be the information.
  • the wireless sensor terminal 10 When the wireless sensor terminal 10 receives the information acquisition request by polling from the data collection server 30, the wireless sensor terminal 10 transmits the periodically collected information periodically measured to the upper node by wireless communication. Furthermore, the wireless sensor terminal 10 has a relay function of transferring packets transmitted from the wireless sensor terminal 10 and the gateway 20 toward another wireless sensor terminal 10 that is a destination.
  • the gateway 20 has a function of relaying communication between each wireless sensor terminal 10 and the data collection server 30 by absorbing differences in communication media and protocols.
  • the communication network 40 connects the communication between the gateway 20 and the data collection server 30 wirelessly or by wire, and is configured as Ethernet (registered trademark) or Internet, for example. Hereinafter, it is referred to as a network 40.
  • the data collection server 30 transmits an information acquisition request from the network 40 to the wireless sensor terminal 10 via the gateway 20 in order to periodically acquire the periodically collected information from each wireless sensor terminal 10.
  • the data collection server 30 receives the regularly collected information transmitted as a response to the information acquisition request by the wireless sensor terminal 10, and accumulates and manages the received information.
  • the wireless communication paths are distinguished from solid lines and broken lines.
  • a communication path indicated by a solid line indicates that the communication path is used as a communication path that enables direct wireless communication.
  • a communication path indicated by a broken line indicates that wireless direct communication is possible, but it is not used as a communication path.
  • the wireless sensor terminal 10 or the gateway 20 that can directly communicate wirelessly is referred to as an adjacent terminal.
  • An adjacent terminal is an example of a “peripheral terminal”.
  • low-speed wireless communication represented by specific low-power wireless is assumed as wireless communication between the wireless sensor terminals 10 and wireless communication between the wireless sensor terminal 10 and the gateway 20.
  • the present invention is not limited to this, and other wireless systems such as a wireless LAN standard represented by IEEE802.11a / b / g / n, IEEE802.15.4, Bluetooth (registered trademark), or UWB may be used.
  • the data collection server 30 polls the wireless sensor terminal 10 in a predetermined order (for example, in the order of node identification numbers) and requests transmission of periodic collection information.
  • the wireless sensor terminal 10 may be abbreviated as the terminal 10 in some cases.
  • the wireless sensor terminal 10 may be abbreviated as the wireless terminal 10.
  • the data collection server 30 tries to communicate from the gateway 20 to the polling target terminal 10 (# 5) via the terminal 10 (# 2), but between the terminal 10 (# 2) and the terminal 10 (# 5). If an obstacle CF such as a vehicle is present, communication from the terminal 10 (# 2) to the terminal 10 (# 5) cannot be performed. Therefore, if the data collection server 30 cannot receive the response from the terminal 10 (# 5) within a certain time, it determines that a failure has occurred.
  • the data collection server 30 since the following specific processing is executed, even when the occurrence of a failure of the terminal 10 (# 5) is detected, the data collection server 30 does not need to take immediate action for recovery. Information collection can be continued.
  • the next polling target terminal is the terminal 10 (# 7).
  • the data collection server 30 determines whether the next polling target terminal 10 (# 7) is an adjacent terminal capable of wireless communication with the faulty terminal 10 (# 5).
  • the data collection server 30 transmits a normal polling packet to the terminal 10 (# 7). (S2).
  • the polling packet reaches the terminal 10 (# 7) from the gateway 20 via the terminal 10 (# 3).
  • the terminal 10 (# 7) When the terminal 10 (# 7) receives the polling packet, the terminal 10 (# 7) broadcasts predetermined terminal information (information notification packet 54, which will be described later) related to the terminal 10 (# 7) to the surroundings (S3). Information broadcast from the terminal 10 (# 7) is received by the terminal 10 (# 6) and the terminal 10 (# 10) and stored when a predetermined criterion is satisfied. After broadcasting the information, the terminal 10 (# 7) returns a polling response including the periodically collected information detected by the terminal (# 7) to the data collection server 30.
  • predetermined terminal information information notification packet 54, which will be described later
  • next polling target terminal is the terminal 10 (# 1).
  • the data collection server 30 determines that the next polling target terminal 10 (# 1) is an adjacent terminal of the faulty terminal 10 (# 5)
  • the data collection server 30 transmits a polling packet including inquiry information to the terminal 10 (# 1). (S4).
  • the terminal 10 (# 1) inquires of the failure occurrence terminal 10 (# 5) about the state by wireless communication in accordance with the inquiry information included in the polling packet (S5).
  • the failure occurrence terminal 10 (# 5) receives the inquiry request from the terminal 10 (# 1), it broadcasts predetermined terminal information (information notification packet) related to the own terminal (# 5) to the surroundings (S6). That is, the inquiry request is an opportunity for the faulty terminal 10 (# 5) to simultaneously transmit information including the state of the own terminal to the other terminals 10 in the vicinity.
  • information broadcast from the faulty terminal 10 (# 5) is received by the terminals 10 (# 1), 10 (# 4), 10 (# 6), 10 (# 8), and 10 (# 9). Is done.
  • the terminal 10 (# 1) as the inquiry source receives the information from the faulty terminal 10 (# 5), it returns a polling response including the update information to the data collection server 30 (S7).
  • the update information includes, for example, regular collection information measured by the own terminal 10 (# 1) and information received from the faulty terminal 10 (# 5) (periodic collection information measured by the faulty terminal 10 (# 5)). And information indicating the wireless communication state between other terminals measured in the previous periodic collection information collection cycle.
  • each terminal 10 when each terminal 10 receives a polling packet from the data collection server 30, it broadcasts information about its own terminal to the surroundings before returning a polling response. Other terminals around that have received the broadcast information hold the power value at the time of information reception as information indicating the state of wireless communication (communication quality). And when these other terminals receive the polling packet to an own terminal, they include the information which shows the state of radio
  • the data collection server 30 does not need to immediately address the recovery of the failure terminal 10 (# 5) even when there is the failure terminal 10 (# 5) from which the periodic collection information cannot be obtained. Recovery of the faulty terminal 10 (# 5) can be attempted while continuing normal information collection processing.
  • the data collection server 30 requests an inquiry to the faulty terminal 10 (# 5) when transmitting a polling packet to the adjacent terminal 10 (# 1) that can wirelessly communicate with the faulty terminal 10 (# 5) ( S4).
  • the adjacent terminal 10 (# 1) inquires of the failure occurrence terminal 10 (# 5) about the state instead of the polling packet (S5).
  • the faulty terminal 10 (# 5) broadcasts the regularly collected information detected by the own terminal (# 5) to the neighboring terminal 10 (# 1) as the inquiry source (S6).
  • the adjacent terminal 10 (# 1) receives the periodic collection information detected by the own terminal (# 1), the periodic collection information detected by the failure occurrence terminal 10 (# 5), and terminals around the own terminal (# 1).
  • the reception strength (communication state) of the received information is returned to the data collection server 30 as a polling response from the own terminal 10 (# 1) (S7).
  • the data collection server 10 can acquire information from the failure occurrence terminal 10 (# 5) while continuing to obtain normal periodic collection information, and the failure collection terminal 10 (# 5) Recovery can be performed.
  • the recovery of the terminal means that the regularly collected information is acquired from the faulty terminal.
  • the data collection server 30 is an example of a “server” and includes, for example, a microprocessor (CPU) 31, a memory 32, an auxiliary storage device 33, an input device 34, an output device 35, and a communication I / F unit 36.
  • the memory 32 stores, for example, a periodic collection program 321 for periodically collecting data from each terminal 10 and a packet communication program 322 for controlling packet transmission / reception.
  • the auxiliary storage device 33 stores, for example, a periodic collection value database 331, a link database 332, a routing database 333, and a device information database 334. A configuration example of these databases will be described later.
  • the input device 34 is a device for the system administrator to input information to the data collection server 30 and is configured by appropriately using, for example, a keyboard, a pointing device, a tablet, a voice input device, a line-of-sight detection device, a motion detection device, or the like. Is done.
  • the output device 35 is a device that is used by the system administrator to extract information from the data collection server 30, and is configured using, for example, a display, a printer, a voice synthesizer, or the like as appropriate.
  • the periodic collection program 321 transmits a polling packet 52 (described later in FIG. 8) to each terminal 10 in order to periodically collect data from each terminal 10 under management. If the data collection from the terminal 10 fails, the periodic collection program 321 sends an inquiry packet 55 for requesting an inquiry from the adjacent terminal to the failed terminal when transmitting the polling packet 52 to the terminal adjacent to the failed terminal. (Described later in FIG. 8).
  • the operation of the periodic collection program (which may be referred to as a data collection program) 321 will be described with reference to FIGS.
  • the packet communication program 322 is a program that transmits / receives data to / from other apparatuses 10 and 20 via the network 40 and the communication I / F unit 36.
  • the packet communication program 322 of the data collection server 30 generates a polling packet 52 having a predetermined structure and transmits it to the terminal 10 to be polled, or periodically based on the contents of the packet received from each terminal 10 via the gateway 20.
  • the collection value database 331, the link database 332, and the adjacent terminal database 223 are updated.
  • the basic operation of the packet communication program is common to the program 322 of the data collection server 30, the program 221 of the gateway 20, and the program 122 of the terminal 10, and will be described later with reference to FIGS.
  • the regular collection value database 331 is a database for managing information collected by each terminal 10 for each time series, and a configuration example thereof will be described later with reference to FIG.
  • the link database 332 is a table for creating a routing table, and manages the state of the radio links of the terminal 10 and the gateway 20.
  • a configuration example of the link database 332 will be described later with reference to FIG.
  • the routing database 333 is a database that manages the routing table of the communication path, and its configuration example will be described later with reference to FIG.
  • the device information database 334 is a database that manages device information of the terminal 10 and the gateway 20, and a configuration example thereof will be described later with reference to FIG.
  • the data collection server 30 may be provided on one computer, or may be configured to realize the function as the data collection server 30 by cooperation of a plurality of computers.
  • the data collection server 30 may be provided on a virtual machine.
  • an operation terminal may be connected to the data collection server 30, and the system administrator may use the data collection server 30 using the operation terminal.
  • the gateway 20 includes, for example, a CPU 21, a memory 22, a display unit 23, an auxiliary storage device 24, a communication I / F 25, a wireless processing unit 26, and a wireless communication antenna 27.
  • a packet communication program 221 for example, a packet communication program 221, a node specific information database 222, and an adjacent terminal database 223 are stored.
  • the display unit 23 is a device for displaying the state of the gateway 20 (eg, whether it is operating normally), and includes, for example, a liquid crystal display, an LED (Light Emitting Diode) lamp, and the like.
  • the packet communication program 221 relays a packet received by the gateway 20 from the network 40 or the wireless communication antenna 27 via the communication I / F 25 and the wireless processing unit 26 to the destination.
  • the packet communication program 221 updates the adjacent terminal database 223 based on the received packet.
  • the packet communication program 221 can be configured similarly to the packet communication program 322 of the data collection server 30 described above. The operation will be described later.
  • the node specific information database 222 is a database for managing information unique to each node such as a node ID (identifier, identification information) of the terminal 10 and a node ID specific to the gateway 20. An example of the configuration will be described later with reference to FIG.
  • the adjacent terminal database 223 is a database for managing information of the terminals 10 that can communicate directly by radio. An example of the configuration will be described later with reference to FIG.
  • the terminal 10 includes, for example, a CPU 11, a memory 12, a display unit 13, an auxiliary storage device 14, a sensor unit 15, a wireless processing unit 16, and a wireless communication antenna 17.
  • the display unit 13 is a device for displaying the state of the terminal 10 (eg, whether it is operating normally), and includes, for example, a liquid crystal display, an LED lamp, and the like. If neither the display unit 23 of the gateway 20 nor the display unit 13 of the terminal 10 is present, there is no problem in operation.
  • a periodic measurement program 121 for example, a packet communication program 122, a periodic measurement value database 123, an adjacent terminal database 124, and a node specific information database 125 are stored.
  • the regular measurement program 121 is a program that stores data obtained from the sensor unit 15 in the regular measurement value database 123 at regular intervals.
  • the packet communication program 122 has a relay function for transmitting a packet received from another terminal (including a gateway) via the wireless communication antenna 17 and the wireless processing unit 16 toward the destination of the packet. Furthermore, the packet communication program 122 updates the periodic measurement value database 123 and the adjacent terminal database 124 according to the type of packet data.
  • the packet communication program 122 can be configured similarly to the packet communication program 322 of the data collection server 30 described above. The operation will be described later.
  • the periodic measurement value database 123 manages the data obtained from the sensor unit 15 in association with the data detection time. An example of the configuration will be described later with reference to FIG.
  • the adjacent terminal database 124 is a database that manages information of terminals (including the gateway 20) that can communicate directly by radio, and can be configured in the same manner as the adjacent terminal database 223 of the gateway 20.
  • the node specific information database 125 is a database for managing information unique to a node such as the node ID of the terminal 10 and the node ID unique to the gateway 20, and is the same as the node specific information database 222 of the gateway 20.
  • the sensor unit 15 is configured as a power meter, a thermometer, a sunshine meter, a pressure gauge, a hygrometer, or the like, for example.
  • the wireless sensor terminal 10 does not have to include the sensor body, and a configuration in which the separately provided sensor body and the terminal 10 are connected wirelessly or by wire may be used.
  • FIG. 4A shows an example of the regularly collected value database 331.
  • the regular collection value database 331 stores, for example, a network ID, a regular collection number, a node ID 3311, a polling communication 3312, a regular collection value 3313, and a regular collection time 3314 in order to manage data collected from the terminal 10.
  • the periodic collection value database 331 manages each information by a table uniquely determined from the values of the network ID and the periodic collection number.
  • FIG. 4A shows a table structure when the network ID is “1” and the periodic collection number is “1”.
  • the node ID column 3311 manages an identifier that uniquely identifies the terminal 10 in each network ID.
  • the identifier may call the identification information or the identification number.
  • the polling communication column 3312 manages information indicating the result of polling communication performed on the terminal 10.
  • an identifier indicating, for example, “success”, “failure”, or “not implemented” is set.
  • the periodic collection value column 3313 manages information acquired by the terminal 10 from the sensor unit 15.
  • a numerical value representing the amount of power used in each power consumer (such as a home) is stored.
  • the regular collection time column 3314 manages the time when the terminal 10 acquires information from the sensor unit 15 (sensing data).
  • the data collection server 30 can also manage a plurality of networks including one gateway 20 and a plurality of terminals 10. Therefore, the regular collection value database 331 prepares a table for each network ID and regular collection number in order to identify each network.
  • the network ID of the periodic collection value database 331 is the same as the network ID of the node specific information databases 222 and 125.
  • the data collection server 30 acquires the regularly collected values in order from all the terminals 10 accommodated in each network identified by the network ID. Therefore, in the periodic collection value database 331, the periodic collection number is used to manage the number of regular collections from the terminal 10.
  • FIG. 4B shows an example of the link database 332.
  • the link database 332 manages which node the terminal 10 and the gateway 20 can directly communicate with in order to create the routing database 333. Accordingly, the link database 332 stores, for example, the network ID, the reception node ID 3321, the transmission node ID 3322, the reception quality 3323, and the link update time 3324 in association with each other.
  • the link database 332 manages each information by a table uniquely determined from the value of the network ID.
  • the illustrated example shows a table whose network ID is “1”.
  • the receiving node ID column 3321 manages the receiving node ID indicating the node ID of the terminal 10 and the gateway 20 that have received wireless communication.
  • the reception node ID corresponds to the node ID 3311 of the periodic collection value database 331.
  • the transmission node ID column 3322 manages the transmission node ID indicating the node ID of the terminal 10 and the gateway 20 transmitted by wireless communication.
  • the transmission node ID corresponds to the node ID 3311 of the periodic collection value database 331.
  • the reception quality column 3323 records the quality when the packet transmitted from the transmission node is received by the reception node as the power value of the received radio wave. That is, the reception quality represents a received power value of radio waves when a wireless packet transmitted by the terminal 10 or the gateway 20 represented by the transmission node ID is received by the terminal 10 or the gateway 20 represented by the reception node ID.
  • the link update time column 3324 manages the link update time indicating the time when the terminal 10 or the gateway 20 indicated by the receiving node ID receives the wireless packet transmitted by the terminal 10 or the gateway 20 indicated by the sending node ID.
  • FIG. 5A shows an example of the routing database 333.
  • the routing database 333 stores a communication path when the data collection server 30 communicates with each terminal 10.
  • the routing database 333 manages each information by a table uniquely determined from the value of the network ID.
  • the illustrated example shows a table whose network ID is “1”.
  • the routing database 333 manages, for example, a transmission node IP address column 3331, a destination node IP address column 3332, and a next relay destination node IP address column 3333 in association with each other.
  • the transmission node IP address column 3331 manages the transmission node IP address representing the IP address of the node that is the transmission source of the packet.
  • the destination node IP address column 3332 manages the destination node IP address representing the IP address of the destination node that finally receives the packet.
  • the next relay destination node IP address column 3333 is a node (terminal 10) selected as a communication relay destination when a packet cannot be transmitted directly from the source node indicated by the source node IP address to the destination node indicated by the destination node IP address. To manage the IP address of the relay destination node representing the IP address.
  • FIG. 5B shows an example of the device information database 334.
  • the device information database 334 is a database for managing device information about the terminal 10 and the gateway 20.
  • the device information database 334 stores, for example, a node ID 3341, a wireless MAC (Media Access Control Address) address 3342, an IP address 3343, and a subnet mask 3344.
  • the device information database 334 manages each information by a table uniquely determined from the value of the network ID.
  • the illustrated example shows a table when the network ID is “1”.
  • the node ID column 3341 manages a node ID that is an identifier for uniquely identifying the terminal 10 in each network ID.
  • the node ID is the same as the node ID 3311 of the periodic collection value database 331.
  • the wireless MAC address column 3342 is an identifier that is uniquely assigned to a communication device, and manages a MAC address that is an identifier determined by IEEE or the like.
  • the IP address column 3343 manages an IP address assigned to a communication device in network communication.
  • the subnet mask column 3344 manages the subnet mask necessary for IP network communication.
  • FIG. 6A shows an example of the node specific information databases 222 and 125.
  • the node specific information database 222 (125) is shown.
  • the code in parentheses corresponds to the node specific information database 125 of the terminal 10.
  • the node specific information database 222 (125) manages each item 2221 (1251) and its value 2222 (1252) related to the own device (gateway 20 or terminal 10) in association with each other.
  • the item 2221 (1251) includes, for example, a node ID, a network ID, a wireless MAC address, an IP address, a subnet mask, a default gateway, and a server IP address.
  • the node ID is an identifier that uniquely identifies the terminal 10 or the gateway 20 in each network identified by the network ID, and is the same as the node ID 3311 of the periodic collection value database 331.
  • the network ID is an identifier for identifying the networks when the data collection server 30 manages a plurality of networks.
  • the wireless MAC address is an identifier uniquely assigned to the communication device, is an identifier determined by IEEE or the like, and is the same as the MAC address of the device information database 334.
  • the IP address is an IP address assigned to the communication device, and is the same as the IP address 3343 of the device information database 334.
  • the subnet mask is a subnet mask necessary for IP network communication, and is the same as the subnet mask 3344 of the device information database 334.
  • the default gateway is a default gateway necessary for IP network communication.
  • the server IP address is an IP address assigned to the data collection server 30.
  • FIG. 6B shows an example of the adjacent terminal databases 223 and 124. Hereinafter, it is shown as the adjacent terminal database 223 (124).
  • the code in parentheses corresponds to the adjacent terminal database 124 of the terminal 10.
  • the adjacent terminal database 223 (124) manages information on nodes (adjacent terminals) in which the own device (gateway 20 or terminal 10) can directly perform wireless communication. Thereby, in the communication between the terminal 10 and the data collection server 30, even when a failure occurs in the communication path, information can be collected from the failure occurrence terminal via the adjacent terminal.
  • the adjacent terminal database 223 (124) includes, for example, the transmission node ID 2231 (1241), the reception quality 2232 (1242), the link update time 2233 (1243), the periodic collection value 2234 (1244) of the transmission source, and the collection time at the transmission source. 2235 (1245) is stored.
  • the transmission node ID column 2231 (1241) manages the transmission node ID which is an identifier representing the node ID of the terminal 10 that transmitted the packet or the node ID of the gateway 20 that transmitted the packet.
  • the transmission node ID is the same as the transmission node ID 3322 of the link database 332.
  • the reception quality column 2232 (1242) is displayed when a wireless packet transmitted from the terminal 10 (or gateway 20) specified by the transmission node ID is received by the terminal 10 (or gateway 20) specified by the reception node ID.
  • the reception quality representing the received power value of the radio wave is managed.
  • the reception quality here is the same as the reception quality 3323 of the link database 332.
  • the link update time column 2233 (1243) indicates that a wireless packet transmitted from the terminal 10 (or gateway 20) specified by the transmission node ID is received by the terminal 10 (or gateway 20) specified by the reception node ID. Managing the reception time of. This reception time is stored in the field 2233 (1243) as the link update time.
  • the link update time here is the same as the link update time 3324 of the link database 332.
  • the transmission source periodic collection value column 2234 (1244) manages data (periodic collection value) collected by the terminal 10 specified by the transmission node ID.
  • the periodic collection time column 2235 (1245) at the transmission source manages the time when the terminal 10 specified by the transmission node ID acquires the regular collection value.
  • the data collection server 30 can collect the periodic collection value (periodic collection information) of the target terminal that failed last time from the adjacent terminal when polling the adjacent terminal.
  • the periodic collection value column 2234 for transmission is used. (1244) and the periodic collection time column 2235 (1245) of transmission are also operable.
  • FIG. 7 shows an example of the periodic measurement value database 123.
  • the regular measurement value database 123 is a database for storing data periodically acquired by the sensor unit 15 and includes, for example, a regular collection value 1231 field and a regular collection time field 1232.
  • the periodic collection value column 1231 manages information acquired by the terminal 10 by the sensor unit 15.
  • the regular collection value here is the same as the regular collection value 3313 of the regular collection value database 331.
  • the regular collection time column 1232 manages the time when the terminal 10 acquires information by the sensor unit 15.
  • the regular collection time here is the same as the regular collection time 3314 of the regular collection value database 331.
  • FIG. 8A shows an example of the common header 51.
  • the common header 51 is header information of an IP packet that is used in common among packets exchanged between the terminal 10, the gateway 20, and the data collection server 30.
  • the common header 51 includes, for example, a network ID 511, a transmission node IP address 512, a destination node IP address 513, a routing information length 514, a transmission node IP address 515, a next relay destination node IP address 516, a final destination node IP address 517, a packet An identification code 518 is included.
  • the network ID 511 is an identifier for specifying which of the plurality of networks managed by the data collection server 30, and is the same as the network ID of the node specific information databases 222 and 125.
  • the transmission node IP address 512 is information indicating the IP address of the transmission source node that first transmitted the packet.
  • the destination node IP address 513 is information representing the IP address of the destination node that finally receives the packet.
  • the routing information length 514 is information indicating the length of the communication path when the packet is transferred from the IP address 512 of the transmission source node to the IP address 513 of the destination node.
  • the transmission node IP address 515, the next relay destination node IP address 516, and the destination node IP address 517 represent routing information.
  • the transmission node IP address 515 is information representing the IP address of the transmission source node of the packet, and has the same value as the transmission node IP address 512.
  • the next relay destination node IP address 516 is the IP address of the node selected as the relay destination of communication when communication from the transmission source node indicated by the transmission node IP address 515 to the destination node indicated by the destination node IP address 517 cannot be performed directly. Information representing an address.
  • the IP addresses of all the relay destination nodes that pass through are stored in the next relay destination node IP address 516 in the order of the communication path.
  • the destination node IP address 517 is information indicating the IP address of the destination node that finally receives the packet, and is the same as the destination node IP address 513.
  • the packet identification code 518 is information representing the type of packet.
  • FIG. 8B shows an example of the polling packet 52.
  • the polling packet 52 is a packet for the data collection server 30 to poll the terminal 10 in order to acquire a regularly collected value from the terminal 10.
  • the polling packet 52 includes, for example, a common header 521, an information notification packet transmission code 522, an inquiry flag 523, and an inquiry destination node IP address 524.
  • the common header 521 is the same as the common header 51.
  • the information notification packet transmission code 522 is information for controlling an information notification operation (broadcast operation) executed by the terminal 10 that has received the polling packet 52.
  • the terminal 10 that has received the polling packet executes one of the following operations.
  • the information of its own terminal is transmitted to the adjacent terminal as an information notification packet.
  • the content of the information notification packet is preferentially stored in the other terminal 10 that has received the information notification packet.
  • the information notification packet is not transmitted.
  • the inquiry flag 523 represents information for the terminal 10 that has received the polling packet 52 to determine whether to transmit an inquiry packet to an adjacent terminal.
  • the inquiry destination node IP address 524 is information representing the IP address of the inquiry destination node of the inquiry packet when the inquiry packet is transmitted to the adjacent terminal.
  • the polling packet 52 may store a control instruction for instructing the terminal 10 to stop or restart the periodic collection by the sensor unit 15.
  • FIG. 8C shows an example of the polling response packet 53.
  • the polling response packet 53 is a packet used when the terminal 10 that has received the polling packet 52 transmits information such as a regularly collected value to the data collection server 30.
  • the polling response packet 53 includes, for example, a common header 531, polling response data code 532, polling response data length 533, polling response data 534, adjacent terminal data code 535, adjacent terminal data length 536, and adjacent terminal data 537.
  • the common header 531 is the same as the common header 51.
  • the polling response data code 532 is information indicating the type of polling response data 534.
  • the polling response data length 533 is information indicating the length of the polling response data 534.
  • the polling response data 534 is information representing data such as a regularly collected value and a regularly collected time of the terminal 10.
  • the adjacent terminal data code 535 is information indicating the type of the adjacent terminal data 537.
  • the adjacent terminal data length 536 is information indicating the length of the adjacent terminal data 537.
  • the adjacent terminal data 537 is information representing data such as reception quality and link update time of the adjacent terminals held in the adjacent terminal databases 223 and 124.
  • FIG. 8D shows an example of the information notification packet 54.
  • the information notification packet 54 is a packet that is used by the terminal 10 that has received the polling packet 52 or the inquiry packet 55 to transmit predetermined terminal information about the own terminal to neighboring terminals.
  • the information notification packet 54 includes, for example, a common header 541, an information notification priority storage flag 542, an information notification code 543, an information notification data length 544, and information notification data 545.
  • the common header 541 is the same as the common header 51.
  • the information notification priority saving flag 542 is information for the terminal 10 (or gateway 20) that has received the information notification packet 54 to determine whether to save the information represented by the information notification data 545 or not.
  • Information notification code 543 is information indicating the type of information notification data 545.
  • the information notification data length 544 is information indicating the length of the information notification data 545.
  • the information notification data 545 represents information such as the regular collection value 1231 and the regular collection time 1232 stored in the regular measurement value database 123 of the terminal 10.
  • FIG. 8E shows an example of the inquiry packet 55.
  • the inquiry packet 55 is a packet when the terminal 10 that has received the polling packet 52 responds according to the information of the inquiry flag 523, and includes a common header 551.
  • the common header 551 is the same as the common header 51.
  • the inquiry packet 55 may include control information for designating the terminal 10 that is the inquiry destination as the number and type of data stored in the information notification packet 54 as a response to the inquiry.
  • FIG. 9 is a flowchart showing a process of collecting the regularly collected values from each terminal 10 executed by the regularly collecting program 321.
  • the periodic collection program 321 collects the regularly collected values detected at each terminal 10 at predetermined intervals by causing the data collection server 30 to sequentially perform polling processing (S12) on each terminal 10 under management.
  • the periodic collection program 321 polls an adjacent terminal that is located around the failed terminal (failure-occurring terminal) and can communicate wirelessly with the failure-occurring terminal. At times, an inquiry packet 55 is transmitted. Thereby, in this embodiment, even when the environment of the wireless communication path changes and the acquisition of the periodic collection value fails, the periodic collection value can be acquired from the faulty terminal 10 only by the process starting from polling.
  • the regular collection program 321 first resets the regular collection number (S10), and then increments the regular collection number by one (S11).
  • the periodic collection program 321 performs a polling process in which any one terminal is selected from the managed terminals 10 according to a predetermined selection criterion and the polling packet 52 is transmitted in order to acquire the regular collection value from the terminal 10. Perform (S12). The polling process will be described later with reference to FIG.
  • the periodic collection program 321 repeats the polling process in step S12 until the polling process for all the terminals 10 is performed (S13).
  • the regular collection program 321 updates the routing table 333 based on the information in the polling response packet 53 received from the polling target terminal (S14).
  • the periodic collection program 321 determines whether a terminal (failure occurrence terminal) for which communication by polling has failed can be polled next time from a new wireless communication path (S15). If the periodic collection program 321 determines that there is a possibility of recovery for the terminal that has failed polling (S15: YES), after waiting for a certain time (S18), it returns to step S11, increments the periodic collection number by one, Regular collection. For example, when measuring power consumption, the next collection cycle is started after a predetermined time such as 30 minutes or 15 minutes has elapsed. In the new collection cycle, the neighboring terminal makes an inquiry to the failed terminal and acquires a regularly collected value from the failed terminal.
  • the periodic collection program 321 If the periodic collection program 321 is unable to create a new wireless communication path to the failed terminal and determines that there is no prospect of recovery of the failed terminal (S15: NO), the periodic collection program 321 starts from all adjacent terminals that can communicate with the failed terminal. It is determined whether the inquiry has been made (S16). If the periodic collection program 321 determines that the inquiry has been attempted from all the adjacent terminals (S16: YES), it issues an isolation warning to the terminal that has failed polling (S17). When there is an adjacent terminal that has not yet attempted an inquiry (S16: NO), in order to make an inquiry at the time of polling with the next periodic collection number, it waits for a certain time (S18) and returns to step S11.
  • the update process of the routing table 333 in step S14 may be performed only when it can be determined that the link database 332 has changed from the adjacent terminal data 537 in the polling response packet 53. Thereby, the update frequency of the routing table 333 by the data collection server 30 can be reduced, and processing load can be reduced.
  • Examples of the case where it can be determined whether the link database 332 has changed based on the adjacent terminal data 537 include, for example, a case where a change of 3 dBm or more occurs in the reception quality, or a case where a terminal that has failed in polling is detected. it can.
  • the periodic collection program 321 refers to the link database 332 to find, for example, the shortest path among a plurality of existing wireless communication path candidates, or to select a path with high reception quality, the number of hops and reception quality To create a new route.
  • step S18 As a method of issuing an isolation warning to the polling failure terminal in step S18, for example, there is a method of displaying a warning on the output device 35 or notifying the administrator of the data collection server 30 by e-mail or the like. For example, it is possible to propose a change of a wireless communication channel to be used or to prompt a field investigation by a maintenance staff by warning the administrator.
  • FIG. 10 is a flowchart showing details of the polling process described in step S12 in FIG.
  • the polling process (S12) is a subroutine of the periodic collection program 321 and executes a normal polling process and a polling process for recovering a polling failure terminal.
  • the periodic collection program 321 first determines the terminal 10 to be polled (S120). The periodic collection program 321 checks whether there is a terminal that has failed in polling as an adjacent terminal of the polling target terminal (S121). That is, the periodic collection program 321 determines whether the polling target terminal is an adjacent terminal of the failed terminal.
  • the periodic collection program 321 determines that the polling target terminal is an adjacent terminal of the failed terminal (S121: YES), it sets the inquiry flag 523 in the polling packet 52 (S122). Further, the periodic collection program 321 sets the information notification packet transmission code 522 of the polling packet 52 (S123). The periodic collection program 321 transmits the polling packet 52 generated in this way with the polling target terminal as the destination (S124).
  • the periodic collection program 321 waits for a predetermined time after the transmission of the polling packet 52, and determines whether the polling response packet 53 is received during the waiting or whether a timeout has occurred (S125).
  • the periodic collection program 321 updates the periodic collection value database 331 and the link database 332 with the data obtained from the polling response packet 53 when receiving the polling response packet 53 from the polling target terminal within a predetermined time. Thereby, the polling communication is successful (S126).
  • the periodic collection program 321 If the polling response packet 53 cannot be received from the polling target terminal within a certain time and a time-out occurs, the periodic collection program 321 assumes that polling communication has failed and cannot acquire data in the periodic collection value database 331. The fact is recorded (S127). In the next loop, the periodic collection program 321 sets an inquiry flag at the time of polling processing to the adjacent terminal of the polling failure terminal (S122).
  • Examples of criteria for determining a polling target terminal in step S120 include, for example, a node ID that is randomly selected from terminals that have not been polled, a node that has failed polling in the previous periodic collection number, and a node ID that is selected first. And so on.
  • Example of setting information notification packet transmission code 522 in step S123 For example, in a mode in which the information notification packet 54 is broadcasted or not transmitted at random, the amount of traffic is reduced, or information is recovered until a fixed periodic collection number is recovered after a communication path failure is recovered. A mode in which the notification priority storage flag 542 is set and the information notification packet 54 is transmitted can be set in the information notification packet transmission code 522.
  • FIG. 11 is a flowchart showing packet communication processing executed by the packet communication programs 322, 221 and 122.
  • the packet communication programs 322, 221 and 122 are abbreviated as packet communication programs.
  • the packet communication program is executed by the server 30, the gateway 20, and the terminal 10, respectively, but the name of the device that executes the packet communication program is changed according to the characteristics of each process S23 to S26 described later.
  • the process of receiving a polling packet (S23), the process of receiving an information notification packet (S25), and the process of receiving an inquiry packet (S26) are mainly executed by the terminal 10, and thus focus on the terminal 10. explain. Since the process of receiving the polling response packet is executed by the data collection server 30, a description will be given focusing on the data collection server 30.
  • the gateway 20 serves as a bridge between the data collection server 30 and each terminal 10 and may be described as being included in the terminal 10.
  • the packet communication program When the terminal receives the packet, the packet communication program confirms the network ID and the destination node IP address included in the common header of the packet. The packet communication program transfers the packet to the next relay terminal as necessary. When the destination of the received packet is its own terminal, the packet communication program performs polling packet reception processing (S23), polling response packet reception processing (S24), information notification packet reception processing (S25), inquiry according to the packet identification code 518 Packet reception processing (S26) is executed.
  • the packet communication program checks whether the ID of the network to which the terminal belongs and the network ID 511 of the packet match (S20). If the packet communication program determines that the ID of the network to which the terminal 10 belongs does not match the network ID set in the received packet (S20: NO), the process ends. This is because a packet outside the assigned range was received.
  • the packet communication program determines that the ID of the network to which the terminal 10 belongs and the network ID of the received packet match (S20: YES)
  • the packet communication program uses the destination node IP address 513 described in the common header 51 to It is determined whether the destination is its own terminal (S21).
  • the packet communication program determines that the destination node that is the final delivery destination of the packet is not its own terminal (S21: NO), it refers to the next relay destination node IP address 516 set in the common header 51 of the packet. Then, the packet is transferred to the next terminal described therein (S27).
  • the packet communication program determines that the destination of the received packet is its own terminal (S21: YES), it checks the packet identification code 518 of the packet (S22).
  • the packet communication program executes a process of receiving a polling packet (S23).
  • the packet communication program receives a polling response packet (S24).
  • the packet identification code is “10”
  • the packet communication program executes a process of receiving an information notification packet (S25)
  • the packet identification code is “11”
  • the packet communication program receives a query packet (S26). Execute. Details will be described later with reference to FIGS. 12, 13, 14, and 15, respectively.
  • FIG. 12 is a flowchart showing details of the polling packet reception process (S23) described in FIG.
  • the polling packet reception processing S23 is one of the subroutines of the packet communication program as described in FIG. 11, and transmits the information notification packet 54 in accordance with the information notification packet transmission code 522 in the packet. Further, the polling packet reception process S23 transmits an inquiry packet 55 according to the inquiry flag 523 of the packet, and sets the data measured by the own terminal (periodically collected value) and the data detected by the adjacent terminal in the polling response packet 53. Then, the data is transmitted to the server 30.
  • the packet communication program confirms the value of the information notification packet transmission code 522 of the received polling packet 52 (S230). If the transmission code 522 is “00”, the packet communication program does nothing and moves to S233 described later. If the transmission code 522 is “10”, the packet communication program broadcasts the information notification packet 54 to surrounding terminals (S232). ", The information notification priority storage flag 542 is set (S231), and then the information notification packet 54 is broadcast (S232).
  • the packet communication program determines whether the inquiry flag 523 of the received polling packet 52 is set (S233). When the inquiry flag 523 is set (S233: TRUE), the packet communication program transmits an inquiry packet 55 to the terminal having the inquiry node IP address 524 (S234).
  • the packet communication program compares the adjacent terminal database 124 with the previous polling packet reception time. It is determined whether it has been updated (S236). The packet communication program can determine whether the adjacent terminal database 124 has been updated based on the reception strength of the information notification packet 54 received from another terminal (adjacent terminal) around the terminal.
  • the packet communication program determines that the adjacent terminal database 124 has been updated (S236: YES), it stores data related to the adjacent terminal in the adjacent terminal database 124 (S237), and sends a polling response packet 53 to the data collection server 30. Transmit (S238).
  • the routing information for transmitting the polling response packet 53 can be obtained by setting the routing information 515 to 517 of the received polling packet 52 in reverse order. Accordingly, the polling response packet 53 can be transmitted to the data collection server 30 by tracing back the route through which the polling packet 52 is relayed (S238).
  • the packet communication program skips steps S234 and S235 and proceeds to step S236. If it is determined that the adjacent terminal database 124 is not updated (S236: NO), the packet communication program skips step S237 and proceeds to step S238.
  • FIG. 13 is a flowchart showing details of the polling response packet reception process (S24) described in FIG.
  • the polling response packet reception process S24 is one of the subroutines of the packet communication program, and updates the periodic collection value database 331 and the link database 332 according to the data of the polling response packet 53 returned from the polling target terminal 10.
  • the packet communication program updates the regularly collected value database 331 based on the polling response data 534 of the received polling response packet 53 (S240).
  • the packet communication program checks the adjacent terminal data code 535 of the polling response packet 53 and determines whether there is adjacent terminal data 537 (S241). If it is determined that there is adjacent terminal data 537 (S241: YES), the packet communication program updates the periodic collection value database 331 and the link database 332 with the adjacent terminal data 537 (S242).
  • the packet communication program stores the data such as the periodic collection value of the adjacent terminal in the periodic collection value database 331, and further stores the data of the reception quality when the packet from the adjacent terminal is received in the link database 332. save.
  • FIG. 14 is a flowchart showing details of the information notification packet reception process S25 described in FIG.
  • the information notification packet reception process S25 is one of subroutines of the packet communication program.
  • the information notification packet reception process S25 when the terminal 10 receives the information notification packet 54 transmitted from the adjacent terminal, the information notification data 545 is stored according to the priority.
  • the packet communication program checks whether the information notification priority storage flag 542 of the information notification packet 54 is set (S250). When it is determined that the save flag 542 is set (S250: TRUE), the packet communication program saves the information notification data 545 in the adjacent terminal databases 223 and 124 (S252).
  • the packet communication program determines that the information notification priority saving flag 542 of the information notification packet 54 is not set (S250: FALSE), it determines whether to save the information notification (S251).
  • the information notification data 545 is saved in the adjacent terminal databases 223 and 124 (S252). If it is determined that the packet communication program is not to be saved, that is, if it is determined that the information notification data 545 is to be discarded, this processing ends.
  • step S251 for example, whether or not to save is determined randomly based on a random number.
  • the power value at the time of reception of the information notification packet 54 is equal to or larger than a predetermined value, the information is stored and received. If the power value at the time is less than a predetermined value, it can be discarded, the gateway 20 does not store it, and the terminal 10 stores it as long as the memory is free.
  • terminal 10 has a sufficient storage area, S250 and S251 may be removed, and information notification data 545 of all information notification packets 54 received by terminal 10 may be stored in adjacent terminal databases 223 and 124. .
  • FIG. 15 is a flowchart showing details of the inquiry packet reception process S26 described in FIG.
  • the inquiry packet reception process S26 is one of the subroutines of the packet communication program.
  • the information notification packet 54 in which the information notification priority storage flag 542 is set is broadcast.
  • the packet communication program sets the information notification priority storage flag 542 in the information notification packet 54 (S260).
  • the packet communication program broadcasts the information notification packet 54 in which the information notification priority storage flag 542 is set (S261).
  • FIG. 16 is a sequence diagram illustrating an example of collecting data from each terminal 10 by polling using wireless multi-hop communication.
  • the periodic collection program 321 of the data collection server 30 determines the polling target to be the terminal 10 of the node ID 11 (S30), sets the information notification packet transmission code 522 to “10” (S31), and transmits the polling packet 52. (S32).
  • the packet communication program 221 of the gateway 20 transfers the polling packet 52 to the next relay destination node described in the routing information (S33).
  • the packet communication program 122 of the terminal 10 determines the value of the information notification packet transmission code 522 (S34).
  • the packet communication program 122 broadcasts the information notification packet 54 in which the storage flag is not set (S35).
  • the terminal 10 (ID12) is an adjacent terminal that can directly perform wireless communication with the terminal 10 (ID11).
  • the packet communication program 122 of the terminal 10 (ID12) determines whether or not to save the data of the packet 54 (S36). If it is determined that the packet communication program 122 of the terminal 10 (ID12) is to be saved, the information notification data 545 of the packet 54 received from the terminal 10 (ID11) is saved in the adjacent terminal database 124 of the terminal 10 (ID12) (S37). ). When the packet communication program 122 determines not to save, the packet communication program 122 discards the information notification packet 54 received from the terminal 10 (ID11).
  • the packet communication program 221 of the gateway 20 determines whether or not to save the data of the packet 54 (S38).
  • the packet communication program 221 of the gateway 20 determines not to store the information notification data 545 of the information notification packet 54 and discards the packet 54.
  • the packet communication program 122 of the terminal 10 (ID11) confirms the data in the adjacent terminal database 124 possessed by the terminal 10 (ID11) (S39). If the packet communication program 122 of the terminal 10 (ID11) determines that there is no change in data compared to the previous transmission of the polling response packet 53, the packet communication program 122 transmits the normal polling response packet 53 to the server 30 (S40). .
  • the packet communication program 221 of the gateway 20 transfers the polling response packet 53 received from the terminal 10 (ID11) to the data collection server 30 as the next relay destination node (S41).
  • the packet communication program 322 of the data collection server 30 stores the polling response data 534 in the periodic collection value database 331 (S42).
  • the packet communication program 322 confirms the adjacent terminal data code 535 (S43) and determines that the received polling response packet 53 does not include the data of the adjacent terminal, the packet communication program 322 ends.
  • the data collection server 30 can update information (link information) about the adjacent terminals of the terminal 10 while collecting the regularly collected values from each terminal 10 in order.
  • FIG. 17 is a sequence diagram illustrating an example of acquiring the regularly collected value at the failed terminal via the adjacent terminal when polling the adjacent terminal of the terminal that has failed in the polling.
  • polling to the terminal 10 (ID12) has failed will be described.
  • the periodic collection program 321 of the data collection server 30 sets the inquiry flag 523 for the terminal 10 (ID12) in the polling packet 52 to the terminal 10 (ID11) (S50), and sets the information notification packet transmission code 522 to “00”. (S51).
  • the periodic collection program 321 transmits the polling packet 52 thus generated to the polling target terminal 10 (ID11) (S52).
  • the packet communication program 221 of the gateway 20 transmits the polling packet 52 to the terminal 10 (ID11) as the next relay destination node (S53).
  • the packet communication program 122 of the terminal 10 determines the information notification packet transmission code 522 (S54).
  • the packet communication program 122 since “00” is set in the information notification packet transmission code 522, the packet communication program 122 does not broadcast the information notification packet 54. That is, when an adjacent terminal (inquiry source terminal) that makes an inquiry to a failed terminal (failure-occurring terminal) receives a polling packet 52 addressed to itself, it does not broadcast the information notification packet 54 about the terminal. On the other hand, the information notification packet 54 may be broadcast from the inquiry source terminal.
  • the terminal 10 (ID11) confirms the inquiry flag 523, and transmits the inquiry packet 55 to the terminal 10 (ID12) that failed to poll (S56).
  • the packet communication program 122 of the terminal 10 When the packet communication program 122 of the terminal 10 (ID12) receives the inquiry packet 55 from the adjacent terminal 10 (ID11) that is the inquiry source, the packet communication program 122 generates the information notification packet 54 in which the information notification priority storage flag 542 is set (S57), The information notification packet 54 is broadcast (S58).
  • the packet communication program 122 of the terminal 10 (ID11) receives the information notification packet 54 broadcast from the failed terminal 10 (ID12), the information notification data 545 of the packet 54 is stored in the adjacent terminal database held by the terminal 10 (ID11). It is stored in 124 (S59). This is because the information notification priority saving flag 542 is set in step S57 in the information notification packet 54 received by the terminal 10 (ID11).
  • the packet communication program 122 of the terminal 10 sets the data extracted from the information notification packet 54 of the terminal 10 (ID12) in the adjacent terminal data 537 of the polling response packet 53 (S60).
  • the packet communication program 122 of the terminal 10 (ID11) transmits the polling response packet 53 having the adjacent terminal data to the data collection server 30 (S61).
  • the packet communication program 221 of the gateway 20 transmits the polling response packet 53 to the data collection server 30 which is the next relay destination node (S62).
  • step S63 is shown as if executed backward, but in actuality, steps S63 to S66 are executed after steps S61 and S62.
  • the packet communication program 322 of the data collection server 30 When the packet communication program 322 of the data collection server 30 receives the polling response packet 53, it stores the periodic collection value of the terminal 10 (ID11) included in the polling response data 534 in the periodic collection value database 331 (S63).
  • the packet communication program 322 confirms the adjacent terminal data code 535 (S64), stores data such as a regularly collected value in the adjacent terminal data 537 in the regularly collected value database 331 (S65), and further receives reception quality data. Are stored in the link database 332 (S66).
  • the wireless data collection system 1 can quickly cope with a communication failure and has high usability.
  • the new communication path is used in the next collection cycle.

Abstract

The present invention is capable of coping with an early stage fault in a communication path. A wireless data collection system (1) comprising a plurality of wireless sensor terminals (10) and a server (30) that acquires data from the plurality of wireless sensor terminals. If a polling packet is received from the server (30), the plurality of wireless sensor terminals (10) broadcast prescribed terminal information pertaining to a terminal in question to the wireless sensor terminals surrounding the terminal in question. The wireless sensor terminals (10) receive and hold prescribed terminal information which has been broadcast from the other wireless sensor terminals surrounding the terminal in question and pertains to the other wireless sensor terminals, and send the prescribed terminal information pertaining to the terminal in question and the prescribed terminal information pertaining to the other wireless sensor terminals to the server (30) as a polling response to the polling packet.

Description

無線式データ収集システムおよび無線式データ収集方法Wireless data collection system and wireless data collection method
 本発明は、無線式データ収集システムおよび無線式データ収集方法に関する。 The present invention relates to a wireless data collection system and a wireless data collection method.
 多数の無線センサ端末をマルチホップ通信させることで、家庭、ビルディング、工場などでのエネルギー監視データを、自動的に収集するシステムが注目されている。電力消費量などを検出するセンサ端末を無線マルチホップネットワークで接続することで、ケーブル配線などを行う必要がないため、データ収集システムを比較的簡易に構築できる。 A system that automatically collects energy monitoring data in homes, buildings, factories, etc. by multi-hop communication of a large number of wireless sensor terminals has attracted attention. By connecting sensor terminals that detect power consumption and the like through a wireless multi-hop network, it is not necessary to perform cabling or the like, so that a data collection system can be constructed relatively easily.
 しかし、無線通信では、通信経路上の障害物の変化などにより、通信状態が時々刻々と変化し、安定しないといった欠点がある。そこで、マルチホップ通信に利用する通信経路を適宜変更することで、データ収集の信頼性を挙げる手法が提案されている。 However, wireless communication has a drawback in that the communication state changes from moment to moment due to changes in obstacles on the communication path and is not stable. In view of this, there has been proposed a technique for increasing the reliability of data collection by appropriately changing a communication path used for multi-hop communication.
 一つの従来技術では、無線通信端末同士でデータを交換し、データ交換の結果を上位ノードでまとめることでルーティングテーブルを作成する(特許文献1)。その従来技術では、通信障害が発生してポーリングが失敗した場合、ルーティングテーブルを参照することで別経路を選択し、別経路からのポーリングを試みる。これにより、従来技術では、通信障害が発生した場合でも、上位ノードにて代替経路を作成してポーリングを行うことができる。 In one conventional technique, data is exchanged between wireless communication terminals, and a routing table is created by collecting the results of data exchange at a higher node (Patent Document 1). In the prior art, when a communication failure occurs and polling fails, another route is selected by referring to the routing table, and polling from another route is attempted. Thereby, in the prior art, even when a communication failure occurs, polling can be performed by creating an alternative route in the upper node.
特開2011-4096号公報Japanese Patent Application Laid-Open No. 2011-4096
 しかしながら、例えば、建築工事などが始まったり、無線センサ端末間に新たな構造物や車両が長期間置かれたりすると、無線センサ端末の周辺環境が大きく変化する。無線センサ端末の周辺環境が大きく変化すると、ある無線センサ端末の有する複数リンクにおいて通信障害が発生することがある。無線センサ端末の複数リンクにおいて通信路の障害が発生した場合、親ノードからのポーリングを通信経路を変えながら複数回実行する必要があり、復旧に時間がかかる恐れがある。 However, for example, when a construction work or the like starts or a new structure or vehicle is placed between the wireless sensor terminals for a long period of time, the surrounding environment of the wireless sensor terminal changes greatly. When the surrounding environment of a wireless sensor terminal changes greatly, a communication failure may occur in a plurality of links of a certain wireless sensor terminal. When a communication path failure occurs in a plurality of links of a wireless sensor terminal, it is necessary to perform polling from the parent node a plurality of times while changing the communication path, which may take a long time for recovery.
 特に、無線マルチホップネットワークを用いる場合、マルチホップのホップ数に比例して大きな遅延が発生する。そのため、障害からの復旧に要する時間を、ホップ数やリトライ回数に応じて見積もる必要がある。この結果、例えば、システムで管理できる端末数に制限が生じたり、定まった周期内での復旧が難しくなることが考えられる。復旧に要する時間があまりにも大きい場合や予測がつきにくい場合は、センサデータを使用する者にとって使い勝手が悪く、定められた時間内にデータを収集する必要があるシステムに用いることは難しい。 Especially when a wireless multi-hop network is used, a large delay occurs in proportion to the number of multi-hop hops. Therefore, it is necessary to estimate the time required for recovery from a failure according to the number of hops and the number of retries. As a result, for example, the number of terminals that can be managed by the system may be limited, or it may be difficult to recover within a fixed period. When the time required for recovery is too long or when it is difficult to predict, it is not convenient for a person who uses sensor data, and it is difficult to use it for a system that needs to collect data within a predetermined time.
 また、従来技術では、ルーティング情報を更新するために、無線センサ端末からイベントを発行できるようにしているが、無線式データ収集システム内の電波干渉を抑制しながら、各無線センサ端末の管理機能を簡略化するためには、ポーリングを起点とした通信以外行わないことが望ましい。 In addition, in the prior art, an event can be issued from the wireless sensor terminal in order to update the routing information, but the management function of each wireless sensor terminal is controlled while suppressing radio wave interference in the wireless data collection system. In order to simplify, it is desirable not to perform communication other than polling as a starting point.
 本発明は上記課題に鑑みてなされたもので、その目的は、使い勝手を向上できるようにした無線式データ収集システムおよび無線式データ収集方法を提供することにある。本発明の他の目的は、ある無線センサ端末との通信に障害が発生した場合でも、比較的短時間で対応できるようにした無線式データ収集システムおよび無線式データ収集方法を提供することにある。 The present invention has been made in view of the above problems, and an object of the present invention is to provide a wireless data collection system and a wireless data collection method capable of improving usability. Another object of the present invention is to provide a wireless data collection system and a wireless data collection method capable of handling a communication failure with a certain wireless sensor terminal in a relatively short time. .
 上記課題を解決すべく、本発明に係る無線式データ収集システムは、複数の無線センサ端末と、複数の無線センサ端末からデータを取得するサーバを備える無線式データ収集システムであって、複数の無線センサ端末は、サーバからのポーリングパケットを受信すると、自端末に関する所定の端末情報を自端末周辺の無線センサ端末にブロードキャストし、自端末周辺の他の無線センサ端末からブロードキャストされた、他の無線センサ端末に関する所定の端末情報を受信して保持し、自端末に関する所定の端末情報と他の無線センサ端末に関する所定の端末情報とを、ポーリングパケットに対するポーリング応答としてサーバに送信する。 In order to solve the above-described problem, a wireless data collection system according to the present invention is a wireless data collection system including a plurality of wireless sensor terminals and a server that acquires data from the plurality of wireless sensor terminals. When the sensor terminal receives the polling packet from the server, the sensor terminal broadcasts predetermined terminal information about the own terminal to wireless sensor terminals around the own terminal, and other wireless sensors broadcast from other wireless sensor terminals around the own terminal. Predetermined terminal information related to the terminal is received and held, and the predetermined terminal information related to the own terminal and the predetermined terminal information related to another wireless sensor terminal are transmitted to the server as a polling response to the polling packet.
 本発明によれば、無線センサ端末は、ポーリングパケットを受信すると、周辺の他の無線センサ端末に所定の端末情報をブロードキャストして保持させることができる。無線センサ端末は、ポーリングパケットに応答するときに、自端末についての所定の端末情報と周辺の無線センサ端末から受信した所定の端末情報とをサーバに送信できる。 According to the present invention, when receiving a polling packet, the wireless sensor terminal can broadcast and hold predetermined terminal information to other wireless sensor terminals in the vicinity. When responding to the polling packet, the wireless sensor terminal can transmit predetermined terminal information about the terminal itself and predetermined terminal information received from surrounding wireless sensor terminals to the server.
無線式データ収集システムの全体構成図。1 is an overall configuration diagram of a wireless data collection system. 無線式データ収集方法の概要を示す説明図。Explanatory drawing which shows the outline | summary of a radio | wireless-type data collection method. 無線式データ収集システムが含む各装置の構成図。The block diagram of each apparatus which a wireless data collection system contains. (a)は各無線センサ端末から定期的に収集するデータを管理するデータベースの構成例を、(b)は無線センサ端末間の通信状態を管理するリンクデータベースの構成例を、示す。(A) shows the structural example of the database which manages the data collected regularly from each wireless sensor terminal, (b) shows the structural example of the link database which manages the communication state between wireless sensor terminals. (a)はルーティングを管理するデータベースの構成例を、(b)センサ端末およびゲートウェイなどの機器の情報を管理するデータベースの構成例を、示す。(A) shows the structural example of the database which manages routing, (b) shows the structural example of the database which manages the information of apparatuses, such as a sensor terminal and a gateway. (a)はノード固有情報を管理するデータベースの構成例を、(b)は「周辺端末」としての隣接端末に関するデータを管理するデータベースの構成例を、示す。(A) shows a configuration example of a database that manages node-specific information, and (b) shows a configuration example of a database that manages data related to neighboring terminals as “peripheral terminals”. 定期的に収集するデータを管理するデータベースの構成例を示す。The structural example of the database which manages the data collected regularly is shown. (a)は共通ヘッダの構成例を、(b)はポーリングパケットの構成例を、(c)はポーリング応答パケットの構成例を、(d)は情報を通知するためのパケットの構成例を、(e)は問合せパケットの構成例を、示す。(A) is a configuration example of a common header, (b) is a configuration example of a polling packet, (c) is a configuration example of a polling response packet, (d) is a configuration example of a packet for notifying information, (E) shows a configuration example of an inquiry packet. データを定期的に収集する処理を示すフローチャート。The flowchart which shows the process which collects data regularly. ポーリング処理を示すフローチャート。The flowchart which shows a polling process. パケットを受信して応答するパケット通信処理を示すフローチャート。The flowchart which shows the packet communication process which receives and responds to a packet. ポーリングパケットを受信する処理のフローチャート。The flowchart of the process which receives a polling packet. ポーリング応答パケットを受信する処理のフローチャート。The flowchart of the process which receives a polling response packet. 情報通知パケットを受信する処理のフローチャート。The flowchart of the process which receives an information notification packet. 問合せパケットを受信する処理のフローチャート。The flowchart of the process which receives an inquiry packet. データ収集方法を示すシーケンス図。The sequence diagram which shows the data collection method. 障害発生端末と通信可能な隣接端末から障害発生端末に問い合わせて、障害発生端末から周辺の端末に情報をブロードキャストさせる方法を示すシーケンス図。The sequence diagram which shows the method of making an inquiry to a failure occurrence terminal from the adjacent terminal which can communicate with a failure occurrence terminal, and broadcasting information from a failure occurrence terminal to a peripheral terminal.
 以下、図面に基づいて、本発明の実施の形態を説明する。本実施形態では、以下に詳述する通り、各無線センサ端末は、ポーリング応答前に、自端末に関する所定の端末情報をブロードキャストすることができ、前回受信した他の無線センサ端末に関する所定の端末情報と自端末に関する所定の端末情報とをサーバに応答する。障害の発生した端末については、他経路からデータを直接的に収集するのではなく、障害発生端末と通信可能な隣接端末から障害発生端末に契機を与えることで、障害発生端末から所定の端末情報をブロードキャストさせる。従って、本実施形態では、遅くとも次回のデータ収集サイクルで、障害発生端末で検出したデータを収集することができ、ポップ数に依存せずに短時間で復旧することができる。障害発生端末は、ポーリング通信に失敗した端末であるから、ポーリング失敗端末と呼び変えてもよい。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In this embodiment, as will be described in detail below, each wireless sensor terminal can broadcast predetermined terminal information related to its own terminal before polling response, and predetermined terminal information related to other wireless sensor terminals received last time. And predetermined terminal information about the own terminal to the server. For a failed terminal, data is not collected directly from other routes, but by giving a trigger to the failed terminal from an adjacent terminal that can communicate with the failed terminal, the predetermined terminal information is obtained from the failed terminal. Broadcast. Therefore, in the present embodiment, the data detected by the faulty terminal can be collected in the next data collection cycle at the latest, and can be recovered in a short time without depending on the number of pops. Since the failure occurrence terminal is a terminal that has failed in polling communication, it may be called a polling failure terminal.
 本実施形態では、例えば、以下のように表現することもできる。 In this embodiment, for example, it can be expressed as follows.
 通信タイミングがポーリングにより制御されている複数の無線センサ端末と、前記各無線センサ端末に対して定期的にポーリングを行ってデータを収集するデータ収集サーバと、前記各無線センサ端末と前記データ収集サーバとの通信を中継するゲートウェイとを含む無線マルチホップ通信ポーリングシステムにおけるデータ収集方法であって、 A plurality of wireless sensor terminals whose communication timing is controlled by polling, a data collection server that periodically polls each wireless sensor terminal to collect data, each wireless sensor terminal, and the data collection server A data collection method in a wireless multi-hop communication polling system including a gateway that relays communication with
 前記データ収集サーバが、前記各無線センサ端末のうち障害の発生した障害発生端末からのデータ収集に失敗した場合、前記各無線センサ端末のうち前記障害発生端末と直接通信可能な隣接端末に、問い合わせフラグを設定したポーリングパケットを送信するステップと、 When the data collection server fails to collect data from a faulty terminal among the wireless sensor terminals, an inquiry is made to an adjacent terminal capable of directly communicating with the faulty terminal among the wireless sensor terminals. Sending a polling packet with a flag set;
 前記問い合わせフラグをセットしたポーリングパケットを受信した前記隣接端末が、前記障害発生端末に問合せパケットを送信するステップと、 The adjacent terminal that has received the polling packet with the inquiry flag set transmits an inquiry packet to the faulty terminal;
 前記問合せパケットを受信し、前記障害発生端末が情報通知パケットをブロードキャストするステップと、 Receiving the inquiry packet and broadcasting the information notification packet by the failed terminal;
 前記情報通知パケットを受信した前記隣接端末が、前記情報通知パケット内のデータを含むポーリング応答パケットを、前記データ収集サーバに送信するステップと、 The neighboring terminal that has received the information notification packet transmits a polling response packet including data in the information notification packet to the data collection server;
 前記ポーリング応答パケットを受信した前記データ収集サーバが、ポーリング応答データおよび隣接端末データをもとに、定期的に収集するデータを管理するための定期収集値データベースと前記各無線センサ端末間の通信状態を管理するためのリンクデータベースとを更新するステップと、
を含むことを特徴とするデータ収集方法。
The data collection server that has received the polling response packet, based on the polling response data and adjacent terminal data, manages the data collected periodically and the communication state between each wireless sensor terminal Updating a link database for managing
A data collection method comprising:
 本実施形態は、さらに以下のように表現することもできる。 This embodiment can be further expressed as follows.
 前記データ収集サーバは、前記無線センサ端末に情報通知パケットの送信方法を規定する情報通知パケット送信コードを含むポーリングパケットを送信し、 The data collection server transmits a polling packet including an information notification packet transmission code defining a transmission method of the information notification packet to the wireless sensor terminal,
 前記ポーリングパケットを受信した前記無線センサ端末が、前記情報通知パケット送信コードに従って、情報通知パケットをブロードキャストするか、または、通知した情報を優先的に保存する保存フラグを設定した情報通知パケットをブロードキャストするか、または、情報通知パケットを送信しないか、のいずれかの方法を選択するステップと、 The wireless sensor terminal that has received the polling packet broadcasts an information notification packet according to the information notification packet transmission code or broadcasts an information notification packet in which a save flag for preferentially storing the notified information is set. Selecting either method of not transmitting an information notification packet,
 前記情報通知パケットを受信した隣接端末は、前記保存フラグが設定されている場合には隣接端末を管理するための隣接端末データベースを更新するか、または、前記保存フラグが設定されていない場合には所定の判定基準に基づいて前記隣接端末データベースを更新するか、または、前記隣接端末データベースを更新しないかのいずれかを選択するステップと、 The neighboring terminal that has received the information notification packet updates the neighboring terminal database for managing neighboring terminals when the saving flag is set, or when the saving flag is not set. Selecting whether to update the neighboring terminal database based on a predetermined criterion or not to update the neighboring terminal database;
 前記各無線センサ端末は、前回のポーリング時から前記隣接端末データベースの更新があった場合には、今回のポーリングパケットの受信時に、前記隣接端末データベースのデータを含むポーリング応答パケットを前記データ収集サーバに送信するステップと、 If each of the wireless sensor terminals has updated the adjacent terminal database since the previous polling, the wireless sensor terminal sends a polling response packet including the data of the adjacent terminal database to the data collection server when receiving the current polling packet. Sending, and
 前記ポーリング応答パケットを受信した前記データ収集サーバは、前記隣接端末データの内容を前記リンクデータベースに反映するステップと、
を含む無線マルチホップ通信ポーリングシステム。
The data collection server that has received the polling response packet reflects the content of the adjacent terminal data in the link database;
A wireless multi-hop communication polling system.
 本実施形態によれば、無線センサ端末の周辺環境が大きく変わり、複数リンクにおいて通信路の障害が発生した場合でも、短時間で障害発生端末からデータを取得して、速やかに復旧できる。さらに、本実施形態によれば、通信障害によるデータ収集の失敗からの復旧を、ポーリングを起点とした通信のみで行うことができる。このため、無線センサ端末からのイベント発行が不要であり、データ収集システム内での電波干渉などを抑制することができる。 According to the present embodiment, even when the surrounding environment of the wireless sensor terminal changes greatly and a communication path failure occurs in a plurality of links, data can be acquired from the failed terminal in a short time and recovered quickly. Furthermore, according to the present embodiment, recovery from failure of data collection due to communication failure can be performed only by communication starting from polling. For this reason, it is not necessary to issue an event from the wireless sensor terminal, and radio wave interference in the data collection system can be suppressed.
 図1は、本実施例に関わる無線式データ収集システム1の全体構成を示す。本システム1は、無線マルチホップ通信を用いたポーリングにより、各無線センサ端末10からセンシングデータを収集する。 FIG. 1 shows an overall configuration of a wireless data collection system 1 according to the present embodiment. The system 1 collects sensing data from each wireless sensor terminal 10 by polling using wireless multi-hop communication.
 本システム1では、例えば、住宅地、オフィスビル街、工業団地などの地域内に、または、工場やビルディングなどの施設内に、複数の無線センサ端末10を分散して配置している。データ収集サーバ30は、各計測点に配置された無線センサ端末10がセンサ部15などで計測した定期収集データを、通信ネットワーク40を介して収集する。定期収集データ(定期収集値または定期収集情報とも呼ぶ)は、「無線センサ端末で検出したデータ」の例である。 In the present system 1, for example, a plurality of wireless sensor terminals 10 are distributed in a region such as a residential area, an office building area, an industrial park, or a facility such as a factory or a building. The data collection server 30 collects regularly collected data measured by the sensor unit 15 or the like by the wireless sensor terminal 10 arranged at each measurement point via the communication network 40. Regular collection data (also called regular collection value or regular collection information) is an example of “data detected by a wireless sensor terminal”.
 データ収集サーバ30と各無線センサ端末10の間に設けられるゲートウェイ20は、無線マルチホップ通信を用いて、各無線センサ端末10からの定期収集データを受信し、その受信データをデータ収集サーバ30に送る。データ収集サーバ30は、複数のゲートウェイ20を管理することができ、各ゲートウェイ20にはそれぞれ複数の無線センサ端末10を収容することができる。つまり、データ収集サーバ30は、複数のセンサネットワークを管理可能である。 The gateway 20 provided between the data collection server 30 and each wireless sensor terminal 10 receives periodic collection data from each wireless sensor terminal 10 using wireless multi-hop communication, and sends the received data to the data collection server 30. send. The data collection server 30 can manage a plurality of gateways 20, and each gateway 20 can accommodate a plurality of wireless sensor terminals 10. That is, the data collection server 30 can manage a plurality of sensor networks.
 無線センサ端末10は、例えば、電力消費量や発電量のようなデータを定期的に計測して保持する。計測対象の情報は電力に関する情報に限らない。例えば、温度、湿度、気圧などの気象情報でもよいし、上下水道の使用量やガス使用量などの社会基盤の消費データでもよいし、または、温度、圧力、流量、速度などの各種制御のための情報などであってもよい。 The wireless sensor terminal 10 periodically measures and holds data such as power consumption and power generation, for example. The information to be measured is not limited to information about power. For example, weather information such as temperature, humidity, and atmospheric pressure, social consumption data such as water and sewage usage and gas usage, or various controls such as temperature, pressure, flow rate, and speed It may be the information.
 無線センサ端末10は、データ収集サーバ30からのポーリングによる情報取得要求を受信すると、無線通信により、定期的に計測した定期収集情報を上位ノードに向けて送信する。さらに、無線センサ端末10は、無線センサ端末10およびゲートウェイ20から送信されたパケットを、宛先となっている他の無線センサ端末10に向けて転送する中継機能を有する。 When the wireless sensor terminal 10 receives the information acquisition request by polling from the data collection server 30, the wireless sensor terminal 10 transmits the periodically collected information periodically measured to the upper node by wireless communication. Furthermore, the wireless sensor terminal 10 has a relay function of transferring packets transmitted from the wireless sensor terminal 10 and the gateway 20 toward another wireless sensor terminal 10 that is a destination.
 ゲートウェイ20は、各無線センサ端末10とデータ収集サーバ30との通信を通信媒体やプロトコルの違いを吸収して中継する機能を有する。 The gateway 20 has a function of relaying communication between each wireless sensor terminal 10 and the data collection server 30 by absorbing differences in communication media and protocols.
 通信ネットワーク40は、ゲートウェイ20とデータ収集サーバ30との通信を無線または有線で接続しており、例えばEthernet(登録商標)やInternetのように構成される。以下、ネットワーク40と呼ぶ。 The communication network 40 connects the communication between the gateway 20 and the data collection server 30 wirelessly or by wire, and is configured as Ethernet (registered trademark) or Internet, for example. Hereinafter, it is referred to as a network 40.
 データ収集サーバ30は、定期的に各無線センサ端末10から定期収集情報を取得するために、情報取得要求を、ネットワーク40からゲートウェイ20経由で、無線センサ端末10に送信する。データ収集サーバ30は、無線センサ端末10が情報取得要求の応答として送信した定期収集情報を受信し、その受信情報を蓄積して管理する。 The data collection server 30 transmits an information acquisition request from the network 40 to the wireless sensor terminal 10 via the gateway 20 in order to periodically acquire the periodically collected information from each wireless sensor terminal 10. The data collection server 30 receives the regularly collected information transmitted as a response to the information acquisition request by the wireless sensor terminal 10, and accumulates and manages the received information.
 図1では、無線通信経路を実線と破線に区別して示す。実線で示されている通信経路は、無線による直接通信が可能な通信経路として利用されていることを示す。破線で示された通信経路は、無線による直接通信が可能であるが、通信経路としては利用されていないことを示す。以下、或る無線センサ端末10について、無線により直接通信が可能な無線センサ端末10またはゲートウェイ20を、隣接端末と呼ぶ。隣接端末は、「周辺端末」の例である。 In FIG. 1, the wireless communication paths are distinguished from solid lines and broken lines. A communication path indicated by a solid line indicates that the communication path is used as a communication path that enables direct wireless communication. A communication path indicated by a broken line indicates that wireless direct communication is possible, but it is not used as a communication path. Hereinafter, for a certain wireless sensor terminal 10, the wireless sensor terminal 10 or the gateway 20 that can directly communicate wirelessly is referred to as an adjacent terminal. An adjacent terminal is an example of a “peripheral terminal”.
 本実施例では、無線センサ端末10同士の無線通信、および、無線センサ端末10とゲートウェイ20の間の無線通信として、特定小電力無線などに代表される低速な無線通信を想定する。但し、これに限らず、例えばIEEE802.11a/b/g/nなどに代表される無線LAN規格、IEEE802.15.4、Bluetooth(登録商標)、UWBなどの他の無線方式でもよい。 In this embodiment, low-speed wireless communication represented by specific low-power wireless is assumed as wireless communication between the wireless sensor terminals 10 and wireless communication between the wireless sensor terminal 10 and the gateway 20. However, the present invention is not limited to this, and other wireless systems such as a wireless LAN standard represented by IEEE802.11a / b / g / n, IEEE802.15.4, Bluetooth (registered trademark), or UWB may be used.
 図2を用いてデータ収集方法の概要を説明する。処理内容の詳細は後述する。データ収集サーバ30は、所定の順序で(例えばノード識別番号順で)、無線センサ端末10にポーリングし、定期収集情報の送信を要求する。以下、無線センサ端末10を端末10と略記する場合がある。無線センサ端末10は、無線端末10と略してもよい。 The outline of the data collection method will be described with reference to FIG. Details of the processing contents will be described later. The data collection server 30 polls the wireless sensor terminal 10 in a predetermined order (for example, in the order of node identification numbers) and requests transmission of periodic collection information. Hereinafter, the wireless sensor terminal 10 may be abbreviated as the terminal 10 in some cases. The wireless sensor terminal 10 may be abbreviated as the wireless terminal 10.
 ここで、或る端末10(#5)へのポーリングが、障害物CFの存在により失敗したものとする(S1)。データ収集サーバ30は、ゲートウェイ20から端末10(#2)を介してポーリング対象の端末10(#5)への通信を試みるが、端末10(#2)と端末10(#5)の間に車両等の障害物CFが存在すると、端末10(#2)から端末10(#5)に通信することができない。従って、データ収集サーバ30は、端末10(#5)からの応答を一定時間以内に受信できない場合、障害が発生したものと判定する。 Here, it is assumed that polling to a certain terminal 10 (# 5) has failed due to the presence of an obstacle CF (S1). The data collection server 30 tries to communicate from the gateway 20 to the polling target terminal 10 (# 5) via the terminal 10 (# 2), but between the terminal 10 (# 2) and the terminal 10 (# 5). If an obstacle CF such as a vehicle is present, communication from the terminal 10 (# 2) to the terminal 10 (# 5) cannot be performed. Therefore, if the data collection server 30 cannot receive the response from the terminal 10 (# 5) within a certain time, it determines that a failure has occurred.
 本実施例では、以下に述べる特有の処理を実行するため、端末10(#5)の障害発生を検知した場合でも、データ収集サーバ30は、直ちに復旧のための行動を取る必要はなく、通常の情報収集を継続することができる。 In the present embodiment, since the following specific processing is executed, even when the occurrence of a failure of the terminal 10 (# 5) is detected, the data collection server 30 does not need to take immediate action for recovery. Information collection can be continued.
 次のポーリング対象端末は、端末10(#7)であると仮定する。データ収集サーバ30は、次のポーリング対象の端末10(#7)が障害発生端末10(#5)と無線通信可能な隣接端末であるかを判定する。データ収集サーバ30は、次のポーリング対象端末10(#7)が障害発生端末10(#5)の隣接端末ではないと判定した場合、端末10(#7)に向けて通常のポーリングパケットを送信する(S2)。ポーリングパケットは、ゲートウェイ20から端末10(#3)を介して端末10(#7)に届く。端末10(#7)は、ポーリングパケットを受信すると、自端末(#7)に関する所定の端末情報(後述する情報通知パケット54)を周囲に向けてブロードキャストする(S3)。端末10(#7)からブロードキャストされた情報は、端末10(#6)および端末10(#10)により受信され、所定の基準を満たす場合に記憶される。端末10(#7)は、情報をブロードキャストした後で、自端末(#7)で検出した定期収集情報を含むポーリング応答を、データ収集サーバ30に向けて返信する。 Suppose that the next polling target terminal is the terminal 10 (# 7). The data collection server 30 determines whether the next polling target terminal 10 (# 7) is an adjacent terminal capable of wireless communication with the faulty terminal 10 (# 5). When the data collection server 30 determines that the next polling target terminal 10 (# 7) is not an adjacent terminal of the faulty terminal 10 (# 5), the data collection server 30 transmits a normal polling packet to the terminal 10 (# 7). (S2). The polling packet reaches the terminal 10 (# 7) from the gateway 20 via the terminal 10 (# 3). When the terminal 10 (# 7) receives the polling packet, the terminal 10 (# 7) broadcasts predetermined terminal information (information notification packet 54, which will be described later) related to the terminal 10 (# 7) to the surroundings (S3). Information broadcast from the terminal 10 (# 7) is received by the terminal 10 (# 6) and the terminal 10 (# 10) and stored when a predetermined criterion is satisfied. After broadcasting the information, the terminal 10 (# 7) returns a polling response including the periodically collected information detected by the terminal (# 7) to the data collection server 30.
 さらに次のポーリング対象端末は、端末10(#1)であると仮定する。データ収集サーバ30は、さらに次のポーリング対象端末10(#1)が障害発生端末10(#5)の隣接端末であると判定すると、問合せ情報を含むポーリングパケットを端末10(#1)に送信する(S4)。 It is further assumed that the next polling target terminal is the terminal 10 (# 1). When the data collection server 30 determines that the next polling target terminal 10 (# 1) is an adjacent terminal of the faulty terminal 10 (# 5), the data collection server 30 transmits a polling packet including inquiry information to the terminal 10 (# 1). (S4).
 端末10(#1)は、ポーリングパケットに含まれている問合せ情報に従って、障害発生端末10(#5)に対し無線通信で状態を問い合わせる(S5)。障害発生端末10(#5)は、端末10(#1)から問合せ要求を受信すると、自端末(#5)に関する所定の端末情報(情報通知パケット)を周囲にブロードキャストする(S6)。つまり、問合せ要求は、障害端末10(#5)が自端末の状態を含む情報を周囲の他端末10に向けて一斉に送信するための契機となっている。 The terminal 10 (# 1) inquires of the failure occurrence terminal 10 (# 5) about the state by wireless communication in accordance with the inquiry information included in the polling packet (S5). When the failure occurrence terminal 10 (# 5) receives the inquiry request from the terminal 10 (# 1), it broadcasts predetermined terminal information (information notification packet) related to the own terminal (# 5) to the surroundings (S6). That is, the inquiry request is an opportunity for the faulty terminal 10 (# 5) to simultaneously transmit information including the state of the own terminal to the other terminals 10 in the vicinity.
 障害発生端末10(#5)からブロードキャストされた情報は、この例では端末10(#1)、10(#4)、10(#6)、10(#8)、10(#9)に受信される。 In this example, information broadcast from the faulty terminal 10 (# 5) is received by the terminals 10 (# 1), 10 (# 4), 10 (# 6), 10 (# 8), and 10 (# 9). Is done.
 問合せ元である端末10(#1)は、障害発生端末10(#5)からの情報を受信すると、更新情報を含むポーリング応答をデータ収集サーバ30に返信する(S7)。 When the terminal 10 (# 1) as the inquiry source receives the information from the faulty terminal 10 (# 5), it returns a polling response including the update information to the data collection server 30 (S7).
 更新情報には、例えば、自端末10(#1)で計測した定期収集情報と、障害発生端末10(#5)から受信した情報(障害発生端末10(#5)の計測した定期収集情報を含む)と、前回の定期収集情報の収集サイクルで計測された他端末との間の無線通信状態を示す情報とが含まれる。 The update information includes, for example, regular collection information measured by the own terminal 10 (# 1) and information received from the faulty terminal 10 (# 5) (periodic collection information measured by the faulty terminal 10 (# 5)). And information indicating the wireless communication state between other terminals measured in the previous periodic collection information collection cycle.
 詳細は後述するが、各端末10は、データ収集サーバ30からのポーリングパケットを受信すると、ポーリング応答を返す前に、自端末についての情報を周囲にブロードキャストする。ブロードキャストされた情報を受信した周囲の他端末は、情報受信時の電力値を無線通信の状態(通信品質)を示す情報として保持する。そして、それら他端末は、自端末へのポーリングパケットを受信したときに、周囲の端末との無線通信の状態を示す情報をポーリング応答に含める。 As will be described in detail later, when each terminal 10 receives a polling packet from the data collection server 30, it broadcasts information about its own terminal to the surroundings before returning a polling response. Other terminals around that have received the broadcast information hold the power value at the time of information reception as information indicating the state of wireless communication (communication quality). And when these other terminals receive the polling packet to an own terminal, they include the information which shows the state of radio | wireless communication with a surrounding terminal in a polling response.
 このように本実施例では、データ収集サーバ30は、定期収集情報を取得できない障害発生端末10(#5)が有る場合でも、障害発生端末10(#5)の復旧に直ちに取り組む必要はなく、通常の情報収集処理を続けながら障害発生端末10(#5)の復旧を試みることができる。 Thus, in the present embodiment, the data collection server 30 does not need to immediately address the recovery of the failure terminal 10 (# 5) even when there is the failure terminal 10 (# 5) from which the periodic collection information cannot be obtained. Recovery of the faulty terminal 10 (# 5) can be attempted while continuing normal information collection processing.
 データ収集サーバ30は、障害発生端末10(#5)と無線通信可能な隣接端末10(#1)にポーリングパケットを送信する際に、障害発生端末10(#5)への問合せを依頼する(S4)。隣接端末10(#1)は、ポーリングパケットの代わりに、障害発生端末10(#5)に状態を問い合わせる(S5)。この問合せを受けた障害発生端末10(#5)は、自端末(#5)で検出した定期収集情報を問合せ元である隣接端末10(#1)にもブロードキャストする(S6)。 The data collection server 30 requests an inquiry to the faulty terminal 10 (# 5) when transmitting a polling packet to the adjacent terminal 10 (# 1) that can wirelessly communicate with the faulty terminal 10 (# 5) ( S4). The adjacent terminal 10 (# 1) inquires of the failure occurrence terminal 10 (# 5) about the state instead of the polling packet (S5). Upon receiving this inquiry, the faulty terminal 10 (# 5) broadcasts the regularly collected information detected by the own terminal (# 5) to the neighboring terminal 10 (# 1) as the inquiry source (S6).
 隣接端末10(#1)は、自端末(#1)で検出した定期収集情報と、障害発生端末10(#5)で検出した定期収集情報と、自端末(#1)の周囲の端末から受信した情報の受信強度(通信状態)とを、自端末10(#1)からのポーリング応答として、データ収集サーバ30に返す(S7)。この結果、データ収集サーバ10は、通常の定期収集情報の取得を続けながら、そのついでとして障害発生端末10(#5)からの情報を取得することができ、障害発生端末10(#5)の復旧を行うことができる。ここで、端末の復旧とは、障害発生端末から定期収集情報を取得することを意味する。 The adjacent terminal 10 (# 1) receives the periodic collection information detected by the own terminal (# 1), the periodic collection information detected by the failure occurrence terminal 10 (# 5), and terminals around the own terminal (# 1). The reception strength (communication state) of the received information is returned to the data collection server 30 as a polling response from the own terminal 10 (# 1) (S7). As a result, the data collection server 10 can acquire information from the failure occurrence terminal 10 (# 5) while continuing to obtain normal periodic collection information, and the failure collection terminal 10 (# 5) Recovery can be performed. Here, the recovery of the terminal means that the regularly collected information is acquired from the faulty terminal.
 図3のブロック図を用いて、本システム1を構成する各装置10、20、30の構成例を説明する。データ収集サーバ30、ゲートウェイ20、端末10の順で説明する。なお、図中では各部の名称を適宜省略している。 A configuration example of each of the devices 10, 20, and 30 constituting the system 1 will be described with reference to the block diagram of FIG. The data collection server 30, the gateway 20, and the terminal 10 will be described in this order. In the drawing, names of the respective parts are omitted as appropriate.
 データ収集サーバ30は「サーバ」の例であり、例えば、マイクロプロセッサ(CPU)31、メモリ32、補助記憶装置33、入力装置34、出力装置35、通信I/F部36を備えている。 The data collection server 30 is an example of a “server” and includes, for example, a microprocessor (CPU) 31, a memory 32, an auxiliary storage device 33, an input device 34, an output device 35, and a communication I / F unit 36.
 メモリ32には、例えば、各端末10からデータを定期的に収集するための定期収集プログラム321と、パケットの送受信などを制御するパケット通信プログラム322とが格納されている。補助記憶装置33には、例えば、定期収集値データベース331、リンクデータベース332、ルーティングデータベース333、機器情報データベース334が格納されている。それらデータベースの構成例は後述する。 The memory 32 stores, for example, a periodic collection program 321 for periodically collecting data from each terminal 10 and a packet communication program 322 for controlling packet transmission / reception. The auxiliary storage device 33 stores, for example, a periodic collection value database 331, a link database 332, a routing database 333, and a device information database 334. A configuration example of these databases will be described later.
 入力装置34は、システム管理者がデータ収集サーバ30に情報を入力するための装置であり、例えば、キーボード、ポインティングデバイス、タブレット、音声入力装置、視線検出装置、動作検出装置などを適宜用いて構成される。出力装置35は、システム管理者がデータ収集サーバ30から情報を取り出すために使用する装置であり、例えば、ディスプレイ、プリンタ、音声合成装置などを適宜用いて構成される。 The input device 34 is a device for the system administrator to input information to the data collection server 30 and is configured by appropriately using, for example, a keyboard, a pointing device, a tablet, a voice input device, a line-of-sight detection device, a motion detection device, or the like. Is done. The output device 35 is a device that is used by the system administrator to extract information from the data collection server 30, and is configured using, for example, a display, a printer, a voice synthesizer, or the like as appropriate.
 定期収集プログラム321は、管理下の各端末10からデータを定期的に収集するために、ポーリングパケット52(図8で後述)を各端末10に送信する。定期収集プログラム321は、端末10からのデータ収集に失敗した場合、障害発生端末に隣接する端末へのポーリングパケット52の送信時に、隣接端末から障害発生端末への問合せを要求するための問合せパケット55(図8で後述)を送信する。定期収集プログラム(データ収集プログラムと呼び変えてもよい)321の動作は、図9および図10で説明する。 The periodic collection program 321 transmits a polling packet 52 (described later in FIG. 8) to each terminal 10 in order to periodically collect data from each terminal 10 under management. If the data collection from the terminal 10 fails, the periodic collection program 321 sends an inquiry packet 55 for requesting an inquiry from the adjacent terminal to the failed terminal when transmitting the polling packet 52 to the terminal adjacent to the failed terminal. (Described later in FIG. 8). The operation of the periodic collection program (which may be referred to as a data collection program) 321 will be described with reference to FIGS.
 パケット通信プログラム322は、ネットワーク40および通信I/F部36を介して、他の装置10、20との間でデータを送受信するプログラムである。データ収集サーバ30のパケット通信プログラム322は、所定構造のポーリングパケット52を生成してポーリング対象の端末10に送信したり、各端末10からゲートウェイ20を介して受信したパケットの内容に基づいて、定期収集値データベース331、リンクデータベース332、隣接端末データベース223を更新する。パケット通信プログラムの基本的動作はデータ収集サーバ30のプログラム322、ゲートウェイ20のプログラム221、端末10のプログラム122で共通しており、図11~15で後述する。 The packet communication program 322 is a program that transmits / receives data to / from other apparatuses 10 and 20 via the network 40 and the communication I / F unit 36. The packet communication program 322 of the data collection server 30 generates a polling packet 52 having a predetermined structure and transmits it to the terminal 10 to be polled, or periodically based on the contents of the packet received from each terminal 10 via the gateway 20. The collection value database 331, the link database 332, and the adjacent terminal database 223 are updated. The basic operation of the packet communication program is common to the program 322 of the data collection server 30, the program 221 of the gateway 20, and the program 122 of the terminal 10, and will be described later with reference to FIGS.
 定期収集値データベース331は、各端末10が収集した情報を時系列ごとに管理するデータベースであり、その構成例を図4(a)に後述する。 The regular collection value database 331 is a database for managing information collected by each terminal 10 for each time series, and a configuration example thereof will be described later with reference to FIG.
 リンクデータベース332は、ルーティングテーブルを作成するためのテーブルであり、端末10やゲートウェイ20の無線リンクの状態を管理する。リンクデータベース332の構成例を図4(b)に後述する。 The link database 332 is a table for creating a routing table, and manages the state of the radio links of the terminal 10 and the gateway 20. A configuration example of the link database 332 will be described later with reference to FIG.
 ルーティングデータベース333は、通信路のルーティングテーブルを管理するデータベースであり、その構成例を図5(a)に後述する。 The routing database 333 is a database that manages the routing table of the communication path, and its configuration example will be described later with reference to FIG.
 機器情報データベース334は、端末10およびゲートウェイ20の機器情報を管理するデータベースであり、その構成例を図5(b)に後述する。 The device information database 334 is a database that manages device information of the terminal 10 and the gateway 20, and a configuration example thereof will be described later with reference to FIG.
 なお、データ収集サーバ30は、一つの計算機上に設けられていてもよいし、複数の計算機が連携することでデータ収集サーバ30としての機能を実現する構成でもよい。データ収集サーバ30を、仮想計算機上に設ける構成でもよい。さらに、操作用端末をデータ収集サーバ30に接続し、システム管理者は操作用端末を用いてデータ収集サーバ30を利用する構成でもよい。 Note that the data collection server 30 may be provided on one computer, or may be configured to realize the function as the data collection server 30 by cooperation of a plurality of computers. The data collection server 30 may be provided on a virtual machine. Further, an operation terminal may be connected to the data collection server 30, and the system administrator may use the data collection server 30 using the operation terminal.
 ゲートウェイ20の構成例を説明する。ゲートウェイ20は、例えば、CPU21、メモリ22、表示部23、補助記憶装置24、通信I/F25、無線処理部26、無線通信用アンテナ27を備える。メモリ22には、例えば、パケット通信プログラム221、ノード固有情報データベース222、隣接端末データベース223が格納されている。 A configuration example of the gateway 20 will be described. The gateway 20 includes, for example, a CPU 21, a memory 22, a display unit 23, an auxiliary storage device 24, a communication I / F 25, a wireless processing unit 26, and a wireless communication antenna 27. In the memory 22, for example, a packet communication program 221, a node specific information database 222, and an adjacent terminal database 223 are stored.
 表示部23は、ゲートウェイ20の状態(正常動作しているかなど)を表示するための装置であり、例えば液晶ディスプレイ、LED(Light Emitting Diode)ランプなどから構成される。 The display unit 23 is a device for displaying the state of the gateway 20 (eg, whether it is operating normally), and includes, for example, a liquid crystal display, an LED (Light Emitting Diode) lamp, and the like.
 パケット通信プログラム221は、ゲートウェイ20がネットワーク40または無線通信用アンテナ27から通信I/F25および無線処理部26を介して受信するパケットを宛先に中継する。パケット通信プログラム221は、受信パケットに基づいて、隣接端末データベース223を更新する。パケット通信プログラム221は、上述のデータ収集サーバ30のパケット通信プログラム322と同様に構成することができる。その動作は後述する。 The packet communication program 221 relays a packet received by the gateway 20 from the network 40 or the wireless communication antenna 27 via the communication I / F 25 and the wireless processing unit 26 to the destination. The packet communication program 221 updates the adjacent terminal database 223 based on the received packet. The packet communication program 221 can be configured similarly to the packet communication program 322 of the data collection server 30 described above. The operation will be described later.
 ノード固有情報データベース222は、端末10のノードID(識別子、識別情報)やゲートウェイ20固有のノードIDなどの、各ノードに固有の情報を管理するためのデータベースである。その構成例を図6(a)に後述する。 The node specific information database 222 is a database for managing information unique to each node such as a node ID (identifier, identification information) of the terminal 10 and a node ID specific to the gateway 20. An example of the configuration will be described later with reference to FIG.
 隣接端末データベース223は、無線により直接通信可能な端末10の情報を管理するためのデータベースである。その構成例を図6(b)に後述する。 The adjacent terminal database 223 is a database for managing information of the terminals 10 that can communicate directly by radio. An example of the configuration will be described later with reference to FIG.
 無線センサ端末10の構成例を説明する。端末10は、例えば、CPU11、メモリ12、表示部13、補助記憶装置14、センサ部15、無線処理部16、無線通信用アンテナ17を備えている。表示部13は、端末10の状態(正常動作しているかなど)を表示するための装置であり、例えば液晶ディスプレイ、LEDランプなどから構成される。ゲートウェイ20の表示部23も端末10の表示部13も、いずれも無くても動作に支障はない。 A configuration example of the wireless sensor terminal 10 will be described. The terminal 10 includes, for example, a CPU 11, a memory 12, a display unit 13, an auxiliary storage device 14, a sensor unit 15, a wireless processing unit 16, and a wireless communication antenna 17. The display unit 13 is a device for displaying the state of the terminal 10 (eg, whether it is operating normally), and includes, for example, a liquid crystal display, an LED lamp, and the like. If neither the display unit 23 of the gateway 20 nor the display unit 13 of the terminal 10 is present, there is no problem in operation.
 メモリ12には、例えば、定期計測プログラム121、パケット通信プログラム122、定期計測値データベース123、隣接端末データベース124、ノード固有情報データベース125が格納されている。 In the memory 12, for example, a periodic measurement program 121, a packet communication program 122, a periodic measurement value database 123, an adjacent terminal database 124, and a node specific information database 125 are stored.
 定期計測プログラム121は、一定時間ごとにセンサ部15から得たデータを定期計測値データベース123に保存するプログラムである。 The regular measurement program 121 is a program that stores data obtained from the sensor unit 15 in the regular measurement value database 123 at regular intervals.
 パケット通信プログラム122は、他の端末(ゲートウェイを含む)から無線通信用アンテナ17および無線処理部16を介して受信したパケットを、そのパケットの宛先に向けて送信する中継機能を有する。さらに、パケット通信プログラム122は、パケットのデータの種類に応じて、定期計測値データベース123および隣接端末データベース124を更新する。パケット通信プログラム122は、上述のデータ収集サーバ30のパケット通信プログラム322と同様に構成することができる。その動作は後述する。 The packet communication program 122 has a relay function for transmitting a packet received from another terminal (including a gateway) via the wireless communication antenna 17 and the wireless processing unit 16 toward the destination of the packet. Furthermore, the packet communication program 122 updates the periodic measurement value database 123 and the adjacent terminal database 124 according to the type of packet data. The packet communication program 122 can be configured similarly to the packet communication program 322 of the data collection server 30 described above. The operation will be described later.
 定期計測値データベース123は、センサ部15から得たデータと、データ検出時刻とを対応付けて管理する。その構成例を図6(c)に後述する。 The periodic measurement value database 123 manages the data obtained from the sensor unit 15 in association with the data detection time. An example of the configuration will be described later with reference to FIG.
 隣接端末データベース124は、無線により直接通信可能な端末(ゲートウェイ20を含む)の情報を管理するデータベースであり、ゲートウェイ20の隣接端末データベース223と同様に構成することができる。 The adjacent terminal database 124 is a database that manages information of terminals (including the gateway 20) that can communicate directly by radio, and can be configured in the same manner as the adjacent terminal database 223 of the gateway 20.
 ノード固有情報データベース125は、端末10のノードIDやゲートウェイ20固有のノードIDなどのノードに固有の情報を管理するデータベースであり、ゲートウェイ20のノード固有情報データベース222と同じである。 The node specific information database 125 is a database for managing information unique to a node such as the node ID of the terminal 10 and the node ID unique to the gateway 20, and is the same as the node specific information database 222 of the gateway 20.
 センサ部15は、例えば、電力計、温度計、日照計、圧力計、湿度計などのように構成される。なお、センサ本体を無線センサ端末10が備えている必要はなく、別に設けられたセンサ本体と端末10とが無線または有線で接続されている構成でもよい。 The sensor unit 15 is configured as a power meter, a thermometer, a sunshine meter, a pressure gauge, a hygrometer, or the like, for example. The wireless sensor terminal 10 does not have to include the sensor body, and a configuration in which the separately provided sensor body and the terminal 10 are connected wirelessly or by wire may be used.
 図4(a)は、定期収集値データベース331の一例を示す。定期収集値データベース331は、端末10から収集したデータを管理するために、例えばネットワークID、定期収集番号、ノードID3311、ポーリング通信3312、定期収集値3313、定期収集時刻3314を記憶する。定期収集値データベース331は、ネットワークIDおよび定期収集番号の値から一意に決まるテーブルにより、各情報を管理する。図4(a)は、ネットワークIDが「1」であり、定期収集番号が「1」である場合のテーブル構造を示す。 FIG. 4A shows an example of the regularly collected value database 331. The regular collection value database 331 stores, for example, a network ID, a regular collection number, a node ID 3311, a polling communication 3312, a regular collection value 3313, and a regular collection time 3314 in order to manage data collected from the terminal 10. The periodic collection value database 331 manages each information by a table uniquely determined from the values of the network ID and the periodic collection number. FIG. 4A shows a table structure when the network ID is “1” and the periodic collection number is “1”.
 ノードID欄3311は、端末10を各ネットワークIDにおいて一意に特定する識別子を管理する。識別子は識別情報または識別番号を呼び変えてもよい。 The node ID column 3311 manages an identifier that uniquely identifies the terminal 10 in each network ID. The identifier may call the identification information or the identification number.
 ポーリング通信欄3312は、端末10に対して行ったポーリング通信の結果を示す情報を管理する。ポーリング通信欄3312には、例えば「成功」、「失敗」、「未実施」のいずれであるかを表す識別子が設定される。 The polling communication column 3312 manages information indicating the result of polling communication performed on the terminal 10. In the polling communication column 3312, an identifier indicating, for example, “success”, “failure”, or “not implemented” is set.
 定期収集値欄3313は、端末10がセンサ部15から取得した情報を管理する。定期収集値欄3313には、例えば、各電力需要家(家庭など)における電力使用量を表す数値が記憶される。 The periodic collection value column 3313 manages information acquired by the terminal 10 from the sensor unit 15. In the periodic collection value column 3313, for example, a numerical value representing the amount of power used in each power consumer (such as a home) is stored.
 定期収集時刻欄3314は、端末10がセンサ部15か情報(センシングデータ)を取得した時刻を管理する。 The regular collection time column 3314 manages the time when the terminal 10 acquires information from the sensor unit 15 (sensing data).
 なお、データ収集サーバ30は、1つのゲートウェイ20と複数の端末10とから構成されるネットワークを複数管理することもできる。このため、定期収集値データベース331では、各ネットワークを識別するためにネットワークIDおよび定期収集番号ごとにテーブルを用意する。定期収集値データベース331のネットワークIDは、ノード固有情報データベース222、125のネットワークIDと同じである。 Note that the data collection server 30 can also manage a plurality of networks including one gateway 20 and a plurality of terminals 10. Therefore, the regular collection value database 331 prepares a table for each network ID and regular collection number in order to identify each network. The network ID of the periodic collection value database 331 is the same as the network ID of the node specific information databases 222 and 125.
 データ収集サーバ30は、ネットワークIDで識別される各ネットワークに収容されている全ての端末10から、順番に定期収集値を取得する。そこで、定期収集値データベース331では、端末10からの何回目の定期収集であるかを管理するために、定期収集番号を使用する。 The data collection server 30 acquires the regularly collected values in order from all the terminals 10 accommodated in each network identified by the network ID. Therefore, in the periodic collection value database 331, the periodic collection number is used to manage the number of regular collections from the terminal 10.
 図4(b)は、リンクデータベース332の一例を示す。リンクデータベース332は、ルーティングデータベース333を作成するために、端末10およびゲートウェイ20がそれぞれどのノードと直接通信可能であるかを管理する。従って、リンクデータベース332は、例えば、ネットワークID、受信ノードID3321、送信ノードID3322、受信品質3323、リンク更新時刻3324を対応付けて記憶する。リンクデータベース332は、ネットワークIDの値から一意に決まるテーブルにより、各情報を管理している。図示の例は、ネットワークIDが「1」のテーブルを示す。 FIG. 4B shows an example of the link database 332. The link database 332 manages which node the terminal 10 and the gateway 20 can directly communicate with in order to create the routing database 333. Accordingly, the link database 332 stores, for example, the network ID, the reception node ID 3321, the transmission node ID 3322, the reception quality 3323, and the link update time 3324 in association with each other. The link database 332 manages each information by a table uniquely determined from the value of the network ID. The illustrated example shows a table whose network ID is “1”.
 受信ノードID欄3321は、無線通信を受信した端末10、ゲートウェイ20のノードIDを表す受信ノードIDを管理する。受信ノードIDは、定期収集値データベース331のノードID3311と対応する。 The receiving node ID column 3321 manages the receiving node ID indicating the node ID of the terminal 10 and the gateway 20 that have received wireless communication. The reception node ID corresponds to the node ID 3311 of the periodic collection value database 331.
 送信ノードID欄3322は、無線通信で送信した端末10、ゲートウェイ20のノードIDを表す送信ノードIDを管理する。送信ノードIDは、定期収集値データベース331のノードID3311と対応する。 The transmission node ID column 3322 manages the transmission node ID indicating the node ID of the terminal 10 and the gateway 20 transmitted by wireless communication. The transmission node ID corresponds to the node ID 3311 of the periodic collection value database 331.
 受信品質欄3323は、送信ノードから送信したパケットを受信ノードで受信した際の品質を、受信電波の電力値として記録する。つまり、受信品質とは、送信ノードIDが表す端末10またはゲートウェイ20が送信した無線パケットを、受信ノードIDが表す端末10またはゲートウェイ20で受信した場合の電波の受信電力値を表す。 The reception quality column 3323 records the quality when the packet transmitted from the transmission node is received by the reception node as the power value of the received radio wave. That is, the reception quality represents a received power value of radio waves when a wireless packet transmitted by the terminal 10 or the gateway 20 represented by the transmission node ID is received by the terminal 10 or the gateway 20 represented by the reception node ID.
 リンク更新時刻欄3324は、送信ノードIDが表す端末10またはゲートウェイ20が送信した無線パケットを、受信ノードIDが表す端末10またはゲートウェイ20が受信したときの時刻を表すリンク更新時刻を管理する。 The link update time column 3324 manages the link update time indicating the time when the terminal 10 or the gateway 20 indicated by the receiving node ID receives the wireless packet transmitted by the terminal 10 or the gateway 20 indicated by the sending node ID.
 図5(a)は、ルーティングデータベース333の一例を示す。ルーティングデータベース333は、データ収集サーバ30が各端末10と通信を行う際の通信経路を記憶している。ルーティングデータベース333は、ネットワークIDの値から一意に決まるテーブルにより、各情報を管理している。図示の例は、ネットワークIDが「1」のテーブルを示す。 FIG. 5A shows an example of the routing database 333. The routing database 333 stores a communication path when the data collection server 30 communicates with each terminal 10. The routing database 333 manages each information by a table uniquely determined from the value of the network ID. The illustrated example shows a table whose network ID is “1”.
 ルーティングデータベース333は、例えば、送信ノードIPアドレス欄3331、宛先ノードIPアドレス欄3332、次の中継先ノードIPアドレス欄3333を対応付けて管理する。 The routing database 333 manages, for example, a transmission node IP address column 3331, a destination node IP address column 3332, and a next relay destination node IP address column 3333 in association with each other.
 送信ノードIPアドレス欄3331は、パケットの送信元であるノードのIPアドレスを表す送信ノードIPアドレスを管理する。宛先ノードIPアドレス欄3332は、パケットを最終的に受信する宛先ノードのIPアドレスを表す宛先ノードIPアドレスを管理する。次の中継先ノードIPアドレス欄3333は、送信ノードIPアドレスが示す送信元ノードから宛先ノードIPアドレスが示す宛先ノードに直接パケットを送信できない場合に、通信の中継先として選択するノード(端末10)のIPアドレスを表す中継先ノードIPアドレスを管理する。 The transmission node IP address column 3331 manages the transmission node IP address representing the IP address of the node that is the transmission source of the packet. The destination node IP address column 3332 manages the destination node IP address representing the IP address of the destination node that finally receives the packet. The next relay destination node IP address column 3333 is a node (terminal 10) selected as a communication relay destination when a packet cannot be transmitted directly from the source node indicated by the source node IP address to the destination node indicated by the destination node IP address. To manage the IP address of the relay destination node representing the IP address.
 図5(b)は、機器情報データベース334の一例を示す。機器情報データベース334は、端末10およびゲートウェイ20についての機器情報を管理するためのデータベースである。機器情報データベース334は、例えば、ノードID3341、無線MAC(Media Access Control address)アドレス3342、IPアドレス3343、サブネットマスク3344を記憶する。機器情報データベース334は、ネットワークIDの値から一意に決まるテーブルにより、各情報を管理している。図示の例は、ネットワークIDが「1」の場合のテーブルを示す。 FIG. 5B shows an example of the device information database 334. The device information database 334 is a database for managing device information about the terminal 10 and the gateway 20. The device information database 334 stores, for example, a node ID 3341, a wireless MAC (Media Access Control Address) address 3342, an IP address 3343, and a subnet mask 3344. The device information database 334 manages each information by a table uniquely determined from the value of the network ID. The illustrated example shows a table when the network ID is “1”.
 ノードID欄3341は、端末10を各ネットワークIDにおいて一意に特定する識別子であるノードIDを管理する。ノードIDは、定期収集値データベース331のノードID3311と同じである。 The node ID column 3341 manages a node ID that is an identifier for uniquely identifying the terminal 10 in each network ID. The node ID is the same as the node ID 3311 of the periodic collection value database 331.
 無線MACアドレス欄3342は、通信機器に一意に割り振られる識別子であり、IEEEなどが定める識別子であるMACアドレスを管理する。IPアドレス欄3343は、ネットワーク通信において、通信機器に付与されるIPアドレスを管理する。サブネットマスク欄3344は、IPネットワーク通信に必要なサブネットマスクを管理する。 The wireless MAC address column 3342 is an identifier that is uniquely assigned to a communication device, and manages a MAC address that is an identifier determined by IEEE or the like. The IP address column 3343 manages an IP address assigned to a communication device in network communication. The subnet mask column 3344 manages the subnet mask necessary for IP network communication.
 図6(a)は、ノード固有情報データベース222、125の一例を示す。以下、ノード固有情報データベース222(125)として示す。かっこ内の符号は、端末10の持つノード固有情報データベース125に対応する。 FIG. 6A shows an example of the node specific information databases 222 and 125. Hereinafter, the node specific information database 222 (125) is shown. The code in parentheses corresponds to the node specific information database 125 of the terminal 10.
 ノード固有情報データベース222(125)は、自装置(ゲートウェイ20または端末10)に関する各項目2221(1251)とその値2222(1252)とを対応付けて管理する。項目2221(1251)には、例えば、ノードID、ネットワークID、無線MACアドレス、IPアドレス、サブネットマスク、デフォルトゲートウェイ、サーバIPアドレスが含まれる。 The node specific information database 222 (125) manages each item 2221 (1251) and its value 2222 (1252) related to the own device (gateway 20 or terminal 10) in association with each other. The item 2221 (1251) includes, for example, a node ID, a network ID, a wireless MAC address, an IP address, a subnet mask, a default gateway, and a server IP address.
 ノードIDは、端末10やゲートウェイ20をネットワークIDで識別される各ネットワークにおいて一意に特定する識別子であり、定期収集値データベース331のノードID3311と同じである。ネットワークIDは、データ収集サーバ30が複数のネットワークを管理する場合に、それらネットワークを識別するための識別子である。無線MACアドレスは、通信機器に一意に割り振られる識別子であり、IEEEなどが定める識別子であり、機器情報データベース334のMACアドレスと同じである。 The node ID is an identifier that uniquely identifies the terminal 10 or the gateway 20 in each network identified by the network ID, and is the same as the node ID 3311 of the periodic collection value database 331. The network ID is an identifier for identifying the networks when the data collection server 30 manages a plurality of networks. The wireless MAC address is an identifier uniquely assigned to the communication device, is an identifier determined by IEEE or the like, and is the same as the MAC address of the device information database 334.
 IPアドレスは、通信機器に付与されるIPアドレスであり、機器情報データベース334のIPアドレス3343と同じである。サブネットマスクは、IPネットワーク通信に必要なサブネットマスクであり、機器情報データベース334のサブネットマスク3344と同じである。デフォルトゲートウェイは、IPネットワーク通信に必要なデフォルトゲートウェイである。サーバIPアドレスは、データ収集サーバ30に付与されているIPアドレスである。 The IP address is an IP address assigned to the communication device, and is the same as the IP address 3343 of the device information database 334. The subnet mask is a subnet mask necessary for IP network communication, and is the same as the subnet mask 3344 of the device information database 334. The default gateway is a default gateway necessary for IP network communication. The server IP address is an IP address assigned to the data collection server 30.
 図6(b)は、隣接端末データベース223、124の一例を示す。以下、隣接端末データベース223(124)として示す。かっこ内の符号は、端末10の持つ隣接端末データベース124に対応する。 FIG. 6B shows an example of the adjacent terminal databases 223 and 124. Hereinafter, it is shown as the adjacent terminal database 223 (124). The code in parentheses corresponds to the adjacent terminal database 124 of the terminal 10.
 隣接端末データベース223(124)は、自装置(ゲートウェイ20または端末10)が、直接無線通信可能なノード(隣接端末)の情報を管理する。これにより、端末10とデータ収集サーバ30との通信において、通信経路に障害が起こった場合においても、隣接端末を介して障害発生端末から情報を収集することができる。隣接端末データベース223(124)は、例えば、送信ノードID2231(1241)、受信品質2232(1242)、リンク更新時刻2233(1243)、送信元の定期収集値2234(1244)、送信元での収集時刻2235(1245)を記憶している。 The adjacent terminal database 223 (124) manages information on nodes (adjacent terminals) in which the own device (gateway 20 or terminal 10) can directly perform wireless communication. Thereby, in the communication between the terminal 10 and the data collection server 30, even when a failure occurs in the communication path, information can be collected from the failure occurrence terminal via the adjacent terminal. The adjacent terminal database 223 (124) includes, for example, the transmission node ID 2231 (1241), the reception quality 2232 (1242), the link update time 2233 (1243), the periodic collection value 2234 (1244) of the transmission source, and the collection time at the transmission source. 2235 (1245) is stored.
 送信ノードID欄2231(1241)は、パケットを送信した端末10のノードIDまたはパケットを送信したゲートウェイ20のノードIDを表す識別子である送信ノードIDを管理する。送信ノードIDは、リンクデータベース332の送信ノードID3322と同じである。 The transmission node ID column 2231 (1241) manages the transmission node ID which is an identifier representing the node ID of the terminal 10 that transmitted the packet or the node ID of the gateway 20 that transmitted the packet. The transmission node ID is the same as the transmission node ID 3322 of the link database 332.
 受信品質欄2232(1242)は、送信ノードIDで特定される端末10(またはゲートウェイ20)から送信された無線パケットが、受信ノードIDで特定される端末10(またはゲートウェイ20)において受信された際の、電波の受信電力値を表す受信品質を管理する。ここでの受信品質は、リンクデータベース332の受信品質3323と同じである。 The reception quality column 2232 (1242) is displayed when a wireless packet transmitted from the terminal 10 (or gateway 20) specified by the transmission node ID is received by the terminal 10 (or gateway 20) specified by the reception node ID. The reception quality representing the received power value of the radio wave is managed. The reception quality here is the same as the reception quality 3323 of the link database 332.
 リンク更新時刻欄2233(1243)は、送信ノードIDで特定される端末10(またはゲートウェイ20)から送信した無線パケットが、受信ノードIDで特定される端末10(またはゲートウェイ20)において受信されたときの受信時刻を管理する。この受信時刻は、リンク更新時刻として欄2233(1243)に記憶される。ここでのリンク更新時刻は、リンクデータベース332のリンク更新時刻3324と同じである The link update time column 2233 (1243) indicates that a wireless packet transmitted from the terminal 10 (or gateway 20) specified by the transmission node ID is received by the terminal 10 (or gateway 20) specified by the reception node ID. Managing the reception time of. This reception time is stored in the field 2233 (1243) as the link update time. The link update time here is the same as the link update time 3324 of the link database 332.
 送信元の定期収集値欄2234(1244)は、送信ノードIDで特定される端末10で収集されたデータ(定期収集値)を管理する。送信元での定期収集時刻欄2235(1245)は、送信ノードIDで特定される端末10が定期収集値を取得した時刻を管理している。 The transmission source periodic collection value column 2234 (1244) manages data (periodic collection value) collected by the terminal 10 specified by the transmission node ID. The periodic collection time column 2235 (1245) at the transmission source manages the time when the terminal 10 specified by the transmission node ID acquires the regular collection value.
 送信元の定期収集値欄2234(1244)および送信元での定期収集時刻欄2235(1245)は、データ収集サーバ30と対象端末10との通信が失敗し、データ収集サーバ30がその対象端末10から定期収集値を取得できなかった場合においても、その対象端末に隣接する隣接端末がその値を保持する。 In the periodic collection value column 2234 (1244) of the transmission source and the periodic collection time column 2235 (1245) of the transmission source, communication between the data collection server 30 and the target terminal 10 fails, and the data collection server 30 detects that the target terminal 10 Even if the periodic collection value cannot be obtained from the adjacent terminal, the adjacent terminal adjacent to the target terminal holds the value.
 これにより、データ収集サーバ30は、隣接端末のポーリング時に、前回失敗した対象端末の定期収集値(定期収集情報)を隣接端末から回収することができる。
但し、端末10のメモリ12および補助記憶装置14のサイズに制限がある場合、または、一度に送信するデータのサイズをできるだけ小さくして通信トラフィックを抑制したい場合などでは、送信の定期収集値欄2234(1244)および送信の定期収集時刻欄2235(1245)を削除しても動作可能である。
Thereby, the data collection server 30 can collect the periodic collection value (periodic collection information) of the target terminal that failed last time from the adjacent terminal when polling the adjacent terminal.
However, when there are restrictions on the sizes of the memory 12 and the auxiliary storage device 14 of the terminal 10 or when it is desired to suppress communication traffic by reducing the size of data to be transmitted at once as much as possible, the periodic collection value column 2234 for transmission is used. (1244) and the periodic collection time column 2235 (1245) of transmission are also operable.
 図7は、定期計測値データベース123の一例を示す。定期計測値データベース123は、センサ部15で定期的に取得したデータを保存するためのデータベースであり、例えば定期収集値1231欄と、定期収集時刻欄1232を備える。 FIG. 7 shows an example of the periodic measurement value database 123. The regular measurement value database 123 is a database for storing data periodically acquired by the sensor unit 15 and includes, for example, a regular collection value 1231 field and a regular collection time field 1232.
 定期収集値欄1231は、端末10がセンサ部15で取得した情報を管理する。ここでの定期収集値は、定期収集値データベース331の定期収集値3313と同じである。定期収集時刻欄1232は、端末10がセンサ部15で情報を取得した時刻を管理する。ここでの定期収集時刻は、定期収集値データベース331の定期収集時刻3314と同じである。 The periodic collection value column 1231 manages information acquired by the terminal 10 by the sensor unit 15. The regular collection value here is the same as the regular collection value 3313 of the regular collection value database 331. The regular collection time column 1232 manages the time when the terminal 10 acquires information by the sensor unit 15. The regular collection time here is the same as the regular collection time 3314 of the regular collection value database 331.
 図8を用いて、本実施例で使用するパケットの構成例を説明する。図8に示すパケットを利用した通信の詳細は、図9~図15のフローチャートを用いて後述する。 A configuration example of a packet used in this embodiment will be described with reference to FIG. Details of the communication using the packet shown in FIG. 8 will be described later with reference to the flowcharts of FIGS.
 図8(a)は、共通ヘッダ51の一例を示す。共通ヘッダ51は、端末10、ゲートウェイ20、データ収集サーバ30がやり取りするパケットにおいて、共通して利用されるIPパケットのヘッダ情報である。 FIG. 8A shows an example of the common header 51. The common header 51 is header information of an IP packet that is used in common among packets exchanged between the terminal 10, the gateway 20, and the data collection server 30.
 共通ヘッダ51は、例えば、ネットワークID511、送信ノードIPアドレス512、宛先ノードIPアドレス513、ルーティング情報長514、送信ノードIPアドレス515、次の中継先ノードIPアドレス516、最終宛先ノードIPアドレス517、パケット識別コード518を含んで構成される。 The common header 51 includes, for example, a network ID 511, a transmission node IP address 512, a destination node IP address 513, a routing information length 514, a transmission node IP address 515, a next relay destination node IP address 516, a final destination node IP address 517, a packet An identification code 518 is included.
 ネットワークID511とは、データ収集サーバ30の管理する複数ネットワークのいずれであるかを特定するための識別子であり、ノード固有情報データベース222、125のネットワークIDと同じである。 The network ID 511 is an identifier for specifying which of the plurality of networks managed by the data collection server 30, and is the same as the network ID of the node specific information databases 222 and 125.
 送信ノードIPアドレス512とは、パケットを最初に送信した送信元ノードのIPアドレスを表す情報である。宛先ノードIPアドレス513とは、パケットを最終的に受信する宛先ノードのIPアドレスを表す情報である。ルーティング情報長514とは、パケットが送信元ノードのIPアドレス512から宛先ノードのIPアドレス513まで転送される際の、通信経路の長さを表す情報である。 The transmission node IP address 512 is information indicating the IP address of the transmission source node that first transmitted the packet. The destination node IP address 513 is information representing the IP address of the destination node that finally receives the packet. The routing information length 514 is information indicating the length of the communication path when the packet is transferred from the IP address 512 of the transmission source node to the IP address 513 of the destination node.
 送信ノードIPアドレス515、次の中継先ノードIPアドレス516、宛先ノードIPアドレス517は、ルーティング情報を表している。送信ノードIPアドレス515とは、パケットの送信元ノードのIPアドレスを表す情報であり、送信ノードIPアドレス512と同じ値である。 The transmission node IP address 515, the next relay destination node IP address 516, and the destination node IP address 517 represent routing information. The transmission node IP address 515 is information representing the IP address of the transmission source node of the packet, and has the same value as the transmission node IP address 512.
 次の中継先ノードIPアドレス516は、送信ノードIPアドレス515が示す送信元ノードから宛先ノードIPアドレス517が示す宛先ノードへの通信が直接行えない場合に、通信の中継先として選択するノードのIPアドレスを表す情報である。中継先のノードからさらに他のノードを経由する場合、経由する全ての中継先ノードのIPアドレスを、次の中継先ノードIPアドレス516に通信経路の順に従って格納する。 The next relay destination node IP address 516 is the IP address of the node selected as the relay destination of communication when communication from the transmission source node indicated by the transmission node IP address 515 to the destination node indicated by the destination node IP address 517 cannot be performed directly. Information representing an address. When the relay destination node passes through another node, the IP addresses of all the relay destination nodes that pass through are stored in the next relay destination node IP address 516 in the order of the communication path.
 宛先ノードIPアドレス517とは、パケットを最終的に受信する宛先ノードのIPアドレスを表す情報であり、宛先ノードIPアドレス513と同じである。パケット識別コード518とは、パケットの種類を表す情報である。 The destination node IP address 517 is information indicating the IP address of the destination node that finally receives the packet, and is the same as the destination node IP address 513. The packet identification code 518 is information representing the type of packet.
 図8(b)は、ポーリングパケット52の一例を示す。ポーリングパケット52とは、データ収集サーバ30が、端末10から定期収集値を取得するために、端末10に対してポーリングを行うためのパケットである。ポーリングパケット52は、例えば、共通ヘッダ521、情報通知パケット送信コード522、問合せフラグ523、問合せ先ノードIPアドレス524から構成される。 FIG. 8B shows an example of the polling packet 52. The polling packet 52 is a packet for the data collection server 30 to poll the terminal 10 in order to acquire a regularly collected value from the terminal 10. The polling packet 52 includes, for example, a common header 521, an information notification packet transmission code 522, an inquiry flag 523, and an inquiry destination node IP address 524.
 共通ヘッダ521は、共通ヘッダ51と同じである。情報通知パケット送信コード522は、ポーリングパケット52を受信した端末10が実行する情報通知動作(ブロードキャスト動作)を制御する情報である。 The common header 521 is the same as the common header 51. The information notification packet transmission code 522 is information for controlling an information notification operation (broadcast operation) executed by the terminal 10 that has received the polling packet 52.
 情報通知パケット送信コード522の値に従って、ポーリングパケットを受信した端末10は、以下の複数の動作のいずれかを実行する。第1の動作は、自端末の情報を隣接端末に情報通知パケットとして送信する。第2の動作は、情報通知パケットを受信した他の端末10に、その情報通知パケットの内容を優先的に保存させる。第3の動作は、情報通知パケットを送信しない。 In accordance with the value of the information notification packet transmission code 522, the terminal 10 that has received the polling packet executes one of the following operations. In the first operation, the information of its own terminal is transmitted to the adjacent terminal as an information notification packet. In the second operation, the content of the information notification packet is preferentially stored in the other terminal 10 that has received the information notification packet. In the third operation, the information notification packet is not transmitted.
 問合せフラグ523は、ポーリングパケット52を受信した端末10が、隣接端末に問合せパケットを送信するか送信しないかの判断を行うための情報を表す。問合せ先ノードIPアドレス524は、隣接端末に問合せパケットを送信する場合に、問合せパケットの送信先ノードのIPアドレスを表す情報である。 The inquiry flag 523 represents information for the terminal 10 that has received the polling packet 52 to determine whether to transmit an inquiry packet to an adjacent terminal. The inquiry destination node IP address 524 is information representing the IP address of the inquiry destination node of the inquiry packet when the inquiry packet is transmitted to the adjacent terminal.
 なお、ポーリングパケット52には、センサ部15による定期収集の停止または再開などを端末10に指示するための制御指示を格納する構成でもよい。 The polling packet 52 may store a control instruction for instructing the terminal 10 to stop or restart the periodic collection by the sensor unit 15.
 図8(c)は、ポーリング応答パケット53の一例を示す。ポーリング応答パケット53は、ポーリングパケット52を受信した端末10が、データ収集サーバ30に対して定期収集値などの情報を送信する際のパケットである。ポーリング応答パケット53は、例えば、共通ヘッダ531、ポーリング応答データコード532、ポーリング応答データ長533、ポーリング応答データ534、隣接端末データコード535、隣接端末データ長536、隣接端末データ537を含んで構成される。 FIG. 8C shows an example of the polling response packet 53. The polling response packet 53 is a packet used when the terminal 10 that has received the polling packet 52 transmits information such as a regularly collected value to the data collection server 30. The polling response packet 53 includes, for example, a common header 531, polling response data code 532, polling response data length 533, polling response data 534, adjacent terminal data code 535, adjacent terminal data length 536, and adjacent terminal data 537. The
 共通ヘッダ531は、共通ヘッダ51と同じである。ポーリング応答データコード532は、ポーリング応答データ534の種類を表す情報である。ポーリング応答データ長533は、ポーリング応答データ534の長さを表す情報である。ポーリング応答データ534は、端末10の定期収集値および定期収集時刻などのデータを表す情報である。 The common header 531 is the same as the common header 51. The polling response data code 532 is information indicating the type of polling response data 534. The polling response data length 533 is information indicating the length of the polling response data 534. The polling response data 534 is information representing data such as a regularly collected value and a regularly collected time of the terminal 10.
 隣接端末データコード535は、隣接端末データ537の種類を表す情報である。隣接端末データ長536とは、隣接端末データ537の長さを表す情報である。隣接端末データ537は、隣接端末データベース223、124で保持されている、隣接端末の受信品質およびリンク更新時刻などのデータを表す情報である。 The adjacent terminal data code 535 is information indicating the type of the adjacent terminal data 537. The adjacent terminal data length 536 is information indicating the length of the adjacent terminal data 537. The adjacent terminal data 537 is information representing data such as reception quality and link update time of the adjacent terminals held in the adjacent terminal databases 223 and 124.
 図8(d)は、情報通知パケット54の一例を示す。情報通知パケット54は、ポーリングパケット52または問合せパケット55を受信した端末10が、自端末に関する所定の端末情報を近隣端末に送信するために使用するパケットである。情報通知パケット54は、例えば、共通ヘッダ541、情報通知優先保存フラグ542、情報通知コード543、情報通知データ長544、情報通知データ545を含んで構成される。 FIG. 8D shows an example of the information notification packet 54. The information notification packet 54 is a packet that is used by the terminal 10 that has received the polling packet 52 or the inquiry packet 55 to transmit predetermined terminal information about the own terminal to neighboring terminals. The information notification packet 54 includes, for example, a common header 541, an information notification priority storage flag 542, an information notification code 543, an information notification data length 544, and information notification data 545.
 共通ヘッダ541は、共通ヘッダ51と同じである。情報通知優先保存フラグ542は、情報通知パケット54を受信した端末10(またはゲートウェイ20)が、情報通知データ545で表される情報を保存するか保存しないかを判断するための情報である。 The common header 541 is the same as the common header 51. The information notification priority saving flag 542 is information for the terminal 10 (or gateway 20) that has received the information notification packet 54 to determine whether to save the information represented by the information notification data 545 or not.
 情報通知コード543は、情報通知データ545の種類を表す情報である。情報通知データ長544は、情報通知データ545の長さを表す情報である。情報通知データ545は、端末10の定期計測値データベース123が保持している、定期収集値1231および定期収集時刻1232などの情報を表す。 Information notification code 543 is information indicating the type of information notification data 545. The information notification data length 544 is information indicating the length of the information notification data 545. The information notification data 545 represents information such as the regular collection value 1231 and the regular collection time 1232 stored in the regular measurement value database 123 of the terminal 10.
 図8(e)は、問合せパケット55の一例を示す。問合せパケット55は、ポーリングパケット52を受信した端末10が、問合せフラグ523の情報に応じて応答するときのパケットであり、共通ヘッダ551を含んで構成される。 FIG. 8E shows an example of the inquiry packet 55. The inquiry packet 55 is a packet when the terminal 10 that has received the polling packet 52 responds according to the information of the inquiry flag 523, and includes a common header 551.
 共通ヘッダ551は、共通ヘッダ51と同じである。なお、問合せパケット55には、問合せに対する応答としての情報通知パケット54に格納するデータの数や種類を問合せ先の端末10に指定するための制御情報を含めてもよい。 The common header 551 is the same as the common header 51. The inquiry packet 55 may include control information for designating the terminal 10 that is the inquiry destination as the number and type of data stored in the information notification packet 54 as a response to the inquiry.
 図9は、定期収集プログラム321が実行する、定期収集値を各端末10から収集する処理を示すフローチャートである。 FIG. 9 is a flowchart showing a process of collecting the regularly collected values from each terminal 10 executed by the regularly collecting program 321.
 定期収集プログラム321は、データ収集サーバ30が、管理下の各端末10にポーリング処理(S12)を順番に行うことで、各端末10で検出した定期収集値を所定の間隔で収集する。 The periodic collection program 321 collects the regularly collected values detected at each terminal 10 at predetermined intervals by causing the data collection server 30 to sequentially perform polling processing (S12) on each terminal 10 under management.
 定期収集プログラム321は、或る端末10へのポーリング通信が失敗した場合に、その失敗した端末(障害発生端末)の周辺に位置して当該障害発生端末と無線通信可能な隣接端末へのポーリング処理時に、問合せパケット55を送信する。これにより、本実施例では、無線通信経路の環境が変化して定期収集値の取得に失敗した場合でも、ポーリングを起点とした処理のみで障害発生端末10から定期収集値を取得できる。 When the polling communication to a certain terminal 10 fails, the periodic collection program 321 polls an adjacent terminal that is located around the failed terminal (failure-occurring terminal) and can communicate wirelessly with the failure-occurring terminal. At times, an inquiry packet 55 is transmitted. Thereby, in this embodiment, even when the environment of the wireless communication path changes and the acquisition of the periodic collection value fails, the periodic collection value can be acquired from the faulty terminal 10 only by the process starting from polling.
 定期収集プログラム321は、まず最初に、定期収集番号をリセットし(S10)、次に、定期収集番号を1つインクリメントする(S11)。定期収集プログラム321は、端末10から定期収集値を取得するために、管理下の各端末10の中から所定の選択基準に従っていずれか1つの端末を選択し、ポーリングパケット52を送信するポーリング処理を行う(S12)。ポーリング処理については図10に後述する。 The regular collection program 321 first resets the regular collection number (S10), and then increments the regular collection number by one (S11). The periodic collection program 321 performs a polling process in which any one terminal is selected from the managed terminals 10 according to a predetermined selection criterion and the polling packet 52 is transmitted in order to acquire the regular collection value from the terminal 10. Perform (S12). The polling process will be described later with reference to FIG.
 定期収集プログラム321は、全ての端末10へのポーリング処理を行うまで、ステップS12のポーリング処理を繰り返す(S13)。定期収集プログラム321は、ポーリング対象端末から受信するポーリング応答パケット53内の情報に基づいて、ルーティングテーブル333を更新する(S14)。 The periodic collection program 321 repeats the polling process in step S12 until the polling process for all the terminals 10 is performed (S13). The regular collection program 321 updates the routing table 333 based on the information in the polling response packet 53 received from the polling target terminal (S14).
 定期収集プログラム321は、ポーリングによる通信が失敗した端末(障害発生端末)が、新しい無線通信経路から次回のポーリングが可能であるか判定する(S15)。定期収集プログラム321は、ポーリングに失敗した端末について復旧見込みがあると判定した場合(S15:YES)、一定時間待機した後(S18)、ステップS11に戻り、定期収集番号を1つインクリメントして、定期収集を行う。例えば、電力消費量などを計測する場合は、30分または15分などの所定時間が経過した後で、次の収集サイクルが開始される。その新たな収集サイクルにおいて、隣接端末は失敗端末に問合せし、失敗端末から定期収集値を取得する。 The periodic collection program 321 determines whether a terminal (failure occurrence terminal) for which communication by polling has failed can be polled next time from a new wireless communication path (S15). If the periodic collection program 321 determines that there is a possibility of recovery for the terminal that has failed polling (S15: YES), after waiting for a certain time (S18), it returns to step S11, increments the periodic collection number by one, Regular collection. For example, when measuring power consumption, the next collection cycle is started after a predetermined time such as 30 minutes or 15 minutes has elapsed. In the new collection cycle, the neighboring terminal makes an inquiry to the failed terminal and acquires a regularly collected value from the failed terminal.
 定期収集プログラム321は、失敗端末への新しい無線通信経路を作成することができず、失敗端末の復旧見込みがないと判定した場合(S15:NO)、失敗端末と通信可能な全ての隣接端末から問合せしたか判定する(S16)。定期収集プログラム321は、全ての隣接端末から問合せを試み済みであると判定すると(S16:YES)、ポーリングが失敗した端末に対して孤立警告を出す(S17)。まだ問合せを試みていない隣接端末が有る場合(S16:NO)、次の定期収集番号でのポーリング時に問合せるために、一定時間待機して(S18)、ステップS11に戻る。 If the periodic collection program 321 is unable to create a new wireless communication path to the failed terminal and determines that there is no prospect of recovery of the failed terminal (S15: NO), the periodic collection program 321 starts from all adjacent terminals that can communicate with the failed terminal. It is determined whether the inquiry has been made (S16). If the periodic collection program 321 determines that the inquiry has been attempted from all the adjacent terminals (S16: YES), it issues an isolation warning to the terminal that has failed polling (S17). When there is an adjacent terminal that has not yet attempted an inquiry (S16: NO), in order to make an inquiry at the time of polling with the next periodic collection number, it waits for a certain time (S18) and returns to step S11.
 ここで、ステップS14のルーティングテーブル333の更新処理は、ポーリング応答パケット53内の隣接端末データ537からリンクデータベース332に変化があったと判定できる場合にのみ、行う構成でもよい。これにより、データ収集サーバ30によるルーティングテーブル333の更新回数を低減して、処理負荷を軽減できる。 Here, the update process of the routing table 333 in step S14 may be performed only when it can be determined that the link database 332 has changed from the adjacent terminal data 537 in the polling response packet 53. Thereby, the update frequency of the routing table 333 by the data collection server 30 can be reduced, and processing load can be reduced.
 なお、隣接端末データ537に基づいてリンクデータベース332に変化があったか判定できる場合としては、例えば受信品質に3dBm以上の変化が生じた場合、ポーリングに失敗した端末が検出された場合などを挙げることができる。 Examples of the case where it can be determined whether the link database 332 has changed based on the adjacent terminal data 537 include, for example, a case where a change of 3 dBm or more occurs in the reception quality, or a case where a terminal that has failed in polling is detected. it can.
 ルーティングテーブル333を更新する方法の例を説明する。定期収集プログラム321は、リンクデータベース332を参照することで、複数存在する無線通信経路の候補のうち、例えば最短経路を求めたり、または、受信品質の高い経路を選択したり、ホップ数と受信品質を組み合わせたりして、新たな経路を作成する。 An example of a method for updating the routing table 333 will be described. The periodic collection program 321 refers to the link database 332 to find, for example, the shortest path among a plurality of existing wireless communication path candidates, or to select a path with high reception quality, the number of hops and reception quality To create a new route.
 ステップS18でポーリング失敗端末に孤立警告を出す方法としては、例えば、出力装置35に警告を表示したり、データ収集サーバ30の管理者に電子メールなどで知らせたりする方法がある。管理者への警告により、例えば、利用する無線通信チャネルの変更を提案したり、保守員による現地調査を促したりすることでも可能である。 As a method of issuing an isolation warning to the polling failure terminal in step S18, for example, there is a method of displaying a warning on the output device 35 or notifying the administrator of the data collection server 30 by e-mail or the like. For example, it is possible to propose a change of a wireless communication channel to be used or to prompt a field investigation by a maintenance staff by warning the administrator.
 図10は、図9中のステップS12で述べたポーリング処理の詳細を示すフローチャートである。 FIG. 10 is a flowchart showing details of the polling process described in step S12 in FIG.
 ポーリング処理(S12)は、図9で説明した通り、定期収集プログラム321のサブルーチンであり、通常のポーリング処理と、ポーリング失敗端末を復旧するためのポーリング処理とを実行する。 As described with reference to FIG. 9, the polling process (S12) is a subroutine of the periodic collection program 321 and executes a normal polling process and a polling process for recovering a polling failure terminal.
 定期収集プログラム321は、まず最初に、ポーリングの対象となる端末10を決定する(S120)。定期収集プログラム321は、ポーリング対象端末の隣接端末として、ポーリングが失敗した端末があるか確認する(S121)。つまり、定期収集プログラム321は、ポーリング対象端末が、失敗端末の隣接端末であるかを判定する。 The periodic collection program 321 first determines the terminal 10 to be polled (S120). The periodic collection program 321 checks whether there is a terminal that has failed in polling as an adjacent terminal of the polling target terminal (S121). That is, the periodic collection program 321 determines whether the polling target terminal is an adjacent terminal of the failed terminal.
 定期収集プログラム321は、ポーリング対象端末が失敗端末の隣接端末であると判定すると(S121:YES)、ポーリングパケット52に問合せフラグ523をセットする(S122)。さらに、定期収集プログラム321は、ポーリングパケット52の情報通知パケット送信コード522を設定する(S123)。定期収集プログラム321は、このようにして生成したポーリングパケット52をポーリング対象端末を宛先として送信する(S124)。 If the periodic collection program 321 determines that the polling target terminal is an adjacent terminal of the failed terminal (S121: YES), it sets the inquiry flag 523 in the polling packet 52 (S122). Further, the periodic collection program 321 sets the information notification packet transmission code 522 of the polling packet 52 (S123). The periodic collection program 321 transmits the polling packet 52 generated in this way with the polling target terminal as the destination (S124).
 定期収集プログラム321は、ポーリングパケット52の送信後に一定時間待機し、待機中にポーリング応答パケット53を受信したか、それともタイムアウトが生じたか判定する(S125)。 The periodic collection program 321 waits for a predetermined time after the transmission of the polling packet 52, and determines whether the polling response packet 53 is received during the waiting or whether a timeout has occurred (S125).
 定期収集プログラム321は、ポーリング対象端末からのポーリング応答パケット53を一定時間内に受領した場合、ポーリング応答パケット53から得られたデータにより、定期収集値データベース331およびリンクデータベース332を更新する。これによりポーリング通信は成功する(S126)。 The periodic collection program 321 updates the periodic collection value database 331 and the link database 332 with the data obtained from the polling response packet 53 when receiving the polling response packet 53 from the polling target terminal within a predetermined time. Thereby, the polling communication is successful (S126).
 もし、一定時間内にポーリング対象端末からポーリング応答パケット53を受信できずにタイムアウトとなった場合、定期収集プログラム321は、ポーリング通信は失敗したものとして、定期収集値データベース331にデータを取得できなかった旨を記録する(S127)。次のループで、定期収集プログラム321は、ポーリング失敗端末の隣接端末へのポーリング処理時に、問合せフラグをセットする(S122)。 If the polling response packet 53 cannot be received from the polling target terminal within a certain time and a time-out occurs, the periodic collection program 321 assumes that polling communication has failed and cannot acquire data in the periodic collection value database 331. The fact is recorded (S127). In the next loop, the periodic collection program 321 sets an inquiry flag at the time of polling processing to the adjacent terminal of the polling failure terminal (S122).
 ステップS120でポーリング対象端末を決定する基準の例としは、例えば、ポーリング未実施の端末からランダムに選択する、前回の定期収集番号においてポーリングが失敗した端末から先に選択する、ノードIDの順番で選択する、などがある。 Examples of criteria for determining a polling target terminal in step S120 include, for example, a node ID that is randomly selected from terminals that have not been polled, a node that has failed polling in the previous periodic collection number, and a node ID that is selected first. And so on.
 ステップS123で情報通知パケット送信コード522のセット方法を例示する。例えば、情報通知パケット54をブロードキャスト送信するか、送信しないかをランダムに決定することでトラフィック量を削減するモード、または、通信経路の障害が復旧してから一定の定期収集番号までの間は情報通知優先保存フラグ542をセットして情報通知パケット54を送信させるモード、などを情報通知パケット送信コード522にセットすることができる。 Example of setting information notification packet transmission code 522 in step S123. For example, in a mode in which the information notification packet 54 is broadcasted or not transmitted at random, the amount of traffic is reduced, or information is recovered until a fixed periodic collection number is recovered after a communication path failure is recovered. A mode in which the notification priority storage flag 542 is set and the information notification packet 54 is transmitted can be set in the information notification packet transmission code 522.
 図11は、パケット通信プログラム322、221、122の実行するパケット通信処理を示すフローチャートである。以下の説明では、パケット通信プログラム322、221、122を、パケット通信プログラムと略記する。パケット通信プログラムは、サーバ30、ゲートウェイ20、端末10でそれぞれ実行されるが、後述する各処理S23~S26の特性に応じて、パケット通信プログラムを実行する装置の名称を変更する。例えば、ポーリングパケットを受信する処理(S23)、情報通知パケットを受信する処理(S25)、問合せパケットを受信する処理(S26)は、主に端末10で実行するため、端末10に焦点を当てて説明する。ポーリング応答パケットを受信する処理は、データ収集サーバ30で実行するため、データ収集サーバ30に焦点を当てて説明する。ゲートウェイ20は、データ収集サーバ30と各端末10との橋渡しを行うもので、端末10に含めて説明することがある。 FIG. 11 is a flowchart showing packet communication processing executed by the packet communication programs 322, 221 and 122. In the following description, the packet communication programs 322, 221 and 122 are abbreviated as packet communication programs. The packet communication program is executed by the server 30, the gateway 20, and the terminal 10, respectively, but the name of the device that executes the packet communication program is changed according to the characteristics of each process S23 to S26 described later. For example, the process of receiving a polling packet (S23), the process of receiving an information notification packet (S25), and the process of receiving an inquiry packet (S26) are mainly executed by the terminal 10, and thus focus on the terminal 10. explain. Since the process of receiving the polling response packet is executed by the data collection server 30, a description will be given focusing on the data collection server 30. The gateway 20 serves as a bridge between the data collection server 30 and each terminal 10 and may be described as being included in the terminal 10.
 パケット通信プログラムは、端末がパケットを受信した場合、パケットの共通ヘッダに含まれるネットワークIDおよび宛先ノードIPアドレスなどを確認する。パケット通信プログラムは、必要に応じて次の中継端末へパケットを転送する。パケット通信プログラムは、受信パケットの宛先が自端末の場合、パケット識別コード518に応じて、ポーリングパケット受信処理(S23)、ポーリング応答パケット受信処理(S24)、情報通知パケット受信処理(S25)、問合せパケット受信処理(S26)を実行する。 When the terminal receives the packet, the packet communication program confirms the network ID and the destination node IP address included in the common header of the packet. The packet communication program transfers the packet to the next relay terminal as necessary. When the destination of the received packet is its own terminal, the packet communication program performs polling packet reception processing (S23), polling response packet reception processing (S24), information notification packet reception processing (S25), inquiry according to the packet identification code 518 Packet reception processing (S26) is executed.
 パケット通信プログラムは、自端末の属するネットワークのIDと、パケットのネットワークID511とが一致するか確認する(S20)。パケット通信プログラムは、自端末10の属するネットワークのIDと受信パケットに設定されているネットワークIDとが一致しないと判定すると(S20:NO)、本処理を終了する。担当範囲外のパケットを受領したためである。 The packet communication program checks whether the ID of the network to which the terminal belongs and the network ID 511 of the packet match (S20). If the packet communication program determines that the ID of the network to which the terminal 10 belongs does not match the network ID set in the received packet (S20: NO), the process ends. This is because a packet outside the assigned range was received.
 パケット通信プログラムは、自端末10の属するネットワークのIDと受信パケットのネットワークIDとが一致すると判定した場合(S20:YES)、共通ヘッダ51に記載されている宛先ノードIPアドレス513から、そのパケットの宛先が自端末であるか判定する(S21)。 If the packet communication program determines that the ID of the network to which the terminal 10 belongs and the network ID of the received packet match (S20: YES), the packet communication program uses the destination node IP address 513 described in the common header 51 to It is determined whether the destination is its own terminal (S21).
 パケット通信プログラムは、パケットの最終的な配達先である宛先ノードが自端末ではないと判定すると(S21:NO)、パケットの共通ヘッダ51に設定されている次の中継先ノードIPアドレス516を参照し、そこに記載されている次の端末にパケットを転送する(S27)。 When the packet communication program determines that the destination node that is the final delivery destination of the packet is not its own terminal (S21: NO), it refers to the next relay destination node IP address 516 set in the common header 51 of the packet. Then, the packet is transferred to the next terminal described therein (S27).
 パケット通信プログラムは、受信パケットの宛先が自端末であると判定すると(S21:YES)、パケットのパケット識別コード518を確認する(S22)。 When the packet communication program determines that the destination of the received packet is its own terminal (S21: YES), it checks the packet identification code 518 of the packet (S22).
 パケット通信プログラムは、パケット識別コードが「00」の場合は、ポーリングパケットを受信する処理(S23)を実行し、パケット識別コードが「01」の場合は、ポーリング応答パケットを受信する処理(S24)を実行する。パケット通信プログラムは、パケット識別コードが「10」の場合は、情報通知パケットを受信する処理(S25)を実行し、パケット識別コードが「11」の場合は問合せパケットを受信する処理(S26)を実行する。詳細はそれぞれ、図12、図13、図14、図15に後述する。 When the packet identification code is “00”, the packet communication program executes a process of receiving a polling packet (S23). When the packet identification code is “01”, the packet communication program receives a polling response packet (S24). Execute. When the packet identification code is “10”, the packet communication program executes a process of receiving an information notification packet (S25), and when the packet identification code is “11”, the packet communication program receives a query packet (S26). Execute. Details will be described later with reference to FIGS. 12, 13, 14, and 15, respectively.
 図12は、図11で述べたポーリングパケット受信処理(S23)の詳細を示すフローチャートである。ポーリングパケット受信処理S23は、図11で述べた通り、パケット通信プログラムのサブルーチンの一つであり、パケット内の情報通知パケット送信コード522に応じて情報通知パケット54を送信する。さらに、ポーリングパケット受信処理S23は、パケットの問合せフラグ523に応じて問合せパケット55を送信し、自端末で計測したデータ(定期収集値)と隣接端末で検出したデータとをポーリング応答パケット53にセットして、サーバ30に送信する。 FIG. 12 is a flowchart showing details of the polling packet reception process (S23) described in FIG. The polling packet reception processing S23 is one of the subroutines of the packet communication program as described in FIG. 11, and transmits the information notification packet 54 in accordance with the information notification packet transmission code 522 in the packet. Further, the polling packet reception process S23 transmits an inquiry packet 55 according to the inquiry flag 523 of the packet, and sets the data measured by the own terminal (periodically collected value) and the data detected by the adjacent terminal in the polling response packet 53. Then, the data is transmitted to the server 30.
 パケット通信プログラムは、受信したポーリングパケット52の情報通知パケット送信コード522の値を確認する(S230)。パケット通信プログラムは、送信コード522が「00」の場合は何もせずに後述のS233に移り、「10」の場合は情報通知パケット54を周囲の端末に向けてブロードキャストし(S232)、「11」の場合は情報通知優先保存フラグ542を設定してから(S231)、情報通知パケット54をブロードキャストする(S232)。 The packet communication program confirms the value of the information notification packet transmission code 522 of the received polling packet 52 (S230). If the transmission code 522 is “00”, the packet communication program does nothing and moves to S233 described later. If the transmission code 522 is “10”, the packet communication program broadcasts the information notification packet 54 to surrounding terminals (S232). ", The information notification priority storage flag 542 is set (S231), and then the information notification packet 54 is broadcast (S232).
 パケット通信プログラムは、受信したポーリングパケット52の問合せフラグ523がセットされているか判定する(S233)。問合せフラグ523がセットされている場合(S233:TRUE)、パケット通信プログラムは、問合せ先ノードIPアドレス524の端末に対して問合せパケット55を送信する(S234)。 The packet communication program determines whether the inquiry flag 523 of the received polling packet 52 is set (S233). When the inquiry flag 523 is set (S233: TRUE), the packet communication program transmits an inquiry packet 55 to the terminal having the inquiry node IP address 524 (S234).
 パケット通信プログラムは、問合せパケット55の送信後にタイムアウトが発生した場合、または、情報通知パケット54を受信した場合のいずれかの場合(S235)、隣接端末データベース124が前回のポーリングパケット受信時と比べて更新されているか判定する(S236)。パケット通信プログラムは、自端末周辺の他端末(隣接端末)から受信する情報通知パケット54の受信強度などに基づいて、隣接端末データベース124が更新されたかを判定することができる。 In the case where a timeout occurs after the inquiry packet 55 is transmitted or when the information notification packet 54 is received (S235), the packet communication program compares the adjacent terminal database 124 with the previous polling packet reception time. It is determined whether it has been updated (S236). The packet communication program can determine whether the adjacent terminal database 124 has been updated based on the reception strength of the information notification packet 54 received from another terminal (adjacent terminal) around the terminal.
 パケット通信プログラムは、隣接端末データベース124が更新されたと判定すると(S236:YES)、隣接端末に関するデータを隣接端末データベース124に記憶して(S237)、そして、データ収集サーバ30にポーリング応答パケット53を送信する(S238)。 If the packet communication program determines that the adjacent terminal database 124 has been updated (S236: YES), it stores data related to the adjacent terminal in the adjacent terminal database 124 (S237), and sends a polling response packet 53 to the data collection server 30. Transmit (S238).
 ステップS238でポーリング応答パケット53を送信するに際して、受信したポーリングパケット52のルーティング情報515~517を逆順にセットすることで、ポーリング応答パケット53を送信するためのルーティング情報を得ることができる。これにより、ポーリングパケット52が中継された経路を逆に辿ることで、データ収集サーバ30にポーリング応答パケット53を送信できる(S238)。 When transmitting the polling response packet 53 in step S238, the routing information for transmitting the polling response packet 53 can be obtained by setting the routing information 515 to 517 of the received polling packet 52 in reverse order. Accordingly, the polling response packet 53 can be transmitted to the data collection server 30 by tracing back the route through which the polling packet 52 is relayed (S238).
 なお、パケット通信プログラムは、問合せフラグ523がセットされていないと判定した場合(S233:FALSE)、ステップS234およびS235をスキップしてステップS236に移る。パケット通信プログラムは、隣接端末データベース124が更新されないと判定した場合(S236:NO)、ステップS237をスキップしてステップS238に移る。 If the inquiry flag 523 is determined not to be set (S233: FALSE), the packet communication program skips steps S234 and S235 and proceeds to step S236. If it is determined that the adjacent terminal database 124 is not updated (S236: NO), the packet communication program skips step S237 and proceeds to step S238.
 図13は、図11で述べたポーリング応答パケット受信処理(S24)の詳細を示すフローチャートである。ポーリング応答パケット受信処理S24は、パケット通信プログラムのサブルーチンの一つであり、ポーリング対象端末10から返信されたポーリング応答パケット53のデータに応じて、定期収集値データベース331およびリンクデータベース332を更新する。 FIG. 13 is a flowchart showing details of the polling response packet reception process (S24) described in FIG. The polling response packet reception process S24 is one of the subroutines of the packet communication program, and updates the periodic collection value database 331 and the link database 332 according to the data of the polling response packet 53 returned from the polling target terminal 10.
 パケット通信プログラムは、受信したポーリング応答パケット53のポーリング応答データ534に基づいて、定期収集値データベース331を更新する(S240)。パケット通信プログラムは、ポーリング応答パケット53の隣接端末データコード535を確認して、隣接端末データ537があるか判定する(S241)。パケット通信プログラムは、隣接端末データ537があると判定した場合(S241:YES)、隣接端末データ537により、定期収集値データベース331およびリンクデータベース332を更新する(S242)。 The packet communication program updates the regularly collected value database 331 based on the polling response data 534 of the received polling response packet 53 (S240). The packet communication program checks the adjacent terminal data code 535 of the polling response packet 53 and determines whether there is adjacent terminal data 537 (S241). If it is determined that there is adjacent terminal data 537 (S241: YES), the packet communication program updates the periodic collection value database 331 and the link database 332 with the adjacent terminal data 537 (S242).
 パケット通信プログラムは、ステップS242において、隣接端末の定期収集値などのデータを定期収集値データベース331に保存し、さらに、隣接端末からのパケットを受信したときの受信品質のデータなどをリンクデータベース332に保存する。 In step S242, the packet communication program stores the data such as the periodic collection value of the adjacent terminal in the periodic collection value database 331, and further stores the data of the reception quality when the packet from the adjacent terminal is received in the link database 332. save.
 図14は、図11で述べた情報通知パケット受信処理S25の詳細を示すフローチャートである。情報通知パケット受信処理S25は、パケット通信プログラムのサブルーチンの一つである。情報通知パケット受信処理S25では、端末10が、隣接端末から送信された情報通知パケット54を受信した場合に、優先度に応じて情報通知データ545を保存する。 FIG. 14 is a flowchart showing details of the information notification packet reception process S25 described in FIG. The information notification packet reception process S25 is one of subroutines of the packet communication program. In the information notification packet reception process S25, when the terminal 10 receives the information notification packet 54 transmitted from the adjacent terminal, the information notification data 545 is stored according to the priority.
 パケット通信プログラムは、情報通知パケット54の情報通知優先保存フラグ542がセットされているか確認する(S250)。パケット通信プログラムは、保存フラグ542がセットされていると判定した場合(S250:TRUE)、情報通知データ545を隣接端末データベース223、124に保存する(S252)。 The packet communication program checks whether the information notification priority storage flag 542 of the information notification packet 54 is set (S250). When it is determined that the save flag 542 is set (S250: TRUE), the packet communication program saves the information notification data 545 in the adjacent terminal databases 223 and 124 (S252).
 パケット通信プログラムは、情報通知パケット54の情報通知優先保存フラグ542がセットされていないと判定した場合(S250:FALSE)、情報通知を保存するか否か判定する(S251)。 When the packet communication program determines that the information notification priority saving flag 542 of the information notification packet 54 is not set (S250: FALSE), it determines whether to save the information notification (S251).
 パケット通信プログラムは、保存すると判定した場合、情報通知データ545を隣接端末データベース223、124に保存する(S252)。パケット通信プログラムは、保存しないと判定した場合、つまり、情報通知データ545を破棄すると判定した場合、本処理を終了する。 When it is determined that the packet communication program is to be saved, the information notification data 545 is saved in the adjacent terminal databases 223 and 124 (S252). If it is determined that the packet communication program is not to be saved, that is, if it is determined that the information notification data 545 is to be discarded, this processing ends.
 ここで、ステップS251での判定方法としては、例えば、保存するか否かを乱数に基づいてランダムに決定する、情報通知パケット54の受信時の電力値が所定値以上の場合に保存し、受信時の電力値が所定値未満の場合は破棄する、ゲートウェイ20では保存せずに、端末10ではメモリが空いている限り保存する、などが考えられる。 Here, as a determination method in step S251, for example, whether or not to save is determined randomly based on a random number. When the power value at the time of reception of the information notification packet 54 is equal to or larger than a predetermined value, the information is stored and received. If the power value at the time is less than a predetermined value, it can be discarded, the gateway 20 does not store it, and the terminal 10 stores it as long as the memory is free.
 なお、端末10が十分な記憶領域を有する場合、S250およびS251を除去し、端末10が受信した全ての情報通知パケット54の情報通知データ545を、隣接端末データベース223、124に保存してもよい。 If terminal 10 has a sufficient storage area, S250 and S251 may be removed, and information notification data 545 of all information notification packets 54 received by terminal 10 may be stored in adjacent terminal databases 223 and 124. .
 図15は、図11で述べた問合せパケット受信処理S26の詳細を示すフローチャートである。問合せパケット受信処理S26は、パケット通信プログラムのサブルーチンの一つである。問合せパケット受信処理S26では、端末10が、隣接端末から送信された問合せパケット55を受信した場合に、情報通知優先保存フラグ542をセットした情報通知パケット54をブロードキャストするようになっている。 FIG. 15 is a flowchart showing details of the inquiry packet reception process S26 described in FIG. The inquiry packet reception process S26 is one of the subroutines of the packet communication program. In the inquiry packet reception process S26, when the terminal 10 receives the inquiry packet 55 transmitted from the adjacent terminal, the information notification packet 54 in which the information notification priority storage flag 542 is set is broadcast.
 パケット通信プログラムは、情報通知パケット54に情報通知優先保存フラグ542をセットする(S260)。パケット通信プログラムは、情報通知優先保存フラグ542をセットした情報通知パケット54をブロードキャストする(S261)。 The packet communication program sets the information notification priority storage flag 542 in the information notification packet 54 (S260). The packet communication program broadcasts the information notification packet 54 in which the information notification priority storage flag 542 is set (S261).
 図16は、無線マルチホップ通信を用いるポーリングにより各端末10からデータを収集する一例を示すシーケンス図である。 FIG. 16 is a sequence diagram illustrating an example of collecting data from each terminal 10 by polling using wireless multi-hop communication.
 データ収集サーバ30の定期収集プログラム321は、ポーリング対象をノードID11の端末10に決定し(S30)、情報通知パケット送信コード522を「10」にセットして(S31)、ポーリングパケット52を送信する(S32)。 The periodic collection program 321 of the data collection server 30 determines the polling target to be the terminal 10 of the node ID 11 (S30), sets the information notification packet transmission code 522 to “10” (S31), and transmits the polling packet 52. (S32).
 ゲートウェイ20のパケット通信プログラム221は、ルーティング情報に記載された次の中継先ノードにポーリングパケット52を転送する(S33)。 The packet communication program 221 of the gateway 20 transfers the polling packet 52 to the next relay destination node described in the routing information (S33).
 端末10(ID11)のパケット通信プログラム122は、ポーリングパケット52を受信すると、情報通知パケット送信コード522の値を判定する(S34)。ここでは、ステップS31で情報通知パケット送信コードに「10」が設定されているため、パケット通信プログラム122は、保存フラグをセットしていない情報通知パケット54をブロードキャストする(S35)。 When receiving the polling packet 52, the packet communication program 122 of the terminal 10 (ID11) determines the value of the information notification packet transmission code 522 (S34). Here, since “10” is set in the information notification packet transmission code in step S31, the packet communication program 122 broadcasts the information notification packet 54 in which the storage flag is not set (S35).
 端末10(ID12)は、端末10(ID11)と直接無線通信を行うことのできる隣接端末である。端末10(ID12)のパケット通信プログラム122は、端末10(ID11)からブロードキャストされた情報通知パケット54を受信すると、そのパケット54のデータを保存するか否か判定する(S36)。端末10(ID12)のパケット通信プログラム122は、保存すると判定した場合、端末10(ID11)から受信したパケット54の情報通知データ545を、端末10(ID12)の隣接端末データベース124に保存する(S37)。パケット通信プログラム122は、保存しないと判定した場合、端末10(ID11)から受信した情報通知パケット54を破棄する。 The terminal 10 (ID12) is an adjacent terminal that can directly perform wireless communication with the terminal 10 (ID11). When receiving the information notification packet 54 broadcast from the terminal 10 (ID11), the packet communication program 122 of the terminal 10 (ID12) determines whether or not to save the data of the packet 54 (S36). If it is determined that the packet communication program 122 of the terminal 10 (ID12) is to be saved, the information notification data 545 of the packet 54 received from the terminal 10 (ID11) is saved in the adjacent terminal database 124 of the terminal 10 (ID12) (S37). ). When the packet communication program 122 determines not to save, the packet communication program 122 discards the information notification packet 54 received from the terminal 10 (ID11).
 一方、ゲートウェイ20(ID1)のパケット通信プログラム221は、端末10(ID11)からブロードキャストされた情報通知パケット54を受信すると、そのパケット54のデータを保存するか否か判定する(S38)。ここでは、ゲートウェイ20のパケット通信プログラム221は、情報通知パケット54の情報通知データ545を保存しないと判定し、そのパケット54を破棄するものとする。 On the other hand, when receiving the information notification packet 54 broadcast from the terminal 10 (ID11), the packet communication program 221 of the gateway 20 (ID1) determines whether or not to save the data of the packet 54 (S38). Here, it is assumed that the packet communication program 221 of the gateway 20 determines not to store the information notification data 545 of the information notification packet 54 and discards the packet 54.
 端末10(ID11)のパケット通信プログラム122は、端末10(ID11)の持つ隣接端末データベース124のデータを確認する(S39)。端末10(ID11)のパケット通信プログラム122は、前回のポーリング応答パケット53の送信時と比較してデータに変化がないと判定した場合、通常のポーリング応答パケット53をサーバ30に送信する(S40)。 The packet communication program 122 of the terminal 10 (ID11) confirms the data in the adjacent terminal database 124 possessed by the terminal 10 (ID11) (S39). If the packet communication program 122 of the terminal 10 (ID11) determines that there is no change in data compared to the previous transmission of the polling response packet 53, the packet communication program 122 transmits the normal polling response packet 53 to the server 30 (S40). .
 ゲートウェイ20のパケット通信プログラム221は、端末10(ID11)から受信したポーリング応答パケット53を、次の中継先ノードとしてのデータ収集サーバ30に転送する(S41)。 The packet communication program 221 of the gateway 20 transfers the polling response packet 53 received from the terminal 10 (ID11) to the data collection server 30 as the next relay destination node (S41).
 データ収集サーバ30のパケット通信プログラム322は、ポーリング応答パケット53を受信すると、ポーリング応答データ534を定期収集値データベース331に保存する(S42)。パケット通信プログラム322は、隣接端末データコード535を確認し(S43)、受信したポーリング応答パケット53が隣接端末のデータを含んでいないと判定すると、パケット通信プログラム322を終了する。 When receiving the polling response packet 53, the packet communication program 322 of the data collection server 30 stores the polling response data 534 in the periodic collection value database 331 (S42). When the packet communication program 322 confirms the adjacent terminal data code 535 (S43) and determines that the received polling response packet 53 does not include the data of the adjacent terminal, the packet communication program 322 ends.
 以上の動作を繰り返すことで、データ収集サーバ30は、各端末10から定期収集値を順番に回収しながら、端末10の隣接端末についての情報(リンク情報)を更新することができる。 By repeating the above operation, the data collection server 30 can update information (link information) about the adjacent terminals of the terminal 10 while collecting the regularly collected values from each terminal 10 in order.
 図17は、ポーリングが失敗した端末の隣接端末へのポーリング時に、失敗端末での定期収集値を、隣接端末を介して取得する例を示すシーケンス図である。ここでは、端末10(ID12)へのポーリングが失敗した場合を説明する。 FIG. 17 is a sequence diagram illustrating an example of acquiring the regularly collected value at the failed terminal via the adjacent terminal when polling the adjacent terminal of the terminal that has failed in the polling. Here, a case where polling to the terminal 10 (ID12) has failed will be described.
 データ収集サーバ30の定期収集プログラム321は、端末10(ID11)へのポーリングパケット52において、端末10(ID12)に対する問合せフラグ523をセットすると共に(S50)、情報通知パケット送信コード522を「00」にセットする(S51)。定期収集プログラム321は、そのようにして生成したポーリングパケット52を、ポーリング対象端末10(ID11)に送信する(S52)。 The periodic collection program 321 of the data collection server 30 sets the inquiry flag 523 for the terminal 10 (ID12) in the polling packet 52 to the terminal 10 (ID11) (S50), and sets the information notification packet transmission code 522 to “00”. (S51). The periodic collection program 321 transmits the polling packet 52 thus generated to the polling target terminal 10 (ID11) (S52).
 ゲートウェイ20のパケット通信プログラム221は、次の中継先ノードとしての端末10(ID11)にポーリングパケット52を送信する(S53)。 The packet communication program 221 of the gateway 20 transmits the polling packet 52 to the terminal 10 (ID11) as the next relay destination node (S53).
 端末10(ID11)のパケット通信プログラム122は、ポーリングパケット52を受信すると、情報通知パケット送信コード522を判定する(S54)。ここでは、情報通知パケット送信コード522に「00」が設定されているため、パケット通信プログラム122は、情報通知パケット54をブロードキャストしない。つまり、失敗端末(障害発生端末)への問合せを行う隣接端末(問合せ元端末)は、自端末宛てのポーリングパケット52を受け取った場合に、自端末についての情報通知パケット54をブロードキャストしない。これに対し、問合せ元端末からも情報通知パケット54をブロードキャストする構成としてもよい。 When receiving the polling packet 52, the packet communication program 122 of the terminal 10 (ID11) determines the information notification packet transmission code 522 (S54). Here, since “00” is set in the information notification packet transmission code 522, the packet communication program 122 does not broadcast the information notification packet 54. That is, when an adjacent terminal (inquiry source terminal) that makes an inquiry to a failed terminal (failure-occurring terminal) receives a polling packet 52 addressed to itself, it does not broadcast the information notification packet 54 about the terminal. On the other hand, the information notification packet 54 may be broadcast from the inquiry source terminal.
 端末10(ID11)は、問合せフラグ523を確認して、ポーリングに失敗した端末10(ID12)宛てに問合せパケット55を送信する(S56)。 The terminal 10 (ID11) confirms the inquiry flag 523, and transmits the inquiry packet 55 to the terminal 10 (ID12) that failed to poll (S56).
 端末10(ID12)のパケット通信プログラム122は、問合せ元である隣接端末10(ID11)から問合せパケット55を受信すると、情報通知優先保存フラグ542をセットした情報通知パケット54を生成し(S57)、その情報通知パケット54をブロードキャストする(S58)。 When the packet communication program 122 of the terminal 10 (ID12) receives the inquiry packet 55 from the adjacent terminal 10 (ID11) that is the inquiry source, the packet communication program 122 generates the information notification packet 54 in which the information notification priority storage flag 542 is set (S57), The information notification packet 54 is broadcast (S58).
 端末10(ID11)のパケット通信プログラム122は、失敗端末10(ID12)からブロードキャストされた情報通知パケット54を受信すると、そのパケット54の情報通知データ545を、端末10(ID11)の持つ隣接端末データベース124に保存する(S59)。端末10(ID11)が受信した情報通知パケット54では、ステップS57で情報通知優先保存フラグ542がセットされているためである。 When the packet communication program 122 of the terminal 10 (ID11) receives the information notification packet 54 broadcast from the failed terminal 10 (ID12), the information notification data 545 of the packet 54 is stored in the adjacent terminal database held by the terminal 10 (ID11). It is stored in 124 (S59). This is because the information notification priority saving flag 542 is set in step S57 in the information notification packet 54 received by the terminal 10 (ID11).
 端末10(ID11)のパケット通信プログラム122は、端末10(ID12)の情報通知パケット54から取り出したデータを、ポーリング応答パケット53の隣接端末データ537にセットする(S60)。端末10(ID11)のパケット通信プログラム122は、隣接端末データを有するポーリング応答パケット53を、データ収集サーバ30宛てに送信する(S61)。 The packet communication program 122 of the terminal 10 (ID11) sets the data extracted from the information notification packet 54 of the terminal 10 (ID12) in the adjacent terminal data 537 of the polling response packet 53 (S60). The packet communication program 122 of the terminal 10 (ID11) transmits the polling response packet 53 having the adjacent terminal data to the data collection server 30 (S61).
 ゲートウェイ20のパケット通信プログラム221は、次の中継先ノードであるデータ収集サーバ30にポーリング応答パケット53を送信する(S62)。なお、図17中では、ステップS63が時間を遡って実行されるかのように示しているが、実際には、ステップS61、S62の後で、ステップS63~S66が実行される。 The packet communication program 221 of the gateway 20 transmits the polling response packet 53 to the data collection server 30 which is the next relay destination node (S62). In FIG. 17, step S63 is shown as if executed backward, but in actuality, steps S63 to S66 are executed after steps S61 and S62.
 データ収集サーバ30のパケット通信プログラム322は、ポーリング応答パケット53を受信すると、ポーリング応答データ534に含まれる端末10(ID11)の定期収集値を定期収集値データベース331に保存する(S63)。 When the packet communication program 322 of the data collection server 30 receives the polling response packet 53, it stores the periodic collection value of the terminal 10 (ID11) included in the polling response data 534 in the periodic collection value database 331 (S63).
 パケット通信プログラム322は、隣接端末データコード535を確認し(S64)、隣接端末データ537の中の定期収集値などのデータを定期収集値データベース331に保存し(S65)、さらに、受信品質のデータなどをリンクデータベース332に保存する(S66)。 The packet communication program 322 confirms the adjacent terminal data code 535 (S64), stores data such as a regularly collected value in the adjacent terminal data 537 in the regularly collected value database 331 (S65), and further receives reception quality data. Are stored in the link database 332 (S66).
 以上により、端末10へのポーリングが通信経路の障害により失敗した場合においても、隣接端末となる端末10から問合せることで、ポーリングが失敗した端末が情報通知パケット54を送信する機会を与えることができる。データ収集サーバ30は、ポーリングに失敗した端末の検出した定期収集値を、問合せ元である隣接端末を介して収集することができる。これにより、本実施例の無線式データ収集システム1は、通信障害に速やかに対応することができ、使い勝手が高い。 As described above, even when polling to the terminal 10 fails due to a failure in the communication path, it is possible to give an opportunity for the terminal that has failed to transmit the information notification packet 54 by making an inquiry from the terminal 10 that is an adjacent terminal. . The data collection server 30 can collect the regularly collected values detected by the terminals that have failed polling via the neighboring terminal that is the inquiry source. As a result, the wireless data collection system 1 according to the present embodiment can quickly cope with a communication failure and has high usability.
 また、本実施例では、隣接端末から失敗端末への問合せに成功した場合、その隣接端末を介した新たな通信経路を設定することで、次の収集サイクルでは、その新たな通信経路を用いて失敗端末にポーリングすることができる。従って、本実施例によれば、ポーリングに失敗した端末へのポップ数に依存せずに、失敗端末のデータを収集でき、新たな通信経路を設定することができる。つまり、本実施例では、ポップ数にかかわらず、障害から復旧することができるため、復旧計画の見通しを立てやすい。従って、本実施例の無線式データ収集システム1は、耐障害性が高く、かつ、使い勝手がよい。 Further, in this embodiment, when the inquiry from the adjacent terminal to the failed terminal succeeds, by setting a new communication path via the adjacent terminal, the new communication path is used in the next collection cycle. You can poll failed terminals. Therefore, according to the present embodiment, data of failed terminals can be collected and a new communication path can be set without depending on the number of pops to terminals that have failed polling. That is, in this embodiment, it is possible to recover from a failure regardless of the number of pops, and therefore it is easy to make a recovery plan outlook. Therefore, the wireless data collection system 1 of this embodiment has high fault tolerance and is easy to use.
 なお、本発明は、上述した実施例に限定されない。当業者であれば、本発明の範囲内で、種々の追加や変更等を行うことができる。 In addition, this invention is not limited to the Example mentioned above. A person skilled in the art can make various additions and changes within the scope of the present invention.
 10:無線センサ端末、20:ゲートウェイ、30:データ収集サーバ 10: Wireless sensor terminal, 20: Gateway, 30: Data collection server

Claims (10)

  1.  複数の無線センサ端末と、前記複数の無線センサ端末からデータを取得するサーバを備える無線式データ収集システムであって、
     前記複数の無線センサ端末は、
      前記サーバからのポーリングパケットを受信すると、自端末に関する所定の端末情報を自端末周辺の無線センサ端末にブロードキャストし、
      自端末周辺の他の無線センサ端末からブロードキャストされた、前記他の無線センサ端末に関する所定の端末情報を受信して保持し、
      前記自端末に関する前記所定の端末情報と前記他の無線センサ端末に関する前記所定の端末情報とを、前記ポーリングパケットに対するポーリング応答として前記サーバに送信する、
    無線式データ収集システム。
     
    A wireless data collection system comprising a plurality of wireless sensor terminals and a server that acquires data from the plurality of wireless sensor terminals,
    The plurality of wireless sensor terminals are:
    Upon receiving a polling packet from the server, broadcast predetermined terminal information about the terminal to wireless sensor terminals around the terminal,
    Receives and holds predetermined terminal information related to the other wireless sensor terminals broadcast from other wireless sensor terminals around the terminal,
    Transmitting the predetermined terminal information regarding the own terminal and the predetermined terminal information regarding the other wireless sensor terminal to the server as a polling response to the polling packet;
    Wireless data collection system.
  2.  前記自端末に関する前記所定の端末情報には、前記自端末で検出したデータが含まれており、
     前記他の無線センサ端末に関する前記所定の端末情報には、前記他の無線センサ端末で検出したデータが含まれている、
    請求項1に記載の無線式データ収集システム。
     
    The predetermined terminal information related to the own terminal includes data detected by the own terminal,
    The predetermined terminal information related to the other wireless sensor terminal includes data detected by the other wireless sensor terminal.
    The wireless data collection system according to claim 1.
  3.  前記複数の無線センサ端末は、前記他の無線センサ端末に関する前記所定の端末情報を保持する場合には、自端末と前記他の無線センサ端末との間の無線通信の状態に関する情報も保持するようになっており、
     前記ポーリング応答には前記無線通信の状態に関する情報も含まれる、
    請求項2に記載の無線式データ収集システム。
     
    When the plurality of wireless sensor terminals hold the predetermined terminal information related to the other wireless sensor terminals, the wireless sensor terminals also hold information related to the state of wireless communication between the own terminal and the other wireless sensor terminals. And
    The polling response includes information related to the state of the wireless communication.
    The wireless data collection system according to claim 2.
  4.  前記複数の無線センサ端末のうち前記サーバからのポーリングパケットに応答できない障害発生端末については、前記複数の無線センサ端末のうち前記障害発生端末の周辺に位置して前記障害端末と無線通信可能な周辺端末が前記サーバからのポーリングパケットを受信した場合に、前記周辺端末から前記障害発生端末に向けて所定の問合せを行い、
     前記障害発生端末は前記周辺端末からの前記問合せを受信すると、自端末に関する前記所定の端末情報を前記自端末周辺の無線センサ端末にブロードキャストする、
    請求項3に記載の無線式データ収集システム。
     
    Of the plurality of wireless sensor terminals, a faulty terminal that cannot respond to a polling packet from the server is located around the faulty terminal among the plurality of wireless sensor terminals and is capable of wireless communication with the faulty terminal. When a terminal receives a polling packet from the server, a predetermined inquiry is made from the peripheral terminal to the faulty terminal,
    When the failure occurrence terminal receives the inquiry from the peripheral terminal, it broadcasts the predetermined terminal information about the own terminal to wireless sensor terminals around the own terminal,
    The wireless data collection system according to claim 3.
  5.  前記所定の端末情報は、当該所定の端末情報を保存するか否かを制御する保存制御情報を含む、
    請求項4に記載の無線式データ収集システム。
     
    The predetermined terminal information includes storage control information for controlling whether or not to store the predetermined terminal information.
    The wireless data collection system according to claim 4.
  6.  前記サーバが発行する前記ポーリングパケットには、前記所定の端末情報のブロードキャストを許可するか否かを制御するブロードキャスト制御情報が含まれている、
    請求項5に記載の無線式データ収集システム。
     
    The polling packet issued by the server includes broadcast control information for controlling whether or not to permit broadcasting of the predetermined terminal information.
    The wireless data collection system according to claim 5.
  7.  前記周辺端末から前記障害発生端末に前記所定の問合せを行う場合には、前記周辺端末から前記所定の端末情報をブロードキャストしないように前記ブロードキャスト制御情報を設定する、
    請求項6に記載の無線式データ収集システム。
     
    When the predetermined inquiry is made from the peripheral terminal to the faulty terminal, the broadcast control information is set so as not to broadcast the predetermined terminal information from the peripheral terminal.
    The wireless data collection system according to claim 6.
  8.  前記サーバは、マイクロプロセッサと、前記マイクロプロセッサにより実行される所定のサーバ側コンピュータプログラムを記憶するメモリと、前記複数の無線センサ端末と無線マルチホップネットワークを用いて通信するための通信部を備えており、
     前記マイクロプロセッサが前記所定のサーバ側コンピュータプログラムを実行することにより、
      前記複数の無線センサ端末の中から今回のポーリング対象となるポーリング対象端末を選択し、
      選択した前記ポーリング対象端末が、前回のポーリング処理時にデータを取得できなかった障害発生端末と無線通信可能な周辺端末であるか判定し、
      前記ポーリング対象端末が前記周辺端末であると判定した場合、前記障害発生端末への問合せを要求するための問合せ情報を含むポーリングパケットを前記ポーリング対象端末に送信し、
      前記ポーリング対象端末からのポーリング応答を受信した場合、前記ポーリング応答に含まれる所定の端末情報の中から、前記ポーリング対象端末で検出したデータと、前記ポーリング対象端末の周辺に位置する他の無線センサ端末からブロードキャストされた所定の端末情報の受信状態に基づく無線通信状態を示す情報と、前記他の無線センサ端末で検出したデータとを取り出して、所定のデータベースを更新し、
     前記複数の無線センサ端末は、マイクロプロセッサと、前記マイクロプロセッサに実行される所定の端末側コンピュータプログラムを記憶するメモリと、データを検出するためのセンサ部と、前記サーバと無線マルチホップネットワークを用いて通信するための通信部を備えており、
     前記マイクロプロセッサが前記所定の端末側コンピュータプログラムを実行することにより、
     前記サーバからの前記ポーリングパケットを受信し、
     受信した前記ポーリングパケットに前記問合せ情報が含まれているか判定し、
     前記ポーリングパケットに前記問合せ情報が含まれていると判定すると、前記障害発生端末に所定の問合せを行い、
     前記問合せに応答する前記障害発生端末から所定の端末情報を受信し、
     自端末に関する前記所定の端末情報と前記障害発生端末に関する前記所定の端末情報とを、前記ポーリングパケットに対するポーリング応答として前記サーバに送信する、
    請求項1に記載の無線式データ収集システム。
     
    The server includes a microprocessor, a memory for storing a predetermined server-side computer program executed by the microprocessor, and a communication unit for communicating with the plurality of wireless sensor terminals using a wireless multi-hop network. And
    By executing the predetermined server-side computer program by the microprocessor,
    Select a polling target terminal to be polled this time from the plurality of wireless sensor terminals,
    Determine whether the selected polling target terminal is a peripheral terminal capable of wireless communication with a faulty terminal that could not acquire data during the previous polling process,
    When it is determined that the polling target terminal is the peripheral terminal, a polling packet including inquiry information for requesting an inquiry to the faulty terminal is transmitted to the polling target terminal,
    When a polling response is received from the polling target terminal, from the predetermined terminal information included in the polling response, data detected by the polling target terminal and other wireless sensors located around the polling target terminal Retrieve information indicating a wireless communication state based on a reception state of predetermined terminal information broadcast from the terminal and data detected by the other wireless sensor terminal, update a predetermined database,
    The plurality of wireless sensor terminals use a microprocessor, a memory for storing a predetermined terminal-side computer program executed by the microprocessor, a sensor unit for detecting data, the server, and a wireless multi-hop network. A communication unit for communicating
    By executing the predetermined terminal-side computer program by the microprocessor,
    Receiving the polling packet from the server;
    Determine whether the inquiry information is included in the received polling packet,
    When it is determined that the inquiry information is included in the polling packet, a predetermined inquiry is performed to the failure occurrence terminal,
    Receiving predetermined terminal information from the faulty terminal responding to the inquiry;
    Transmitting the predetermined terminal information about the own terminal and the predetermined terminal information about the faulty terminal to the server as a polling response to the polling packet;
    The wireless data collection system according to claim 1.
  9.  複数の無線センサ端末と、前記複数の無線センサ端末からデータを取得するサーバを用いて前記各無線センサ端末からデータを収集する方法であって、
     前記複数の無線センサ端末は、
      前記サーバからのポーリングパケットを受信すると、自端末に関する所定の端末情報を自端末周辺の無線センサ端末にブロードキャストし、
      自端末周辺の他の無線センサ端末からブロードキャストされた、前記他の無線センサ端末に関する所定の端末情報を受信して保持し、
      前記自端末に関する前記所定の端末情報と前記他の無線センサ端末に関する前記所定の端末情報とを、前記ポーリングパケットに対するポーリング応答として前記サーバに送信する、
    無線式データ収集方法。
     
    A method of collecting data from each of the wireless sensor terminals using a plurality of wireless sensor terminals and a server that acquires data from the plurality of wireless sensor terminals,
    The plurality of wireless sensor terminals are:
    Upon receiving a polling packet from the server, broadcast predetermined terminal information about the terminal to wireless sensor terminals around the terminal,
    Receives and holds predetermined terminal information related to the other wireless sensor terminals broadcast from other wireless sensor terminals around the terminal,
    Transmitting the predetermined terminal information regarding the own terminal and the predetermined terminal information regarding the other wireless sensor terminal to the server as a polling response to the polling packet;
    Wireless data collection method.
  10.  複数の無線センサ端末と、前記複数の無線センサ端末からデータを取得するサーバを備える無線式データ収集システムに使用するサーバであって、
     前記複数の無線センサ端末の中から今回のポーリング対象となるポーリング対象端末を選択し、
     選択した前記ポーリング対象端末が、前回のポーリング処理時にデータを取得できなかった障害発生端末と無線通信可能な周辺端末であるか判定し、
     前記ポーリング対象端末が前記周辺端末であると判定した場合、前記障害発生端末への問合せを要求するための問合せ情報を含むポーリングパケットを前記ポーリング対象端末に送信し、
     前記ポーリング対象端末からのポーリング応答を受信した場合、前記ポーリング応答に含まれる所定の端末情報の中から、前記ポーリング対象端末で検出したデータと、前記ポーリング対象端末の周辺に位置する他の無線センサ端末からブロードキャストされた所定の端末情報の受信状態に基づく無線通信状態を示す情報と、前記他の無線センサ端末で検出したデータとを取り出して、所定のデータベースを更新する、
    無線式データ収集システム用サーバ。
    A server used for a wireless data collection system comprising a plurality of wireless sensor terminals and a server for acquiring data from the plurality of wireless sensor terminals,
    Select a polling target terminal to be polled this time from the plurality of wireless sensor terminals,
    Determine whether the selected polling target terminal is a peripheral terminal capable of wireless communication with a faulty terminal that could not acquire data during the previous polling process,
    When it is determined that the polling target terminal is the peripheral terminal, a polling packet including inquiry information for requesting an inquiry to the faulty terminal is transmitted to the polling target terminal,
    When a polling response is received from the polling target terminal, from the predetermined terminal information included in the polling response, data detected by the polling target terminal and other wireless sensors located around the polling target terminal Extracting information indicating a wireless communication state based on a reception state of predetermined terminal information broadcast from the terminal and data detected by the other wireless sensor terminal, and updating a predetermined database;
    Server for wireless data collection system.
PCT/JP2013/070565 2013-07-30 2013-07-30 Wireless data collection system, and wireless data collection method WO2015015562A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2013/070565 WO2015015562A1 (en) 2013-07-30 2013-07-30 Wireless data collection system, and wireless data collection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2013/070565 WO2015015562A1 (en) 2013-07-30 2013-07-30 Wireless data collection system, and wireless data collection method

Publications (1)

Publication Number Publication Date
WO2015015562A1 true WO2015015562A1 (en) 2015-02-05

Family

ID=52431143

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/070565 WO2015015562A1 (en) 2013-07-30 2013-07-30 Wireless data collection system, and wireless data collection method

Country Status (1)

Country Link
WO (1) WO2015015562A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109116823A (en) * 2018-09-08 2019-01-01 芜湖金光汽车配件有限责任公司 A kind of data collection system for production line
CN110995505A (en) * 2019-12-19 2020-04-10 安徽皖通邮电股份有限公司 Early warning device and method for realizing message error verification by indicator lamp
CN115426622A (en) * 2022-09-01 2022-12-02 深圳慧联软通科技有限公司 Maintenance method of wireless data acquisition rod and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009140184A (en) * 2007-12-05 2009-06-25 Kansai Electric Power Co Inc:The Wireless communication system
JP2013005043A (en) * 2011-06-13 2013-01-07 Mitsubishi Electric Corp Ad hoc network system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009140184A (en) * 2007-12-05 2009-06-25 Kansai Electric Power Co Inc:The Wireless communication system
JP2013005043A (en) * 2011-06-13 2013-01-07 Mitsubishi Electric Corp Ad hoc network system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109116823A (en) * 2018-09-08 2019-01-01 芜湖金光汽车配件有限责任公司 A kind of data collection system for production line
CN110995505A (en) * 2019-12-19 2020-04-10 安徽皖通邮电股份有限公司 Early warning device and method for realizing message error verification by indicator lamp
CN115426622A (en) * 2022-09-01 2022-12-02 深圳慧联软通科技有限公司 Maintenance method of wireless data acquisition rod and terminal
CN115426622B (en) * 2022-09-01 2023-10-24 深圳慧联软通科技有限公司 Maintenance method of wireless data acquisition rod and terminal

Similar Documents

Publication Publication Date Title
US10952143B2 (en) Sleeping and wake-up methods and apparatuses of master-slave network, and power saving system of master-slave network
JP5584308B2 (en) System and method for operating a sensor network
RU2639688C2 (en) Control method of mediators table in the wireless network, using the device-mediators
KR100953569B1 (en) Apparatus and method for communication in wireless sensor network
JP2009111455A (en) Sensor network system and server computer
JP2009077119A (en) Radio control system
JP6841368B2 (en) Wireless sensor system, wireless terminal device, communication control method and communication control program
US10075366B2 (en) Communication device, communication system, communication control method, and communication control program
KR101168357B1 (en) A sensor network
JP5560230B2 (en) Packet relay method, packet relay apparatus, and packet relay system.
WO2015015562A1 (en) Wireless data collection system, and wireless data collection method
JP2007052706A (en) Remote supervisory control system, gateway unit, and center server
WO2014068665A1 (en) Communication system and method for changing over network to which terminals are to belong
JP5484865B2 (en) Communications system
JP5861104B2 (en) Wireless system
JP2016201605A (en) Radio communication terminal and radio communication system
JP2010136272A (en) Gateway device
CN115190559A (en) Networking and control method of multi-scene-oriented Internet of things equipment
JP2019180001A (en) Data processing system and data processing method
EP3185614B1 (en) Communication method, communication program and communication system
JP2006067377A (en) Information integration system of distributed network
JP5980821B2 (en) Control device and communication control method
JP2011250181A (en) Network management system, network element, network management device, and network management method
JP2006314000A (en) Gateway device
JP5784523B2 (en) Control device and communication control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13890734

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13890734

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP