Communications equipment

By adjusting the data sending request under the connectionless protocol according to the receivable size of the receiving buffer, the problem of receiving buffer overflow in connectionless protocol communication is solved, communication efficiency is improved and data loss is avoided.

CN114303354BActive Publication Date: 2024-09-06DAIKIN INDUSTRIES LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080060168.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-08-29
Filing Date
2020-08-31
Publication Date
2024-09-06
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

In communications using connectionless protocols, reception buffer overflow causes communication efficiency to decrease, and it is difficult for existing technologies to effectively suppress overflow, resulting in data loss and decrease in communication efficiency.

Method used

The communication device determines the data sending request based on its own receivable size, and adjusts the interval and items of the data sending request based on the free size of the receiving buffer and the size of unreceived data to ensure that the data does not exceed the receivable size range of the receiving buffer. Receive to avoid overflow.

Benefits of technology

It effectively suppresses the overflow of the receive buffer and the send buffer, improves the communication efficiency between the communication device and the sending terminal, avoids data loss, and optimizes the data processing burden in the case of multiple drives.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114303354B_ABST
    Figure CN114303354B_ABST
Patent Text Reader

Abstract

If overflow occurs, the efficiency of communication will be reduced, so the generation of overflow is suppressed to improve the efficiency of communication in the communication system. A communication device (20) is a communication device (20) that receives data sent from a sending terminal (10) using a connectionless protocol. The communication device (20) determines a data transmission request for receiving data from the sending terminal (10) based on its own receivable size.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a communication device for receiving data using a connectionless protocol. Background Art

[0002] In communication using a connectionless protocol, a receive buffer overflow may occur, which may cause a decrease in communication efficiency. Therefore, as disclosed in Patent Document 1 (Japanese Patent Application Laid-Open No. 2001-268114), there is a device for detecting a receive buffer overflow. Summary of the invention

[0003] Problems to be solved by the invention

[0004] If overflow occurs, the communication efficiency will be deteriorated, so the occurrence of overflow is suppressed to improve the communication efficiency.

[0005] Means for solving problems

[0006] The communication device of the first aspect is a communication device that receives data transmitted from a transmission terminal using a connectionless protocol. The communication device determines a data transmission request for receiving data from the transmission terminal based on the receivable size of the communication device.

[0007] This suppresses the occurrence of overflow, and helps to efficiently carry out communication between the communication device and the transmitting terminal.

[0008] The communication device of the second viewpoint is the communication device of the first viewpoint, and the connectionless protocol is the UDP protocol.

[0009] The communication device of the third viewpoint is the communication device of the first viewpoint or the second viewpoint, and the determination of the data transmission request includes the determination of the data items and / or the determination of the interval of the data transmission request to the sending terminal. When the receivable size is below the threshold, the communication device reduces the data items and / or extends the interval of the data transmission request to the sending terminal.

[0010] This prevents the reception buffer from overflowing.

[0011] A communication device according to a fourth aspect is any of the communication devices according to the first to third aspects, and calculates the receivable size based on the current free size of the reception buffer and the current unreceived data size.

[0012] The communication device of the fifth aspect is any of the communication devices of the first aspect or the second aspect, wherein the communication device holds a plurality of drivers that at least execute a process of receiving data, and determines a data transmission request based on the number of idle drivers that do not execute a process of receiving data among the plurality of drivers.

[0013] This helps to efficiently perform communication between the communication device and the transmitting terminal based on the number of free drivers.

[0014] The communication device of the sixth aspect is the communication device of the fifth aspect, and when the number of idle drivers is 0, the communication device determines the data transmission request in a manner of not receiving data. In addition, the communication device reconfirms the number of idle drivers after a predetermined time has passed. Thus, the occurrence of driver overflow is suppressed, which helps to efficiently perform communication between the communication device and the transmitting terminal.

[0015] A communication device according to a seventh aspect is the communication device according to the fifth aspect or the sixth aspect, and the communication device further sets an upper limit on the number of drivers that execute the data transmission request.

[0016] This suppresses the occurrence of driver overflow.

