JP2017173971A - Information collection system, information collection method, and terminal device - Google Patents

Information collection system, information collection method, and terminal device Download PDF

Info

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
Application number
JP2016056901A
Other languages
Japanese (ja)
Inventor
建太 佐々木
Kenta Sasaki
建太 佐々木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2016056901A priority Critical patent/JP2017173971A/en
Priority to CN201710174432.8A priority patent/CN107219788B/en
Publication of JP2017173971A publication Critical patent/JP2017173971A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24024Safety, 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

PROBLEM TO BE SOLVED: To provide an information collection system which collects event information on events occurring on a plurality of terminal devices and is capable of specifying the occurrence time of each event, and to further provide an information collection method and a terminal device.SOLUTION: A CPU of a server receives event identification information, device identification information, first device time information, and second device time information transmitted from a sewing machine (S61:YES). The CPU stores the received event identification information, device identification information, and first device time information in association with one another in a first table (S81). The CPU stores the received device identification information, second device time information, and first clock time information in association with one another in a second table (S79). The first clock time information is clock time information corresponding to a reception timing of the event identification information.SELECTED DRAWING: Figure 6

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 Patent Document 1 executes communication based on SNTP (Simple Network Time Protocol) with a server and acquires time information from the server. The image forming apparatus stores the current time based on the acquired time information. The stored current time is updated at the timing of the internal clock of the image forming apparatus. When a print job is generated, the image forming apparatus generates a print log that includes the stored current time as the print time.

特開2006−155367号公報JP 2006-155367 A

特許文献1に記載された通信機能が端末装置に実装された場合、例えば、RTC(real-time clock)を有さない端末装置であっても、時刻情報を含むイベント情報を生成可能となる。しかし、RTCを有さず且つ上記の通信機能を実装できない端末装置がシステムに含まれる場合が想定される。この場合、システムに含まれる複数の端末装置の少なくとも一部から、時刻情報を含むイベント情報を収集できない。このため、複数の端末装置から収集されたイベント情報に基づき、各端末装置におけるイベントの発生時刻を比較できない場合があるという問題点がある。   When the communication function described in Patent Literature 1 is implemented in a terminal device, for example, even a terminal device that does not have an RTC (real-time clock) can generate event information including time information. However, it is assumed that the system includes a terminal device that does not have an RTC and cannot implement the communication function. In this case, event information including time information cannot be collected from at least some of the plurality of terminal devices included in the system. For this reason, there is a problem that the event occurrence times in the terminal devices may not be compared based on the event information collected from the plurality of terminal devices.

本発明の目的は、複数の端末装置において発生したイベントのイベント情報を収集し、且つ、それぞれのイベントの発生時刻を特定できる情報収集システム、情報収集方法、及び、端末装置を提供することである。   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のシステム構成、及び、サーバ2及びミシン3の電気的構成を示すブロック図である。1 is a block diagram showing a system configuration of an information collection system 1 and electrical configurations of a server 2 and a sewing machine 3; サーバ2及びミシン3に記憶される各種情報を示す図である。It is a figure which shows the various information memorize | stored in the server 2 and the sewing machine 3. FIG. ミシンメイン処理のフローチャートである。It is a flowchart of a sewing machine main process. ミシンメイン処理のフローチャートであって、図3の続きである。3 is a flowchart of the sewing machine main process, which is a continuation of FIG. 3. サーバ2及びミシン3に記憶される各種情報を示す図である。It is a figure which shows the various information memorize | stored in the server 2 and the sewing machine 3. FIG. サーバ第1処理のフローチャートである。It is a flowchart of a server 1st process. サーバ2及びミシン3に記憶される各種情報を示す図である。It is a figure which shows the various information memorize | stored in the server 2 and the sewing machine 3. FIG. サーバ2及びミシン3に記憶される各種情報を示す図である。It is a figure which shows the various information memorize | stored in the server 2 and the sewing machine 3. FIG. サーバ第2処理のフローチャートである。It is a flowchart of a server 2nd process. サーバ第3処理のフローチャートである。It is a flowchart of a server 3rd process.

<情報収集システム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 information collection system 1>
An overview of the information collection system 1 will be described with reference to FIG. The information collection system 1 includes a server 2, sewing machines 3A, 3B, 3C, 3D (hereinafter collectively referred to as “sewing machine 3”), a PC 6, and an access point 7. The server 2, the PC 6, and the access point 7 are connected to a network 8 such as a LAN or a WAN. The sewing machine 3 is wirelessly connected to the network 8 via the access point 7. The server 2, the sewing machine 3, and the PC 6 can communicate with each other via the network 8.

サーバ2の電気的構成について説明する。サーバ2は、サーバ2を制御するCPU21を備える。CPU21は、ROM22、RAM23、記憶部24、通信I/F25、及び、ドライブ装置26と、非図示のインタフェース回路を介して電気的に接続する。ROM22には、ブートプログラム、BIOS等が記憶される。RAM23には、タイマやカウンタ、フラグデータ、一時的なデータ等が記憶される。記憶部24は、ハードディスク等の記憶媒体で構成される。記憶部24には、CPU21が実行する処理のプログラム、OS、及び、後述する各種テーブル(図2等参照)が記憶される。   The electrical configuration of the server 2 will be described. The server 2 includes a CPU 21 that controls the server 2. The CPU 21 is electrically connected to the ROM 22, RAM 23, storage unit 24, communication I / F 25, and drive device 26 via an interface circuit (not shown). The ROM 22 stores a boot program, BIOS, and the like. The RAM 23 stores a timer, a counter, flag data, temporary data, and the like. The storage unit 24 is configured by a storage medium such as a hard disk. The storage unit 24 stores processing programs executed by the CPU 21, an OS, and various tables (see FIG. 2 and the like) described later.

通信I/F25は、サーバ2がネットワーク8に接続するためのインタフェース素子(例えば、LANカードなど)である。CPU21は、通信I/F25を介して、ネットワーク8に接続する他の機器とデータの送受信を行う。ドライブ装置26は、半導体メモリや光ディスク等の記憶媒体26Aに記憶された情報を読み出すことができる。CPU21は、記憶媒体26Aに記憶されたプログラムをドライブ装置26によって読み出し、記憶部24に記憶できる。   The communication I / F 25 is an interface element (for example, a LAN card) for connecting the server 2 to the network 8. The CPU 21 transmits / receives data to / from other devices connected to the network 8 via the communication I / F 25. The drive device 26 can read information stored in a storage medium 26A such as a semiconductor memory or an optical disk. The CPU 21 can read out the program stored in the storage medium 26 </ b> A by the drive device 26 and store it in the storage unit 24.

なお、記憶部24は、例えば、フラッシュメモリ及び/又はROM等、他の記憶媒体で構成されてもよい。CPU21として、汎用的なプロセッサが用いられてもよい。CPU21によって実行される処理の一部は、他の電子部品(例えば、ASIC)によって実行されてもよい。CPU21によって実行される処理は、複数の電子機器(つまり、複数のCPU)によって分散処理されてもよい。プログラムは、例えば、ネットワーク8に接続された別のサーバからダウンロードされて、記憶部24に記憶されてもよい。   In addition, the memory | storage part 24 may be comprised with other storage media, such as flash memory and / or ROM, for example. A general-purpose processor may be used as the CPU 21. Part of the processing executed by the CPU 21 may be executed by another electronic component (for example, ASIC). The processing executed by the CPU 21 may be distributed by a plurality of electronic devices (that is, a plurality of CPUs). The program may be downloaded from another server connected to the network 8 and stored in the storage unit 24, for example.

