摘要 |
PROBLEM TO BE SOLVED: To prevent an unauthorized software from being used with a device having stored information such as a color sensor by comparing the result of the operation of a hash function to a starting string with a hash code and making a communication interface usable when they are the same. SOLUTION: The starting string is received by a sensor (block 102). The firmware hashes the start string and compares the output of the function with the hash code (block 104). If the output of the function and the hash code are not the same, the compared function is started again or finished (block 106). At this time, as the serial port of a sensor is not made usable, communication between the sensor and a personal computer is prevented. If the hash code and the result of the operation of the hash function to the starting string are the same, the serial port is made usable (block 108). |