WO2014016916A1 - Communication device and relay device - Google Patents

Communication device and relay device Download PDF

Info

Publication number
WO2014016916A1
WO2014016916A1 PCT/JP2012/068770 JP2012068770W WO2014016916A1 WO 2014016916 A1 WO2014016916 A1 WO 2014016916A1 JP 2012068770 W JP2012068770 W JP 2012068770W WO 2014016916 A1 WO2014016916 A1 WO 2014016916A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
priority
unit
downlink
transmission
Prior art date
Application number
PCT/JP2012/068770
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 CN201280074857.7A priority Critical patent/CN104487954A/en
Priority to JP2012557328A priority patent/JP5436701B1/en
Priority to PCT/JP2012/068770 priority patent/WO2014016916A1/en
Publication of WO2014016916A1 publication Critical patent/WO2014016916A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2458Modification of priorities while in transit

Definitions

  • the present invention relates to a communication system in which messages are transmitted / received to / from a plurality of terminal devices.
  • the present invention relates to a smart meter automatic meter reading system in which messages are transmitted / received to / from a plurality of smart meters, for example.
  • smart meter automatic meter reading systems such as electric power, gas, and water using smart meters (hereinafter also simply referred to as “meters”) are being introduced.
  • a smart meter, a relay device, a message transmission / reception device, and an application server device are connected by a tree structure network.
  • the smart meter and the relay device have low calculation capability, and there are restrictions on the execution of processing.
  • the smart meter and the relay device are connected by a network
  • the relay device and the message transmitting / receiving device are connected by a network
  • the message transmitting / receiving device and the application server device are connected by a network.
  • Each network has a different bandwidth, communication speed, communication medium, and communication method
  • the smart meter automatic meter reading system is a system composed of heterogeneous networks.
  • an application program hereinafter simply referred to as “application” executed on the application server device and the smart meter exchange data such as meter reading values and control information such as open / close control by message communication. To do.
  • the messages to be handled include messages in the upstream direction (meter, direction from relay device to application) and messages in the downstream direction (direction from application to relay device, meter).
  • the one-way message is a message for spontaneously transmitting a message from a meter or a relay device, or a message for unidirectionally instructing control from an application.
  • the bidirectional message includes a message for giving an instruction to the meter or the relay device by the application and a message returned as a response by the meter or the relay device.
  • the smart meter automatic meter reading system has a feature that there are a time zone with a large amount of communication and a time zone with a small amount of communication, and the amount of communication is uneven. Furthermore, many-to-one communication with millions of message communications within a certain period of time, such as periodic meter reading, one-to-one communication for obtaining information of one meter with application, meter and relay device There is a one-to-many communication such as firmware update. There are various application characteristics, including applications that require throughput, applications that require response performance, and applications that have restrictions that must be completed within a certain period of time. In the smart meter automatic meter reading system, it is necessary for such a highly restrictive device to effectively control the message priority in accordance with the application of various characteristics on the heterogeneous and asymmetric network.
  • Patent Document 1 describes a priority control method for an application that must finish processing within a certain time. More specifically, in Patent Document 1, a high-priority transmission queue is selected from among transmission queues classified by priority for messages with a small difference between the transmission deadline and the current time (remaining time), and the remaining time is small. Messages are sent preferentially.
  • the priority order is determined only by whether or not the remaining time is smaller than the threshold value. For this reason, a message whose remaining time is slightly larger than the threshold value (referred to as “message A”) is stored in the low priority queue, and is thereafter kept in the low priority queue. A message that occurs after message A and whose remaining time is smaller than the threshold value is stored in a high priority queue and is transmitted before message A. For this reason, even if the remaining time of the message A becomes smaller than the threshold due to the passage of time, a situation in which the message A is not transmitted occurs, and the priority control for keeping the transmission time limit does not function sufficiently.
  • each wireless communication device performs priority determination only with the remaining time, and thus there is a problem that fine adjustment cannot be performed when a large number of messages with transmission deadlines occur, There is a problem that the priority of the message is fixed and flexible control is not possible.
  • the main purpose of the present invention is to solve the above-mentioned problems, and it is a main object to flexibly adjust the priority of messages according to the situation.
  • the communication device is Receiving a downlink message to the terminal device, storing the received downlink message, selecting a priority downlink message to be transmitted to the terminal device preferentially from the stored downlink messages based on the priority of the downlink message;
  • a message transmission unit that transmits a downlink message with a priority set to a relay device that prioritizes the selected priority downlink message and transmits the message to the terminal device;
  • An extraction condition designating part for designating an extraction condition for extracting a downstream message whose priority is to be adjusted;
  • a downlink message that matches the extraction condition specified by the extraction condition specifying unit is extracted, and a priority downlink message is assigned to the extracted downlink message using a priority different from the priority set for the downlink message.
  • An instruction command generator for generating an instruction command for instructing the relay device to select;
  • an instruction command transmission unit that transmits the instruction command generated by the instruction command generation unit to the relay device.
  • the priority of the message can be flexibly adjusted according to the situation.
  • FIG. 3 is a diagram illustrating a configuration example of a message transmission / reception device according to Embodiments 1 and 2.
  • FIG. 3 is a diagram illustrating a configuration example of a relay device according to the first and second embodiments.
  • FIG. 4 is a diagram illustrating an example of a priority information table according to the first embodiment.
  • FIG. FIG. 5 is a diagram showing an example of a priority change information table according to the first embodiment.
  • FIG. 4 shows an example of an application table according to the first embodiment.
  • FIG. 3 is a diagram showing an example of a message transmission request format according to the first embodiment.
  • FIG. 4 shows an example of a message reception request format according to the first embodiment.
  • FIG. 6 is a diagram showing an example of a transmission message format according to the first embodiment.
  • FIG. 4 is a flowchart showing an example of priority adjustment processing according to the first embodiment. The flowchart figure which shows the example of the priority adjustment necessity check (difference in the number of transmission / reception) which concerns on Embodiment 1.
  • FIG. 6 is a flowchart showing an example of priority adjustment necessity check (message reception speed) according to the first embodiment.
  • FIG. 5 is a flowchart showing an example of priority adjustment necessity check (reception remaining time) according to the first embodiment.
  • FIG. 5 is a flowchart showing an example of priority lowering processing according to the first embodiment.
  • FIG. 9 is a flowchart showing an example of processing for adjusting the transmission order of priority adjustment messages according to the second embodiment.
  • the flowchart figure which shows the example of the relay apparatus load table update process (pending message number) which concerns on Embodiment 2.
  • FIG. The flowchart figure which shows the example of the relay apparatus load table update process (message processing time required) which concerns on Embodiment 2.
  • FIG. 1 The flowchart figure which shows the example of the priority adjustment message process (1) which concerns on Embodiment 2.
  • Embodiment 1 a smart meter automatic meter reading system will be described.
  • the message transmission / reception device deployed in the center determines the progress of message communication and issues a priority adjustment instruction to the relay device. Then, the relay device adjusts the priority according to an instruction from the message transmission / reception device. By these procedures, effective and fine priority control can be performed.
  • FIG. 1 is a schematic diagram of a smart meter automatic meter reading system according to the present embodiment.
  • a smart meter automatic meter reading system includes a smart meter 40, a relay device 30, a message transmission / reception device 20, and an application server device 10 connected via a network having a tree structure.
  • the smart meter 40 measures the usage amount of power, gas, water, and the like, and transmits / receives the message transmission / reception device 20, the message transmission / reception device 20, and the smart meter 40 to one or more applications operating on the application server device 10. Message communication is performed via the relay device 30 provided in between.
  • the smart meter 40 corresponds to an example of a terminal device.
  • an application relating to automatic meter reading operates.
  • the application server device 10 transmits a message transmission request (hereinafter also simply referred to as “transmission request”) to the message transmission / reception device 20 by executing the application.
  • the application server device 10 transmits a message transmission request to the message transmission / reception device 20, and requests the message transmission / reception device 20 to transmit a message to the plurality of smart meters 40.
  • the application server device 10 receives a message from the smart meter 40 from the message transmission / reception device 20.
  • the application server device 10 corresponds to an example of a host device.
  • the message transmitting / receiving device 20 controls the application on the application server device 10 and message communication with the relay device 30. More specifically, the message transmission / reception device 20 receives a message transmission request from the application server device 10.
  • the message transmission request includes one or more transmission messages.
  • a transmission message is also called a downstream message.
  • the message transmission / reception device 20 extracts a transmission message from the message transmission request, and transmits the extracted transmission message to the relay device 30.
  • a transmission request ID that is an ID (Identifier) of the message transmission request and a priority specified in the message transmission request are set.
  • the message transmission / reception device 20 receives a reception message from the smart meter 40 from the relay device 30 and transmits the received reception message to the application server device 10.
  • the received message is also called an upstream message.
  • the message transmitting / receiving device 20 adjusts the priority of the transmission message and the reception message.
  • the message transmission / reception device 20 corresponds to an example of a communication device.
  • the relay device 30 relays a message with the smart meter 40. More specifically, the relay device 30 receives a downlink message from the message transmission / reception device 20, accumulates the received downlink message in a priority-specific queue, and stores the downlink message accumulated in the highest priority queue. Send to the smart meter 40 with priority. A downlink message stored in the highest priority queue, that is, a downlink message transmitted with priority to the smart meter 40 is also referred to as a priority downlink message. Further, the relay device 30 receives upstream messages from the plurality of smart meters 40, accumulates the received upstream messages in priority-specific queues, and gives priority to downstream messages stored in the highest priority queue. The message is transmitted to the message transmitting / receiving device 20. An upstream message stored in the highest priority queue, that is, an upstream message transmitted with priority to the message transmitting / receiving device 20 is also referred to as a priority upstream message.
  • FIG. 2 is a system configuration diagram showing a configuration example of the message transmitting / receiving apparatus 20 according to the present embodiment.
  • the priority control processing unit 24 performs priority control of message communication.
  • the transmission request reception unit 26 receives a message transmission request from the application server device 10, extracts a transmission message addressed to the smart meter 40 from the message transmission request, and transfers the extracted transmission message to the priority control processing unit 24.
  • the message temporary storage unit 27 temporarily stores a plurality of transmission messages extracted by the transmission request reception unit 26 when the transmission request reception unit 26 receives a message transmission request including transmission messages for the plurality of smart meters 40. To do.
  • the timer unit 25 gives the timing to take out the transmission message from the message temporary storage unit 27 and transfer it to the priority control processing unit 24.
  • the message transmission unit 21 receives the transmission message from the priority control processing unit 24 and transmits the transmission message to the relay device 30. Note that the message transmission unit 21 also functions as an instruction command transmission unit, as will be described later.
  • the reception request reception unit 22 receives a message reception request including one or more reception messages from the relay device 30 and transfers the message reception request to the priority control processing unit 24.
  • the reception request reception unit 22 corresponds to an example of a message reception unit.
  • the message delivery unit 28 transmits the message reception request received from the priority control processing unit 24 to the application server device 10.
  • the load information storage unit 23 stores load information periodically transmitted from the relay device 30 and message processing capability information for each relay device type. Details of the load information storage unit 23 will be described in the second embodiment.
  • the priority adjustment data storage unit 29 stores priority adjustment data referred to by the priority control processing unit 24.
  • the priority control processing unit 24 includes a plurality of downlink queues 241, a plurality of uplink queues 244, a priority adjustment unit 242, and a progress information management unit 243.
  • the downstream queue 241 is a queue for storing downstream messages from the application server device 10 to the relay device 30, that is, downstream messages to the smart meter 40 extracted by the transmission request receiving unit 26.
  • the downlink queue 241 is provided for each priority.
  • the upstream queue 244 is a queue for storing upstream messages from the relay device 30 to the application server device 10, that is, upstream messages from the smart meter 40.
  • the upstream queue 244 is provided for each priority.
  • the progress information management unit 243 for each transmission request ID, the number of transmitted messages transmitted by the message transmitting unit 21, the number of received messages received by the reception request receiving unit 22, the message reception speed of the received messages, the number of remaining received messages, the transmission request It manages message communication progress information such as time and the remaining time until the reception deadline time.
  • the priority adjustment unit 242 performs priority adjustment based on the progress information.
  • the priority adjustment unit 242 analyzes the progress information and specifies an extraction condition for extracting a downlink message that is a target of priority adjustment. More specifically, the priority adjustment unit 242 selects a specific transmission request ID and specifies an extraction condition for extracting a downlink message in which the selected transmission request ID is set. Then, the priority adjustment unit 242 extracts the downlink message in which the selected transmission request ID is set, and uses a priority different from the priority described in the downlink message for the extracted downlink message.
  • An instruction command hereinafter referred to as “priority adjustment message” for instructing the relay device 30 to select a priority downlink message is generated.
  • the priority adjustment message is transmitted from the message transmission unit 21 to the relay device 30.
  • the same transmission request ID and priority as those of the downstream message transmission request ID and priority are set for the upstream message.
  • the priority adjustment unit 242 selects the transmission request ID used for the bidirectional message, the priority adjustment message is also applied to the uplink message.
  • the priority adjustment message is extracted by using the priority that is different from the priority set for the uplink message, by extracting the uplink message in which the corresponding transmission request ID is set. It also includes an instruction to select an upstream message.
  • the downlink message in the bidirectional message is a downlink message requesting a response from the smart meter 40, and corresponds to a response request downlink message.
  • the priority adjustment unit 242 corresponds to an example of an extraction condition designation unit and an instruction command generation unit.
  • the downlink queue 241 and the uplink queue 244 of the priority control processing unit 24 are configured by a plurality of queues for each priority, but may be realized by one queue.
  • one downlink queue 241 is divided into areas for each priority, and the downlink message input from the transmission request receiving unit 26 is stored in the corresponding priority area.
  • one upstream queue 244 is divided into areas for each priority, and the upstream message input from the reception request receiving unit 22 is stored in the corresponding priority area.
  • the down queue 241 and the up queue 244 may be realized by one queue. In this case, one queue is divided into an area for downlink messages and an area for uplink messages, and further, an area for downlink messages is divided for each priority, and an area for uplink messages is divided for each priority. .
  • a plurality of applications are running on the application server device 10, and the application requests the message transmission / reception device 20 to send a message to the smart meter 40 during processing to be executed.
  • the content of the message depends on processing executed by the application, and includes, for example, a control message to the smart meter 40, an information acquisition request from the smart meter 40, and the like.
  • the format of a message transmission request for an application requesting message transmission to the message transmission / reception device 20 is, for example, as shown in FIG.
  • the message transmission request includes a header portion including information necessary for controlling message communication, and a data portion including one or more transmission messages to be transmitted and a transmission destination ID.
  • a transmission message is transmitted to the smart meter 40
  • the meter ID of the smart meter 40 of the transmission destination is entered in the transmission destination ID.
  • the header part includes, for example, an application ID, message type, transmission message size, total number of transmission messages, response message reception deadline time, and priority.
  • the application ID uniquely represents the application that has requested the message transmission.
  • the message type represents the type of transmission message (one-way message or two-way message).
  • the unit transmission message size represents the size of data combining one transmission message and a transmission destination ID.
  • the total number of transmission messages represents the total number of transmission messages included in the data part of the message transmission request.
  • the response message reception deadline time represents the time limit for the application to receive a response (uplink message) from the smart meter 40 to the transmission message (response request downlink message).
  • the priority is a priority in communication of a transmission message specified by the application.
  • the data part includes a set of transmission message IDs and transmission destination IDs for designating transmission destinations for the total number of transmission messages.
  • the transmission request receiving unit 26 receives a message transmission request from an application.
  • the transmission request receiving unit 26 assigns a transmission request ID of the received message transmission request.
  • the transmission request reception unit 26 converts the message transmission request into a downlink message having the format shown in FIG. 13 when the data part of the received message transmission request includes only one set of transmission destination ID and transmission message. Then, the downlink message is transferred to the priority control processing unit 24.
  • a header part includes a transmission destination ID, a transmission request ID, a message type, a transmission message size, a response message reception deadline time, and a priority
  • a data part includes a transmission message included in the message transmission request. .
  • the transmission destination ID, message type, transmission message size, response message reception deadline time, and priority in the header are values included in the message transmission request (FIG. 11).
  • the transmission request ID is a value numbered by the transmission request reception unit 26 when a message transmission request is received.
  • the transmission request reception unit 26 divides the data into combinations of individual transmission destination IDs and transmission messages.
  • the transmission request reception part 26 produces
  • a message transmission request including a plurality of transmission messages is referred to as a composite message transmission request, and a message transmission request including a plurality of bidirectional transmission messages (response request downlink messages) is referred to as a composite response request message transmission request.
  • the transmission request reception unit 26 calculates an interval time when the downlink message is transferred to the priority control processing unit 24 from the total number of transmission messages included in the header part and the response message reception deadline, and sends the interval time to the timer unit 25.
  • the interval time may be obtained by, for example, dividing the time obtained by subtracting the margin time required for the response from the remaining time until the response message reception deadline by the total number of transmitted messages. Alternatively, a predetermined interval time may be used.
  • the timer unit 25 sends a timing signal notifying that the transfer time has arrived to the transmission request receiving unit 26 every set interval time.
  • the transmission request reception unit 26 that has received the timing signal extracts one downlink message from the message temporary storage unit 27 and transfers the extracted downlink message to the priority control processing unit 24.
  • the priority control processing unit 24 inserts the transmission message transferred from the transmission request receiving unit 26 at the tail of the queue with the corresponding priority in the down queue 241.
  • the message transmission unit 21 extracts a transmission message from the head of the queue having the highest priority among the downlink queues 241. If the queue with the highest priority is empty, the transmission message is extracted from the head of the queue with the next highest priority. Next, the message transmission unit 21 reads the transmission destination ID from the extracted transmission message, searches the meter relay device correspondence table shown in FIG. 5 for the relay device ID corresponding to the corresponding transmission destination ID, and finds the relay device ID found. A transmission message is transmitted to the relay device 30 corresponding to the above.
  • the relay device 30 transmits a message reception request including one or more uplink messages to the message transmitting / receiving device 20.
  • the upstream message is a message received by the relay device 30 from the smart meter 40. For example, a message representing an event that has occurred regularly or irregularly in the smart meter 40, or a response to a message from the application (response request downstream message). Message.
  • the format of the message reception request that the message transmitting / receiving apparatus 20 receives from the relay apparatus 30 is, for example, as shown in FIG.
  • the message reception request includes a header portion including information necessary for control of message communication, and a data portion including one or more received messages and a transmission source ID.
  • the meter ID of the smart meter 40 of the transmission source is entered in the transmission source ID.
  • the header part includes, for example, a transmission request ID or application ID, a message type, a unit received message size, the total number of received messages, a response message reception deadline, and a priority.
  • the transmission request ID is used when the upstream message is a response message to the response request downstream message. In the transmission request ID column, the same value as the transmission request ID (FIG. 13) of the response request downlink message is described.
  • the application ID is used when the upstream message is a message transmitted from the smart meter 40 (when it is not a response message to the response request downstream message).
  • the application ID uniquely represents the destination application of the upstream message.
  • FIG. 13 illustrates a downlink message in which the application ID is not described. However, when the application ID is described in the downlink message, the same application ID is described in the uplink message that is response data. Also good.
  • the message type represents the type of received message (one-way message or two-way message).
  • the unit received message size represents the size of data that combines one received message and the transmission source ID.
  • the total number of received messages represents the total number of received messages included in the data part of the message reception request.
  • the response message reception time limit represents a time limit for receiving the received message by the application.
  • the priority represents a priority in communication of the received message.
  • the received message is a response message to the response request downlink message
  • the same value as the priority (FIG. 13) described in the response request downlink message is described in the priority column.
  • the data portion includes a set of sender IDs indicating the main body of the received message and the sender for the total number of received messages.
  • the reception request receiving unit 22 receives a message reception request from the relay device 30.
  • the reception request reception unit 22 transfers the message reception request as it is to the priority control processing unit 24 when the data portion of the received message reception request includes only one set of the transmission source ID and the reception message.
  • the reception request reception unit 22 divides the data into combinations of individual transmission source IDs and reception messages.
  • the reception request receiving unit 22 adds the header information and the transmission source ID of the message reception request to the received message for each set of the transmission source ID and the reception message, and adds the header information and the transmission source ID.
  • the received message is transferred to the priority control processing unit 24.
  • the priority control processing unit 24 inserts the received message transferred from the reception request receiving unit 22 at the tail of the corresponding priority queue in the upstream queue 244.
  • the message delivery unit 28 extracts a received message from the head of the queue having the highest priority among the upstream queues 244. If the queue with the highest priority is empty, the received message is extracted from the head of the queue with the next highest priority. Next, the message delivery unit 28 reads the transmission request ID or application ID from the received received message, and delivers the received message to the corresponding application.
  • the progress information management unit 243 manages data in the priority information table of the priority adjustment data storage unit 29.
  • FIG. 4 shows an example of the priority information table.
  • the record of the priority information table is created for each message transmission request from the application.
  • the data items of the priority information table include application ID, transmission request ID, transmission request time, priority, communication direction, transmission number, reception number, previous reception number, reception speed, remaining received message number, priority adjustment index, The reception deadline time is included.
  • application ID the ID of the application that is the transmission source of the message transmission request, that is, the application ID described in the message transmission request is described.
  • the transmission request ID column a transmission request ID uniquely assigned when a message transmission request is received is described.
  • the priority column the priority specified by the application, that is, the priority described in the message transmission request is described.
  • the communication direction column describes the communication direction of the message described in the message transmission request, that is, bidirectional or unidirectional.
  • the transmission number column the number of messages transmitted as downlink messages from the message transmission unit 21 among the transmission messages requested by the message transmission request is described.
  • the reception number column the number of messages whose response is received by the reception request receiving unit 22 among the transmission messages requested by the message transmission request is described.
  • the previous received number column when the received number is updated, the received number before the update is described. The value of the previous reception number is used to calculate the reception speed.
  • the reception speed column the number of received messages per unit time is described.
  • the remaining number of received messages column the number of received messages to be received after the present is described.
  • the priority adjustment index column an index for instructing priority adjustment is described.
  • the reception deadline time column the time at which the response of the response request downstream message must be received by the application is described. However, the reception number, the previous reception number, the reception speed, and the reception deadline time are used only when the communication direction is bidirectional.
  • the progress information management unit 243 is called when the transmission request reception unit 26 receives a message transmission request from an application, and a new record in which the transmission request ID numbered by the transmission request reception unit 26 is described is given priority information. Create in the table. At this time, the progress information management unit 243 extracts the application ID, the response message reception deadline time, and the priority from the header part of the message transmission request, and the application ID, the reception deadline time, and the priority of the corresponding record in the priority information table, respectively. Write to each column. Also, the progress information management unit 243 takes out the message type, identifies the communication direction, and writes it in the data item of the communication direction.
  • the progress information management unit 243 extracts the total number of transmitted messages and writes it in the column of the number of remaining received messages.
  • “0” (zero) is written in the column of the number of remaining received messages.
  • the progress information management unit 243 writes “0” (zero) in the columns of the transmission number, the reception number, the previous reception number, and the priority adjustment index.
  • the progress information management unit 243 is called each time a transmission message is transmitted from the message transmission unit 21 of the message transmission / reception device 20, and increments the number of transmissions of the record of the corresponding transmission request ID.
  • the progress information management unit 243 is called every time the reception request reception unit 22 of the message transmitting / receiving apparatus 20 receives a reception message, increments the reception number of the record of the corresponding transmission request ID, and decrements the number of remaining reception messages. .
  • the progress information management unit 243 receives a timing signal from the timer unit 25 at certain intervals, for example, every minute, calculates the current reception speed in response to a transmission request with a bidirectional communication direction, and receives priority information. Update the reception speed column in the table. At this time, the progress information management unit 243 copies the data in the reception number column to the previous reception number column before updating the reception speed column. The reception speed is obtained by dividing the difference between the reception number and the previous reception number by the timing signal interval.
  • the priority adjustment unit 242 uses the data in the priority information table to determine whether or not priority adjustment is necessary for each transmission request. If priority adjustment is necessary, the priority adjustment unit 242 creates a priority adjustment message and creates the created priority. The degree adjustment message is transferred to the message transmission unit 21. The message transmission unit 21 transmits a priority adjustment message to the designated relay device 30.
  • FIG. 14 is a flowchart illustrating an example of priority adjustment operation by the priority adjustment unit 242. It is assumed that the priority adjustment index of the priority information table is “0” (zero) for all transmission request IDs.
  • the priority adjustment unit 242 is called by a periodic timing signal from the timer unit 25.
  • the priority adjustment unit 242 first reads the record of the first transmission request ID in the priority information table (S11). At this time, if there is no data in the reception time limit column (NO in S12), it is determined that priority adjustment is unnecessary, and the priority adjustment unit 242 reads the record of the next transmission request ID (S11). ). Even if there is data in the reception deadline time column (YES in S12), if the priority adjustment index has already been "+1"("+1" in S13), whether or not priority adjustment is necessary is determined. The priority adjustment unit 242 determines that the determination has been made, and reads the record of the next transmission request ID (S11).
  • the priority adjustment unit 242 executes a priority adjustment necessity check process (S14), and determines whether to adjust the priority. To do.
  • the priority adjustment unit 242 writes “+1” in the priority adjustment index column of the transmission request ID in the priority information table (S16).
  • a priority adjustment message is created in the transmission message format of FIG. 13 (S17).
  • a priority adjustment message is created for each relay device 30. That is, a case where a plurality of transmission messages addressed to the plurality of smart meters 40 are included in the transmission request in which the record is read in S11, and message communication with the plurality of smart meters 40 is relayed by the plurality of relay devices 30.
  • the priority adjustment unit 242 generates a priority adjustment message for each relay device 30.
  • the transmission request ID of the header part of the priority adjustment message the transmission request ID of the record read from the priority information table in S11 is entered. Further, a relay device ID is entered in the transmission destination ID, and a type code indicating that it is a priority adjustment message is entered in the message type. Further, the size of the priority adjustment message is set in the transmission message size, and “high” is set in the priority.
  • a priority adjustment index value (“+1”) is entered in the transmission message of the data part.
  • the priority adjustment unit 242 creates a priority adjustment message for all the relay devices 30, and transfers the created priority adjustment message to the message transmission unit 21 (S18).
  • the priority adjustment unit 242 executes the above procedure for all transmission request IDs in the priority information table (S19).
  • the message transmission unit 21 transmits a priority adjustment message to the relay device 30.
  • FIG. 15 is a flowchart showing an example of the priority adjustment necessity check process in S14 of FIG.
  • FIG. 15 shows an example in which the priority of the message of the transmission request that is the object of determination in S14 is increased when the difference between the number of transmissions and the number of receptions exceeds a predetermined constant level.
  • the priority adjustment unit 242 reads the transmission / reception number difference threshold of the application ID from the application table shown in FIG. 7 (S1411).
  • the priority adjustment unit 242 calculates the difference between the number of downlink messages transmitted to the relay device 30 and the number of uplink messages received from the relay device 30 (S1412), and the value exceeds the transmission / reception number difference threshold. If YES (YES in S1413), it is determined to adjust the priority (S1414). On the other hand, when the calculated value does not exceed the transmission / reception number difference threshold (NO in S1413), it is determined that the priority is not adjusted (S1415).
  • the priority adjustment necessity check process in FIG. 15 is applied to bidirectional message communication in which a plurality of downlink messages are transmitted and a plurality of uplink messages are responded. In other words, the priority adjustment necessity check process in FIG. 15 is applied to the composite response request downstream message transmission request.
  • FIG. 16 is a flowchart showing another example of the priority adjustment necessity check process in S14 of FIG.
  • the priority of the message of the transmission request that is the object of determination in S14 is increased. An example is shown.
  • the priority adjustment unit 242 determines a message necessary for completing reception by the reception deadline time from the difference between the reception deadline time and the current time and the number of remaining received messages.
  • the reception speed is calculated (S1421).
  • the priority adjustment unit 242 compares the calculated reception speed with the reception speed in the priority information table, and determines that the priority is adjusted when the calculated reception speed is larger (YES in S1422). (S1423). On the other hand, if the calculated reception speed is not large (NO in S1422), it is determined that the priority is not adjusted (S1424). As described above, in the priority adjustment necessity check process of FIG.
  • the reception speed of the uplink message is measured for each transmission request, and when the reception of the uplink message is continued at the measured reception speed, all the uplink messages It is determined whether or not the reception is completed by the reception completion deadline.
  • a transmission request in which reception of all uplink messages is not completed before the reception completion deadline is set as a priority adjustment target.
  • the priority adjustment necessity check process of FIG. 16 is also applied to the composite response request downstream message transmission request, as in the case of FIG.
  • FIG. 17 is a flowchart showing another example of the priority adjustment necessity check process in S14 of FIG.
  • FIG. 17 shows an example in which the priority of the message of the transmission request that is the target of the determination in S14 is increased when the remaining time until the reception deadline time decreases.
  • the priority adjustment unit 242 first calculates the remaining reception time from the difference between the reception deadline time and the current time (S1431). Next, the priority adjustment unit 242 calculates the total reception time from the difference between the transmission request time and the reception deadline time (S1432), and when the remaining reception time is less than a certain ratio (for example, 10%) of the transmission / reception time (S1433). And YES), it is determined to adjust the priority (S1434). On the other hand, if the remaining reception time is not less than a certain ratio (for example, 10%) of the transmission / reception time (NO in S1433), it is determined that the priority is not adjusted (S1435).
  • the priority adjustment necessity check process of FIG. 17 is also applied to the composite response request downstream message transmission request, as in the case of FIGS. 15 and 16.
  • the priority adjustment unit 242 determines to adjust the priority for one transmission request 1, there is another transmission request 2 that has already been adjusted in priority so as to increase the priority.
  • An operation when priority adjustment is performed to lower the priority of the transmission request 2 when the reception deadline time of the request 2 is later than the reception deadline time of the transmission request 1 will be described.
  • FIG. 18 is a flowchart of the priority lowering process.
  • the priority adjustment unit 242 reads the record of the first transmission request ID in the priority information table (S21). At this time, if there is no data in the reception time limit column (NO in S22), the priority adjustment unit 242 determines that priority adjustment is unnecessary and reads the record of the next transmission request ID. If there is data in the column of the reception deadline time (YES in S22) and the priority adjustment index is “+1” (“+1” in S23), this transmission request is a candidate for transmission request 2.
  • the priority adjustment unit 242 compares the reception deadline time of the transmission request 1 with the reception deadline time of the transmission request 2 (S24), and if the reception deadline time of the transmission request 2 is later than the reception deadline time of the transmission request 1 If so, it is determined that priority adjustment for lowering priority is necessary for transmission request 2 (YES in S25). In the priority lowering process, the priority adjustment unit 242 corrects the priority adjustment index column of the transmission request 2 in the priority information table to “0” (S26), and the priority adjustment message in the transmission message format of FIG. Is created (S27). At this time, the transmission request ID of the transmission request 2 is entered in the transmission request ID of the header part.
  • a relay device ID is entered in the transmission destination ID, and a type code indicating that it is a priority adjustment message is entered in the message type. Further, the size of the priority adjustment message is set in the transmission message size, and “high” is set in the priority. A priority adjustment index value (“0”) is entered in the transmission message of the data part.
  • the priority adjustment unit 242 creates a priority adjustment message for all the relay devices 30, and transfers the created priority adjustment message to the message transmission unit 21 (S28).
  • the above procedure is executed for all transmission request IDs in the priority information table (S29).
  • the priority adjustment message created in S27 is a command for invalidating the priority adjustment message (priority adjustment message in which “+1” is described in the data portion) that has been transmitted to the relay apparatus 30 for the transmission request 2. This corresponds to an example of an invalid command.
  • FIG. 3 is a system configuration diagram illustrating a configuration example of the relay device 30.
  • the downlink message receiving unit 37 receives a message from the message transmitting / receiving device 20.
  • the downlink message reception unit 37 receives a priority adjustment message (instruction command) in addition to the downlink message addressed to the smart meter 40, and also functions as an instruction command reception unit.
  • the priority control processing unit 35 controls the priority of message relay.
  • the priority control processing unit 35 includes a downlink queue 351 and an uplink queue 353 for each priority, and a priority change unit 352 that performs priority change processing.
  • the downlink queue 351 and the uplink queue 353 of the priority control processing unit 35 are configured by a plurality of queues for each priority, but may be realized by one queue. Further, the down queue 351 and the up queue 353 may be realized by one queue.
  • the downlink queue 351 corresponds to an example of a downlink message storage unit.
  • the upstream queue 353 corresponds to an example of an upstream message storage unit.
  • the priority changing unit 352 corresponds to an example of a priority downlink message selecting unit together with the downlink message transmitting unit 31.
  • the priority changing unit 352 corresponds to an example of a priority uplink message selection unit together with the uplink message transmission unit 38.
  • the downlink message transmission unit 31 transmits a downlink message to the smart meter 40.
  • the downlink message transmission unit 31 selects a downlink message stored in the downlink queue 351 with the highest priority, and transmits the selected downlink message to the smart meter 40 with priority. For this reason, the downlink message transmission unit 31 corresponds to an example of a priority downlink message selection unit.
  • the upstream message receiving unit 32 receives an upstream message from the smart meter 40.
  • the upstream message transmission unit 38 transmits the upstream message to the message transmission / reception device 20.
  • the upstream message transmission unit 38 selects an upstream message stored in the upstream queue 353 having the highest priority and transmits the selected upstream message to the message transmitting / receiving apparatus 20 with priority. For this reason, the uplink message transmission unit 38 corresponds to an example of a priority uplink message selection unit.
  • the priority change data storage unit 36 stores a priority change information table (FIG. 6) to be referred to when the priority control processing unit 35 determines priority change.
  • the load information generation unit 33 generates load information for the relay device 30.
  • the timer unit 34 provides the load information generation unit 33 with a load information generation timing signal. Details of the load information generation unit 33 and the timer unit 34 will be described in the second embodiment.
  • the downlink message receiving unit 37 inserts the downlink message received from the message transmitting / receiving apparatus 20 at the tail of the downlink queue 351 according to the priority described in the header part. Further, when the downlink message reception unit 37 receives the priority adjustment message, the downlink message reception unit 37 outputs the priority adjustment message to the priority change unit 352.
  • the downlink message transmission unit 31 extracts a downlink message from the head of the queue with the highest priority among the downlink queues 351. If the queue with the highest priority is empty, the downlink message transmission unit 31 extracts the downlink message from the head of the queue with the next highest priority. Next, the downlink message transmission unit 31 transmits the extracted downlink message to the smart meter 40 indicated by the transmission destination ID in the downlink message.
  • the upstream message receiving unit 32 inserts the upstream message received from the smart meter 40 at the tail of the upstream queue 353 according to the priority set in the header part.
  • the upstream message transmission unit 38 extracts an upstream message from the head of the queue having the highest priority among the upstream queues 353. If the queue with the highest priority is empty, the upstream message is extracted from the head of the queue with the next highest priority. Next, the upstream message transmission unit 38 transmits the extracted upstream message to the message transmission / reception device 20. When a plurality of uplink messages having a common transmission request ID are present at the same timing, the uplink message transmitting unit 38 collects the plurality of uplink messages in a message reception request format shown in FIG. Send.
  • the downlink message receiving unit 37 when receiving the priority adjustment message from the message transmitting / receiving device 20, the downlink message receiving unit 37 outputs the priority adjustment message to the priority changing unit 352 and calls the priority changing unit 352.
  • the priority change part 352 follows the information in the header part. A new entry for the transmission request ID is added.
  • the priority change unit 352 refers to the priority adjustment index value (“+1” or “0”) in the data part of the priority adjustment message, and sets the value stored in the priority change data storage unit 36. If it is different, update this.
  • 25 and 27 are diagrams illustrating an example of the priority change information table.
  • the meaning of each table item in the priority change information table is the same as that of the priority information table (FIG. 4) of the message transmitting / receiving device 20.
  • FIG. 24 and FIG. 26 are diagrams showing a situation before and after the priority changing unit 352 changes the priority. 24 and 26 show an example in which the priority has three levels of high, medium, and low.
  • FIG. 24 shows the situation in the downstream queue 351 of the relay device 30 at a certain time
  • FIG. 25 shows the situation of the priority change information table at the time of FIG.
  • data as shown in FIG. 25 is stored in the priority change information table.
  • this downstream message is inserted at the tail of the queue (medium) with one higher priority.
  • a new message is inserted at the end of the queue (medium) having a higher priority.
  • the downlink message transmitting unit 31 extracts the downlink message from the downlink queue 351 after the priority of the downlink message is adjusted by the priority changing unit 352.
  • the priority changing unit 352 extracts a downlink message in which the transmission request ID indicated in the priority adjustment message is set from the downlink messages stored in the downlink queue 351. Then, when the downlink message transmission unit 31 extracts the downlink message from the downlink queue 351, the priority changing unit 352 uses a priority different from the priority set for the downlink message for the extracted downlink message. Make adjustments as required. Similarly, the priority changing unit 352 extracts an uplink message in which the transmission request ID indicated in the priority adjustment message is set from the uplink messages stored in the uplink queue 353.
  • the priority changing unit 352 uses a priority different from the priority set for the upstream message for the extracted upstream message. Make adjustments as required.
  • the priority changing unit 352 stores the message in a queue having a higher priority than the original priority without changing the priority described in the message. The degree itself may be rewritten.
  • the message transmission / reception device 20 determines the priority according to the difference in the number of bidirectional messages transmitted / received in the message transmission / reception device 20, the message reception speed, and the degree of progress indicated by the remaining message reception time.
  • the relay apparatus 30 is instructed to change the priority using the adjustment index. Further, the relay device 30 changes the priority of the message held in both the upstream and downstream queues according to the priority adjustment index. For this reason, the priority of message communication can be effectively controlled without imposing an excessive load on the relay device 30.
  • the message transmitting / receiving apparatus 20 adjusts the priority so that the priority is increased for a transmission request for which a reception deadline time is earlier than a transmission request whose priority is already adjusted to increase the priority. If so, the priority is adjusted so as to lower the priority. Therefore, fine priority control of message communication can be performed.
  • a smart meter measures the usage of electricity, gas, water, etc.
  • the smart meter automatic meter reading system that performs message communication via the message transmission / reception device provided in the center system and the relay device provided between the message transmission / reception device and the smart meter has been described.
  • the application on the application server device 10 includes information on the reception deadline time in the message transmission request sent to the data transmitting / receiving device,
  • the data transmitting / receiving device determines the necessity of priority adjustment from the progress information management unit that holds the progress information of the message communication between the application and the smart meter, and determines the necessity of priority adjustment from the progress information of the message communication.
  • the priority changing unit of the priority control processing unit included in the relay device is: Change the priority of processing for downstream messages from the data transmitter / receiver to the relay device, Further, it has been described that when the target message of the priority adjustment instruction from the message transmission / reception device is a bidirectional message, the priority of processing for the upstream message from the relay device to the data transmission / reception device is changed.
  • the progress information management unit of the priority control processing unit included in the data transmitting / receiving device is: As message communication progress information, the number of transmissions for each message transmission request from the application and the number of receptions are retained.
  • the priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is: Explained that when the difference between the number of transmissions and the number of receptions exceeds a predetermined level, the relay device is instructed to adjust the priority so as to increase the priority of the message sent in the transmission request. .
  • the progress information management unit of the priority control processing unit included in the data transmitting / receiving device is: As message communication progress information, the message reception speed and the number of remaining received messages for each message transmission request from the application are retained.
  • the priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is: If the message reception speed is lower than the message reception speed necessary to process the number of remaining received messages by the reception deadline time, the priority is given to the relay device so as to increase the priority of the message transmitted by the transmission request.
  • the progress information management unit of the priority control processing unit included in the data transmitting / receiving device is: As the message communication progress information, the transmission request reception time at which the message transmission request is received and the remaining time until the reception deadline time are retained,
  • the priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is: When the remaining time until the reception deadline time falls below a certain percentage of the time from the reception request reception time to the reception deadline time, the priority is adjusted to the relay device so as to increase the priority of the message transmitted by the transmission request.
  • I will give instructions.
  • the priority control processing unit included in the data transmitting / receiving device is: For a message transmission request from another application, when the priority adjustment instruction is given to the relay device to increase the priority of the message to be sent, If the reception deadline time of the message transmission request that is trying to adjust the priority to increase the priority is earlier than the reception deadline time of the other application, It has been described that the priority adjustment instruction is issued so as to lower the priority of the message transmitted by the other application.
  • Embodiment 2 when transmitting and receiving a priority adjustment message to a plurality of relay apparatuses 30, the message transmitting / receiving apparatus 20 transmits the priority adjustment message to all the relay apparatuses 30 at the same timing.
  • the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30 based on the performance and load status of the relay device 30.
  • a configuration example of the message transmission / reception device 20 according to the present embodiment is as shown in FIG. 2, and a configuration example of the relay device 30 according to the present embodiment is as shown in FIG.
  • the priority adjustment unit 242 determines the processing load for the downstream message and the upstream message for each relay device 30. And the priority adjustment part 242 determines the transmission order of the priority adjustment message in the some relay apparatus 30 so that a priority adjustment message may be transmitted from the relay apparatus 30 with a high processing load.
  • the priority adjustment unit 242 also functions as a transmission order determination unit. Further, the message transmission unit 21 transmits a priority adjustment message to the plurality of relay devices 30 according to the transmission order determined by the priority adjustment unit 242.
  • FIG. 8 shows a priority information table in the case where the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30.
  • the priority adjustment table of FIG. 8 is obtained by adding a relay device load level column to the priority information table of FIG.
  • the columns other than the relay device load level are the same as those in the priority information table of FIG.
  • the relay device load level indicates the load level of the relay device that has already transmitted the priority adjustment message, and the larger the value, the higher the load level. For example, when the relay device load level is “3”, it indicates that the priority adjustment message has already been transmitted to the relay device 30 having a load level higher than “3”. “0” (zero) indicates that the priority adjustment message has been transmitted to all the relay apparatuses 30.
  • the value of the relay device load level in the priority adjustment table is “3”
  • a priority adjustment message is transmitted to the relay device 30 whose load level is “3” in the relay device load table (FIG. 10) described later.
  • the value of the relay device load level in the priority adjustment table is decremented to “2”
  • a priority adjustment message is transmitted to the relay device 30 whose load level is “2” in the relay device load table (FIG. 10). Is done.
  • the value of the relay device load level in the priority adjustment table is decremented, and priority adjustment messages are transmitted in order from the relay device 30 with the highest load level.
  • the value of the relay device load level in the priority adjustment table is either “1” or “0”.
  • the relay apparatus specification table (FIG. 9) described later has only one load threshold.
  • the load threshold value of the relay device specification table (FIG. 9) has three levels (“0 ”To“ 1 ”,“ 1 ”to“ 2 ”,“ 2 ”to“ 3 ”).
  • the load information storage unit 23 includes a relay device load table as shown in FIG.
  • the relay device ID is an ID that uniquely identifies the relay device 30.
  • the relay device type ID is an ID that uniquely identifies the type of the relay device 30.
  • the number of held messages is the number of messages held in the upstream queue 353 and downstream queue 351 of the relay device 30 and indicates the load status of the relay device 30.
  • the number of pending messages is periodically transmitted from the relay device 30 to the message transmitting / receiving device 20 as a load information message.
  • the load level is obtained by dividing the load status of the relay device 30 into levels. It shows that the load of the relay apparatus 30 is so high that the value of a load level is high.
  • the load level history describes the load level before the update when the load level is updated.
  • the load information storage unit 23 includes a relay device specification table as shown in FIG.
  • the relay device specification table holds specification information for each relay device type for all relay devices 30 used in the smart meter automatic meter reading system.
  • the relay device type ID is an ID that uniquely identifies the type of the relay device 30.
  • the relay device type is a model number assigned to the relay device 30.
  • the load threshold is a threshold for the number of held messages set for each relay device type. When the number of held messages at a certain point exceeds this threshold, it is determined that the load on the relay device 30 is high. .
  • the processing throughput is the message processing capability of the relay device 30 set for each relay device type.
  • the reception request receiving unit 22 When receiving the load information message from the relay device 30, the reception request receiving unit 22 displays the data on the number of held messages in the message in the column of the number of held messages of the corresponding relay device 30 in the relay device load table of the load information storage unit 23. Write to.
  • the priority adjustment unit 242 transmits a priority adjustment message to the relay device 30
  • the priority adjustment unit 242 transmits the priority adjustment message in two stages according to the load status of the relay device 30. For this reason, as described above, the relay device load level of the priority information table takes one of the values “1” and “0”, and a record for the transmission request is newly created in the priority information table. Is initialized to “0”.
  • FIG. 19 is a flowchart when the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30.
  • the priority adjustment unit 242 is called by a periodic timing signal from the timer unit 25.
  • the priority adjustment unit 242 first updates the load level and load level history information in the relay device load table (FIG. 10) according to the value of the number of pending messages (S31).
  • the priority adjustment unit 242 reads the record of the first transmission request ID in the priority information table (S32).
  • the priority adjustment unit 242 determines that priority adjustment is unnecessary and reads the record of the next transmission request ID (S32). ). If there is data in the reception deadline time column (YES in S33) and the priority adjustment index is “0” (“0” in S34), the priority adjustment unit 242 performs priority adjustment necessity check processing.
  • the priority adjustment necessity check process (S35) is the same as S14 in FIG. 14, and for example, the processes shown in FIGS. 15 to 17 are performed. If it is determined that priority adjustment is necessary (YES in S36), the priority adjustment unit 242 writes “+1” in the priority adjustment index column of the transmission request ID in the priority information table, and further relay device “1” is written in the load level column (S37). Next, the priority adjustment unit 242 executes priority adjustment message processing (1) and transmits a priority adjustment message to the relay device 30 with a high load (S38).
  • the priority adjustment unit 242 The load level is referred to (S40).
  • the relay device load level is “0” (“0” in S40)
  • the priority adjustment unit 242 determines the priority information table.
  • the record of the next transmission request ID is read.
  • the priority adjustment unit 242 updates the relay device load level to “0” (S41)
  • a priority adjustment message is transmitted to the relay device 30 that has not transmitted the priority adjustment message (S42).
  • the priority adjustment unit 242 executes the above processing for all transmission request IDs in the priority information table (S39).
  • FIG. 20 is a flowchart of the relay device load table update process (S31) in the case where the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30 according to the number of pending messages of the relay device 30. It is.
  • the priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S3111). Next, the priority adjustment unit 242 writes the value of the load level column in the read record into the load level history column of the corresponding record in the relay device load table (S3112). Next, the priority adjustment unit 242 reads the load threshold of the corresponding relay device type from the relay device specification table (FIG. 9) using the value of the relay device type ID column in the read record as a key (S3113). . Next, the priority adjustment unit 242 compares the number of held messages in the relay device load table with the load threshold (S3114).
  • the priority adjusting unit 242 “1” is written in the load level column of the corresponding record (S3116). On the other hand, if the number of pending messages is not greater than the load threshold (NO in S3115), “0” (zero) is written in the load level column of the corresponding record in the relay device load table (S3117). The priority adjustment unit 242 executes the above processing for all the relay device IDs in the relay device load table (S3118).
  • FIG. 21 illustrates a relay device load table when the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30 according to the message processing time calculated from the number of pending messages of the relay device 30. It is a flowchart of an update process (S31).
  • the priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S3121). Next, the priority adjustment unit 242 writes the value of the load level column in the read record in the load level history column of the corresponding record in the relay device load table (S3122). Next, the priority adjustment unit 242 reads the processing throughput of the corresponding relay device type from the relay device specification table using the value of the relay device type ID column in the read record as a key (S3123). Next, the priority adjustment unit 242 calculates the message processing time from the number of pending messages in the relay device load table and the processing throughput (S3124).
  • the load level column is set to “1” for the relay devices 30 having a long message processing time among all the relay devices 30, and the remaining relay devices 30 are used.
  • Other determination methods such as setting the load level column of “0” may be used.
  • FIG. 22 is a flowchart of the priority adjustment message process (1) (S38) of FIG.
  • the priority adjustment message process (1) is executed in the process of adjusting the order in which the priority adjustment unit 242 transmits the priority adjustment messages to the relay device 30.
  • the priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S3801). When the load level column is “0” (“0” in S3802), the priority adjustment unit 242 determines that the priority adjustment message is not transmitted to the corresponding relay device 30, and reads the next record. When the load level column is “1” (“1” in S3802), the priority adjustment unit 242 creates a priority adjustment message (S3803), and transfers the created priority adjustment message to the message transmission unit 21. (S3804). The priority adjustment unit 242 executes the above process for all the relay device IDs in the relay device load table (S3805).
  • FIG. 23 is a flowchart of the priority adjustment message process (2).
  • the priority adjustment message process (2) is executed in the process of adjusting the order in which the priority adjustment unit 242 transmits the priority adjustment messages to the relay device 30.
  • the priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S4201).
  • the priority adjustment unit 242 determines that the priority adjustment message has already been transmitted to the relay device 30, and reads the next record.
  • the load level history column is “0” (“0” in S4202)
  • a priority adjustment message is created (S4203), and the created priority adjustment message is transferred to the message transmission unit 21 (S4204).
  • the priority adjustment unit 242 executes the above processing for all relay device IDs in the relay device load table (S4205).
  • the timer unit 34 sends to the load information generation unit 33 a timing signal notifying that the time for executing the load information generation processing has come at every set interval time.
  • the load information generation unit 33 that has received the timing signal adds up the number of messages held in the upstream queue 353 and the downstream queue 351 at that time, and creates and creates a load information message including data of the integration result
  • the load information message is transferred to the upstream message receiving unit 32.
  • the uplink message receiving unit 32 inserts the load information message received from the load information generating unit 33 at the tail of the uplink queue according to the priority set in the header part.
  • the message transmitting / receiving apparatus 20 operates to adjust the priority adjustment order according to the specifications and load status of the relay apparatus 30, and therefore, the relay apparatuses 30 having different performances are mixed. Even in the smart meter automatic meter reading system, the priority of message communication can be controlled effectively.
  • the relay device further A load information transmitting unit that periodically transmits the number of pending messages as message processing load information in the relay device to the message transmitting and receiving device;
  • the message transmission / reception device further includes: It has been described that a relay device load information storage unit that stores load information transmitted from a plurality of relay devices is provided.
  • the priority adjustment unit of the priority control processing unit of the message transmitting / receiving device is: It has been described that when a priority adjustment instruction is given to a relay device, the instructions are given in order from the relay device with the largest number of pending messages.
  • the relay device load information storage unit of the message transmitting / receiving device further includes: Holds processing throughput as message processing capability information for each relay device type,
  • the priority adjustment unit of the priority control processing unit of the message transmitting / receiving device is: Obtain the message processing time required to process all pending messages from the pending message count and processing throughput of each relay device, It has been described that when a priority adjustment instruction is given to a relay device, the instructions are given in order from the relay device having the longest message processing time.
  • the message transmission / reception device 20 and the relay device 30 are computers, and each element of the message transmission / reception device 20 and the relay device 30 can be realized by a program.
  • an arithmetic device 901, an external storage device 902, a main storage device 903, a communication device 904, and an input / output device 905 are connected to the bus.
  • the arithmetic device 901 is a CPU (Central Processing Unit) that executes a program.
  • the external storage device 902 is, for example, a ROM (Read Only Memory), a flash memory, or a hard disk device.
  • the main storage device 903 is a RAM (Random Access Memory). "Load information storage unit 23”, “Priority adjustment data storage unit 29”, “Priority change data storage unit 36”, “Downstream queue 241", “Upstream queue 244", "Downstream queue 351”, “Upstream queue 353 "Is realized by the external storage device 902 or the main storage device 903, for example.
  • the communication device 904 corresponds to the physical layers of “ ⁇ transmitting unit”, “ ⁇ receiving unit”, “ ⁇ accepting unit”, and “ ⁇ distributing unit”.
  • the input / output device 905 is, for example, a mouse, a keyboard, a display device, or the like.
  • the program is normally stored in the external storage device 902, and is loaded into the main storage device 903 and sequentially read into the arithmetic device 901 and executed.
  • the program will be described as “ ⁇ part (except for“ load information storage unit 23 ”,“ priority adjustment data storage unit 29 ”,“ priority change data storage unit 36 ”, and so on)) shown in FIG. It is a program that realizes the function.
  • an operating system (OS) is also stored in the external storage device 902. At least a part of the OS is loaded into the main storage device 903, and the arithmetic device 901 executes “OS” shown in FIG. ”Is executed.
  • Information, data, signal values, and variable values indicating the results of the processes described as “reception of”, “transmission of”, and the like are stored in the main storage device 903 as files. Further, the encryption key / decryption key, random number value, and parameter may be stored in the main storage device 903 as a file.
  • the configuration in FIG. 28 is merely an example of the hardware configuration of the message transmission / reception device 20 and the relay device 30, and the hardware configuration of the message transmission / reception device 20 and the relay device 30 is limited to the configuration described in FIG. Alternatively, other configurations may be used. Also, the application server apparatus 10 shown in the first and second embodiments may have the hardware configuration shown in FIG. 28 or may have another hardware configuration.
  • processing procedure of the message transmitting / receiving device 20 and the relay device 30 shown in the first and second embodiments can be regarded as an information processing method.
  • the message transmitting / receiving device 20 and the relay device 30 used in the smart meter automatic meter reading system have been described.
  • the contents shown in the present embodiment are applied to communication systems other than the smart meter automatic meter reading system. Is also applicable.
  • 10 application server device 20 message transmission / reception device, 21 message transmission unit, 22 reception request reception unit, 23 load information storage unit, 24 priority control processing unit, 25 timer unit, 26 transmission request reception unit, 27 temporary message storage unit, 28 Message distribution unit, 29 priority adjustment data storage unit, 30 relay device, 31 downlink message transmission unit, 32 uplink message reception unit, 33 load information generation unit, 34 timer unit, 35 priority control processing unit, 36 priority change data storage Section, 37 downstream message receiving section, 38 upstream message transmission section, 40 smart meter, 50 wide area network, 60 meter network, 241 downstream queue, 242 priority adjustment section, 243 progress information management section, 244 upstream queue, 351 downstream -Menu, 352 priority changing section, 353 upstream queue.

