TWI707568B - Communication device, communication system - Google Patents

Communication device, communication system Download PDF

Info

Publication number
TWI707568B
TWI707568B TW108120862A TW108120862A TWI707568B TW I707568 B TWI707568 B TW I707568B TW 108120862 A TW108120862 A TW 108120862A TW 108120862 A TW108120862 A TW 108120862A TW I707568 B TWI707568 B TW I707568B
Authority
TW
Taiwan
Prior art keywords
signal
terminal devices
communication device
communication
unit
Prior art date
Application number
TW108120862A
Other languages
Chinese (zh)
Other versions
TW202002593A (en
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 日商松下知識產權經營股份有限公司
Publication of TW202002593A publication Critical patent/TW202002593A/en
Application granted granted Critical
Publication of TWI707568B publication Critical patent/TWI707568B/en

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

本發明之課題在於提供一種一面使用數量有限之識別資訊一面使處理高速化之技術。 發送部132對複數個終端裝置300之各者發送第1信號。接收部134自經發送部132發送了第1信號之複數個終端裝置300之各者接收第2信號,作為對於第1信號之應答。控制部120規定2個以上之包含1台以上之終端裝置300之群組,並且將複數個終端裝置300分類為2個以上之群組之各者,且針對每個群組分配非加密之識別資訊,藉此使用識別資訊使接收部134接收第2信號。The subject of the present invention is to provide a technology for speeding up processing while using a limited amount of identification information. The transmitting unit 132 transmits the first signal to each of the plurality of terminal devices 300. The receiving unit 134 receives the second signal from each of the plurality of terminal devices 300 that have transmitted the first signal via the transmitting unit 132 as a response to the first signal. The control unit 120 specifies two or more groups including one or more terminal devices 300, and classifies the plurality of terminal devices 300 into each of two or more groups, and assigns unencrypted identification to each group Information, by using the identification information, the receiving unit 134 receives the second signal.

Description

通信裝置、通信系統Communication device, communication system

本發明係關於一種執行通信之通信裝置、通信系統。 The present invention relates to a communication device and communication system for performing communication.

通信設備互相推送資料之技術之一為於TCP(Transmission Control Protocol,傳輸控制協定)上動作之WebSocket。於使用WebSocket中之始終連接之技術而由伺服器對客戶端發送資料之情形時,伺服器對始終連接中之所有客戶端發送資料。為了指定始終連接中之客戶端中之一部分之客戶端推送資料,伺服器記憶用以對複數個電子設備進行特定之始終連接用ID(Identification,識別符)與用以對複數個群組進行特定之群組ID之對應關係。伺服器基於群組ID之指定而向屬於對應之群組之至少1個電子設備推送資料(例如,參照專利文獻1)。 One of the technologies for communication devices to push data to each other is WebSocket which operates on TCP (Transmission Control Protocol). When using the always-connected technology in WebSocket and the server sends data to the client, the server sends data to all the clients that are always connected. In order to specify the client push data of a part of the always-connected client, the server memorizes the always-connected ID (Identification) used to identify a plurality of electronic devices and to identify a plurality of groups The corresponding relationship of the group ID. The server pushes data to at least one electronic device belonging to the corresponding group based on the designation of the group ID (for example, refer to Patent Document 1).

[先前技術文獻] [Prior Technical Literature] [專利文獻] [Patent Literature]

[專利文獻1]日本專利特開2015-103122號公報 [Patent Document 1] Japanese Patent Laid-Open No. 2015-103122

與背景技術中之伺服器與電子設備之關係相同地,於將複數個終端裝置連接於1個通信裝置之通信系統中,存在通信裝置欲自複數個終端裝置之各者收集資料之情形。此時,通信裝置對複數個終端裝置發送用以要求資料之發送之要求信號,各終端裝置將包含資料之應答信號發送至通信裝置。通信裝置為了接收到來自各終端裝置之資料,使用傳輸層協定(TCP或UDP(User Datagram Protocol,使用者資料報協定))中之埠號。於對複數個終端裝置使用1個埠號之情形時,於通信裝置中,若不結束來自1個終端裝置之資料之接收處理,則無法開始來自下一個終端裝置之資料之接收處理,故而導致收集資料之時間變長。另一方面,於對複數個終端裝置之各者使用不同之埠號之情形時,收集資料之時間變短。然而,能夠使用之埠號之數量受到限制。因此,無法收集來自超過其之數量之終端裝置之資料。 Similar to the relationship between a server and an electronic device in the background art, in a communication system that connects a plurality of terminal devices to one communication device, there are situations where the communication device wants to collect data from each of the plurality of terminal devices. At this time, the communication device sends a request signal for requesting data transmission to a plurality of terminal devices, and each terminal device sends a response signal containing the data to the communication device. In order to receive the data from each terminal device, the communication device uses the port number in the transport layer protocol (TCP or UDP (User Datagram Protocol, User Datagram Protocol)). In the case of using one port number for multiple terminal devices, in the communication device, if the data receiving process from one terminal device is not ended, the data receiving process from the next terminal device cannot be started, which results in The time to collect data becomes longer. On the other hand, when a different port number is used for each of a plurality of terminal devices, the time for collecting data becomes shorter. However, the number of ports that can be used is limited. Therefore, it is impossible to collect data from terminal devices exceeding the number.

本發明係鑒於此種情況而完成者,且其目的在於提供一種一面使用數量有限之識別資訊一面使處理高速化之技術。 The present invention was completed in view of this situation, and its purpose is to provide a technology that uses a limited amount of identification information while speeding up processing.

為了解決上述問題,本發明之一態樣之通信裝置係與終端裝置進行通信之通信裝置,且具備:發送部,其對複數個終端裝置之各者發送第1信號;接收部,其自經發送部發送了第1信號之複數個終端裝置之各者接收第2信號,作為對於第1信號之應答;及控制部,其規定2個以上之包含1台以上之終端裝置之群組,並且將複數個終端裝置分類為2個以上之群組之各者,且針對每個群組分配非加密之識別資訊,藉此使用識別資訊使接 收部接收第2信號。 In order to solve the above-mentioned problems, a communication device of one aspect of the present invention is a communication device that communicates with a terminal device, and includes: a transmitting unit that transmits a first signal to each of a plurality of terminal devices; Each of the plurality of terminal devices that sent the first signal by the transmitting unit receives the second signal as a response to the first signal; and the control unit specifies two or more groups including one or more terminal devices, and Classify a plurality of terminal devices into each of 2 or more groups, and assign unencrypted identification information to each group, thereby using the identification information to connect The receiving unit receives the second signal.

本發明之另一態樣係通信系統。該通信系統具備:複數個終端裝置;及通信裝置,其與複數個終端裝置之各者進行通信。通信裝置具備:發送部,其對複數個終端裝置之各者發送第1信號;接收部,其自經發送部發送了第1信號之複數個終端裝置之各者接收第2信號,作為對於第1信號之應答;及控制部,其規定2個以上之包含1台以上之終端裝置之群組,並且將複數個終端裝置分類為2個以上之群組之各者,且針對每個群組分配非加密之識別資訊,藉此使用識別資訊使接收部接收第2信號。 Another aspect of the present invention is a communication system. This communication system includes: a plurality of terminal devices; and a communication device that communicates with each of the plurality of terminal devices. The communication device includes: a transmission unit that transmits a first signal to each of the plurality of terminal devices; and a receiving unit that receives the second signal from each of the plurality of terminal devices that have transmitted the first signal via the transmission unit as a response to the first signal 1 signal response; and the control unit, which specifies two or more groups including one or more terminal devices, and classifies the plurality of terminal devices into each of two or more groups, and for each group Distribute unencrypted identification information, thereby using the identification information to make the receiving unit receive the second signal.

再者,將以上之構成要素之任意之組合、本發明之表達於方法、裝置、系統、電腦程式、或記錄有電腦程式之記錄媒體等之間變換而成者亦又作為本發明之態樣有效。 Furthermore, any combination of the above constituent elements and the expression of the present invention in a method, device, system, computer program, or a recording medium on which the computer program is recorded, etc., are also converted into aspects of the present invention. effective.

根據本發明,可一面使用數量有限之識別資訊一面使處理高速化。 According to the present invention, it is possible to increase the processing speed while using a limited amount of identification information.

100:通信裝置 100: Communication device

110:記憶部 110: Memory Department

112:介面部 112: Facial

120:控制部 120: Control Department

130:通信部 130: Ministry of Communications

132:發送部 132: Sending Department

134:接收部 134: Receiving Department

200:中繼裝置 200: Relay device

200a:第1中繼裝置 200a: 1st relay device

200b:第2中繼裝置 200b: 2nd relay device

200c:第3中繼裝置 200c: 3rd relay device

200n:第N中繼裝置 200n: Nth relay device

300:終端裝置 300: terminal device

300a:第1終端裝置 300a: 1st terminal device

300b:第2終端裝置 300b: 2nd terminal device

300c:第3終端裝置 300c: 3rd terminal device

300d:第4終端裝置 300d: 4th terminal device

300e:第5終端裝置 300e: 5th terminal device

300f:第6終端裝置 300f: 6th terminal device

300g:第7終端裝置 300g: 7th terminal device

300h:第8終端裝置 300h: 8th terminal device

300i:第9終端裝置 300i: 9th terminal device

300l:第L終端裝置 300l: L terminal device

300s:第S終端裝置 300s: S terminal device

300x:第X終端裝置 300x: X terminal device

310:通信部 310: Ministry of Communications

320:控制部 320: Control Department

330:取得部 330: Acquisition Department

400:群組 400: Group

400a:第1群組 400a: Group 1

400b:第2群組 400b: Group 2

400c:第3群組 400c: Group 3

400n:第N群組 400n: Group N

500:伺服器 500: server

510:處理部 510: Processing Department

512:記憶部 512: Memory Department

600:電量計 600: Fuel gauge

610:處理部 610: Processing Department

612:感測器 612: Sensor

1000:通信系統 1000: Communication system

圖1係表示實施例之通信系統之構成之圖。 Fig. 1 is a diagram showing the configuration of the communication system of the embodiment.

圖2(a)-(b)係表示圖1之通信裝置與終端裝置之構成之圖。 2(a)-(b) are diagrams showing the structure of the communication device and terminal device of FIG. 1.

圖3係表示圖2(a)之記憶部中所記憶之路由表之概要的圖。 Fig. 3 is a diagram showing the outline of the routing table memorized in the memory section of Fig. 2(a).

圖4係表示圖2(a)之通信部中之埠號之分配的圖。 Fig. 4 is a diagram showing the allocation of port numbers in the communication part of Fig. 2(a).

圖5係表示圖1之通信系統之處理之概要的圖。 Fig. 5 is a diagram showing the outline of the processing of the communication system of Fig. 1;

圖6係表示圖2(a)之通信部中使用之訊框之格式的圖。 Fig. 6 is a diagram showing the format of the frame used in the communication part of Fig. 2(a).

圖7(a)-(b)係表示搭載圖2(a)-(b)中之通信裝置與終端裝置之伺服器與電量計之構成的圖。 Figs. 7(a)-(b) are diagrams showing the configuration of a server and electricity meter equipped with the communication device and terminal device in Figs. 2(a)-(b).

圖8係表示由圖2(a)之通信裝置進行之資料之取得步驟的流程圖。 Fig. 8 is a flowchart showing the procedure of obtaining data by the communication device of Fig. 2(a).

圖9係表示變化例之通信部中之埠號之分配之圖。 Fig. 9 is a diagram showing the allocation of port numbers in the communication part of a modified example.

於對本發明之實施例具體地進行說明之前,對本實施例之概要進行說明。實施例係關於將複數個終端裝置連接於1台通信裝置之通信系統。例如,通信裝置搭載於伺服器,終端裝置搭載於電量計。於此種構成中,通信裝置自各終端裝置收集資料。資料例如包含電量之測量結果。此前,終端裝置對通信裝置之特定之埠號自律地發送資料,接收資料之通信裝置對終端裝置發送應答。於此種處理中,通信裝置無法於自己期望之時點收集資料。為了使通信裝置能夠於期望之時點收集資料,通信裝置將用以要求資料之發送之要求信號(以下,亦稱為「第1信號」)發送至終端裝置。接收到第1信號之終端裝置將包含資料之應答信號(以下,亦稱為「第2信號」)發送至通信裝置。 Before specifically describing the embodiment of the present invention, the outline of the embodiment will be described. The embodiment relates to a communication system in which a plurality of terminal devices are connected to one communication device. For example, the communication device is mounted on the server, and the terminal device is mounted on the electricity meter. In this configuration, the communication device collects data from each terminal device. The data includes, for example, the measurement result of the electric quantity. Previously, the terminal device automatically sent data to the specific port number of the communication device, and the communication device receiving the data sent a response to the terminal device. In such processing, the communication device cannot collect data at the time it expects. In order to enable the communication device to collect data at a desired point in time, the communication device sends a request signal (hereinafter, also referred to as the "first signal") for requesting data transmission to the terminal device. The terminal device that has received the first signal transmits a response signal containing data (hereinafter, also referred to as "second signal") to the communication device.

通信裝置為了接收第2信號而使用TCP之埠號,但若對複數個終端裝置使用1個埠號,則收集資料之時間變長。因此,通信裝置為了同時執行對於來自複數個終端裝置之第2信號之接收處理而使用複數個埠號。然而,於通信裝置中能夠使用之埠號之數量為「65535」。進而,於IANA(Internet Assigned Numbers Authority,網際網路賦值主管當局)中 定義為能夠自由地使用之埠號為「49152」~「65535」之範圍,僅為「16383」。即,若欲同時收集第2信號之終端裝置之數量為數十萬台以上,則能夠使用之埠號之數量低於終端裝置之數量。因此,針對每個終端裝置分配埠號並不現實。如此,即便成為處理對象之終端裝置之數量變多,亦要求抑制處理所需要之時間變長。亦可代替TCP之埠號而使用UDP之埠號,但是,以下,使用TCP之埠號對實施例進行說明。 The communication device uses the TCP port number to receive the second signal, but if one port number is used for a plurality of terminal devices, the time for collecting data becomes longer. Therefore, the communication device uses a plurality of port numbers in order to simultaneously perform receiving processing of the second signals from a plurality of terminal devices. However, the number of port numbers that can be used in the communication device is "65535". Furthermore, in IANA (Internet Assigned Numbers Authority, the Internet Assigned Numbers Authority) It is defined as the range of "49152" ~ "65535" for freely used port numbers, which is only "16383". That is, if the number of terminal devices that want to collect the second signal at the same time is hundreds of thousands or more, the number of port numbers that can be used is lower than the number of terminal devices. Therefore, it is not practical to assign port numbers to each terminal device. As such, even if the number of terminal devices to be processed increases, it is required to suppress the increase in the time required for processing. It is also possible to use the port number of UDP instead of the port number of TCP. However, in the following, the port number of TCP is used to describe the embodiments.

為了應對此情況,於本實施例中,規定2個以上之包含1台以上之終端裝置之群組。又,針對每個群組分配埠號。即,對來自使用不同之埠號之不同之群組中所包含之終端裝置之第2信號並列地進行接收處理。另一方面,群組之數量以成為能夠使用之埠號之數量以下之方式規定,故而即便終端裝置之數量變多,需要之埠號之數量之增加亦被抑制。 In order to cope with this situation, in this embodiment, two or more groups including one or more terminal devices are defined. In addition, a port number is assigned to each group. That is, the second signals from the terminal devices included in different groups using different port numbers are received in parallel. On the other hand, the number of groups is regulated so as to be less than the number of port numbers that can be used. Therefore, even if the number of terminal devices increases, the increase in the number of required port numbers is suppressed.

圖1係表示通信系統1000之構成。通信系統1000包含通信裝置100、統稱為中繼裝置200之第1中繼裝置200a、第2中繼裝置200b、第3中繼裝置200c、第N中繼裝置200n、及統稱為終端裝置300之第1終端裝置300a至第9終端裝置300i。中繼裝置200、終端裝置300之數量並不限定於圖1之情形。於通信裝置100連接有第1中繼裝置200a至第N中繼裝置200n,於各中繼裝置200連接有1個以上之終端裝置300。通信裝置100、中繼裝置200、終端裝置300間之通信可使用有線通信,亦可使用無線通信,亦可使用其等之組合。又,有線通信例如能夠使用光通信、電力線通信(PLC:POwer Line Communications)等,無線通信能夠使用行動電話通信、無線LAN(Local Area Network,區域網路)等。 FIG. 1 shows the structure of the communication system 1000. The communication system 1000 includes a communication device 100, a first relay device 200a, a second relay device 200b, a third relay device 200c, an Nth relay device 200n, and a terminal device 300 collectively referred to as a relay device 200 The first terminal device 300a to the ninth terminal device 300i. The number of relay devices 200 and terminal devices 300 is not limited to that shown in FIG. 1. The first relay device 200 a to the N-th relay device 200 n are connected to the communication device 100, and one or more terminal devices 300 are connected to each relay device 200. The communication between the communication device 100, the relay device 200, and the terminal device 300 may use wired communication, wireless communication, or a combination thereof. In addition, for wired communication, optical communication, power line communication (PLC: POwer Line Communications), etc. can be used, and wireless communication can use mobile phone communication, wireless LAN (Local Area Network, local area network), and the like.

通信裝置100經由中繼裝置200而與複數個終端裝置300之各者進行通信,並自複數個終端裝置300收集資料。此時,通信裝置100朝向終端裝置300發送第1信號,並接收到來自該終端裝置300之第2信號。例如,自通信裝置100向第2終端裝置300b發送之第1信號係於第1中繼裝置200a、第1終端裝置300a中依次傳送。又,自第2終端裝置300b向通信裝置100發送之第2信號係於第1終端裝置300a、第1中繼裝置200a中依次傳送。 The communication device 100 communicates with each of the plurality of terminal devices 300 via the relay device 200, and collects data from the plurality of terminal devices 300. At this time, the communication device 100 transmits the first signal to the terminal device 300, and receives the second signal from the terminal device 300. For example, the first signal transmitted from the communication device 100 to the second terminal device 300b is sequentially transmitted by the first relay device 200a and the first terminal device 300a. In addition, the second signal transmitted from the second terminal device 300b to the communication device 100 is sequentially transmitted by the first terminal device 300a and the first relay device 200a.

終端裝置300根據來自通信裝置100之要求而對通信裝置100提供資料。此時,終端裝置300接收到來自通信裝置100之第1信號,並朝向通信裝置100發送第2信號。此處,亦可藉由複數個終端裝置300形成多跳網路。於多跳網路中,通信裝置100與另一終端裝置300之路徑中所包含之終端裝置300若接收到來自通信裝置100之第1信號,則朝向另一終端裝置300發送該第1信號。例如,第1終端裝置300a若經由第1中繼裝置200a接收到來自通信裝置100之第1信號,則朝向第2終端裝置300b發送第1信號。又,該終端裝置300若接收到來自另一終端裝置300之第2信號,則朝向通信裝置100發送該第2信號。例如,第1終端裝置300a若接收到來自第2終端裝置300b之第2信號,則經由第1中繼裝置200a朝向通信裝置100發送第2信號。 The terminal device 300 provides data to the communication device 100 according to a request from the communication device 100. At this time, the terminal device 300 receives the first signal from the communication device 100 and transmits the second signal to the communication device 100. Here, a multi-hop network can also be formed by a plurality of terminal devices 300. In a multi-hop network, if the terminal device 300 included in the path between the communication device 100 and another terminal device 300 receives the first signal from the communication device 100, it transmits the first signal to the other terminal device 300. For example, when the first terminal device 300a receives the first signal from the communication device 100 via the first relay device 200a, it transmits the first signal to the second terminal device 300b. Furthermore, when the terminal device 300 receives the second signal from the other terminal device 300, it transmits the second signal to the communication device 100. For example, if the first terminal device 300a receives the second signal from the second terminal device 300b, it transmits the second signal to the communication device 100 via the first relay device 200a.

中繼裝置200配置於通信裝置100與終端裝置300之間,對信號進行中繼。例如,第1中繼裝置200a若接收到來自通信裝置100之第1信號,則朝向第1終端裝置300a發送第1信號,若接收到來自第1終端裝置300a之第2 信號,則朝向通信裝置100發送第1信號。即,通信裝置100與複數個終端裝置300之間之通信係藉由2個以上之中繼裝置200之至少1者而中繼。此處,中繼裝置200亦可為閘道器裝置。於該情形時,針對連接於中繼裝置200之每個終端裝置300形成不同之網路。例如,藉由連接於第1中繼裝置200a之第1終端裝置300a至第3終端裝置300c形成1個網路,藉由連接於第2中繼裝置200b之第4終端裝置300d至第6終端裝置300f而形成另1個網路。又,該等網路亦可形成與通信裝置100與中繼裝置200之間之網路不同之網路。 The relay device 200 is arranged between the communication device 100 and the terminal device 300 and relays signals. For example, if the first relay device 200a receives the first signal from the communication device 100, it transmits the first signal toward the first terminal device 300a, and if it receives the second signal from the first terminal device 300a, Signal, the first signal is transmitted to the communication device 100. That is, the communication between the communication device 100 and the plurality of terminal devices 300 is relayed by at least one of the two or more relay devices 200. Here, the relay device 200 may also be a gateway device. In this case, a different network is formed for each terminal device 300 connected to the relay device 200. For example, a network is formed by the first terminal device 300a to the third terminal device 300c connected to the first relay device 200a, and the fourth terminal device 300d to the sixth terminal device 300d to the sixth terminal device connected to the second relay device 200b The device 300f forms another network. Furthermore, these networks may also form a network different from the network between the communication device 100 and the relay device 200.

圖2(a)-(b)係表示通信裝置100與終端裝置300之構成。圖2(a)係表示通信裝置100之構成。通信裝置100包含記憶部110、介面部112、控制部120、及通信部130,通信部130包含發送部132及接收部134。記憶部110記憶於如圖1所示之網路中通信裝置100執行與中繼裝置200、終端裝置300之通信之情形時之路由表。圖3係表示記憶於記憶部110之路由表之概要。於路由表中以成為與圖1相同之構成之方式,表示與中繼裝置200、終端裝置300之連接關係。路由表之資料構造、路由表之產生只要使用公知之技術即可,故而此處省略說明。返回至圖2(a)。 2(a)-(b) show the configuration of the communication device 100 and the terminal device 300. FIG. 2(a) shows the configuration of the communication device 100. The communication device 100 includes a storage unit 110, an interface surface 112, a control unit 120, and a communication unit 130, and the communication unit 130 includes a sending unit 132 and a receiving unit 134. The storage unit 110 stores a routing table when the communication device 100 performs communication with the relay device 200 and the terminal device 300 in the network shown in FIG. 1. FIG. 3 shows the outline of the routing table stored in the memory unit 110. The routing table shows the connection relationship with the relay device 200 and the terminal device 300 in a manner similar to that of FIG. 1. The data structure of the routing table and the generation of the routing table only need to use known technologies, so the description is omitted here. Return to Figure 2(a).

介面部112係與通信裝置100外之介面,輸入或輸出特定之資訊。例如,於通信裝置100搭載於伺服器之情形時,介面部112受理來自複數個終端裝置300之各者之資料之收集指示,作為來自伺服器之資訊。介面部112將所輸入之資訊,例如資料之收集指示輸出至控制部120。 The interface 112 is an interface outside the communication device 100 for inputting or outputting specific information. For example, in a situation where the communication device 100 is mounted on a server, the interface 112 accepts a collection instruction of data from each of the plurality of terminal devices 300 as information from the server. The interface 112 outputs the input information, such as a data collection instruction, to the control unit 120.

控制部120對通信部130中之通信處理進行控制。例如,控制部120於自介面部112受理了資料之收集指示之情形時,針對每個終端裝置300產生用以要求資料之發送之要求信號即第1信號。此時,控制部120將向各終端裝置300之路徑設定於第1信號。控制部120將已產生之第1信號輸出至發送部132。通信部130經由未圖示之中繼裝置200而執行與終端裝置300之通信。通信部130可執行有線通信,亦可執行無線通信。由於有線通信、無線通信如上所述,故而此處省略說明。發送部132若受理來自控制部120之第1信號,則對複數個終端裝置300之各者發送第1信號。 The control unit 120 controls the communication processing in the communication unit 130. For example, when the control unit 120 receives a data collection instruction from the interface 112, it generates a first signal that is a request signal for requesting data transmission for each terminal device 300. At this time, the control unit 120 sets the path to each terminal device 300 to the first signal. The control unit 120 outputs the generated first signal to the transmission unit 132. The communication unit 130 performs communication with the terminal device 300 via the relay device 200 not shown. The communication unit 130 may perform wired communication and may also perform wireless communication. Since wired communication and wireless communication are as described above, the description is omitted here. When the transmitting unit 132 receives the first signal from the control unit 120, it transmits the first signal to each of the plurality of terminal devices 300.

接收部134自經發送部132發送了第1信號之複數個終端裝置300之各者接收第2信號,作為對於第1信號之應答。第2信號包含資料。接收部134將已接收之第2信號輸出至控制部120。控制部120若自接收部134受理第2信號,則取得資料與終端裝置300之資訊之組合。控制部120作為對於自介面部112受理之資料之收集指示的應答,將資料與終端裝置300之資訊之組合輸出至介面部112。介面部112輸出資料與終端裝置300之資訊之組合,作為特定之資訊。 The receiving unit 134 receives the second signal from each of the plurality of terminal devices 300 that have transmitted the first signal via the transmitting unit 132 as a response to the first signal. The second signal contains data. The receiving unit 134 outputs the received second signal to the control unit 120. When the control unit 120 receives the second signal from the receiving unit 134, it obtains a combination of the data and the information of the terminal device 300. The control unit 120 outputs a combination of the data and the information of the terminal device 300 to the interface 112 as a response to the collection instruction of the data received from the interface 112. The combination of the output data of the interface 112 and the information of the terminal device 300 is used as specific information.

圖2(b)係表示終端裝置300之構成。終端裝置300包含通信部310、控制部320、及取得部330。通信部310經由未圖示之中繼裝置200執行與通信裝置100之通信。通信部130可執行有線通信,亦可執行無線通信。由於有線通信、無線通信如上所述,故而此處省略說明。通信部310接收來自通信裝置100之第1信號。通信部310將已接收之第1信號輸出至控制部320。控制部320於已接收之第1信號之目的地為本終端裝置300之情形 時,自第1信號擷取資料之發送之要求。控制部320根據資料之發送之要求,經由取得部330受理資料。取得部330係與終端裝置300外之介面,受理特定之資訊,例如資料。控制部320產生包含資料之第2信號,作為對於第1信號之應答。此時,控制部320將第1信號之路徑之逆向路徑設定於第2信號。控制部320將第2信號輸出至通信部310。通信部310若自控制部320受理第2信號,則朝向通信裝置100發送第2信號。 FIG. 2(b) shows the configuration of the terminal device 300. The terminal device 300 includes a communication unit 310, a control unit 320, and an acquisition unit 330. The communication unit 310 performs communication with the communication device 100 via the relay device 200 not shown. The communication unit 130 may perform wired communication and may also perform wireless communication. Since wired communication and wireless communication are as described above, the description is omitted here. The communication unit 310 receives the first signal from the communication device 100. The communication unit 310 outputs the received first signal to the control unit 320. When the control unit 320 is the terminal device 300 at the destination of the received first signal When the request is sent from the first signal to retrieve data. The control unit 320 receives the data through the acquisition unit 330 according to the request for sending the data. The acquisition unit 330 is an interface outside the terminal device 300 and receives specific information, such as data. The control unit 320 generates a second signal containing data as a response to the first signal. At this time, the control unit 320 sets the reverse path of the path of the first signal to the second signal. The control unit 320 outputs the second signal to the communication unit 310. When the communication unit 310 receives the second signal from the control unit 320, it transmits the second signal to the communication device 100.

若已接收之第1信號之目的地並非本終端裝置300而是另一終端裝置300,則控制部320使通信部310朝向另一終端裝置300發送第1信號。即,通信部310依照路徑傳送第1信號。又,通信部310接收到來自另一終端裝置300之第2信號。通信部310將已接收之第2信號輸出至控制部320。控制部320使通信部310朝向通信裝置100發送第2信號。即,通信部310依照逆向之路徑傳送第2信號。 If the destination of the received first signal is not the own terminal device 300 but another terminal device 300, the control unit 320 causes the communication unit 310 to transmit the first signal to the other terminal device 300. That is, the communication unit 310 transmits the first signal according to the path. In addition, the communication unit 310 receives the second signal from another terminal device 300. The communication unit 310 outputs the received second signal to the control unit 320. The control unit 320 causes the communication unit 310 to transmit the second signal to the communication device 100. That is, the communication unit 310 transmits the second signal according to the reverse path.

於通信系統1000中,通信裝置100成為契機進行來自終端裝置300之資料之收集。此時,通信裝置100之通信部130為了接收作為資料之第2信號而使用TCP之埠號。如上所述,能夠使用之埠號之數量限制為「16383」。因此,於成為處理對象之終端裝置300之數量較多之情形時,若針對每個終端裝置300分配埠號,則埠號不足。另一方面,於對複數個終端裝置300使用1個埠號之情形時,若不結束對於1個終端裝置300之資料之收集處理,則無法執行對於下一個終端裝置300之資料之收集處理,故而導致收集之處理所需要之時間變長。以下,對用以即便成為處理對象之終端裝置300之數量較多亦可抑制收集處理所需要之時間變長之通信部 130中之處理進行說明。 In the communication system 1000, the communication device 100 becomes an opportunity to collect data from the terminal device 300. At this time, the communication unit 130 of the communication device 100 uses the TCP port number in order to receive the second signal as data. As mentioned above, the number of ports that can be used is limited to "16383". Therefore, when the number of terminal devices 300 to be processed is large, if a port number is assigned to each terminal device 300, the port number is insufficient. On the other hand, when one port number is used for a plurality of terminal devices 300, if the data collection process for one terminal device 300 is not ended, the data collection process for the next terminal device 300 cannot be executed. As a result, the time required for collection processing has become longer. Hereinafter, the communication unit used to suppress the increase of the time required for collection processing even if the number of terminal devices 300 to be processed is large The processing in 130 is explained.

圖4係表示通信部130中之埠號之分配。其表示控制部120中之處理,於通信部130,與圖1相同地連接有第1中繼裝置200a至第N中繼裝置200n。又,於各中繼裝置200,連接有1台以上之終端裝置300。控制部120使連接於第1中繼裝置200a之複數個終端裝置300包含於第1群組400a,使連接於第2中繼裝置200b之複數個終端裝置300包含於第2群組400b。第3群組400c至第N群組400n亦相同。將第1群組400a至第N群組400n統稱為群組400。即,控制部120規定2個以上之包含1台以上之終端裝置300之群組400。又,控制部120將複數個終端裝置300分類為2個以上之群組400之各者。尤其,進行如連接於同一中繼裝置200之1個以上之終端裝置300包含於同一群組400中般之分類。其相當於針對每個中繼裝置200形成群組400。 FIG. 4 shows the allocation of port numbers in the communication unit 130. This shows the processing in the control unit 120, and the communication unit 130 is connected to the first relay device 200a to the Nth relay device 200n in the same manner as in FIG. 1. In addition, one or more terminal devices 300 are connected to each relay device 200. The control unit 120 includes the plurality of terminal devices 300 connected to the first relay device 200a in the first group 400a, and includes the plurality of terminal devices 300 connected to the second relay device 200b in the second group 400b. The same is true for the third group 400c to the Nth group 400n. The first group 400a to the Nth group 400n are collectively referred to as a group 400. That is, the control unit 120 defines two or more groups 400 including one or more terminal devices 300. In addition, the control unit 120 classifies the plurality of terminal devices 300 into each of the two or more groups 400. In particular, classification is performed as if one or more terminal devices 300 connected to the same relay device 200 are included in the same group 400. This is equivalent to forming a group 400 for each relay device 200.

又,控制部120針對每個群組400分配埠號。例如,對第1群組400a分配埠號「49152」,對第2群組400b分配埠號「49153」,對第3群組400c分配埠號「49154」。藉由此種分配,控制部120使用埠號使接收部134接收第2信號。以對應於此之方式,終端裝置300中之控制部320將分配至包含該終端裝置300之群組400之埠號設定於第2信號。其結果,來自同一群組400中所包含之終端裝置300之第2信號於通信裝置100中被逐一地接收處理,但來自不同之群組400中所包含之終端裝置300之第2信號於通信裝置100中被並列地接收處理。 In addition, the control unit 120 assigns a port number to each group 400. For example, the port number "49152" is assigned to the first group 400a, the port number "49153" is assigned to the second group 400b, and the port number "49154" is assigned to the third group 400c. With this allocation, the control unit 120 uses the port number to make the receiving unit 134 receive the second signal. In a way corresponding to this, the control unit 320 in the terminal device 300 sets the port number allocated to the group 400 containing the terminal device 300 to the second signal. As a result, the second signals from the terminal devices 300 included in the same group 400 are received and processed one by one in the communication device 100, but the second signals from the terminal devices 300 included in a different group 400 are used for communication The device 100 receives processing in parallel.

進而,控制部120基於能夠連接於中繼裝置200之終端裝置300之數量,限制1個群組400中所包含之終端裝置300之數量。具體而言,以成為能夠連接於中繼裝置200之終端裝置300之數量以下之方式,限制1個群組400中所包含之終端裝置300之數量。 Furthermore, the control unit 120 limits the number of terminal devices 300 included in one group 400 based on the number of terminal devices 300 that can be connected to the relay device 200. Specifically, the number of terminal devices 300 included in one group 400 is limited so as to be less than the number of terminal devices 300 that can be connected to the relay device 200.

為了對使用此種埠號之通信裝置100與終端裝置300之間之通信進而詳細地進行說明,此處使用圖5、圖6。圖5係表示通信系統1000之處理之概要。於圖5中,設想通信裝置100之通信部130與第L終端裝置300l、第S終端裝置300s、第X終端裝置300x進行通信之情形。於接收部134,作為一例設定有埠號「60001」之埠、埠號「60002」之埠、埠號「60100」之埠。又,埠號「60001」分配至包含第L終端裝置300l之群組400,埠號「60002」之埠分配至包含第S終端裝置300s之群組400。進而,埠號「60100」之埠分配至包含第X終端裝置300x之群組400。 In order to further describe the communication between the communication device 100 and the terminal device 300 using such a port number, FIGS. 5 and 6 are used here. FIG. 5 shows the outline of the processing of the communication system 1000. In FIG. 5, it is assumed that the communication unit 130 of the communication device 100 communicates with the L-th terminal device 300l, the S-th terminal device 300s, and the X-th terminal device 300x. In the receiving section 134, as an example, a port with a port number "60001", a port with a port number "60002", and a port with a port number "60100" are set. In addition, the port number "60001" is assigned to the group 400 including the L-th terminal device 3001, and the port number "60002" is assigned to the group 400 including the S-th terminal device 300s. Furthermore, the port with the port number "60100" is allocated to the group 400 including the X-th terminal device 300x.

圖6係表示通信部130中使用之訊框之格式。於訊框,自開頭起依次配置有IP(Internet Protocol,網際網路協定)標頭、TCP標頭、加密資料。又,於TCP標頭包含發送源埠號及目的地埠號。該等只要使用公知之技術即可,故而此處省略說明。於將埠號稱為非加密之第1識別資訊之情形時,亦可將識別群組400內之終端裝置300之情形時之識別資訊稱為第2識別資訊。控制部120針對群組400內之每個終端裝置300分配第2識別資訊。由於第1識別資訊為TCP中之埠號,故而第2識別資訊為較TCP更上位層之協定中之加密之識別資訊。此種第2識別資訊包含於加密資料中。返回至圖5。 FIG. 6 shows the format of the frame used in the communication unit 130. In the frame, IP (Internet Protocol, Internet Protocol) header, TCP header, and encrypted data are sequentially configured from the beginning. In addition, the TCP header contains the source port number and destination port number. As long as the publicly known technology is used, the description is omitted here. When the port number is referred to as non-encrypted first identification information, the identification information when identifying the terminal device 300 in the group 400 can also be referred to as second identification information. The control unit 120 assigns the second identification information to each terminal device 300 in the group 400. Since the first identification information is the port number in TCP, the second identification information is the encrypted identification information in a protocol higher than TCP. This second identification information is included in the encrypted data. Return to Figure 5.

控制部120於使發送部132發送發給第L終端裝置300l之第1信號時,對發送源埠號設定「60001」,使對於第L終端裝置300l之第2識別資訊包含於加密資料中。即,自發送部132發送之第1信號包含第1識別資訊與第2識別資訊之組合。因此,對於終端裝置300之埠號亦可於第1信號之發送時分配。接收該第1信號之第L終端裝置300l之控制部320取得發送源埠號「60001」及第2識別資訊。又,控制部320於使發給通信裝置100之第2信號發送時,基於發送源埠號「60001」設定目的地埠號「60001」,使第2識別資訊包含於加密資料中。其結果,通信裝置100之接收部134於埠號「60001」之埠,接收到來自第L終端裝置300l之第2信號。如此,控制部120使用第1識別資訊與第2識別資訊之組合使接收部134接收第2信號。 When the control unit 120 causes the transmission unit 132 to transmit the first signal to the L-th terminal device 3001, it sets "60001" to the transmission source port number so that the second identification information for the L-th terminal device 3001 is included in the encrypted data. That is, the first signal sent from the sending unit 132 includes a combination of the first identification information and the second identification information. Therefore, the port number for the terminal device 300 can also be assigned when the first signal is transmitted. The control unit 320 of the L-th terminal device 3001 receiving the first signal obtains the transmission source port number "60001" and the second identification information. In addition, when the control unit 320 transmits the second signal to the communication device 100, the destination port number "60001" is set based on the transmission source port number "60001", and the second identification information is included in the encrypted data. As a result, the receiving unit 134 of the communication device 100 receives the second signal from the L-th terminal device 3001 at the port number "60001". In this way, the control unit 120 uses the combination of the first identification information and the second identification information to make the receiving unit 134 receive the second signal.

又,對於第S終端裝置300s亦進行相同之處理,通信裝置100之控制部120對第S終端裝置300s之第1信號設定發送源埠號「60002」。第S終端裝置300s之控制部320對發給通信裝置100之第2信號設定目的地埠號「60002」。進而,對於第X終端裝置300x亦進行相同之處理,通信裝置100之控制部120對第X終端裝置300x之第1信號設定發送源埠號「60100」。第X終端裝置300x之控制部320對發給通信裝置100之第2信號設定目的地埠號「60100」。由於在第L終端裝置300l、第S終端裝置300s、第X終端裝置300x設定有互不相同之埠號,故而對於第L終端裝置300l、第S終端裝置300s、第X終端裝置300x之接收處理於通信裝置100中能夠並列地執行。 In addition, the same processing is performed on the third terminal device 300s, and the control unit 120 of the communication device 100 sets the transmission source port number "60002" for the first signal of the third terminal device 300s. The control unit 320 of the third terminal device 300s sets the destination port number "60002" for the second signal sent to the communication device 100. Furthermore, the same processing is performed on the Xth terminal device 300x, and the control unit 120 of the communication device 100 sets the transmission source port number "60100" for the first signal of the Xth terminal device 300x. The control unit 320 of the X-th terminal device 300x sets the destination port number "60100" for the second signal sent to the communication device 100. Since different port numbers are set in the L-th terminal device 300l, S-th terminal device 300s, and X-th terminal device 300x, the reception processing for the L-th terminal device 300l, S-th terminal device 300s, and X-th terminal device 300x It can be executed in parallel in the communication device 100.

圖7(a)-(b)係表示搭載通信裝置100與終端裝置300之伺服器500與電量計600之構成。圖7(a)係表示伺服器500之構成。伺服器500包含通信裝置100、處理部510、記憶部512。處理部510自複數個終端裝置300之各者收集電量之測量結果,並對其等進行管理。處理部510將複數個電量計600之各者之電量之測量結果之收集指示輸出至通信裝置100。對應於此,通信裝置100之發送部132發送測量結果之發送之要求信號,作為第1信號。通信裝置100之接收部134接收包含測量結果之加密資料,作為第2信號。處理部510自通信裝置100受理複數個電量計600之各者中之電量之測量結果。處理部510將已受理之電量之測量結果記憶於記憶部512。 7(a)-(b) show the configuration of the server 500 and the electricity meter 600 equipped with the communication device 100 and the terminal device 300. FIG. 7(a) shows the structure of the server 500. The server 500 includes a communication device 100, a processing unit 510, and a storage unit 512. The processing unit 510 collects power measurement results from each of the plurality of terminal devices 300 and manages them. The processing unit 510 outputs to the communication device 100 a collection instruction of the electric quantity measurement results of each of the plurality of electric quantity meters 600. Corresponding to this, the transmission unit 132 of the communication device 100 transmits a request signal for transmission of the measurement result as the first signal. The receiving unit 134 of the communication device 100 receives the encrypted data including the measurement result as the second signal. The processing unit 510 receives the measurement result of the electric quantity in each of the plurality of electric quantity meters 600 from the communication device 100. The processing unit 510 stores the received measurement result of the electric quantity in the storage unit 512.

圖7(b)係表示電量計600之構成。電量計600之一例為智慧型儀錶。感測器612測量於住宅等用戶使用之電量。電量之測量只要使用公知之技術即可,故而此處省略說明。處理部610自感測器612受理電量之測量結果。終端裝置300若接收到來自通信裝置100之第1信號,則將電量之測量結果之收集指示輸出至處理部610。處理部610若受理指示,則將電量之測量結果輸出至處理部610。終端裝置300將電量之測量結果形成為加密資料發送第2信號。 FIG. 7(b) shows the structure of the electricity meter 600. An example of the fuel gauge 600 is a smart meter. The sensor 612 measures the amount of electricity used by users such as houses. The measurement of the electric quantity only needs to use a well-known technique, so the explanation is omitted here. The processing unit 610 receives the measurement result of the electric quantity from the sensor 612. When the terminal device 300 receives the first signal from the communication device 100, it outputs a collection instruction of the measurement result of the electric quantity to the processing unit 610. If the processing unit 610 accepts the instruction, it outputs the measurement result of the electric quantity to the processing unit 610. The terminal device 300 converts the measurement result of the electric quantity into encrypted data and transmits the second signal.

本發明中之裝置、系統、或方法之主體具備電腦。藉由該電腦執行程式,而實現本發明中之裝置、系統、或方法之主體之功能。電腦係具備依照程式動作之處理器作為主要之硬體構成。處理器只要可藉由執行程式而實現功能,則其種類不限。處理器由包含半導體積體電路(IC)或LSI(Large Scale Integration,大規模積體電路)之1個或複數個電子電路 構成。複數個電子電路可積體於1個晶片,亦可設置於複數個晶片。複數個晶片可集中於1個裝置,亦可設置於複數個裝置。程式記錄於電腦能夠讀取之ROM(Read Only Memory,唯讀記憶體)、光碟、硬碟驅動器等非暫時性記錄媒體。程式可預先儲存於記錄媒體,亦可經由包含網際網路等之廣域通信網而供給至記錄媒體。 The main body of the device, system, or method in the present invention has a computer. The computer executes the program to realize the functions of the main body of the device, system, or method of the present invention. The computer is equipped with a processor that operates in accordance with the program as the main hardware structure. The type of the processor is not limited as long as it can realize the function by executing the program. The processor consists of one or more electronic circuits including semiconductor integrated circuits (IC) or LSI (Large Scale Integration) constitute. A plurality of electronic circuits can be integrated on one chip or can be arranged on a plurality of chips. Multiple chips can be concentrated in one device, or can be installed in multiple devices. Programs are recorded on non-transitory recording media such as ROM (Read Only Memory), optical discs, and hard disk drives that can be read by the computer. The program can be stored in a recording medium in advance, or can be supplied to the recording medium via a wide area communication network including the Internet.

對以上之構成之通信系統1000之動作進行說明。圖8係表示通信裝置100之資料之取得步驟之流程圖。控制部120特定對於終端裝置300之第1識別資訊、第2識別資訊(S100)。發送部132將第1識別資訊設定於發送源埠號,發送使加密資料包含第2識別資訊之訊框(S102)。控制部120自於接收部134接收之訊框擷取目的地埠號之第1識別資訊、第2識別資訊(S104)。於已擷取之第1識別資訊、第2識別資訊為已特定之第1識別資訊、第2識別資訊之情形時(S106之是),控制部120取得資料(S108)。於已擷取之第1識別資訊、第2識別資訊並非已特定之第1識別資訊、第2識別資訊之情形時(S106之否),結束處理。 The operation of the communication system 1000 configured as above will be described. FIG. 8 is a flowchart showing the steps of obtaining data of the communication device 100. The control unit 120 specifies the first identification information and the second identification information for the terminal device 300 (S100). The sending unit 132 sets the first identification information to the sending source port number, and sends a frame in which the encrypted data includes the second identification information (S102). The control unit 120 extracts the first identification information and the second identification information of the destination port number from the frame received by the receiving unit 134 (S104). When the extracted first identification information and second identification information are specified first identification information and second identification information (Yes in S106), the control unit 120 obtains the data (S108). When the first identification information and the second identification information that have been extracted are not the first identification information and the second identification information that have been specified (No in S106), the process is ended.

其次對變化例進行說明。此前,針對每個中繼裝置200形成群組400,針對每個群組400分配埠號。即,對不同之網路中所包含之終端裝置300分配不同之埠號。複數個終端裝置300亦可全部包含於同一網路。此時,於圖1所示之通信系統1000,亦可不包含中繼裝置200,亦可包含不具有閘道器之功能之中繼裝置200。 Next, the modified example will be explained. Previously, a group 400 was formed for each relay device 200, and a port number was assigned to each group 400. That is, the terminal devices 300 included in different networks are assigned different port numbers. A plurality of terminal devices 300 can also be all included in the same network. At this time, the communication system 1000 shown in FIG. 1 may not include the relay device 200, or may include the relay device 200 without the function of a gateway.

圖9係表示通信部130中之埠號之分配。其與圖4相同地表示,但不包 含中繼裝置200。此處,控制部120例如亦以對第1群組400a分配埠號「49152」之方式,針對每個群組400分配埠號。另一方面,由於各終端裝置300包含於同一網路中,故而亦存在控制部120將1個群組400中所包含之終端裝置300移至不同之群組400之情況。控制部120例如基於能夠使用之埠號之數量,以使各群組400中所包含之終端裝置300之數量接近均勻之方式,將複數個終端裝置300分類為2個以上之群組400之各者。例如,於終端裝置300之數量為「100000」台,群組400之數量為「10000」之情形時,控制部120使1個群組400包含10台終端裝置300。 FIG. 9 shows the allocation of port numbers in the communication unit 130. It is the same as Figure 4, but does not include With relay device 200. Here, the control unit 120 also assigns a port number to each group 400 by assigning a port number "49152" to the first group 400a, for example. On the other hand, since each terminal device 300 is included in the same network, the control unit 120 may also move the terminal device 300 included in one group 400 to a different group 400. For example, the control unit 120 classifies the plurality of terminal devices 300 into two or more groups 400 based on the number of available port numbers so that the number of terminal devices 300 included in each group 400 is nearly uniform. By. For example, when the number of terminal devices 300 is "100000" and the number of group 400 is "10000", the control unit 120 makes one group 400 include 10 terminal devices 300.

根據本實施例,由於對包含1台以上之終端裝置300之每個群組400分配埠號,故而可將來自分配有不同之埠號之終端裝置300之資料並列地處理。又,由於將來自分配有不同之埠號之終端裝置300之資料並列地處理,故而可使處理高速化。又,由於針對每個群組400分配埠號,故而即便終端裝置300之數量增加,亦可限制所需要之埠號之數量。又,由於針對每個群組400分配埠號,故而可一面使用數量有限之埠號一面使處理高速化。 According to this embodiment, since a port number is assigned to each group 400 including more than one terminal device 300, data from terminal devices 300 assigned different port numbers can be processed in parallel. In addition, since the data from the terminal devices 300 assigned with different port numbers are processed in parallel, the processing speed can be increased. In addition, since the port number is allocated to each group 400, even if the number of terminal devices 300 increases, the number of required port numbers can be limited. In addition, since the port number is allocated to each group 400, it is possible to increase the processing speed while using a limited number of port numbers.

又,由於將連接於同一中繼裝置200之1個以上之終端裝置300分類為同一群組400,故而可針對每個中繼裝置200執行處理。又,由於針對每個中繼裝置200執行處理,故而可使處理簡單。又,基於能夠連接於中繼裝置200之終端裝置300之數量,限制1個群組400中所包含之終端裝置300之數量,故而可將終端裝置300之數量限制為中繼裝置200之收容台數以下。又,由於將終端裝置300之數量限制為中繼裝置200之收容台數以 下,故而可使每個埠號之終端裝置300之檢索處理簡單。 Moreover, since one or more terminal devices 300 connected to the same relay device 200 are classified into the same group 400, processing can be performed for each relay device 200. In addition, since the processing is executed for each relay device 200, the processing can be simplified. Furthermore, based on the number of terminal devices 300 that can be connected to the relay device 200, the number of terminal devices 300 included in a group 400 is limited, so the number of terminal devices 300 can be limited to the receiving stations of the relay device 200 Below the number. In addition, since the number of terminal devices 300 is limited to the number of relay devices 200 Therefore, the retrieval process of the terminal device 300 for each port number can be simplified.

又,基於能夠使用之埠號之數量,以使各群組400中所包含之終端裝置300之數量接近之方式,將複數個終端裝置300分類為2個以上之群組400之各者,故而可使每個埠號之終端裝置300之檢索處理簡單。又,由於自發送部132發送之第1信號中包含埠號,故而可動態地分配埠號。又,由於使用TCP中之埠號,故而可使用於TCP/IP。又,由於通信裝置100搭載於伺服器500,故而可收集來自電量計600之電力之測量結果。 Furthermore, based on the number of usable port numbers, the plurality of terminal devices 300 are classified into two or more groups 400 in such a way that the number of terminal devices 300 included in each group 400 approaches. The retrieval processing of the terminal device 300 for each port number can be simplified. In addition, since the first signal sent from the sending unit 132 includes a port number, the port number can be dynamically assigned. In addition, since the port number in TCP is used, it can be used for TCP/IP. In addition, since the communication device 100 is mounted on the server 500, the measurement result of the electric power from the electricity meter 600 can be collected.

本發明之一態樣之概要如下所述。本發明之一態樣之通信裝置100係與終端裝置300進行通信之通信裝置100,且具備:發送部132,其對複數個終端裝置300之各者發送第1信號;接收部134,其自經發送部132發送了第1信號之複數個終端裝置300之各者接收第2信號,作為對於第1信號之應答;及控制部120,其規定2個以上之包含1台以上之終端裝置300之群組400,並且將複數個終端裝置300分類為2個以上之群組400之各者,且針對每個群組400分配非加密之識別資訊,藉此使用識別資訊使接收部134接收第2信號。 The outline of one aspect of the present invention is as follows. The communication device 100 of one aspect of the present invention is the communication device 100 that communicates with the terminal device 300, and includes: a transmitting unit 132 that transmits a first signal to each of the plurality of terminal devices 300; Each of the plurality of terminal devices 300 that have transmitted the first signal via the transmission unit 132 receives the second signal as a response to the first signal; and the control unit 120 specifies two or more terminal devices 300 including one or more And classify a plurality of terminal devices 300 into two or more groups 400, and assign unencrypted identification information to each group 400, thereby using the identification information to make the receiving unit 134 receive the first 2Signal.

本通信裝置100與複數個終端裝置300之間之通信係藉由2個以上之中繼裝置200之至少1者而中繼,控制部120亦可將連接於同一中繼裝置200之1個以上之終端裝置300分類為同一群組400。 The communication between the communication device 100 and a plurality of terminal devices 300 is relayed by at least one of two or more relay devices 200, and the control unit 120 can also connect to more than one of the same relay device 200 The terminal devices 300 are classified into the same group 400.

控制部120亦可基於能夠連接於中繼裝置200之終端裝置300之數量, 限制1個群組400中所包含之終端裝置300之數量。 The control unit 120 may also be based on the number of terminal devices 300 that can be connected to the relay device 200, The number of terminal devices 300 included in one group 400 is limited.

控制部120亦可基於能夠使用之識別資訊之數量,以使各群組400中所包含之終端裝置300之數量接近之方式,將複數個終端裝置300分類為2個以上之群組400之各者。 The control unit 120 may also classify the plurality of terminal devices 300 into two or more groups 400 based on the number of available identification information so that the number of terminal devices 300 included in each group 400 is close. By.

自發送部132發送之第1信號包含識別資訊。 The first signal sent from the sending unit 132 includes identification information.

控制部120中之識別資訊亦可為傳輸層協定(TCP:Transmission Control Protocol或UDP:User Datagram Protocol)中之埠號。 The identification information in the control unit 120 may also be a port number in a transmission layer protocol (TCP: Transmission Control Protocol or UDP: User Datagram Protocol).

本通信裝置100係自複數個終端裝置300之各者收集測量結果之伺服器500,發送部132發送測量結果之發送之要求信號作為第1信號,接收部134亦可接收包含測量結果之資料作為第2信號。 The communication device 100 is a server 500 that collects measurement results from each of a plurality of terminal devices 300. The sending unit 132 sends a request signal for sending the measurement results as the first signal, and the receiving unit 134 can also receive data containing the measurement results as the first signal. The second signal.

本發明之另一態樣係通信系統1000。該通信系統1000具備:複數個終端裝置300;及通信裝置100,其與複數個終端裝置300之各者進行通信。通信裝置100具備:發送部132,其對複數個終端裝置300之各者發送第1信號;接收部134,其自發送部132發送了第1信號之複數個終端裝置300之各者接收第2信號,作為對於第1信號之應答;及控制部120,其規定2個以上之包含1台以上之終端裝置300之群組400,並且將複數個終端裝置300分類為2個以上之群組400之各者,且針對每個群組400分配非加密之識別資訊,藉此使用識別資訊使接收部134接收第2信號。 Another aspect of the present invention is the communication system 1000. The communication system 1000 includes: a plurality of terminal devices 300; and a communication device 100 that communicates with each of the plurality of terminal devices 300. The communication device 100 includes: a transmitting unit 132 that transmits a first signal to each of the plurality of terminal devices 300; and a receiving unit 134 that receives the second signal from each of the plurality of terminal devices 300 that have transmitted the first signal from the transmitting unit 132 Signal, as a response to the first signal; and the control unit 120, which defines two or more groups 400 including one or more terminal devices 300, and classifies the plurality of terminal devices 300 into two or more groups 400 Each of them is assigned unencrypted identification information for each group 400, so that the receiving unit 134 receives the second signal using the identification information.

以上,基於實施例對本發明進行了說明。業者應理解該實施例為例示,其等之各構成要素或者各處理製程之組合能夠進行各種變化例,又此種變化例亦處於本發明之範圍。 Above, the present invention has been described based on the embodiments. The industry practitioner should understand that this embodiment is an example, and various combinations of its constituent elements or processing processes can be modified, and such modifications are also within the scope of the present invention.

於本實施例中,使用埠號作為第1識別資訊。然而,並不限定於此,例如,亦可使用埠號以外之非加密之識別資訊作為第1識別資訊。根據本變化例,可提高構成之自由度。 In this embodiment, the port number is used as the first identification information. However, it is not limited to this. For example, non-encrypted identification information other than the port number may be used as the first identification information. According to this modification, the freedom of composition can be improved.

於本實施例中,通信裝置100搭載於電量計600。然而,並不限定於此,例如,亦可於電量計600以外之電子設備搭載通信裝置100。根據本變化例,可提高構成之自由度。 In this embodiment, the communication device 100 is mounted on the electricity meter 600. However, it is not limited to this. For example, the communication device 100 may be mounted on an electronic device other than the electricity meter 600. According to this modification, the freedom of composition can be improved.

100‧‧‧通信裝置 100‧‧‧Communication device

110‧‧‧記憶部 110‧‧‧Memory Department

112‧‧‧介面部 112‧‧‧Face

120‧‧‧控制部 120‧‧‧Control Department

130‧‧‧通信部 130‧‧‧Ministry of Communications

132‧‧‧發送部 132‧‧‧Delivery Department

134‧‧‧接收部 134‧‧‧Receiving Department

300‧‧‧終端裝置 300‧‧‧Terminal device

310‧‧‧通信部 310‧‧‧Ministry of Communications

320‧‧‧控制部 320‧‧‧Control Department

330‧‧‧取得部 330‧‧‧Acquisition Department

Claims (7)

一種通信裝置,其特徵在於,其係與終端裝置進行通信者,且具備:發送部,其對複數個終端裝置之各者發送第1信號;接收部,其自經上述發送部發送了第1信號之上述複數個終端裝置之各者接收第2信號,作為對於第1信號之應答;及控制部,其規定2個以上之包含1台以上之終端裝置之群組,並且將上述複數個終端裝置分類為2個以上之群組之各者,且針對每個群組分配非加密且為傳輸層協定(TCP:Transmission Control Protocol或UDP:User Datagram Protocol)中之埠號(port number),藉此使用上述埠號使上述接收部接收第2信號;且上述控制部係:使包含於相同群組之2個以上之終端裝置使用相同之埠號,且使包含於不同群組之終端裝置彼此使用互不相同之埠號。 A communication device characterized in that it is a person communicating with a terminal device, and includes: a transmission unit that transmits a first signal to each of a plurality of terminal devices; and a reception unit that transmits the first signal via the transmission unit Each of the above-mentioned plurality of terminal devices of the signal receives the second signal as a response to the first signal; and the control unit specifies two or more groups including one or more terminal devices, and the above-mentioned plurality of terminals The device is classified into each of two or more groups, and each group is assigned an unencrypted port number in the transport layer protocol (TCP: Transmission Control Protocol or UDP: User Datagram Protocol). The above-mentioned port number is used to enable the receiving unit to receive the second signal; and the above-mentioned control unit is to make two or more terminal devices included in the same group use the same port number, and make the terminal devices included in different groups each other Use different port numbers. 如請求項1之通信裝置,其中本通信裝置與上述複數個終端裝置之間之通信係藉由2個以上之中繼裝置之至少1者而中繼,上述控制部將連接於同一中繼裝置之1個以上之終端裝置分類為同一群組。 For example, the communication device of claim 1, wherein the communication between the communication device and the above-mentioned plural terminal devices is relayed by at least one of two or more relay devices, and the above-mentioned control unit will be connected to the same relay device More than one terminal device is classified into the same group. 如請求項2之通信裝置,其中上述控制部基於能夠連接於上述中繼裝置之終端裝置之數量,限制1個群組中所包含之終端裝置之數量。 For the communication device of claim 2, wherein the control unit limits the number of terminal devices included in a group based on the number of terminal devices that can be connected to the relay device. 如請求項1之通信裝置,其中上述控制部基於能夠使用之上述埠號之數量,以使各群組中所包含之終端裝置之數量接近之方式,將上述複數個終端裝置分類為2個以上之群組之各者。 Such as the communication device of claim 1, wherein the control unit classifies the plurality of terminal devices into two or more in a manner that the number of terminal devices included in each group approximates based on the number of the above-mentioned port numbers that can be used Each of the group. 如請求項1至4中任一項之通信裝置,其中自上述發送部發送之第1信號包含上述埠號。 Such as the communication device of any one of claim 1 to 4, wherein the first signal sent from the sending unit includes the port number. 如請求項1之通信裝置,其中本通信裝置係自上述複數個終端裝置之各者收集測量結果之伺服器,上述發送部發送測量結果之發送之要求信號作為上述第1信號,上述接收部接收包含測量結果之資料作為上述第2信號。 For example, the communication device of claim 1, wherein the communication device is a server that collects measurement results from each of the plurality of terminal devices, the sending unit sends a request signal for sending the measurement results as the first signal, and the receiving unit receives The data including the measurement result is used as the second signal above. 一種通信系統,其特徵在於具備:複數個終端裝置;及通信裝置,其與上述複數個終端裝置之各者進行通信;且上述通信裝置具備:發送部,其對上述複數個終端裝置之各者發送第1信號;接收部,其自經上述發送部發送了第1信號之上述複數個終端裝置之各者接收第2信號,作為對於第1信號之應答;及控制部,其規定2個以上之包含1台以上之終端裝置之群組,並且將上述複數個終端裝置分類為2個以上之群組之各者,針對每個群組分配非加密且為傳輸層協定(TCP:Transmission Control Protocol或UDP:User Datagram Protocol)中之埠號,藉此使用上述埠號使上述接收部接收第2信 號;上述控制部係:使包含於相同群組之2個以上之終端裝置使用相同之埠號,且使包含於不同群組之終端裝置彼此使用互不相同之埠號。A communication system is characterized by comprising: a plurality of terminal devices; and a communication device for communicating with each of the plurality of terminal devices; and the communication device includes: a transmission unit for communicating with each of the plurality of terminal devices A first signal is transmitted; a receiving unit that receives a second signal from each of the plurality of terminal devices that have transmitted the first signal via the transmitting unit as a response to the first signal; and a control unit, which specifies two or more It includes a group of more than one terminal device, and the above-mentioned plural terminal devices are classified into two or more groups, and each group is assigned non-encrypted and a transmission layer protocol (TCP: Transmission Control Protocol). Or UDP: the port number in the User Datagram Protocol), by which the above-mentioned port number is used to make the above-mentioned receiving unit receive the second signal The above-mentioned control unit is to make two or more terminal devices included in the same group use the same port number, and make the terminal devices included in different groups use different port numbers from each other.
TW108120862A 2018-06-21 2019-06-17 Communication device, communication system TWI707568B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018118271A JP7149513B2 (en) 2018-06-21 2018-06-21 communication device, communication system
JP2018-118271 2018-06-21