ミシン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 CPU 31 that controls the sewing machine 3. The CPU 31 is electrically connected to the ROM 32, RAM 33, storage unit 34, drive circuit 35, liquid crystal display (LCD) 37, operation unit 38, and USB I / F 39 via an interface circuit (not shown). The ROM 32 stores a boot program and the like. The RAM 33 stores a timer, a counter, flag data, temporary data, various tables described later (see FIG. 2 and the like), and the like. The storage unit 34 is configured by a storage medium such as a flash memory. The storage unit 34 stores processing programs executed by the CPU 31 and various tables (see FIG. 2 and the like) described later. Note that the sewing machine 3 does not have to incorporate all the electrical configurations described above. For example, a part of the electrical configuration described above may be connected to the outside of the sewing machine 3 via an interface (not shown).

駆動回路35は、CPU31から出力される信号に応じて、上軸モータ36A及び布送りモータ36Bを駆動する。上軸モータ36Aは、非図示の針棒に接続した縫針を上下に往復移動させる。布送りモータ36Bは、非図示の布送り機構を前後方向に移動させる。これらによって、加工布に対する縫製が実現される。LCD37は、縫製に関する各種情報を表示可能である。操作部38は、非図示のペダル、操作キー、タッチパネル等を含む。USB I/F39は、USBを介してミシン3に機器を接続するためのインタフェース素子である。CPU31は、USBを介して接続された機器との間で、USB I/F39を介してデータの送受信を行う。   The drive circuit 35 drives the upper shaft motor 36A and the cloth feed motor 36B in accordance with a signal output from the CPU 31. The upper shaft motor 36A reciprocates up and down a sewing needle connected to a needle bar (not shown). The cloth feed motor 36B moves a cloth feed mechanism (not shown) in the front-rear direction. By these, the sewing with respect to the work cloth is realized. The LCD 37 can display various information related to sewing. The operation unit 38 includes a pedal (not shown), operation keys, a touch panel, and the like. The USB I / F 39 is an interface element for connecting a device to the sewing machine 3 via the USB. The CPU 31 transmits / receives data to / from a device connected via USB via the USB I / F 39.

リムーバブルメディア5は、USBを介してミシン3に接続する。リムーバブルメディア5は、通信デバイス51、記憶部52、及び、制御部53を有する。通信デバイス51は、アクセスポイント7と接続して無線通信を行うためのインタフェース素子(例えば、Wi−Fi(登録商標)通信モジュールなど)である。記憶部52は、リムーバブルメディア5がミシン3に接続された状態で、読み出し及び書き込みが可能な記憶媒体としてCPU31に認識される。記憶部52には、送信領域521、再送領域522(図5等参照)、及び、非図示の受信領域が設けられる。   The removable medium 5 is connected to the sewing machine 3 via the USB. The removable medium 5 includes a communication device 51, a storage unit 52, and a control unit 53. The communication device 51 is an interface element (for example, a Wi-Fi (registered trademark) communication module) for connecting to the access point 7 and performing wireless communication. The storage unit 52 is recognized by the CPU 31 as a readable / writable storage medium with the removable medium 5 connected to the sewing machine 3. The storage unit 52 includes a transmission area 521, a retransmission area 522 (see FIG. 5 and the like), and a reception area (not shown).

制御部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 control unit 53 executes communication control using the communication device 51 and the storage unit 52. In the control unit 53, address information of a destination device when data is transmitted is set. In the present embodiment, the address information of the server 2 is set in the control unit 53. When data is written in the transmission area 521 of the storage unit 52 by the CPU 31, the control unit 53 sends the data to the transmission area 521 and the retransmission area 522 via the communication device 51 to the server 2 based on the set address information. The stored data is transmitted by a predetermined protocol (for example, HTTP). Further, when the control unit 53 receives data via the communication device 51 by a predetermined protocol (for example, HTTP), the control unit 53 stores the received data in the reception area of the storage unit 52. That is, the removable medium 5 can operate as an HTTP client and server. The control unit 53 outputs a notification signal notifying that the data has been received to the CPU 31. When the notification signal is detected, the CPU 31 can read the data stored in the reception area of the storage unit 52.

<各種テーブル、及び、情報収集システム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 information collection system 1>
With reference to FIG. 2, an outline of functions of the storage unit 24 of the server 2, various tables stored in the RAM 33 and the storage unit 34 of the sewing machine 3, and the information collection system 1 will be described. The storage unit 24 of the server 2 stores a master table 24A, a first table 24B, and a second table 24C. The RAM 33 of the sewing machine 3 stores a third table 33A. A master table 34 </ b> A is stored in the storage unit 34 of the sewing machine 3.

ミシン3のRAM33及び記憶部34に記憶される各種テーブルについて説明する。マスタテーブル34Aには、装置種別情報、装置識別情報、送信周期、及び、マスタ装置時刻情報が関連付けて記憶される。装置種別情報は、各ミシン3の種別(型式、プログラムのバージョン等)を示す。装置識別情報は、各ミシン3を識別する識別子を示す。送信周期は、後述する収集対象情報をサーバ2に周期的に送信する場合の送信間隔を示す。マスタ装置時刻情報は、ミシン3における時刻(以下、「装置時刻」という。)を示すカウンタ変数である。装置時刻は、例えば、ミシン3の工場出荷時点を「0」としてカウントアップされる累積通電時間である。マスタ装置時刻情報によって示される装置時刻は、所定の時間間隔(1秒)で周期的に繰り返し更新される。以下、マスタテーブル34Aの装置識別情報によって示される識別子を、「マスタテーブル34Aの装置識別子」と言い換える。マスタテーブル34Aのマスタ装置時刻情報によって示される装置時刻を、「マスタテーブル34Aのマスタ装置時刻」と言い換える。   Various tables stored in the RAM 33 and the storage unit 34 of the sewing machine 3 will be described. In the master table 34A, device type information, device identification information, transmission cycle, and master device time information are stored in association with each other. The device type information indicates the type (model, program version, etc.) of each sewing machine 3. The device identification information indicates an identifier for identifying each sewing machine 3. The transmission cycle indicates a transmission interval in the case where collection target information described later is periodically transmitted to the server 2. The master device time information is a counter variable indicating the time in the sewing machine 3 (hereinafter referred to as “device time”). The apparatus time is, for example, a cumulative energization time counted up with the factory shipment time of the sewing machine 3 as “0”. The device time indicated by the master device time information is periodically and repeatedly updated at a predetermined time interval (1 second). Hereinafter, the identifier indicated by the device identification information of the master table 34A is referred to as “device identifier of the master table 34A”. The device time indicated by the master device time information of the master table 34A is referred to as “master device time of the master table 34A”.

第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 (upper shaft motor 36A and / or cloth feed motor 36B) (for example, sewing start, sewing end, and temporary stop ) The first device time information indicates the device time corresponding to the event occurrence timing. When an event occurs, the CPU 31 acquires master device time information from the master table 34A. The CPU 31 associates the acquired master device time information with the event identification information of the event that has occurred as the first device time information, and stores it in the third table 33A as the event history information.