[0017] A communication device according to an eighth aspect is the communication device according to any one of the first to seventh aspects, wherein the data transmission request is determined based on the priority of the data item and / or the interval of the data transmission request to the transmission terminal.

[0018] The communication device of the ninth aspect is any of the communication devices of the first to eighth aspects, and includes a function of transmitting received data to another device via a network. In addition, the communication device determines a data transmission request to a transmitting terminal based on the free size of a transmission buffer. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic configuration of a communication system according to the first embodiment is shown.

[0020] Figure 2 The configuration of the communication device according to the first embodiment is shown.

[0021] Figure 3 The following describes the operation of the communication process according to the first embodiment.

[0022] Figure 4 The configuration of a communication device according to the second embodiment is shown.

[0023] Figure 5 The following describes the operation of the communication process according to the second embodiment. DETAILED DESCRIPTION

[0024] Next, a communication system 100 according to an embodiment of the present disclosure will be described. The following embodiments are specific examples and do not limit the technical scope, and can be appropriately modified within the scope of the gist.

[0025] In the past, a connectionless protocol such as the UDP protocol was used in a network where a plurality of sending terminals were connected to one communication device. Specifically, in a network using a connectionless protocol, first, a communication device sends a sending request to a plurality of sending terminals connected to the network. Then, each sending terminal that receives the data sending request autonomously sends data to the communication device of the request source. In addition, the sending method of the communication device sending the sending request to the plurality of sending terminals is one-to-one communication, or one-to-many communication, in which the data sending request is sent to all sending terminals connected to the network, or a special one-to-many communication, in which the data sending request is sent only to selected sending terminals.

[0026] In a network using such a connectionless protocol, for example, if one communication device communicates with multiple transmission terminals through one-to-one communication, a large amount of data may be received from the multiple transmission terminals at the same time, causing a receiving buffer that temporarily stores the received data to overflow. In the case where such a communication device is a communication device using the store-and-forward method that has been the mainstream in recent years, when the communication device receives data that exceeds the size that the receiving buffer can receive, the data is discarded and completely lost. The invention of the present disclosure shown below provides a communication device that prevents such data loss and, in addition, suppresses overflow of a receiving buffer, etc., in order to enable the communication device to efficiently communicate with multiple transmission terminals.

[0027] <First Embodiment>

[0028] (1) Overall structure

[0029] Figure 1 The communication system 100 of the first embodiment shown has one communication device 20 and multiple (here, four) sending terminals 10. In addition, for the sake of convenience, it is assumed that the multiple sending terminals 10 are substantially the same. The communication device 20 and the multiple sending terminals 10 are connected via a network. In addition, in this embodiment, the communication device 20 and each sending terminal 10 are connected via a wired network, but it is not limited to this. The communication between the communication device 20 and each sending terminal 10 is performed using a connectionless protocol. The connectionless protocol is, for example, the UDP protocol.

[0030] (2) Detailed structure

[0031] (2-1) Transmitting terminal 10

[0032] The sending terminal 10 is, for example, an air conditioner or the like. The air conditioner as the sending terminal 10 collects various data such as operation data related to itself, environmental data around itself, and input data input by a user or the like. The sending terminal 10 sends the collected various data to the communication device 20 based on a data transmission request from the communication device 20.

[0033] Furthermore, the transmitting terminal 10 includes a CPU, a memory, various interfaces, various sensors, and the like, which are not shown.

[0034] (2-2) Communication device 20

[0035] Figure 2 : shows a schematic structure of the communication device 20. The communication device 20 includes: a network IF unit 21, which provides an interface with the network; a receiving buffer 22, which temporarily stores data received from each sending terminal 10; a sending buffer 23, which temporarily stores data sent to each sending terminal 10; a storage unit 24, which records programs related to the sending and receiving of data; and a processing unit 25, which is used to realize the functions of the programs stored in the storage unit 24.

[0036] Here, the receiving buffer 22 and the sending buffer 23 may be application buffers of an application included in the communication device 20 .