Abstract

A relay device (30) receives downstream messages to be sent to a smart meter, stores the received downstream messages, selects, on the basis of the levels of priority of the downstream messages, a high-priority downstream message to be sent to the smart meter with priority among the stored downstream messages, and sends the high-priority downstream message to the smart meter. A message transmission unit (21) sends a downstream message for which a level of priority has been specified, to the relay device (30). A priority level adjustment section (242) specifies an extraction condition used to extract a downstream message for which the level of priority is to be adjusted. The priority level adjustment section (242) also extracts a downstream message that satisfies the extraction condition, and generates a priority level adjustment message that instructs the relay device (30) to select a high-priority downstream message with a level of priority different from the level of priority already set for the extracted downstream message being given to the extracted downstream message. The message transmission unit (21) sends the priority level adjustment message to the relay device (30).

Description

通信装置及び中継装置Communication device and relay device
 本発明は、複数の端末装置との間でメッセージの送受信が行われる通信システムに関する。
 本発明は、例えば、複数のスマートメータとの間でメッセージの送受信が行われるスマートメータ自動検針システムに関する。
The present invention relates to a communication system in which messages are transmitted / received to / from a plurality of terminal devices.
The present invention relates to a smart meter automatic meter reading system in which messages are transmitted / received to / from a plurality of smart meters, for example.
 様々な国でスマートメータ(以下、単に「メータ」ともいう)を使った、電力、ガス、水道等のスマートメータ自動検針システムの導入が進んでいる。
 スマートメータ自動検針システムでは、スマートメータ、中継装置、メッセージ送受信装置、アプリケーションサーバ装置が、ツリー構造のネットワークで接続される。
 スマートメータは数百万台以上、中継装置は数千~数万台、メッセージ送受信装置は数台~十台、アプリケーションサーバ装置10は数台~数十台程度で構成される。
 スマートメータや、中継装置の計算能力は低く、処理の実行に制約がある。
 スマートメータ自動検針システムでは、スマートメータと中継装置との間がネットワークで接続され、中継装置とメッセージ送受信装置との間がネットワークで接続され、メッセージ送受信装置とアプリケーションサーバ装置との間がネットワークで接続されている。
 それぞれのネットワークは、帯域幅、通信速度、通信媒体、通信方式が異なっており、スマートメータ自動検針システムは、非均質なネットワークで構成されるシステムである。
 また、スマートメータ自動検針システムでは、アプリケーションサーバ装置上で実行されるアプリケーションプログラム(以下、単に「アプリケーション」という)とスマートメータが、検針値等のデータ、開閉制御等の制御情報をメッセージ通信によりやりとりする。
 取り扱われるメッセージには、上り方向(メータ、中継装置からアプリケーションへの方向)のメッセージと下り方向(アプリケーションから中継装置、メータへの方向)のメッセージがある。
 また、スマートメータ自動検針システムでは、一方向メッセージと双方向メッセージが混在し、また、上り方向メッセージと、下り方向メッセージの通信量は非対称である。
 なお、一方向メッセージは、メータや中継装置から自発的にメッセージを送信するメッセージ、あるいはアプリケーションから一方的に制御指示をするメッセージである。
 双方向メッセージは、アプリケーションがメータや中継装置に指示を与えるメッセージと、メータや中継装置が応答として返すメッセージとからなる。
 また、スマートメータ自動検針システムでは、通信量が多い時間帯と、少ない時間帯があり、通信量が不均一であるという特徴がある。
 さらに、定期検針のように一定時間内に数百万件以上のメッセージ通信がある多対1の通信、アプリケーションがある1台のメータの情報を取得する1対1の通信、メータや中継装置のファームウェア更新のような1対多の通信が存在する。
 アプリケーションの特性は多様で、スループットを要求するアプリケーション、応答性能を要求するアプリケーション、一定時間内に処理が終わらなければならない制約があるアプリケーションなどが混在している。
 スマートメータ自動検針システムでは、このような制約の大きい機器が、非均質で非対称なネットワーク上で、様々な特性のアプリケーションに合せて、効果的にメッセージの優先度制御を行う必要がある。