以下、第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 CPU 31 transmits the collection target information to be transmitted to the server 2 based on the event history information stored in the third table 33 </ b> A in the transmission area 521 of the storage unit 52 of the removable medium 5. To generate. The collection target information includes event history information, a device identifier of the master table 34A, and a second device time. For example, the collection target information is, for example, a file in which the name including the device identifier of the master table 34A and the second device time is set as the file name, and the event history information is text data. The second device time indicates the device time corresponding to the transmission timing of the collection target information to the server 2. The control unit 53 of the removable medium 5 transmits the collection target information generated in the transmission area 521 of the storage unit 52 to the server 2.

例えば図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 CPU 31 collects the collection target information 341 including the event history information (“sewing start / 300010”, “sewing end / 300030”, “temporary stop / 300050”) stored in the third table 33A in the storage unit 52 of the removable medium 5. Generated in the transmission area 521. The CPU 31 sets the file identifier “11111 — 300060” including the device identifier “11111” and the master device time (second device time) “300060” of the master table 34A in the collection target information 341. The control unit 53 of the removable medium 5 transmits the collection target data generated in the transmission area 521 of the storage unit 52 to the server 2.

サーバ2の記憶部24に記憶される情報について説明する。マスタテーブル24Aには、マスタ時計時刻情報が記憶される。マスタ時計時刻情報は、現在時刻(時、分、秒、以下、「時計時刻」という。)を示す情報である。マスタ時計時刻情報によって示される時計時刻は、CPU21によって1秒周期で更新される。以下、マスタテーブル24Aのマスタ時計時刻情報によって示される時計時刻を、「マスタテーブル24Aのマスタ時計時刻」と言い換える。   Information stored in the storage unit 24 of the server 2 will be described. Master clock time information is stored in the master table 24A. The master clock time information is information indicating the current time (hour, minute, second, hereinafter referred to as “clock time”). The clock time indicated by the master clock time information is updated by the CPU 21 at a cycle of 1 second. Hereinafter, the clock time indicated by the master clock time information of the master table 24A is referred to as “master clock time of the master table 24A”.

なお、CPU21は、OSの機能の1つとして時刻管理機能を実行する。時刻管理機能は、ネットワーク8に接続した非図示のNPTサーバと周期的に通信を行い、標準時刻を示す標準時刻情報を周期的に取得する。CPU21は、取得された標準時刻情報を、記憶部24に記憶する。詳細は後述するが、CPU21は、マスタテーブル24Aのマスタ時計時刻を標準時刻に設定するための処理(サーバ第3処理、図10参照)を実行する。つまり、CPU21は、マスタテーブル24Aのマスタ時計時刻が標準時刻に設定された後、次にマスタ時計時刻が標準時刻に設定されるまでの間、1秒周期でマスタ時計時刻を更新する。   Note that the CPU 21 executes a time management function as one of the functions of the OS. The time management function periodically communicates with an NPT server (not shown) connected to the network 8 and periodically acquires standard time information indicating the standard time. The CPU 21 stores the acquired standard time information in the storage unit 24. Although details will be described later, the CPU 21 executes processing for setting the master clock time of the master table 24A to the standard time (server third processing, see FIG. 10). That is, after the master clock time in the master table 24A is set to the standard time, the CPU 21 updates the master clock time in a cycle of 1 second until the next master clock time is set to the standard time.

第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 collection target information 341 when the collection target information 341 transmitted from the sewing machine 3 is received by the server 2 is stored. In the first table 24B, device identification information and event history information (event identification information and first device time information) are stored in association with each other. As the device identification information, information indicating the device identifier portion of the received collection target information file name is stored. As event history information, event history information included in the received collection target information is stored. Hereinafter, the device identifier indicated by the device identification information of the first table 24B, the clock time indicated by the first device time information, and the identifier indicated by the event identification information are respectively referred to as “device identifier of the first table 24B”, In other words, “the first clock time of the first table 24B” and “the event identifier of the first table 24B”.

第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 collection target information 341 transmitted from the removable medium 5 is received by the server 2 when the master clock time of the master table 24A is “10:31:03”. The CPU 21 extracts the device identifier portion “11111” from the file name of the received collection target information. The CPU 21 associates the device identification information indicating the extracted device identifier with the event history information (“sewing start / 300010”, “sewing end / 300030”, “temporary stop / 300050”) included in the collection target information, respectively. One table is stored in the table 24B. The CPU 21 extracts the second device time portion “300060” from the file name of the received collection target information. The CPU 21 associates the device identification information indicating the extracted device identifier and the second device time information indicating the extracted second device time, and stores them in the second table 24C. The CPU 21 acquires the master clock time “10:31:03” of the master table 24A. The CPU 21 stores the first clock time information indicating the acquired master clock time in the second table 24C in further association with the device identification information and the second device time information.

なお、図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 server 2 may receive the collection target information transmitted from the sewing machine 3 different from the sewing machine 3 whose device identification information is “11111”. In this case, first device time information and event identification information associated with device identification information different from the device identifier “11111” are stored in the first table 24B. Further, second device time information and first clock time information associated with device identification information different from the device identifier “11111” are stored in the second table 24C.

<ミシンメイン処理>
図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 operation unit 38, the CPU 31 starts the sewing machine main process by reading and executing the program stored in the storage unit 34. The sewing machine main process is executed until an operation for turning off the power of the sewing machine 3 is performed via the operation unit 38.

図3に示すように、CPU31は、マスタテーブル34Aのマスタ装置時刻を取得する。CPU31は、電源オンの識別子を示すイベント識別情報に、取得されたマスタ装置時刻を示す第1装置時刻情報を関連付け、第3テーブル33Aに記憶する(S1)。   As shown in FIG. 3, the CPU 31 acquires the master device time of the master table 34A. The CPU 31 associates the first device time information indicating the acquired master device time with the event identification information indicating the power-on identifier, and stores it in the third table 33A (S1).

CPU31は、マスタテーブル34Aのマスタ装置時刻の更新を開始する(S11)。以後、CPU31は、ミシンメイン処理の実行中において、1秒周期でマスタ装置時刻に1ずつ加算する非図示の処理を繰り返す。なお、ミシンメイン処理は、ミシン3の電源がオンされる度に起動される。このため、ミシンメイン処理の開始時において、マスタテーブル34Aのマスタ装置時刻は、以前に実行されたミシンメイン処理によって更新され、任意の値となっている。   The CPU 31 starts updating the master device time in the master table 34A (S11). Thereafter, during execution of the sewing machine main process, the CPU 31 repeats a process (not shown) in which 1 is added to the master device time at a cycle of 1 second. The sewing machine main process is started each time the sewing machine 3 is turned on. For this reason, at the start of the sewing machine main process, the master device time in the master table 34A is updated by the previously executed sewing machine main process and becomes an arbitrary value.

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 CPU 21 determines whether the occurrence of an event has been detected (S13). For example, the CPU 21 determines that the occurrence of sewing start and sewing end events has been detected in response to the rotation start and end of the upper shaft motor 36A and the cloth feed motor 36B. For example, the CPU 21 determines that a power-off event has occurred in response to a power-off operation on the operation unit 38. When it is determined that the occurrence of an event has not been detected (S13: NO), the CPU 31 advances the process to S19 (described later). When it is determined that the occurrence of an event has been detected (S13: YES), the CPU 31 advances the process to S15. The CPU 31 acquires the master device time of the master table 34A. The CPU 31 associates the first device time information indicating the acquired master device time with the event identification information indicating the identifier of the event that has occurred, and stores it in the third table 33A (S15). The CPU 31 advances the process to S17.

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 CPU 31 determines whether the event detected by the process of S15 is an event for turning off the power of the sewing machine 3 (S17). When it is determined that the event is an event for turning off the power of the sewing machine 3 (S17: YES), the CPU 31 advances the process to S21 (described later). When it is determined that the event is not an event for turning off the power of the sewing machine 3 (S17: NO), the CPU 31 advances the process to S19. The CPU 31 determines whether or not a time corresponding to the transmission cycle of the master table 34A has elapsed since the collection target information was transmitted by the process of S25 described later (S19). When it is determined that the time corresponding to the transmission cycle has not elapsed (S19: NO), the CPU 31 returns the process to S13. When it is determined that the time corresponding to the transmission cycle has elapsed (S19: YES), the CPU 31 advances the process to S21. When the process of S19 is first executed after the sewing machine main process is started, it is determined that the time corresponding to the transmission cycle has elapsed.

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 CPU 31 acquires event history information (event identification information and first device time information) stored in the third table 33A (S21). The CPU 31 acquires the device identifier of the master table 34A. The CPU 31 acquires the master device time of the master table 34A as the second device time (S23). The CPU 31 generates collection target information including the event history information acquired by the process of S21 in the transmission area 521 of the storage unit 52 of the removable medium 5 (S25). The CPU 31 sets the name including the device identifier and the second device time acquired by the processing of S23 as the file name of the generated collection target information (S25). As a result, the control unit 53 of the removable medium 5 transmits the collection target information stored in the transmission area 521 of the storage unit 52 and the retransmission area 522 described later to the server 2 that is a device having the set address information. . The CPU 31 deletes the information stored in the third table 33A (S29). The CPU 31 advances the process to S51 (see FIG. 4).