[0037] The storage unit 24 includes a ROM, a RAM, and an external storage device (not shown). The storage unit 24 stores information necessary for realizing the functions of the program, or a database, etc. Specifically, the storage unit 24 stores information related to each data transmission request, the data size of the data received based on each data transmission request, the threshold value of the receivable size of the receiving buffer, etc. The receivable size of the receiving buffer is calculated in the buffer size calculation processing unit 26 described later. The threshold value of the receivable size is a value arbitrarily determined by the administrator of the communication system 100, etc.

[0038] The processing unit 25 includes a CPU (not shown) and performs overall control of the communication device 20. The processing unit 25 includes a buffer size calculation processing unit 26 and a request determination unit 27.

[0039] The buffer size calculation processing unit 26 monitors the receiving buffer 22 and performs a process of calculating the receivable size of the receiving buffer 22. The receivable size of the receiving buffer 22 is the size of data that the receiving buffer 22 can receive. The buffer size calculation processing unit 26 calculates the size based on, for example, the difference between the memory size of the entire receiving buffer 22 and the data size of each data currently stored in the receiving buffer 22 and the data size of each data received based on the transmitted data transmission request but not currently received. In addition, the data size of the data to be transmitted by each transmitting terminal 10 based on the data transmission request is stored in advance in the storage unit 24.

[0040] The request decision unit 27 makes a decision on the data transmission request to be sent to the sending terminal 10 based on the receivable size calculated by the buffer size calculation processing unit 26. For example, when the receivable size of the receiving buffer is below the threshold, the request decision unit 27 makes a decision to extend the transmission interval of the data transmission request to the sending terminal 10.

[0041] (3) Communication processing operations

[0042] Next, refer to Figure 3 , the communication processing of the communication device 20 shown in this embodiment is explained.

[0043] First, in step ST1, Figure 1 As shown, the communication system 100 is connected to enable communication, and the communication device 20 and each transmitting terminal 10 are activated.

[0044] In step ST2 , the buffer size calculation processing unit 26 of the communication device 20 calculates the receivable size of the reception buffer 22 .

[0045] When the receivable size of the reception buffer 22 calculated in step ST2 is larger than the threshold value stored in the storage unit 24 , the request determination unit 27 determines to transmit a data transmission request to the transmission terminal 10 in step ST3 .

[0046] On the other hand, in step ST2, when the calculated receivable size of the receiving buffer 22 is smaller than the threshold value stored in the storage unit, in step ST4, the request determination unit 27 determines to extend the transmission interval of the data transmission request to the transmission terminal 10. Thus, for example, a determination is made to transmit the data transmission request to the transmission terminal 10 after a predetermined time has passed.

[0047] In step ST5, the data transmission request determined by the request determination unit 27 is transmitted to each transmission terminal 10 via the network IF unit 21. Each transmission terminal 10 that has received the data transmission request transmits various data to the communication device 20 based on the data transmission request.

[0048] In step ST6, the communication device 20 receives various data via the network IF unit 21. The received data is stored in the reception buffer 22 as reception data.

[0049] In addition, a series of operations from step ST2 to step ST6 are executed at predetermined time intervals or based on a request from a manager of the communication system 100 or the like.

[0050] (4) Features

[0051] The communication device 20 of the first embodiment is a communication device 20 that receives data transmitted from the transmission terminal 10 using a connectionless protocol. The connectionless protocol is, for example, the UDP protocol. The communication device 20 determines a data transmission request for receiving data from the transmission terminal 10 based on its own receivable size.

[0052] The determination of the data transmission request includes the determination of the interval of the data transmission request to the transmitting terminal 10. When the receivable size is equal to or smaller than the threshold, the communication device extends the interval of the data transmission request to the transmitting terminal 10.

[0053] The communication device 20 calculates the receivable size based on the current free size of the reception buffer 22 and the current unreceived data size.

[0054] For example, the communication device 20 of the store-and-forward method temporarily stores the received data in the receiving buffer 22. However, when receiving data exceeding the receivable size of the receiving buffer 22, the data may be discarded and completely lost. Therefore, in order to efficiently communicate, it is necessary to adjust the data transmission request sent to each transmitting terminal 10 so that the data is received within the range of the receivable size.