In various countries, smart meter automatic meter reading systems such as electric power, gas, and water using smart meters (hereinafter also simply referred to as “meters”) are being introduced.
In the smart meter automatic meter reading system, a smart meter, a relay device, a message transmission / reception device, and an application server device are connected by a tree structure network.
There are several million or more smart meters, thousands to tens of thousands of relay devices, several to tens of message transmission / reception devices, and several to tens of application server devices 10.
The smart meter and the relay device have low calculation capability, and there are restrictions on the execution of processing.
In the smart meter automatic meter reading system, the smart meter and the relay device are connected by a network, the relay device and the message transmitting / receiving device are connected by a network, and the message transmitting / receiving device and the application server device are connected by a network. Has been.
Each network has a different bandwidth, communication speed, communication medium, and communication method, and the smart meter automatic meter reading system is a system composed of heterogeneous networks.
In the smart meter automatic meter reading system, an application program (hereinafter simply referred to as “application”) executed on the application server device and the smart meter exchange data such as meter reading values and control information such as open / close control by message communication. To do.
The messages to be handled include messages in the upstream direction (meter, direction from relay device to application) and messages in the downstream direction (direction from application to relay device, meter).
In the smart meter automatic meter-reading system, one-way messages and two-way messages are mixed, and the traffic of upstream messages and downstream messages is asymmetric.
The one-way message is a message for spontaneously transmitting a message from a meter or a relay device, or a message for unidirectionally instructing control from an application.
The bidirectional message includes a message for giving an instruction to the meter or the relay device by the application and a message returned as a response by the meter or the relay device.
In addition, the smart meter automatic meter reading system has a feature that there are a time zone with a large amount of communication and a time zone with a small amount of communication, and the amount of communication is uneven.
Furthermore, many-to-one communication with millions of message communications within a certain period of time, such as periodic meter reading, one-to-one communication for obtaining information of one meter with application, meter and relay device There is a one-to-many communication such as firmware update.
There are various application characteristics, including applications that require throughput, applications that require response performance, and applications that have restrictions that must be completed within a certain period of time.
In the smart meter automatic meter reading system, it is necessary for such a highly restrictive device to effectively control the message priority in accordance with the application of various characteristics on the heterogeneous and asymmetric network.
 例えば、特許文献1には、一定時間内に処理を終わらなければならないアプリケーションに対する優先制御方式が記述されている。
 より具体的には、特許文献1では、伝送期限と現在時刻の差(残り時間)が少ないメッセージには、優先順位別の送信キューのうち高い優先順位の送信キューが選択され、残り時間が少ないメッセージが優先的に送信されるようにしている。
For example, Patent Document 1 describes a priority control method for an application that must finish processing within a certain time.
More specifically, in Patent Document 1, a high-priority transmission queue is selected from among transmission queues classified by priority for messages with a small difference between the transmission deadline and the current time (remaining time), and the remaining time is small. Messages are sent preferentially.
特開2011-130140号公報JP 2011-130140 A
 しかしながら、特許文献1では、残り時間が閾値より小さいかどうかのみで優先順位を判定している。
 このため、残り時間が閾値よりも僅かに大きいメッセージ(「メッセージA」という)は、低優先順位のキューに格納され、以後、低優先順位のキューに留め置かれる。
 メッセージAよりも後に発生した、残り時間が閾値よりも小さいメッセージは、高優先度順位のキューに格納され、メッセージAよりも先に送信されることになる。
 このため、時間の経過によりメッセージAの残り時間が閾値よりも小さくなってもメッセージAが送信されない事態が生じ、伝送期限を守るための優先制御が十分に機能しない。
 このように、特許文献1では、個々の無線通信装置が、残り時間のみで優先度判定を行うので、伝送期限のあるメッセージが大量に発生した場合にきめ細かい調整ができないという課題があり、また、メッセージの優先度が固定されてしまい、柔軟な制御ができないという課題がある。
However, in Patent Document 1, the priority order is determined only by whether or not the remaining time is smaller than the threshold value.
For this reason, a message whose remaining time is slightly larger than the threshold value (referred to as “message A”) is stored in the low priority queue, and is thereafter kept in the low priority queue.
A message that occurs after message A and whose remaining time is smaller than the threshold value is stored in a high priority queue and is transmitted before message A.
For this reason, even if the remaining time of the message A becomes smaller than the threshold due to the passage of time, a situation in which the message A is not transmitted occurs, and the priority control for keeping the transmission time limit does not function sufficiently.
As described above, in Patent Document 1, each wireless communication device performs priority determination only with the remaining time, and thus there is a problem that fine adjustment cannot be performed when a large number of messages with transmission deadlines occur, There is a problem that the priority of the message is fixed and flexible control is not possible.
 本発明は上記のような課題を解決することを主な目的の一つとしており、状況に応じて、メッセージの優先度を柔軟に調整することを主な目的とする。 The main purpose of the present invention is to solve the above-mentioned problems, and it is a main object to flexibly adjust the priority of messages according to the situation.
 本発明に係る通信装置は、
 端末装置への下りメッセージを受信し、受信した下りメッセージを記憶し、記憶している下りメッセージの中から優先して端末装置に送信する優先下りメッセージを下りメッセージの優先度に基づいて選択し、選択した優先下りメッセージを優先して端末装置に送信する中継装置に、優先度が設定されている下りメッセージを送信するメッセージ送信部と、
 優先度の調整の対象となる下りメッセージを抽出するための抽出条件を指定する抽出条件指定部と、
 前記抽出条件指定部により指定された抽出条件に合致する下りメッセージを抽出し、抽出した下りメッセージに対しては当該下りメッセージに設定されている優先度とは異なる優先度を用いて優先下りメッセージを選択するよう前記中継装置に指示する指示コマンドを生成する指示コマンド生成部と、
 前記指示コマンド生成部により生成された指示コマンドを前記中継装置に送信する指示コマンド送信部とを有することを特徴とする。
The communication device according to the present invention is
Receiving a downlink message to the terminal device, storing the received downlink message, selecting a priority downlink message to be transmitted to the terminal device preferentially from the stored downlink messages based on the priority of the downlink message; A message transmission unit that transmits a downlink message with a priority set to a relay device that prioritizes the selected priority downlink message and transmits the message to the terminal device;
An extraction condition designating part for designating an extraction condition for extracting a downstream message whose priority is to be adjusted;
A downlink message that matches the extraction condition specified by the extraction condition specifying unit is extracted, and a priority downlink message is assigned to the extracted downlink message using a priority different from the priority set for the downlink message. An instruction command generator for generating an instruction command for instructing the relay device to select;
And an instruction command transmission unit that transmits the instruction command generated by the instruction command generation unit to the relay device.
 本発明によれば、状況ごとに適切な抽出条件を指定することにより、状況に応じてメッセージの優先度を柔軟に調整することができる。 According to the present invention, by specifying an appropriate extraction condition for each situation, the priority of the message can be flexibly adjusted according to the situation.
実施の形態1及び2に係るスマートメータ自動検針システムの構成例を示す図。The figure which shows the structural example of the smart meter automatic meter-reading system which concerns on Embodiment 1 and 2. FIG. 実施の形態1及び2に係るメッセージ送受信装置の構成例を示す図。FIG. 3 is a diagram illustrating a configuration example of a message transmission / reception device according to Embodiments 1 and 2. 実施の形態1及び2に係る中継装置の構成例を示す図。FIG. 3 is a diagram illustrating a configuration example of a relay device according to the first and second embodiments. 実施の形態1に係る優先度情報テーブルの例を示す図。FIG. 4 is a diagram illustrating an example of a priority information table according to the first embodiment. 実施の形態1に係るメータ中継装置対応テーブルの例を示す図。The figure which shows the example of the meter relay apparatus corresponding | compatible table which concerns on Embodiment 1. FIG. 実施の形態1に係る優先度変更情報テーブルの例を示す図。FIG. 5 is a diagram showing an example of a priority change information table according to the first embodiment. 実施の形態1に係るアプリケーションテーブルの例を示す図。FIG. 4 shows an example of an application table according to the first embodiment. 実施の形態2に係る優先度情報テーブルの例を示す図。The figure which shows the example of the priority information table which concerns on Embodiment 2. FIG. 実施の形態2に係る中継装置仕様テーブルの例を示す図。The figure which shows the example of the relay apparatus specification table which concerns on Embodiment 2. FIG. 実施の形態2に係る中継装置負荷テーブルの例を示す図。The figure which shows the example of the relay apparatus load table which concerns on Embodiment 2. FIG. 実施の形態1に係るメッセージ送信依頼形式の例を示す図。FIG. 3 is a diagram showing an example of a message transmission request format according to the first embodiment. 実施の形態1に係るメッセージ受信依頼形式の例を示す図。FIG. 4 shows an example of a message reception request format according to the first embodiment. 実施の形態1に係る送信メッセージ形式の例を示す図。FIG. 6 is a diagram showing an example of a transmission message format according to the first embodiment. 実施の形態1に係る優先度調整処理の例を示すフローチャート図。FIG. 4 is a flowchart showing an example of priority adjustment processing according to the first embodiment. 実施の形態1に係る優先度調整要否チェック(送受信数の差異)の例を示すフローチャート図。The flowchart figure which shows the example of the priority adjustment necessity check (difference in the number of transmission / reception) which concerns on Embodiment 1. FIG. 実施の形態1に係る優先度調整要否チェック(メッセージ受信速度)の例を示すフローチャート図。FIG. 6 is a flowchart showing an example of priority adjustment necessity check (message reception speed) according to the first embodiment. 実施の形態1に係る優先度調整要否チェック(受信残り時間)の例を示すフローチャート図。FIG. 5 is a flowchart showing an example of priority adjustment necessity check (reception remaining time) according to the first embodiment. 実施の形態1に係る優先度引き下げ処理の例を示すフローチャート図。FIG. 5 is a flowchart showing an example of priority lowering processing according to the first embodiment. 実施の形態2に係る優先度調整メッセージの送信順序を調整する処理の例を示すフローチャート図。FIG. 9 is a flowchart showing an example of processing for adjusting the transmission order of priority adjustment messages according to the second embodiment. 実施の形態2に係る中継装置負荷テーブル更新処理(保留メッセージ数)の例を示すフローチャート図。The flowchart figure which shows the example of the relay apparatus load table update process (pending message number) which concerns on Embodiment 2. FIG. 実施の形態2に係る中継装置負荷テーブル更新処理(メッセージ処理所要時間)の例を示すフローチャート図。The flowchart figure which shows the example of the relay apparatus load table update process (message processing time required) which concerns on Embodiment 2. FIG. 実施の形態2に係る優先度調整メッセージ処理(1)の例を示すフローチャート図。The flowchart figure which shows the example of the priority adjustment message process (1) which concerns on Embodiment 2. FIG. 実施の形態2に係る優先度調整メッセージ処理(2)の例を示すフローチャート図。The flowchart figure which shows the example of the priority adjustment message process (2) which concerns on Embodiment 2. FIG. 実施の形態1に係る中継装置における優先度変更手順を説明する図。The figure explaining the priority change procedure in the relay apparatus which concerns on Embodiment 1. FIG. 実施の形態1に係る優先度変更情報テーブル(変更前)を示す図。The figure which shows the priority change information table (before change) which concerns on Embodiment 1. FIG. 実施の形態1に係る中継装置における優先度変更手順を説明する図。The figure explaining the priority change procedure in the relay apparatus which concerns on Embodiment 1. FIG. 実施の形態1に係る優先度変更情報テーブル(変更後)を示す図。The figure which shows the priority change information table (after change) which concerns on Embodiment 1. FIG. 実施の形態1及び2に係るメッセージ送受信装置及び中継装置のハードウェア構成例を示す図。The figure which shows the hardware structural example of the message transmission / reception apparatus which concerns on Embodiment 1 and 2, and a relay apparatus.
 実施の形態1.
 本実施の形態では、スマートメータ自動検針システムについて説明する。
 本実施の形態では、センターに配備されたメッセージ送受信装置が、メッセージ通信の進捗度合いを判断し、優先度調整の指示を中継装置に出す。
 そして、中継装置は、メッセージ送受信装置からの指示に従って優先度を調整する。
 これらの手順により、効果的、かつきめ細かい優先度制御を行うことができる。
Embodiment 1 FIG.
In this embodiment, a smart meter automatic meter reading system will be described.
In the present embodiment, the message transmission / reception device deployed in the center determines the progress of message communication and issues a priority adjustment instruction to the relay device.
Then, the relay device adjusts the priority according to an instruction from the message transmission / reception device.
By these procedures, effective and fine priority control can be performed.
 図1は、本実施の形態に係るスマートメータ自動検針システムの概略図である。
 図1において、スマートメータ自動検針システムは、スマートメータ40、中継装置30、メッセージ送受信装置20、アプリケーションサーバ装置10が、ツリー構造のネットワークで接続されている。
FIG. 1 is a schematic diagram of a smart meter automatic meter reading system according to the present embodiment.
In FIG. 1, a smart meter automatic meter reading system includes a smart meter 40, a relay device 30, a message transmission / reception device 20, and an application server device 10 connected via a network having a tree structure.
 スマートメータ40は、電力、ガス、水道等の使用量を測定し、アプリケーションサーバ装置10上で動作する1つ以上のアプリケーションとの間で、メッセージ送受信装置20と、メッセージ送受信装置20とスマートメータ40間に配備される中継装置30を経由して、メッセージ通信を行う。
 スマートメータ40は、端末装置の例に相当する。
The smart meter 40 measures the usage amount of power, gas, water, and the like, and transmits / receives the message transmission / reception device 20, the message transmission / reception device 20, and the smart meter 40 to one or more applications operating on the application server device 10. Message communication is performed via the relay device 30 provided in between.
The smart meter 40 corresponds to an example of a terminal device.
 アプリケーションサーバ装置10では、自動検針に関わるアプリケーションが動作する。
 アプリケーションサーバ装置10は、アプリケーションの実行により、メッセージ送信依頼(以下、単に「送信依頼」ともいう)をメッセージ送受信装置20に送信する。
 アプリケーションサーバ装置10は、メッセージ送信依頼をメッセージ送受信装置20に送信して、複数のスマートメータ40へのメッセージの送信をメッセージ送受信装置20に依頼する。
 また、アプリケーションサーバ装置10は、メッセージ送受信装置20から、スマートメータ40からのメッセージを受信する。
 アプリケーションサーバ装置10は、上位装置の例に相当する。
In the application server device 10, an application relating to automatic meter reading operates.
The application server device 10 transmits a message transmission request (hereinafter also simply referred to as “transmission request”) to the message transmission / reception device 20 by executing the application.
The application server device 10 transmits a message transmission request to the message transmission / reception device 20, and requests the message transmission / reception device 20 to transmit a message to the plurality of smart meters 40.
In addition, the application server device 10 receives a message from the smart meter 40 from the message transmission / reception device 20.
The application server device 10 corresponds to an example of a host device.
 メッセージ送受信装置20は、アプリケーションサーバ装置10上のアプリケーション及び中継装置30とのメッセージ通信を制御する。
 より具体的には、メッセージ送受信装置20は、アプリケーションサーバ装置10からメッセージ送信依頼を受信する。
 メッセージ送信依頼には、1つ以上の送信メッセージが含まれている。
 なお、送信メッセージを下りメッセージともいう。
 メッセージ送受信装置20は、メッセージ送信依頼から送信メッセージを抽出し、抽出した送信メッセージを中継装置30に送信する。
 送信メッセージには、メッセージ送信依頼のID(Identifier)である送信依頼IDとメッセージ送信依頼で指定されている優先度とが設定される。
 また、メッセージ送受信装置20は、中継装置30から、スマートメータ40からの受信メッセージを受信し、受信した受信メッセージをアプリケーションサーバ装置10に送信する。
 なお、受信メッセージを上りメッセージともいう。
 また、メッセージ送受信装置20は、送信メッセージ及び受信メッセージについての優先度の調整を行う。
 メッセージ送受信装置20は、通信装置の例に相当する。
The message transmitting / receiving device 20 controls the application on the application server device 10 and message communication with the relay device 30.
More specifically, the message transmission / reception device 20 receives a message transmission request from the application server device 10.
The message transmission request includes one or more transmission messages.
A transmission message is also called a downstream message.
The message transmission / reception device 20 extracts a transmission message from the message transmission request, and transmits the extracted transmission message to the relay device 30.
In the transmission message, a transmission request ID that is an ID (Identifier) of the message transmission request and a priority specified in the message transmission request are set.
Further, the message transmission / reception device 20 receives a reception message from the smart meter 40 from the relay device 30 and transmits the received reception message to the application server device 10.
The received message is also called an upstream message.
In addition, the message transmitting / receiving device 20 adjusts the priority of the transmission message and the reception message.
The message transmission / reception device 20 corresponds to an example of a communication device.
 中継装置30は、スマートメータ40との間のメッセージを中継する。
 より具体的には、中継装置30は、メッセージ送受信装置20から下りメッセージを受信し、受信した下りメッセージを優先度別のキューに蓄積し、最も高い優先度のキューに蓄積されている下りメッセージを優先してスマートメータ40に送信する。
 最も高い優先度のキューに蓄積されている下りメッセージ、すなわちスマートメータ40に優先して送信される下りメッセージを、優先下りメッセージともいう。
 また、中継装置30は、複数のスマートメータ40から上りメッセージを受信し、受信した上りメッセージを優先度別のキューに蓄積し、最も高い優先度のキューに蓄積されている下りメッセージを優先してメッセージ送受信装置20に送信する。
 最も高い優先度のキューに蓄積されている上りメッセージ、すなわちメッセージ送受信装置20に優先して送信される上りメッセージを、優先上りメッセージともいう。
The relay device 30 relays a message with the smart meter 40.
More specifically, the relay device 30 receives a downlink message from the message transmission / reception device 20, accumulates the received downlink message in a priority-specific queue, and stores the downlink message accumulated in the highest priority queue. Send to the smart meter 40 with priority.
A downlink message stored in the highest priority queue, that is, a downlink message transmitted with priority to the smart meter 40 is also referred to as a priority downlink message.
Further, the relay device 30 receives upstream messages from the plurality of smart meters 40, accumulates the received upstream messages in priority-specific queues, and gives priority to downstream messages stored in the highest priority queue. The message is transmitted to the message transmitting / receiving device 20.
An upstream message stored in the highest priority queue, that is, an upstream message transmitted with priority to the message transmitting / receiving device 20 is also referred to as a priority upstream message.
 図2は、本実施の形態に係るメッセージ送受信装置20の構成例を示すシステム構成図である。 FIG. 2 is a system configuration diagram showing a configuration example of the message transmitting / receiving apparatus 20 according to the present embodiment.
 図2において、優先制御処理部24は、メッセージ通信の優先制御を行う。 In FIG. 2, the priority control processing unit 24 performs priority control of message communication.
 送信依頼受付部26は、アプリケーションサーバ装置10からメッセージ送信依頼を受け付け、メッセージ送信依頼からスマートメータ40宛ての送信メッセージを抽出し、抽出した送信メッセージを優先制御処理部24へ転送する。 The transmission request reception unit 26 receives a message transmission request from the application server device 10, extracts a transmission message addressed to the smart meter 40 from the message transmission request, and transfers the extracted transmission message to the priority control processing unit 24.
 メッセージ一時格納部27は、送信依頼受付部26が複数のスマートメータ40に対する送信メッセージを包含するメッセージ送信依頼を受け付けたときに、送信依頼受付部26が抽出した複数の送信メッセージを一時的に格納する。 The message temporary storage unit 27 temporarily stores a plurality of transmission messages extracted by the transmission request reception unit 26 when the transmission request reception unit 26 receives a message transmission request including transmission messages for the plurality of smart meters 40. To do.
 タイマー部25は、メッセージ一時格納部27から送信メッセージを取り出して優先制御処理部24へ転送するタイミングを与える。 The timer unit 25 gives the timing to take out the transmission message from the message temporary storage unit 27 and transfer it to the priority control processing unit 24.
 メッセージ送信部21は、優先制御処理部24から送信メッセージを受け取り、送信メッセージを中継装置30へ送信する。
 なお、メッセージ送信部21は、後述するように、指示コマンド送信部としても機能する。
The message transmission unit 21 receives the transmission message from the priority control processing unit 24 and transmits the transmission message to the relay device 30.
Note that the message transmission unit 21 also functions as an instruction command transmission unit, as will be described later.
 受信依頼受付部22は、中継装置30から1つ以上の受信メッセージが含まれるメッセージ受信依頼を受け付け、メッセージ受信依頼を優先制御処理部24へ転送する。
 なお、受信依頼受付部22は、メッセージ受信部の例に相当する。
The reception request reception unit 22 receives a message reception request including one or more reception messages from the relay device 30 and transfers the message reception request to the priority control processing unit 24.
The reception request reception unit 22 corresponds to an example of a message reception unit.
 メッセージ配信部28は、優先制御処理部24から受け取ったメッセージ受信依頼をアプリケーションサーバ装置10へ送信する。 The message delivery unit 28 transmits the message reception request received from the priority control processing unit 24 to the application server device 10.
 負荷情報格納部23は、中継装置30から定期的に送信される負荷情報と中継装置型式ごとのメッセージ処理能力情報を格納する。
 なお、負荷情報格納部23の詳細は、実施の形態2で説明する。
The load information storage unit 23 stores load information periodically transmitted from the relay device 30 and message processing capability information for each relay device type.
Details of the load information storage unit 23 will be described in the second embodiment.
 優先度調整データ記憶部29は、優先制御処理部24が参照する優先度調整データを記憶する。 The priority adjustment data storage unit 29 stores priority adjustment data referred to by the priority control processing unit 24.
 また、優先制御処理部24は、複数の下りキュー241と複数の上りキュー244と優先度調整部242と進捗情報管理部243で構成される。 The priority control processing unit 24 includes a plurality of downlink queues 241, a plurality of uplink queues 244, a priority adjustment unit 242, and a progress information management unit 243.
 下りキュー241は、アプリケーションサーバ装置10から中継装置30への下り方向のメッセージ、つまり、送信依頼受付部26により抽出された、スマートメータ40への下りメッセージを蓄積するためのキューである。
 下りキュー241は、優先度ごとに設けられている。
The downstream queue 241 is a queue for storing downstream messages from the application server device 10 to the relay device 30, that is, downstream messages to the smart meter 40 extracted by the transmission request receiving unit 26.
The downlink queue 241 is provided for each priority.
 上りキュー244は、中継装置30からアプリケーションサーバ装置10への上り方向のメッセージ、つまり、スマートメータ40からの上りメッセージを蓄積するためのキューである。
 上りキュー244は、優先度ごとに設けられている。
