Sensor device management method and sensor device management system
10996076 · 2021-05-04
Assignee
Inventors
Cpc classification
H04L67/34
ELECTRICITY
H04L67/125
ELECTRICITY
G06F9/44505
PHYSICS
H04L67/12
ELECTRICITY
International classification
G06F15/00
PHYSICS
Abstract
A management server 103 holds a parameter of a sensor device 101 and change management information related to a change in the parameter, and transmits the changed parameter and the change management information to the sensor device. The sensor device 101 holds the parameter and the change management information transmitted from the management server, and transmits the change management information to the management server together with measurement data. The management server collates the received change management information and preliminarily-held change management information to determine the change in the parameter on the basis of a result of the collation.
Claims
1. A sensor device management method in which measurement data measured by a sensor device is obtained and managed by a management server, comprising: holding a parameter of the sensor device and change management information related to a change in the parameter in the management server, and transmitting the changed parameter and the change management information to the sensor device, holding the parameter and the change management information transmitted from the management server in the sensor device, and transmitting the change management information to the management server together with the measurement data, and collating in the management server the received change management information and preliminarily-held change management information to determine the change in the parameter on the basis of a result of the collation.
2. The sensor device management method according to claim 1, wherein the management server associates a first parameter set including a plurality of parameters with first change management information associated with the first parameter set to be stored into a first storage unit, wherein the management server generates second change management information different from the first change management information when one or a plurality of parameters in the first parameter set is changed, at least the one or plurality of changed parameters and the second change management information are transmitted to the sensor device, and wherein the sensor device associates the one or plurality of received and changed parameters with the second change management information to be held in a second storage unit.
3. The sensor device management method according to claim 2, wherein the management server stores into the first storage unit a parameter management table in which the parameter set including a plurality of parameters, a unique parameter ID given while being associated with each of the parameters, and the change management information are registered while being associated with each other for each sensor device, wherein the management server transmits at least the one or plurality of changed parameters, the parameter ID associated with the parameter, and the second change management information to the sensor device, and wherein the sensor device stores into the second storage unit a parameter holding table in which the one or plurality of received and changed parameters, the parameter ID, and the second change management information are registered while being associated with each other.
4. The sensor device management method according to claim 1, wherein the sensor device has a unique sensor device ID, and the sensor device transmits to the management server a measurement data set including the measurement data, the change management information, and the sensor device ID.
5. The sensor device management method according to claim 1, wherein the sensor device transmits the measurement data to the management server at predetermined timing designated by the parameter.
6. The sensor device management method according to claim 1, wherein the management server stores the measurement data set into a database in the case where it is determined that the change in the parameter has succeeded in the determination, and the management server resends the changed parameter and the change management information to the sensor device in the case where it is determined that the change in the parameter has failed in the determination.
7. The sensor device management method according to claim 3, wherein the parameter management table holds a flag indicating a success/failure of the change in the parameter, and wherein management server determines that the change in the parameter has succeeded when the flag indicates “not-yet” of the change in the parameter in the case where it is determined that the change management information transmitted from the sensor device is the latest information by referring to the parameter management table.
8. The sensor device management method according to claim 1, wherein the change management information is a parameter version number given every time the parameter is updated.
9. The sensor device management method according to claim 1, wherein the parameter includes any one of a measurement time, a measurement data transmission time, a measurement interval, a measurement period, a measurement start frequency, a measurement end frequency, and a determination threshold value in the sensor device.
10. A sensor device management system in which a management server obtains and manages measurement data measured by a sensor device, comprising: the management server including: a first storage unit that holds a parameter of the sensor device and change management information related to a change in the parameter; and an interface that transmits the changed parameter and the change management information to the sensor device, the sensor device including: a sensor; a second storage unit that holds the parameter and the change management information transmitted from the management server; and a communication unit that transmits a packet including measurement data including data measured by the sensor and the change management information to the management server, and wherein the management server further includes a determination unit that collates the received change management information and preliminarily-held change management information to determine the change in the parameter on the basis of a result of the collation.
11. The sensor device management system according to claim 10, wherein the first storage unit of the management server stores a parameter management table in which the parameter set including a plurality of parameters, a unique parameter ID given while being associated with each of the parameters, and the change management information are registered while being associated with each other for each sensor device, wherein the interface of the management server transmits at least one or plurality of changed parameters, the parameter ID associated with the parameter, and changed change management information to the sensor device, and wherein the second storage unit of the sensor device stores a parameter holding table in which the one or plurality of changed parameters, the parameter ID, and the changed change management information transmitted from the management server are registered while being associated with each other.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DESCRIPTION OF EMBODIMENTS
(11) Hereinafter, an embodiment of the present invention will be described in detail on the basis of the drawings.
(12)
(13) The sensor device management system is configured to include a plurality of sensor devices 101, a wireless network 102, a management server 103, a database 104, and an application server 105. The sensor device 101 is connected to the management server 103 through the wireless network 102. The wireless network 102 is usually configured using a wireless base station, a network server, and the like.
(14) The sensor device 101 measures a temperature, humidity, a vibration, and the like, and transmits the measurement data or information created on the basis of the measurement data to the management server 103 through the wireless network 102 as a measurement data packet. The management server 103 creates a measurement data set on the basis of the received measurement data packet and a measurement parameter, and stores the same into the database 104. The database 104 is a computer installed on a network, and accumulates management information related to the sensor device 101 and the measurement data set. The application server 105 obtains the management information related to the sensor device 101 and the measurement data set from the database 104, and analyzes or displays the same.
(15)
(16) The sensor device 101 is configured to have a control unit 201, a wireless communication unit 202, and a sensor 203. It should be noted that a power supply (battery) is not illustrated.
(17) The control unit 201 has a microprocessor 204 and a memory 205. By executing a program, the microprocessor 204 controls the measurement of the sensor 203, generates measurement data on the basis of a measurement result by the sensor 203, instructs to transmit the measurement data packet to the wireless communication unit 202, and processes data received from the wireless communication unit 202. The memory 205 stores a parameter holding table 211. A configuration of the table will be described later with reference to
(18)
(19) The management server 103 is configured to have a memory 301, a processor (CPU) 302, an input/output interface 303 connected to an input/output device 306, a network interface 304, and an external storage device 305. Each function of the management server 103 is realized in such a manner that program software stored in the external storage device 305 is expanded to the memory 301 to be executed by the CPU 302. The management server 103 allows the network interface 304 to communicate with the sensor device 101 through the wireless network 102. In addition, the management server 103 is connected to the database 104 through the network interface 304.
(20) The memory 301 stores aversion determination process program 311, a parameter management table 312, and a measurement data set table 313. The processing operations of these programs and the configuration of each table will be described later.
(21) Next, operations when the parameter of the sensor device is changed and the measurement data set is created will be described with reference to
(22) First, the management server 103 accepts a parameter change instruction input from the input/output device 306 through the input/output interface 303 (401). The parameter change includes at least any one of a parameter name and a parameter ID, and a value after the change. The parameter change may be performed for a single parameter or a plurality of parameters at the same time. It should be noted that the parameter change instruction may be input from not the input/output device 306 but the application server 105. In this case, the management server 103 is configured so as to be connected to the application server 105 through the network interface 304, and the network interface 304 of the management server 103 accepts the parameter change instruction input from the application server 105.
(23) After accepting the parameter change instruction, the CPU 302 of the management server 103 gives a version number (402).
(24) Here, an example of giving the version number will be described using
(25) In the example of
(26) The parameter version number is a version number for a parameter set that is given to the parameter set configured using the value of each parameter by the CPU 302. In the example, it is assumed that the CPU 302 increments the parameter version number by 1 every time a parameter change is performed. Accordingly, an old or new parameter set can be easily determined on the basis of the magnitude of the parameter version number.
(27) In
(28) In
(29) With reference to
(30) Here, a configuration of the parameter change instruction packet will be described with reference to
(31) The parameter version number included in the parameter change instruction packet is a number (“2” in the example of
(32) The parameter change instruction packet 601 may include the parameter IDs and values of all the parameters, but may include only the parameter ID and value of the parameter having accepted the change in Step 401. In the case where only the parameter ID and value of the parameter having accepted the change in Step 401 is included in the parameter change instruction packet, the size of the parameter change instruction packet can be reduced as compared to the case in which the parameter IDs and values of all the parameters are included, and it is possible to suppress a wireless communication band to be used and wireless communication time.
(33) With reference to
(34) Here, the update of the parameter holding table 211 performed by the control unit 201 of the sensor device will be described using
(35) When receiving the parameter change instruction packet 601, the control unit 201 updates the parameter version number and the parameter value of the parameter holding table 211 in accordance with the content of the parameter change instruction packet. In the case of the parameter that is not included in the parameter change instruction packet, the control unit 201 keeps the value before the parameter change instruction packet is received.
(36) With reference to
(37) Here, the measurement data packet will be described using
(38) A measurement data packet 801 is configured to include a sensor device ID, a parameter version number, and measurement data. The parameter version number of the parameter holding table 211 is reflected in the parameter version number. It should be noted that the sensor device ID, the parameter version number, and the measurement data are desirably transmitted by a single packet as in the example of
(39) As described above, in the case where the measurement data packet 801 includes the parameter version number, the packet size can be reduced as compared to the case in which the measurement data packet includes a parameter set, and it is possible to suppress power consumption of the sensor device and use of the wireless band.
(40) With reference to
(41) Here, a version determination process performed by the CPU 302 of the management server 103 will be described using
(42) That is, the CPU 302 refers to the parameter management table 312 to determine whether or not the parameter version number in the received measurement data packet 801 is the latest number (901). The latest parameter version number is the latest parameter version number in the parameter management table 312.
(43) In the case where the result of the determination shows that the parameter version number in the measurement data packet is the latest number (901: Yes), the CPU 302 determines whether or not the parameter change success/failure flag corresponding to the latest parameter version number of the parameter management table 312 indicates “not-yet” (902).
(44) In the case where the parameter change success/failure flag corresponding to the latest parameter version number indicates “not-yet” (902: Yes), the CPU 302 determines that the parameter change has succeeded, and rewrites the parameter change success/failure flag corresponding to the latest parameter version number of the parameter management table 312 with “success”. On the other hand, in the case where the parameter change success/failure flag corresponding to the latest parameter version number does not indicate “not-yet” (902:No), the CPU 302 terminates the version determination process because the parameter change is not being carried out.
(45) In the case where the parameter version number in the measurement data packet is not the latest number in the determination 901 (901: No), the CPU 302 rewrites the parameter change success/failure flag corresponding to the latest parameter version number of the parameter management table 312 with “failure”.
(46) As described above, the management server 103 can determine the parameter change success/failure by referring to the parameter version number in the measurement data packet 801 and the parameter management table 312.
(47) It should be noted that when the sensor device 101 receives the parameter change instruction (403), an ACK response may be returned to the management server 103. Then, it is determined that the parameter change has succeeded at the time when the CPU 302 received the ACK response, and the parameter change success/failure of the parameter management table can be rewritten into “success”. However, if the parameter change success/failure is determined only with the ACK response, the management server 103 cannot correctly recognize the parameter change success/failure in the case where the sensor device 101 returns the ACK response but the management server 103 cannot receive the ACK.
(48) On the contrary, the management server 103 can reliably recognize the parameter change success/failure by using the parameter version number in the measurement data packet as an operation of
(49) In
(50) Here, the measurement data set will be described using FIG. 10.
(51) Accordingly, the management server 103 can reliably provide the parameter set used by the sensor device together with the measurement data.
(52) With reference to
(53) Thereafter, the CPU 302 stores the measurement data set into the database 104 (409). The application server 105 can obtain a target measurement data set from the database 104 to provide various services.
(54) In the case where the CPU 302 determines that the parameter change has failed in the determination step 407, the CPU 302 resends the parameter change instruction packet to the sensor device 101 (410), and instructs to change the parameter again.
(55) It should be noted that in the case where it is determined that the parameter change has failed, the CPU 302 does not need to resent the parameter change instruction packet. In this case, an error response is desirably returned for the parameter change accepted from the input/output device 306.
(56) The preferred example has been described above. However, the present invention is not limited to above-described example, and can be carried out by being variously modified and applied.
(57) For example, the parameter change success/failure for the sensor device is recognized by determining the consistency of the version number of the parameter set in the above-described example. According to an alternative example, it is possible to determine the consistency of the parameter set on the basis of change management information related to a change in the parameter set such as the update year, month, and date, the update year and month, or the update year of the parameter set instead of the version number of the parameter set.
(58) Further, in the above-described example, the measurement data packet is transmitted to the management server 103 at the timing such as the predetermined time designated by the parameter (Step 406) in the operation explanation with reference to
LIST OF REFERENCE SIGNS
(59) 101: sensor device
(60) 102: wireless network
(61) 103: management server
(62) 104: database
(63) 105: application server
(64) 312: parameter management table
(65) 601: parameter change instruction packet
(66) 211: parameter holding table
(67) 801: measurement data packet
(68) 313: measurement data set