[0055] The communication device 20 shown in the first embodiment determines the data transmission request for receiving data from the transmission terminal 10 according to the receivable size of the device 20 itself, so that the received data does not exceed the receivable size. This can suppress overflow of the reception buffer 22 and enable efficient communication.

[0056] (5) Modification

[0057] (5-1)

[0058] The communication device 20 shown in the first embodiment determines a data transmission request for receiving data from the sending terminal 10 based on its own receivable size. The data transmission request determined by the communication device 20 may include a determination of a data item. The data item is an item of information contained in the data sent by the sending terminal 10 based on the data transmission request. For example, when the receivable size is above a threshold, the communication device 20 sends a data transmission request to the sending terminal 10 requesting data related to the operating data, environmental data, and input data of the air-conditioning device as the sending terminal 10. On the other hand, when the receivable size is below the threshold, the communication device 20 sends a data transmission request to the sending terminal 10 requesting only data related to the operating data of the air-conditioning device. In other words, when the receivable size is below the threshold, the communication device 20 reduces the data items.

[0059] The storage unit 24 of the communication device 20 may store in advance data transmission requests to be transmitted to the transmitting terminal 10 when the receivable size is greater than the threshold value and when the receivable size is less than the threshold value. Alternatively, priorities may be set for each data item. The communication device 20 transmits the received data to the transmitting terminal 10 in order from the data with the highest priority in the data item within the range where the size of the received data does not exceed the receivable size.

[0060] Thus, the size of the received data is reduced so that the received data does not exceed the receivable size.

[0061] (5-2)

[0062] like Figure 1 As shown, the communication device 20 shown in the first embodiment can be connected to other devices (management device 30) other than the sending terminal 10 via a network. The communication device 20 includes a function of sending received data to the management device 30 via the network. Here, the network can be either wired or wireless. In addition, the communication between the communication device 20 and the management device 30 can be communication using a protocol other than a connectionless protocol. In this case, the communication device 20 has a program for converting the received data. The conversion of the received data can be performed in Figure 2 This is performed in the processing unit 25 shown.

[0063] The transmission data to be transmitted to the management device 30 is temporarily stored in the transmission buffer 23. The transmission data is substantially the same as the data received from the transmission terminal 10, but is referred to as the transmission data for convenience. The transmission data may be data processed by the processing unit 25 on the data received from the transmission terminal 10.

[0064] The buffer size calculation processing unit 26 of the communication device 20 can calculate the free size of the transmission buffer 23. The free size of the transmission buffer 23 can be calculated by the difference between the memory size of the entire transmission buffer 23 and the data size of the transmission data currently stored in the transmission buffer 23. The memory size of the entire transmission buffer 23 and the data size of the transmission data transmitted to each transmission terminal 10 can be stored in the storage unit 24. The communication device 20 can also determine the data transmission request for the transmission terminal 10 based on the free size of the transmission buffer 23 in addition to the receivable size of the reception buffer 22.

[0065] This can suppress overflow of the transmission buffer 23 of the communication device 20 and enable efficient communication.

[0066] <Second Embodiment>

[0067] (1) Overall structure

[0068] The communication system 200 of the second embodiment has substantially the same components as the communication system 100 of the first embodiment. Figure 4 As shown, components of the communication system 200 are denoted by 200-series reference numerals.

[0069] Figure 4The communication system 200 of the second embodiment shown has one communication device 220, a plurality of (here, four) sending terminals 210, and a management device 230. The communication device 220 and the plurality of sending terminals 210 are connected via a network, respectively. In addition, in the second embodiment, the communication device 220 and each sending terminal 210 are connected via a wired network, but are not limited thereto. The communication between the communication device 220 and each sending terminal 210 is performed using a connectionless protocol. The connectionless protocol is, for example, the UDP protocol. The sending terminal 210 and the management device 230 of the second embodiment are substantially the same structure as the sending terminal 10 and the management device 30 of the first embodiment, and therefore description thereof is omitted.