The upstream queue 244 is a queue for storing upstream messages from the relay device 30 to the application server device 10, that is, upstream messages from the smart meter 40.
The upstream queue 244 is provided for each priority.
 進捗情報管理部243は、送信依頼IDごとに、メッセージ送信部21が送信した送信メッセージ数と受信依頼受付部22が受信した受信メッセージ数、受信メッセージのメッセージ受信速度、残受信メッセージ数、送信依頼時刻、受信期限時刻までの残り時間などのメッセージ通信の進捗情報を管理する。 The progress information management unit 243, for each transmission request ID, the number of transmitted messages transmitted by the message transmitting unit 21, the number of received messages received by the reception request receiving unit 22, the message reception speed of the received messages, the number of remaining received messages, the transmission request It manages message communication progress information such as time and the remaining time until the reception deadline time.
 優先度調整部242は、進捗情報をもとに優先度調整を行う。
 優先度調整部242は、進捗情報を解析して、優先度の調整の対象となる下りメッセージを抽出するための抽出条件を指定する。
 より具体的には、優先度調整部242は、特定の送信依頼IDを選択し、選択した送信依頼IDが設定されている下りメッセージを抽出する旨の抽出条件を指定する。
 そして、優先度調整部242は、選択した送信依頼IDが設定されている下りメッセージを抽出し、抽出した下りメッセージに対して当該下りメッセージに記述されている優先度とは異なる優先度を用いて優先下りメッセージを選択するよう中継装置30に指示する指示コマンド(以下、「優先度調整メッセージ」という)を生成する。
 優先度調整メッセージは、メッセージ送信部21から中継装置30に送信される。
 双方向メッセージの場合は、下りメッセージの送信依頼IDと優先度と同じ送信依頼IDと優先度が上りメッセージにも設定されている。
 優先度調整部242が、双方向メッセージに用いられている送信依頼IDを選択した場合は、優先度調整メッセージは、上りメッセージにも適用される。
 つまり、優先度調整メッセージは、該当する送信依頼IDが設定されている上りメッセージを抽出し、抽出した上りメッセージに対して当該上りメッセージに設定されている優先度とは異なる優先度を用いて優先上りメッセージを選択する旨の指示も含む。
 なお、双方向メッセージにおける下りメッセージは、スマートメータ40からの応答を要求する下りメッセージであり、応答要求下りメッセージに相当する。
 また、優先度調整部242は、抽出条件指定部及び指示コマンド生成部の例に相当する。
The priority adjustment unit 242 performs priority adjustment based on the progress information.
The priority adjustment unit 242 analyzes the progress information and specifies an extraction condition for extracting a downlink message that is a target of priority adjustment.
More specifically, the priority adjustment unit 242 selects a specific transmission request ID and specifies an extraction condition for extracting a downlink message in which the selected transmission request ID is set.
Then, the priority adjustment unit 242 extracts the downlink message in which the selected transmission request ID is set, and uses a priority different from the priority described in the downlink message for the extracted downlink message. An instruction command (hereinafter referred to as “priority adjustment message”) for instructing the relay device 30 to select a priority downlink message is generated.
The priority adjustment message is transmitted from the message transmission unit 21 to the relay device 30.
In the case of a bidirectional message, the same transmission request ID and priority as those of the downstream message transmission request ID and priority are set for the upstream message.
When the priority adjustment unit 242 selects the transmission request ID used for the bidirectional message, the priority adjustment message is also applied to the uplink message.
In other words, the priority adjustment message is extracted by using the priority that is different from the priority set for the uplink message, by extracting the uplink message in which the corresponding transmission request ID is set. It also includes an instruction to select an upstream message.
The downlink message in the bidirectional message is a downlink message requesting a response from the smart meter 40, and corresponds to a response request downlink message.
The priority adjustment unit 242 corresponds to an example of an extraction condition designation unit and an instruction command generation unit.
 なお、優先制御処理部24の下りキュー241、上りキュー244は、優先度ごとに複数のキューで構成されているが、1つのキューで実現してもよい。
 この場合は、1つの下りキュー241を優先度ごとの領域に区分し、送信依頼受付部26から入力した下りメッセージを対応する優先度の領域に格納するようにする。
 同様に、1つの上りキュー244を優先度ごとの領域に区分し、受信依頼受付部22から入力した上りメッセージを対応する優先度の領域に格納するようにする。
 また、下りキュー241と上りキュー244を1つのキューで実現してもよい。
 この場合は、1つのキューを下りメッセージ用の領域と上りメッセージ用の領域に区分し、更に、下りメッセージ用の領域を優先度ごとに区分し、上りメッセージ用の領域を優先度ごとに区分する。
The downlink queue 241 and the uplink queue 244 of the priority control processing unit 24 are configured by a plurality of queues for each priority, but may be realized by one queue.
In this case, one downlink queue 241 is divided into areas for each priority, and the downlink message input from the transmission request receiving unit 26 is stored in the corresponding priority area.
Similarly, one upstream queue 244 is divided into areas for each priority, and the upstream message input from the reception request receiving unit 22 is stored in the corresponding priority area.
Further, the down queue 241 and the up queue 244 may be realized by one queue.
In this case, one queue is divided into an area for downlink messages and an area for uplink messages, and further, an area for downlink messages is divided for each priority, and an area for uplink messages is divided for each priority. .
 次に動作について説明する。
 まず、アプリケーションサーバ装置10から中継装置30へ下りメッセージを送信する場合の、メッセージ送受信装置20の基本動作について説明する。
Next, the operation will be described.
First, the basic operation of the message transmission / reception device 20 when a downlink message is transmitted from the application server device 10 to the relay device 30 will be described.
 アプリケーションサーバ装置10には複数のアプリケーションが動作しており、アプリケーションは実行する処理の中で、スマートメータ40に対するメッセージをメッセージ送受信装置20に送信依頼する。
 メッセージの内容はアプリケーションが実行する処理に依存し、例えばスマートメータ40への制御メッセージ、スマートメータ40からの情報取得要求などがある。
 アプリケーションがメッセージ送受信装置20にメッセージ送信を依頼するメッセージ送信依頼の形式は、例えば図11のようになっている。
A plurality of applications are running on the application server device 10, and the application requests the message transmission / reception device 20 to send a message to the smart meter 40 during processing to be executed.
The content of the message depends on processing executed by the application, and includes, for example, a control message to the smart meter 40, an information acquisition request from the smart meter 40, and the like.
The format of a message transmission request for an application requesting message transmission to the message transmission / reception device 20 is, for example, as shown in FIG.
 メッセージ送信依頼は、メッセージ通信の制御に必要な情報を含むヘッダ部と、送信依頼する1つ以上の送信メッセージと送信先IDを含むデータ部からなる。
 スマートメータ40へ送信メッセージを送信する場合、送信先IDには送信先のスマートメータ40のメータIDが入る。
 ヘッダ部には、例えば、アプリケーションID、メッセージ種別、送信メッセージサイズ、総送信メッセージ数、応答メッセージ受信期限時刻、優先度が含まれる。
 アプリケーションIDは、メッセージ送信依頼を行ったアプリケーションを一意に表す。
 メッセージ種別は、送信メッセージの種別(一方向メッセージか、双方向メッセージか)を表す。
 単位送信メッセージサイズは、1つの送信メッセージと送信先IDを合せたデータの大きさを表す。
 総送信メッセージ数は、メッセージ送信依頼のデータ部に含まれる送信メッセージの総数を表す。
 応答メッセージ受信期限時刻は、送信メッセージ(応答要求下りメッセージ)に対するスマートメータ40からの応答(上りメッセージ)をアプリケーションが受け取る期限の時刻を表す。
 優先度は、アプリケーションが指定する送信メッセージの通信における優先度である。
 データ部には、送信メッセージの本体と送信先を指定する送信先IDの組が、総送信メッセージ数分だけ含まれる。
The message transmission request includes a header portion including information necessary for controlling message communication, and a data portion including one or more transmission messages to be transmitted and a transmission destination ID.
When a transmission message is transmitted to the smart meter 40, the meter ID of the smart meter 40 of the transmission destination is entered in the transmission destination ID.
The header part includes, for example, an application ID, message type, transmission message size, total number of transmission messages, response message reception deadline time, and priority.
The application ID uniquely represents the application that has requested the message transmission.
The message type represents the type of transmission message (one-way message or two-way message).
The unit transmission message size represents the size of data combining one transmission message and a transmission destination ID.
The total number of transmission messages represents the total number of transmission messages included in the data part of the message transmission request.
The response message reception deadline time represents the time limit for the application to receive a response (uplink message) from the smart meter 40 to the transmission message (response request downlink message).
The priority is a priority in communication of a transmission message specified by the application.
The data part includes a set of transmission message IDs and transmission destination IDs for designating transmission destinations for the total number of transmission messages.
 メッセージ送受信装置20では、送信依頼受付部26がアプリケーションからのメッセージ送信依頼を受け付ける。
 送信依頼受付部26は、受け付けたメッセージ送信依頼の送信依頼IDを採番する。
 また、送信依頼受付部26は、受け付けたメッセージ送信依頼のデータ部に送信先IDと送信メッセージの組が1つだけ含まれる場合には、メッセージ送信依頼を図13に示す形式の下りメッセージに変換し、下りメッセージを優先制御処理部24へ転送する。
 下りメッセージでは、ヘッダ部として、送信先ID、送信依頼ID、メッセージ種別、送信メッセージサイズ、応答メッセージ受信期限時刻、優先度が含まれ、データ部として、メッセージ送信依頼に含まれる送信メッセージが含まれる。
 ヘッダ部の送信先ID、メッセージ種別、送信メッセージサイズ、応答メッセージ受信期限時刻、優先度は、メッセージ送信依頼(図11)に含まれている値である。
 送信依頼IDは、メッセージ送信依頼の受け付け時に送信依頼受付部26が採番した値である。
 一方、受け付けたメッセージ送信依頼のデータ部に送信先IDと送信メッセージの組が複数含まれる場合には、送信依頼受付部26は、個々の送信先IDと送信メッセージの組に分割する。
 そして、送信依頼受付部26は、送信先IDと送信メッセージの組ごとに、図13に示す形式の下りメッセージを生成する。
 その後、送信依頼受付部26は、生成した下りメッセージのそれぞれを、メッセージ一時格納部27に格納する。
 なお、送信メッセージが複数含まれるメッセージ送信依頼を、複合メッセージ送信依頼といい、また、双方向の送信メッセージ(応答要求下りメッセージ)が複数含まれるメッセージ送信依頼を、複合応答要求メッセージ送信依頼という。
In the message transmitting / receiving device 20, the transmission request receiving unit 26 receives a message transmission request from an application.
The transmission request receiving unit 26 assigns a transmission request ID of the received message transmission request.
Also, the transmission request reception unit 26 converts the message transmission request into a downlink message having the format shown in FIG. 13 when the data part of the received message transmission request includes only one set of transmission destination ID and transmission message. Then, the downlink message is transferred to the priority control processing unit 24.
In the downlink message, a header part includes a transmission destination ID, a transmission request ID, a message type, a transmission message size, a response message reception deadline time, and a priority, and a data part includes a transmission message included in the message transmission request. .
The transmission destination ID, message type, transmission message size, response message reception deadline time, and priority in the header are values included in the message transmission request (FIG. 11).
The transmission request ID is a value numbered by the transmission request reception unit 26 when a message transmission request is received.
On the other hand, if the data portion of the received message transmission request includes a plurality of combinations of transmission destination IDs and transmission messages, the transmission request reception unit 26 divides the data into combinations of individual transmission destination IDs and transmission messages.
And the transmission request reception part 26 produces | generates the downlink message of the format shown in FIG. 13 for every pair of transmission destination ID and a transmission message.
Thereafter, the transmission request reception unit 26 stores each of the generated downlink messages in the message temporary storage unit 27.
A message transmission request including a plurality of transmission messages is referred to as a composite message transmission request, and a message transmission request including a plurality of bidirectional transmission messages (response request downlink messages) is referred to as a composite response request message transmission request.
 次に送信依頼受付部26は、ヘッダ部に含まれる総送信メッセージ数と応答メッセージ受信期限から、優先制御処理部24へ下りメッセージを転送する際のインターバル時間を計算し、タイマー部25にインターバル時間を設定する。
 応答メッセージ受信期限が指定されていない場合には、送信依頼受付部26は、メッセージ送信依頼に含まれる送信メッセージから生成した全ての下りメッセージを優先制御処理部24へ転送する。
 インターバル時間は、例えば、応答メッセージ受信期限までの残り時間から応答に必要な余裕時間を差し引いた時間を総送信メッセージ数で除して求めてもよい。
 あるいは、あらかじめ決められたインターバル時間を使ってもよい。
 タイマー部25は設定されたインターバル時間ごとに、転送時刻が来たことを知らせるタイミング信号を送信依頼受付部26に送る。
 タイミング信号を受け取った送信依頼受付部26は、メッセージ一時格納部27から一つの下りメッセージを取り出し、取り出した下りメッセージを優先制御処理部24へ転送する。
Next, the transmission request reception unit 26 calculates an interval time when the downlink message is transferred to the priority control processing unit 24 from the total number of transmission messages included in the header part and the response message reception deadline, and sends the interval time to the timer unit 25. Set.
When the response message reception deadline is not specified, the transmission request reception unit 26 transfers all downlink messages generated from the transmission message included in the message transmission request to the priority control processing unit 24.
The interval time may be obtained by, for example, dividing the time obtained by subtracting the margin time required for the response from the remaining time until the response message reception deadline by the total number of transmitted messages.
Alternatively, a predetermined interval time may be used.
The timer unit 25 sends a timing signal notifying that the transfer time has arrived to the transmission request receiving unit 26 every set interval time.
The transmission request reception unit 26 that has received the timing signal extracts one downlink message from the message temporary storage unit 27 and transfers the extracted downlink message to the priority control processing unit 24.
 優先制御処理部24では、送信依頼受付部26から転送された送信メッセージを下りキュー241の該当する優先度のキューの最後尾に挿入する。 The priority control processing unit 24 inserts the transmission message transferred from the transmission request receiving unit 26 at the tail of the queue with the corresponding priority in the down queue 241.
 メッセージ送信部21は、下りキュー241のうち優先度の最も高いキューの先頭から送信メッセージを取り出す。
 もし優先度の最も高いキューが空の場合には、次に優先度の高いキューの先頭から送信メッセージを取り出す。
 次に、メッセージ送信部21は、取り出した送信メッセージから送信先IDを読み出し、図5に示すメータ中継装置対応テーブルから該当する送信先IDに対応する中継装置IDを検索し、見つかった中継装置IDに対応する中継装置30に送信メッセージを送信する。
The message transmission unit 21 extracts a transmission message from the head of the queue having the highest priority among the downlink queues 241.
If the queue with the highest priority is empty, the transmission message is extracted from the head of the queue with the next highest priority.
Next, the message transmission unit 21 reads the transmission destination ID from the extracted transmission message, searches the meter relay device correspondence table shown in FIG. 5 for the relay device ID corresponding to the corresponding transmission destination ID, and finds the relay device ID found. A transmission message is transmitted to the relay device 30 corresponding to the above.
 次に、中継装置30からアプリケーションサーバ装置10への上り方向のメッセージを送信する場合のメッセージ送受信装置20の基本動作について説明する。 Next, the basic operation of the message transmitting / receiving device 20 when transmitting an upstream message from the relay device 30 to the application server device 10 will be described.
 中継装置30は、上り方向のメッセージが1つ以上含まれるメッセージ受信依頼をメッセージ送受信装置20に送信する。
 上り方向のメッセージは、スマートメータ40から中継装置30が受信したメッセージであり、例えばスマートメータ40で定期または不定期に発生したイベントを表すメッセージや、アプリケーションからのメッセージ(応答要求下りメッセージ)に対する応答メッセージである。
 メッセージ送受信装置20が中継装置30から受信するメッセージ受信依頼の形式は、例えば図12のようになっている。
The relay device 30 transmits a message reception request including one or more uplink messages to the message transmitting / receiving device 20.
The upstream message is a message received by the relay device 30 from the smart meter 40. For example, a message representing an event that has occurred regularly or irregularly in the smart meter 40, or a response to a message from the application (response request downstream message). Message.
The format of the message reception request that the message transmitting / receiving apparatus 20 receives from the relay apparatus 30 is, for example, as shown in FIG.
 メッセージ受信依頼は、メッセージ通信の制御に必要な情報を含むヘッダ部と、1つ以上の受信メッセージと送信元IDを含むデータ部からなる。
 スマートメータ40からのメッセージ受信の場合、送信元IDには送信元のスマートメータ40のメータIDが入る。
 ヘッダ部には、例えば、送信依頼ID又はアプリケーションID、メッセージ種別、単位受信メッセージサイズ、総受信メッセージ数、応答メッセージ受信期限、優先度が含まれる。
 送信依頼IDは、上りメッセージが応答要求下りメッセージに対する応答メッセージである場合に用いられる。
 送信依頼IDの欄には、応答要求下りメッセージの送信依頼ID(図13)と同じ値が記述される。
 アプリケーションIDは、上りメッセージがスマートメータ40から発信されたメッセージである場合(応答要求下りメッセージに対する応答メッセージではない場合)に用いられる。
 アプリケーションIDは、上りメッセージの送信先のアプリケーションを一意に表す。
 なお、図13にはアプリケーションIDが記述されていない下りメッセージが例示されているが、下りメッセージにアプリケーションIDが記述されている場合は、応答データである上りメッセージに同じアプリケーションIDが記述されていてもよい。
 メッセージ種別は、受信メッセージの種別(一方向メッセージか、双方向メッセージか)を表す。
 単位受信メッセージサイズは、1つの受信メッセージと送信元IDを合せたデータの大きさを表す。
 総受信メッセージ数は、メッセージ受信依頼のデータ部に含まれる受信メッセージの総数を表す。
 応答メッセージ受信期限は、受信メッセージをアプリケーションが受け取る期限の時刻を表す。
 受信メッセージが応答要求下りメッセージに対する応答メッセージである場合は、応答メッセージ受信期限の欄には、応答要求下りメッセージに記述されていた応答メッセージ受信期限(図13)と同じ値が記述される。
 優先度は、受信メッセージの通信における優先度を表す。
 受信メッセージが応答要求下りメッセージに対する応答メッセージである場合は、優先度の欄には、応答要求下りメッセージに記述されていた優先度(図13)と同じ値が記述される。
 データ部には、受信メッセージの本体と送信元を示す送信元IDの組が、総受信メッセージ数分だけ含まれる。
The message reception request includes a header portion including information necessary for control of message communication, and a data portion including one or more received messages and a transmission source ID.
In the case of receiving a message from the smart meter 40, the meter ID of the smart meter 40 of the transmission source is entered in the transmission source ID.
The header part includes, for example, a transmission request ID or application ID, a message type, a unit received message size, the total number of received messages, a response message reception deadline, and a priority.
The transmission request ID is used when the upstream message is a response message to the response request downstream message.
In the transmission request ID column, the same value as the transmission request ID (FIG. 13) of the response request downlink message is described.
The application ID is used when the upstream message is a message transmitted from the smart meter 40 (when it is not a response message to the response request downstream message).
The application ID uniquely represents the destination application of the upstream message.
FIG. 13 illustrates a downlink message in which the application ID is not described. However, when the application ID is described in the downlink message, the same application ID is described in the uplink message that is response data. Also good.
The message type represents the type of received message (one-way message or two-way message).
The unit received message size represents the size of data that combines one received message and the transmission source ID.
The total number of received messages represents the total number of received messages included in the data part of the message reception request.
The response message reception time limit represents a time limit for receiving the received message by the application.
When the received message is a response message to the response request downlink message, the same value as the response message reception deadline (FIG. 13) described in the response request downlink message is described in the response message reception deadline column.
The priority represents a priority in communication of the received message.
When the received message is a response message to the response request downlink message, the same value as the priority (FIG. 13) described in the response request downlink message is described in the priority column.
The data portion includes a set of sender IDs indicating the main body of the received message and the sender for the total number of received messages.
 メッセージ送受信装置20では、受信依頼受付部22が中継装置30からのメッセージ受信依頼を受け付ける。
 受信依頼受付部22は、受け付けたメッセージ受信依頼のデータ部に送信元IDと受信メッセージの組が1つだけ含まれる場合には、メッセージ受信依頼をそのまま優先制御処理部24へ転送する。
 受け付けたメッセージ受信依頼のデータ部に送信元IDと受信メッセージの組が複数含まれる場合には、受信依頼受付部22は、個々の送信元IDと受信メッセージの組に分割する。
 そして、受信依頼受付部22は、送信元IDと受信メッセージの組ごとに、受信メッセージにメッセージ受信依頼のヘッダ部の情報と送信元IDを付加し、ヘッダ部の情報と送信元IDが付加された受信メッセージを優先制御処理部24へ転送する。
 優先制御処理部24は、受信依頼受付部22から転送された受信メッセージを上りキュー244の該当する優先度のキューの最後尾に挿入する。
In the message transmitting / receiving device 20, the reception request receiving unit 22 receives a message reception request from the relay device 30.
The reception request reception unit 22 transfers the message reception request as it is to the priority control processing unit 24 when the data portion of the received message reception request includes only one set of the transmission source ID and the reception message.
When the data portion of the received message reception request includes a plurality of sets of transmission source IDs and reception messages, the reception request reception unit 22 divides the data into combinations of individual transmission source IDs and reception messages.
The reception request receiving unit 22 adds the header information and the transmission source ID of the message reception request to the received message for each set of the transmission source ID and the reception message, and adds the header information and the transmission source ID. The received message is transferred to the priority control processing unit 24.
The priority control processing unit 24 inserts the received message transferred from the reception request receiving unit 22 at the tail of the corresponding priority queue in the upstream queue 244.
 メッセージ配信部28は、上りキュー244のうち優先度の最も高いキューの先頭から受信メッセージを取り出す。
 もし優先度の最も高いキューが空の場合には、次に優先度の高いキューの先頭から受信メッセージを取り出す。
 次に、メッセージ配信部28は、取り出した受信メッセージから送信依頼ID又はアプリケーションIDを読み出し、該当するアプリケーションに受信メッセージを配信する。
The message delivery unit 28 extracts a received message from the head of the queue having the highest priority among the upstream queues 244.
If the queue with the highest priority is empty, the received message is extracted from the head of the queue with the next highest priority.
Next, the message delivery unit 28 reads the transmission request ID or application ID from the received received message, and delivers the received message to the corresponding application.
 次に、メッセージ送受信装置20の優先制御処理部24の進捗情報管理部243と優先度調整部242の動作について説明する。 Next, operations of the progress information management unit 243 and the priority adjustment unit 242 of the priority control processing unit 24 of the message transmitting / receiving apparatus 20 will be described.
 進捗情報管理部243は、優先度調整データ記憶部29の優先度情報テーブルのデータを管理する。 The progress information management unit 243 manages data in the priority information table of the priority adjustment data storage unit 29.
 図4は、優先度情報テーブルの一例を示す。
 優先度情報テーブルのレコードは、アプリケーションからのメッセージ送信依頼単位で作られる。
 優先度情報テーブルのデータ項目には、アプリケーションID、送信依頼ID、送信依頼時刻、優先度、通信方向、送信数、受信数、前回受信数、受信速度、残受信メッセージ数、優先度調整指標、受信期限時刻が含まれる。
 アプリケーションIDの欄には、メッセージ送信依頼の送信元のアプリケーションのID、つまり、メッセージ送信依頼に記述されているアプリケーションIDが記述される。
 送信依頼IDの欄には、メッセージ送信依頼の受付時に一意に採番された送信依頼IDが記述される。
 優先度の欄には、アプリケーションが指定した優先度、つまり、メッセージ送信依頼に記述されている優先度が記述される。
 通信方向の欄には、メッセージ送信依頼に記述されるメッセージの通信方向、つまり、双方向か一方向かが記述される。
 送信数の欄には、メッセージ送信依頼で依頼された送信メッセージのうちメッセージ送信部21から下りメッセージとして送信されたメッセージ数が記述される。
 受信数の欄には、メッセージ送信依頼で依頼された送信メッセージのうち受信依頼受付部22でその応答が受信されたメッセージ数が記述される。
 前回受信数の欄には、受信数が更新される際に、更新前の受信数が記述される。
 前回受信数の値は、受信速度を計算するために用いられる。
 受信速度の欄には、単位時間あたりの受信メッセージ数が記述される。
 残受信メッセージ数の欄には、現在以降に受信すべき受信メッセージの数が記述される。
 優先度調整指標の欄には、優先度の調整を指示するための指標が記述される。
 受信期限時刻の欄には、応答要求下りメッセージの応答がアプリケーションにより受信されなければならない時刻が記述される。
 ただし、受信数、前回受信数、受信速度、受信期限時刻は、通信方向が双方向の場合のみに使用される。
FIG. 4 shows an example of the priority information table.
The record of the priority information table is created for each message transmission request from the application.
The data items of the priority information table include application ID, transmission request ID, transmission request time, priority, communication direction, transmission number, reception number, previous reception number, reception speed, remaining received message number, priority adjustment index, The reception deadline time is included.
In the column of application ID, the ID of the application that is the transmission source of the message transmission request, that is, the application ID described in the message transmission request is described.
In the transmission request ID column, a transmission request ID uniquely assigned when a message transmission request is received is described.
In the priority column, the priority specified by the application, that is, the priority described in the message transmission request is described.
The communication direction column describes the communication direction of the message described in the message transmission request, that is, bidirectional or unidirectional.
In the transmission number column, the number of messages transmitted as downlink messages from the message transmission unit 21 among the transmission messages requested by the message transmission request is described.
In the reception number column, the number of messages whose response is received by the reception request receiving unit 22 among the transmission messages requested by the message transmission request is described.
In the previous received number column, when the received number is updated, the received number before the update is described.
The value of the previous reception number is used to calculate the reception speed.
In the reception speed column, the number of received messages per unit time is described.
In the remaining number of received messages column, the number of received messages to be received after the present is described.
In the priority adjustment index column, an index for instructing priority adjustment is described.
In the reception deadline time column, the time at which the response of the response request downstream message must be received by the application is described.
However, the reception number, the previous reception number, the reception speed, and the reception deadline time are used only when the communication direction is bidirectional.
 進捗情報管理部243は、送信依頼受付部26がアプリケーションからのメッセージ送信依頼を受け付けたときに呼び出され、送信依頼受付部26が採番した送信依頼IDが記述される新たなレコードを優先度情報テーブルに作成する。
 このとき、進捗情報管理部243は、メッセージ送信依頼のヘッダ部から、アプリケーションID、応答メッセージ受信期限時刻、優先度を取り出し、それぞれ優先度情報テーブルの該当レコードのアプリケーションID、受信期限時刻、優先度の各カラムに書き込む。
 また、進捗情報管理部243は、メッセージ種別を取り出し、通信方向を識別して通信方向のデータ項目に書き込む。
 また、進捗情報管理部243は、通信方向が双方向の場合、総送信メッセージ数を取り出し、残受信メッセージ数のカラムに書き込む。
 通信方向が一方向の場合は、残受信メッセージ数のカラムには「0」(ゼロ)を書き込む。
 また、進捗情報管理部243は、送信数、受信数、前回受信数、優先度調整指標のカラムには「0」(ゼロ)を書き込む。