Publications (2)

Publication Number Publication Date
TW202002593A TW202002593A (en) 2020-01-01
TWI707568B true TWI707568B (en) 2020-10-11

Family

ID=69097289

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108120862A TWI707568B (en) 2018-06-21 2019-06-17 Communication device, communication system

Country Status (2)

Country Link
JP (1) JP7149513B2 (en)
TW (1) TWI707568B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009267622A (en) * 2008-04-23 2009-11-12 Yamaha Corp Data distribution system and data distribution method
US20090310541A1 (en) * 2007-03-29 2009-12-17 Fujitsu Limited Communication system, communication method in communication system, and relay device
TWI361384B (en) * 2007-04-20 2012-04-01 Konami Digital Entertainment Introduction system, method for introduction, and information recording medium
CN102763475A (en) * 2010-02-19 2012-10-31 京瓷株式会社 Base station, relay device and communication system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11144881A (en) * 1997-11-11 1999-05-28 Toshiba Corp Lighting monitoring system
JP2004199578A (en) 2002-12-20 2004-07-15 Nippon Telegr & Teleph Corp <Ntt> Content delivery method, device, program, and storage medium
JP3922566B2 (en) 2003-01-28 2007-05-30 日本電信電話株式会社 Providing dedicated port service
US9699500B2 (en) 2013-12-13 2017-07-04 Qualcomm Incorporated Session management and control procedures for supporting multiple groups of sink devices in a peer-to-peer wireless display system
JP2015162792A (en) 2014-02-27 2015-09-07 オムロン株式会社 wireless communication system, wireless communication device, wireless communication method, and program
US10805880B2 (en) 2016-08-29 2020-10-13 Mitsubishi Electric Corporation Communication device, communication method, and computer readable medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090310541A1 (en) * 2007-03-29 2009-12-17 Fujitsu Limited Communication system, communication method in communication system, and relay device
TWI361384B (en) * 2007-04-20 2012-04-01 Konami Digital Entertainment Introduction system, method for introduction, and information recording medium
JP2009267622A (en) * 2008-04-23 2009-11-12 Yamaha Corp Data distribution system and data distribution method
CN102763475A (en) * 2010-02-19 2012-10-31 京瓷株式会社 Base station, relay device and communication system