[0070] (2) Communication equipment 220

[0071] Figure 4 : shows a schematic structure of the communication device 220. The communication device 220 includes: a network IF unit 221, which provides an interface with the network; a receiving buffer 222, which temporarily stores data received from each sending terminal 210; a sending buffer 223, which temporarily stores data sent to each sending terminal 210; a storage unit 224, which records data received from each sending terminal 210 and programs related to the sending and receiving of data; and a processing unit 225, which is used to realize the functions of the programs stored in the storage unit 224.

[0072] The storage unit 224 includes a ROM, a RAM, and an external storage device (not shown), and similarly to the storage unit of the first embodiment, stores information or a database required to realize the functions of the program. In addition, the storage unit 224 also stores information such as the upper limit value of the number of drivers that execute data transmission requests among the multiple drivers included in the processing unit 225.

[0073] The processing unit 225 includes a CPU (not shown) and performs overall control of the communication device 220. The processing unit 225 includes a plurality of drivers 228, a free driver calculation processing unit 229, and a second request determination unit 227b in addition to a buffer size calculation processing unit 226 and a first request determination unit 227a (the request determination unit 27 in the first embodiment).

[0074] The driver 228 at least executes the data transmission request determined by the first request determination unit 227a and / or the second request determination unit 227b, and performs a process of receiving data transmitted from each transmission terminal 210 to the communication device 220 based on the data transmission request. Here, the driver 228 that performs the process of receiving data is referred to as an executing driver, and the driver that does not perform the process of receiving data is referred to as an idle driver. The number of drivers 228 (executing drivers) that execute the data transmission request stored in the storage unit 224 among the multiple drivers exceeds the upper limit value. The number of drivers 228 cannot perform processing at the same time.

[0075] The idle drive calculation processing unit 229 monitors the driver 228 and calculates the number of idle drives at a predetermined timing. If the calculated number of idle drives is 0, the idle drive calculation processing unit 229 calculates the number of idle drives again after a predetermined time has passed.

[0076] The second request decision unit 227b makes a decision on the data transmission request to be sent to the transmission terminal 210 based on the number of idle drivers calculated by the driver calculation processing unit 229. For example, when the number of idle drivers is smaller than the upper limit of the number of executing drivers stored in the storage unit 224, the second request decision unit 227b decides to make one or more idle drivers execute the data transmission request. On the other hand, when the number of idle drivers is 0 (none), the request decision unit 227 decides not to send the data transmission request in order not to receive data.

[0077] (3) Communication processing operations

[0078] Next, refer to Figure 5 , the communication processing of the communication device 220 shown in the second embodiment will be described. In addition, the communication device 220 shown in the second embodiment can perform the communication processing of the communication device 20 shown in the first embodiment simultaneously with this communication processing.

[0079] First, in step ST21 , the transmitting terminal 210 and the communication device 220 are activated in a state where they are connected to each other so as to be able to communicate.

[0080] In step ST22 , the free drive calculation processing section 229 of the communication device 220 calculates the number of free drives.

[0081] When the number of idle drivers calculated in step ST22 is smaller than the upper limit of the number of drivers in execution stored in the storage unit 224 (0 < the number of idle drivers < the upper limit of the number of drivers in execution), in step ST23, the second request determination unit 227b determines to make one or more idle drivers execute the data transmission request. The data transmission request determined at this time is determined based on the interval of the data transmission request of the transmitting terminal, similarly to the priority of the data item and / or the data transmission request in the communication system 100 of the first embodiment.

[0082] On the other hand, in step ST22, when the number of free drives calculated is 0 (0=the number of free drives), in step ST24, the second request decision unit 227b decides not to send a data transmission request in order not to receive data. In addition, at this time, the free drive calculation processing unit 229 calculates the number of free drives again after a predetermined time has passed, similarly to steps ST22 and ST23, and the second request decision unit 227b makes a decision to make the free drives execute the data transmission request.