なお、第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 CPU 31 collects the collection target information that does not include the event history information. Is generated. The generated collection target information is empty collection target information in which a file name including the device identifier and the second device time is set.

なお、ミシン3から送信された収集対象情報を、サーバ2が受信した場合、サーバ2のCPU21は、収集対象情報を受信した旨を通知するための受信応答情報(ACK)を、リムーバブルメディア5に返信する。リムーバブルメディア5の制御部53は、ACKをサーバ2から受信した事に応じて、記憶部52の受信領域にACKを記憶し、通知信号をミシン3に対して送信する。   When the server 2 receives the collection target information transmitted from the sewing machine 3, the CPU 21 of the server 2 sends reception response information (ACK) for notifying that the collection target information has been received to the removable medium 5. Send back. In response to receiving the ACK from the server 2, the control unit 53 of the removable media 5 stores the ACK in the reception area of the storage unit 52 and transmits a notification signal to the sewing machine 3.

CPU31は、リムーバブルメディア5の制御部53から出力される通知信号が検出されたか判定する。CPU31は、通知信号が検出された場合、リムーバブルメディア5の記憶部52の受信領域にACKが記憶されているかを更に判定する。CPU31は、S25(図3参照)の処理によって収集対象情報がサーバ2に送信された後、所定期間内に、記憶部52の受信領域にACKが記憶されるか判定する。CPU31は、所定期間内にACKが記憶された場合、収集対象情報の送信に成功したと判定する(S51:YES)。一方、CPU31は、所定期間内にACKが記憶部52の受信領域に記憶されない場合、収集対象情報の送信に成功していない(即ち、失敗した)と判定する(S51:NO)。   The CPU 31 determines whether a notification signal output from the control unit 53 of the removable medium 5 has been detected. When the notification signal is detected, the CPU 31 further determines whether ACK is stored in the reception area of the storage unit 52 of the removable medium 5. CPU31 determines whether ACK is memorize | stored in the receiving area of the memory | storage part 52 within a predetermined period, after collection object information is transmitted to the server 2 by the process of S25 (refer FIG. 3). When ACK is stored within a predetermined period, the CPU 31 determines that the collection target information has been successfully transmitted (S51: YES). On the other hand, when the ACK is not stored in the reception area of the storage unit 52 within the predetermined period, the CPU 31 determines that the collection target information has not been successfully transmitted (that is, failed) (S51: NO).

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 CPU 31 deletes the collection target information stored in the transmission area 521 of the storage unit 52 of the removable medium 5 (S53). CPU31 advances a process to S57. On the other hand, when it is determined that transmission of the collection target information has failed (S51: NO), the CPU 31 moves the collection target information stored in the transmission area 521 of the storage unit 52 of the removable medium 5 to the retransmission area 522. (S55). CPU31 advances a process to S57.

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 CPU 31 ends the sewing machine main process. In this case, the collection target information transmitted by the processing of S25 includes event history information including power-off event identification information. CPU31 returns processing to S13 (refer FIG. 3), when it determines with it not being an event which turns off a power supply (S57: NO).

例えば図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 collection target information 341 is moved from the transmission area 521 to the retransmission area 522 in the storage unit 52 of the removable medium 5 (S55). Thereafter, a case where event history information (sewing start / 300075, sewing end / 300105) is added to the third table 33A is illustrated. In this case, at the timing when the master device time information of the master table 34A becomes “300120” (S19: YES), the collection target information 342 including the event history information stored in the third table 33A (file name “11111_300120”) Is generated in the transmission area 521 of the storage unit 52 of the removable medium 5 (S25). Since the collection target information 342 is stored in the retransmission area 522 of the storage unit 52, the collection target information 341 and 342 is transmitted to the server 2 (S25).

<サーバ処理>
図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 CPU 21 of the server 2 (server first processing (see FIG. 6), server second processing (see FIG. 9), server third processing (see FIG. 10). )). When an operation to turn on the power of the server 2 is performed, the CPU 21 reads and executes the program stored in the storage unit 24 to start the server first process to the server third process. The server first process to the server third process are executed in parallel. Note that the CPU 21 updates the master clock time in the master table 24A at a cycle of 1 second by a process (not shown) while the server 2 is powered on.

<サーバ第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 CPU 21 determines whether the collection target information transmitted from the sewing machine 3 has been received (S61). When it is determined that the collection target information has not been received (S61: NO), the CPU 21 returns the process to S61. The CPU 21 continues to determine whether the collection target information has been received. When it is determined that the collection target information has been received (S61: YES), the CPU 21 advances the process to S63.

なお、リムーバブルメディア5において、記憶部52の送信領域521及び再送領域522に収集対象情報が記憶されている場合、S25の処理によって複数の収集対象情報がサーバ2に送信される(図5参照)。この場合、CPU21は、S61の処理によって、複数の収集対象情報を受信したと判定する。   In the removable medium 5, when the collection target information is stored in the transmission area 521 and the retransmission area 522 of the storage unit 52, a plurality of collection target information is transmitted to the server 2 by the process of S25 (see FIG. 5). . In this case, the CPU 21 determines that a plurality of collection target information has been received by the process of S61.

