Reader apparatus, control method, and storage medium
A reader apparatus detects a communication object by radiating radio waves and receiving a response, determines a change in a state based on at least one of a position and an inclination of the reader apparatus, and controls power consumed in the reader apparatus by setting a length of a first period, in which a reduction of power consumed in the detection is not performed, and a length of a second period, in which a reduction of the power is performed, based on the change in the state.
1. A reader apparatus comprising:
one or more processors; and
one or more memories that store computer-readable instructions, which cause, when executed by the one or more processors, the reader apparatus to:
perform detection of a communication object by radiating radio waves and receiving a response;
determine a change in a state based on at least one of a position and an inclination of the reader apparatus; and
control power consumed in the reader apparatus by setting a length of a first period in which a reduction of power consumed in the detection is not performed, and a length of a second period in which a reduction of the power is performed, based on the change in the state,
wherein, in a case where an amount of the change in the state is a first amount or a second amount which is larger than the first amount, the first period and the second period are controlled to be alternately arranged such that the second period is started after an end of the first period, and the first period is started again after an end of the second period, and
wherein the reader apparatus sets the length of the second period to be longer than the length of the first period in the case where the amount of the change in the state is the first amount, and sets the length of the second period to be shorter than the length of the first period in the case where the amount of the change in the state is the second amount.
2. The reader apparatus according to claim 1 , wherein the reader apparatus sets a setting value of the length of the second period to a first value in a case where an amount of change in the position of the reader apparatus does not exceed a predetermined value, and sets the setting value of the length of the second period to a second value, which is shorter than the first value, in a case where an amount of change in the position of the reader apparatus exceeds the predetermined value.
3. The reader apparatus according to claim 1 , wherein the reader apparatus sets a setting value of the length of the first period to a third value in a case where an amount of change in the position of the reader apparatus does not exceed a predetermined value, and sets the setting value of the length of the first period to a fourth value, which is longer than the third value, in a case where an amount of change in the position of the reader apparatus exceeds the predetermined value.
4. The reader apparatus according to claim 1 , wherein the reader apparatus sets a setting value of the length of the second period to a first value in a case where an amount of change in the inclination of the reader apparatus does not exceed a predetermined value, and sets the setting value of the length of the second period to a second value, which is shorter than the first value, in a case where an amount of change in the inclination of the reader apparatus exceeds the predetermined value.
5. The reader apparatus according to claim 1 , wherein the reader apparatus sets a setting value of the length of the first period to a third value in a case where an amount of change in the inclination of the reader apparatus does not exceed a predetermined value, and sets the setting value of the length of the first period to a fourth value, which is longer than the third value, in a case where an amount of change in the inclination of the reader apparatus exceeds the predetermined value.
6. The reader apparatus according to claim 1 , wherein the reader apparatus sets a setting value of the length of the second period to a first value in a case where the reader apparatus moves to a predetermined range with respect to a direction in which the radio waves are radiated, and sets the setting value of the length of the second period to a second value, which is shorter than the first value, in a case where the reader apparatus does not move to the predetermined range based on at least one of the position and the inclination of the reader apparatus.
7. The reader apparatus according to claim 1 , wherein the reader apparatus sets a setting value of the length of the first period to a third value in a case where the reader apparatus moves to a predetermined range with respect to a direction in which the radio waves are radiated, and sets the setting value of the length of the first period to a fourth value, which is longer than the third value, in a case where the reader apparatus does not move to the predetermined range based on at least one of the position and the inclination of the reader apparatus.
8. The reader apparatus according to claim 1 , wherein the reader apparatus radiates, in the second period, the radio waves at a strength that is smaller than that of the first period.
9. The reader apparatus according to claim 1 , wherein the reader apparatus does not radiate the radio waves in the second period.
10. The reader apparatus according to claim 1 , wherein the reader apparatus performs the setting in the first period and does not perform the setting in the second period.
11. The reader apparatus according to claim 1 , wherein the computer-readable instructions cause, when executed by the one or more processors, the reader apparatus to transmit information related to the detected communication object to another apparatus different from the reader apparatus, and
the reader apparatus stops an operation of the transmission in the second period.
12. The reader apparatus according to claim 1 , wherein the reader apparatus is an RFID reader, and the communication object is an RFID tag.
13. A control method executed by a reader apparatus operable to perform detection of a communication object by radiating radio waves and receiving a response, the method comprising:
determining a change in a state based on at least one of a position and an inclination of the reader apparatus; and
controlling power consumed in the reader apparatus by setting a length of a first period in which a reduction of power consumed in the detection of the communication object is not performed, and a length of a second period in which a reduction of the power is performed, based on the change in the state,
wherein, in a case where an amount of the change in the state is a first amount or a second amount which is larger than the first amount, the first period and the second period are controlled to be alternately arranged such that the second period is started after an end of the first period, and the first period is started again after an end of the second period, and
wherein the reader apparatus sets the length of the second period to be longer than the length of the first period in the case where the amount of the change in the state is the first amount, and sets the length of the second period to be shorter than the length of the first period in the case where the amount of the change in the state is the second amount.
14. A non-transitory computer-readable storage medium that stores a computer program for causing a computer included in a reader apparatus to:
perform detection of a communication object by radiating radio waves and receiving a response;
determine a change in a state based on at least one of a position and an inclination of the reader apparatus; and
control power consumed in the reader apparatus by setting a length of a first period in which a reduction of power consumed in the detection is not performed, and a length of a second period in which a reduction of the power is performed, based on the change in the state,
wherein, in a case where an amount of the change in the state is a first amount or a second amount which is larger than the first amount, the first period and the second period are controlled to be alternately arranged such that the second period is started after an end of the first period, and the first period is started again after an end of the second period, and
wherein the reader apparatus sets the length of the second period to be longer than the length of the first period in the case where the amount of the change in the state is the first amount, and sets the length of the second period to be shorter than the length of the first period in the case where the amount of the change in the state is the second amount.