JP2017173971A - Information collection system, information collection method, and terminal device - Google Patents
Information collection system, information collection method, and terminal device Download PDFInfo
- Publication number
- JP2017173971A JP2017173971A JP2016056901A JP2016056901A JP2017173971A JP 2017173971 A JP2017173971 A JP 2017173971A JP 2016056901 A JP2016056901 A JP 2016056901A JP 2016056901 A JP2016056901 A JP 2016056901A JP 2017173971 A JP2017173971 A JP 2017173971A
- Authority
- JP
- Japan
- Prior art keywords
- information
- time information
- storage unit
- identification information
- stored
- 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
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0428—Safety, monitoring
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24024—Safety, surveillance
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Telephonic Communication Services (AREA)
- Debugging And Monitoring (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
本発明は、端末装置の情報をサーバによって収集する情報収集システム、情報収集方法、及び、端末装置に関する。 The present invention relates to an information collection system, an information collection method, and a terminal device that collect information about a terminal device using a server.
端末装置において発生する各種イベントに関連する情報(以下、「イベント情報」という。)を収集するシステムが知られている。イベント情報には、イベントの発生時刻を示す情報(以下、「時刻情報」という。)が含まれる場合がある。この場合、複数の端末装置から収集されたイベント情報のそれぞれの時刻情報に基づき、各端末装置におけるイベントの発生時刻を比較できる。 A system for collecting information related to various events that occur in a terminal device (hereinafter referred to as “event information”) is known. The event information may include information indicating the event occurrence time (hereinafter referred to as “time information”). In this case, it is possible to compare the event occurrence times in the terminal devices based on the time information of the event information collected from the plurality of terminal devices.
特許文献1に記載された画像形成装置は、SNTP(Simple Network Time Protocol)に基づいた通信をサーバとの間で実行し、サーバから時刻情報を取得する。画像形成装置は、取得された時刻情報に基づいて、現在時刻を記憶する。記憶された現在時刻は、画像形成装置の内部クロックのタイミングで更新される。画像形成装置は、印刷ジョブの発生時、記憶された現在時刻を印刷時刻として含む印刷ログを生成する。
The image forming apparatus described in
特許文献1に記載された通信機能が端末装置に実装された場合、例えば、RTC(real-time clock)を有さない端末装置であっても、時刻情報を含むイベント情報を生成可能となる。しかし、RTCを有さず且つ上記の通信機能を実装できない端末装置がシステムに含まれる場合が想定される。この場合、システムに含まれる複数の端末装置の少なくとも一部から、時刻情報を含むイベント情報を収集できない。このため、複数の端末装置から収集されたイベント情報に基づき、各端末装置におけるイベントの発生時刻を比較できない場合があるという問題点がある。
When the communication function described in
本発明の目的は、複数の端末装置において発生したイベントのイベント情報を収集し、且つ、それぞれのイベントの発生時刻を特定できる情報収集システム、情報収集方法、及び、端末装置を提供することである。 An object of the present invention is to provide an information collection system, an information collection method, and a terminal device that can collect event information of events that occur in a plurality of terminal devices and specify the occurrence time of each event. .
本発明の第1態様に係る情報収集システムは、互いに通信可能な端末装置及びサーバを備えた情報収集システムであって、前記端末装置は、前記端末装置における時刻である装置時刻を示す装置時刻情報を記憶する装置時刻記憶部と、前記端末装置において発生したイベントを識別するイベント識別情報、前記端末装置を識別する装置識別情報、第1装置時刻情報、及び、第2装置時刻情報を、前記サーバに送信する第1送信手段とを備え、前記第1装置時刻情報は、前記イベントの発生タイミングに対応する前記装置時刻情報であり、前記第2装置時刻情報は、前記第1送信手段による前記イベント識別情報の送信タイミングに対応する前記装置時刻情報であり、前記サーバは、現在時刻を示す時計時刻情報を記憶する時計時刻記憶部と、前記端末装置から送信された前記イベント識別情報、前記装置識別情報、前記第1装置時刻情報、及び、前記第2装置時刻情報を受信する第1受信手段と、前記第1受信手段によって受信された前記イベント識別情報、前記装置識別情報、及び、前記第1装置時刻情報を関連付けて、第1記憶部に記憶する第1記憶手段と、前記第1受信手段によって受信された前記装置識別情報、前記第2装置時刻情報、及び、第1時計時刻情報を関連付けて、第2記憶部に記憶する第2記憶手段と、を備え、前記第1時計時刻情報は、前記第1受信手段による前記イベント識別情報の受信タイミングに対応する前記時計時刻情報であることを特徴とする。 An information collection system according to a first aspect of the present invention is an information collection system including a terminal device and a server that can communicate with each other, and the terminal device is device time information indicating a device time that is a time in the terminal device. A device time storage unit for storing event identification information for identifying an event that has occurred in the terminal device, device identification information for identifying the terminal device, first device time information, and second device time information. A first transmission means for transmitting to the device, wherein the first device time information is the device time information corresponding to the occurrence timing of the event, and the second device time information is the event by the first transmission means. The device time information corresponding to the transmission timing of the identification information, the server, a clock time storage unit for storing clock time information indicating the current time; Received by the first receiving means and the first receiving means for receiving the event identification information, the device identification information, the first device time information, and the second device time information transmitted from the terminal device. A first storage unit that associates the event identification information, the device identification information, and the first device time information and stores them in a first storage unit; and the device identification information received by the first reception unit; Second device time information and second storage means for associating and storing the first clock time information in a second storage unit, wherein the first clock time information is the event identification by the first receiving means. It is the clock time information corresponding to the information reception timing.
第1態様によれば、端末装置は、イベントが発生した場合、発生したイベントのイベント識別情報、端末装置の装置識別情報、イベントの発生タイミングに対応する第1装置時刻情報、及び、イベント識別情報の送信タイミングに対応する第2装置時刻情報を、サーバに送信する。サーバは、イベント識別情報、装置識別情報、及び、第1装置時刻情報を関連付け、第1記憶部に記憶する。又、サーバは、装置識別情報、第2装置時刻情報、及び、イベント識別情報の受信タイミングに対応する第1時計時刻情報を関連付け、第2記憶部に記憶する。この場合、サーバは、端末装置におけるイベント識別情報の送信タイミングに対応する第2装置時刻情報と、サーバにおけるイベント識別情報の受信タイミングに対応する第1時計時刻情報とを関連付けることができる。このため、サーバは、第2装置時刻情報と第1時計時刻情報との関係に基づき、イベントの発生タイミングに対応する第1装置時刻情報から、イベントが発生した時点での時計時刻を特定できる。従って、サーバは、各端末装置が装置時刻情報を個別に記憶する場合であっても、各端末装置においてイベントが発生したときの時計時刻を特定できる。 According to the first aspect, when an event occurs, the terminal device has event identification information of the event that has occurred, device identification information of the terminal device, first device time information corresponding to the event occurrence timing, and event identification information. The second device time information corresponding to the transmission timing is transmitted to the server. The server associates the event identification information, the device identification information, and the first device time information and stores them in the first storage unit. The server also associates the device identification information, the second device time information, and the first clock time information corresponding to the reception timing of the event identification information, and stores them in the second storage unit. In this case, the server can associate the second device time information corresponding to the transmission timing of the event identification information in the terminal device with the first clock time information corresponding to the reception timing of the event identification information in the server. For this reason, the server can specify the clock time at the time of occurrence of the event from the first device time information corresponding to the event occurrence timing based on the relationship between the second device time information and the first clock time information. Therefore, the server can specify the clock time when an event occurs in each terminal device, even if each terminal device individually stores the device time information.
第1態様において、前記サーバは、前記端末装置を特定可能な装置特定情報を含む閲覧要求を要求元装置から受信する第2受信手段と、前記第1記憶部において、対象の端末装置を識別する前記装置識別情報に関連付けられて記憶された前記イベント識別情報及び前記第1装置時刻情報を取得する第1取得手段であって、前記対象の端末装置は、前記第2受信手段によって受信された前記閲覧要求に含まれる前記装置特定情報によって特定される端末装置であり、前記第2記憶部において、前記対象の端末装置を識別する前記装置識別情報に関連付けられて記憶された前記第2装置時刻情報及び前記第1時計時刻情報に基づいて、前記第1取得手段によって取得された前記第1装置時刻情報を、前記イベント識別情報によって識別される前記イベントが発生した時計時刻を示す第2時計時刻情報に変換する変換手段と、前記第1取得手段によって取得された前記イベント識別情報、及び、前記変換手段によって変換された前記第2時計時刻情報を前記要求元装置に送信する第2送信手段とを備えてもよい。この場合、例えば、サーバと通信可能なクライアントは、サーバに閲覧要求を送信することによって、端末装置において発生したイベントと、このイベントが発生した時計時刻とを閲覧することが可能となる。つまり、クライアントは、端末装置において時計時刻を直接取得することができない場合でも、端末装置においてイベントが発生したときの時計時刻を閲覧できる。 In the first aspect, the server identifies a target terminal device in a second receiving unit that receives a browsing request including device specifying information that can specify the terminal device from a request source device, and the first storage unit. A first acquisition unit configured to acquire the event identification information and the first device time information stored in association with the device identification information, wherein the target terminal device is received by the second reception unit; The terminal device specified by the device specifying information included in the browsing request, and the second device time information stored in the second storage unit in association with the device identification information for identifying the target terminal device And based on the first clock time information, the first device time information acquired by the first acquisition means is identified by the event identification information. Conversion means for converting to second clock time information indicating the clock time when the event occurred, the event identification information acquired by the first acquisition means, and the second clock time information converted by the conversion means You may provide the 2nd transmission means to transmit to the said request origin apparatus. In this case, for example, a client that can communicate with the server can browse the event that occurred in the terminal device and the clock time at which the event occurred by sending a browse request to the server. That is, the client can browse the clock time when an event occurs in the terminal device even when the terminal device cannot directly acquire the clock time.
第1態様において、前記サーバは、前記時計時刻記憶部に記憶された前記時計時刻情報を変更する処理が実行されたか判定する第1判定手段と、前記第1判定手段によって、前記時計時刻情報を変更する処理が実行されたと判定された場合、変更前の前記時計時刻情報によって示される変更前時計時刻と、変更後の前記時計時刻情報によって示される変更後時計時刻との差分に対応する補正を、前記第2記憶部に記憶された前記第1時計時刻情報に対して行う第1補正手段とを備えてもよい。この場合、サーバは、時計時刻情報を変更する処理が実行された場合、第2記憶部に記憶された第1時計時刻情報を補正する。このため、サーバは、補正後の第2装置時刻情報と第1時計時刻情報との関係に基づいて、第1装置時刻情報から、イベントが発生した時計時刻を特定できる。従って、サーバは、時計時刻情報を変更する処理が実行された場合でも、変更後の時計時刻情報に基づいてイベントが発生した時計時刻を精度よく特定できる。 In the first aspect, the server obtains the clock time information by first determination means for determining whether or not processing for changing the clock time information stored in the clock time storage unit has been executed, and the first determination means. When it is determined that the process to be changed is performed, a correction corresponding to the difference between the clock time before change indicated by the clock time information before change and the clock time after change indicated by the clock time information after change is performed. And a first correction unit that performs the first clock time information stored in the second storage unit. In this case, the server corrects the first clock time information stored in the second storage unit when the process of changing the clock time information is executed. For this reason, the server can specify the clock time at which the event occurred from the first device time information based on the relationship between the corrected second device time information and the first clock time information. Therefore, even when the process of changing the clock time information is executed, the server can accurately specify the clock time at which the event occurred based on the changed clock time information.
第1態様において、前記サーバは、前記第1受信手段による受信に応じて、前記第1記憶部に記憶された最新のイベント識別情報が、前記端末装置の電源オフ動作を示すかを判定する第2判定手段と、前記第2判定手段によって、前記最新のイベント識別情報が前記電源オフ動作を示すと判定された場合、前記第1受信手段によって受信された前記イベント識別情報であって前記端末装置の電源オン動作を示す起動情報と、前記起動情報の発生タイミングに対応する前記第1装置時刻情報とを取得する第2取得手段と、前記第2取得手段によって取得された前記起動情報の発生タイミングに対応する前記第1装置時刻情報と、前記第1受信手段によって受信された前記第2装置時刻情報と、前記起動情報の受信タイミングに対応する時計時刻情報とに基づいて、前記起動情報の発生タイミングに対応する前記時計時刻情報である起動時計時刻情報を算出する算出手段と、前記算出手段によって算出された前記起動時計時刻情報と、前記第2記憶部に記憶された前記第1時計時刻情報との差に基づいて、前記第1記憶部に記憶された前記第1装置時刻情報を補正する第2補正手段と、を備えてもよい。端末装置の電源が一旦オフされ、その後オンされた場合において、電源オフの間は、装置時刻が更新されない。これに対し、サーバは、起動時時計時刻情報を算出し、算出された起動時計時刻情報と第1時計時刻情報とに基づいて、第1装置時刻情報を補正する。これによって、サーバは、端末装置において装置時刻が更新されない期間がある場合でも、イベントが発生した時計時刻を特定できる。 In the first aspect, the server determines whether the latest event identification information stored in the first storage unit indicates a power-off operation of the terminal device in response to reception by the first receiving unit. 2 determining means and the second determining means, when it is determined that the latest event identification information indicates the power-off operation, the event identification information received by the first receiving means, the terminal device Second acquisition means for acquiring start information indicating a power-on operation of the first device and the first device time information corresponding to the generation timing of the start information, and the generation timing of the start information acquired by the second acquisition means The first device time information corresponding to the time, the second device time information received by the first receiving means, and the clock time corresponding to the reception timing of the activation information Based on the information, calculation means for calculating start clock time information which is the clock time information corresponding to the generation timing of the start information, the start clock time information calculated by the calculation means, and the second memory A second correction unit that corrects the first apparatus time information stored in the first storage unit based on a difference from the first clock time information stored in the unit. When the terminal device is turned off and then turned on, the device time is not updated while the power is off. On the other hand, the server calculates startup clock time information and corrects the first device time information based on the calculated startup clock time information and the first clock time information. Thus, the server can specify the clock time at which the event has occurred even when there is a period in which the device time is not updated in the terminal device.
第1態様において、前記端末装置は、前記イベント識別情報及び前記第1装置時刻情報を関連付け、イベント履歴情報として第3記憶部に記憶する第3記憶手段を備え、前記第1送信手段は、前記第3記憶部に関連付けて記憶された前記イベント識別情報及び前記第1装置時刻情報に、前記第2装置時刻情報及び前記装置識別情報を加えた収集対象情報を、前記サーバに送信してもよい。この場合、端末装置は、発生したイベントに直接関係するイベント履歴情報(イベント識別情報及び第1装置時刻情報)を、第2装置時刻情報及び装置識別情報と区別して第3記憶部に記憶できる。 In the first aspect, the terminal device includes a third storage unit that associates the event identification information and the first device time information, and stores the event identification information in a third storage unit as event history information, and the first transmission unit includes: Collection target information obtained by adding the second device time information and the device identification information to the event identification information and the first device time information stored in association with the third storage unit may be transmitted to the server. . In this case, the terminal device can store event history information (event identification information and first device time information) directly related to the generated event in the third storage unit separately from the second device time information and device identification information.
第1態様において、前記第1送信手段は、所定周期の何れかのタイミングで、前記収集対象情報を送信してもよい。この場合、端末装置は、所定周期内で複数のイベントが発生した場合、複数のイベントに対応する情報を、同一タイミングでサーバに送信できる。このため、端末装置は、イベントが発生する毎に情報をサーバに送信する場合と比べて、情報の送信頻度を抑制できる。 In the first aspect, the first transmission unit may transmit the collection target information at any timing in a predetermined cycle. In this case, when a plurality of events occur within a predetermined period, the terminal device can transmit information corresponding to the plurality of events to the server at the same timing. For this reason, the terminal device can suppress the transmission frequency of information compared with the case where information is transmitted to the server each time an event occurs.
第1態様において、前記端末装置は、前記第1送信手段による前記収集対象情報の送信に成功したかを判定する第3判定手段と、前記第3判定手段によって、前記収集対象情報の送信に成功していないと判定された場合、送信に失敗した前記収集対象情報を第4記憶部に記憶する第4記憶手段と、を備え、前記第1送信手段は、前記第4記憶部に前記収集対象情報が記憶された後の前記所定周期の何れかのタイミングで、前記第3記憶部に記憶された前記イベント識別情報及び前記第1装置時刻情報を含む前記収集対象情報と、前記第4記憶部に記憶された前記収集対象情報とを送信してもよい。この場合、端末装置は、サーバに対する収集対象情報の送信に失敗した場合、間隔を空けて収集対象情報のリトライ送信を実行できる。従って、端末装置は、例えばサーバと端末装置との間の通信状態が一時的に悪化した場合でも、サーバに対して収集対象情報を送信できる。 1st aspect WHEREIN: The said terminal device succeeded in transmission of the said collection object information by the 3rd determination means which determines whether the transmission of the said collection object information by the said 1st transmission means was successful, and the said 3rd determination means And a fourth storage unit that stores the collection target information that failed to be transmitted in a fourth storage unit, and the first transmission unit stores the collection target information in the fourth storage unit. The collection target information including the event identification information and the first device time information stored in the third storage unit at any timing of the predetermined period after the information is stored, and the fourth storage unit The information to be collected stored in the information may be transmitted. In this case, when the terminal device fails to transmit the collection target information to the server, the terminal device can perform retry transmission of the collection target information at intervals. Therefore, the terminal device can transmit the collection target information to the server even when, for example, the communication state between the server and the terminal device is temporarily deteriorated.
第1態様において、前記サーバは、前記第1受信手段によって、前記収集対象情報が複数受信された場合、前記第2記憶手段は、前記第1受信手段によって受信された複数の前記収集対象情報のそれぞれの前記第2装置時刻情報のうち最新の第2装置時刻情報、前記装置識別情報、及び、前記第1時計時刻情報を関連付けて前記第2記憶部に記憶してもよい。この場合、サーバは、端末装置から情報を繰り返し受信する場合において、第2記憶部に記憶された第2装置時刻情報を、最新の第2装置時刻情報によって更新する。又、サーバは、第2記憶部に記憶された第1時計時刻情報を、最新の情報の受信タイミングで時計時刻記憶部から取得された時計時刻情報によって更新する。これによって、サーバは、各端末装置においてイベントが発生したときの時計時刻を、最新の第2装置時刻情報及び第1時計時刻情報に基づいて特定できる。 In the first aspect, when the server receives a plurality of the collection target information by the first reception unit, the second storage unit stores the plurality of the collection target information received by the first reception unit. Among the second device time information, the latest second device time information, the device identification information, and the first clock time information may be associated and stored in the second storage unit. In this case, when the server repeatedly receives information from the terminal device, the server updates the second device time information stored in the second storage unit with the latest second device time information. Further, the server updates the first clock time information stored in the second storage unit with the clock time information acquired from the clock time storage unit at the reception timing of the latest information. Thereby, the server can specify the clock time when the event occurs in each terminal device based on the latest second device time information and the first clock time information.
第1態様において、前記端末装置はモータを含むミシンであり、前記イベント識別情報は、前記モータの動作状態の変化を示してもよい。この場合、サーバは、ミシンにおいて発生した縫製処理に関するイベントの情報を収集し、イベントが発生した時計時刻を特定できる。 In the first aspect, the terminal device may be a sewing machine including a motor, and the event identification information may indicate a change in an operating state of the motor. In this case, the server can collect information on events related to the sewing processing that has occurred in the sewing machine, and can specify the clock time at which the event occurred.
第1態様において、前記端末装置はモータを含むミシンであり、前記イベント識別情報は、前記モータの動作状態の変化を示し、前記ミシンは、無線通信を行う通信デバイスを有し、且つ、記憶領域を有するリムーバブルメディアを含み、前記所定周期の何れかのタイミングで、前記第2装置時刻情報及び前記装置識別情報をファイル名として含み、前記第3記憶部に関連付けて記憶された前記イベント識別情報及び前記第1装置時刻情報を含むファイルを、前記収集対象情報として前記リムーバブルメディアの前記記憶領域に記憶する第5記憶手段をさらに備え、前記第1送信手段は、前記第5記憶手段によって前記リムーバブルメディアの前記記憶領域に前記収集対象情報が記憶されたことに応じて、前記収集対象情報を送信してもよい。この場合、ミシン自体が通信機能を有していない場合でも、サーバは、ミシンにおいて発生したイベントの情報を収集し、イベントが発生した時計時刻を特定できる。 1st aspect WHEREIN: The said terminal device is a sewing machine containing a motor, The said event identification information shows the change of the operating state of the said motor, The said sewing machine has a communication device which performs radio | wireless communication, and a storage area | region The event identification information stored in association with the third storage unit, including the second device time information and the device identification information as a file name at any timing of the predetermined cycle, and The storage device further includes fifth storage means for storing the file including the first device time information as the collection target information in the storage area of the removable medium, and the first transmission means is configured to store the removable medium by the fifth storage means. The collection target information may be transmitted in response to the collection target information being stored in the storage areaIn this case, even when the sewing machine itself does not have a communication function, the server can collect information on events that have occurred in the sewing machine and specify the clock time at which the event has occurred.
第1態様において、前記端末装置はモータを含むミシンであり、前記イベント識別情報は、前記モータの動作状態の変化を示し、前記ミシンは、無線通信を行う通信デバイスを有し、且つ、記憶領域を有するリムーバブルメディアを含み、前記所定周期の何れかのタイミングで、前記第2装置時刻情報及び前記装置識別情報をファイル名として含み、前記第3記憶部に関連付けて記憶された前記イベント識別情報及び前記第1装置時刻情報を含むファイルを、前記収集対象情報として前記リムーバブルメディアの前記記憶領域のうち送信領域に記憶する第5記憶手段を備え、前記第1送信手段は、前記第5記憶手段によって前記送信領域に前記収集対象情報が記憶されたことに応じて、前記収集対象情報を送信し、前記第4記憶手段は、前記第3判定手段によって、前記収集対象情報の送信に成功していないと判定された場合、送信に失敗した前記収集対象情報を、前記記憶領域のうち再送領域に記憶し、前記第1送信手段は、前記第5記憶手段によって前記収集対象情報が前記送信領域に記憶された場合において、前記再送領域に前記収集対象情報が記憶されている場合、前記送信領域に記憶された前記収集対象情報と、前記再送領域に記憶された前記収集対象情報とを送信してもよい。この場合、ミシン自体が通信機能を有していない場合でも、サーバは、ミシンにおいて発生したイベントの情報を収集し、イベントが発生した時計時刻を特定できる。又、ミシンは、サーバに対する収集対象情報の送信に失敗した場合、間隔を空けて収集対象情報のリトライ送信を実行できる。従って、ミシンは、例えばサーバと端末装置との間の通信状態が一時的に悪化した場合でも、サーバに対して収集対象情報を送信できる。 1st aspect WHEREIN: The said terminal device is a sewing machine containing a motor, The said event identification information shows the change of the operating state of the said motor, The said sewing machine has a communication device which performs radio | wireless communication, and a storage area | region The event identification information stored in association with the third storage unit, including the second device time information and the device identification information as a file name at any timing of the predetermined cycle, and Fifth storage means for storing a file including the first device time information as the collection target information in a transmission area of the storage area of the removable medium, and the first transmission means by the fifth storage means In response to the collection target information being stored in the transmission area, the collection target information is transmitted, and the fourth storage means 3 When the determination unit determines that the transmission of the collection target information is not successful, the collection target information that has failed to be transmitted is stored in the retransmission region of the storage region, and the first transmission unit is When the collection target information is stored in the transmission area by the fifth storage unit, when the collection target information is stored in the retransmission area, the collection target information stored in the transmission area, and The collection target information stored in the retransmission area may be transmitted. In this case, even when the sewing machine itself does not have a communication function, the server can collect information on events that have occurred in the sewing machine and specify the clock time at which the event has occurred. In addition, when the sewing machine fails to transmit the collection target information to the server, the sewing machine can execute retry transmission of the collection target information at intervals. Therefore, the sewing machine can transmit the collection target information to the server even when the communication state between the server and the terminal device temporarily deteriorates, for example.
本発明の第2、3態様に係る情報収集方法は、第1態様に係る情報収集システムにおける各手段の少なくとも一部に対応するステップによって構成される。第2、3態様によれば、第1態様と同様の効果を奏することができる。 The information collection method according to the second and third aspects of the present invention includes steps corresponding to at least a part of each means in the information collection system according to the first aspect. According to the second and third aspects, the same effects as in the first aspect can be achieved.
本発明の第4態様に係る端末装置は、第1態様に係る情報収集システムにおける端末装置によって実行される各手段の少なくとも一部によって構成される。第4態様によれば、第1態様と同様の効果を奏することができる。 The terminal device according to the fourth aspect of the present invention is configured by at least a part of each means executed by the terminal device in the information collection system according to the first aspect. According to the 4th aspect, there can exist an effect similar to a 1st aspect.
<情報収集システム1の構成>
図1を参照し、情報収集システム1の概要について説明する。情報収集システム1には、サーバ2、ミシン3A,3B,3C,3D等(以下、総称して「ミシン3」という。)、PC6、及び、アクセスポイント7が含まれる。サーバ2、PC6、及び、アクセスポイント7は、LAN、WAN等のネットワーク8に接続する。ミシン3は、アクセスポイント7を介してネットワーク8に無線で接続する。サーバ2、ミシン3、及び、PC6は、ネットワーク8を介して相互に通信可能である。
<Configuration of
An overview of the
サーバ2の電気的構成について説明する。サーバ2は、サーバ2を制御するCPU21を備える。CPU21は、ROM22、RAM23、記憶部24、通信I/F25、及び、ドライブ装置26と、非図示のインタフェース回路を介して電気的に接続する。ROM22には、ブートプログラム、BIOS等が記憶される。RAM23には、タイマやカウンタ、フラグデータ、一時的なデータ等が記憶される。記憶部24は、ハードディスク等の記憶媒体で構成される。記憶部24には、CPU21が実行する処理のプログラム、OS、及び、後述する各種テーブル(図2等参照)が記憶される。
The electrical configuration of the
通信I/F25は、サーバ2がネットワーク8に接続するためのインタフェース素子(例えば、LANカードなど)である。CPU21は、通信I/F25を介して、ネットワーク8に接続する他の機器とデータの送受信を行う。ドライブ装置26は、半導体メモリや光ディスク等の記憶媒体26Aに記憶された情報を読み出すことができる。CPU21は、記憶媒体26Aに記憶されたプログラムをドライブ装置26によって読み出し、記憶部24に記憶できる。
The communication I /
なお、記憶部24は、例えば、フラッシュメモリ及び/又はROM等、他の記憶媒体で構成されてもよい。CPU21として、汎用的なプロセッサが用いられてもよい。CPU21によって実行される処理の一部は、他の電子部品(例えば、ASIC)によって実行されてもよい。CPU21によって実行される処理は、複数の電子機器(つまり、複数のCPU)によって分散処理されてもよい。プログラムは、例えば、ネットワーク8に接続された別のサーバからダウンロードされて、記憶部24に記憶されてもよい。
In addition, the memory |
ミシン3の電気的構成について説明する。ミシン3は、ミシン3の制御を司るCPU31を備える。CPU31は、ROM32、RAM33、記憶部34、駆動回路35、液晶表示装置(LCD)37、操作部38、及び、USB I/F39と、非図示のインタフェース回路を介して電気的に接続する。ROM32には、ブートプログラム等が記憶される。RAM33には、タイマやカウンタ、フラグデータ、一時的なデータ、及び、後述する各種テーブル(図2等参照)等が記憶される。記憶部34は、フラッシュメモリ等の記憶媒体で構成される。記憶部34には、CPU31が実行する処理のプログラム、及び、後述する各種テーブル(図2等参照)が記憶される。なお、ミシン3は、上記全ての電気的構成を内蔵していなくてもよい。例えば、上記の電気的構成の一部は、非図示のインタフェースを介してミシン3外部に接続されてもよい。
The electrical configuration of the sewing machine 3 will be described. The sewing machine 3 includes a
駆動回路35は、CPU31から出力される信号に応じて、上軸モータ36A及び布送りモータ36Bを駆動する。上軸モータ36Aは、非図示の針棒に接続した縫針を上下に往復移動させる。布送りモータ36Bは、非図示の布送り機構を前後方向に移動させる。これらによって、加工布に対する縫製が実現される。LCD37は、縫製に関する各種情報を表示可能である。操作部38は、非図示のペダル、操作キー、タッチパネル等を含む。USB I/F39は、USBを介してミシン3に機器を接続するためのインタフェース素子である。CPU31は、USBを介して接続された機器との間で、USB I/F39を介してデータの送受信を行う。
The
リムーバブルメディア5は、USBを介してミシン3に接続する。リムーバブルメディア5は、通信デバイス51、記憶部52、及び、制御部53を有する。通信デバイス51は、アクセスポイント7と接続して無線通信を行うためのインタフェース素子(例えば、Wi−Fi(登録商標)通信モジュールなど)である。記憶部52は、リムーバブルメディア5がミシン3に接続された状態で、読み出し及び書き込みが可能な記憶媒体としてCPU31に認識される。記憶部52には、送信領域521、再送領域522(図5等参照)、及び、非図示の受信領域が設けられる。
The
制御部53は、通信デバイス51及び記憶部52を用いた通信制御を実行する。制御部53には、データを送信するときの宛先の機器のアドレス情報が設定される。本実施形態において、制御部53には、サーバ2のアドレス情報が設定される。CPU31によって記憶部52の送信領域521にデータが書き込まれた場合、制御部53は、通信デバイス51を介して、設定されたアドレス情報に基づいてサーバ2宛に、送信領域521及び再送領域522に記憶されたデータを所定のプロトコル(例えば、HTTP)によって送信する。又、制御部53は、通信デバイス51を介してデータを所定のプロトコル(例えば、HTTP)によって受信した場合、受信されたデータを記憶部52の受信領域に記憶する。即ち、リムーバブルメディア5は、HTTPクライアント及びサーバとしての動作が可能である。制御部53は、データが受信されたことを通知する通知信号を、CPU31に出力する。CPU31は、通知信号が検出された場合、記憶部52の受信領域に記憶されたデータを読み出すことができる。
The
<各種テーブル、及び、情報収集システム1の機能概要>
図2を参照し、サーバ2の記憶部24、及び、ミシン3のRAM33及び記憶部34に記憶される各種テーブル、及び、情報収集システム1の機能の概要について説明する。サーバ2の記憶部24には、マスタテーブル24A、第1テーブル24B、及び、第2テーブル24Cが記憶される。ミシン3のRAM33には、第3テーブル33Aが記憶される。ミシン3の記憶部34には、マスタテーブル34Aが記憶される。
<Functional overview of various tables and
With reference to FIG. 2, an outline of functions of the
ミシン3のRAM33及び記憶部34に記憶される各種テーブルについて説明する。マスタテーブル34Aには、装置種別情報、装置識別情報、送信周期、及び、マスタ装置時刻情報が関連付けて記憶される。装置種別情報は、各ミシン3の種別(型式、プログラムのバージョン等)を示す。装置識別情報は、各ミシン3を識別する識別子を示す。送信周期は、後述する収集対象情報をサーバ2に周期的に送信する場合の送信間隔を示す。マスタ装置時刻情報は、ミシン3における時刻(以下、「装置時刻」という。)を示すカウンタ変数である。装置時刻は、例えば、ミシン3の工場出荷時点を「0」としてカウントアップされる累積通電時間である。マスタ装置時刻情報によって示される装置時刻は、所定の時間間隔(1秒)で周期的に繰り返し更新される。以下、マスタテーブル34Aの装置識別情報によって示される識別子を、「マスタテーブル34Aの装置識別子」と言い換える。マスタテーブル34Aのマスタ装置時刻情報によって示される装置時刻を、「マスタテーブル34Aのマスタ装置時刻」と言い換える。
Various tables stored in the
第3テーブル33Aには、イベント履歴情報が記憶される。イベント履歴情報は、イベント識別情報、及び、第1装置時刻情報を含む。イベント識別情報は、ミシン3において発生したイベントを識別する識別子を示す。ミシン3において発生するイベントとして、ミシン3の電源オン、電源オフ、モータ(上軸モータ36A及び/又は布送りモータ36B)の動作状態の変化(例えば、縫製開始、縫製終了、及び、一時停止等)がある。第1装置時刻情報は、イベントの発生タイミングに対応する装置時刻を示す。CPU31は、イベントが発生した場合、マスタテーブル34Aからマスタ装置時刻情報を取得する。CPU31は、取得されたマスタ装置時刻情報を、第1装置時刻情報として、発生したイベントのイベント識別情報に関連付け、イベント履歴情報として第3テーブル33Aに記憶する。
Event history information is stored in the third table 33A. The event history information includes event identification information and first device time information. The event identification information indicates an identifier for identifying an event that has occurred in the sewing machine 3. Events that occur in the sewing machine 3 include power-on and power-off of the sewing machine 3, changes in the operation state of the motor (
以下、第3テーブル33Aのイベント識別情報によって示される識別子を、「第3テーブル33Aのイベント識別子」と言い換える。第3テーブル33Aの第1装置時刻情報によって示される装置時刻を、「第3テーブル33Aの第1装置時刻」と言い換える。イベント履歴情報の内容を具体的に表記する場合、「イベント識別子/第1装置時刻」のように表記する。 Hereinafter, the identifier indicated by the event identification information in the third table 33A is referred to as “event identifier in the third table 33A”. The device time indicated by the first device time information in the third table 33A is rephrased as “first device time in the third table 33A”. When specifically describing the contents of the event history information, it is expressed as “event identifier / first device time”.
なお、詳細は後述するが、CPU31は、第3テーブル33Aに記憶されたイベント履歴情報に基づいて、サーバ2に送信するための収集対象情報を、リムーバブルメディア5の記憶部52のうち送信領域521に生成する。収集対象情報は、イベント履歴情報、マスタテーブル34Aの装置識別子、及び、第2装置時刻を含む。例えば、収集対象情報は、例えば、ファイル名として、マスタテーブル34Aの装置識別子、及び、第2装置時刻を含む名称が設定され、イベント履歴情報をテキストデータとして含むファイルである。第2装置時刻は、サーバ2に対する収集対象情報の送信タイミングに対応する装置時刻を示す。リムーバブルメディア5の制御部53は、記憶部52の送信領域521に生成された収集対象情報を、サーバ2に送信する。
Although details will be described later, the
例えば図2において、マスタテーブル34Aのマスタ装置時刻が「300060」のときに、収集対象情報が送信される場合を例示する。CPU31は、第3テーブル33Aに記憶されたイベント履歴情報(「縫製開始/300010」「縫製終了/300030」「一時停止/300050」)を含む収集対象情報341を、リムーバブルメディア5の記憶部52の送信領域521に生成する。CPU31は、マスタテーブル34Aの装置識別子「11111」、及び、マスタ装置時刻(第2装置時刻)「300060」を含むファイル名「11111_300060」を、収集対象情報341に設定する。リムーバブルメディア5の制御部53は、記憶部52の送信領域521に生成された収集対象データを、サーバ2に送信する。
For example, in FIG. 2, a case where the collection target information is transmitted when the master device time of the master table 34A is “300060” is illustrated. The
サーバ2の記憶部24に記憶される情報について説明する。マスタテーブル24Aには、マスタ時計時刻情報が記憶される。マスタ時計時刻情報は、現在時刻(時、分、秒、以下、「時計時刻」という。)を示す情報である。マスタ時計時刻情報によって示される時計時刻は、CPU21によって1秒周期で更新される。以下、マスタテーブル24Aのマスタ時計時刻情報によって示される時計時刻を、「マスタテーブル24Aのマスタ時計時刻」と言い換える。
Information stored in the
なお、CPU21は、OSの機能の1つとして時刻管理機能を実行する。時刻管理機能は、ネットワーク8に接続した非図示のNPTサーバと周期的に通信を行い、標準時刻を示す標準時刻情報を周期的に取得する。CPU21は、取得された標準時刻情報を、記憶部24に記憶する。詳細は後述するが、CPU21は、マスタテーブル24Aのマスタ時計時刻を標準時刻に設定するための処理(サーバ第3処理、図10参照)を実行する。つまり、CPU21は、マスタテーブル24Aのマスタ時計時刻が標準時刻に設定された後、次にマスタ時計時刻が標準時刻に設定されるまでの間、1秒周期でマスタ時計時刻を更新する。
Note that the
第1テーブル24B及び第2テーブル24Cには、ミシン3から送信された収集対象情報341がサーバ2によって受信された場合において、受信された収集対象情報341に含まれる各種情報が記憶される。第1テーブル24Bには、装置識別情報、及び、イベント履歴情報(イベント識別情報及び第1装置時刻情報)が関連付けて記憶される。装置識別情報として、受信された収集対象情報のファイル名のうち装置識別子の部分を示す情報が記憶される。イベント履歴情報として、受信された収集対象情報に含まれるイベント履歴情報が記憶される。以下、第1テーブル24Bの装置識別情報によって示される装置識別子、第1装置時刻情報によって示される時計時刻、及び、イベント識別情報によって示される識別子を、それぞれ、「第1テーブル24Bの装置識別子」、「第1テーブル24Bの第1時計時刻」、「第1テーブル24Bのイベント識別子」と言い換える。
In the first table 24B and the second table 24C, various information included in the received
第2テーブル24Cには、装置識別情報、第2装置時刻情報、及び、第1時計時刻情報が関連付けて記憶される。装置識別情報及び第2装置時刻情報として、受信された収集対象情報のファイル名のうち、装置識別子及び第2装置時刻の部分を示す情報が記憶される。第1時計時刻情報は、収集対象情報の受信タイミングに対応する時計時刻を示す。第1時計時刻情報として、収集対象情報を受信したときにマスタテーブル24Aから取得されるマスタ時計時刻情報が記憶される。以下、第2テーブル24Cの装置識別情報によって示される装置識別子、第2装置時刻情報によって示される装置時刻、及び、第1時計時刻情報によって示される時計時刻を、それぞれ、「第2テーブル24Cの装置識別子」、「第2テーブル24Cの第2装置時刻」、「第2テーブル24Cの第1時計時刻」と言い換える。 In the second table 24C, device identification information, second device time information, and first clock time information are stored in association with each other. As the device identification information and the second device time information, information indicating the device identifier and the second device time portion of the received file name of the collection target information is stored. The first clock time information indicates a clock time corresponding to the reception timing of the collection target information. As the first clock time information, master clock time information acquired from the master table 24A when the collection target information is received is stored. Hereinafter, the device identifier indicated by the device identification information in the second table 24C, the device time indicated by the second device time information, and the clock time indicated by the first clock time information are respectively referred to as “device of the second table 24C”. In other words, “identifier”, “second device time in second table 24C”, and “first clock time in second table 24C”.
例えば図2において、マスタテーブル24Aのマスタ時計時刻が「10:31:03」のときに、リムーバブルメディア5から送信された収集対象情報341がサーバ2によって受信された場合を例示する。CPU21は、受信された収集対象情報のファイル名のうち装置識別子の部分「11111」を抽出する。CPU21は、収集対象情報に含まれるイベント履歴情報(「縫製開始/300010」「縫製終了/300030」「一時停止/300050」)に、抽出された装置識別子を示す装置識別情報をそれぞれ関連付けて、第1テーブル24Bに記憶する。CPU21は、受信された収集対象情報のファイル名のうち第2装置時刻の部分「300060」を抽出する。CPU21は、抽出された装置識別子を示す装置識別情報、及び、抽出された第2装置時刻を示す第2装置時刻情報を関連付け、第2テーブル24Cに記憶する。CPU21は、マスタテーブル24Aのマスタ時計時刻「10:31:03」を取得する。CPU21は、取得されたマスタ時計時刻を示す第1時計時刻情報を、装置識別情報及び第2装置時刻情報に更に関連付けて第2テーブル24Cに記憶する。
For example, FIG. 2 illustrates a case where the
なお、図2において、第1テーブル24Bには、装置識別子「11111」の装置識別情報に関連付けられたイベント履歴情報(装置時刻情報及びイベント識別情報)のみ記憶されている。又、第2テーブル24Cには、装置識別子「11111」の装置識別情報に関連付けられた第2装置時刻情報及び第1時計時刻情報のみ記憶されている。これに対し、装置識別情報が「11111」のミシン3と異なるミシン3から送信された収集対象情報をサーバ2が受信する場合もある。この場合、装置識別子「11111」と異なる装置識別情報に関連付けられた第1装置時刻情報及びイベント識別情報が、第1テーブル24Bに記憶される。又、装置識別子「11111」と異なる装置識別情報に関連付けられた第2装置時刻情報及び第1時計時刻情報が、第2テーブル24Cに記憶される。
In FIG. 2, only event history information (device time information and event identification information) associated with the device identification information of the device identifier “11111” is stored in the first table 24B. Further, only the second device time information and the first clock time information associated with the device identification information of the device identifier “11111” are stored in the second table 24C. On the other hand, the
<ミシンメイン処理>
図3及び図4を参照し、ミシンメイン処理について説明する。CPU31は、ミシン3の電源をオンする操作が操作部38を介して行われた場合、記憶部34に記憶されたプログラムを読み出して実行することによって、ミシンメイン処理を開始する。ミシンメイン処理は、ミシン3の電源をオフする操作が操作部38を介して行われるまでの間、実行される。
<Sewing machine main processing>
The sewing machine main process will be described with reference to FIGS. When the operation of turning on the power of the sewing machine 3 is performed via the
図3に示すように、CPU31は、マスタテーブル34Aのマスタ装置時刻を取得する。CPU31は、電源オンの識別子を示すイベント識別情報に、取得されたマスタ装置時刻を示す第1装置時刻情報を関連付け、第3テーブル33Aに記憶する(S1)。
As shown in FIG. 3, the
CPU31は、マスタテーブル34Aのマスタ装置時刻の更新を開始する(S11)。以後、CPU31は、ミシンメイン処理の実行中において、1秒周期でマスタ装置時刻に1ずつ加算する非図示の処理を繰り返す。なお、ミシンメイン処理は、ミシン3の電源がオンされる度に起動される。このため、ミシンメイン処理の開始時において、マスタテーブル34Aのマスタ装置時刻は、以前に実行されたミシンメイン処理によって更新され、任意の値となっている。
The
CPU21は、イベントの発生を検出したか判定する(S13)。例えば、CPU21は、上軸モータ36A及び布送りモータ36Bの回転開始、終了に応じて、縫製開始、縫製終了のイベントの発生が検出したと判定する。又、例えば、CPU21は、操作部38に対する電源オフの操作に応じて、電源オフのイベントが発生したと判定する。CPU31は、イベントの発生を検出していないと判定された場合(S13:NO)、処理をS19(後述)に進める。CPU31は、イベントの発生を検出したと判定された場合(S13:YES)、処理をS15に進める。CPU31は、マスタテーブル34Aのマスタ装置時刻を取得する。CPU31は、発生したイベントの識別子を示すイベント識別情報に、取得されたマスタ装置時刻を示す第1装置時刻情報を関連付け、第3テーブル33Aに記憶する(S15)。CPU31は処理をS17に進める。
The
CPU31は、S15の処理によって検出されたイベントが、ミシン3の電源をオフするイベントであるか判定する(S17)。CPU31は、ミシン3の電源をオフするイベントであると判定された場合(S17:YES)、処理をS21(後述)に進める。CPU31は、ミシン3の電源をオフするイベントでないと判定された場合(S17:NO)、処理をS19に進める。CPU31は、後述するS25の処理によって収集対象情報を送信してから、マスタテーブル34Aの送信周期分の時間が経過したか判定する(S19)。CPU31は、送信周期分の時間が経過していないと判定された場合(S19:NO)、処理をS13に戻す。CPU31は、送信周期分の時間が経過したと判定された場合(S19:YES)、処理をS21に進める。なお、ミシンメイン処理が開始されてから最初にS19の処理が実行される場合、送信周期分の時間が経過したと判定される。
The
CPU31は、第3テーブル33Aに記憶されたイベント履歴情報(イベント識別情報及び第1装置時刻情報)を取得する(S21)。CPU31は、マスタテーブル34Aの装置識別子を取得する。CPU31は、マスタテーブル34Aのマスタ装置時刻を、第2装置時刻として取得する(S23)。CPU31は、S21の処理によって取得されたイベント履歴情報を含む収集対象情報を、リムーバブルメディア5の記憶部52のうち送信領域521に生成する(S25)。CPU31は、S23の処理によって取得された装置識別子及び第2装置時刻を含む名称を、生成された収集対象情報のファイル名として設定する(S25)。これによって、リムーバブルメディア5の制御部53は、記憶部52の送信領域521、及び、後述する再送領域522に記憶された収集対象情報を、設定されたアドレス情報の機器であるサーバ2に送信する。CPU31は、第3テーブル33Aに記憶された情報を削除する(S29)。CPU31は処理をS51(図4参照)に進める。
The
なお、第3テーブル33Aに装置識別情報及びイベント履歴情報が記憶されていない場合、つまり、収集対象情報の送信後、イベントが発生していない場合、CPU31は、イベント履歴情報を含まない収集対象情報を生成する。生成される収集対象情報は、装置識別子及び第2装置時刻を含むファイル名が設定された空の収集対象情報ということになる。
If the device identification information and the event history information are not stored in the third table 33A, that is, if no event has occurred after transmission of the collection target information, the
なお、ミシン3から送信された収集対象情報を、サーバ2が受信した場合、サーバ2のCPU21は、収集対象情報を受信した旨を通知するための受信応答情報(ACK)を、リムーバブルメディア5に返信する。リムーバブルメディア5の制御部53は、ACKをサーバ2から受信した事に応じて、記憶部52の受信領域にACKを記憶し、通知信号をミシン3に対して送信する。
When the
CPU31は、リムーバブルメディア5の制御部53から出力される通知信号が検出されたか判定する。CPU31は、通知信号が検出された場合、リムーバブルメディア5の記憶部52の受信領域にACKが記憶されているかを更に判定する。CPU31は、S25(図3参照)の処理によって収集対象情報がサーバ2に送信された後、所定期間内に、記憶部52の受信領域にACKが記憶されるか判定する。CPU31は、所定期間内にACKが記憶された場合、収集対象情報の送信に成功したと判定する(S51:YES)。一方、CPU31は、所定期間内にACKが記憶部52の受信領域に記憶されない場合、収集対象情報の送信に成功していない(即ち、失敗した)と判定する(S51:NO)。
The
CPU31は、収集対象情報の送信に成功したと判定された場合(S51:YES)、リムーバブルメディア5の記憶部52の送信領域521に記憶された収集対象情報を削除する(S53)。CPU31は、処理をS57に進める。一方、CPU31は、収集対象情報の送信に失敗したと判定された場合(S51:NO)、リムーバブルメディア5の記憶部52の送信領域521に記憶された収集対象情報を、再送領域522に移動させる(S55)。CPU31は、処理をS57に進める。
When it is determined that the collection target information has been successfully transmitted (S51: YES), the
CPU31は、S15(図3参照)の処理によって検出されたイベントが、ミシン3の電源をオフするイベントであるか判定する(S57)。CPU31は、電源をオフするイベントであると判定された場合(S57:YES)、ミシンメイン処理を終了させる。なお、この場合、S25の処理によって送信された収集対象情報に、電源オフのイベント識別情報を含むイベント履歴情報が含まれている。CPU31は、電源をオフするイベントでないと判定された場合(S57:NO)、処理をS13(図3参照)に戻す。
CPU31 determines whether the event detected by the process of S15 (refer FIG. 3) is an event which turns off the power supply of the sewing machine 3 (S57). When it is determined that the event is an event for turning off the power (S57: YES), the
例えば図2において、収集対象情報341(ファイル名「11111_300060」)の送信に失敗した場合(S51:NO)を例示する。この場合、図5に示すように、収集対象情報341は、リムーバブルメディア5の記憶部52のうち送信領域521から再送領域522に移動される(S55)。その後、第3テーブル33Aにイベント履歴情報(縫製開始/300075、縫製終了/300105、)が追加された場合を例示する。この場合、マスタテーブル34Aのマスタ装置時刻情報が「300120」となったタイミング(S19:YES)で、第3テーブル33Aに記憶されたイベント履歴情報を含む収集対象情報342(ファイル名「11111_300120」)が、リムーバブルメディア5の記憶部52のうち送信領域521に生成される(S25)。記憶部52の再送領域522に収集対象情報342が記憶されているので、収集対象情報341、342が、サーバ2に送信される(S25)。
For example, FIG. 2 illustrates a case where transmission of the collection target information 341 (file name “11111_300060”) fails (S51: NO). In this case, as shown in FIG. 5, the
<サーバ処理>
図6、図9、図10を参照し、サーバ2のCPU21によって実行される処理(サーバ第1処理(図6参照)、サーバ第2処理(図9参照)、サーバ第3処理(図10参照))について説明する。CPU21は、サーバ2の電源をオンする操作が行われた場合、記憶部24に記憶されたプログラムを読み出して実行することによって、サーバ第1処理〜サーバ第3処理を開始する。サーバ第1処理〜サーバ第3処理は、並列して実行される。なお、CPU21は、サーバ2の電源がオンされた状態で、マスタテーブル24Aのマスタ時計時刻を非図示の処理によって1秒周期で更新する。
<Server processing>
6, 9, and 10, processing executed by the
<サーバ第1処理>
図6を参照し、サーバ第1処理について説明する。CPU21は、ミシン3から送信された収集対象情報を受信したか判定する(S61)。CPU21は、収集対象情報を受信していないと判定された場合(S61:NO)、処理をS61に戻す。CPU21は、収集対象情報を受信したかの判定を継続する。CPU21は、収集対象情報を受信したと判定された場合(S61:YES)、処理をS63に進める。
<Server first process>
The server first process will be described with reference to FIG. The
なお、リムーバブルメディア5において、記憶部52の送信領域521及び再送領域522に収集対象情報が記憶されている場合、S25の処理によって複数の収集対象情報がサーバ2に送信される(図5参照)。この場合、CPU21は、S61の処理によって、複数の収集対象情報を受信したと判定する。
In the
CPU21は、受信された収集対象情報のファイル名に含まれる第2装置時刻を取得する(S63)。CPU21は、S61の処理によって複数の収集対象情報を受信したと判定された場合、複数の収集対象情報のそれぞれのファイル名から取得される第2装置時刻のうち、最も大きい値、つまり、最新の第2装置時刻を取得する(S63)。なお、ミシン3において、マスタテーブル34Aのマスタ装置時刻は、1秒周期で1ずつ加算されている。又、第2装置時刻は、イベント発生後の最初の送信周期で、発生したイベントに対応する収集対象情報がミシン3から送信される(以下、「最初に送信される」という。)ときのマスタ装置時刻に対応する。このため、最新の第2装置時刻は、受信された複数の収集対象情報のうち、最初に送信されたタイミングが最新の収集対象情報のファイル名から取得される。
The
なお、受信された収集対象情報が1つの場合、この収集対象情報のファイル名に含まれる第2装置時刻が、最新の第2装置時刻に対応する。最新の第2装置時刻がファイル名の一部として設定された収集対象情報を、「最新の収集対象情報」という。 When the received collection target information is one, the second device time included in the file name of the collection target information corresponds to the latest second device time. The collection target information in which the latest second device time is set as a part of the file name is referred to as “latest collection target information”.
CPU21は、マスタテーブル24Aのマスタ時計時刻を取得する(S65)。CPU21は、最新の収集対象情報のファイル名に含まれる装置識別子を取得する。以下、第1テーブル24Bのイベント履歴情報のうち、最新の収集対象情報のファイル名から取得された装置識別子を示す装置識別情報を、「対象装置識別情報」という。対象装置識別情報に関連付けられたイベント履歴情報を、「対象イベント履歴情報」という。
The
CPU21は、第1テーブル24Bから対象イベント履歴情報を選択する。CPU21は、選択された対象イベント履歴情報のうち、最も大きい値、つまり、最新の第1装置時刻情報に関連付けられたイベント識別情報を選択する。なお、イベントの発生順にイベント履歴情報が第1テーブル24Bに記憶される場合、最新のイベント識別情報は、最後尾のイベント履歴情報に含まれるイベント識別情報に対応する。CPU21は、最新のイベント識別情報が電源オフを示しているか判定する(S67)。CPU21は、最新のイベント識別情報が電源オフ以外を示していると判定された場合(S67:NO)、処理をS79に進める。
The
CPU21は、取得された対象装置識別情報、及び、S63の処理によって取得された最新の第2装置時刻を示す第2装置時刻情報を関連付けて、第2テーブル24Cに記憶する(S79)。CPU21は、S65の処理によって取得されたマスタ時計時刻を示す第1時計時刻情報を更に関連付けて、第2テーブル24Cに記憶する(S79)。なお、CPU21は、対象装置識別情報が第2テーブル24Cに既に記憶されている場合、記憶されている対象装置識別情報に、S63の処理によって取得された最新の第2装置時刻を示す第2装置時刻情報、及び、S65の処理によって取得されたマスタ時計時刻を示す第1時計時刻情報を関連付けて、第2テーブル24Cを更新する(S79)。CPU21は処理をS81に進める。
The
CPU21は、S61の処理によって受信された収集対象情報を、1つずつ選択する。CPU21は、選択された収集対象情報に含まれるイベント履歴情報を、それぞれ、対象装置識別情報に関連付けて、第1テーブル24Bに記憶する(S81)。CPU21は、S61の処理によって受信された収集対象情報がすべて選択されたか判定する(S83)。CPU21は、選択されていない収集対象情報が残存すると判定された場合(S83:NO)、処理をS81に戻す。CPU21は、選択されていない収集対象情報の何れかを更に選択し、S81の処理を繰り返す。CPU21は、受信された収集対象情報がすべて選択されたと判定された場合(S83:YES)、処理をS61に戻す。
CPU21 selects the collection object information received by the process of S61 one by one. The
例えば図5に示すように、収集対象情報341(ファイル名「11111_300060」)、342(ファイル名「11111_300120」)がリムーバブルメディア5から送信された場合を例示する。この場合、CPU21は、最新の第2装置時刻「300120」を示す第2装置時刻情報を取得する(S63)。CPU21は、マスタテーブル24Aのマスタ時計時刻「10:32:02」を取得する(S65)。
For example, as illustrated in FIG. 5, a case where collection target information 341 (file name “11111_300060”) and 342 (file name “11111_300120”) is transmitted from the
CPU21は、第1テーブル24Bの対象イベント履歴情報のうち最新のイベント識別情報が、電源オフのイベントを示していないと判定する(S67:NO)。CPU21は、対象装置識別情報「11111」、S63の処理によって取得された最新の第2装置時刻「300120」を示す第2装置時刻情報、及び、S65の処理によって取得されたマスタ時計時刻「10:32:02」を示す第1時計時刻情報を関連付けて、第2テーブル24Cに記憶する(S79)
The
CPU21は、収集対象情報341を選択し、イベント履歴情報(縫製開始/300010、縫製終了/300030、一時停止/300050)のそれぞれに、対象装置識別情報(「11111」)を関連付けて、第1テーブル24Bに記憶する(S81)。次にCPU21は、収集対象情報342を選択し、イベント履歴情報(縫製開始/300075、縫製終了/300105)のそれぞれに、対象装置識別情報(「11111」)を関連付けて、第1テーブル24Bに記憶する(S81)。
The
一方、CPU21は、図6に示すように、最新のイベント識別情報が電源オフを示していると判定された場合(S67:YES)、処理をS69に進める。CPU21は、S61の処理によって受信されたすべての収集対象情報に含まれるイベント履歴情報から、電源オンの識別子を示すイベント識別情報を抽出する。CPU21は、抽出されたイベント識別情報に関連付けられた第1装置時刻情報を取得する(S69)。CPU21は、電源オンのイベントが発生したときの時計時刻を、次のようにして算出する(S71)。
On the other hand, as shown in FIG. 6, when it is determined that the latest event identification information indicates that the power is off (S67: YES), the
以下、S63の処理によって取得された最新の第2装置時刻を、「Ct(on)」と表記する。Ct(on)は、電源オンの識別子を示すイベント識別情報を含む収集対象情報がミシン3から送信されたときの装置時刻に対応する。S65の処理によって取得されたマスタ時計時刻を、「Tr(on)」と表記する。Tr(on)は、電源オンの識別子を示すイベント識別情報を含む収集対象情報が受信されたときの時計時刻に対応する。S69の処理によって取得された第1装置時刻情報によって示される第1装置時刻を、「Ce(on)」と表記する。Ce(on)は、ミシン3において電源オンのイベントが発生したときの装置時刻に対応する。電源オンのイベントが発生したときの時計時刻を、「Te(on)」と表記する。この場合、Te(on)は、次の(1)式によって算出される。
Te(on)=Tr(on)−(Ct(on)−Ce(on))・・・(1)
Hereinafter, the latest second device time acquired by the process of S63 is referred to as “Ct (on)”. Ct (on) corresponds to the apparatus time when the collection target information including event identification information indicating the power-on identifier is transmitted from the sewing machine 3. The master clock time acquired by the process of S65 is expressed as “Tr (on)”. Tr (on) corresponds to the clock time when the collection target information including the event identification information indicating the power-on identifier is received. The first device time indicated by the first device time information acquired by the process of S69 is referred to as “Ce (on)”. Ce (on) corresponds to the apparatus time when a power-on event occurs in the sewing machine 3. The clock time when the power-on event occurs is expressed as “Te (on)”. In this case, Te (on) is calculated by the following equation (1).
Te (on) = Tr (on) − (Ct (on) −Ce (on)) (1)
CPU21は、第2テーブル24Cのうち、対象装置識別情報に関連付けられた第1時計時刻を取得する(S73)。CPU21は、ミシン3の電源がオフされてからオンされるまでに経過した時間を示す装置時刻を、次のようにして算出する(S75)。
The
以下、S73の処理によって取得された第1時計時刻を、Tr(off)と表記する。Tr(off)は、電源オフの識別子を示すイベント識別情報を含む収集対象情報が受信されたときの時計時刻を示す。ミシン3の電源がオフされてからオンされるまでに経過した時間を示す装置時刻を、C(off−on)と表記する。この場合、C(off−on)は、次の(2)式によって算出される。
C(off−on)=Te(on)−Tr(off)・・・(2)
Hereinafter, the first clock time acquired by the process of S73 will be referred to as Tr (off). Tr (off) indicates the clock time when the collection target information including event identification information indicating the power-off identifier is received. The device time indicating the time elapsed from when the power of the sewing machine 3 is turned off to when it is turned on is denoted as C (off-on). In this case, C (off-on) is calculated by the following equation (2).
C (off-on) = Te (on) -Tr (off) (2)
CPU21は、第1テーブル24Bの対象イベント履歴情報の第1装置時刻から、算出されたC(off−on)を減算する。これによって、CPU21は、対象イベント履歴情報の第1装置時刻情報を更新する(S77)。CPU21は、処理をS79に進める。S79、S81、S83の処理の説明は省略する。
The
図7、図8を参照し、具体例を挙げて説明する。収集対象情報343(ファイル名「11111_300060」)がミシン3から送信された場合を例示する。収集対象情報343には、電源オンの識別子を示すイベント識別情報が含まれている。CPU21は、最新の第2装置時刻として、「300060」(=Ct(on))を取得する(S63)。CPU21は、マスタテーブル24Aのマスタ時計時刻として、「10:31:03」(=Tt(on))を取得する(S65)。
A specific example will be described with reference to FIGS. The case where the collection target information 343 (file name “11111_300060”) is transmitted from the sewing machine 3 is illustrated. The
CPU21は、第1テーブル24Bの対象イベント履歴情報のうち最新のイベント識別情報が、電源オフを示していると判定する(S67:YES)。CPU21は、収集対象情報343に含まれるイベント履歴情報のうち、電源オンのイベント識別情報に関連付けられた第1装置時刻情報(「300005」)(=Ce(on))を取得する(S69)。CPU21は、(1)式に基づいてTe(on)を次のようにして算出する(S71)。
Te(on)=「10:31:03」−(300060−300005)
=「10:31:03」−55=「10:30:08」
The
Te (on) = “10:31:03” − (300060-300005)
= "10:31:03" -55 = "10:30:08"
CPU21は、第2テーブル24Cのうち、対象装置識別情報(「11111」)に関連付けられた第1時計時刻「9:31:03」(=Tr(off))を取得する。CPU21は、(2)式に基づいてC(off−on)を次のようにして算出する(S73)。
C(off−on)=「10:30:08」−「9:31:03」
=3605(=「01:00:05」)
The
C (off-on) = “10:30:08” − “9:31:03”
= 3605 (= "01:00:05")
CPU21は、第1テーブル24Bの対象イベント履歴情報の第1装置時刻「298410」「298500」「300000」から、算出された「3605」を減算する。これによって、CPU21は、図8に示すように、対象イベント履歴情報の第1装置時刻を、それぞれ、「294805」「294895」「296395」に更新する(S77)。
The
CPU21は、対象装置識別情報「11111」、S63の処理によって取得された最新の第2装置時刻「300060」、及び、S65の処理によって取得された第1時計時刻「10:31:03」のそれぞれを示す情報を関連付けて、第2テーブル24Cに記憶する(S79)。又、CPU21は、受信された収集対象情報に含まれるイベント履歴情報(電源オン/300005、縫製開始/300010、縫製終了/300030)を、それぞれ、装置識別情報(111111)に関連付けて、第1テーブル24Bに記憶する(S81)。
The
<サーバ第2処理>
図9を参照し、サーバ第2処理について説明する。CPU21は、PC6から送信される閲覧要求情報を、ネットワーク8を介して受信したか判定する(S91)。閲覧要求情報は、サーバ2に記憶されたイベント履歴情報の閲覧を要求するための情報である。CPU21は、閲覧要求情報を受信していないと判定された場合(S91:NO)、処理をS91に戻す。CPU21は、閲覧要求情報の受信を継続して監視する。
<Server second process>
The server second process will be described with reference to FIG. CPU21 determines whether the browsing request information transmitted from PC6 was received via the network 8 (S91). The browsing request information is information for requesting browsing of the event history information stored in the
PC6のユーザが、所望するミシン3において発生したイベントに関するイベント履歴情報の閲覧を要求する指示をPC6に入力した場合、PC6の非図示のCPUは、ネットワーク8を介して閲覧要求情報をサーバ2に送信する。閲覧要求情報には、ユーザによってイベント履歴情報の閲覧が所望されるミシン3を特定可能な情報(以下、「装置特定情報」という。)が含まれる。装置特定情報は、例えば、各ミシン3の種別を示す装置種別情報(図2参照)、ミシン3を複数に区分したグループを識別するグループ識別情報等である。サーバ2のCPU21は、ネットワーク8を介して閲覧要求情報を受信したと判定された場合(S91:YES)、処理をS93に進める。
When the user of the PC 6 inputs an instruction to the PC 6 to request browsing of event history information related to an event that occurred in the desired sewing machine 3, a CPU (not shown) of the PC 6 sends the browsing request information to the
CPU21は、受信された閲覧要求情報に含まれる装置特定情報を取得する(S93)。CPU21は、取得された装置特定情報に基づいて特定されるミシン3の装置識別情報を特定する(S95)。以下、S95の処理によって特定された装置識別情報を、「対象装置識別情報」とし、サーバ第1処理の場合と同様の言い換えを行う。対象イベント履歴情報に含まれる第1装置時刻情報によって示される装置時刻、及び、イベント識別情報によって示される識別子を、それぞれ、「対象イベント履歴情報の第1装置時刻」及び「対象イベント履歴情報のイベント識別子」と言い換える。第2テーブル24Cのうち、対象装置識別情報に関連付けられた第2装置時刻及び第1時計時刻を、それぞれ、「対象第2装置時刻」及び「対象第1時計時刻」という。 CPU21 acquires the apparatus specific information contained in the received browsing request information (S93). CPU21 specifies the apparatus identification information of the sewing machine 3 specified based on the acquired apparatus specific information (S95). Hereinafter, the apparatus identification information specified by the process of S95 is referred to as “target apparatus identification information”, and the same paraphrase as in the case of the first server process is performed. The device time indicated by the first device time information included in the target event history information and the identifier indicated by the event identification information are respectively represented as “first device time of target event history information” and “event of target event history information”. In other words, “identifier”. In the second table 24C, the second device time and the first clock time associated with the target device identification information are referred to as “target second device time” and “target first clock time”, respectively.
CPU21は、対象第2装置時刻及び対象第1時計時刻を第2テーブル24Cから取得する(S97)。CPU21は、対象イベント履歴情報の第1装置時刻を第1テーブル24Bから取得する(S99)。CPU21は、S99の処理によって取得された第1装置時刻を、1つずつ選択する。CPU21は、選択された第1装置時刻を、S97の処理によって取得された対象第2装置時刻及び対象第1時計時刻に基づいて、次のように第2時計時刻に変換する(S101)。
The
以下、S97の処理によって取得される対象第2装置時刻を、「Ct」と表記し、対象第1時計時刻を、「Tr」と表記する。S99の処理によって取得された対象イベント履歴情報から選択された第1装置時刻を、「Ce」と表記する。第2時計時刻を「Te」と表記する。この場合、Teは、次の(3)式によって算出される。
Te=Tr−(Ct−Ce)・・・(3)
CPU21は、対象イベント履歴情報において選択された第1装置時刻に関連付けられていたイベント識別情報と、算出されたTe(第2時計時刻)を示す第2時計時刻情報とを関連付けて、閲覧応答情報としてRAM23に記憶する。
Hereinafter, the target second device time acquired by the process of S97 is expressed as “Ct”, and the target first clock time is expressed as “Tr”. The first device time selected from the target event history information acquired by the process of S99 is denoted as “Ce”. The second clock time is expressed as “Te”. In this case, Te is calculated by the following equation (3).
Te = Tr− (Ct−Ce) (3)
The
CPU21は、S101の処理による変換を、対象イベント履歴情報の第1装置時刻のすべてに対して実行したか判定する(S103)。CPU21は、S101の処理によって変換されていない第1装置時刻が対象イベント履歴情報に残存すると判定された場合(S103:NO)、処理をS101に戻す。CPU21は、S101の処理による変換が実行されていない第1装置時刻を対象イベント履歴情報から選択し、S101の処理を繰り返す。CPU21は、対象イベント履歴情報の第1装置時刻のすべてを、S101の処理によって変換したと判定された場合(S103:YES)、処理をS105に進める。CPU21は、RAM23に記憶された閲覧応答情報を、閲覧要求情報を送信したPC6に送信する(S105)。CPU21は処理をS91に戻す。
The
例えば図5において、装置識別子「11111」の装置識別情報を特定する装置特定情報を含む閲覧要求情報が、PC6から送信され、サーバ2において受信された場合(S91:YES)を例示する。CPU21は、対象装置識別情報(「11111」)を特定する。CPU21は、対象第2装置時刻「300120」(=Ct)、及び、対象第1時計時刻「10:32:02」(=Tr)を取得する(S97)。CPU21は、対象イベント履歴情報の第1装置時刻(「300010」(縫製開始)、「300030」(縫製終了)、「300050」(縫製開始)、「300075」(縫製終了)、「300105」(一時停止)(=Ce))を取得する(S99)。CPU21は、(3)式を適用することによって、第2時計時刻を次のようにして算出する(S101)。
「10:32:02」−(300120−300010)
=「10:32:02」−110 = 「10:30:12」(縫製開始)
「10:32:02」−(300120−300030)
=「10:32:02」−90 = 「10:30:32」(縫製終了)
「10:32:02」−(300120−300050)
=「10:32:02」−70 = 「10:30:52」(縫製開始)
「10:32:02」−(300120−300075)
=「10:32:02」−45 = 「10:31:17」(縫製開始)
「10:32:02」−(300120−300105)
=「10:32:02」−15 = 「10:31:47」(一時停止)
CPU21は、イベント識別情報及び第2時計時刻情報を含む閲覧応答情報を、閲覧要求情報を送信したPC6に送信する(S105)。
For example, in FIG. 5, a case where browsing request information including device specifying information specifying device identification information of the device identifier “11111” is transmitted from the PC 6 and received by the server 2 (S91: YES) is illustrated. The
“10:32:02”-(300120-300010)
= "10:32:02" -110 = "10:30:12" (sewing start)
“10:32:02”-(300120-300030)
= "10:32:02" -90 = "10:30:32" (sewing complete)
“10:32:02”-(300120-300050)
= "10:32:02" -70 = "10:30:52" (sewing start)
“10:32:02”-(300120-300075)
= "10:32:02" -45 = "10:31:17" (sewing start)
“10:32:02”-(300120-300105)
= "10:32:02" -15 = "10:31:47" (pause)
The
<サーバ第3処理>
図10を参照し、サーバ第3処理について説明する。CPU21は、記憶部24に記憶された標準時刻情報によって示される標準時刻と、マスタテーブル24Aのマスタ時計時刻とが一致するかを、一定周期で判定する。CPU21は、標準時刻とマスタ時計時刻とが一致する場合、マスタ時計時刻情報の変更は不要と判定する(S111:NO)。この場合、CPU21は、処理をS111に戻す。CPU21は、標準時刻とマスタ時計時刻とが相違する場合、マスタ時計時刻情報の変更が必要と判定する(S111:YES)。この場合、CPU21は、処理をS113に進める。
<Server third process>
The server third process will be described with reference to FIG. The
CPU21は、記憶部24に記憶された標準時刻情報によって示される標準時刻を、変更後時計時刻として取得する(S113)。CPU21は、マスタテーブル24Aのマスタ時計時刻を、変更前時計時刻として取得する。CPU21は、取得された変更後時計時刻から変更前時計時刻を減算することによって、補正値を算出する。CPU21は、第2テーブル24Cの第1時計時刻を、算出された補正値によって以下のように補正する(S115)。
The
以下、変更前時計時刻を「Tm」と表記し、変更後時計時刻を「Ts」と表記する。第2テーブル24Cの補正前の第1時計時刻を「Tb」と表記し、補正後の第1時計時刻を「Ta」と表記する。この場合、Caは、次の(4)式によって変換される。
Ta=Tb+(Ts−Tm)・・・(4)
Hereinafter, the clock time before change is expressed as “Tm”, and the clock time after change is expressed as “Ts”. The first clock time before correction in the second table 24C is expressed as “Tb”, and the corrected first clock time is expressed as “Ta”. In this case, Ca is converted by the following equation (4).
Ta = Tb + (Ts−Tm) (4)
CPU21は、マスタテーブル24Aのマスタ時計時刻(変更前時計時刻)を変更後時計時刻に変更し、マスタ時計時刻情報を更新する(S117)。CPU21は、処理をS111に戻す。
The
S115の処理を具体的に説明する。図2に示すように、マスタテーブル24Aのマスタ時計時刻(変換前時計時刻)が「10:31:03」(=Tm)であり、標準時刻(変換後時計時刻)が「11:31:03」(=Ts)である場合を例示する。この場合、Ts−Tm(「11:31:03」−「10:31:03」)は「1:00:00」と算出される。従って、第2テーブル24Cの第1時計時刻「10:31:03」は、「1:00:00」を加算した「11:31:03」に補正される(S115)。 The process of S115 will be specifically described. As shown in FIG. 2, the master clock time (clock time before conversion) of the master table 24A is “10:31:03” (= Tm), and the standard time (clock time after conversion) is “11:31:03. ”(= Ts). In this case, Ts−Tm (“11:31:03” − “10:31:03”) is calculated as “1:00:00”. Accordingly, the first clock time “10:31:03” in the second table 24C is corrected to “11:31:03” obtained by adding “10:00:00” (S115).
なお、図2では、装置識別情報(「11111」)に関連付けられた第1時計時刻情報のみが第2テーブル24Cに記憶されているので、補正対象となる第1時計時刻情報も1つのみとなった。これに対し、複数の装置識別情報に関連付けられた複数の第1時計時刻情報が第2テーブル24Cに記憶されている場合、すべての第1時計時刻情報が補正の対象となる。 In FIG. 2, since only the first clock time information associated with the device identification information (“11111”) is stored in the second table 24C, only one first clock time information to be corrected is included. became. On the other hand, when a plurality of first clock time information associated with a plurality of device identification information is stored in the second table 24C, all the first clock time information is to be corrected.
<本実施形態の主たる作用、効果>
以上説明したように、情報収集システム1において、ミシン3のCPU31は、イベントが発生した場合(S13:YES)、収集対象情報(イベント識別情報、装置識別情報、第1装置時刻情報、及び、第2装置時刻情報)をサーバ2に送信する(S25)。サーバ2のCPU21は、収集対象情報を受信する(S61)。CPU21は、イベント識別情報、装置識別情報、及び、第1装置時刻情報を関連付け、第1テーブル24Bに記憶する(S81)。又、CPU21は、装置識別情報、第2装置時刻情報、及び、イベント識別情報の受信タイミングに対応する第1時計時刻情報を関連付け、第2テーブル24Cに記憶する(S79)。この場合、CPU21は、ミシン3における収集対象情報の送信タイミングに対応する第2装置時刻情報と、サーバ2における収集対象情報の受信タイミングに対応する第1時計時刻情報とを関連付けることができる。このため、CPU21は、第2装置時刻情報と第1時計時刻情報との関係に基づき、イベントの発生タイミングに対応する第1装置時刻情報から、イベントが発生した時計時刻を特定できる。従って、サーバは、各ミシン3が装置時刻情報を個別に記憶する場合であっても、各ミシン3において縫製処理に関するイベントが発生した時計時刻を特定できる。
<Main functions and effects of this embodiment>
As described above, in the
CPU21は、閲覧要求情報を受信した場合(S91:YES)、(3)式に基づいて、対象イベント履歴情報の第1装置時刻を、第2時計時刻に変換する(S101)。CPU21は、イベント識別情報及び第2装置時刻情報を含む閲覧応答情報を、閲覧要求情報を送信したPCに送信する(S105)。この場合、PC6は、サーバ2に閲覧要求情報を送信することによって、ミシン3において発生したイベントと、このイベントが発生した時計時刻とを取得し、これらを関連付けて非図示の表示部に表示させることができる。このため、PC6のユーザは、ミシン3が現在時刻を直接取得する機能を有していない場合でも、ミシン3においてイベントが発生したときの時計時刻を、イベントに関連付けて閲覧できる。
When the
CPU21は、マスタテーブル24Aのマスタ時計時刻が標準時刻と相違する場合(S111:YES)、マスタ時計時刻を標準時刻によって補正すると同時に、第2テーブル24Cに記憶された第1時計時刻情報を補正する(S115)。このため、CPU21は、第2テーブル24Cにおける補正後の第1時計時刻情報と第2装置時刻情報との関係に基づき、第1テーブル24Bの第1装置時刻情報からイベントが発生した時計時刻を特定できる。従って、CPU21は、マスタ時計時刻が変更された場合でも、変更後のマスタ時計時刻に基づいて、イベントが発生した時計時刻を精度よく特定できる。
When the master clock time of the master table 24A is different from the standard time (S111: YES), the
ミシン3の電源が一旦オフされ、その後オンされた場合において、電源オフの間は、マスタ装置時刻は更新されない。これに対し、CPU21は、(1)式及び(2)式に基づいてミシン3の電源がオフされてからオンされるまでに経過した時間を示す装置時刻を算出する(S75)。CPU21は、第1テーブル24Bの対象イベント履歴情報の第1装置時刻から、算出された装置時刻を減算することによって、第1装置時刻を補正できる(S77)。これによって、CPU21は、ミシン3においてマスタ装置時刻が更新されない期間がある場合でも、イベントが発生した時計時刻を精度良く特定できる。
When the power of the sewing machine 3 is once turned off and then turned on, the master device time is not updated while the power is off. On the other hand, the
ミシン3のCPU31は、第3テーブル33Aに記憶されたイベント履歴情報に基づいて、収集対象情報を生成する。CPU31は、装置識別子及び第2装置時刻を含むファイル名を、生成された収集対象情報のファイル名として設定する(S25)。この場合、CPU31は、発生したイベントに直接関係するイベント履歴情報を、装置識別子及び第2装置時刻と区別して第3テーブル33Aに記憶できる。又、装置識別子及び第2装置時刻をファイル名として収集対象情報に設定することによって、これらを示す情報をサーバ2に容易に通知できる。
The
CPU31は、CPU31は、マスタテーブル34Aの送信周期分の時間が経過したと判定された場合(S19:YES)、収集対象情報をサーバ2に送信する(S25)。これによって、CPU31は、送信周期内で複数のイベントが発生した場合、複数のイベントに対応する収集対象情報を、同一タイミングでサーバ2に送信できる。このため、CPU31は、イベントが発生する毎に収集対象情報をサーバ2に送信する場合と比べて、収集対象情報の送信頻度を抑制できる。
When it is determined that the time corresponding to the transmission cycle of the master table 34A has elapsed (S19: YES), the
CPU31は、収集対象情報の送信に失敗したと判定された場合(S51:NO)、送信に失敗した収集対象情報を、リムーバブルメディア5の記憶部52の送信領域521から再送領域522に移動する(S55)。CPU31は、次の送信周期で、記憶部52の送信領域521及び再送領域522に記憶された収集対象情報を、サーバ2に送信する(S25)。この場合、CPU31は、サーバ2に対する収集対象情報の送信に失敗した場合、送信周期分の時間を空けて収集対象情報のリトライ送信を実行できる。従って、CPU31は、例えばサーバ2とミシン3との間の通信状態が一時的に悪化した場合でも、サーバ2に対して収集対象情報を送信できる。又、収集対象情報のリトライ送信は、送信周期の何れかのタイミングで実行される。このため、サーバ2への送信に失敗した収集対象情報が増加することに応じてリトライの送信頻度が増加することを抑制できる。
When it is determined that the transmission of the collection target information has failed (S51: NO), the
サーバ2のCPU21は、複数の収集対象情報をミシン3から受信したと判定された場合(S61:YES)、複数の収集対象情報のそれぞれのファイル名から取得される第2装置時刻のうち、最新の第2装置時刻を取得する(S63)。CPU21は、取得された第2装置時刻及び第1時計時刻のそれぞれを示す情報を関連付けて、第2テーブル24Cに記憶する。この場合、CPU21は、ミシン3から収集対象情報を繰り返し受信する場合において、第2テーブル24Cに記憶された第2装置時刻情報を、最新の第2装置時刻情報によって更新できる。又、CPU21は、第2テーブル24Cに記憶された第1時計時刻情報を、最新の収集対象情報の受信タイミングでマスタテーブル24Aから取得されるマスタ時計時刻情報によって更新できる。従って、CPU21は、各ミシン3においてイベントが発生した時計時刻を、最新の第2装置時刻情報及び第1時計時刻情報に基づいて精度良く特定できる。
When it is determined that the plurality of collection target information has been received from the sewing machine 3 (S61: YES), the
リムーバブルメディア5の制御部53は、記憶部52の送信領域521にデータが書き込まれた場合、送信領域521及び再送領域522に記憶された収集対象情報を、サーバ2宛に送信する。このため、ミシン3のCPU31は、記憶部52の送信領域521にデータを書き込むことによって、サーバ2に収集対象情報を送信できる。又、リムーバブルメディア5の制御部53は、データが受信された場合、記憶部52の受信領域にデータを記憶する。CPU31は、記憶部52の受信領域からデータを読み出すことによって、サーバ2から送信されたデータを受信できる。この場合、ミシン3自体が通信機能を有していない場合でも、サーバ2は、ミシン3において発生したイベントに関する収集対象情報を収集できる。
When data is written in the
<変形例>
本発明は上記実施形態に限定されず、種々の変更が可能である。ミシン3は、イベントの履歴を記憶することが可能な別の機器(例えば、プリンタ、スキャナ、工作機械等)に変更可能である。ミシン3には、通信機能が予め内蔵されていてもよい。例えば、ミシン3には、ネットワーク8を介してサーバ2と通信を行うことが可能な通信I/F(LANカード、Wi−Fi通信モデムなど)が予め内蔵されていてもよい。この場合、収集対象情報は、リムーバブルメディア5を用いること無く、ミシン3の記憶部34又はRAM33に記憶された後に、サーバ2に送信される。
<Modification>
The present invention is not limited to the above embodiment, and various modifications can be made. The sewing machine 3 can be changed to another device (for example, a printer, a scanner, a machine tool, etc.) capable of storing the history of events. The sewing machine 3 may incorporate a communication function in advance. For example, the sewing machine 3 may include a communication I / F (LAN card, Wi-Fi communication modem, etc.) that can communicate with the
閲覧要求情報を送信する装置は、PC6に限定されないことは言うまでもない。例えば、閲覧要求情報は、タブレット端末、スマートフォン等であってもよい。装置特定情報によって特定される装置識別情報は、1つに限定されず、複数であってもよい。装置特定情報に基づいて装置識別情報を特定することが可能な対応テーブルが、サーバ2の記憶部24に記憶されていてもよい。サーバ2のCPU21は、S95の処理を実行する場合において、記憶部24に記憶されたテーブルを参照し、装置特定情報に基づいて装置識別情報を特定してもよい。CPU21は、対象イベント履歴情報、S97の処理によって取得される対象第2装置時刻情報(Ct)、及び、対象第1時計時刻情報(Tr)を、閲覧要求情報を送信したPC6に送信してもよい。PC6は、受信されたCt、Tr、及び、対象イベント履歴情報に含まれる第2装置時刻情報(Ce)に基づき、(3)式を用いて第2時計時刻情報を算出してもよい。PC6は、算出された第2時計時刻情報を、対応するイベント識別情報とともに表示部に表示させてもよい。
It goes without saying that the device that transmits the browsing request information is not limited to the PC 6. For example, the browsing request information may be a tablet terminal, a smartphone, or the like. The device identification information specified by the device specifying information is not limited to one, and may be plural. A correspondence table capable of specifying the device identification information based on the device specifying information may be stored in the
サーバ2は、表示部及び操作部を有していてもよい。CPU21は、イベント履歴情報の表示を指示するための操作が、操作部を介して実行された場合、サーバ第2処理のS93〜S103の処理を実行してもよい。CPU21は、生成された閲覧応答情報を示す画面を表示部に表示させてもよい。
The
CPU21は、S111の処理を実行する場合において、標準時刻とマスタ時計時刻とが一致するかを、一定周期で判定した。これに対し、例えば、OSは、NPTサーバから標準時刻情報を取得したタイミングで、通知フラグに「1」を設定してもよい。CPU21は、通知フラグに「1」が設定されていない場合、マスタ時計時刻情報の変更は不要と判定してもよい(S111:NO)。一方、CPU21は、通知フラグに「1」が設定された場合、マスタ時計時刻情報の変更が必要と判定してもよい(S111:YES)。
When executing the process of S111, the
CPU21は、電源オンのイベント識別情報に関連付けられた第1装置時刻、電源オンのイベントが発生したときの時計時刻、及び、第1時計時刻に基づき、ミシン3の電源がオフされてからオンされるまでに経過した時間を示す装置時刻を算出した(S75)。CPU21は、算出された装置時刻に基づいて、対象イベント履歴情報の第1装置時刻を更新した(S77)。これに対し、例えばCPU21は、電源オフのイベントを示すイベント識別情報を含む収集対象情報をミシン3から受信した場合、第1テーブル24Bの第1装置時刻情報を1秒周期で1ずつ加算する処理を実行してもよい。CPU21は、電源オンのイベントを示すイベント識別情報を含む収集対象情報をミシン3から受信した場合、上記の処理を終了させてもよい。
The
CPU31は、装置識別情報及び第2装置時刻を含むファイル名の収集対象情報を生成した(S25)。これに対し、CPU31は、イベント識別情報、第1装置時刻情報、装置識別情報、及び、第2装置時刻情報を含む収集対象情報を生成してもよい。つまり、装置識別情報及び第2装置時刻情報を含むファイル名が収集対象情報に設定されなくてもよい。
The
CPU31は、マスタテーブル34Aに記憶された周期に基づき、送信周期が到来したと判定された場合(S19:YES)、収集対象情報を送信した(S25)。これに対し、収集対象情報が送信されるタイミングは、イベントが発生した後の何れかの送信周期であればよい。つまり、CPU31は、イベントの発生直後に到来する送信周期で収集対象情報を送信しなくてもよく、それ以降の送信周期の何れかのタイミングで収集対象情報を送信してもよい。又、CPU21は、イベントが発生したタイミングで収集対象情報を送信してもよい。具体的には、CPU21は、S19の処理をスキップして実行することによって、イベントが発生する度に、イベントが発生したタイミングで収集対象を送信してもよい。
When it is determined that the transmission cycle has arrived based on the cycle stored in the master table 34A (S19: YES), the
CPU31は、収集対象情報の送信に失敗したと判定された場合(S51:NO)、収集対象情報を、リムーバブルメディア5の記憶部52のうち送信領域521から再送領域522に移動した(S55)。リムーバブルメディア5の制御部53は、次に送信周期が到来した場合において、記憶部52の再送領域522に収集対象情報が記憶されている場合、新たに発生したイベントに対応し、且つ、送信領域521に記憶された収集対象情報と、再送領域522に記憶された収集対象情報とを送信した(S25)。これに対し、CPU31は、再送領域522に記憶された収集対象情報に含まれるイベント履歴情報と、新たに発生したイベントに対応するイベント履歴情報とを含む共通の収集対象情報を送信してもよい。
When it is determined that the transmission of the collection target information has failed (S51: NO), the
CPU31は、収集対象情報の送信に失敗したと判定された場合(S51:NO)、リムーバブルメディア5の記憶部52のうち送信領域521に記憶された収集対象情報を、再送領域522に移動した(S55)。これに対し、CPU31は、収集対象情報の送信に失敗したと判定された場合、リムーバブルメディア5の記憶部52のうち送信領域521に記憶された収集対象情報を移動せず、そのままにしてもよい。つまり、リムーバブルメディア5の記憶部52に再送領域522は設けられなくてもよい。この場合でも、次に送信周期が到来した場合において、記憶部52の送信領域521に記憶された状態の収集対象情報、つまり、送信に失敗した収集対象情報は、サーバ2に対して送信される。
When it is determined that the transmission of the collection target information has failed (S51: NO), the
<その他>
マスタテーブル34Aが記憶される記憶部34は、本発明の「装置時刻記憶部」の一例である。マスタテーブル34Aのマスタ装置時刻情報は、本発明の「装置時刻情報」の一例である。S25の処理を行うCPU31は、本発明の「第1送信手段」の一例である。マスタテーブル24Aが記憶される記憶部24は、本発明の「時計時刻記憶部」の一例である。マスタテーブル24Aのマスタ時計時刻情報は、本発明の「時計時刻情報」の一例である。S61の処理を行うCPU21は、本発明の「第1受信手段」の一例である。第1テーブル24Bが記憶される記憶部24は、本発明の「第1記憶部」の一例である。第2テーブル24Cが記憶される記憶部24は、本発明の「第2記憶部」の一例である。S81の処理を行うCPU21は、本発明の「第1記憶手段」の一例である。S79の処理を行うCPU21は、本発明の「第2記憶手段」の一例である。S91の処理を行うCPU21は、本発明の「第2受信手段」の一例である。S95の処理を行うCPU21は、本発明の「第1取得手段」の一例である。S101の処理を行うCPU21は、本発明の「変換手段」の一例である。S105の処理を行うCPU21は、本発明の「第2送信手段」の一例である。S111の処理を行うCPU21は、本発明の「第1判定手段」の一例である。S115の処理を行うCPU21は、本発明の「第1補正手段」の一例である。S67の処理を行うCPU21は、本発明の「第2判定手段」の一例である。S69の処理を行うCPU21は、本発明の「第2取得手段」の一例である。S71の処理を行うCPU21は、本発明の「算出手段」の一例である。S77の処理を行うCPU21は、本発明の「第2補正手段」の一例である。S15の処理を行うCPU31は、本発明の「第3記憶手段」に記憶する。第3テーブル33Aが記憶される記憶部34は、本発明の「第3記憶部」の一例である。S51の処理を行うCPU31は、本発明の「第3判定手段」の一例である。S55の処理を行うCPU31は、本発明の「第4記憶手段」の一例である。S25の処理は、本発明の「第5記憶手段」の一である。
<Others>
The
S25の処理は、本発明の「第1送信ステップ」の一例である。S61の処理は、本発明の「第1受信ステップ」の一例である。S81の処理は、本発明の「第1記憶ステップ」の一例である。S79の処理は、本発明の「第2記憶ステップ」の一例である。S91の処理は、本発明の「第2受信ステップ」の一例である。S95の処理は、本発明の「第1取得ステップ」の一例である。S101の処理は、本発明の「変換ステップ」の一例である。S105の処理は、本発明の「第2送信ステップ」の一例である。S111の処理は、本発明の「第1判定ステップ」の一例である。S115の処理は、本発明の「第1補正ステップ」の一例である。S67の処理は、本発明の「第2判定ステップ」の一例である。S69の処理は、本発明の「第2取得ステップ」の一例である。S71の処理は、本発明の「算出ステップ」の一例である。S77の処理は、本発明の「第2補正ステップ」の一例である。S15の処理は、本発明の「第3記憶ステップ」に記憶する。S51の処理は、本発明の「第3判定ステップ」の一例である。S55の処理は、本発明の「第4記憶ステップ」の一例である。 The process of S25 is an example of the “first transmission step” in the present invention. The process of S61 is an example of the “first reception step” in the present invention. The process of S81 is an example of the “first storage step” in the present invention. The process of S79 is an example of the “second storage step” in the present invention. The process of S91 is an example of the “second reception step” in the present invention. The process of S95 is an example of the “first acquisition step” in the present invention. The process of S101 is an example of the “conversion step” in the present invention. The process of S105 is an example of the “second transmission step” in the present invention. The process of S111 is an example of the “first determination step” in the present invention. The process of S115 is an example of the “first correction step” in the present invention. The process of S67 is an example of the “second determination step” in the present invention. The process of S69 is an example of the “second acquisition step” in the present invention. The process of S71 is an example of the “calculation step” in the present invention. The process of S77 is an example of the “second correction step” in the present invention. The process of S15 is stored in the “third storage step” of the present invention. The process of S51 is an example of the “third determination step” in the present invention. The process of S55 is an example of the “fourth storage step” in the present invention.
1 :情報収集システム
2 :サーバ
3 :ミシン
5 :リムーバブルメディア
21 :CPU
24 :記憶部
24A :マスタテーブル
24B :第1テーブル
24C :第2テーブル
31 :CPU
34 :記憶部
34A :マスタテーブル
34B :第3テーブル
341、342、343 :収集対象情報
521 :送信領域
522 :受信領域
1: Information collection system 2: Server 3: Sewing machine 5: Removable media 21: CPU
24:
34:
Claims (31)
前記端末装置は、
前記端末装置における時刻である装置時刻を示す装置時刻情報を記憶する装置時刻記憶部と、
前記端末装置において発生したイベントを識別するイベント識別情報、前記端末装置を識別する装置識別情報、第1装置時刻情報、及び、第2装置時刻情報を、前記サーバに送信する第1送信手段と
を備え、
前記第1装置時刻情報は、前記イベントの発生タイミングに対応する前記装置時刻情報であり、
前記第2装置時刻情報は、前記第1送信手段による前記イベント識別情報の送信タイミングに対応する前記装置時刻情報であり、
前記サーバは、
現在時刻を示す時計時刻情報を記憶する時計時刻記憶部と、
前記端末装置から送信された前記イベント識別情報、前記装置識別情報、前記第1装置時刻情報、及び、前記第2装置時刻情報を受信する第1受信手段と、
前記第1受信手段によって受信された前記イベント識別情報、前記装置識別情報、及び、前記第1装置時刻情報を関連付けて、第1記憶部に記憶する第1記憶手段と、
前記第1受信手段によって受信された前記装置識別情報、前記第2装置時刻情報、及び、第1時計時刻情報を関連付けて、第2記憶部に記憶する第2記憶手段と、
を備え、
前記第1時計時刻情報は、前記第1受信手段による前記イベント識別情報の受信タイミングに対応する前記時計時刻情報であることを特徴とする情報収集システム。 An information collection system including a terminal device and a server that can communicate with each other,
The terminal device
A device time storage unit for storing device time information indicating a device time which is a time in the terminal device;
Event identification information for identifying an event that has occurred in the terminal device, device identification information for identifying the terminal device, first device time information, and first device time information for transmitting the second device time information to the server. Prepared,
The first device time information is the device time information corresponding to the occurrence timing of the event,
The second device time information is the device time information corresponding to the transmission timing of the event identification information by the first transmission means,
The server
A clock time storage unit for storing clock time information indicating the current time;
First receiving means for receiving the event identification information, the device identification information, the first device time information, and the second device time information transmitted from the terminal device;
First storage means for associating the event identification information received by the first reception means, the device identification information, and the first device time information with each other and storing them in a first storage unit;
Second storage means for associating the device identification information, the second device time information, and the first clock time information received by the first receiving means, and storing them in a second storage unit;
With
The information collection system according to claim 1, wherein the first clock time information is the clock time information corresponding to a reception timing of the event identification information by the first receiving unit.
前記端末装置を特定可能な装置特定情報を含む閲覧要求を要求元装置から受信する第2受信手段と、
前記第1記憶部において、対象の端末装置を識別する前記装置識別情報に関連付けられて記憶された前記イベント識別情報及び前記第1装置時刻情報を取得する第1取得手段であって、前記対象の端末装置は、前記第2受信手段によって受信された前記閲覧要求に含まれる前記装置特定情報によって特定される端末装置であり、
前記第2記憶部において、前記対象の端末装置を識別する前記装置識別情報に関連付けられて記憶された前記第2装置時刻情報及び前記第1時計時刻情報に基づいて、前記第1取得手段によって取得された前記第1装置時刻情報を、前記イベント識別情報によって識別される前記イベントが発生した時計時刻を示す第2時計時刻情報に変換する変換手段と、
前記第1取得手段によって取得された前記イベント識別情報、及び、前記変換手段によって変換された前記第2時計時刻情報を前記要求元装置に送信する第2送信手段と
を備えたことを特徴とする請求項1に記載の情報収集システム。 The server
Second receiving means for receiving a browsing request including device specifying information capable of specifying the terminal device from a request source device;
In the first storage unit, first acquisition means for acquiring the event identification information and the first device time information stored in association with the device identification information for identifying a target terminal device, The terminal device is a terminal device specified by the device specifying information included in the browsing request received by the second receiving unit,
Obtained by the first obtaining unit based on the second device time information and the first clock time information stored in the second storage unit in association with the device identification information for identifying the target terminal device. Conversion means for converting the first device time information thus obtained into second clock time information indicating a clock time at which the event identified by the event identification information has occurred;
And a second transmission unit configured to transmit the event identification information acquired by the first acquisition unit and the second clock time information converted by the conversion unit to the request source apparatus. The information collection system according to claim 1.
前記時計時刻記憶部に記憶された前記時計時刻情報を変更する処理が実行されたか判定する第1判定手段と、
前記第1判定手段によって、前記時計時刻情報を変更する処理が実行されたと判定された場合、変更前の前記時計時刻情報によって示される変更前時計時刻と、変更後の前記時計時刻情報によって示される変更後時計時刻との差分に対応する補正を、前記第2記憶部に記憶された前記第1時計時刻情報に対して行う第1補正手段と
を備えたことを特徴とする請求項1に記載の情報収集システム。 The server
First determination means for determining whether or not processing for changing the clock time information stored in the clock time storage unit has been executed;
When it is determined by the first determination means that the process of changing the clock time information has been executed, the clock time before the change indicated by the clock time information before the change and the clock time information after the change are indicated. 2. The apparatus according to claim 1, further comprising a first correction unit configured to perform correction corresponding to a difference from the changed clock time on the first clock time information stored in the second storage unit. Information collection system.
前記第1受信手段による受信に応じて、前記第1記憶部に記憶された最新のイベント識別情報が、前記端末装置の電源オフ動作を示すかを判定する第2判定手段と、
前記第2判定手段によって、前記最新のイベント識別情報が前記電源オフ動作を示すと判定された場合、前記第1受信手段によって受信された前記イベント識別情報であって前記端末装置の電源オン動作を示す起動情報と、前記起動情報の発生タイミングに対応する前記第1装置時刻情報とを取得する第2取得手段と、
前記第2取得手段によって取得された前記起動情報の発生タイミングに対応する前記第1装置時刻情報と、前記第1受信手段によって受信された前記第2装置時刻情報と、前記起動情報の受信タイミングに対応する時計時刻情報とに基づいて、前記起動情報の発生タイミングに対応する前記時計時刻情報である起動時計時刻情報を算出する算出手段と、
前記算出手段によって算出された前記起動時計時刻情報と、前記第2記憶部に記憶された前記第1時計時刻情報との差に基づいて、前記第1記憶部に記憶された前記第1装置時刻情報を補正する第2補正手段と、
を備えたことを特徴とする請求項1に記載の情報収集システム。 The server
Second determination means for determining whether the latest event identification information stored in the first storage unit indicates a power-off operation of the terminal device in response to reception by the first reception means;
When the second determination unit determines that the latest event identification information indicates the power-off operation, the event identification information received by the first reception unit, the power-on operation of the terminal device being performed. Second acquisition means for acquiring the startup information shown and the first device time information corresponding to the generation timing of the startup information;
The first apparatus time information corresponding to the generation timing of the activation information acquired by the second acquisition means, the second apparatus time information received by the first reception means, and the reception timing of the activation information Calculating means for calculating start clock time information which is the clock time information corresponding to the generation timing of the start information based on the corresponding clock time information;
The first device time stored in the first storage unit based on a difference between the startup clock time information calculated by the calculation means and the first clock time information stored in the second storage unit. Second correction means for correcting information;
The information collecting system according to claim 1, further comprising:
前記イベント識別情報及び前記第1装置時刻情報を関連付け、イベント履歴情報として第3記憶部に記憶する第3記憶手段を備え、
前記第1送信手段は、
前記第3記憶部に関連付けて記憶された前記イベント識別情報及び前記第1装置時刻情報に、前記第2装置時刻情報及び前記装置識別情報を加えた収集対象情報を、前記サーバに送信することを特徴とする請求項1に記載の情報収集システム。 The terminal device
A third storage means for associating the event identification information and the first device time information and storing the event identification information in a third storage unit;
The first transmission means includes
Transmitting the collection target information obtained by adding the second device time information and the device identification information to the event identification information and the first device time information stored in association with the third storage unit to the server. The information collection system according to claim 1, wherein
所定周期の何れかのタイミングで、前記収集対象情報を送信することを特徴とする請求項5に記載の情報収集システム。 The first transmission means includes
The information collection system according to claim 5, wherein the collection target information is transmitted at any timing of a predetermined cycle.
前記第1送信手段による前記収集対象情報の送信に成功したかを判定する第3判定手段と、
前記第3判定手段によって、前記収集対象情報の送信に成功していないと判定された場合、送信に失敗した前記収集対象情報を第4記憶部に記憶する第4記憶手段と、
を備え、
前記第1送信手段は、
前記第4記憶部に前記収集対象情報が記憶された後の前記所定周期の何れかのタイミングで、前記第3記憶部に記憶された前記イベント識別情報及び前記第1装置時刻情報を含む前記収集対象情報と、前記第4記憶部に記憶された前記収集対象情報とを送信することを特徴とする請求項6に記載の情報収集システム。 The terminal device
Third determination means for determining whether the collection target information has been successfully transmitted by the first transmission means;
A fourth storage unit that stores the collection target information that failed to be transmitted in a fourth storage unit when the third determination unit determines that the transmission of the collection target information is not successful;
With
The first transmission means includes
The collection including the event identification information and the first device time information stored in the third storage unit at any timing of the predetermined period after the collection target information is stored in the fourth storage unit The information collection system according to claim 6, wherein target information and the collection target information stored in the fourth storage unit are transmitted.
前記第1受信手段によって、前記収集対象情報が複数受信された場合、
前記第2記憶手段は、
前記第1受信手段によって受信された複数の前記収集対象情報のそれぞれの前記第2装置時刻情報のうち最新の第2装置時刻情報、前記装置識別情報、及び、前記第1時計時刻情報を関連付けて前記第2記憶部に記憶することを特徴とする請求項7に記載の情報収集システム。 The server
When a plurality of the collection target information is received by the first receiving unit,
The second storage means
Associating the latest second device time information, the device identification information, and the first clock time information among the second device time information of each of the plurality of collection target information received by the first receiving means. The information collection system according to claim 7, wherein the information collection system is stored in the second storage unit.
前記イベント識別情報は、前記モータの動作状態の変化を示すことを特徴とする請求項1から8の何れかに記載の情報収集システム。 The terminal device is a sewing machine including a motor,
The information collection system according to claim 1, wherein the event identification information indicates a change in an operation state of the motor.
前記イベント識別情報は、前記モータの動作状態の変化を示し、
前記ミシンは、
無線通信を行う通信デバイスを有し、且つ、記憶領域を有するリムーバブルメディアを含み、
前記所定周期の何れかのタイミングで、前記第2装置時刻情報及び前記装置識別情報をファイル名として含み、前記第3記憶部に関連付けて記憶された前記イベント識別情報及び前記第1装置時刻情報を含むファイルを、前記収集対象情報として前記リムーバブルメディアの前記記憶領域に記憶する第5記憶手段をさらに備え、
前記第1送信手段は、
前記第5記憶手段によって前記リムーバブルメディアの前記記憶領域に前記収集対象情報が記憶されたことに応じて、前記収集対象情報を送信することを特徴とする請求項6に記載の情報収集システム。 The terminal device is a sewing machine including a motor,
The event identification information indicates a change in the operating state of the motor,
The sewing machine
A removable medium having a communication device for performing wireless communication and having a storage area;
The event identification information and the first device time information stored in association with the third storage unit include the second device time information and the device identification information as a file name at any timing of the predetermined cycle. A fifth storage means for storing a file including the file as the collection target information in the storage area of the removable medium;
The first transmission means includes
The information collection system according to claim 6, wherein the collection target information is transmitted in response to the collection target information being stored in the storage area of the removable medium by the fifth storage unit.
前記イベント識別情報は、前記モータの動作状態の変化を示し、
前記ミシンは、
無線通信を行う通信デバイスを有し、且つ、記憶領域を有するリムーバブルメディアを含み、
前記所定周期の何れかのタイミングで、前記第2装置時刻情報及び前記装置識別情報をファイル名として含み、前記第3記憶部に関連付けて記憶された前記イベント識別情報及び前記第1装置時刻情報を含むファイルを、前記収集対象情報として前記リムーバブルメディアの前記記憶領域のうち送信領域に記憶する第5記憶手段を備え、
前記第1送信手段は、
前記第5記憶手段によって前記送信領域に前記収集対象情報が記憶されたことに応じて、前記収集対象情報を送信し、
前記第4記憶手段は、
前記第3判定手段によって、前記収集対象情報の送信に成功していないと判定された場合、送信に失敗した前記収集対象情報を、前記記憶領域のうち再送領域に記憶し、
前記第1送信手段は、
前記第5記憶手段によって前記収集対象情報が前記送信領域に記憶された場合において、前記再送領域に前記収集対象情報が記憶されている場合、前記送信領域に記憶された前記収集対象情報と、前記再送領域に記憶された前記収集対象情報とを送信することを特徴とする請求項7又は8に記載の情報収集システム。 The terminal device is a sewing machine including a motor,
The event identification information indicates a change in the operating state of the motor,
The sewing machine
A removable medium having a communication device for performing wireless communication and having a storage area;
The event identification information and the first device time information stored in association with the third storage unit include the second device time information and the device identification information as a file name at any timing of the predetermined cycle. Including a fifth storage means for storing a file including the file to be collected in the transmission area of the storage area of the removable medium as the collection target information;
The first transmission means includes
In response to the collection target information being stored in the transmission area by the fifth storage unit, the collection target information is transmitted,
The fourth storage means is
If it is determined by the third determination means that the transmission of the collection target information has not been successful, the collection target information that has failed to be transmitted is stored in the retransmission area of the storage area,
The first transmission means includes
When the collection target information is stored in the transmission area by the fifth storage unit, when the collection target information is stored in the retransmission area, the collection target information stored in the transmission area, and 9. The information collection system according to claim 7, wherein the collection target information stored in a retransmission area is transmitted.
前記端末装置から送信された前記イベント識別情報、前記装置識別情報、前記第1装置時刻情報、及び、前記第2装置時刻情報を、前記サーバが受信する第1受信ステップと、
前記第1受信ステップによって受信された前記イベント識別情報、前記装置識別情報、及び、前記第1装置時刻情報を関連付けて、前記サーバが第1記憶部に記憶する第1記憶ステップと、
前記第1受信ステップによって受信された前記装置識別情報、前記第2装置時刻情報、及び、現在時刻を示す時計時刻情報を記憶する時計時刻記憶部に記憶され、前記第1受信ステップによる前記イベント識別情報の受信タイミングに対応する第1時計時刻情報を関連付けて、前記サーバが第2記憶部に記憶する第2記憶ステップと、
を備えたことを特徴とする情報収集方法。 Event identification information that identifies an event that has occurred in a terminal device, device identification information that identifies the terminal device, and device time information that indicates device time that is a time in the terminal device are stored in a device time storage unit, and the event A first transmission step in which the terminal device transmits to the server first device time information corresponding to the occurrence timing and second device time information corresponding to the transmission timing of the event identification information;
A first receiving step in which the server receives the event identification information, the device identification information, the first device time information, and the second device time information transmitted from the terminal device;
A first storage step in which the server stores the event identification information, the device identification information, and the first device time information received in the first reception step in the first storage unit in association with each other;
The device identification information received in the first reception step, the second device time information, and the clock time storage unit that stores the clock time information indicating the current time, and the event identification by the first reception step A second storage step in which the server stores the first clock time information corresponding to the information reception timing in the second storage unit;
An information collecting method characterized by comprising:
前記第1記憶部において、対象の端末装置を識別する前記装置識別情報に関連付けられて記憶された前記イベント識別情報及び前記第1装置時刻情報を、前記サーバが取得する第1取得ステップであって、前記対象の端末装置は、前記第2受信ステップによって受信された前記閲覧要求に含まれる前記装置特定情報によって特定される端末装置であり、
前記第2記憶部において、前記対象の端末装置を識別する前記装置識別情報に関連付けられて記憶された前記第2装置時刻情報及び前記第1時計時刻情報に基づいて、前記サーバが、前記第1取得ステップによって取得された前記第1装置時刻情報を、前記イベント識別情報によって識別される前記イベントが発生した時計時刻を示す第2時計時刻情報に変換する変換ステップと、
前記第1取得ステップによって取得された前記イベント識別情報、及び、前記変換ステップによって変換された前記第2時計時刻情報を、前記サーバが前記要求元装置に送信する第2送信ステップと
を備えたことを特徴とする請求項12に記載の情報収集方法。 A second receiving step in which the server receives a browsing request including device specifying information capable of specifying the terminal device from the request source device;
In the first storage unit, the server acquires the event identification information and the first device time information stored in association with the device identification information for identifying a target terminal device. The target terminal device is a terminal device specified by the device specifying information included in the browsing request received by the second receiving step.
In the second storage unit, based on the second device time information and the first clock time information stored in association with the device identification information for identifying the target terminal device, the server performs the first A conversion step of converting the first device time information acquired by the acquisition step into second clock time information indicating a clock time at which the event identified by the event identification information occurs;
A second transmission step in which the server transmits the event identification information acquired in the first acquisition step and the second clock time information converted in the conversion step to the request source device. The information collecting method according to claim 12.
前記第1判定ステップによって、前記時計時刻情報を変更する処理が実行されたと判定された場合、前記サーバが、変更前の前記時計時刻情報によって示される変更前時計時刻と、変更後の前記時計時刻情報によって示される変更後時計時刻との差分に対応する補正を、前記第2記憶部に記憶された前記第1時計時刻情報に対して行う第1補正ステップと
を備えたことを特徴とする請求項12に記載の情報収集方法。 A first determination step in which the server determines whether or not processing for changing the clock time information stored in the clock time storage unit has been executed;
If it is determined in the first determination step that the process of changing the clock time information has been executed, the server determines that the clock time before change indicated by the clock time information before change and the clock time after change. And a first correction step for performing correction corresponding to the difference from the changed clock time indicated by the information on the first clock time information stored in the second storage unit. Item 13. The information collecting method according to Item 12.
前記第2判定ステップによって、前記最新のイベント識別情報が前記電源オフ動作を示すと判定された場合、前記第1受信ステップによって受信された前記イベント識別情報であって前記端末装置の電源オン動作を示す起動情報と、前記起動情報の発生タイミングに対応する前記第1装置時刻情報とを、前記サーバが取得する第2取得ステップと、
前記第2取得ステップによって取得された前記起動情報の発生タイミングに対応する前記第1装置時刻情報と、前記第1受信ステップによって受信された前記第2装置時刻情報と、前記起動情報の受信タイミングに対応する時計時刻情報とに基づいて、前記起動情報の発生タイミングに対応する前記時計時刻情報である起動時計時刻情報を、前記サーバが算出する算出ステップと、
前記算出ステップによって算出された前記起動時計時刻情報と、前記第2記憶部に記憶された前記第1時計時刻情報との差に基づいて、前記第1記憶部に記憶された前記第1装置時刻情報を、前記サーバが補正する第2補正ステップと、
を備えたことを特徴とする請求項12に記載の情報収集方法。 A second determination step in which the server determines whether the latest event identification information stored in the first storage unit indicates a power-off operation of the terminal device in response to reception by the first reception step;
When it is determined in the second determination step that the latest event identification information indicates the power-off operation, the event identification information received in the first reception step, the power-on operation of the terminal device being performed A second acquisition step in which the server acquires the startup information to be displayed and the first device time information corresponding to the generation timing of the startup information;
The first device time information corresponding to the generation timing of the activation information acquired by the second acquisition step, the second device time information received by the first reception step, and the reception timing of the activation information A calculation step in which the server calculates startup clock time information, which is the clock time information corresponding to the generation timing of the startup information, based on the corresponding clock time information;
The first device time stored in the first storage unit based on a difference between the startup clock time information calculated by the calculation step and the first clock time information stored in the second storage unit. A second correction step in which the server corrects the information;
The information collecting method according to claim 12, further comprising:
前記第1送信ステップは、
前記第3記憶部に関連付けて記憶された前記イベント識別情報及び前記第1装置時刻情報に、前記第2装置時刻情報及び前記装置識別情報を加えた収集対象情報を、前記サーバに送信することを特徴とする請求項12に記載の情報収集方法。 The terminal device includes a third storage step of associating the event identification information and the first device time information and storing the event identification information as event history information in a third storage unit,
The first transmission step includes
Transmitting the collection target information obtained by adding the second device time information and the device identification information to the event identification information and the first device time information stored in association with the third storage unit to the server. The information collection method according to claim 12, wherein
所定周期の何れかのタイミングで、前記収集対象情報を送信することを特徴とする請求項16に記載の情報収集方法。 The first transmission step includes
The information collection method according to claim 16, wherein the collection target information is transmitted at any timing of a predetermined period.
前記第3判定ステップによって、前記収集対象情報の送信に成功していないと判定された場合、前記端末装置が、送信に失敗した前記収集対象情報を第4記憶部に記憶する第4記憶ステップと、
を備え、
前記第1送信ステップは、
前記第4記憶部に前記収集対象情報が記憶された後の前記所定周期の何れかのタイミングで、前記第3記憶部に記憶された前記イベント識別情報及び前記第1装置時刻情報を含む前記収集対象情報と、前記第4記憶部に記憶された前記収集対象情報とを送信することを特徴とする請求項17に記載の情報収集方法。 A third determination step in which the terminal device determines whether the collection target information has been successfully transmitted in the first transmission step;
A fourth storage step in which, when it is determined by the third determination step that the transmission of the collection target information is not successful, the terminal device stores the collection target information that has failed to be transmitted in a fourth storage unit; ,
With
The first transmission step includes
The collection including the event identification information and the first device time information stored in the third storage unit at any timing of the predetermined period after the collection target information is stored in the fourth storage unit 18. The information collection method according to claim 17, wherein target information and the collection target information stored in the fourth storage unit are transmitted.
前記第2記憶ステップは、
前記第1受信ステップによって受信されたそれぞれの前記第2装置時刻情報のうち最新の第2装置時刻情報、前記装置識別情報、及び、前記第1時計時刻情報を関連付けて前記第2記憶部に記憶することを特徴とする請求項18に記載の情報収集方法。 When a plurality of the event identification information, the device identification information, the first device time information, and the second device time information are received by the first reception step,
The second storage step includes
Of the second device time information received by the first reception step, the latest second device time information, the device identification information, and the first clock time information are associated and stored in the second storage unit. The information collecting method according to claim 18, wherein:
前記第1受信ステップによって受信された前記イベント識別情報、前記装置識別情報、及び、前記第1装置時刻情報を関連付けて、第1記憶部に記憶する第1記憶ステップと、
前記第1受信ステップによって受信された前記装置識別情報、前記第2装置時刻情報、及び、現在時刻を示す時計時刻情報を記憶する時計時刻記憶部に記憶され、前記第1受信ステップによる前記イベント識別情報の受信タイミングに対応する第1時計時刻情報を関連付けて、第2記憶部に記憶する第2記憶ステップと、
を備えたことを特徴とする情報収集方法。 Event identification information that identifies an event that has occurred in a terminal device, device identification information that identifies the terminal device, and device time information that indicates device time that is a time in the terminal device are stored in a device time storage unit, and the event A first reception step of receiving first device time information corresponding to the occurrence timing of the first device and second device time information corresponding to the transmission timing of the event identification information;
A first storage step of storing the event identification information, the device identification information, and the first device time information received in the first reception step in association with each other in a first storage unit;
The device identification information received in the first reception step, the second device time information, and the clock time storage unit that stores the clock time information indicating the current time, and the event identification by the first reception step A second storage step of associating the first clock time information corresponding to the information reception timing and storing it in the second storage unit;
An information collecting method characterized by comprising:
前記第1記憶部において、対象の端末装置を識別する前記装置識別情報に関連付けられて記憶された前記イベント識別情報及び前記第1装置時刻情報を取得する第1取得ステップであって、前記対象の端末装置は、前記第2受信ステップによって受信された前記閲覧要求に含まれる前記装置特定情報によって特定される端末装置であり、
前記第2記憶部において、前記対象の端末装置を識別する前記装置識別情報に関連付けられて記憶された前記第2装置時刻情報及び前記第1時計時刻情報に基づいて、前記第1取得ステップによって取得された前記第1装置時刻情報を、前記イベント識別情報によって識別される前記イベントが発生した時計時刻を示す第2時計時刻情報に変換する変換ステップと、
前記第1取得ステップによって取得された前記イベント識別情報、及び、前記変換ステップによって変換された前記第2時計時刻情報を前記要求元装置に送信する第2送信ステップと
を備えたことを特徴とする請求項20に記載の情報収集方法。 A second receiving step of receiving, from the request source device, a browsing request including device specifying information capable of specifying the terminal device;
In the first storage unit, the first acquisition step of acquiring the event identification information and the first device time information stored in association with the device identification information for identifying a target terminal device, The terminal device is a terminal device specified by the device specifying information included in the browsing request received by the second receiving step,
Obtained by the first obtaining step based on the second device time information and the first clock time information stored in the second storage unit in association with the device identification information for identifying the target terminal device. Converting the first device time information thus obtained into second clock time information indicating a clock time at which the event identified by the event identification information has occurred;
And a second transmission step of transmitting the event identification information acquired in the first acquisition step and the second clock time information converted in the conversion step to the request source device. The information collection method according to claim 20.
前記第1判定ステップによって、前記時計時刻情報を変更する処理が実行されたと判定された場合、変更前の前記時計時刻情報によって示される変更前時計時刻と、変更後の前記時計時刻情報によって示される変更後時計時刻との差分に対応する補正を、前記第2記憶部に記憶された前記第1時計時刻情報に対して行う第1補正ステップと
を備えたことを特徴とする請求項20に記載の情報収集方法。 A first determination step of determining whether or not processing for changing the clock time information stored in the clock time storage unit has been executed;
When it is determined in the first determination step that the process of changing the clock time information has been executed, the clock time before the change indicated by the clock time information before the change and the clock time information after the change are indicated. 21. The method according to claim 20, further comprising: a first correction step of performing correction corresponding to a difference from the changed clock time on the first clock time information stored in the second storage unit. Information collection method.
前記第2判定ステップによって、前記最新のイベント識別情報が前記電源オフ動作を示すと判定された場合、前記第1受信ステップによって受信された前記イベント識別情報であって前記端末装置の電源オン動作を示す起動情報と、前記起動情報の発生タイミングに対応する前記第1装置時刻情報とを取得する第2取得ステップと、
前記第2取得ステップによって取得された前記起動情報の発生タイミングに対応する前記第1装置時刻情報と、前記第1受信ステップによって受信された前記第2装置時刻情報と、前記起動情報の受信タイミングに対応する時計時刻情報とに基づいて、前記起動情報の発生タイミングに対応する前記時計時刻情報である起動時計時刻情報を算出する算出ステップと、
前記算出ステップによって算出された前記起動時計時刻情報と、前記第2記憶部に記憶された前記第1時計時刻情報との差に基づいて、前記第1記憶部に記憶された前記第1装置時刻情報を補正する第2補正ステップと、
を備えたことを特徴とする請求項20に記載の情報収集方法。 A second determination step of determining whether the latest event identification information stored in the first storage unit indicates a power-off operation of the terminal device in response to reception by the first reception step;
When it is determined in the second determination step that the latest event identification information indicates the power-off operation, the event identification information received in the first reception step, the power-on operation of the terminal device being performed A second acquisition step of acquiring the startup information shown and the first device time information corresponding to the generation timing of the startup information;
The first device time information corresponding to the generation timing of the activation information acquired by the second acquisition step, the second device time information received by the first reception step, and the reception timing of the activation information A calculation step of calculating activation clock time information, which is the clock time information corresponding to the generation timing of the activation information, based on the corresponding clock time information;
The first device time stored in the first storage unit based on a difference between the startup clock time information calculated by the calculation step and the first clock time information stored in the second storage unit. A second correction step for correcting information;
21. The information collecting method according to claim 20, further comprising:
前記第2記憶ステップは、
前記第1受信ステップによって受信されたそれぞれの前記第2装置時刻情報のうち最新の第2装置時刻情報、前記装置識別情報、及び、前記第1時計時刻情報を関連付けて前記第2記憶部に記憶することを特徴とする請求項20から23の何れかに記載の情報収集方法。 When a plurality of the event identification information, the device identification information, the first device time information, and the second device time information are received by the first reception step,
The second storage step includes
Of the second device time information received by the first reception step, the latest second device time information, the device identification information, and the first clock time information are associated and stored in the second storage unit. The information collecting method according to any one of claims 20 to 23, wherein:
前記端末装置において発生したイベントを識別するイベント識別情報、前記端末装置を識別する装置識別情報、第1装置時刻情報、及び、第2装置時刻情報を、サーバに送信する第1送信手段と
を備え、
前記第1装置時刻情報は、前記イベントの発生タイミングに対応する前記装置時刻情報であり、
前記第2装置時刻情報は、前記第1送信手段による前記イベント識別情報の送信タイミングに対応する前記装置時刻情報である
ことを特徴とする端末装置。 A device time storage unit for storing device time information indicating a device time which is a time in the terminal device;
Event identification information for identifying an event that has occurred in the terminal device, device identification information for identifying the terminal device, first device time information, and first device time information for transmitting to the server, first transmission means. ,
The first device time information is the device time information corresponding to the occurrence timing of the event,
The terminal device characterized in that the second device time information is the device time information corresponding to the transmission timing of the event identification information by the first transmission means.
前記第1送信手段は、
前記第3記憶部に関連付けて記憶された前記イベント識別情報及び前記第1装置時刻情報に、前記第2装置時刻情報及び前記装置識別情報を加えた収集対象情報を、前記サーバに送信することを特徴とする請求項25に記載の端末装置。 A third storage means for associating the event identification information and the first device time information and storing the event identification information in a third storage unit;
The first transmission means includes
Transmitting the collection target information obtained by adding the second device time information and the device identification information to the event identification information and the first device time information stored in association with the third storage unit to the server. The terminal device according to claim 25, characterized in that:
所定周期の何れかのタイミングで、前記収集対象情報を送信することを特徴とする請求項26に記載の端末装置。 The first transmission means includes
27. The terminal device according to claim 26, wherein the collection target information is transmitted at any timing of a predetermined cycle.
前記第3判定手段によって、前記収集対象情報の送信に成功していないと判定された場合、送信に失敗した前記収集対象情報を第4記憶部に記憶する第4記憶手段と、
を備え、
前記第1送信手段は、
前記第4記憶部に前記収集対象情報が記憶された後の前記所定周期の何れかのタイミングで、前記第3記憶部に記憶された前記イベント識別情報及び前記第1装置時刻情報を含む前記収集対象情報と、前記第4記憶部に記憶された前記収集対象情報とを送信することを特徴とする請求項27に記載の端末装置。 Third determination means for determining whether the collection target information has been successfully transmitted by the first transmission means;
A fourth storage unit that stores the collection target information that failed to be transmitted in a fourth storage unit when the third determination unit determines that the transmission of the collection target information is not successful;
With
The first transmission means includes
The collection including the event identification information and the first device time information stored in the third storage unit at any timing of the predetermined period after the collection target information is stored in the fourth storage unit 28. The terminal device according to claim 27, wherein target information and the collection target information stored in the fourth storage unit are transmitted.
前記イベント識別情報は、前記モータの動作状態の変化を示すことを特徴とする請求項25〜28の何れか1項に記載の端末装置。 The terminal device is a sewing machine including a motor,
The terminal device according to any one of claims 25 to 28, wherein the event identification information indicates a change in an operation state of the motor.
前記イベント識別情報は、前記モータの動作状態の変化を示し、
前記ミシンは、
無線通信を行う通信デバイスを有し、且つ、記憶領域を有するリムーバブルメディアを含み、
前記所定周期の何れかのタイミングで、前記第2装置時刻情報及び前記装置識別情報をファイル名として含み、前記第3記憶部に関連付けて記憶された前記イベント識別情報及び前記第1装置時刻情報を含むファイルを、前記収集対象情報として前記リムーバブルメディアの前記記憶領域に記憶する第5記憶手段をさらに備え、
前記第1送信手段は、
前記第5記憶手段によって前記リムーバブルメディアの前記記憶領域に前記収集対象情報が記憶されたことに応じて、前記収集対象情報を送信することを特徴とする請求項28に記載の端末装置。 The terminal device is a sewing machine including a motor,
The event identification information indicates a change in the operating state of the motor,
The sewing machine
A removable medium having a communication device for performing wireless communication and having a storage area;
The event identification information and the first device time information stored in association with the third storage unit include the second device time information and the device identification information as a file name at any timing of the predetermined cycle. A fifth storage means for storing a file including the file as the collection target information in the storage area of the removable medium;
The first transmission means includes
29. The terminal device according to claim 28, wherein the collection target information is transmitted in response to the collection target information being stored in the storage area of the removable medium by the fifth storage unit.
前記リムーバブルメディアの前記記憶領域のうち送信領域に前記収集対象情報を記憶し、
前記第1送信手段は、
前記第5記憶手段によって前記送信領域に前記収集対象情報が記憶されたことに応じて、前記収集対象情報を送信し、
前記第4記憶手段は、
前記第3判定手段によって、前記収集対象情報の送信に失敗したと判定された場合、送信に失敗した前記収集対象情報を、前記記憶領域のうち再送領域に記憶し、
前記第1送信手段は、
前記第5記憶手段によって前記収集対象情報が前記送信領域に記憶された場合において、前記再送領域に前記収集対象情報が記憶されている場合、前記送信領域に記憶された前記収集対象情報と、前記再送領域に記憶された前記収集対象情報とを送信することを特徴とする請求項30に記載の端末装置。 The fifth storage means is
Storing the collection target information in a transmission area of the storage area of the removable media;
The first transmission means includes
In response to the collection target information being stored in the transmission area by the fifth storage unit, the collection target information is transmitted,
The fourth storage means is
When it is determined by the third determination means that the transmission of the collection target information has failed, the collection target information that has failed to be transmitted is stored in the retransmission area of the storage area,
The first transmission means includes
When the collection target information is stored in the transmission area by the fifth storage unit, when the collection target information is stored in the retransmission area, the collection target information stored in the transmission area, and The terminal apparatus according to claim 30, wherein the collection target information stored in a retransmission area is transmitted.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016056901A JP2017173971A (en) | 2016-03-22 | 2016-03-22 | Information collection system, information collection method, and terminal device |
CN201710174432.8A CN107219788B (en) | 2016-03-22 | 2017-03-22 | Information Collection System, formation gathering method, terminal installation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016056901A JP2017173971A (en) | 2016-03-22 | 2016-03-22 | Information collection system, information collection method, and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2017173971A true JP2017173971A (en) | 2017-09-28 |
Family
ID=59928175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016056901A Pending JP2017173971A (en) | 2016-03-22 | 2016-03-22 | Information collection system, information collection method, and terminal device |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2017173971A (en) |
CN (1) | CN107219788B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108199902A (en) * | 2018-01-24 | 2018-06-22 | 精硕科技(北京)股份有限公司 | The processing method and processing device of data transmission |
CN112095233A (en) * | 2019-06-17 | 2020-12-18 | 杰克缝纫机股份有限公司 | Time information providing system, method, medium, terminal, and sewing device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006018552A (en) * | 2004-07-01 | 2006-01-19 | Sony Corp | Information processing system, information processor and program |
JP2010086307A (en) * | 2008-09-30 | 2010-04-15 | Brother Ind Ltd | Cradle, cradle control system and program |
JP5378456B2 (en) * | 2011-06-13 | 2013-12-25 | 株式会社エヌ・ティ・ティ・ドコモ | Communication terminal and content update method |
EP2755096A4 (en) * | 2011-09-05 | 2014-12-31 | Kobayashi Manufacture Co Ltd | Work management system, work management terminal, program and work management method |
JP6127755B2 (en) * | 2013-06-13 | 2017-05-17 | オムロン株式会社 | Information processing apparatus, control method for information processing apparatus, and control program |
CN103441861B (en) * | 2013-07-16 | 2017-03-08 | 杭州华为数字技术有限公司 | A kind of data record generation method and device |
-
2016
- 2016-03-22 JP JP2016056901A patent/JP2017173971A/en active Pending
-
2017
- 2017-03-22 CN CN201710174432.8A patent/CN107219788B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107219788A (en) | 2017-09-29 |
CN107219788B (en) | 2019-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3467180A1 (en) | Rfid identification function-based washing machine control method and washing machine | |
US20140130028A1 (en) | Information processing apparatus and network system | |
KR101625321B1 (en) | Device for collecting information for display and hmi system | |
JP5974942B2 (en) | Server and network system | |
JP2014006571A (en) | Information processing device, programs update method, and programs | |
JP2014115973A (en) | Information processing device, terminal system, information processing program and application update data acquisition method | |
JP2020075359A5 (en) | Image forming device, control method of image forming device and computer program | |
JP2017173971A (en) | Information collection system, information collection method, and terminal device | |
CN210143022U (en) | Networking device, production equipment and communication system | |
JP2018055493A (en) | Information processing device, information processing system and information processing method | |
JP7104835B1 (en) | Work management system | |
CN107729207B (en) | Application program main thread monitoring method and device | |
JP2016132114A5 (en) | Image processing apparatus, method of controlling the apparatus, and program | |
CN110045990B (en) | Restart control system | |
JP6439987B2 (en) | Electronic device system and firmware update management program | |
US11513843B2 (en) | Remote operation system, management client, and non-transitory computer-readable recording medium storing management client program | |
CN114866517A (en) | Installation file execution method and device and storage medium | |
CN112311495B (en) | Operation duration obtaining method and device, communication unit, electric control board and storage medium | |
US10656882B2 (en) | Image forming device to determine warm-up time | |
JP2004106281A (en) | Printer and information processor | |
JP2016192101A (en) | Information processing device and program | |
JP2016143370A (en) | Information processing device, information processing system, and program | |
JP7291840B1 (en) | Work instruction communication system and information processing device used therefor | |
JP2019004395A (en) | Image forming system and image forming apparatus | |
JP2018005528A5 (en) |