CPU21は、受信された収集対象情報のファイル名に含まれる第2装置時刻を取得する(S63)。CPU21は、S61の処理によって複数の収集対象情報を受信したと判定された場合、複数の収集対象情報のそれぞれのファイル名から取得される第2装置時刻のうち、最も大きい値、つまり、最新の第2装置時刻を取得する(S63)。なお、ミシン3において、マスタテーブル34Aのマスタ装置時刻は、1秒周期で1ずつ加算されている。又、第2装置時刻は、イベント発生後の最初の送信周期で、発生したイベントに対応する収集対象情報がミシン3から送信される(以下、「最初に送信される」という。)ときのマスタ装置時刻に対応する。このため、最新の第2装置時刻は、受信された複数の収集対象情報のうち、最初に送信されたタイミングが最新の収集対象情報のファイル名から取得される。   The CPU 21 acquires the second device time included in the file name of the received collection target information (S63). When it is determined that the plurality of collection target information has been received by the process of S61, the CPU 21 has the largest value among the second device times acquired from the respective file names of the plurality of collection target information, that is, the latest The second device time is acquired (S63). In the sewing machine 3, the master device time of the master table 34A is incremented by 1 every 1 second. The second device time is the first transmission cycle after the event occurs, and the master when the collection target information corresponding to the occurred event is transmitted from the sewing machine 3 (hereinafter referred to as “first transmitted”). Corresponds to the device time. For this reason, the latest second apparatus time is acquired from the file name of the latest collection target information at the timing of the first transmission among the received collection target information.

なお、受信された収集対象情報が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 CPU 21 acquires the master clock time of the master table 24A (S65). The CPU 21 acquires a device identifier included in the file name of the latest collection target information. Hereinafter, of the event history information of the first table 24B, the device identification information indicating the device identifier acquired from the file name of the latest collection target information is referred to as “target device identification information”. The event history information associated with the target device identification information is referred to as “target event history information”.

CPU21は、第1テーブル24Bから対象イベント履歴情報を選択する。CPU21は、選択された対象イベント履歴情報のうち、最も大きい値、つまり、最新の第1装置時刻情報に関連付けられたイベント識別情報を選択する。なお、イベントの発生順にイベント履歴情報が第1テーブル24Bに記憶される場合、最新のイベント識別情報は、最後尾のイベント履歴情報に含まれるイベント識別情報に対応する。CPU21は、最新のイベント識別情報が電源オフを示しているか判定する(S67)。CPU21は、最新のイベント識別情報が電源オフ以外を示していると判定された場合(S67:NO)、処理をS79に進める。   The CPU 21 selects target event history information from the first table 24B. The CPU 21 selects the largest value among the selected target event history information, that is, the event identification information associated with the latest first device time information. When event history information is stored in the first table 24B in the order of occurrence of events, the latest event identification information corresponds to the event identification information included in the last event history information. The CPU 21 determines whether the latest event identification information indicates that the power is off (S67). When it is determined that the latest event identification information indicates other than power-off (S67: NO), the CPU 21 advances the process to S79.

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 CPU 21 associates the acquired target device identification information with the second device time information indicating the latest second device time acquired by the process of S63, and stores it in the second table 24C (S79). The CPU 21 further associates the first clock time information indicating the master clock time acquired by the process of S65 and stores it in the second table 24C (S79). When the target device identification information is already stored in the second table 24C, the CPU 21 indicates the latest second device time acquired by the processing of S63 in the stored target device identification information. The second table 24C is updated by associating the time information and the first clock time information indicating the master clock time acquired by the process of S65 (S79). CPU21 advances a process to S81.

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 CPU 21 stores the event history information included in the selected collection target information in the first table 24B in association with the target device identification information (S81). The CPU 21 determines whether all the collection target information received by the process of S61 has been selected (S83). When it is determined that the collection target information that has not been selected remains (S83: NO), the CPU 21 returns the process to S81. The CPU 21 further selects any collection target information that has not been selected, and repeats the process of S81. CPU21 returns a process to S61, when it determines with all the received collection object information having been selected (S83: YES).

例えば図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 removable medium 5 is illustrated. In this case, the CPU 21 acquires second device time information indicating the latest second device time “300120” (S63). The CPU 21 acquires the master clock time “10:32:02” of the master table 24A (S65).

CPU21は、第1テーブル24Bの対象イベント履歴情報のうち最新のイベント識別情報が、電源オフのイベントを示していないと判定する(S67:NO)。CPU21は、対象装置識別情報「11111」、S63の処理によって取得された最新の第2装置時刻「300120」を示す第2装置時刻情報、及び、S65の処理によって取得されたマスタ時計時刻「10:32:02」を示す第1時計時刻情報を関連付けて、第2テーブル24Cに記憶する(S79)   The CPU 21 determines that the latest event identification information among the target event history information in the first table 24B does not indicate a power-off event (S67: NO). The CPU 21 sets the target device identification information “11111”, the second device time information indicating the latest second device time “300120” acquired by the processing of S63, and the master clock time “10: acquired by the processing of S65. The first clock time information indicating “32:02” is associated and stored in the second table 24C (S79).

CPU21は、収集対象情報341を選択し、イベント履歴情報(縫製開始/300010、縫製終了/300030、一時停止/300050)のそれぞれに、対象装置識別情報(「11111」)を関連付けて、第1テーブル24Bに記憶する(S81)。次にCPU21は、収集対象情報342を選択し、イベント履歴情報(縫製開始/300075、縫製終了/300105)のそれぞれに、対象装置識別情報(「11111」)を関連付けて、第1テーブル24Bに記憶する(S81)。   The CPU 21 selects the collection target information 341 and associates the target device identification information (“11111”) with each of the event history information (sewing start / 300010, sewing end / 300030, temporary stop / 300050), and the first table. 24B is stored (S81). Next, the CPU 21 selects the collection target information 342, associates the target device identification information (“11111”) with each of the event history information (sewing start / 300075, sewing end / 300105), and stores them in the first table 24B. (S81).

一方、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 CPU 21 advances the process to S69. The CPU 21 extracts event identification information indicating the power-on identifier from the event history information included in all the collection target information received by the process of S61. The CPU 21 acquires first device time information associated with the extracted event identification information (S69). The CPU 21 calculates the clock time when the power-on event occurs as follows (S71).

以下、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 CPU 21 acquires the first clock time associated with the target device identification information in the second table 24C (S73). The CPU 21 calculates the apparatus time indicating the time elapsed from when the power source of the sewing machine 3 is turned off until it is turned on (S75).

以下、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 CPU 21 subtracts the calculated C (off-on) from the first device time of the target event history information in the first table 24B. Thereby, the CPU 21 updates the first device time information of the target event history information (S77). CPU21 advances a process to S79. A description of the processing of S79, S81, and S83 is omitted.

図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 collection target information 343 includes event identification information indicating a power-on identifier. The CPU 21 acquires “300060” (= Ct (on)) as the latest second device time (S63). The CPU 21 acquires “10:31:03” (= Tt (on)) as the master clock time of the master table 24A (S65).

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 CPU 21 determines that the latest event identification information in the target event history information of the first table 24B indicates that the power is off (S67: YES). The CPU 21 acquires first device time information (“300005”) (= Ce (on)) associated with the power-on event identification information from the event history information included in the collection target information 343 (S69). The CPU 21 calculates Te (on) as follows based on the equation (1) (S71).
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 CPU 21 acquires the first clock time “9:31:03” (= Tr (off)) associated with the target device identification information (“11111”) in the second table 24C. The CPU 21 calculates C (off-on) based on the equation (2) as follows (S73).
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 CPU 21 subtracts the calculated “3605” from the first device times “298410”, “298500”, “300000” of the target event history information in the first table 24B. Thereby, as shown in FIG. 8, the CPU 21 updates the first device time of the target event history information to “294805”, “294895”, and “296395”, respectively (S77).

