The present application is based on, and claims priority from JP Application Serial Number 2019-133438, filed Jul. 19, 2019, the disclosure of which is hereby incorporated by reference herein in its entirety.

BACKGROUND

1. Technical Field

The present disclosure relates to a method of controlling an information processor, a non-transitory controller-readable medium storing a program, and a communication system.

2. Related Art

Japanese Examined Patent Application Publication No. 07-016190, for example, discloses a conventional technology by which a communication abnormality is recognized when a difference between the number of data receptions and the number of data transmissions reaches a predetermined number of times in a communicator that adds its own data to data received from an apparatus disposed upstream and transmits the resulting data to an apparatus disposed downstream.

With the technology disclosed in Japanese Examined Patent Application Publication No. 07-016190, it is not easy to add a function to recognize a communication abnormality to an existing system because a need arises to modify an exiting application incorporated into the communicator.

SUMMARY

A method, in an embodiment of the present disclosure, of controlling a an information processor is a method of controlling an information processor configured to communicate with a peripheral, the information processor having a device driver, an application configured to communicate with the peripheral through the device driver, and a filter driver configured to acquire communication information related to communication performed between the application and the peripheral through the device driver, the communication information including time information indicating a time of the communication. The method includes: acquiring communication information from the filter driver over a predetermined period; defining a decision reference according to which a decision is made about an abnormality caused during communication with the peripheral or an abnormality in the peripheral, according to the acquired communication information; and making a decision about an abnormality caused during communication with the peripheral or an abnormality in the peripheral through a comparison between the defined decision reference and communication information acquired from the filter driver after the predetermined period.

A non-transitory controller-readable medium in an embodiment of the present disclosure stores a program causing a processor in an information processor configured to communicate with a peripheral, the information processor having a device driver, an application configured to communicate with the peripheral through the device driver, and a filter driver configured to acquire communication information related to communication performed between the application and the peripheral through the device driver, the communication information including time information indicating a time of the communication, to acquire communication information from the filter driver over a predetermined period, to define a decision reference according to which a decision is made about an abnormality caused during communication with the peripheral or an abnormality in the peripheral, according to the acquired communication information, and to make a decision about an abnormality caused during communication with the peripheral or an abnormality in the peripheral through a comparison between the defined decision reference and communication information acquired from the filter driver after the predetermined period.

A communication system in an embodiment of the present disclosure includes: a peripheral; and an information processor configured to have a device driver, a first application configured to communicate with the peripheral through the device driver, a filter driver configured to acquire communication information related to communication performed between the first application and the peripheral through the device driver, the communication information including time information indicating a time of the communication, and a second application configured to acquire communication information from the filter driver over a predetermined period, to define a decision reference according to which a decision is made about an abnormality caused during communication with the peripheral or an abnormality in the peripheral, according to the acquired communication information, and to make a decision about an abnormality caused during communication with the peripheral or an abnormality in the peripheral through a comparison between the defined decision reference and communication information acquired from the filter driver after the predetermined period.