Also Published As

Publication number Publication date
JP2019220026A (en) 2019-12-26
JP7149513B2 (en) 2022-10-07
TW202002593A (en) 2020-01-01

Similar Documents

Publication Publication Date Title
TWI356603B (en) Method for reducing cross cell interference in w
WO2017005223A1 (en) Information sharing method of smart electricity meter, smart electricity meter and acquisition router
CN104144118B (en) Communicator, managing device and processing method
JP2018534871A (en) Internet of Things System Applied to Intelligent Gas Meter and Information Transmission Method
CN101316230A (en) Virtual network connection system, apparatus and medium
CN101142554A (en) Communication system, information processing system, connection server, processing server, information processing device, information processing method, and program
US8175256B2 (en) Call center system and method for obtaining interface invoke information
TWI707568B (en) Communication device, communication system
CN108268329A (en) A kind of data processing method and device of the grouting automatic recorder network terminal
US6954714B2 (en) System and associated method for measuring communication data volume and type thereof
JP2006211113A (en) Information collecting system and base station used therefor
CN107786448A (en) The method and apparatus for establishing the forward-path of Business Stream
TW201212592A (en) A method, a system, a server, a device, a computer program and a computer program product for transmitting data in a computer network
JP3548157B2 (en) Relay device, address conversion control method, and program
CN112154689B (en) Communication method
Fakhrazeev et al. Big telemetry data processing in the scope of modern Internet of Things
CN107529190B (en) User data acquisition system and method
JP5408335B2 (en) Mobile device, packet filtering method, and packet filtering program
JP5487137B2 (en) Information distribution control device and communication system
JP2007201695A (en) Data packet relaying apparatus
CN103023763A (en) Communication relay apparatus, data processing system, and communication relay method
CN107332860B (en) Data transmission method and storage medium
KR20170090206A (en) Method for transmitting and receiving protocol packet using packet processor based LINUX in distributed packet transport network
JP5487138B2 (en) Information value digitizing apparatus and communication system
WO2022137373A1 (en) Viewing information management method, viewing information management device, and program