CPU21は、対象装置識別情報「11111」、S63の処理によって取得された最新の第2装置時刻「300060」、及び、S65の処理によって取得された第1時計時刻「10:31:03」のそれぞれを示す情報を関連付けて、第2テーブル24Cに記憶する(S79)。又、CPU21は、受信された収集対象情報に含まれるイベント履歴情報(電源オン/300005、縫製開始/300010、縫製終了/300030)を、それぞれ、装置識別情報(111111)に関連付けて、第1テーブル24Bに記憶する(S81)。   The CPU 21 sets the target device identification information “11111”, the latest second device time “300060” acquired by the processing of S63, and the first clock time “10:31:03” acquired by the processing of S65. Is stored in the second table 24C (S79). Further, the CPU 21 associates the event history information (power on / 300005, sewing start / 300010, sewing end / 300030) included in the received collection target information with the device identification information (111111), respectively, in the first table. 24B is stored (S81).

<サーバ第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 server 2. CPU21 returns a process to S91, when it determines with not having received browsing request information (S91: NO). The CPU 21 continuously monitors the reception of browsing request information.

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 server 2 via the network 8. Send. The browsing request information includes information (hereinafter referred to as “device specifying information”) that can specify the sewing machine 3 for which browsing of the event history information is desired by the user. The device specifying information is, for example, device type information (see FIG. 2) indicating the type of each sewing machine 3, group identification information for identifying a group in which the sewing machine 3 is divided into a plurality of pieces, and the like. If it is determined that the browsing request information has been received via the network 8 (S91: YES), the CPU 21 of the server 2 advances the process to S93.

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 CPU 21 acquires the target second device time and the target first clock time from the second table 24C (S97). The CPU 21 acquires the first device time of the target event history information from the first table 24B (S99). CPU21 selects the 1st apparatus time acquired by the process of S99 one by one. The CPU 21 converts the selected first device time into the second clock time as follows based on the target second device time and the target first clock time acquired by the process of S97 (S101).

以下、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 CPU 21 associates the event identification information associated with the first device time selected in the target event history information with the second clock time information indicating the calculated Te (second clock time), and browse response information. Is stored in the RAM 23.

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 CPU 21 determines whether the conversion by the process of S101 has been executed for all the first device times of the target event history information (S103). CPU21 returns a process to S101, when it determines with the 1st apparatus time not converted by the process of S101 remaining in object event history information (S103: NO). The CPU 21 selects, from the target event history information, the first device time at which conversion by the process of S101 has not been executed, and repeats the process of S101. If it is determined that all of the first device time of the target event history information has been converted by the process of S101 (S103: YES), the CPU 21 advances the process to S105. CPU21 transmits the browsing response information memorize | stored in RAM23 to PC6 which transmitted browsing request information (S105). The CPU 21 returns the process to S91.

例えば図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 CPU 21 specifies target device identification information (“11111”). The CPU 21 acquires the target second device time “300120” (= Ct) and the target first clock time “10:32:02” (= Tr) (S97). The CPU 21 sets the first device time (“300010” (sewing start), “300030” (sewing end), “300050” (sewing start), “300075” (sewing end), “300105” (temporary) of the target event history information. (Stop) (= Ce)) is acquired (S99). The CPU 21 calculates the second clock time as follows by applying the equation (3) (S101).
“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 CPU 21 transmits browsing response information including event identification information and second clock time information to the PC 6 that has transmitted the browsing request information (S105).

<サーバ第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 CPU 21 determines at regular intervals whether the standard time indicated by the standard time information stored in the storage unit 24 matches the master clock time in the master table 24A. When the standard time matches the master clock time, the CPU 21 determines that the master clock time information does not need to be changed (S111: NO). In this case, the CPU 21 returns the process to S111. When the standard time and the master clock time are different, the CPU 21 determines that the master clock time information needs to be changed (S111: YES). In this case, the CPU 21 advances the process to S113.

CPU21は、記憶部24に記憶された標準時刻情報によって示される標準時刻を、変更後時計時刻として取得する(S113)。CPU21は、マスタテーブル24Aのマスタ時計時刻を、変更前時計時刻として取得する。CPU21は、取得された変更後時計時刻から変更前時計時刻を減算することによって、補正値を算出する。CPU21は、第2テーブル24Cの第1時計時刻を、算出された補正値によって以下のように補正する(S115)。   The CPU 21 acquires the standard time indicated by the standard time information stored in the storage unit 24 as the changed clock time (S113). The CPU 21 acquires the master clock time of the master table 24A as the pre-change clock time. The CPU 21 calculates a correction value by subtracting the pre-change clock time from the acquired post-change clock time. The CPU 21 corrects the first clock time in the second table 24C with the calculated correction value as follows (S115).

以下、変更前時計時刻を「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 CPU 21 changes the master clock time (pre-change clock time) of the master table 24A to the changed clock time, and updates the master clock time information (S117). CPU21 returns a process to S111.

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 information collection system 1, when an event occurs (S13: YES), the CPU 31 of the sewing machine 3 collects information to be collected (event identification information, device identification information, first device time information, and first information). 2 device time information) is transmitted to the server 2 (S25). The CPU 21 of the server 2 receives the collection target information (S61). The CPU 21 associates the event identification information, the device identification information, and the first device time information and stores them in the first table 24B (S81). Further, the CPU 21 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 table 24C (S79). In this case, the CPU 21 can associate the second device time information corresponding to the transmission timing of the collection target information in the sewing machine 3 with the first clock time information corresponding to the reception timing of the collection target information in the server 2. Therefore, the CPU 21 can specify the clock time at which the event occurred 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 at which an event relating to the sewing process has occurred in each sewing machine 3 even when each sewing machine 3 individually stores the apparatus time information.

CPU21は、閲覧要求情報を受信した場合(S91:YES)、(3)式に基づいて、対象イベント履歴情報の第1装置時刻を、第2時計時刻に変換する(S101)。CPU21は、イベント識別情報及び第2装置時刻情報を含む閲覧応答情報を、閲覧要求情報を送信したPCに送信する(S105)。この場合、PC6は、サーバ2に閲覧要求情報を送信することによって、ミシン3において発生したイベントと、このイベントが発生した時計時刻とを取得し、これらを関連付けて非図示の表示部に表示させることができる。このため、PC6のユーザは、ミシン3が現在時刻を直接取得する機能を有していない場合でも、ミシン3においてイベントが発生したときの時計時刻を、イベントに関連付けて閲覧できる。   When the CPU 21 receives the browsing request information (S91: YES), the CPU 21 converts the first device time of the target event history information into the second clock time based on the equation (3) (S101). CPU21 transmits the browsing response information containing event identification information and 2nd apparatus time information to PC which transmitted browsing request information (S105). In this case, the PC 6 acquires the event that occurred in the sewing machine 3 and the clock time at which this event occurred by sending the browsing request information to the server 2, and displays them on a display unit (not shown) in association with each other. be able to. For this reason, even when the user of the PC 6 does not have the function of directly acquiring the current time, the user can view the clock time when the event occurs in the sewing machine 3 in association with the event.

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 CPU 21 corrects the master clock time with the standard time and simultaneously corrects the first clock time information stored in the second table 24C. (S115). Therefore, the CPU 21 specifies the clock time at which the event has occurred from the first device time information in the first table 24B based on the relationship between the corrected first clock time information in the second table 24C and the second device time information. it can. Therefore, even when the master clock time is changed, the CPU 21 can accurately specify the clock time at which the event has occurred based on the changed master clock time.