The progress information management unit 243 is called when the transmission request reception unit 26 receives a message transmission request from an application, and a new record in which the transmission request ID numbered by the transmission request reception unit 26 is described is given priority information. Create in the table.
At this time, the progress information management unit 243 extracts the application ID, the response message reception deadline time, and the priority from the header part of the message transmission request, and the application ID, the reception deadline time, and the priority of the corresponding record in the priority information table, respectively. Write to each column.
Also, the progress information management unit 243 takes out the message type, identifies the communication direction, and writes it in the data item of the communication direction.
Further, when the communication direction is bidirectional, the progress information management unit 243 extracts the total number of transmitted messages and writes it in the column of the number of remaining received messages.
When the communication direction is one direction, “0” (zero) is written in the column of the number of remaining received messages.
Further, the progress information management unit 243 writes “0” (zero) in the columns of the transmission number, the reception number, the previous reception number, and the priority adjustment index.
 進捗情報管理部243は、メッセージ送受信装置20のメッセージ送信部21から送信メッセージが送信される度に呼び出され、該当する送信依頼IDのレコードの送信数をインクリメントする。
 また、進捗情報管理部243は、メッセージ送受信装置20の受信依頼受付部22が受信メッセージを受け付ける度に呼び出され、該当する送信依頼IDのレコードの受信数をインクリメントし、残受信メッセージ数をデクリメントする。
The progress information management unit 243 is called each time a transmission message is transmitted from the message transmission unit 21 of the message transmission / reception device 20, and increments the number of transmissions of the record of the corresponding transmission request ID.
The progress information management unit 243 is called every time the reception request reception unit 22 of the message transmitting / receiving apparatus 20 receives a reception message, increments the reception number of the record of the corresponding transmission request ID, and decrements the number of remaining reception messages. .
 また、進捗情報管理部243は、ある一定間隔ごと、例えば1分ごとにタイマー部25からタイミング信号を受け取り、通信方向が双方向の送信依頼に対して現在の受信速度を計算し、優先度情報テーブルの受信速度のカラムを更新する。
 このとき、進捗情報管理部243は、受信速度のカラムを更新する前に、受信数のカラムのデータを前回受信数のカラムにコピーする。
 受信速度は、受信数と前回受信数との差をタイミング信号の間隔で割ることにより求める。
In addition, the progress information management unit 243 receives a timing signal from the timer unit 25 at certain intervals, for example, every minute, calculates the current reception speed in response to a transmission request with a bidirectional communication direction, and receives priority information. Update the reception speed column in the table.
At this time, the progress information management unit 243 copies the data in the reception number column to the previous reception number column before updating the reception speed column.
The reception speed is obtained by dividing the difference between the reception number and the previous reception number by the timing signal interval.
 優先度調整部242は、優先度情報テーブルのデータを使って、送信依頼ごとに優先度調整の要否を判断し、優先度調整が必要であれば優先度調整メッセージを作成し、作成した優先度調整メッセージをメッセージ送信部21に転送する。
 メッセージ送信部21は、指定された中継装置30に優先度調整メッセージを送信する。
The priority adjustment unit 242 uses the data in the priority information table to determine whether or not priority adjustment is necessary for each transmission request. If priority adjustment is necessary, the priority adjustment unit 242 creates a priority adjustment message and creates the created priority. The degree adjustment message is transferred to the message transmission unit 21.
The message transmission unit 21 transmits a priority adjustment message to the designated relay device 30.
 図14は、優先度調整部242による優先度調整動作の例を示すフローチャートである。
 優先度情報テーブルの優先度調整指標は、全ての送信依頼IDについて「0」(ゼロ)であると仮定する。
FIG. 14 is a flowchart illustrating an example of priority adjustment operation by the priority adjustment unit 242.
It is assumed that the priority adjustment index of the priority information table is “0” (zero) for all transmission request IDs.
 優先度調整部242は、タイマー部25からの定期的なタイミング信号により呼び出される。
 優先度調整部242は、まず、優先度情報テーブルの最初の送信依頼IDのレコードを読み込む(S11)。
 このとき、受信期限時刻のカラムにデータがない場合(S12でNO)は、優先度調整が不要であると判断して、優先度調整部242は、次の送信依頼IDのレコードを読み込む(S11)。
 受信期限時刻のカラムにデータがある場合(S12でYES)でも、もし、優先度調整指標がすでに「+1」となっていた場合(S13で「+1」)には、優先度調整の要否を判定済みであると判断して、優先度調整部242は、次の送信依頼IDのレコードを読み込む(S11)。
 優先度調整指標が「0」の場合(S13で「0」)には、優先度調整部242は、優先度調整要否チェック処理を実行し(S14)、優先度調整をするかどうかを判断する。
 優先度調整が必要と判断した場合(S15でYES)には、優先度調整部242は、優先度情報テーブルの当該送信依頼IDの優先度調整指標のカラムに「+1」と書き込み(S16)、図13の送信メッセージ形式で優先度調整メッセージを作成する(S17)。
The priority adjustment unit 242 is called by a periodic timing signal from the timer unit 25.
The priority adjustment unit 242 first reads the record of the first transmission request ID in the priority information table (S11).
At this time, if there is no data in the reception time limit column (NO in S12), it is determined that priority adjustment is unnecessary, and the priority adjustment unit 242 reads the record of the next transmission request ID (S11). ).
Even if there is data in the reception deadline time column (YES in S12), if the priority adjustment index has already been "+1"("+1" in S13), whether or not priority adjustment is necessary is determined. The priority adjustment unit 242 determines that the determination has been made, and reads the record of the next transmission request ID (S11).
When the priority adjustment index is “0” (“0” in S13), the priority adjustment unit 242 executes a priority adjustment necessity check process (S14), and determines whether to adjust the priority. To do.
When it is determined that priority adjustment is necessary (YES in S15), the priority adjustment unit 242 writes “+1” in the priority adjustment index column of the transmission request ID in the priority information table (S16). A priority adjustment message is created in the transmission message format of FIG. 13 (S17).
 優先度調整メッセージは中継装置30ごとに作成する。
 つまり、S11でレコードが読み込まれた送信依頼に複数のスマートメータ40宛ての複数の送信メッセージが含まれており、これら複数のスマートメータ40とのメッセージ通信が複数の中継装置30により中継される場合は、優先度調整部242は、中継装置30ごとに優先度調整メッセージを生成する。
 優先度調整メッセージのヘッダ部の送信依頼IDには、S11で優先度情報テーブルから読み込んだレコードの送信依頼IDを入れる。
 また、送信先IDには中継装置ID、メッセージ種別には優先度調整メッセージであることを示す種別コードを入れる。
 また、送信メッセージサイズには優先度調整メッセージのサイズ、優先度には「高」を入れる。
 データ部の送信メッセージには、優先度調整指標値(「+1」)を入れる。
 このようにして、優先度調整部242は、全ての中継装置30について優先度調整メッセージを作成し、作成した優先度調整メッセージをメッセージ送信部21に転送する(S18)。
 優先度調整部242は、以上の手順を優先度情報テーブルの全ての送信依頼IDについて実行する(S19)。
A priority adjustment message is created for each relay device 30.
That is, a case where a plurality of transmission messages addressed to the plurality of smart meters 40 are included in the transmission request in which the record is read in S11, and message communication with the plurality of smart meters 40 is relayed by the plurality of relay devices 30. The priority adjustment unit 242 generates a priority adjustment message for each relay device 30.
In the transmission request ID of the header part of the priority adjustment message, the transmission request ID of the record read from the priority information table in S11 is entered.
Further, a relay device ID is entered in the transmission destination ID, and a type code indicating that it is a priority adjustment message is entered in the message type.
Further, the size of the priority adjustment message is set in the transmission message size, and “high” is set in the priority.
A priority adjustment index value (“+1”) is entered in the transmission message of the data part.
In this way, the priority adjustment unit 242 creates a priority adjustment message for all the relay devices 30, and transfers the created priority adjustment message to the message transmission unit 21 (S18).
The priority adjustment unit 242 executes the above procedure for all transmission request IDs in the priority information table (S19).
 メッセージ送信部21は、優先度調整メッセージを中継装置30へ送信する。 The message transmission unit 21 transmits a priority adjustment message to the relay device 30.
 図15は、図14のS14の優先度調整要否チェック処理の一例を示すフローチャートである。
 図15では、送信数と受信数の差があらかじめ決められた一定水準値を超えた場合に、S14の判断の対象としている送信依頼のメッセージの優先度を上げる例を示している。
FIG. 15 is a flowchart showing an example of the priority adjustment necessity check process in S14 of FIG.
FIG. 15 shows an example in which the priority of the message of the transmission request that is the object of determination in S14 is increased when the difference between the number of transmissions and the number of receptions exceeds a predetermined constant level.
 図15の優先度調整要否チェック処理では、まず、優先度調整部242は、図7に示すアプリケーションテーブルから、当該アプリケーションIDの送受信数差異閾値を読み込む(S1411)。
 次に、優先度調整部242は、中継装置30への下りメッセージの送信数と中継装置30からの上りメッセージの受信数の差を計算し(S1412)、その値が送受信数差異閾値を超えていた場合(S1413でYES)に、優先度を調整するという判断をする(S1414)。
 一方、計算した値が送受信数差異閾値を超えていない場合(S1413でNO)は、優先度を調整しないという判断をする(S1415)。
 このように、図15の優先度調整要否チェック処理は、複数の下りメッセージが送信され、更に、複数の上りメッセージが応答される双方向のメッセージ通信に適用される。
 換言すると、図15の優先度調整要否チェック処理は、複合応答要求下りメッセージ送信依頼に適用される。
In the priority adjustment necessity check process of FIG. 15, first, the priority adjustment unit 242 reads the transmission / reception number difference threshold of the application ID from the application table shown in FIG. 7 (S1411).
Next, the priority adjustment unit 242 calculates the difference between the number of downlink messages transmitted to the relay device 30 and the number of uplink messages received from the relay device 30 (S1412), and the value exceeds the transmission / reception number difference threshold. If YES (YES in S1413), it is determined to adjust the priority (S1414).
On the other hand, when the calculated value does not exceed the transmission / reception number difference threshold (NO in S1413), it is determined that the priority is not adjusted (S1415).
As described above, the priority adjustment necessity check process in FIG. 15 is applied to bidirectional message communication in which a plurality of downlink messages are transmitted and a plurality of uplink messages are responded.
In other words, the priority adjustment necessity check process in FIG. 15 is applied to the composite response request downstream message transmission request.
 図16は、図14のS14の優先度調整要否チェック処理の他の一例を示すフローチャートである。
 図16では、メッセージ受信速度が受信期限時刻までに残受信メッセージ数を処理するために必要なメッセージ受信速度を下回っていた場合に、S14の判断の対象としている送信依頼のメッセージの優先度を上げる例を示している。
FIG. 16 is a flowchart showing another example of the priority adjustment necessity check process in S14 of FIG.
In FIG. 16, when the message reception speed is lower than the message reception speed necessary for processing the number of remaining received messages by the reception deadline time, the priority of the message of the transmission request that is the object of determination in S14 is increased. An example is shown.
 図16の優先度調整要否チェック処理では、まず、優先度調整部242は、受信期限時刻と現在時刻の差分と残受信メッセージ数から、受信期限時刻までに受信を完了するために必要なメッセージ受信速度を計算する(S1421)。
 次に、優先度調整部242は、計算した受信速度と、優先度情報テーブルの受信速度を比較し、計算した受信速度のほうが大きい場合(S1422でYES)に、優先度を調整するという判断をする(S1423)。
 一方、計算した受信速度が大きくない場合(S1422でNO)は、優先度を調整しないという判断をする(S1424)。
 このように、図16の優先度調整要否チェック処理では、送信依頼ごとに、上りメッセージの受信速度を計測し、計測した受信速度で上りメッセージの受信が続けられた場合に、全ての上りメッセージの受信が受信完了期限までに完了するか否かを判断する。
 そして、全ての上りメッセージの受信が受信完了期限までに完了しない送信依頼を優先度調整の対象とする。
 図16の優先度調整要否チェック処理も、図15の場合と同様に、複合応答要求下りメッセージ送信依頼に適用される。
In the priority adjustment necessity check process of FIG. 16, first, the priority adjustment unit 242 determines a message necessary for completing reception by the reception deadline time from the difference between the reception deadline time and the current time and the number of remaining received messages. The reception speed is calculated (S1421).
Next, the priority adjustment unit 242 compares the calculated reception speed with the reception speed in the priority information table, and determines that the priority is adjusted when the calculated reception speed is larger (YES in S1422). (S1423).
On the other hand, if the calculated reception speed is not large (NO in S1422), it is determined that the priority is not adjusted (S1424).
As described above, in the priority adjustment necessity check process of FIG. 16, the reception speed of the uplink message is measured for each transmission request, and when the reception of the uplink message is continued at the measured reception speed, all the uplink messages It is determined whether or not the reception is completed by the reception completion deadline.
A transmission request in which reception of all uplink messages is not completed before the reception completion deadline is set as a priority adjustment target.
The priority adjustment necessity check process of FIG. 16 is also applied to the composite response request downstream message transmission request, as in the case of FIG.
 図17は、図14のS14の優先度調整要否チェック処理の他の一例を示すフローチャートである。
 図17では、受信期限時刻までの残り時間が少なくなった場合に、S14の判断の対象としている送信依頼のメッセージの優先度を上げる例を示している。
FIG. 17 is a flowchart showing another example of the priority adjustment necessity check process in S14 of FIG.
FIG. 17 shows an example in which the priority of the message of the transmission request that is the target of the determination in S14 is increased when the remaining time until the reception deadline time decreases.
 図17の優先度調整要否チェック処理では、まず、優先度調整部242は、受信期限時刻と現在時刻の差分から受信残り時間を計算する(S1431)。
 次に、優先度調整部242は、送信依頼時刻と受信期限時刻との差分から総受信時間を計算し(S1432)、受信残り時間が送受信時刻の一定割合(例えば10%)より少ない場合(S1433でYES)に、優先度を調整するという判断をする(S1434)。
 一方、受信残り時間が送受信時刻の一定割合(例えば10%)よりも少なくない場合(S1433でNO)は、優先度を調整しないという判断をする(S1435)。
 図17の優先度調整要否チェック処理も、図15及び図16の場合と同様に、複合応答要求下りメッセージ送信依頼に適用される。
In the priority adjustment necessity check process of FIG. 17, the priority adjustment unit 242 first calculates the remaining reception time from the difference between the reception deadline time and the current time (S1431).
Next, the priority adjustment unit 242 calculates the total reception time from the difference between the transmission request time and the reception deadline time (S1432), and when the remaining reception time is less than a certain ratio (for example, 10%) of the transmission / reception time (S1433). And YES), it is determined to adjust the priority (S1434).
On the other hand, if the remaining reception time is not less than a certain ratio (for example, 10%) of the transmission / reception time (NO in S1433), it is determined that the priority is not adjusted (S1435).
The priority adjustment necessity check process of FIG. 17 is also applied to the composite response request downstream message transmission request, as in the case of FIGS. 15 and 16.
 次に、優先度調整部242が1つの送信依頼1に対して優先度調整をすると判断したときに、すでに優先度を上げるように優先度調整をしている他の送信依頼2があり、送信依頼2の受信期限時刻が送信依頼1の受信期限時刻よりも遅い時刻だった場合に、送信依頼2について優先度を下げるように優先度調整を行う場合の動作について述べる。 Next, when the priority adjustment unit 242 determines to adjust the priority for one transmission request 1, there is another transmission request 2 that has already been adjusted in priority so as to increase the priority. An operation when priority adjustment is performed to lower the priority of the transmission request 2 when the reception deadline time of the request 2 is later than the reception deadline time of the transmission request 1 will be described.
 優先度調整部242が1つの送信依頼1に対して優先度調整をすると判断した場合に、優先度引き下げ処理が実行される。
 図18は、優先度引き下げ処理のフローチャートである。
When the priority adjustment unit 242 determines to adjust the priority for one transmission request 1, a priority lowering process is executed.
FIG. 18 is a flowchart of the priority lowering process.
 優先度引き下げ処理では、まず、優先度調整部242は、優先度情報テーブルの最初の送信依頼IDのレコードを読み込む(S21)。
 このとき、受信期限時刻のカラムにデータがない場合(S22でNO)は、優先度調整部242は、優先度調整が不要であると判断して、次の送信依頼IDのレコードを読み込む。
 受信期限時刻のカラムにデータがある場合(S22でYES)で、優先度調整指標が「+1」となっていた場合(S23で「+1」)、この送信依頼が送信依頼2の候補となる。
 優先度調整部242は、送信依頼1の受信期限時刻と、送信依頼2の受信期限時刻を比較し(S24)、もし送信依頼2の受信期限時刻が送信依頼1の受信期限時刻よりも遅い時刻だった場合、送信依頼2について優先度引き下げの優先度調整が必要と判断する(S25でYES)。
 優先度引き下げ処理は、優先度調整部242が、優先度情報テーブルの送信依頼2の優先度調整指標のカラムを「0」に修正し(S26)、図13の送信メッセージ形式で優先度調整メッセージを作成する(S27)。
 このとき、ヘッダ部の送信依頼IDには、送信依頼2の送信依頼IDを入れる。
 また、送信先IDには中継装置ID、メッセージ種別には優先度調整メッセージであることを示す種別コードを入れる。
 また、送信メッセージサイズには優先度調整メッセージのサイズ、優先度には「高」を入れる。
 データ部の送信メッセージには、優先度調整指標値(「0」)を入れる。
 このようにして、優先度調整部242は、全ての中継装置30について優先度調整メッセージを作成し、作成した優先度調整メッセージをメッセージ送信部21に転送する(S28)。
 以上の手順を優先度情報テーブルの全ての送信依頼IDについて実行する(S29)。
 なお、S27で作成する優先度調整メッセージは、送信依頼2について中継装置30に送信済みの優先度調整メッセージ(データ部に「+1」が記述された優先度調整メッセージ)を無効にするコマンドであり、無効コマンドの例に相当する。
In the priority lowering process, first, the priority adjustment unit 242 reads the record of the first transmission request ID in the priority information table (S21).
At this time, if there is no data in the reception time limit column (NO in S22), the priority adjustment unit 242 determines that priority adjustment is unnecessary and reads the record of the next transmission request ID.
If there is data in the column of the reception deadline time (YES in S22) and the priority adjustment index is “+1” (“+1” in S23), this transmission request is a candidate for transmission request 2.
The priority adjustment unit 242 compares the reception deadline time of the transmission request 1 with the reception deadline time of the transmission request 2 (S24), and if the reception deadline time of the transmission request 2 is later than the reception deadline time of the transmission request 1 If so, it is determined that priority adjustment for lowering priority is necessary for transmission request 2 (YES in S25).
In the priority lowering process, the priority adjustment unit 242 corrects the priority adjustment index column of the transmission request 2 in the priority information table to “0” (S26), and the priority adjustment message in the transmission message format of FIG. Is created (S27).
At this time, the transmission request ID of the transmission request 2 is entered in the transmission request ID of the header part.
Further, a relay device ID is entered in the transmission destination ID, and a type code indicating that it is a priority adjustment message is entered in the message type.
Further, the size of the priority adjustment message is set in the transmission message size, and “high” is set in the priority.
A priority adjustment index value (“0”) is entered in the transmission message of the data part.
In this way, the priority adjustment unit 242 creates a priority adjustment message for all the relay devices 30, and transfers the created priority adjustment message to the message transmission unit 21 (S28).
The above procedure is executed for all transmission request IDs in the priority information table (S29).
The priority adjustment message created in S27 is a command for invalidating the priority adjustment message (priority adjustment message in which “+1” is described in the data portion) that has been transmitted to the relay apparatus 30 for the transmission request 2. This corresponds to an example of an invalid command.
 次に、中継装置30の構成と優先度調整の動作について説明する。 Next, the configuration of the relay device 30 and the priority adjustment operation will be described.
 図3は、中継装置30の構成例を示すシステム構成図である。 FIG. 3 is a system configuration diagram illustrating a configuration example of the relay device 30.
 図3において、下りメッセージ受信部37は、メッセージ送受信装置20からのメッセージを受信する。
 下りメッセージ受信部37は、スマートメータ40宛ての下りメッセージの他、優先度調整メッセージ(指示コマンド)も受信し、指示コマンド受信部としても機能する。
In FIG. 3, the downlink message receiving unit 37 receives a message from the message transmitting / receiving device 20.
The downlink message reception unit 37 receives a priority adjustment message (instruction command) in addition to the downlink message addressed to the smart meter 40, and also functions as an instruction command reception unit.
 優先制御処理部35は、メッセージ中継の優先度を制御する。
 優先制御処理部35は、優先度ごとの下りキュー351および上りキュー353と、優先度変更の処理を行う優先度変更部352からなる。
 優先制御処理部35の下りキュー351、上りキュー353は、優先度ごとに複数のキューで構成されているが、1つのキューで実現してもよい。
 また、下りキュー351と上りキュー353を1つのキューで実現してもよい。
 下りキュー351は、下りメッセージ記憶部の例に相当する。
 また、上りキュー353は、上りメッセージ記憶部の例に相当する。
 更に、優先度変更部352は、下りメッセージ送信部31とともに、優先下りメッセージ選択部の例に相当する。
 また、優先度変更部352は、上りメッセージ送信部38とともに、優先上りメッセージ選択部の例に相当する。
The priority control processing unit 35 controls the priority of message relay.
The priority control processing unit 35 includes a downlink queue 351 and an uplink queue 353 for each priority, and a priority change unit 352 that performs priority change processing.
The downlink queue 351 and the uplink queue 353 of the priority control processing unit 35 are configured by a plurality of queues for each priority, but may be realized by one queue.
Further, the down queue 351 and the up queue 353 may be realized by one queue.
The downlink queue 351 corresponds to an example of a downlink message storage unit.
The upstream queue 353 corresponds to an example of an upstream message storage unit.
Further, the priority changing unit 352 corresponds to an example of a priority downlink message selecting unit together with the downlink message transmitting unit 31.
The priority changing unit 352 corresponds to an example of a priority uplink message selection unit together with the uplink message transmission unit 38.
 下りメッセージ送信部31は、下りメッセージをスマートメータ40へ送信する。
 下りメッセージ送信部31は、最も優先度の高い下りキュー351に蓄積されている下りメッセージを選択し、選択した下りメッセージを優先してスマートメータ40に送信する。
 このため、下りメッセージ送信部31は、優先下りメッセージ選択部の例に相当する。
The downlink message transmission unit 31 transmits a downlink message to the smart meter 40.
The downlink message transmission unit 31 selects a downlink message stored in the downlink queue 351 with the highest priority, and transmits the selected downlink message to the smart meter 40 with priority.
For this reason, the downlink message transmission unit 31 corresponds to an example of a priority downlink message selection unit.
 上りメッセージ受信部32は、スマートメータ40からの上りメッセージを受信する。 The upstream message receiving unit 32 receives an upstream message from the smart meter 40.
 上りメッセージ送信部38は、上りメッセージをメッセージ送受信装置20へ送信する。
 上りメッセージ送信部38は、最も優先度の高い上りキュー353に蓄積されている上りメッセージを選択し、選択した上りメッセージを優先してメッセージ送受信装置20に送信する。
 このため、上りメッセージ送信部38は、優先上りメッセージ選択部の例に相当する。
The upstream message transmission unit 38 transmits the upstream message to the message transmission / reception device 20.
The upstream message transmission unit 38 selects an upstream message stored in the upstream queue 353 having the highest priority and transmits the selected upstream message to the message transmitting / receiving apparatus 20 with priority.
For this reason, the uplink message transmission unit 38 corresponds to an example of a priority uplink message selection unit.
 優先度変更データ記憶部36は、優先制御処理部35が優先度変更の判定を行うときに参照する優先度変更情報テーブル(図6)を記憶する。 The priority change data storage unit 36 stores a priority change information table (FIG. 6) to be referred to when the priority control processing unit 35 determines priority change.
 負荷情報生成部33は、中継装置30の負荷情報を生成する。
 タイマー部34は、負荷情報生成部33に負荷情報の生成のタイミング信号を与える。
 負荷情報生成部33及びタイマー部34の詳細は、実施の形態2で説明する。
The load information generation unit 33 generates load information for the relay device 30.
The timer unit 34 provides the load information generation unit 33 with a load information generation timing signal.
Details of the load information generation unit 33 and the timer unit 34 will be described in the second embodiment.
 下りメッセージ受信部37は、メッセージ送受信装置20から受信した下りメッセージを、ヘッダ部に記載された優先度にしたがって、下りキュー351の最後尾に挿入する。
 また、下りメッセージ受信部37は、優先度調整メッセージを受信した場合は、優先度調整メッセージを優先度変更部352に出力する。
The downlink message receiving unit 37 inserts the downlink message received from the message transmitting / receiving apparatus 20 at the tail of the downlink queue 351 according to the priority described in the header part.
Further, when the downlink message reception unit 37 receives the priority adjustment message, the downlink message reception unit 37 outputs the priority adjustment message to the priority change unit 352.
 下りメッセージ送信部31は、下りキュー351のうち優先度の最も高いキューの先頭から下りメッセージを取り出す。
 もし優先度の最も高いキューが空の場合には、下りメッセージ送信部31は、次に優先度の高いキューの先頭から下りメッセージを取り出す。
 次に、下りメッセージ送信部31は、下りメッセージ内の送信先IDが示すスマートメータ40に、取り出した下りメッセージを送信する。
The downlink message transmission unit 31 extracts a downlink message from the head of the queue with the highest priority among the downlink queues 351.
If the queue with the highest priority is empty, the downlink message transmission unit 31 extracts the downlink message from the head of the queue with the next highest priority.
Next, the downlink message transmission unit 31 transmits the extracted downlink message to the smart meter 40 indicated by the transmission destination ID in the downlink message.
 上りメッセージ受信部32は、スマートメータ40から受信した上りメッセージを、ヘッダ部に設定された優先度にしたがって、上りキュー353の最後尾に挿入する。 The upstream message receiving unit 32 inserts the upstream message received from the smart meter 40 at the tail of the upstream queue 353 according to the priority set in the header part.
 上りメッセージ送信部38は、上りキュー353のうち優先度の最も高いキューの先頭から上りメッセージを取り出す。
 もし優先度の最も高いキューが空の場合には、次に優先度の高いキューの先頭から上りメッセージを取り出す。
 次に、上りメッセージ送信部38は、取り出した上りメッセージをメッセージ送受信装置20に送信する。
 なお、上りメッセージ送信部38は、共通する送信依頼IDの複数の上りメッセージが同じタイミングで存在する場合は、複数の上りメッセージをまとめて図12に示すメッセージ受信依頼の形式で複数の上りメッセージを送信する。
