Patent ID: 8172143
Filing Date: 2012-05-08
Classification: G06K

Abstract:
1. A code reading device comprising: first and second processors that access a shared memory through a common data bus; an optical reading element that optically reads a symbol code to generate a read image; a transmitting and receiving circuit that receives a command to start a reading operation from an external device; and a DMA controller that transfers the read image from the optical reading element to the shared memory through the data bus, wherein the first processor includes a decoding device that decodes the read image in the shared memory, based on a command of the second processor, and writes a decoded result in the shared memory, the second processor selectively executes any one of an imaging control task that controls the optical reading operation by the optical reading element based on the command to start the reading operation, a decode control task that commands the first processor to decode the read image based on transfer completion of the read image by the DMA controller, and a decoded result transmission task that controls transmission of the decoded result from the transmitting and receiving circuit to the external device, and the imaging control task is given priority over the decode control task, and the decode control task is given priority over the decoded result transmission task, wherein the shared memory holds a reference task number of the read image provided in association with the read image, and the second processor commands the DMA controller to transfer the read image by overwriting to the shared memory based on the reference task number, increments the reference task number when any one of the imaging control task and the decode control task is executed, and decrements the reference task number when any one of the image data transmission task and the image saving task is executed.