ミシン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 CPU 21 calculates a device time indicating a time elapsed from when the power source of the sewing machine 3 is turned off based on the equations (1) and (2) (S75). The CPU 21 can correct the first device time by subtracting the calculated device time from the first device time of the target event history information in the first table 24B (S77). Thereby, even when there is a period in which the master device time is not updated in the sewing machine 3, the CPU 21 can accurately specify the clock time at which the event has occurred.

ミシン3のCPU31は、第3テーブル33Aに記憶されたイベント履歴情報に基づいて、収集対象情報を生成する。CPU31は、装置識別子及び第2装置時刻を含むファイル名を、生成された収集対象情報のファイル名として設定する(S25)。この場合、CPU31は、発生したイベントに直接関係するイベント履歴情報を、装置識別子及び第2装置時刻と区別して第3テーブル33Aに記憶できる。又、装置識別子及び第2装置時刻をファイル名として収集対象情報に設定することによって、これらを示す情報をサーバ2に容易に通知できる。   The CPU 31 of the sewing machine 3 generates collection target information based on the event history information stored in the third table 33A. The CPU 31 sets a file name including the device identifier and the second device time as the file name of the generated collection target information (S25). In this case, the CPU 31 can store the event history information directly related to the generated event in the third table 33A, distinguishing it from the device identifier and the second device time. Further, by setting the device identifier and the second device time as collection target information as a file name, information indicating these can be easily notified to the server 2.

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 CPU 31 transmits the collection target information to the server 2 (S25). Thus, when a plurality of events occur within the transmission cycle, the CPU 31 can transmit the collection target information corresponding to the plurality of events to the server 2 at the same timing. For this reason, CPU31 can suppress the transmission frequency of collection object information compared with the case where collection object information is transmitted to the server 2 whenever an event generate | occur | produces.

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 CPU 31 moves the collection target information that has failed to be transmitted from the transmission area 521 of the storage unit 52 of the removable medium 5 to the retransmission area 522 ( S55). The CPU 31 transmits the collection target information stored in the transmission area 521 and the retransmission area 522 of the storage unit 52 to the server 2 in the next transmission cycle (S25). In this case, if the transmission of the collection target information to the server 2 fails, the CPU 31 can execute the retry transmission of the collection target information after a time corresponding to the transmission cycle. Therefore, for example, even when the communication state between the server 2 and the sewing machine 3 temporarily deteriorates, the CPU 31 can transmit the collection target information to the server 2. The retry transmission of the collection target information is executed at any timing in the transmission cycle. For this reason, it can suppress that the transmission frequency of a retry increases according to the collection object information which failed in transmission to the server 2 increasing.

サーバ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 CPU 21 of the server 2 determines the latest among the second device times acquired from the respective file names of the plurality of collection target information. The second device time is acquired (S63). The CPU 21 associates and stores the acquired information indicating the second device time and the first clock time in the second table 24C. In this case, when the collection target information is repeatedly received from the sewing machine 3, the CPU 21 can update the second device time information stored in the second table 24C with the latest second device time information. Further, the CPU 21 can update the first clock time information stored in the second table 24C with the master clock time information acquired from the master table 24A at the reception timing of the latest collection target information. Therefore, the CPU 21 can accurately specify the clock time at which the event occurred in each sewing machine 3 based on the latest second device time information and the first clock time information.

リムーバブルメディア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 transmission area 521 of the storage unit 52, the control unit 53 of the removable medium 5 transmits the collection target information stored in the transmission area 521 and the retransmission area 522 to the server 2. For this reason, the CPU 31 of the sewing machine 3 can transmit the collection target information to the server 2 by writing data in the transmission area 521 of the storage unit 52. In addition, when data is received, the control unit 53 of the removable medium 5 stores the data in the reception area of the storage unit 52. The CPU 31 can receive the data transmitted from the server 2 by reading the data from the reception area of the storage unit 52. In this case, even when the sewing machine 3 itself does not have a communication function, the server 2 can collect collection target information related to an event that has occurred in the sewing machine 3.

<変形例>
本発明は上記実施形態に限定されず、種々の変更が可能である。ミシン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 server 2 via the network 8 in advance. In this case, the collection target information is transmitted to the server 2 after being stored in the storage unit 34 or the RAM 33 of the sewing machine 3 without using the removable medium 5.

閲覧要求情報を送信する装置は、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 storage unit 24 of the server 2. When executing the process of S95, the CPU 21 of the server 2 may refer to the table stored in the storage unit 24 and specify the device identification information based on the device specifying information. The CPU 21 transmits the target event history information, the target second device time information (Ct) acquired by the process of S97, and the target first clock time information (Tr) to the PC 6 that has transmitted the browsing request information. Good. The PC 6 may calculate the second clock time information using the equation (3) based on the received Ct, Tr and the second device time information (Ce) included in the target event history information. The PC 6 may cause the display unit to display the calculated second clock time information together with the corresponding event identification information.

サーバ2は、表示部及び操作部を有していてもよい。CPU21は、イベント履歴情報の表示を指示するための操作が、操作部を介して実行された場合、サーバ第2処理のS93〜S103の処理を実行してもよい。CPU21は、生成された閲覧応答情報を示す画面を表示部に表示させてもよい。   The server 2 may have a display unit and an operation unit. CPU21 may perform the process of S93-S103 of a server 2nd process, when operation for instruct | indicating the display of event history information is performed via the operation part. The CPU 21 may display a screen indicating the generated browsing response information on the display unit.

CPU21は、S111の処理を実行する場合において、標準時刻とマスタ時計時刻とが一致するかを、一定周期で判定した。これに対し、例えば、OSは、NPTサーバから標準時刻情報を取得したタイミングで、通知フラグに「1」を設定してもよい。CPU21は、通知フラグに「1」が設定されていない場合、マスタ時計時刻情報の変更は不要と判定してもよい(S111:NO)。一方、CPU21は、通知フラグに「1」が設定された場合、マスタ時計時刻情報の変更が必要と判定してもよい(S111:YES)。   When executing the process of S111, the CPU 21 determines at regular intervals whether the standard time matches the master clock time. On the other hand, for example, the OS may set “1” in the notification flag at the timing when the standard time information is acquired from the NPT server. When “1” is not set in the notification flag, the CPU 21 may determine that the master clock time information does not need to be changed (S111: NO). On the other hand, when “1” is set in the notification flag, the CPU 21 may determine that the master clock time information needs to be changed (S111: YES).

CPU21は、電源オンのイベント識別情報に関連付けられた第1装置時刻、電源オンのイベントが発生したときの時計時刻、及び、第1時計時刻に基づき、ミシン3の電源がオフされてからオンされるまでに経過した時間を示す装置時刻を算出した(S75)。CPU21は、算出された装置時刻に基づいて、対象イベント履歴情報の第1装置時刻を更新した(S77)。これに対し、例えばCPU21は、電源オフのイベントを示すイベント識別情報を含む収集対象情報をミシン3から受信した場合、第1テーブル24Bの第1装置時刻情報を1秒周期で1ずつ加算する処理を実行してもよい。CPU21は、電源オンのイベントを示すイベント識別情報を含む収集対象情報をミシン3から受信した場合、上記の処理を終了させてもよい。   The CPU 21 is turned on after the power of the sewing machine 3 is turned off based on the first device time associated with the power-on event identification information, the clock time when the power-on event occurs, and the first clock time. The device time indicating the time elapsed until the time was calculated (S75). The CPU 21 updates the first device time of the target event history information based on the calculated device time (S77). On the other hand, for example, when the CPU 21 receives collection target information including event identification information indicating a power-off event from the sewing machine 3, the CPU 21 adds the first device time information in the first table 24B one by one every 1 second. May be executed. When the CPU 21 receives the collection target information including the event identification information indicating the power-on event from the sewing machine 3, the CPU 21 may end the above process.