[0083] In step ST5, the data transmission request determined in the second request determination unit 227b is transmitted to each transmission terminal 210 via the network IF unit 221. Each transmission terminal 210 that has received the data transmission request transmits various data to the communication device 220 based on the data transmission request.

[0084] In step ST26, the communication device 220 receives various data via the network IF unit 221. The received data is stored in the reception buffer 222 as reception data.

[0085] The received data can be transmitted to, for example, the management device (other equipment) 230. At this time, the communication device 220 determines a data transmission request to the transmission terminal 210 based on the free space size of the transmission buffer 223.

[0086] (4) Features

[0087] (4-1)

[0088] The communication device 220 of the second embodiment maintains a plurality of drivers 228 that at least perform a process of receiving data. A data transmission request is determined based on the number of idle drivers that do not perform a process of receiving data among the plurality of drivers 228. In addition, the communication device sets an upper limit on the number of drivers that perform a data transmission request. In the case where the number of idle drivers is 0, the communication device 220 determines the data transmission request in a manner of not receiving data. In addition, at this time, the communication device 220 confirms the number of idle drivers again after a prescribed time has passed. In addition, the data transmission request is determined based on the priority of the data item and / or the interval of the data transmission request of the transmitting terminal.

[0089] The communication device 220 of the second embodiment includes a function of transmitting received data to another device 230 via the network. The communication device 220 determines a data transmission request to the transmitting terminal 210 based on the free space size of the transmission buffer 223.

[0090] Thus, the communication device 220 can efficiently communicate with each transmission terminal 210. In addition, the communication device can increase the processing load even if the communication device 220 includes a plurality of drivers 228 by setting an upper limit on the number of drivers 228 that execute a data transmission request. (5)

[0092] Although the embodiment of the present invention has been described above, it should be understood that various changes in the form and details can be made without departing from the spirit and scope of the present disclosure described in the claims.

[0093] Description of symbols

[0094] 10, 210: sending terminal; 20, 220: communication equipment; 22, 222: receiving buffer; 23, 223: sending buffer; 30, 230: other equipment (management device); 228: driver.

[0095] Prior art literature

[0096] Patent Literature

[0097] Patent Document 1: Japanese Patent Application Publication No. 2001-268114

Claims

1. A communication device (20) for receiving data transmitted from a transmitting terminal (10) using a connectionless protocol, in, The communication device (20) determines a data transmission request for receiving the data from the transmission terminal (10) according to the receivable size of the communication device (20), and adjusts the timing of receiving the data from the transmission terminal (10) by using the data transmission request. The communication device (20) calculates the receivable size based on the free size of the current receiving buffer (22) and the current unreceived data size, wherein the current unreceived data is data to be received based on the sent data transmission request but not currently received.

2. The communication device (20) according to claim 1, in, The connectionless protocol is the UDP protocol.

3. The communication device (20) according to claim 1 or 2, in, The determination of the data transmission request includes determination of the data item and / or determination of the interval of the data transmission request to the transmission terminal (10). When the receivable size is less than a threshold value, the data items are reduced and / or the interval of the data transmission request to the transmission terminal (10) is extended.

4. The communication device (20) according to claim 1 or 2, in, The communication device (20) holds a plurality of drivers (228) that at least perform processing for receiving the data. The data transmission request is determined based on the number of idle drivers (228) among the plurality of drivers (228) that are not performing a process of receiving the data.

5. The communication device (20) according to claim 4, in, When the number of the idle drivers (228) is 0, the communication device (20) determines the data transmission request so as not to receive the data, and confirms the number of the idle drivers (228) again after a predetermined time has passed.

6. The communication device (20) according to claim 4, in, The communication device (20) also sets an upper limit on the number of the drivers (228) that execute the data transmission request.

7. The communication device (20) according to claim 1 or 2, in, The data transmission request is determined based on the priority of the data item and / or the interval of the data transmission request to the transmission terminal (10).

8. The communication device (20) according to claim 1 or 2, in, The communication device (20) includes a function of transmitting the received data to another device (30) via a network, and determines the data transmission request to the transmission terminal (10) according to the free size of the transmission buffer (23).