Log management device, electronic control system, log management method, and storage medium storing log management program
A log management device acquires an alive monitoring log indicating that a security sensor of an electronic control unit mounted on a vehicle is operating; records acquisition of the alive monitoring log in an alive monitoring table; identifies an unacquired alive monitoring log, and records, in the alive monitoring table, an unacquired period during which the unacquired alive monitoring log is not acquired; and invalidates a record of the unacquired alive monitoring log in the alive monitoring table when the unacquired period of the unacquired alive monitoring log is equal to or longer than a predetermined period.
1 . A log management device comprising
at least one of (i) a circuit and (ii) a processor with a memory storing computer program code executable by the processor, the at least one of the circuit and the processor configured to cause the log management device to implement:
a log acquisition unit configured to acquire an alive monitoring log indicating that a security sensor of an electronic control unit mounted on a vehicle is operating;
an alive monitoring log recording unit configured to record acquisition of the alive monitoring log in an alive monitoring table;
an unacquired alive monitoring log recording unit configured to identify an unacquired alive monitoring log which is not acquired by the log acquisition unit, and record, in the alive monitoring table, an unacquired period during which the unacquired alive monitoring log is not acquired; and
an invalidation unit configured to invalidate a record of the unacquired alive monitoring log in the alive monitoring table when the unacquired period of the unacquired alive monitoring log is equal to or longer than a predetermined period.
2 . The log management device according to claim 1 , wherein
the invalidation unit performs invalidation by deleting the record of the unacquired alive monitoring log from the alive monitoring table.
3 . The log management device according to claim 1 , wherein
the invalidation unit performs invalidation by recording the unacquired alive monitoring log in a masking table that masks elements in the alive monitoring table.
4 . The log management device according to claim 1 , wherein
the alive monitoring table is empty when the vehicle is started for a first time.
5 . The log management device according to claim 1 , wherein
a known alive monitoring log is registered in the alive monitoring table when the vehicle is started for a first time.
6 . The log management device according to claim 1 , wherein
the predetermined period is defined in unit of a trip, which is a period from start of the log management device to termination of the log management device or a period from ignition ON to ignition OFF of the vehicle.
7 . The log management device according to claim 6 , wherein
the predetermined period is defined as a case in which the trip consecutively occurs a predetermined number of times.
8 . The log management device according to claim 1 , wherein the at least one of the circuit and the processor is further configured to cause the log management device to implement:
a period measurement unit configured to measure the predetermined period.
9 . The log management device according to claim 1 , wherein
the alive monitoring log is generated by the security sensor at a constant cycle.
10 . The log management device according to claim 1 , wherein
the alive monitoring log recording unit records identification information of the alive monitoring log in the alive monitoring table.
11 . The log management device according to claim 1 , wherein the at least one of the circuit and the processor is further configured to cause the log management device to implement:
an output unit configured to output a detection log to an external device when the unacquired period of the unacquired alive monitoring log is equal to or longer than a predetermined period.
12 . The log management device according to claim 1 , wherein the at least one of the circuit and the processor is further configured to cause the log management device to implement:
an external input and output unit configured to access the alive monitoring table from outside the vehicle.
13 . The log management device according to claim 12 , wherein
reading of the alive monitoring table is permitted in both cases in which the external input and output unit accesses the alive monitoring table from outside the vehicle by a method using wireless communication and in which the external input and output unit accesses the alive monitoring table from outside the vehicle by a method using wired communication.
14 . The log management device according to claim 13 , wherein
when the alive monitoring table is read via the external input and output unit, the external input and output unit outputs the alive monitoring table including a total number of pieces of identification information of the alive monitoring logs recorded in the alive monitoring table.
15 . The log management device according to claim 12 , wherein
when the external input and output unit accesses the alive monitoring table from outside the vehicle by a method using wireless communication, deletion of the alive monitoring table is prohibited, and
when the external input and output unit accesses the alive monitoring table from outside the vehicle by a method using wired communication, the deletion of the alive monitoring table is permitted.
16 . The log management device according to claim 1 , wherein
the log management device is mounted on the vehicle.
17 . An electronic control system comprising:
an electronic control unit mounted on a vehicle; and
a log management device connected to the electronic control unit,
wherein
the electronic control unit is configured to
generate an alive monitoring log indicating that a security sensor is operating, and
transmit the alive monitoring log, and
the log management device includes at least one of (i) a circuit and (ii) a processor with a memory storing computer program code executable by the processor, the at least one of the circuit and the processor configured to cause the log management device to implement:
a log acquisition unit configured to acquire the alive monitoring log,
an alive monitoring log recording unit configured to record acquisition of the alive monitoring log in an alive monitoring table,
an unacquired alive monitoring log recording unit configured to identify an unacquired alive monitoring log which is not acquired by the log acquisition unit, and record, in the alive monitoring table, an unacquired period during which the unacquired alive monitoring log is not acquired, and
an invalidation unit configured to invalidate a record of the unacquired alive monitoring log in the alive monitoring table when the unacquired period of the unacquired alive monitoring log is equal to or longer than a predetermined period.
18 . A log management method executed by a log management device including at least one of (i) a circuit and (ii) a processor with a memory storing computer program code executable by the processor, comprising:
acquiring an alive monitoring log indicating that a security sensor of an electronic control unit mounted on a vehicle is operating;
recording acquisition of the alive monitoring log in an alive monitoring table;
identifying an unacquired alive monitoring log which is not acquired, and recording, in the alive monitoring table, an unacquired period during which the unacquired alive monitoring log is not acquired; and
invalidating a record of the unacquired alive monitoring log in the alive monitoring table when the unacquired period of the unacquired alive monitoring log is equal to or longer than a predetermined period.
19 . A non-transitory computer-readable storage medium storing a log management program executable by a log management device including at least one of (i) a circuit and (ii) a processor with a memory storing computer program code executable by the processor, the log management program comprising:
acquiring an alive monitoring log indicating that a security sensor of an electronic control unit mounted on a vehicle is operating;
recording acquisition of the alive monitoring log in an alive monitoring table;
identifying an unacquired alive monitoring log which is not acquired, and recording, in the alive monitoring table, an unacquired period during which the unacquired alive monitoring log is not acquired; and
invalidating a record of the unacquired alive monitoring log in the alive monitoring table when the unacquired period of the unacquired alive monitoring log is equal to or longer than a predetermined period.