A method of collecting data, which is executed by a sensor system,
- the sensor system comprising:
- a terminal apparatus comprising a sensor;
- and
- a base station configured to communicate to/from the terminal apparatus,
- the terminal apparatus being configured to store, of measurement data acquired by the sensor, an acquisition frequency for the measurement data to be transmitted to the base station,
- the method comprising:
- a first step of receiving, by the base station, from the terminal apparatus, first data including the acquisition frequency and a reference time of an acquisition period in which the measurement data is acquired by the sensor, and second data corresponding to the first data and including a plurality of pieces of measurement data of the sensor acquired at the acquisition frequency during the acquisition period;
- and
- a second step of identifying, by the base station, based on the reference time and the acquisition frequency included in the first data, an acquisition time of each of the plurality of pieces of measurement data included in the second data corresponding to the first data,
- the method further comprising including the first data in at least one first packet to transmit the first data, and including the second data in a plurality of second packets to transmit the second data, a number of the plurality of second packets being larger than a number of at least one first packet,
- wherein the same identification information is assigned to the at least one first packet including the first data and to the plurality of second packets including the second data corresponding to the first data,
- wherein each of the plurality of second packets includes a packet number representing an acquisition order of the measurement data included in the each of the plurality of second packets,
- wherein the second step comprises:
- identifying, by the base station, based on the packet number, an acquisition order of the measurement data included in the plurality of second packets to which the same identification information has been assigned;
- determining, by the base station, based on the packet number, a presence or absence of loss of the measurement data;
- and
- identifying, by the base station, an acquisition time of each piece of measurement data based on the reference time and the acquisition frequency included in the at least one first packet to which the same identification information as the identification information assigned to the plurality of second packets has been assigned, the identified acquisition order of the measurement data, and a result of the determination of the presence or absence of loss of the measurement data, and
- wherein the terminal apparatus comprises:
- a plurality of sensors;
- and
- circular-array type storage modules, a number of circular-array type storage modules being less than a number of the plurality of sensors,
- wherein the method further comprises:
- storing, by the terminal apparatus, in one of the circular-array type storage modules, for each amount to be stored in one packet, measurement data acquired by at least two sensors of the plurality of sensors;
- and
- generating and transmitting the second packet including measurement data sequentially read from the circular-array type storage modules, identification information on the at least two sensors from which the measurement data has been acquired, and the packet number, and
- wherein the second step further comprises identifying, by the base station, based on the identification information on the at least two sensors, the acquisition order of the measurement data for each of the at least two sensors which acquire the measurement data.