JP2018098620A - Collision prevention method of communication terminal device - Google Patents
Collision prevention method of communication terminal device Download PDFInfo
- Publication number
- JP2018098620A JP2018098620A JP2016240800A JP2016240800A JP2018098620A JP 2018098620 A JP2018098620 A JP 2018098620A JP 2016240800 A JP2016240800 A JP 2016240800A JP 2016240800 A JP2016240800 A JP 2016240800A JP 2018098620 A JP2018098620 A JP 2018098620A
- Authority
- JP
- Japan
- Prior art keywords
- time
- data
- communication terminal
- terminal device
- rtc
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
- Electric Clocks (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
本発明は、通信端末装置からUDP/IPデータを送信する場合のコリジョン防止方法に関するものである。 The present invention relates to a collision prevention method when UDP / IP data is transmitted from a communication terminal device.
UDP/IP送信する複数の通信端末装置から1つのサーバに対して一斉にデータ送信する場合、コリジョン(衝突)が発生する。図3は複数の通信端末装置から1つのサーバ3にデータ伝送する概要を示したもので、図3では通信端末装置1として端末番号100〜199を例として示しているが、0〜9999が設定される。時刻送信元装置2は、通信端末装置1の起動時に、下位機器であるサーバまたは携帯電話通信モジュールより現在時刻を送信する。
When data is simultaneously transmitted from a plurality of communication terminal apparatuses that perform UDP / IP transmission to one server, a collision (collision) occurs. FIG. 3 shows an outline of data transmission from a plurality of communication terminal devices to one
図3の例ではデータ送信周期を10分周期とした場合で、時刻データ01:00:00の送信で各通信端末装置1の実時間クロックRTCにおいてRTCtime:01:00:00をセットし、10分後にRTCalarm:01:10:00をセットする。各通信端末装置1は一斉にデータ送信先のサーバ3に対して時刻01:00:00で01:00:00の下位機器のデータを送信する。この同時データ送信時にコリジョンが発生し易くなっている。
なお、コリジョン発生の防止対策としては特許文献1が公知となっている。
In the example of FIG. 3, when the data transmission cycle is 10 minutes, RTCtime: 01: 00: 00 is set in the real-time clock RTC of each
図3で示す通信端末装置1による通信システムにおいて、低消費電力を実現するために、通信端末装置1のCPUをRTCにより定期的に起動してUDP/IPデータをサーバ3に一斉送信する場合、送信タイミングが重なってコリジョンが発生し易くなっている。コリジョンを防止するためには、UDP/IPを使用せずに、TCP/IPにすることでコリジョンは起こらなくなるが、TCP/IPはUDP/IPに比べて通信データ量が増加して通信料がアップする。
In the communication system using the
本発明が目的とするところはデータ送信にUDP/IPを使用したときのコリジョンの防止方法を提供することにある。 An object of the present invention is to provide a collision prevention method when UDP / IP is used for data transmission.
本発明は、UDP/IPおよびRTC機能を有する複数の通信端末装置から1つのサーバに対し、時刻送信元装置からの定周期の時刻データに基づいてデータを送信する通信システムでのデータ送信方法において、
前記複数の通信端末装置毎に固有の端末番号を設け、
前記定周期の時刻データに対して端末番号順に時間差を持たせたRTC機能の時刻設定をすると共に、
各通信端末装置のRTC機能でのアラーム設定は、前記定周期の時刻データに対して所定の一定遅れ時間に設定され、
各通信端末装置から1つのサーバに対してUDP/IPにて送信する定周期データは、前記RTC機能に設定された時刻データ時に下位機器より取得されたデータを端末番号順に時間差を持って送信するものである。
The present invention relates to a data transmission method in a communication system in which data is transmitted from a plurality of communication terminal devices having UDP / IP and RTC functions to one server based on time-period data from a time transmission source device. ,
A unique terminal number is provided for each of the plurality of communication terminal devices,
While setting the time of the RTC function with a time difference in order of the terminal number with respect to the time data of the fixed period,
The alarm setting in the RTC function of each communication terminal device is set to a predetermined constant delay time with respect to the time data of the fixed period,
Periodic data transmitted from each communication terminal device to one server by UDP / IP transmits data acquired from a lower-level device at the time data set in the RTC function with a time difference in order of terminal numbers. Is.
また、端末番号の付された各通信端末装置は、
前記RTC機能に設定されたアラームにより通信端末装置に有するCPUを起床するステップ、
下位機器のサーバまたは携帯電話通信モジュールより現在時刻でのデータを取得するステップ、
前記RTCの設定時刻を、前記定周期データの送信時刻にセットするステップ、
前記下位機器より取り込んだデータを、定周期データとしてUDP/IPにて送信先のサーバに送信するステップ、
前記RTC機能にアラームをセットし、前記CPUを停止するステップ、
で定周期データを送信するものである。
In addition, each communication terminal device with a terminal number is
Wake up the CPU in the communication terminal device by an alarm set in the RTC function;
Obtaining data at the current time from a lower-level server or mobile phone communication module;
Setting a set time of the RTC to a transmission time of the periodic data;
Transmitting the data fetched from the lower device to the destination server by UDP / IP as the periodic data;
Setting an alarm in the RTC function and stopping the CPU;
In this case, the periodic data is transmitted.
以上のとおり、本発明によれば、各通信端末装置からサーバに送信するUDP/IPのコリジョンが軽減される。また、各通信端末装置のCPU起動時間に無駄な待ち時間がなく、低消費電力化を図ることができる。 As described above, according to the present invention, the UDP / IP collision transmitted from each communication terminal device to the server is reduced. In addition, there is no useless waiting time in the CPU activation time of each communication terminal device, and power consumption can be reduced.
図1は、複数の通信端末装置から1つのサーバにデータ伝送する本発明の概要を示したもので、システム構成は図3と同様でデータ送信周期も10分と同様であるが、複数の通信端末装置1にそれぞれ固有の端末番号を設け、RTCの時間自体を定周期データに対して端末番号に合わせて調節(図1の例では端末番号毎に1秒の時間差)し、RTCアラーム機能は、例えば目覚まし時計と同様に1分単位の設定による時間差をもたせて通信端末装置のCPUを起床し、UDP/IPデータを送信する。なお、時間差信号の1秒は、100ミリ秒などの任意の時間に調整可能としている。
FIG. 1 shows an outline of the present invention in which data is transmitted from a plurality of communication terminal devices to one server. The system configuration is the same as in FIG. 3 and the data transmission cycle is the same as 10 minutes. Each
図1において、定周期データを時刻01:00:00としたとき、端末番号100の通信端末装置1では、時刻00:59:10に00:59:10時のデータを時刻01:00:00のデータとしてサーバ3に送信し、端末番号150の通信端末装置1では、時刻01:00:00に01:00:00時のデータを時刻01:00:00のデータとしてサーバ3に送信する。また、端末番号199の通信端末装置1では、時刻01:00:49に01:00:49時のデータを時刻01:00:00のデータとしてサーバ3に送信する。
In FIG. 1, when the periodic data is time 01:00:00, the
時刻送信元装置2から送信される定周期時刻データが01:00:00であるとすると、サーバ3に対する定周期データ送信に1秒の時間差を持たせるために端末番号100のRTC機能では、RTCtime:01:00:50で時刻送信元装置2から時刻信号01:00:00を時刻信号としてセットし、01:00:00の10分後にRTCalarm:01:10:00をアラーム時間としてセットする。
If the periodic time data transmitted from the time
端末番号150の通信端末装置1においては、端末番号100のRTCtime:01:00:50の50秒前に時刻送信元装置2から時刻信号01:00:00をRTCtime:01:00:00時刻信号としてセットし、RTCalarm:01:10:00をアラーム時間としてセットする。同様に端末番号199の通信端末装置1においては、端末番号150のRTCtime:01:00:00の49秒前に時刻送信元装置2から時刻信号01:00:00をRTCtime:01:00:00としてセットし、RTCalarm:01:10:00をセットする。なお、図1の例では01:00:00のデータとしては±50秒のずれを許容するとしている。
In
図2は例として端末番号100のソフトウェアによるフローチャートを示したものである。S1では、通信端末装置のRTC機能にセットされたRTCアラーム時刻の01:00:00にCPUを起床する。S2では下位機器であるサーバ、または携帯電話通信モジュールより現在時刻00:59:10を取得し、RTC時刻を01:00:00に設定する(S3)。S4では、下位機器よりのアナログ入力,ディジタル入力の各データを取り込み、00:59:10時のデータを01:00:00の定周期データとしてUDP/IPにてサーバ3に送信する。S5では、RTCアラームとして01:10:00をセットした後、S6でCPUを停止する。
FIG. 2 shows a flowchart by software of terminal number 100 as an example. In S1, the CPU is woken up at 01:00:00 of the RTC alarm time set in the RTC function of the communication terminal device. In S2, the current time 00:59:10 is acquired from the server or the mobile phone communication module, which is a lower device, and the RTC time is set to 01:00:00 (S3). In S4, each data of analog input and digital input from the lower device is fetched, and the data at 00:59:10 is transmitted to the
通信端末装置のCPUの停止中で次の定周期データ送信時刻のS5でセットされたRTCアラーム時刻01:10:00になると、CPUを起床(S7で)する。S8ではサーバ、または携帯電話通信モジュールの下位機器より現在時刻01:09:10を取得し、RTC時刻を01:10:00に設定する(S9)。S10では、下位機器よりのアナログ入力,ディジタル入力の各データを取り込んで01:09:10のデータを01:10:00の定周期データとしてUDP/IPにてサーバ3に送信し、S11でRTCアラームとして01:20:00をセットした後、S12でCPUを停止する。以下同様のステップを繰返す。
When the CPU of the communication terminal apparatus is stopped and the RTC alarm time 01:10:00 set in S5 of the next periodic data transmission time is reached, the CPU is woken up (in S7). In S8, the current time 01:09:10 is acquired from the server or the lower device of the mobile phone communication module, and the RTC time is set to 01:10:00 (S9). In S10, the data of the analog input and the digital input from the lower device are taken and the data of 01:09:10 is transmitted to the
以上本発明によれば、複数の通信端末装置から1つのサーバにデータを送信するとき、各通信端末装置に合わせてRTCの時間を調節してRTCアラーム時刻を設定し、アラーム時刻でCPUを起床してサーバにUDP/IPにて送信する。これにより、各通信端末装置からサーバに送信するUDP/IPのコリジョンが軽減される。また、各通信端末装置のCPU起動時間に無駄な待ち時間がなく、低消費電力化を図ることができる。 As described above, according to the present invention, when data is transmitted from a plurality of communication terminal devices to one server, the RTC time is adjusted according to each communication terminal device to set the RTC alarm time, and the CPU is woken up at the alarm time. And send it to the server via UDP / IP. Thereby, the UDP / IP collision transmitted from each communication terminal device to the server is reduced. In addition, there is no useless waiting time in the CPU activation time of each communication terminal device, and power consumption can be reduced.
1… 通信端末装置
2… 時刻送信元装置、
3… データ送信先サーバ
DESCRIPTION OF
3. Data transmission destination server
Claims (2)
前記複数の通信端末装置毎に固有の端末番号を設け、
前記定周期の時刻データに対して端末番号順に時間差を持たせたRTC機能の時刻設定をすると共に、
各通信端末装置のRTC機能でのアラーム設定は、前記定周期の時刻データに対して所定の一定遅れ時間に設定され、
各通信端末装置から1つのサーバに対してUDP/IPにて送信する定周期データは、前記RTC機能に設定された時刻データ時に下位機器より取得されたデータを端末番号順に時間差を持って送信することを特徴とした通信端末装置のコリジョン防止方法。 In a data transmission method in a communication system that transmits data to a single server from a plurality of communication terminal devices having UDP / IP and RTC functions based on time data of a fixed period from a time transmission source device,
A unique terminal number is provided for each of the plurality of communication terminal devices,
While setting the time of the RTC function with a time difference in order of the terminal number with respect to the time data of the fixed period,
The alarm setting in the RTC function of each communication terminal device is set to a predetermined constant delay time with respect to the time data of the fixed period,
Periodic data transmitted from each communication terminal device to one server by UDP / IP transmits data acquired from a lower-level device at the time data set in the RTC function with a time difference in order of terminal numbers. The collision prevention method of the communication terminal device characterized by the above-mentioned.
前記RTC機能に設定されたアラームにより通信端末装置に有するCPUを起床するステップ、
下位機器のサーバまたは携帯電話通信モジュールより現在時刻でのデータを取得するステップ、
前記RTCの設定時刻を、前記定周期データの送信時刻にセットするステップ、
前記下位機器より取り込んだデータを、定周期データとしてUDP/IPにて送信先のサーバに送信するステップ、
前記RTC機能にアラームをセットし、前記CPUを停止するステップ、
で定周期データを送信することを特徴とした請求項1記載の通信端末装置のコリジョン防止方法。
Each communication terminal device to which the terminal number is attached,
Wake up the CPU in the communication terminal device by an alarm set in the RTC function;
Obtaining data at the current time from a lower-level server or mobile phone communication module;
Setting a set time of the RTC to a transmission time of the periodic data;
Transmitting the data fetched from the lower device to the destination server by UDP / IP as the periodic data;
Setting an alarm in the RTC function and stopping the CPU;
2. The method of preventing collision of a communication terminal apparatus according to claim 1, wherein the periodic data is transmitted by using the communication terminal apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016240800A JP2018098620A (en) | 2016-12-13 | 2016-12-13 | Collision prevention method of communication terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016240800A JP2018098620A (en) | 2016-12-13 | 2016-12-13 | Collision prevention method of communication terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2018098620A true JP2018098620A (en) | 2018-06-21 |
Family
ID=62634749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016240800A Pending JP2018098620A (en) | 2016-12-13 | 2016-12-13 | Collision prevention method of communication terminal device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2018098620A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004343407A (en) * | 2003-05-15 | 2004-12-02 | Toshiba Corp | Wireless lan system and its communication control method |
JP2014107762A (en) * | 2012-11-28 | 2014-06-09 | Panasonic Corp | Sensor data collection system |
-
2016
- 2016-12-13 JP JP2016240800A patent/JP2018098620A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004343407A (en) * | 2003-05-15 | 2004-12-02 | Toshiba Corp | Wireless lan system and its communication control method |
JP2014107762A (en) * | 2012-11-28 | 2014-06-09 | Panasonic Corp | Sensor data collection system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10891155B2 (en) | Wearable device task offloading to conserve processing resources | |
WO2017003337A1 (en) | Bluetooth low energy address resolving | |
EP3076290B1 (en) | Method and device for remotely updating application program | |
CN105260655B (en) | Method, device and system for starting protection of application program | |
CN105204632B (en) | Method for controlling intelligent mobile terminal to enter silent mode and wearable device | |
US9141944B2 (en) | Synchronization of alarms between devices | |
PH12020500450A1 (en) | Discontinuous reception method, network device and terminal device | |
MY197297A (en) | Event processing method and apparatus | |
EP2549792A4 (en) | Flow control method, device and system | |
WO2009051340A8 (en) | Framework device of mobile terminal and method for providing interoperability between components | |
JP2018098620A (en) | Collision prevention method of communication terminal device | |
US9930101B2 (en) | Receiving a communication event | |
CN106304284B (en) | Method and device for reducing power consumption of terminal | |
KR101716583B1 (en) | Time synchronization server, system and method | |
US9787493B2 (en) | Communication apparatus, control apparatus, and program | |
EP3176989A1 (en) | Digitmap configuration method, sip server, sip terminal and digitmap configuration system | |
JP2015228575A (en) | User equipment and base station | |
CN107493347B (en) | Remote notification method and device | |
JP2016206713A5 (en) | ||
RU2016147514A (en) | ADVANCED SAMPLE CLEANING FOR COMPOMATED DEVICES | |
JP6478714B2 (en) | Monitoring control system, server, client terminal, and monitoring control method | |
CN103685001B (en) | Zigbee rolling code encryptings central control network closes and the method for rolling code encrypting wireless transmission | |
CN105812546B (en) | Alarm clock control method and alarm clock control device | |
JP6400452B2 (en) | Information processing apparatus and computer program | |
WO2016177128A1 (en) | Shutdown detection method, device and core network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190926 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200702 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200707 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200902 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20210202 |