The upstream message transmission unit 38 extracts an upstream message from the head of the queue having the highest priority among the upstream queues 353.
If the queue with the highest priority is empty, the upstream message is extracted from the head of the queue with the next highest priority.
Next, the upstream message transmission unit 38 transmits the extracted upstream message to the message transmission / reception device 20.
When a plurality of uplink messages having a common transmission request ID are present at the same timing, the uplink message transmitting unit 38 collects the plurality of uplink messages in a message reception request format shown in FIG. Send.
 下りメッセージ受信部37は、前述したように、メッセージ送受信装置20から優先度調整メッセージを受信したときに、優先度調整メッセージを優先度変更部352に出力し、優先度変更部352を呼び出す。
 優先度変更部352は、優先度調整メッセージのヘッダ部に設定された送信依頼IDが優先度変更データ記憶部36の優先度変更情報テーブル(図6)に存在しない場合、ヘッダ部の情報にしたがって新たに当該送信依頼IDのエントリを追加する。
 次に、優先度変更部352は、優先度調整メッセージのデータ部の優先度調整指標値(「+1」又は「0」)を参照し、優先度変更データ記憶部36に保存されている値と異なる場合、これを更新する。
As described above, when receiving the priority adjustment message from the message transmitting / receiving device 20, the downlink message receiving unit 37 outputs the priority adjustment message to the priority changing unit 352 and calls the priority changing unit 352.
When the transmission request ID set in the header part of the priority adjustment message does not exist in the priority change information table (FIG. 6) of the priority change data storage part 36, the priority change part 352 follows the information in the header part. A new entry for the transmission request ID is added.
Next, the priority change unit 352 refers to the priority adjustment index value (“+1” or “0”) in the data part of the priority adjustment message, and sets the value stored in the priority change data storage unit 36. If it is different, update this.
 図25及び図27は、優先度変更情報テーブルの一例を示した図である。
 優先度変更情報テーブルの各テーブル項目の意味は、メッセージ送受信装置20の優先度情報テーブル(図4)と同じである。
25 and 27 are diagrams illustrating an example of the priority change information table.
The meaning of each table item in the priority change information table is the same as that of the priority information table (FIG. 4) of the message transmitting / receiving device 20.
 図24と図26は、優先度変更部352が、優先度を変更する前後の状況を示した図である。
 図24と図26では、優先度が、高、中、低の三段階である例を示している。
FIG. 24 and FIG. 26 are diagrams showing a situation before and after the priority changing unit 352 changes the priority.
24 and 26 show an example in which the priority has three levels of high, medium, and low.
 図24は、ある時点での中継装置30の下りキュー351内の状況を示し、図25は、図24の時点での優先度変更情報テーブルの状況を示している。
 例えば、優先度=高のキュー(高)には送信依頼ID=0002の下りメッセージが入っている。
 また、キュー(中)には送信依頼ID=0003の下りメッセージ、キュー(低)には送信依頼IDが0004、0001、0004の下りメッセージがこの順番で入っている。
 また、優先度変更情報テーブルには、図25のようなデータが格納されている。
FIG. 24 shows the situation in the downstream queue 351 of the relay device 30 at a certain time, and FIG. 25 shows the situation of the priority change information table at the time of FIG.
For example, a downstream message with a transmission request ID = 0002 is contained in a queue with high priority = high (high).
The queue (middle) contains downstream messages with transmission request ID = 0003, and the queue (low) contains downstream messages with transmission request IDs 0004, 0001, and 0004 in this order.
Further, data as shown in FIG. 25 is stored in the priority change information table.
 このとき、送信依頼ID=0001であり、優先度調整指標=+1である優先度調整メッセージ(図26の符号701)を、下りメッセージ受信部37が受信した場合を考える。
 優先度変更情報テーブルの送信依頼ID=0001の優先度調整指標カラムには「0」が入っている(図25)ため、優先度調整指標が変更になっている。
 優先度調整メッセージの受信により、優先度変更情報テーブルは図27に示すように更新される。
 優先度変更部352は、優先度調整メッセージ(図26の符号701)を入力し、キュー(低)に入っている送信依頼ID=0001の下りメッセージ(図26の符号702)を取り出し、優先度調整指標=+1の指示にしたがって、この下りメッセージを優先度が一つ高いキュー(中)の最後尾に挿入する。
 同様にして、優先度変更部352は、上りキュー353に入っている送信依頼ID=0001の上りメッセージ(不図示)についても、優先度が一つ高いキュー(中)の最後尾に挿入する。
 下りメッセージ受信部37および上りメッセージ受信部32は、新たなメッセージ(例えば、図26の符号703)を受信した場合、優先度変更情報テーブルから送信依頼ID=0001のレコードの優先度調整指標を読み出し、その指示(+1)にしたがって、新たなメッセージを優先度が一つ高いキュー(中)の最後尾に挿入する。
 そして、下りメッセージ送信部31は、優先度変更部352により下りメッセージの優先度の調整が行われた後の下りキュー351から下りメッセージを取り出す。
At this time, let us consider a case where the downlink message reception unit 37 receives a priority adjustment message (reference numeral 701 in FIG. 26) with transmission request ID = 0001 and priority adjustment index = + 1.
Since “0” is entered in the priority adjustment index column of the transmission request ID = 0001 in the priority change information table (FIG. 25), the priority adjustment index is changed.
By receiving the priority adjustment message, the priority change information table is updated as shown in FIG.
The priority changing unit 352 receives the priority adjustment message (reference numeral 701 in FIG. 26), takes out the downlink message (reference numeral 702 in FIG. 26) with the transmission request ID = 0001 in the queue (low), and sets the priority. According to the instruction of the adjustment index = + 1, this downstream message is inserted at the tail of the queue (medium) with one higher priority.
Similarly, the priority changing unit 352 also inserts an upstream message (not shown) with a transmission request ID = 0001 in the upstream queue 353 at the tail of the queue (medium) with one higher priority.
When receiving a new message (for example, reference numeral 703 in FIG. 26), the downlink message receiving unit 37 and the uplink message receiving unit 32 read the priority adjustment index of the record with the transmission request ID = 0001 from the priority change information table. In accordance with the instruction (+1), a new message is inserted at the end of the queue (medium) having a higher priority.
Then, the downlink message transmitting unit 31 extracts the downlink message from the downlink queue 351 after the priority of the downlink message is adjusted by the priority changing unit 352.
 例えば、図26に示す下りキュー351では、送信依頼ID=0002の下りメッセージ(符号704)が取り出されれば、キュー(高)には下りメッセージが存在しないので、キュー(中)内の下りメッセージが取り出される。
 送信依頼ID=0001の下りメッセージ(符号702、703)は、優先度変更部352による優先度の調整が行われる前はキュー(低)に蓄積されていたため、下りメッセージ受信部37により取出されるまでは長時間を要する。
 しかし、優先度変更部352による優先度の調整の後は、送信依頼ID=0001の下りメッセージ(符号702、703)はキュー(中)に蓄積されているので短時間で取り出されることになる。
 このように、優先度変更部352は、下りキュー351に記憶されている下りメッセージの中から優先度調整メッセージに示される送信依頼IDが設定されている下りメッセージを抽出する。
 そして、優先度変更部352は、下りメッセージ送信部31が下りキュー351から下りメッセージを取り出す際に、抽出した下りメッセージに対して当該下りメッセージに設定されている優先度とは異なる優先度が用いられるような調整を行う。
 同様に、優先度変更部352は、上りキュー353に記憶されている上りメッセージの中から優先度調整メッセージに示される送信依頼IDが設定されている上りメッセージを抽出する。
 そして、優先度変更部352は、上りメッセージ送信部38が上りキュー353から上りメッセージを取り出す際に、抽出した上りメッセージに対して当該上りメッセージに設定されている優先度とは異なる優先度が用いられるような調整を行う。
 なお、本実施の形態では、優先度変更部352は、メッセージに記述されている優先度を変更せずに、メッセージを本来の優先度よりも高い優先度のキューに格納するが、メッセージの優先度自体を書き換えるようにしてもよい。
For example, in the downlink queue 351 shown in FIG. 26, if a downlink message (symbol 704) with a transmission request ID = 0002 is taken out, there is no downlink message in the queue (high). It is taken out.
Since the downlink messages (reference numerals 702 and 703) with the transmission request ID = 0001 are stored in the queue (low) before the priority is adjusted by the priority changing unit 352, they are taken out by the downlink message receiving unit 37. It takes a long time.
However, after the priority adjustment by the priority changing unit 352, the downstream messages (reference numerals 702 and 703) with the transmission request ID = 0001 are stored in the queue (medium), and thus are extracted in a short time.
As described above, the priority changing unit 352 extracts a downlink message in which the transmission request ID indicated in the priority adjustment message is set from the downlink messages stored in the downlink queue 351.
Then, when the downlink message transmission unit 31 extracts the downlink message from the downlink queue 351, the priority changing unit 352 uses a priority different from the priority set for the downlink message for the extracted downlink message. Make adjustments as required.
Similarly, the priority changing unit 352 extracts an uplink message in which the transmission request ID indicated in the priority adjustment message is set from the uplink messages stored in the uplink queue 353.
Then, when the upstream message transmitting unit 38 extracts the upstream message from the upstream queue 353, the priority changing unit 352 uses a priority different from the priority set for the upstream message for the extracted upstream message. Make adjustments as required.
In the present embodiment, the priority changing unit 352 stores the message in a queue having a higher priority than the original priority without changing the priority described in the message. The degree itself may be rewritten.
 以上のように、本実施の形態では、メッセージ送受信装置20での双方向メッセージの送受信数の差や、メッセージ受信速度、メッセージ受信残り時間が示す進捗度合いに応じて、メッセージ送受信装置20が優先度調整指標を使って中継装置30に優先度変更を指示する。
 また、中継装置30が優先度調整指標にしたがって、上り、下り双方のキュー内で保留されているメッセージの優先度を変更する。
 このため、中継装置30に過大な負荷をかけることなく、効果的にメッセージ通信の優先度を制御することができる。
As described above, according to the present embodiment, the message transmission / reception device 20 determines the priority according to the difference in the number of bidirectional messages transmitted / received in the message transmission / reception device 20, the message reception speed, and the degree of progress indicated by the remaining message reception time. The relay apparatus 30 is instructed to change the priority using the adjustment index.
Further, the relay device 30 changes the priority of the message held in both the upstream and downstream queues according to the priority adjustment index.
For this reason, the priority of message communication can be effectively controlled without imposing an excessive load on the relay device 30.
 また、メッセージ送受信装置20は、すでに優先度を上げるように優先度調整している送信依頼に対して、それよりも早い受信期限時刻が指定された送信依頼について優先度を上げるように優先度調整する場合に、優先度を引き下げるように優先度調整を行う。
 このため、きめ細かなメッセージ通信の優先度制御を行うことができる。
Further, the message transmitting / receiving apparatus 20 adjusts the priority so that the priority is increased for a transmission request for which a reception deadline time is earlier than a transmission request whose priority is already adjusted to increase the priority. If so, the priority is adjusted so as to lower the priority.
Therefore, fine priority control of message communication can be performed.
 以上、本実施の形態では、
 スマートメータ、中継装置、メッセージ送受信装置、アプリケーションサーバ装置10から構成され、
 スマートメータは電力、ガス、水道等の使用量を測定し、
 アプリケーションサーバ装置10上で動作する1つ以上のアプリケーションとスマートメータとの間で、
 センターシステムに配備されるメッセージ送受信装置と、メッセージ送受信装置とスマートメータ間に配備される中継装置を経由して、メッセージ通信を行うスマートメータ自動検針システムを説明した。
As described above, in the present embodiment,
It consists of a smart meter, a relay device, a message transmission / reception device, and an application server device 10,
A smart meter measures the usage of electricity, gas, water, etc.
Between one or more applications running on the application server device 10 and the smart meter,
The smart meter automatic meter reading system that performs message communication via the message transmission / reception device provided in the center system and the relay device provided between the message transmission / reception device and the smart meter has been described.
 また、本実施の形態では、
 アプリケーションサーバ装置10上のアプリケーションは、データ送受信装置に対して送るメッセージ送信依頼の中に受信期限時刻の情報を含め、
 データ送受信装置は、アプリケーションとスマートメータとの間のメッセージ通信の進捗情報を保持する進捗情報管理部と、メッセージ通信の進捗情報から優先度調整の要否を判定して中継装置に優先度調整の指示を行う優先度調整部を備えた優先制御処理部を具備し、
 中継装置は、メッセージ送受信装置からの優先度調整指示にしたがってメッセージ処理の優先度を変更する優先度変更部を備えた優先制御処理部を具備することを説明した。
In the present embodiment,
The application on the application server device 10 includes information on the reception deadline time in the message transmission request sent to the data transmitting / receiving device,
The data transmitting / receiving device determines the necessity of priority adjustment from the progress information management unit that holds the progress information of the message communication between the application and the smart meter, and determines the necessity of priority adjustment from the progress information of the message communication. A priority control processing unit including a priority adjustment unit for giving an instruction;
It has been described that the relay device includes a priority control processing unit including a priority changing unit that changes the priority of message processing in accordance with a priority adjustment instruction from the message transmitting / receiving device.
 また、本実施の形態では、
 中継装置が具備する優先制御処理部の優先度変更部は、
 データ送受信装置から中継装置への下り方向メッセージに対する処理の優先度を変更し、
 さらに、メッセージ送受信装置からの優先度調整指示の対象メッセージが双方向メッセージだった場合に、中継装置からデータ送受信装置への上り方向メッセージに対する処理の優先度を変更することを説明した。
In the present embodiment,
The priority changing unit of the priority control processing unit included in the relay device is:
Change the priority of processing for downstream messages from the data transmitter / receiver to the relay device,
Further, it has been described that when the target message of the priority adjustment instruction from the message transmission / reception device is a bidirectional message, the priority of processing for the upstream message from the relay device to the data transmission / reception device is changed.
 また、本実施の形態では、
 データ送受信装置が具備する優先制御処理部の進捗情報管理部は、
 メッセージ通信の進捗情報として、アプリケーションからのメッセージ送信依頼ごとの送信数、および受信数を保持し、
 データ送受信装置が具備する優先制御処理部の優先度調整部は、
 送信数と受信数の差があらかじめ決められた一定水準値を超えた場合に、当該送信依頼で送信するメッセージの優先度を上げるように、中継装置に優先度調整の指示を行うことを説明した。
In the present embodiment,
The progress information management unit of the priority control processing unit included in the data transmitting / receiving device is:
As message communication progress information, the number of transmissions for each message transmission request from the application and the number of receptions are retained.
The priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is:
Explained that when the difference between the number of transmissions and the number of receptions exceeds a predetermined level, the relay device is instructed to adjust the priority so as to increase the priority of the message sent in the transmission request. .
 また、本実施の形態では、
 データ送受信装置が具備する優先制御処理部の進捗情報管理部は、
 メッセージ通信の進捗情報として、アプリケーションからのメッセージ送信依頼ごとのメッセージ受信速度と、残受信メッセージ数を保持し、
 データ送受信装置が具備する優先制御処理部の優先度調整部は、
 メッセージ受信速度が受信期限時刻までに残受信メッセージ数を処理するために必要なメッセージ受信速度を下回っていた場合に、当該送信依頼で送信するメッセージの優先度を上げるように、中継装置に優先度調整の指示を行うことを説明した。
In the present embodiment,
The progress information management unit of the priority control processing unit included in the data transmitting / receiving device is:
As message communication progress information, the message reception speed and the number of remaining received messages for each message transmission request from the application are retained.
The priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is:
If the message reception speed is lower than the message reception speed necessary to process the number of remaining received messages by the reception deadline time, the priority is given to the relay device so as to increase the priority of the message transmitted by the transmission request. Explained to give instructions for adjustment.
 また、本実施の形態では、
 データ送受信装置が具備する優先制御処理部の進捗情報管理部は、
 メッセージ通信の進捗情報として、メッセージ送信依頼を受け付けた送信依頼受付時刻と、受信期限時刻までの残り時間を保持し、
 データ送受信装置が具備する優先制御処理部の優先度調整部は、
 受信期限時刻までの残り時間が、送信依頼受付時刻から受信期限時刻までの時間の一定割合を下回った場合に、当該送信依頼で送信するメッセージの優先度を上げるように、中継装置に優先度調整の指示を行うことを説明した。
In the present embodiment,
The progress information management unit of the priority control processing unit included in the data transmitting / receiving device is:
As the message communication progress information, the transmission request reception time at which the message transmission request is received and the remaining time until the reception deadline time are retained,
The priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is:
When the remaining time until the reception deadline time falls below a certain percentage of the time from the reception request reception time to the reception deadline time, the priority is adjusted to the relay device so as to increase the priority of the message transmitted by the transmission request. Explained that I will give instructions.
 また、本実施の形態では、
 データ送受信装置が具備する優先制御処理部は、
 すでに別のアプリケーションからのメッセージ送信依頼について、送信するメッセージの優先度を上げるよう中継装置に優先度調整指示をしているとき、
 優先度を上げるように優先度調整をしようとしているメッセージ送信依頼の受信期限時刻が、上記別のアプリケーションの受信期限時刻よりも早い時刻だった場合に、
 上記別のアプリケーションが送信するメッセージの優先度を下げるよう優先度調整指示を行うことを説明した。
In the present embodiment,
The priority control processing unit included in the data transmitting / receiving device is:
For a message transmission request from another application, when the priority adjustment instruction is given to the relay device to increase the priority of the message to be sent,
If the reception deadline time of the message transmission request that is trying to adjust the priority to increase the priority is earlier than the reception deadline time of the other application,
It has been described that the priority adjustment instruction is issued so as to lower the priority of the message transmitted by the other application.
 実施の形態2.
 実施の形態1では、メッセージ送受信装置20は、優先度調整メッセージを複数の中継装置30に送信する場合は、すべての中継装置30に同じタイミングで優先度調整メッセージを送信していた。
 本実施の形態では、優先度調整部242が、中継装置30の性能や負荷状況から、中継装置30に優先度調整メッセージを送信する順序を調整する動作を説明する。
Embodiment 2. FIG.
In the first embodiment, when transmitting and receiving a priority adjustment message to a plurality of relay apparatuses 30, the message transmitting / receiving apparatus 20 transmits the priority adjustment message to all the relay apparatuses 30 at the same timing.
In the present embodiment, an operation will be described in which the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30 based on the performance and load status of the relay device 30.
 本実施の形態に係るメッセージ送受信装置20の構成例は図2に示した通りであり、本実施の形態に係る中継装置30の構成例は図3に示した通りである。
 なお、本実施の形態では、メッセージ送受信装置20において、優先度調整部242は、下りメッセージと上りメッセージに対する処理の処理負荷を中継装置30ごとに判定する。
 そして、優先度調整部242は、処理負荷が高い中継装置30から優先度調整メッセージが送信されるように複数の中継装置30における優先度調整メッセージの送信順序を決定する。
 本実施の形態では、優先度調整部242は送信順序決定部としても機能する。
 また、メッセージ送信部21は、優先度調整部242により決定された送信順序に従って、複数の中継装置30に優先度調整メッセージを送信する。
A configuration example of the message transmission / reception device 20 according to the present embodiment is as shown in FIG. 2, and a configuration example of the relay device 30 according to the present embodiment is as shown in FIG.
In the present embodiment, in the message transmitting / receiving device 20, the priority adjustment unit 242 determines the processing load for the downstream message and the upstream message for each relay device 30.
And the priority adjustment part 242 determines the transmission order of the priority adjustment message in the some relay apparatus 30 so that a priority adjustment message may be transmitted from the relay apparatus 30 with a high processing load.
In the present embodiment, the priority adjustment unit 242 also functions as a transmission order determination unit.
Further, the message transmission unit 21 transmits a priority adjustment message to the plurality of relay devices 30 according to the transmission order determined by the priority adjustment unit 242.
 優先度調整部242が中継装置30に優先度調整メッセージを送信する順序を調整する場合の優先度情報テーブルを図8に示す。 FIG. 8 shows a priority information table in the case where the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30.
 図8の優先度調整テーブルは、図4の優先度情報テーブルに、中継装置負荷レベルのカラムが追加されたものである。
 中継装置負荷レベル以外のカラムは、図4の優先度情報テーブルと同じである。
 中継装置負荷レベルは、すでに優先度調整メッセージを送信済みの中継装置の負荷レベルを示しており、値が大きくなるほど負荷レベルが高いことを意味する。
 例えば、中継装置負荷レベルが「3」であった場合、負荷レベルが「3」より上の中継装置30に対してすでに優先度調整メッセージを送信済みであることを示す。
 「0」(ゼロ)は全ての中継装置30に対して優先度調整メッセージを送信済みであることを示す。
 優先度調整テーブルの中継装置負荷レベルの値が「3」の場合は、後述する中継装置負荷テーブル(図10)の負荷レベルが「3」の中継装置30に対して優先度調整メッセージが送信される。
 次に、優先度調整テーブルの中継装置負荷レベルの値は「2」にデクリメントされ、中継装置負荷テーブル(図10)の負荷レベルが「2」の中継装置30に対して優先度調整メッセージが送信される。
 このように、優先度調整テーブルの中継装置負荷レベルの値はデクリメントされていき、負荷レベルの高い中継装置30から順に優先度調整メッセージが送信される。
 なお、以下では、説明の簡明化のため、優先度調整テーブルの中継装置負荷レベルの値は、「1」と「0」のいずれかとする。
 このため、後述する中継装置仕様テーブル(図9)の負荷閾値は1つだけである。
 優先度調整テーブルの中継装置負荷レベルを、例えば、「0」、「1」、「2」、「3」とする場合は、中継装置仕様テーブル(図9)の負荷閾値は3段階(「0」から「1」への閾値、「1」から「2」への閾値、「2」から「3」への閾値)となる。
The priority adjustment table of FIG. 8 is obtained by adding a relay device load level column to the priority information table of FIG.
The columns other than the relay device load level are the same as those in the priority information table of FIG.
The relay device load level indicates the load level of the relay device that has already transmitted the priority adjustment message, and the larger the value, the higher the load level.
For example, when the relay device load level is “3”, it indicates that the priority adjustment message has already been transmitted to the relay device 30 having a load level higher than “3”.
“0” (zero) indicates that the priority adjustment message has been transmitted to all the relay apparatuses 30.
When the value of the relay device load level in the priority adjustment table is “3”, a priority adjustment message is transmitted to the relay device 30 whose load level is “3” in the relay device load table (FIG. 10) described later. The
Next, the value of the relay device load level in the priority adjustment table is decremented to “2”, and a priority adjustment message is transmitted to the relay device 30 whose load level is “2” in the relay device load table (FIG. 10). Is done.
In this way, the value of the relay device load level in the priority adjustment table is decremented, and priority adjustment messages are transmitted in order from the relay device 30 with the highest load level.
In the following, for simplicity of explanation, the value of the relay device load level in the priority adjustment table is either “1” or “0”.
For this reason, the relay apparatus specification table (FIG. 9) described later has only one load threshold.
When the relay device load level of the priority adjustment table is set to, for example, “0”, “1”, “2”, “3”, the load threshold value of the relay device specification table (FIG. 9) has three levels (“0 ”To“ 1 ”,“ 1 ”to“ 2 ”,“ 2 ”to“ 3 ”).
 負荷情報格納部23は、図10に示すような中継装置負荷テーブルを具備する。
 中継装置IDは、中継装置30を一意に識別するIDである。
 中継装置型式IDは、その中継装置30の型式を一意に識別するIDである。
 保留メッセージ数は、その中継装置30の上りキュー353および下りキュー351に保留されているメッセージ数であり、中継装置30の負荷状況を示す。
 保留メッセージ数は、中継装置30が定期的にメッセージ送受信装置20に負荷情報メッセージとして送信する。
 負荷レベルは中継装置30の負荷状況をレベル分けしたものである。
 負荷レベルの値が高いほど、中継装置30の負荷が高いことを示す。
 負荷レベル履歴は、負荷レベルが更新される際に、更新前の負荷レベルが記述される。
The load information storage unit 23 includes a relay device load table as shown in FIG.
The relay device ID is an ID that uniquely identifies the relay device 30.
The relay device type ID is an ID that uniquely identifies the type of the relay device 30.
The number of held messages is the number of messages held in the upstream queue 353 and downstream queue 351 of the relay device 30 and indicates the load status of the relay device 30.
The number of pending messages is periodically transmitted from the relay device 30 to the message transmitting / receiving device 20 as a load information message.
The load level is obtained by dividing the load status of the relay device 30 into levels.
It shows that the load of the relay apparatus 30 is so high that the value of a load level is high.
The load level history describes the load level before the update when the load level is updated.
 負荷情報格納部23は、図9に示すような中継装置仕様テーブルを具備する。
 中継装置仕様テーブルは、スマートメータ自動検針システムで使用されている全ての中継装置30について、その中継装置の型式ごとに仕様の情報を保持する。
 中継装置型式IDは、中継装置30の型式を一意に識別するIDである。
 中継装置型式は、中継装置30に付与されている型式番号である。
 負荷閾値は、それぞれの中継装置型式ごとに設定された、保留メッセージ数の閾値であり、ある時点での保留メッセージ数がこの閾値を超えた場合、その中継装置30の負荷が高いと判断される。
 処理スループットは、中継装置型式ごとに設定された、中継装置30のメッセージ処理能力である。
The load information storage unit 23 includes a relay device specification table as shown in FIG.
The relay device specification table holds specification information for each relay device type for all relay devices 30 used in the smart meter automatic meter reading system.
The relay device type ID is an ID that uniquely identifies the type of the relay device 30.
The relay device type is a model number assigned to the relay device 30.
The load threshold is a threshold for the number of held messages set for each relay device type. When the number of held messages at a certain point exceeds this threshold, it is determined that the load on the relay device 30 is high. .
The processing throughput is the message processing capability of the relay device 30 set for each relay device type.
 受信依頼受付部22は、中継装置30から負荷情報メッセージを受け付けると、メッセージの中の保留メッセージ数のデータを負荷情報格納部23の中継装置負荷テーブルの該当する中継装置30の保留メッセージ数のカラムに書き込む。 When receiving the load information message from the relay device 30, the reception request receiving unit 22 displays the data on the number of held messages in the message in the column of the number of held messages of the corresponding relay device 30 in the relay device load table of the load information storage unit 23. Write to.
 本実施の形態では、一例として、優先度調整部242は、中継装置30に優先度調整メッセージを送信するときに、中継装置30の負荷状況に応じて2段階で送信するものとする。
 このため、優先度情報テーブルの中継装置負荷レベルは、前述したように、「1」および「0」のどちらかの値をとり、優先度情報テーブルに送信依頼に対するレコードが新規に作成される場合は、「0に」初期化されている。