CPU31は、装置識別情報及び第2装置時刻を含むファイル名の収集対象情報を生成した(S25)。これに対し、CPU31は、イベント識別情報、第1装置時刻情報、装置識別情報、及び、第2装置時刻情報を含む収集対象情報を生成してもよい。つまり、装置識別情報及び第2装置時刻情報を含むファイル名が収集対象情報に設定されなくてもよい。   The CPU 31 generates collection target information of file names including the device identification information and the second device time (S25). On the other hand, the CPU 31 may generate collection target information including event identification information, first device time information, device identification information, and second device time information. That is, the file name including the device identification information and the second device time information may not be set in the collection target information.

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 CPU 31 transmits the collection target information (S25). On the other hand, the timing at which the collection target information is transmitted may be any transmission cycle after the event has occurred. That is, the CPU 31 does not have to transmit the collection target information in the transmission cycle that comes immediately after the occurrence of the event, and may transmit the collection target information at any timing in the subsequent transmission cycle. Further, the CPU 21 may transmit the collection target information at the timing when the event occurs. Specifically, the CPU 21 may transmit the collection target at the timing when the event occurs each time an event occurs by skipping and executing the processing of S19.

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 CPU 31 moves the collection target information from the transmission area 521 to the retransmission area 522 in the storage unit 52 of the removable medium 5 (S55). When the next transmission cycle arrives, the control unit 53 of the removable medium 5 responds to a newly occurring event when the collection target information is stored in the retransmission area 522 of the storage unit 52, and the transmission area The collection target information stored in 521 and the collection target information stored in the retransmission area 522 are transmitted (S25). In contrast, the CPU 31 may transmit common collection target information including event history information included in the collection target information stored in the retransmission area 522 and event history information corresponding to a newly generated event. .

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 CPU 31 moves the collection target information stored in the transmission area 521 of the storage unit 52 of the removable medium 5 to the retransmission area 522 ( S55). On the other hand, when it is determined that the transmission of the collection target information has failed, the CPU 31 may leave the collection target information stored in the transmission area 521 in the storage unit 52 of the removable medium 5 as it is. . That is, the retransmission area 522 may not be provided in the storage unit 52 of the removable medium 5. Even in this case, when the next transmission cycle comes, the collection target information stored in the transmission area 521 of the storage unit 52, that is, the collection target information that has failed to be transmitted is transmitted to the server 2. .

<その他>
マスタテーブル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 storage unit 34 in which the master table 34A is stored is an example of the “apparatus time storage unit” in the present invention. The master device time information in the master table 34A is an example of the “device time information” in the present invention. The CPU 31 that performs the process of S25 is an example of the “first transmission unit” in the present invention. The storage unit 24 in which the master table 24A is stored is an example of the “clock time storage unit” in the present invention. The master clock time information in the master table 24A is an example of the “clock time information” in the present invention. The CPU 21 that performs the process of S61 is an example of the “first receiving means” in the present invention. The storage unit 24 in which the first table 24B is stored is an example of the “first storage unit” in the present invention. The storage unit 24 in which the second table 24C is stored is an example of the “second storage unit” in the present invention. The CPU 21 that performs the process of S81 is an example of the “first storage unit” in the present invention. The CPU 21 that performs the process of S79 is an example of the “second storage unit” in the present invention. The CPU 21 that performs the process of S91 is an example of the “second receiving means” in the present invention. The CPU 21 that performs the process of S95 is an example of the “first acquisition unit” in the present invention. The CPU 21 that performs the process of S101 is an example of the “conversion unit” in the present invention. The CPU 21 that performs the process of S105 is an example of the “second transmission unit” in the present invention. The CPU 21 that performs the process of S111 is an example of the “first determination unit” in the present invention. The CPU 21 that performs the process of S115 is an example of the “first correction unit” in the present invention. The CPU 21 that performs the process of S67 is an example of the “second determination unit” in the present invention. The CPU 21 that performs the process of S69 is an example of the “second acquisition unit” in the present invention. The CPU 21 that performs the process of S71 is an example of the “calculation unit” in the present invention. The CPU 21 that performs the process of S77 is an example of the “second correction unit” in the present invention. The CPU 31 that performs the process of S15 stores it in the “third storage unit” of the present invention. The storage unit 34 in which the third table 33A is stored is an example of the “third storage unit” in the present invention. The CPU 31 that performs the process of S51 is an example of the “third determination unit” in the present invention. The CPU 31 that performs the process of S55 is an example of the “fourth storage unit” in the present invention. The process of S25 is one of the “fifth storage means” in the present invention.

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: storage unit 24A: master table 24B: first table 24C: second table 31: CPU
34: storage unit 34A: master table 34B: third tables 341, 342, 343: collection target information 521: transmission area 522: reception area

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
前記第1送信手段は、
所定周期の何れかのタイミングで、前記収集対象情報を送信することを特徴とする請求項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装置時刻情報、及び、前記第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:
前記端末装置を特定可能な装置特定情報を含む閲覧要求を、前記サーバが要求元装置から受信する第2受信ステップと、
前記第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判定ステップと、
前記第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.
前記第1受信ステップによる受信に応じて、前記第1記憶部に記憶された最新のイベント識別情報が、前記端末装置の電源オフ動作を示すかを、前記サーバが判定する第2判定ステップと、
前記第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記憶部に記憶する第3記憶ステップを備え、
前記第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
前記第1送信ステップは、
所定周期の何れかのタイミングで、前記収集対象情報を送信することを特徴とする請求項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.
前記第1送信ステップによる前記収集対象情報の送信に成功したかを、前記端末装置が判定する第3判定ステップと、
前記第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.
前記第1受信ステップによって前記イベント識別情報、前記装置識別情報、前記第1装置時刻情報、及び、前記第2装置時刻情報が複数受信された場合、
前記第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装置時刻情報、及び、前記イベント識別情報の送信タイミングに対応する第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 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:
前記端末装置を特定可能な装置特定情報を含む閲覧要求を要求元装置から受信する第2受信ステップと、
前記第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判定ステップと、
前記第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.
前記第1受信ステップによる受信に応じて、前記第1記憶部に記憶された最新のイベント識別情報が、前記端末装置の電源オフ動作を示すかを判定する第2判定ステップと、
前記第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:
前記第1受信ステップによって前記イベント識別情報、前記装置識別情報、前記第1装置時刻情報、及び、前記第2装置時刻情報が複数受信された場合、
前記第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記憶部に記憶する第3記憶手段を備え、
前記第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:
前記第1送信手段は、
所定周期の何れかのタイミングで、前記収集対象情報を送信することを特徴とする請求項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.
前記第1送信手段による前記収集対象情報の送信に成功したかを判定する第3判定手段と、
前記第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.
前記第5記憶手段は、
前記リムーバブルメディアの前記記憶領域のうち送信領域に前記収集対象情報を記憶し、
前記第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.
JP2016056901A 2016-03-22 2016-03-22 Information collection system, information collection method, and terminal device Pending JP2017173971A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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)