TWI707568B - Communication device, communication system - Google Patents
Communication device, communication system Download PDFInfo
- 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
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
本發明係關於一種執行通信之通信裝置、通信系統。 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).
[專利文獻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
通信裝置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
終端裝置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
中繼裝置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
圖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
介面部112係與通信裝置100外之介面,輸入或輸出特定之資訊。例如,於通信裝置100搭載於伺服器之情形時,介面部112受理來自複數個終端裝置300之各者之資料之收集指示,作為來自伺服器之資訊。介面部112將所輸入之資訊,例如資料之收集指示輸出至控制部120。
The
控制部120對通信部130中之通信處理進行控制。例如,控制部120於自介面部112受理了資料之收集指示之情形時,針對每個終端裝置300產生用以要求資料之發送之要求信號即第1信號。此時,控制部120將向各終端裝置300之路徑設定於第1信號。控制部120將已產生之第1信號輸出至發送部132。通信部130經由未圖示之中繼裝置200而執行與終端裝置300之通信。通信部130可執行有線通信,亦可執行無線通信。由於有線通信、無線通信如上所述,故而此處省略說明。發送部132若受理來自控制部120之第1信號,則對複數個終端裝置300之各者發送第1信號。
The
接收部134自經發送部132發送了第1信號之複數個終端裝置300之各者接收第2信號,作為對於第1信號之應答。第2信號包含資料。接收部134將已接收之第2信號輸出至控制部120。控制部120若自接收部134受理第2信號,則取得資料與終端裝置300之資訊之組合。控制部120作為對於自介面部112受理之資料之收集指示的應答,將資料與終端裝置300之資訊之組合輸出至介面部112。介面部112輸出資料與終端裝置300之資訊之組合,作為特定之資訊。
The receiving
圖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
若已接收之第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
於通信系統1000中,通信裝置100成為契機進行來自終端裝置300之資料之收集。此時,通信裝置100之通信部130為了接收作為資料之第2信號而使用TCP之埠號。如上所述,能夠使用之埠號之數量限制為「16383」。因此,於成為處理對象之終端裝置300之數量較多之情形時,若針對每個終端裝置300分配埠號,則埠號不足。另一方面,於對複數個終端裝置300使用1個埠號之情形時,若不結束對於1個終端裝置300之資料之收集處理,則無法執行對於下一個終端裝置300之資料之收集處理,故而導致收集之處理所需要之時間變長。以下,對用以即便成為處理對象之終端裝置300之數量較多亦可抑制收集處理所需要之時間變長之通信部
130中之處理進行說明。
In the
圖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
又,控制部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
進而,控制部120基於能夠連接於中繼裝置200之終端裝置300之數量,限制1個群組400中所包含之終端裝置300之數量。具體而言,以成為能夠連接於中繼裝置200之終端裝置300之數量以下之方式,限制1個群組400中所包含之終端裝置300之數量。
Furthermore, the
為了對使用此種埠號之通信裝置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
圖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
控制部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
又,對於第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
圖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
圖7(b)係表示電量計600之構成。電量計600之一例為智慧型儀錶。感測器612測量於住宅等用戶使用之電量。電量之測量只要使用公知之技術即可,故而此處省略說明。處理部610自感測器612受理電量之測量結果。終端裝置300若接收到來自通信裝置100之第1信號,則將電量之測量結果之收集指示輸出至處理部610。處理部610若受理指示,則將電量之測量結果輸出至處理部610。終端裝置300將電量之測量結果形成為加密資料發送第2信號。
FIG. 7(b) shows the structure of the
本發明中之裝置、系統、或方法之主體具備電腦。藉由該電腦執行程式,而實現本發明中之裝置、系統、或方法之主體之功能。電腦係具備依照程式動作之處理器作為主要之硬體構成。處理器只要可藉由執行程式而實現功能,則其種類不限。處理器由包含半導體積體電路(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
其次對變化例進行說明。此前,針對每個中繼裝置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
圖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
根據本實施例,由於對包含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
又,由於將連接於同一中繼裝置200之1個以上之終端裝置300分類為同一群組400,故而可針對每個中繼裝置200執行處理。又,由於針對每個中繼裝置200執行處理,故而可使處理簡單。又,基於能夠連接於中繼裝置200之終端裝置300之數量,限制1個群組400中所包含之終端裝置300之數量,故而可將終端裝置300之數量限制為中繼裝置200之收容台數以下。又,由於將終端裝置300之數量限制為中繼裝置200之收容台數以
下,故而可使每個埠號之終端裝置300之檢索處理簡單。
Moreover, since one or more
又,基於能夠使用之埠號之數量,以使各群組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
本發明之一態樣之概要如下所述。本發明之一態樣之通信裝置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
本通信裝置100與複數個終端裝置300之間之通信係藉由2個以上之中繼裝置200之至少1者而中繼,控制部120亦可將連接於同一中繼裝置200之1個以上之終端裝置300分類為同一群組400。
The communication between the
控制部120亦可基於能夠連接於中繼裝置200之終端裝置300之數量,
限制1個群組400中所包含之終端裝置300之數量。
The
控制部120亦可基於能夠使用之識別資訊之數量,以使各群組400中所包含之終端裝置300之數量接近之方式,將複數個終端裝置300分類為2個以上之群組400之各者。
The
自發送部132發送之第1信號包含識別資訊。
The first signal sent from the sending
控制部120中之識別資訊亦可為傳輸層協定(TCP:Transmission Control Protocol或UDP:User Datagram Protocol)中之埠號。
The identification information in the
本通信裝置100係自複數個終端裝置300之各者收集測量結果之伺服器500,發送部132發送測量結果之發送之要求信號作為第1信號,接收部134亦可接收包含測量結果之資料作為第2信號。
The
本發明之另一態樣係通信系統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
以上,基於實施例對本發明進行了說明。業者應理解該實施例為例示,其等之各構成要素或者各處理製程之組合能夠進行各種變化例,又此種變化例亦處於本發明之範圍。 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
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)
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)
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)
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 |
-
2018
- 2018-06-21 JP JP2018118271A patent/JP7149513B2/en active Active
-
2019
- 2019-06-17 TW TW108120862A patent/TWI707568B/en active
Patent Citations (4)
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 |