In the present embodiment, as an example, when the priority adjustment unit 242 transmits a priority adjustment message to the relay device 30, the priority adjustment unit 242 transmits the priority adjustment message in two stages according to the load status of the relay device 30.
For this reason, as described above, the relay device load level of the priority information table takes one of the values “1” and “0”, and a record for the transmission request is newly created in the priority information table. Is initialized to “0”.
 図19は、優先度調整部242が中継装置30に優先度調整メッセージを送信する順序を調整する場合のフローチャートである。 FIG. 19 is a flowchart when the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30.
 優先度調整部242は、タイマー部25からの定期的なタイミング信号により呼び出される。
 優先度調整部242は、まず、中継装置負荷テーブル(図10)の負荷レベルおよび、負荷レベル履歴の情報を、保留メッセージ数の値にしたがって更新する(S31)。
 次に、優先度調整部242は、優先度情報テーブルの最初の送信依頼IDのレコードを読み込む(S32)。
 このとき、受信期限時刻のカラムにデータがない場合(S33でNO)は、優先度調整部242は、優先度調整が不要であると判断して、次の送信依頼IDのレコードを読み込む(S32)。
 受信期限時刻のカラムにデータがあり(S33でYES)、かつ優先度調整指標が「0」だった場合(S34で「0」)は、優先度調整部242は、優先度調整要否チェック処理を実行し(S35)、優先度調整をするかどうかを判断する。
 優先度調整要否チェック処理(S35)は、図14のS14と同様であり、例えば、図15~図17に示す処理が行われる。
 優先度調整が必要と判断した場合(S36でYES)には、優先度調整部242は、優先度情報テーブルの当該送信依頼IDの優先度調整指標のカラムに「+1」と書き込み、さらに中継装置負荷レベルのカラムに「1」と書き込む(S37)。
 次に、優先度調整部242は、優先度調整メッセージ処理(1)を実行して、負荷の高い中継装置30に対して優先度調整メッセージを送信する(S38)。
 一方、受信期限時刻のカラムにデータがあり(S33でYES)、かつ優先度調整指標がすでに「+1」となっていた場合(S34で「+1」)は、優先度調整部242は、中継装置負荷レベルを参照する(S40)。
 中継装置負荷レベルが「0」の場合(S40で「0」)は、すでに全ての中継装置30に優先度調整メッセージを送付したものと判断して、優先度調整部242は、優先度情報テーブルの次の送信依頼IDのレコードを読み込む。
 中継装置負荷レベルが「1」の場合は、優先度調整部242は、中継装置負荷レベルを「0」に更新した上(S41)で、優先度調整メッセージ処理(2)を実行して、まだ優先度調整メッセージを送信していない中継装置30に対して優先度調整メッセージを送信する(S42)。
 優先度調整部242は、以上の処理を、優先度情報テーブルの全ての送信依頼IDに対して実行する(S39)。
The priority adjustment unit 242 is called by a periodic timing signal from the timer unit 25.
The priority adjustment unit 242 first updates the load level and load level history information in the relay device load table (FIG. 10) according to the value of the number of pending messages (S31).
Next, the priority adjustment unit 242 reads the record of the first transmission request ID in the priority information table (S32).
At this time, if there is no data in the column of the reception deadline time (NO in S33), the priority adjustment unit 242 determines that priority adjustment is unnecessary and reads the record of the next transmission request ID (S32). ).
If there is data in the reception deadline time column (YES in S33) and the priority adjustment index is “0” (“0” in S34), the priority adjustment unit 242 performs priority adjustment necessity check processing. Is executed (S35), and it is determined whether or not to adjust the priority.
The priority adjustment necessity check process (S35) is the same as S14 in FIG. 14, and for example, the processes shown in FIGS. 15 to 17 are performed.
If it is determined that priority adjustment is necessary (YES in S36), the priority adjustment unit 242 writes “+1” in the priority adjustment index column of the transmission request ID in the priority information table, and further relay device “1” is written in the load level column (S37).
Next, the priority adjustment unit 242 executes priority adjustment message processing (1) and transmits a priority adjustment message to the relay device 30 with a high load (S38).
On the other hand, if there is data in the column of the reception deadline time (YES in S33) and the priority adjustment index is already “+1” (“+1” in S34), the priority adjustment unit 242 The load level is referred to (S40).
When the relay device load level is “0” (“0” in S40), it is determined that the priority adjustment message has already been sent to all the relay devices 30, and the priority adjustment unit 242 determines the priority information table. The record of the next transmission request ID is read.
When the relay device load level is “1”, the priority adjustment unit 242 updates the relay device load level to “0” (S41), executes the priority adjustment message processing (2), and A priority adjustment message is transmitted to the relay device 30 that has not transmitted the priority adjustment message (S42).
The priority adjustment unit 242 executes the above processing for all transmission request IDs in the priority information table (S39).
 図20は、中継装置30の保留メッセージ数に応じて、優先度調整部242が中継装置30に優先度調整メッセージを送信する順序を調整する場合の、中継装置負荷テーブル更新処理(S31)のフローチャートである。 FIG. 20 is a flowchart of the relay device load table update process (S31) in the case where the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30 according to the number of pending messages of the relay device 30. It is.
 優先度調整部242は、まず、中継装置負荷テーブル(図10)の最初の中継装置IDのレコードを読み込む(S3111)。
 次に、優先度調整部242は、読み込んだレコードの中の負荷レベルカラムの値を中継装置負荷テーブルの該当レコードの負荷レベル履歴カラムに書き込む(S3112)。
 次に、優先度調整部242は、読み込んだレコードの中の中継装置型式IDカラムの値をキーにして、中継装置仕様テーブル(図9)から該当する中継装置型式の負荷閾値を読み出す(S3113)。
 次に、優先度調整部242は、中継装置負荷テーブルの保留メッセージ数と負荷閾値を比較し(S3114)、保留メッセージ数が負荷閾値よりも大きい場合(S3115でYES)は、中継装置負荷テーブルの該当レコードの負荷レベルカラムに「1」を書き込む(S3116)。
 一方、保留メッセージ数が負荷閾値よりも大きくない場合(S3115でNO)は、中継装置負荷テーブルの該当レコードの負荷レベルカラムに「0」(ゼロ)を書き込む(S3117)。
 優先度調整部242は、以上の処理を、中継装置負荷テーブルの全ての中継装置IDに対して実行する(S3118)。
The priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S3111).
Next, the priority adjustment unit 242 writes the value of the load level column in the read record into the load level history column of the corresponding record in the relay device load table (S3112).
Next, the priority adjustment unit 242 reads the load threshold of the corresponding relay device type from the relay device specification table (FIG. 9) using the value of the relay device type ID column in the read record as a key (S3113). .
Next, the priority adjustment unit 242 compares the number of held messages in the relay device load table with the load threshold (S3114). If the number of held messages is larger than the load threshold (YES in S3115), the priority adjusting unit 242 “1” is written in the load level column of the corresponding record (S3116).
On the other hand, if the number of pending messages is not greater than the load threshold (NO in S3115), “0” (zero) is written in the load level column of the corresponding record in the relay device load table (S3117).
The priority adjustment unit 242 executes the above processing for all the relay device IDs in the relay device load table (S3118).
 図21は、中継装置30の保留メッセージ数から算出したメッセージ処理所要時間に応じて、優先度調整部242が中継装置30に優先度調整メッセージを送信する順序を調整する場合の、中継装置負荷テーブル更新処理(S31)のフローチャートである。 FIG. 21 illustrates a relay device load table when the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30 according to the message processing time calculated from the number of pending messages of the relay device 30. It is a flowchart of an update process (S31).
 優先度調整部242は、まず、中継装置負荷テーブル(図10)の最初の中継装置IDのレコードを読み込む(S3121)。
 次に、優先度調整部242は、読み込んだレコードの中の負荷レベルカラムの値を中継装置負荷テーブルの該当レコードの負荷レベル履歴カラムに書き込む(S3122)。
 次に、優先度調整部242は、読み込んだレコードの中の中継装置型式IDカラムの値をキーにして、中継装置仕様テーブルから該当する中継装置型式の処理スループットを読み出す(S3123)。
 次に、優先度調整部242は、中継装置負荷テーブルの保留メッセージ数と処理スループットからメッセージ処理所要時間を計算する(S3124)。
 計算したメッセージ処理所要時間が、例えば、あらかじめ決められたメッセージ処理所要時間の閾値よりも大きい場合は、中継装置負荷テーブルの該当レコードの負荷レベルカラムに「1」、小さい場合は「0」(ゼロ)を書き込む(S3125、S3126)。
 ただし、あらかじめ決められたメッセージ処理所要時間を使わずに、全ての中継装置30のうちメッセージ処理所要時間の大きい半分の中継装置30に対して負荷レベルカラムを「1」に、残りの中継装置30の負荷レベルカラムを「0」にするなど、そのほかの判定方法を使用してもかまわない。
The priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S3121).
Next, the priority adjustment unit 242 writes the value of the load level column in the read record in the load level history column of the corresponding record in the relay device load table (S3122).
Next, the priority adjustment unit 242 reads the processing throughput of the corresponding relay device type from the relay device specification table using the value of the relay device type ID column in the read record as a key (S3123).
Next, the priority adjustment unit 242 calculates the message processing time from the number of pending messages in the relay device load table and the processing throughput (S3124).
For example, when the calculated message processing time is larger than a predetermined message processing time threshold, “1” is entered in the load level column of the corresponding record in the relay device load table, and “0” (zero) is smaller. ) Is written (S3125, S3126).
However, without using the predetermined message processing time, the load level column is set to “1” for the relay devices 30 having a long message processing time among all the relay devices 30, and the remaining relay devices 30 are used. Other determination methods such as setting the load level column of “0” may be used.
 図22は、図19の優先度調整メッセージ処理(1)(S38)のフローチャートである。 FIG. 22 is a flowchart of the priority adjustment message process (1) (S38) of FIG.
 優先度調整メッセージ処理(1)は、優先度調整部242が中継装置30に優先度調整メッセージを送信する順序を調整する処理の中で実行される。
 優先度調整メッセージ処理(1)では、優先度調整部242は、まず中継装置負荷テーブル(図10)の最初の中継装置IDのレコードを読み込む(S3801)。
 負荷レベルカラムが「0」の場合(S3802で「0」)は、優先度調整部242は、該当中継装置30に優先度調整メッセージを送信しないと判断し、次のレコードを読み込む。
 負荷レベルカラムが「1」の場合(S3802で「1」)は、優先度調整部242は、優先度調整メッセージを作成し(S3803)、作成した優先度調整メッセージをメッセージ送信部21へ転送する(S3804)。
 優先度調整部242は、以上の処理を中継装置負荷テーブルの全ての中継装置IDに対して実行する(S3805)。
The priority adjustment message process (1) is executed in the process of adjusting the order in which the priority adjustment unit 242 transmits the priority adjustment messages to the relay device 30.
In the priority adjustment message process (1), the priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S3801).
When the load level column is “0” (“0” in S3802), the priority adjustment unit 242 determines that the priority adjustment message is not transmitted to the corresponding relay device 30, and reads the next record.
When the load level column is “1” (“1” in S3802), the priority adjustment unit 242 creates a priority adjustment message (S3803), and transfers the created priority adjustment message to the message transmission unit 21. (S3804).
The priority adjustment unit 242 executes the above process for all the relay device IDs in the relay device load table (S3805).
 図23は、優先度調整メッセージ処理(2)のフローチャートである。
 優先度調整メッセージ処理(2)は、優先度調整部242が中継装置30に優先度調整メッセージを送信する順序を調整する処理の中で実行される。
 優先度調整メッセージ処理(2)では、優先度調整部242は、まず中継装置負荷テーブル(図10)の最初の中継装置IDのレコードを読み込む(S4201)。
 負荷レベル履歴カラムが「1」の場合(S4202で「1」)は、優先度調整部242は、すでに該当中継装置30に優先度調整メッセージを送信済みであると判断し、次のレコードを読み込む。
 負荷レベル履歴カラムが「0」の場合(S4202で「0」)は、優先度調整メッセージを作成し(S4203)、作成した優先度調整メッセージをメッセージ送信部21へ転送する(S4204)。
 優先度調整部242は、以上の処理を中継装置負荷テーブルの全ての中継装置IDに対して実行する(S4205)。
FIG. 23 is a flowchart of the priority adjustment message process (2).
The priority adjustment message process (2) is executed in the process of adjusting the order in which the priority adjustment unit 242 transmits the priority adjustment messages to the relay device 30.
In the priority adjustment message process (2), the priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S4201).
When the load level history column is “1” (“1” in S4202), the priority adjustment unit 242 determines that the priority adjustment message has already been transmitted to the relay device 30, and reads the next record. .
When the load level history column is “0” (“0” in S4202), a priority adjustment message is created (S4203), and the created priority adjustment message is transferred to the message transmission unit 21 (S4204).
The priority adjustment unit 242 executes the above processing for all relay device IDs in the relay device load table (S4205).
 次に、中継装置30の負荷情報生成部33の動作を説明する。 Next, the operation of the load information generation unit 33 of the relay device 30 will be described.
 タイマー部34は設定されたインターバル時間ごとに、負荷情報の生成処理を実行する時刻が来たことを知らせるタイミング信号を負荷情報生成部33に送る。
 タイミング信号を受け取った負荷情報生成部33は、その時点での上りキュー353と下りキュー351に保留されているメッセージ数を積算し、積算結果のデータを含む負荷情報メッセージを作成して、作成した負荷情報メッセージを上りメッセージ受信部32へ転送する。
 上りメッセージ受信部32は、負荷情報生成部33から受け取った負荷情報メッセージを、ヘッダ部に設定された優先度にしたがって、上りキューの最後尾に挿入する。
The timer unit 34 sends to the load information generation unit 33 a timing signal notifying that the time for executing the load information generation processing has come at every set interval time.
The load information generation unit 33 that has received the timing signal adds up the number of messages held in the upstream queue 353 and the downstream queue 351 at that time, and creates and creates a load information message including data of the integration result The load information message is transferred to the upstream message receiving unit 32.
The uplink message receiving unit 32 inserts the load information message received from the load information generating unit 33 at the tail of the uplink queue according to the priority set in the header part.
 このように、本実施の形態では、メッセージ送受信装置20は、中継装置30の仕様や負荷状況に応じて、優先度調整の順序を調整するように動作するので、異なる性能の中継装置30が混在するスマートメータ自動検針システムにおいても効果的にメッセージ通信の優先度を制御することができる。 As described above, in the present embodiment, the message transmitting / receiving apparatus 20 operates to adjust the priority adjustment order according to the specifications and load status of the relay apparatus 30, and therefore, the relay apparatuses 30 having different performances are mixed. Even in the smart meter automatic meter reading system, the priority of message communication can be controlled effectively.
 以上、本実施の形態では、
 中継装置は、更に、
 メッセージ送受信装置に対して中継装置でのメッセージ処理の負荷情報として保留メッセージ数を定期的に送信する負荷情報送信部を具備し、
 メッセージ送受信装置は、更に、
 複数の中継装置から送信された負荷情報を格納する中継装置負荷情報格納部を具備することを説明した。
As described above, in the present embodiment,
The relay device further
A load information transmitting unit that periodically transmits the number of pending messages as message processing load information in the relay device to the message transmitting and receiving device;
The message transmission / reception device further includes:
It has been described that a relay device load information storage unit that stores load information transmitted from a plurality of relay devices is provided.
 また、本実施の形態では、
 メッセージ送受信装置の優先制御処理部の優先度調整部は、
 中継装置に優先度調整の指示を行うときに、保留メッセージ数が多い中継装置から順に指示を行うことを説明した。
In the present embodiment,
The priority adjustment unit of the priority control processing unit of the message transmitting / receiving device is:
It has been described that when a priority adjustment instruction is given to a relay device, the instructions are given in order from the relay device with the largest number of pending messages.
 本実施の形態では、
 メッセージ送受信装置の中継装置負荷情報格納部は、更に、
 中継装置の型式ごとにメッセージ処理能力の情報として処理スループットを保持し、
 メッセージ送受信装置の優先制御処理部の優先度調整部は、
 それぞれの中継装置の保留メッセージ数と処理スループットから保留メッセージを全て処理するためのメッセージ処理所要時間を求め、
 中継装置に優先度調整の指示を行うときに、メッセージ処理所要時間の大きい中継装置から順に指示を行うことを説明した。
In this embodiment,
The relay device load information storage unit of the message transmitting / receiving device further includes:
Holds processing throughput as message processing capability information for each relay device type,
The priority adjustment unit of the priority control processing unit of the message transmitting / receiving device is:
Obtain the message processing time required to process all pending messages from the pending message count and processing throughput of each relay device,
It has been described that when a priority adjustment instruction is given to a relay device, the instructions are given in order from the relay device having the longest message processing time.
 最後に、実施の形態1及び2に示したメッセージ送受信装置20及び中継装置30のハードウェア構成例を図28を参照して説明する。
 メッセージ送受信装置20及び中継装置30はコンピュータであり、メッセージ送受信装置20及び中継装置30の各要素をプログラムで実現することができる。
 メッセージ送受信装置20及び中継装置30のハードウェア構成としては、バスに、演算装置901、外部記憶装置902、主記憶装置903、通信装置904、入出力装置905が接続されている。
Finally, a hardware configuration example of the message transmission / reception device 20 and the relay device 30 described in the first and second embodiments will be described with reference to FIG.
The message transmission / reception device 20 and the relay device 30 are computers, and each element of the message transmission / reception device 20 and the relay device 30 can be realized by a program.
As a hardware configuration of the message transmission / reception device 20 and the relay device 30, an arithmetic device 901, an external storage device 902, a main storage device 903, a communication device 904, and an input / output device 905 are connected to the bus.
 演算装置901は、プログラムを実行するCPU(Central Processing Unit)である。
 外部記憶装置902は、例えばROM(Read Only Memory)やフラッシュメモリ、ハードディスク装置である。
 主記憶装置903は、RAM(Random Access Memory)である。
 「負荷情報格納部23」、「優先度調整データ記憶部29」、「優先度変更データ記憶部36」、「下りキュー241」、「上りキュー244」、「下りキュー351」、「上りキュー353」は、例えば、外部記憶装置902又は主記憶装置903で実現される。
 通信装置904は、「~送信部」「~受信部」、「~受付部」及び「~配信部」の物理層に対応する。
 入出力装置905は、例えばマウス、キーボード、ディスプレイ装置等である。
The arithmetic device 901 is a CPU (Central Processing Unit) that executes a program.
The external storage device 902 is, for example, a ROM (Read Only Memory), a flash memory, or a hard disk device.
The main storage device 903 is a RAM (Random Access Memory).
"Load information storage unit 23", "Priority adjustment data storage unit 29", "Priority change data storage unit 36", "Downstream queue 241", "Upstream queue 244", "Downstream queue 351", "Upstream queue 353 "Is realized by the external storage device 902 or the main storage device 903, for example.
The communication device 904 corresponds to the physical layers of “˜transmitting unit”, “˜receiving unit”, “˜accepting unit”, and “˜distributing unit”.
The input / output device 905 is, for example, a mouse, a keyboard, a display device, or the like.
 プログラムは、通常は外部記憶装置902に記憶されており、主記憶装置903にロードされた状態で、順次演算装置901に読み込まれ、実行される。
 プログラムは、図1に示す「~部(但し、「負荷情報格納部23」、「優先度調整データ記憶部29」、「優先度変更データ記憶部36」を除く、以下同様)」として説明している機能を実現するプログラムである。
 更に、外部記憶装置902にはオペレーティングシステム(OS)も記憶されており、OSの少なくとも一部が主記憶装置903にロードされ、演算装置901はOSを実行しながら、図1に示す「~部」の機能を実現するプログラムを実行する。
 また、実施の形態1及び2の説明において、「~の判断」、「~の判定」、「~の抽出」、「~の選択」、「~の設定」、「~の指定」、「~の更新」、「~の作成」、「~の生成」、「~の決定」、「~の入力」、「~の出力」。「~の受信」、「~の送信」等として説明している処理の結果を示す情報やデータや信号値や変数値が主記憶装置903にファイルとして記憶されている。
 また、暗号鍵・復号鍵や乱数値やパラメータが、主記憶装置903にファイルとして記憶されてもよい。
The program is normally stored in the external storage device 902, and is loaded into the main storage device 903 and sequentially read into the arithmetic device 901 and executed.
The program will be described as “˜part (except for“ load information storage unit 23 ”,“ priority adjustment data storage unit 29 ”,“ priority change data storage unit 36 ”, and so on)) shown in FIG. It is a program that realizes the function.
Further, an operating system (OS) is also stored in the external storage device 902. At least a part of the OS is loaded into the main storage device 903, and the arithmetic device 901 executes “OS” shown in FIG. ”Is executed.
In the description of the first and second embodiments, “determining”, “determining”, “extracting”, “selecting”, “setting of”, “specifying”, “ Update "," Create "," Generate "," Determine "," Input "," Output ". Information, data, signal values, and variable values indicating the results of the processes described as “reception of”, “transmission of”, and the like are stored in the main storage device 903 as files.
Further, the encryption key / decryption key, random number value, and parameter may be stored in the main storage device 903 as a file.
 なお、図28の構成は、あくまでもメッセージ送受信装置20及び中継装置30のハードウェア構成の一例を示すものであり、メッセージ送受信装置20及び中継装置30のハードウェア構成は図28に記載の構成に限らず、他の構成であってもよい。
 また、実施の形態1及び2に示したアプリケーションサーバ装置10も、図28のハードウェア構成をしていてもよいし、他のハードウェア構成であってもよい。
The configuration in FIG. 28 is merely an example of the hardware configuration of the message transmission / reception device 20 and the relay device 30, and the hardware configuration of the message transmission / reception device 20 and the relay device 30 is limited to the configuration described in FIG. Alternatively, other configurations may be used.
Also, the application server apparatus 10 shown in the first and second embodiments may have the hardware configuration shown in FIG. 28 or may have another hardware configuration.
 また、実施の形態1及び2に示すメッセージ送受信装置20及び中継装置30の処理手順を、情報処理方法として捉えることができる。 Further, the processing procedure of the message transmitting / receiving device 20 and the relay device 30 shown in the first and second embodiments can be regarded as an information processing method.
 なお、実施の形態1及び2では、スマートメータ自動検針システムに用いられるメッセージ送受信装置20及び中継装置30を説明したが、本実施の形態で示した内容はスマートメータ自動検針システム以外の通信システムにも適用可能である。 In the first and second embodiments, the message transmitting / receiving device 20 and the relay device 30 used in the smart meter automatic meter reading system have been described. However, the contents shown in the present embodiment are applied to communication systems other than the smart meter automatic meter reading system. Is also applicable.
 10 アプリケーションサーバ装置、20 メッセージ送受信装置、21 メッセージ送信部、22 受信依頼受付部、23 負荷情報格納部、24 優先制御処理部、25 タイマー部、26 送信依頼受付部、27 メッセージ一時格納部、28 メッセージ配信部、29 優先度調整データ記憶部、30 中継装置、31 下りメッセージ送信部、32 上りメッセージ受信部、33 負荷情報生成部、34 タイマー部、35 優先制御処理部、36 優先度変更データ記憶部、37 下りメッセージ受信部、38 上りメッセージ送信部、40 スマートメータ、50 広域ネットワーク、60 メータネットワーク、241 下りキュー、242 優先度調整部、243 進捗情報管理部、244 上りキュー、351 下りキュー、352 優先度変更部、353 上りキュー。 10 application server device, 20 message transmission / reception device, 21 message transmission unit, 22 reception request reception unit, 23 load information storage unit, 24 priority control processing unit, 25 timer unit, 26 transmission request reception unit, 27 temporary message storage unit, 28 Message distribution unit, 29 priority adjustment data storage unit, 30 relay device, 31 downlink message transmission unit, 32 uplink message reception unit, 33 load information generation unit, 34 timer unit, 35 priority control processing unit, 36 priority change data storage Section, 37 downstream message receiving section, 38 upstream message transmission section, 40 smart meter, 50 wide area network, 60 meter network, 241 downstream queue, 242 priority adjustment section, 243 progress information management section, 244 upstream queue, 351 downstream -Menu, 352 priority changing section, 353 upstream queue.

