The present description discloses a data communication system and a data communication method.
Conventionally, a system including an image server that accumulates image data captured by multiple work machines has been proposed (for example, see Patent Literature 1). In this system, image data captured by a working machine is transmitted to an image server via wireless communication conforming to, for example, the communication standard such as the fifth generation mobile communication system (5G), thereby eliminating the need for various wired installations.
Patent Literature 1: JP-A-2021-141444
In the system described above, for example, when wireless communication is performed using Transmission Control Protocol (TCP), it is necessary to transmit data subsequently while waiting for a reception confirmation response for data transmission. For this reason, when the reception of the response is delayed due to a wireless communication delay, a waiting time until the next data is transmitted becomes long, and a timeout error or the like may occur.
A main object of the present disclosure is to appropriately perform the transmission of data via a wireless section without delay.
The present disclosure employs the following means in order to achieve the main object described above.
A data communication system according to an embodiment of the present disclosure is a data communication system for transmitting data to an accumulation database via a wireless section, including:
The data communication system of the present disclosure can appropriately perform the transmission of data via a wireless section without delay.
Next, embodiments of the present disclosure will be described with reference to the accompanying drawings.
Production line 15 is configured as a component mounting line including a mounting device that collects components supplied from, for example, a feeder or a tray and mounts the components on a board. Although two production lines 15A and 15B are illustrated in
In
Line management device 22 is a computer including CPU, ROM, RAM, a storage device, a communication module, and the like, and includes display section 23a that displays various information, and input section 23b such as a mouse and a keyboard through which an administrator performs various types of operation input. Line management device 22 can communicate with each device on production line 15, and acquires various data related to production from each device. As the various data, for example, an operation log and an error code of each device, information of mounted components, a captured image, an inspection result of a board, and the like are acquired.
Wireless auxiliary device 24 is a computer including CPU, ROM, RAM, a storage device, a communication module, and the like. Storage DB 26 is a database accessible by line management device 22 and wireless auxiliary device 24, and is constructed in wireless auxiliary device 24 in the present embodiment. As described later, the data stored in storage DB 26 is transmitted to integrated management system 30 via wireless communication, accumulated in accumulation DB 36 of integrated management system 30, and then deleted. Therefore, storage DB 26 can also be considered as a temporary storage database in which the data is stored temporarily. Wireless terminal 28 performs radio wireless communication through wireless base station 38 of integrated management system 30 according to a predetermined wireless communication standard such as local 5G or Wi-Fi (registered trademark). That is, in the present embodiment, data is transmitted from line management system 20 to integrated management system 30 via the wireless section between wireless terminal 28 and wireless base station 38.
Integrated management system 30 includes integrated management device 32, wireless auxiliary device 34, accumulation database (DB) 36, and wireless base station 38, all of which can communicate via wired LAN 39.
Integrated management device 32 is a computer including CPU, ROM, RAM, a storage device, a communication module, and the like, and includes display section 33a that displays various information, and input section 33b such as a mouse and a keyboard through which an administrator performs various types of operation input. Integrated management device 32 supports creation of a production plan of production system 10 and manages various data transmitted from each line management system 20.
Wireless auxiliary device 34 is a computer including CPU, ROM, RAM, a storage device, a communication module, and the like. Accumulation DB 36 is a database accessible by integrated management device 32 and wireless auxiliary device 34, and is constructed in integrated management device 32 in the present embodiment. Wireless base station 38 functions as an access point accessible by multiple wireless terminals 28 of line management system 20, and performs radio wireless communication according to the predetermined wireless communication standard described above.
In production system 10, accumulation target data, such as various data related to production, is accumulated and managed in accumulation DB 36 of integrated management system 30. However, the connection destination database of line management device 22 of each line management system 20 is not set in accumulation DB 36.
Next, communication processing performed in production system 10 configured as described above, particularly the transmission of data in the wireless section will be described.
Wireless auxiliary device 24 monitors storage DB 26 in which the data is stored in this manner (S100), determines whether it is the transmission timing of the data (S110), and proceeds to S170 when it is determined that it is not the transmission timing. On the other hand, wireless auxiliary device 24 determines that it is the transmission timing, for example, when new data is stored in storage DB 26, and extracts the data for one record from storage DB 26 (S120).
Next, wireless auxiliary device 24 sets an ID number, a command statement such as SQL, and a database name and table name of the transmission destination as additional information to be added to the data extracted for one record (S130). The ID number is identification information of data, and includes order information indicating a transmission order of a series of data. For example, when transmitting a series of data related to the production of one board for each record in units of packets, wireless auxiliary device 24 sets an ID number by combining the serial number of the board with order information indicating the transmission order of data (packets). Therefore, when transmitting the series of data subsequently, the serial number of the board remains unchanged, and the order information is incremented by one according to the number of transmissions, thereby setting the ID number. For example, in the series of data related to the production of one board, the number of transmissions may be several tens of thousands of times, such as 30,000 times or 40,000 times. The SQL statement is set up with instructions such as the addition or update of data to the database. The database name and table name of the transmission destination are determined in advance according to the type of data. By registering a part of the additional information by wireless auxiliary devices 24 and 34 in advance, for example, the transmission of a command statement, a database name and table name of the transmission destination, or the like may be omitted.
Subsequently, wireless auxiliary device 24 determines whether the current transmission is the final transmission of a series of data (S140). When it is determined that the transmission is not the final transmission, wireless auxiliary device 24 transmits the additional information set in S130 and the data for one record extracted from storage DB 26 to wireless auxiliary device 34 using User Datagram Protocol (UDP) (S160). As described above, in the present embodiment, the data is transmitted via the wired section, from line management device 22 to storage DB 26, using TCP, and the data is transmitted via the wireless section between wireless auxiliary device 24 (wireless terminal 28) and wireless auxiliary device 34 (wireless base station 38) using UDP. UDP is a protocol that does not require an ACK. Therefore, since wireless auxiliary device 24 can transmit the data subsequently without waiting for the reception of an ACK, it is possible to transmit the data quickly without causing a transmission delay.
On the other hand, wireless auxiliary device 34 waits to receive the data transmitted via the wireless section (S200), and when it is determined that the data is received, wireless auxiliary device 34 performs data processing based on the command statement added to the data (S210). For example, processing such as adding the received data to accumulation DB 36 is performed. In S210, wireless auxiliary device 34 transmits the data via the wired section, which reaches up to accumulation DB 36, using TCP, thereby reliably transmitting the data to accumulation DB 36 to be accumulated.
Next, wireless auxiliary device 34 determines whether the reception is the reception of the final data based on whether the additional information of the data received this time includes the final information (S220). When it is determined that the reception is not the reception of the final data, wireless auxiliary device 34 performs confirmation processing for data missing based on the ID number included in the additional information (S230), and determines whether there is missing data (S240). In S230 and S240, wireless auxiliary device 34 confirms whether the ID number (part of the order information) of the data received this time is one value larger than the ID number of the data received last time, and determines that there is no missing data when the ID number is one value larger. When the ID number is not larger by one value but is larger by two or more values, wireless auxiliary device 34 determines that there is missing data. When the data of the new board is transmitted for the first time, wireless auxiliary device 34 need only confirm whether the ID number (part of the order information) has started from a predetermined initial value and determine whether there is missing data.
When it is determined in S240 that there is no missing data, wireless auxiliary device 34 determines that the current data has been appropriately transmitted and received according to a transmission order, and returns to S200. When it is determined in S240 that there is missing data, wireless auxiliary device 34 transmits a request to wireless auxiliary device 24 to retransmit the data on the missing ID number (S250), and returns to S200.
On the other hand, wireless auxiliary device 24 determines whether the retransmission of the data is requested from wireless auxiliary device 34 (S170), and when it is determined that the retransmission is requested, wireless auxiliary device 24 returns to S120 and performs processing of S120 to S160. That is, wireless auxiliary device 24 performs processing to retransmit the data on the missing ID number. On the other hand, when it is determined that the retransmission of the data is not requested, wireless auxiliary device 24 determines whether the transmission of the data performed in S160 is the final transmission (S180). Wireless auxiliary device 24 returns to S100 when the data has not been transmitted in S160 because it is determined in S110 that it is not the transmission timing, or when the data has been transmitted in S160 but this transmission is not the final transmission.
When the transmission and reception of the data in the wireless section are repeated, and wireless auxiliary device 24 determines that the transmission is the final transmission in S140, the final information is set to the additional information (S150), and processing proceeds to S160. The final information is specific information indicating the final transmission in a series of data. As the final information, specific order information, which is not used in normal order information, may be used. For example, even when a series of data (packets) is transmitted several tens of thousands of times, specific order information such as “99999” is not normally used, and thus the information may be used.
On the other hand, when wireless auxiliary device 34 determines in S220 that the reception is the reception of the final data, wireless auxiliary device 34 performs confirmation processing to determine whether all data up to the final data have been received successfully based on the final ID number (S260), and determines whether all the data have been received successfully (S270). When wireless auxiliary device 34 determines that all data up to the final data have not been received successfully, that is, there is missing data, wireless auxiliary device 34 transmits a request to wireless auxiliary device 24 to retransmit the data on the missing ID number (S250), and returns to S200.
When it is determined in S270 that all data up to the final data have been received successfully, wireless auxiliary device 34 transmits an ACK to wireless auxiliary device 24 (S280) and returns to S200. That is, in the present embodiment, when the final data is received, an ACK indicating that the data has been received successfully up to the end is transmitted to wireless auxiliary device 24.
On the other hand, when it is determined in S180 that the final transmission has been performed, wireless auxiliary device 24 waits to receive an ACK from wireless auxiliary device 34 (S190). When it is determined that an ACK has been received, wireless auxiliary device 24 deletes the series of data transmitted up to the final data from storage DB (S195), and returns to S100. As described above, storage DB 26 temporarily stores data. Therefore, when wireless auxiliary device 24 confirms that the transmission and reception of the series of data have been completed successfully based on the reception of an ACK, wireless auxiliary device 24 deletes the series of data from storage DB 26. When an ACK cannot be received even after a predetermined time has elapsed in S190, wireless auxiliary device 24 may determine that the final data has not been transmitted successfully, and take appropriate actions such as retransmission.
Here,
As described above, the data communication system provided in production system 10 transmits data to storage DB 26 via the wired section using the first protocol (TCP) to temporarily store the data, extracts the data from storage DB 26, and transmits the data via the wireless section using the second protocol (UDP), which is less reliable than the first protocol, but offers a shorter transmission time. In other words, the data communication system transmits data to storage DB 26 via the wired section using the protocol (TCP) that requires an ACK as a reception confirmation to temporarily stores the data, extracts the data from storage DB 26, and transmits the data via the wireless section using the protocol (UDP) that does not require an ACK.
Here, a correspondence relationship between the elements of the present embodiment and the elements of the present disclosure will be clarified. Line management device 22 of the present embodiment corresponds to a storage processing section of the present disclosure, wireless auxiliary device 24 and wireless terminal 28 correspond to a transmission processing section, and wireless auxiliary device 34 and wireless base station 38 correspond to a reception processing section. Storage DB 26 corresponds to a temporary storage database, accumulation DB 36 corresponds to an accumulation database, and line management system 20 (line management device 22, wireless auxiliary device 24, storage DB 26, and wireless terminal 28), wireless auxiliary device 34, and wireless base station 38 correspond to a data communication system. In addition, in the present embodiment, an example of the wireless communication method of the present disclosure is also clarified by describing the wireless communication processing.
The data communication system provided in production system 10 described above transmits data to storage DB 26 via the wired section using TCP to temporarily store the data, extracts the data from storage DB 26, and transmits the data via the wireless section using UDP. Therefore, in the wireless section, the data can be continuously transmitted in a relatively short cycle without waiting for the reception of an ACK, and thus the data can be transmitted at substantially the same time interval as in a wired LAN. Accordingly, it is possible to appropriately perform the transmission of the data via the wireless section without delay. In the wired section where there is little risk of wireless delay, the data can be more reliably transmitted using TCP.
Further, in the data communication system, data is transmitted with an ID number including order information indicating the transmission order of a series of data attached thereto, and missing data in the received data is determined based on the order information. Therefore, even when the data transmission via the wireless section is performed using UDP that does not require an ACK, it is possible to appropriately handle missing data.
Further, in the data communication system, data is transmitted with the final information attached to the final data, and it is determined whether the series of data has been received successfully up to the end based on the final information. Therefore, it is possible to reliably transmit and receive the series of data up to the end.
In addition, line management device 22 is configured such that storage DB 26 is set as a connection destination database during initial setting, and wireless auxiliary device 34 is configured such that accumulation DB 36 is set as a connection destination database during initial setting. Therefore, there is no need to set a connection destination every time the data is transmitted, and the data can be efficiently transmitted.
It is needless to say that the present disclosure is not limited to the embodiment described above in any way, and hence can be implemented in various aspects as long as the aspects fall within the technical scope of the present disclosure.
In the embodiment described above, the connection destination databases of line management device 22 and wireless auxiliary device 34 are set during initial setting, but the present disclosure is not limited thereto. It may be set by an operator or the like at the start of production, for example.
In the embodiment, whether the series of data has been received successfully up to the end is determined based on the final information, an ACK is transmitted when it is determined that the series of data has been received successfully, and a retransmission of the data is requested when it is determined that the series of data has not been received successfully, but the present disclosure is not limited thereto. For example, even when it is determined that the data has been received successfully, an ACK need not be transmitted, that is, no response is made when the data is received successfully, and when it is determined that the data has not been received successfully, the retransmission of the data may be requested. Further, for example, a case is considered in which transmission of the next series of data is started due to some abnormality while wireless auxiliary device 34 does not receive the final data successfully. In this case, wireless auxiliary device 34 determines that the serial number part of a board in the ID number of the received data differs from the ID number of the previously received data in a state where the data with the final information attached has not been received. Therefore, wireless auxiliary device 34 need only transmit, to wireless auxiliary device 24, information indicating that the data with the final information attached, that is, the final data has not been received successfully. In this way, when it is determined that the final data has not been received successfully, information indicating the fact may be transmitted to wireless auxiliary device 24. In addition, wireless auxiliary device 24 may transmit the data without attaching the final information even if the data is final, and wireless auxiliary device 34 need not perform a reception confirmation based on the final information.
In the embodiment, missing data is determined every time the data is received, but the present disclosure is not limited thereto, and missing data may be determined every time a predetermined number of pieces of data are received, or missing data may be determined every predetermined time. Alternatively, missing data may be collectively determined when the final data is received.
In the embodiment, data is transmitted with an ID number including order information indicating the transmission order of a series of data attached thereto, and missing data in the received data is determined based on the order information, but the present disclosure is not limited thereto. That is, it may be permissible to transmit the data without attaching order information, assuming that the determination of missing data is not performed. However, in order to appropriately handle missing data while quickly transmitting the data, it is preferable to adopt the configuration as in the embodiment.
In the embodiment, when an ACK for the transmission of the final data is received, the data is deleted from storage DB 26, that is, the data is deleted from storage DB 26 immediately after the transmission of the data is completed, but the present disclosure is not limited thereto. Storage DB 26 may be any storage where the data is temporarily stored, may delete the data when a predetermined time elapses after the completion of transmission of the data, or may delete the data in order from the oldest data among the transmitted data when the data of a predetermined amount of data or more is stored in storage DB 26.
In the embodiment, storage DB 26 is constructed in wireless auxiliary device 24, but the present disclosure is not limited thereto, and storage DB 26 may be constructed in a data server separate from wireless auxiliary device 24. Further, wireless auxiliary device 24 is provided as hardware separate from line management device 22, but the present disclosure is not limited thereto, and line management device 22 may include software for achieving functions of wireless auxiliary device 24. Wireless auxiliary device 34 is provided as hardware separate from integrated management device 32, but the present disclosure is not limited thereto, and integrated management device 32 may include software for achieving functions of wireless auxiliary device 34. Accumulation DB 36 is constructed in integrated management device 32, but the present disclosure is not limited thereto, and accumulation DB 36 may be constructed in a data server different from integrated management device 32.
In the embodiment, data is transmitted via the wired section using TCP, and data is transmitted via the wireless section using UDP, but the present disclosure is not limited thereto. The data need only be transmitted via the wired section using the first protocol, and the data need only be transmitted via the wireless section using the second protocol, which is less reliable than the first protocol, but offers a shorter transmission time. Although the second protocol is less reliable than the first protocol, the second protocol can also be regarded as a protocol having a real-time property or having a high transmission speed as a result because a delay time due to waiting for the reception of an ACK does not occur. In addition, the data need only be transmitted via the wired section using a protocol that requires a reception confirmation, and the data need only be transmitted via the wireless section using a protocol that does not require a reception confirmation. The fact that the reception confirmation is not required means that the reception confirmation is not essential, and as in the present embodiment, the reception confirmation may be used in some parts (final data).
The present disclosure can be used in a technical field of transmitting data via wireless communication using radio waves.
| Filing Document | Filing Date | Country | Kind |
|---|---|---|---|
| PCT/JP2022/010263 | 3/9/2022 | WO |