Claims (15)

  1.  端末装置への下りメッセージを受信し、受信した下りメッセージを記憶し、記憶している下りメッセージの中から優先して端末装置に送信する優先下りメッセージを下りメッセージの優先度に基づいて選択し、選択した優先下りメッセージを優先して端末装置に送信する中継装置に、優先度が設定されている下りメッセージを送信するメッセージ送信部と、
     優先度の調整の対象となる下りメッセージを抽出するための抽出条件を指定する抽出条件指定部と、
     前記抽出条件指定部により指定された抽出条件に合致する下りメッセージを抽出し、抽出した下りメッセージに対しては当該下りメッセージに設定されている優先度とは異なる優先度を用いて優先下りメッセージを選択するよう前記中継装置に指示する指示コマンドを生成する指示コマンド生成部と、
     前記指示コマンド生成部により生成された指示コマンドを前記中継装置に送信する指示コマンド送信部とを有することを特徴とする通信装置。
    Receiving a downlink message to the terminal device, storing the received downlink message, selecting a priority downlink message to be transmitted to the terminal device preferentially from the stored downlink messages based on the priority of the downlink message; A message transmission unit that transmits a downlink message with a priority set to a relay device that prioritizes the selected priority downlink message and transmits the message to the terminal device;
    An extraction condition designating part for designating an extraction condition for extracting a downstream message whose priority is to be adjusted;
    A downlink message that matches the extraction condition specified by the extraction condition specifying unit is extracted, and a priority downlink message is assigned to the extracted downlink message using a priority different from the priority set for the downlink message. An instruction command generator for generating an instruction command for instructing the relay device to select;
    A communication device comprising: an instruction command transmission unit that transmits the instruction command generated by the instruction command generation unit to the relay device.
  2.  前記通信装置は、更に、
     所定の上位装置から、下りメッセージの送信依頼であるメッセージ送信依頼を受け付ける送信依頼受付部を有し、
     前記メッセージ送信部は、
     前記送信依頼受付部によりメッセージ送信依頼が受け付けられる度に、メッセージ送信依頼のID(Identifier)である送信依頼IDと、メッセージ送信依頼で指定されている優先度とが設定されている下りメッセージを前記中継装置に送信し、
     前記送信依頼受付部により受け付けられたメッセージ送信依頼が複数の端末装置への複数の下りメッセージの送信を依頼する複合メッセージ送信依頼である場合に、前記複合メッセージ送信依頼の送信依頼IDと前記複合メッセージ送信依頼で指定されている優先度とがそれぞれに共通に設定されている複数の下りメッセージを前記中継装置に送信し、
     前記抽出条件指定部は、
     複合メッセージ送信依頼の送信依頼IDが設定されている下りメッセージを抽出する旨の抽出条件を指定することを特徴とする請求項1に記載の通信装置。
    The communication device further includes:
    A transmission request receiving unit that receives a message transmission request that is a transmission request for a downlink message from a predetermined host device;
    The message sending unit
    Each time a message transmission request is received by the transmission request reception unit, a downstream message in which a transmission request ID that is an ID (Identifier) of the message transmission request and a priority specified in the message transmission request is set. To the relay device,
    When the message transmission request received by the transmission request reception unit is a composite message transmission request for requesting transmission of a plurality of downlink messages to a plurality of terminal devices, the transmission request ID of the composite message transmission request and the composite message A plurality of downlink messages, each of which is commonly set with the priority specified in the transmission request, is transmitted to the relay device;
    The extraction condition designating unit
    2. The communication apparatus according to claim 1, wherein an extraction condition for extracting a downlink message in which a transmission request ID of a composite message transmission request is set is designated.
  3.  前記メッセージ送信部は、
     端末装置からの応答を要求する下りメッセージを、応答要求下りメッセージとして前記中継装置に送信し、
     前記中継装置は、
     端末装置から送信された、優先度が設定されている上りメッセージを受信し、
     応答要求下りメッセージをいずれかの端末装置に送信した場合に、応答要求下りメッセージの送信先の端末装置から応答要求下りメッセージに対する応答として送信された、応答要求下りメッセージと同じ優先度が設定されている上りメッセージを受信し、
     受信した上りメッセージを記憶し、記憶している上りメッセージの中から、優先して前記通信装置に送信する優先上りメッセージを、上りメッセージの優先度に基づいて選択し、選択した優先上りメッセージを優先して前記通信装置に送信し、
     前記抽出条件指定部は、
     特定の属性を有する応答要求下りメッセージを抽出する旨の抽出条件を指定し、
     前記指示コマンド生成部は、
     前記抽出条件指定部により抽出条件として指定された前記特定の属性を有する応答要求下りメッセージを抽出し、抽出した応答要求下りメッセージに対しては当該応答要求下りメッセージに設定されている優先度とは異なる優先度を用いて優先下りメッセージを選択するよう指示し、更に、前記特定の属性を有する応答要求下りメッセージの上りメッセージを抽出し、抽出した上りメッセージに対しては当該上りメッセージに設定されている優先度とは異なる優先度を用いて優先上りメッセージを選択するよう指示する指示コマンドを生成することを特徴とする請求項1又は2に記載の通信装置。
    The message sending unit
    A downlink message requesting a response from the terminal device is transmitted to the relay device as a response request downlink message,
    The relay device is
    Receives an upstream message with priority set sent from the terminal device,
    When a response request downlink message is transmitted to one of the terminal devices, the same priority is set as the response request downlink message transmitted as a response to the response request downlink message from the terminal device to which the response request downlink message is transmitted. Receive upstream messages,
    The received uplink message is stored, and from among the stored uplink messages, a priority uplink message to be preferentially transmitted to the communication device is selected based on the priority of the uplink message, and the selected priority uplink message is prioritized. And transmit to the communication device,
    The extraction condition designating unit
    Specify extraction conditions to extract response request downstream messages with specific attributes,
    The instruction command generation unit
    The response request downlink message having the specific attribute specified as the extraction condition by the extraction condition specifying unit is extracted, and for the extracted response request downlink message, the priority set in the response request downlink message is Instructs to select a priority downlink message using different priorities, further extracts an uplink message of the response request downlink message having the specific attribute, and is set to the uplink message for the extracted uplink message 3. The communication apparatus according to claim 1, wherein an instruction command for instructing to select a priority uplink message is generated using a priority different from a priority that is present.
  4.  前記通信装置は、更に、
     所定の上位装置から、下りメッセージの送信依頼であるメッセージ送信依頼を受け付ける送信依頼受付部を有し、
     前記メッセージ送信部は、
     前記送信依頼受付部によりメッセージ送信依頼が受け付けられる度に、メッセージ送信依頼のIDである送信依頼IDと、メッセージ送信依頼で指定されている優先度とが設定されている下りメッセージを前記中継装置に送信し、
     前記送信依頼受付部により受け付けられたメッセージ送信依頼が複数の端末装置への複数の応答要求下りメッセージの送信を依頼する複合応答要求メッセージ送信依頼である場合に、前記複合応答要求メッセージ送信依頼の送信依頼IDと前記複合応答要求メッセージ送信依頼で指定されている優先度とがそれぞれに共通に設定されている複数の応答要求下りメッセージを前記中継装置に送信し、
     前記抽出条件指定部は、
     複合応答要求メッセージ送信依頼の送信依頼IDが設定されている応答要求下りメッセージを抽出する旨の抽出条件を指定することを特徴とする請求項3に記載の通信装置。
    The communication device further includes:
    A transmission request receiving unit that receives a message transmission request that is a transmission request for a downlink message from a predetermined host device;
    The message sending unit
    Each time a message transmission request is received by the transmission request receiving unit, a downlink message in which a transmission request ID that is an ID of the message transmission request and a priority specified in the message transmission request is set is sent to the relay device. Send
    Transmission of the composite response request message transmission request when the message transmission request received by the transmission request reception unit is a composite response request message transmission request for requesting transmission of a plurality of response request downlink messages to a plurality of terminal devices. A plurality of response request downlink messages in which the request ID and the priority specified in the composite response request message transmission request are respectively set in common are transmitted to the relay device;
    The extraction condition designating unit
    4. The communication apparatus according to claim 3, wherein an extraction condition for extracting a response request downstream message in which a transmission request ID of a composite response request message transmission request is set is designated.
  5.  前記通信装置は、更に、
     前記中継装置から、上りメッセージを受信するメッセージ受信部を有し、
     前記抽出条件指定部は、
     複合応答要求メッセージ送信依頼ごとに、対応する応答要求下りメッセージの前記中継装置への送信量と、対応する上りメッセージの前記中継装置からの受信量とを比較し、
     応答要求下りメッセージの送信量と上りメッセージの受信量との差が所定の閾値を超えている複合応答要求メッセージ送信依頼を選択し、
     選択した複合応答要求メッセージ送信依頼の送信依頼IDが設定されている応答要求下りメッセージを抽出する旨の抽出条件を指定することを特徴とする請求項4に記載の通信装置。
    The communication device further includes:
    A message receiving unit for receiving an upstream message from the relay device;
    The extraction condition designating unit
    For each composite response request message transmission request, compare the transmission amount of the corresponding response request downlink message to the relay device and the reception amount of the corresponding uplink message from the relay device,
    Select a composite response request message transmission request in which the difference between the transmission amount of the response request downlink message and the reception amount of the uplink message exceeds a predetermined threshold,
    5. The communication apparatus according to claim 4, wherein an extraction condition for extracting a response request downlink message in which a transmission request ID of a selected composite response request message transmission request is set is designated.
  6.  前記送信依頼受付部は、
     上りメッセージの受信完了期限が指定されている複合応答要求メッセージ送信依頼を受け付け、
     前記抽出条件指定部は、
     複合応答要求メッセージ送信依頼ごとに、対応する上りメッセージの受信速度を計測し、計測した受信速度で上りメッセージの受信が続けられた場合に、全ての上りメッセージの受信が受信完了期限までに完了するか否かを判断し、
     全ての上りメッセージの受信が受信完了期限までに完了しない複合応答要求メッセージ送信依頼を選択し、
     選択した複合応答要求メッセージ送信依頼の送信依頼IDが設定されている応答要求下りメッセージを抽出する旨の抽出条件を指定することを特徴とする請求項4又は5に記載の通信装置。
    The transmission request reception unit
    Accepts a request to send a composite response request message that specifies the deadline for receiving upstream messages,
    The extraction condition designating unit
    For each composite response request message transmission request, the reception speed of the corresponding upstream message is measured, and when the reception of the upstream message is continued at the measured reception speed, the reception of all the upstream messages is completed by the reception completion deadline. Whether or not
    Select a composite response request message transmission request that does not complete reception of all upstream messages by the reception completion deadline,
    The communication apparatus according to claim 4 or 5, wherein an extraction condition for extracting a response request downlink message in which a transmission request ID of a selected composite response request message transmission request is set is designated.
  7.  前記送信依頼受付部は、
     上りメッセージの受信完了期限が指定されている複合応答要求メッセージ送信依頼を受け付け、
     前記抽出条件指定部は、
     複合応答要求メッセージ送信依頼ごとに、受信完了期限までの残り時間を算出し、
     算出した残り時間が所定レベル以下の複合応答要求メッセージ送信依頼を選択し、
     選択した複合応答要求メッセージ送信依頼の送信依頼IDが設定されている応答要求下りメッセージを抽出する旨の抽出条件を指定することを特徴とする請求項4~6のいずれかに記載の通信装置。
    The transmission request reception unit
    Accepts a request to send a composite response request message that specifies the deadline for receiving upstream messages,
    The extraction condition designating unit
    For each composite response request message transmission request, calculate the remaining time until the reception completion deadline,
    Select the composite response request message send request whose calculated remaining time is below the specified level,
    7. The communication apparatus according to claim 4, wherein an extraction condition for extracting a response request downstream message in which a transmission request ID of the selected composite response request message transmission request is set is designated.
  8.  前記通信装置は、
     それぞれが、端末装置への下りメッセージを受信し、受信した下りメッセージを記憶し、記憶している下りメッセージの中から優先して端末装置に送信する優先下りメッセージを下りメッセージの優先度に基づいて選択し、選択した優先下りメッセージを優先して端末装置に送信する複数の中継装置と接続されており、
     前記メッセージ送信部は、
     前記複数の中継装置に、下りメッセージを送信し、
     前記指示コマンド送信部は、
     前記指示コマンド生成部により生成された指示コマンドを前記複数の中継装置に送信することを特徴とする請求項1~7のいずれかに記載の通信装置。
    The communication device
    Each receives a downlink message to the terminal device, stores the received downlink message, and sends a priority downlink message to the terminal device preferentially from the stored downlink messages based on the priority of the downlink message Selected and connected to a plurality of relay devices that transmit the selected priority downlink message with priority to the terminal device,
    The message sending unit
    A downlink message is transmitted to the plurality of relay devices;
    The instruction command transmission unit
    8. The communication apparatus according to claim 1, wherein the instruction command generated by the instruction command generation unit is transmitted to the plurality of relay apparatuses.
  9.  前記通信装置は、
     それぞれが、下りメッセージを端末装置に送信するとともに、端末装置から送信された上りメッセージを受信する複数の中継装置と接続されており、
     前記通信装置は、更に、
     下りメッセージと上りメッセージに対する処理の処理負荷を中継装置ごとに判定し、
     処理負荷が高い中継装置から指示コマンドが送信されるように前記複数の中継装置における指示コマンドの送信順序を決定する送信順序決定部を有し、
     前記指示コマンド送信部は、
     前記送信順序決定部により決定された送信順序に従って、前記複数の中継装置に指示コマンドを送信することを特徴とする請求項8に記載の通信装置。
    The communication device
    Each is connected to a plurality of relay devices that transmit a downlink message to the terminal device and receive an uplink message transmitted from the terminal device,
    The communication device further includes:
    Determine the processing load for downstream messages and upstream messages for each relay device,
    A transmission order determining unit that determines the transmission order of the instruction commands in the plurality of relay apparatuses so that the instruction commands are transmitted from the relay apparatus having a high processing load;
    The instruction command transmission unit
    The communication apparatus according to claim 8, wherein an instruction command is transmitted to the plurality of relay apparatuses according to a transmission order determined by the transmission order determination unit.
  10.  前記通信装置は、
     それぞれが、端末装置から受信した上りメッセージを記憶した後に前記通信装置に上りメッセージを送信する複数の中継装置と接続されており、
     前記送信順序決定部は、
     中継装置ごとに、中継装置で記憶されている下りメッセージと上りメッセージの量を監視し、
     記憶されている下りメッセージと上りメッセージの量が多いほど、処理負荷が高いと判定することを特徴とする請求項9に記載の通信装置。
    The communication device
    Each is connected to a plurality of relay devices that transmit an uplink message to the communication device after storing the uplink message received from the terminal device,
    The transmission order determination unit
    For each relay device, monitor the amount of downstream messages and upstream messages stored in the relay device,
    10. The communication apparatus according to claim 9, wherein it is determined that the processing load is higher as the amount of stored downstream messages and upstream messages is larger.
  11.  前記通信装置は、
     それぞれが、端末装置から受信した上りメッセージを記憶した後に前記通信装置に上りメッセージを送信する複数の中継装置と接続されており、
     前記送信順序決定部は、
     中継装置ごとに、中継装置で記憶されている下りメッセージと上りメッセージの量と、中継装置の処理スループットとを用いて、中継装置で記憶されている下りメッセージと上りメッセージの送信が完了するまでの所要時間を算出し、
     算出した所要時間が長いほど、処理負荷が高いと判定することを特徴とする請求項9又は10に記載の通信装置。
    The communication device
    Each is connected to a plurality of relay devices that transmit an uplink message to the communication device after storing the uplink message received from the terminal device,
    The transmission order determination unit
    For each relay device, using the amount of downlink message and uplink message stored in the relay device and the processing throughput of the relay device, the transmission of the downlink message and uplink message stored in the relay device is completed. Calculate the time required,
    The communication apparatus according to claim 9 or 10, wherein the longer the calculated required time is, the higher the processing load is determined.
  12.  前記指示コマンド生成部は、
     いずれかの送信依頼IDを対象とする指示コマンドが前記指示コマンド送信部により前記中継装置に送信された後に、別の送信依頼IDを対象とする指示コマンドを生成する場合に、
     前記中継装置に送信済みの指示コマンドを無効にする無効コマンドを生成し、生成した無効コマンドを前記指示コマンド送信部から前記中継装置に送信させ、前記別の送信依頼IDを対象とする新たな指示コマンドを生成し、生成した新たな指示コマンドを前記指示コマンド送信部から前記中継装置に送信させることを特徴とする請求項2に記載の通信装置。
    The instruction command generation unit
    When an instruction command targeting any one of the transmission request IDs is generated by the instruction command transmitting unit after being transmitted to the relay device by the instruction command transmitting unit,
    Generate an invalid command that invalidates the instruction command that has been transmitted to the relay device, cause the generated invalid command to be transmitted from the instruction command transmission unit to the relay device, and generate a new instruction for the other transmission request ID The communication apparatus according to claim 2, wherein a command is generated, and the generated new instruction command is transmitted from the instruction command transmission unit to the relay apparatus.
  13.  複数の端末装置と通信装置とに接続されている中継装置であって、
     送信依頼IDと優先度とが設定されている前記複数の端末装置への下りメッセージを、前記通信装置から受信する下りメッセージ受信部と、
     前記下りメッセージ受信部により受信された下りメッセージを記憶する下りメッセージ記憶部と、
     前記下りメッセージ記憶部に記憶されている下りメッセージの中から、優先して端末装置に送信する優先下りメッセージを、下りメッセージの優先度に基づいて選択する優先下りメッセージ選択部と、
     前記優先下りメッセージ選択部により選択された優先下りメッセージを優先して、前記下りメッセージ記憶部に記憶されている下りメッセージを、送信先の端末装置に送信する下りメッセージ送信部と、
     優先度の調整の対象となる送信依頼IDが示される指示コマンドを前記通信装置から受信する指示コマンド受信部とを有し、
     前記優先下りメッセージ選択部は、
     前記指示コマンド受信部により指示コマンドが受信された場合に、前記下りメッセージ記憶部に記憶されている下りメッセージの中から指示コマンドに示される送信依頼IDが設定されている下りメッセージを抽出し、抽出した下りメッセージに対して当該下りメッセージに設定されている優先度とは異なる優先度を用いて優先下りメッセージを選択することを特徴とする中継装置。
    A relay device connected to a plurality of terminal devices and communication devices,
    A downlink message receiving unit that receives, from the communication device, downlink messages to the plurality of terminal devices in which transmission request IDs and priorities are set;
    A downlink message storage unit for storing a downlink message received by the downlink message reception unit;
    A priority downlink message selection unit that selects a priority downlink message to be transmitted to the terminal device preferentially from the downlink messages stored in the downlink message storage unit based on the priority of the downlink message;
    A downlink message transmission unit that prioritizes the priority downlink message selected by the priority downlink message selection unit and transmits the downlink message stored in the downlink message storage unit to a destination terminal device;
    An instruction command receiving unit that receives from the communication device an instruction command indicating a transmission request ID that is a target of priority adjustment;
    The priority downlink message selection unit
    When an instruction command is received by the instruction command receiving unit, a downlink message in which a transmission request ID indicated in the instruction command is set is extracted from the downlink messages stored in the downlink message storage unit and extracted. A relay device, wherein a priority downlink message is selected for a downlink message using a priority different from a priority set for the downlink message.
  14.  前記下りメッセージ受信部は、
     送信依頼IDと優先度とが設定されている、端末装置からの応答を要求する応答要求下りメッセージを、前記通信装置から受信する場合があり、
     前記下りメッセージ送信部は、
     前記下りメッセージ受信部により応答要求下りメッセージが受信された場合に、応答要求下りメッセージを、送信先の端末装置に送信し、
     前記中継装置は、更に、
     端末装置から送信された、優先度が設定されている上りメッセージを受信し、
     前記下りメッセージ送信部から応答要求下りメッセージが送信された場合に、応答要求下りメッセージの送信先の端末装置から応答要求下りメッセージに対する応答として送信された、応答要求下りメッセージと同じ送信依頼IDと優先度とが設定されている上りメッセージを受信する上りメッセージ受信部と、
     前記上りメッセージ受信部により受信された上りメッセージを記憶する上りメッセージ記憶部と、
     前記上りメッセージ記憶部に記憶されている上りメッセージの中から、優先して前記通信装置に送信する優先上りメッセージを、上りメッセージの優先度に基づいて選択する優先上りメッセージ選択部と、
     前記優先上りメッセージ選択部により選択された優先上りメッセージを優先して、前記上りメッセージ記憶部に記憶されている上りメッセージを、前記通信装置に送信する上りメッセージ送信部とを有し、
     前記指示コマンド受信部は、
     応答要求下りメッセージに用いられる送信依頼IDが示される指示コマンドを、前記通信装置から受信し、
     前記優先上りメッセージ選択部は、
     前記指示コマンド受信部により指示コマンドが受信された場合に、前記上りメッセージ記憶部に記憶されている上りメッセージの中から指示コマンドに示される送信依頼IDが設定されている上りメッセージ抽出し、抽出した上りメッセージに対して当該上りメッセージに設定されている優先度とは異なる優先度を用いて優先上りメッセージを選択することを特徴とする請求項13に記載の中継装置。
    The downlink message receiver is
    A response request downlink message for requesting a response from a terminal device in which a transmission request ID and priority are set may be received from the communication device,
    The downlink message transmitter is
    When a response request downlink message is received by the downlink message receiving unit, a response request downlink message is transmitted to the terminal device of the transmission destination,
    The relay device further includes:
    Receives an upstream message with priority set sent from the terminal device,
    When a response request downlink message is transmitted from the downlink message transmission unit, the same transmission request ID and priority as the response request downlink message transmitted as a response to the response request downlink message from the terminal device to which the response request downlink message is transmitted An upstream message receiver for receiving an upstream message for which the degree is set;
    An upstream message storage for storing upstream messages received by the upstream message receiver;
    A priority uplink message selection unit that selects a priority uplink message to be preferentially transmitted to the communication device from uplink messages stored in the uplink message storage unit based on the priority of the uplink message;
    An uplink message transmission unit that prioritizes the priority uplink message selected by the priority uplink message selection unit and transmits the uplink message stored in the uplink message storage unit to the communication device;
    The instruction command receiving unit
    An instruction command indicating a transmission request ID used in a response request downlink message is received from the communication device,
    The priority uplink message selection unit includes:
    When the instruction command is received by the instruction command receiving unit, the uplink message in which the transmission request ID indicated by the instruction command is set is extracted from the uplink messages stored in the uplink message storage unit and extracted. The relay apparatus according to claim 13, wherein a priority uplink message is selected for an uplink message using a priority different from a priority set for the uplink message.
  15.  前記優先下りメッセージ選択部は、
     前記指示コマンド受信部により指示コマンドが受信された後に前記下りメッセージ受信部により受信され、前記下りメッセージ記憶部に記憶された下りメッセージの中から、前記指示コマンドに示される送信依頼IDが設定されている下りメッセージを抽出し、抽出した下りメッセージに対して当該下りメッセージに設定されている優先度とは異なる優先度を用いて優先下りメッセージを選択し、
     前記優先上りメッセージ選択部は、
     前記指示コマンド受信部により指示コマンドが受信された後に前記上りメッセージ受信部により受信され、前記上りメッセージ記憶部に記憶された上りメッセージの中から、前記指示コマンドに示される送信依頼IDが設定されている上りメッセージを抽出し、抽出した上りメッセージに対して当該上りメッセージに設定されている優先度とは異なる優先度を用いて優先上りメッセージを選択することを特徴とする請求項14に記載の中継装置。
    The priority downlink message selection unit
    After the instruction command is received by the instruction command receiving unit, the transmission request ID indicated by the instruction command is set from the downlink messages received by the downlink message receiving unit and stored in the downlink message storage unit. A downlink message is selected, a priority downlink message is selected using a priority different from the priority set for the downlink message for the extracted downlink message,
    The priority uplink message selection unit includes:
    After the instruction command is received by the instruction command receiver, the transmission request ID indicated by the instruction command is set from the uplink messages received by the uplink message receiver and stored in the uplink message storage. 15. The relay according to claim 14, wherein an uplink message is extracted, and a priority uplink message is selected using a priority different from the priority set for the uplink message for the extracted uplink message. apparatus.
PCT/JP2012/068770 2012-07-25 2012-07-25 Communication device and relay device WO2014016916A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201280074857.7A CN104487954A (en) 2012-07-25 2012-07-25 Communication device and relay device
JP2012557328A JP5436701B1 (en) 2012-07-25 2012-07-25 Communication device and relay device
PCT/JP2012/068770 WO2014016916A1 (en) 2012-07-25 2012-07-25 Communication device and relay device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/068770 WO2014016916A1 (en) 2012-07-25 2012-07-25 Communication device and relay device

Publications (1)

Publication Number Publication Date
WO2014016916A1 true WO2014016916A1 (en) 2014-01-30

Family

ID=49996752

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/068770 WO2014016916A1 (en) 2012-07-25 2012-07-25 Communication device and relay device

Country Status (3)

Country Link
JP (1) JP5436701B1 (en)
CN (1) CN104487954A (en)
WO (1) WO2014016916A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019145909A (en) * 2018-02-16 2019-08-29 日本電気株式会社 Data processing device, data processing method, and program
CN111782395A (en) * 2020-06-30 2020-10-16 北京思特奇信息技术股份有限公司 Message processing shunt control method and system
JP2021193788A (en) * 2020-10-26 2021-12-23 東京瓦斯株式会社 Remote control device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162874B (en) * 2015-04-10 2021-10-26 中兴通讯股份有限公司 Downlink information receiving method, device and user equipment
JP2017147662A (en) * 2016-02-18 2017-08-24 株式会社オートネットワーク技術研究所 Repeating device
CN112292839A (en) * 2018-06-15 2021-01-29 日本电信电话株式会社 Network management system, management device, relay device, method, and program
JP7338586B2 (en) * 2020-08-07 2023-09-05 トヨタ自動車株式会社 In-vehicle network system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002111890A (en) * 2000-10-02 2002-04-12 Osaka Gas Co Ltd Communication substitute device and system thereof
JP2003283556A (en) * 2002-03-26 2003-10-03 Hitachi Ltd Data communication repeater and system
JP2009267496A (en) * 2008-04-22 2009-11-12 Nakayo Telecommun Inc Light termination device and data relay method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4831218B2 (en) * 2009-08-06 2011-12-07 コニカミノルタビジネステクノロジーズ株式会社 Image processing apparatus, control method therefor, and control program
JP2011223694A (en) * 2010-04-06 2011-11-04 Sumitomo Wiring Syst Ltd Electrical connection box

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002111890A (en) * 2000-10-02 2002-04-12 Osaka Gas Co Ltd Communication substitute device and system thereof
JP2003283556A (en) * 2002-03-26 2003-10-03 Hitachi Ltd Data communication repeater and system
JP2009267496A (en) * 2008-04-22 2009-11-12 Nakayo Telecommun Inc Light termination device and data relay method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019145909A (en) * 2018-02-16 2019-08-29 日本電気株式会社 Data processing device, data processing method, and program
CN111782395A (en) * 2020-06-30 2020-10-16 北京思特奇信息技术股份有限公司 Message processing shunt control method and system
CN111782395B (en) * 2020-06-30 2024-01-05 北京思特奇信息技术股份有限公司 Shunting control method and system for message processing
JP2021193788A (en) * 2020-10-26 2021-12-23 東京瓦斯株式会社 Remote control device

Also Published As

Publication number Publication date
CN104487954A (en) 2015-04-01
JPWO2014016916A1 (en) 2016-07-07
JP5436701B1 (en) 2014-03-05

Similar Documents

Publication Publication Date Title
JP5436701B1 (en) Communication device and relay device
US9154382B2 (en) Information processing system
CN109936473B (en) Deep learning prediction-based distributed computing system and operation method thereof
CN101577681B (en) Flow control method, device and system
CN102859961B (en) There is the distributed video transcoding system of adaptive file process
KR20160040516A (en) Power balancing to increase workload density and improve energy efficiency
CN110247856B (en) Server resource release method and device
CN104243405A (en) Request processing method, device and system
WO2014139448A1 (en) Systems and methods for quality of experience aware joint scheduling of buffered video on demand and best effort flows
CN112165691A (en) Content delivery network scheduling method, device, server and medium
CN102934403A (en) Controlling data transmission over a network
CN102326369B (en) Queue scheduling method and apparatus
CN103428883A (en) Dispatching method and equipment of physical downlink control channel resources
CN102970250A (en) Method and apparatus for bandwidth allocation in distributed router system and network device
KR20170106896A (en) Method and apparatus for controlling data transmission
JP2005510957A (en) Hierarchical credit queuing for traffic shaping
US10397797B2 (en) Devices, systems, and methods for resource allocation of shared spectrum
CN111770026B (en) Network flow control method and device
JPWO2013080419A1 (en) Traffic management apparatus, system, method, and traffic management program
WO2018123030A1 (en) Priority control method and data processing system
CN109792411B (en) Apparatus and method for managing end-to-end connections
KR101600743B1 (en) Apparatus and method for processing data
CN112714081A (en) Data processing method and device
CN114629906B (en) Reliable cloud container cluster resource scheduling method and device based on deep reinforcement learning
JP5997659B2 (en) Distributed processing system and distributed processing method

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2012557328

Country of ref document: JP

Kind code of ref document: A

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

Ref document number: 12881673

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: IDP00201405719

Country of ref document: ID

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12881673

Country of ref document: EP

Kind code of ref document: A1