Bar code reading device, bar code reading system, bar code reading method, and bar code reading program
The barcode reading device and system manage one-dimensional and two-dimensional barcode reading through enabling/disabling settings and a transition mechanism, ensuring accurate and restricted reading of two-dimensional barcodes when specific one-dimensional barcodes are detected, addressing the issue of unintended barcode reading.
Patent Information
- Application Number
- JP2024114469
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-02-01
AI Technical Summary
Existing barcode reading devices struggle with unintended reading of two-dimensional barcodes when both one-dimensional and two-dimensional barcodes are present, as they are not specifically designed to restrict or manage the reading of two-dimensional barcodes effectively.
A barcode reading device and system that includes settings to enable or disable reading of one-dimensional and two-dimensional barcodes, with a transition mechanism to temporarily allow reading of two-dimensional barcodes when a specific one-dimensional barcode is detected, ensuring accurate reading of intended barcodes.
The solution effectively restricts unintended reading of two-dimensional barcodes, allowing precise reading of necessary information without mistaking two-dimensional barcodes for one-dimensional barcodes, even during continuous scanning.
Smart Images

Figure 2024133277000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a barcode reading device, a barcode reading system, a barcode reading method, and a barcode reading program. [Background technology]
[0002] Due to the increase in the amount of information accompanying recent technological innovation, two-dimensional barcodes such as QR Code (registered trademark) have become widespread. Products often have both a one-dimensional barcode indicating the product price and a two-dimensional barcode indicating detailed information about the product, while terminal devices often display two-dimensional barcodes such as discount coupons.
[0003] A barcode reader may need to read both one-dimensional and two-dimensional barcodes, so it is set up to read both types of barcodes.
[0004] Incidentally, Patent Document 1 discloses a product sales data device that uses a scanner unit to simultaneously read multiple barcodes and register the prices of discounted products. If one of the multiple barcodes is a single item code barcode and the rest are disposable barcodes, product sales data is obtained from the unit price data corresponding to the single item code and sales registration processing is performed. On the other hand, if one is a single item code barcode and the rest are selling price change information barcodes, the unit price data corresponding to the single item code is changed based on the selling price change information, and then sales registration processing is performed. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Japanese Patent Application Publication No. 06-223271 Summary of the Invention [Problem to be solved by the invention]
[0006] When a barcode reader reads a one-dimensional barcode attached to a product, the device is set to read both one-dimensional and two-dimensional barcodes, which can result in the device accidentally reading a two-dimensional barcode placed close to the one-dimensional barcode. Incidentally, the product sales data device disclosed in the above-mentioned Patent Document 1 does not disclose anything about two-dimensional barcodes.
[0007] In view of the above-mentioned problems, an object of the present disclosure is to provide a barcode reading device, a barcode reading system, a barcode reading method, and a barcode reading program that can restrict unintended reading of barcodes. [Means for solving the problem]
[0008] A barcode reading device according to one embodiment of the present disclosure, when reading a specific one-dimensional barcode from among a specific one-dimensional barcode and a two-dimensional barcode displayed on a terminal device, transitions from a state in which reading of the two-dimensional barcode is restricted to a state in which reading of the two-dimensional barcode is possible.
[0009] A barcode reading system according to one embodiment of the present disclosure is a barcode reading system comprising a terminal device and a barcode reading device, wherein the terminal device displays a specific one-dimensional barcode and a two-dimensional barcode, and when the barcode reading device reads the specific one-dimensional barcode, the barcode reading device transitions from a state in which reading of the two-dimensional barcode is restricted to a state in which reading of the two-dimensional barcode is possible.
[0010] In a barcode reading method according to one embodiment of the present disclosure, a computer executes a process in which, when a specific one-dimensional barcode is read from a specific one-dimensional barcode and a two-dimensional barcode displayed on a terminal device, a transition is made from a state in which reading of the two-dimensional barcode is restricted to a state in which reading of the two-dimensional barcode is possible.
[0011] A barcode reading program according to one embodiment of the present disclosure causes a computer to execute a process in which, when a specific one-dimensional barcode is read from a specific one-dimensional barcode and a two-dimensional barcode displayed on a terminal device, the computer transitions from a state in which reading of the two-dimensional barcode is restricted to a state in which reading of the two-dimensional barcode is possible. Effect of the Invention
[0012] The present disclosure makes it possible to provide a barcode reading device, a barcode reading system, a barcode reading method, and a barcode reading program that can restrict unintended reading of barcodes. [Brief description of the drawings]
[0013] [Figure 1] 1 is a schematic diagram showing a state where the barcode reading device according to the first embodiment reads a specific one-dimensional barcode and a two-dimensional barcode. [Diagram 2] 4 is a flowchart showing the flow of a barcode reading method according to the first embodiment. [Diagram 3] FIG. 11 is a block diagram showing a configuration of a barcode reading system according to a second embodiment. [Figure 4] 11 is a schematic diagram showing a barcode reader according to a second embodiment reading a barcode. FIG. [Diagram 5] 11 is a schematic diagram showing a barcode reader according to a second embodiment reading a barcode. FIG. [Figure 6] 11 is a schematic diagram showing a barcode reader according to a second embodiment reading a barcode. FIG. [Figure 7] 11 is a schematic diagram showing a barcode reader according to a second embodiment reading a barcode. FIG. [Figure 8] 10 is a flowchart showing the flow of a barcode reading method according to a second embodiment. [Figure 9] 10 is a flowchart showing the flow of a barcode reading method according to a second embodiment. [Figure 10]10 is a flowchart showing the flow of a barcode reading method according to a second embodiment. [Figure 11] 10 is a flowchart showing the flow of a barcode reading method according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] The present disclosure will be described below through embodiments, but the disclosure according to the claims is not limited to the following embodiments. In addition, all of the configurations described in the embodiments are not necessarily essential as means for solving the problems. In each drawing, the same elements are given the same reference numerals, and duplicated explanations are omitted as necessary.
[0015] <Embodiment 1> <Barcode reader> Hereinafter, a first embodiment of the present disclosure will be described with reference to the drawings. Fig. 1 is a schematic diagram of a barcode reader according to the first embodiment reading a specific one-dimensional barcode and a two-dimensional barcode. The barcode reader 10 includes a one-dimensional barcode readability setting, a two-dimensional barcode readability setting, and a transition setting. The specific one-dimensional barcode 11 and the two-dimensional barcode 12 are displayed on a terminal device 13.
[0016] The one-dimensional barcode reading enable / disable setting is such that, if enabled, the barcode reader 10 can read one-dimensional barcodes, and, if disabled, the barcode reader 10 cannot read one-dimensional barcodes.
[0017] Similarly, the setting for whether or not the two-dimensional barcode can be read is such that, if yes, the barcode reader 10 can read the two-dimensional barcode 12, and if no, the barcode reader 10 cannot read the two-dimensional barcode 12.
[0018] The transition setting is a setting in which, when the barcode reader 10 reads a specific one-dimensional barcode 11, a transition is made from a state in which reading of the two-dimensional barcode 12 is restricted to a state in which reading of the two-dimensional barcode 12 is possible.
[0019] The specific one-dimensional barcode 11 is a one-dimensional barcode and can be read by using a barcode reader 10. The specific one-dimensional barcode is composed of a barcode such as EAN (European Article Number) / JAN (Japanese Article Number)-13, which will be described later.
[0020] The barcode reading device 10 is capable of reading a specific one-dimensional barcode 11 and a two-dimensional barcode 12 displayed on the terminal device 13 by enabling the one-dimensional barcode reading / non-reading setting and the two-dimensional barcode reading / non-reading setting.
[0021] Here, it is assumed that the barcode reader 10 has the one-dimensional barcode readability setting set to "readable" and the two-dimensional barcode readability setting set to "not readable." It is also assumed that the barcode reader 10 is in a transition setting. In other words, the barcode reader 10 is capable of reading a specific one-dimensional barcode 11 displayed on the terminal device 13, but is restricted from reading a two-dimensional barcode 12.
[0022] In this case, the barcode reader 10 reads the specific one-dimensional barcode 11 out of the specific one-dimensional barcode 11 and the two-dimensional barcode 12 displayed on the terminal device 13. Next, since a transition setting is configured in the barcode reader 10, when the specific one-dimensional barcode 11 is read, the barcode reader 10 transitions from a state in which reading of the two-dimensional barcode 12 is restricted to a state in which reading of the two-dimensional barcode is possible. This allows the barcode reader 10 to temporarily read the two-dimensional barcode 12 displayed on the terminal device 13.
[0023] <How to read a barcode> Next, a barcode reading method according to the first embodiment will be described. Fig. 2 is a flowchart showing the flow of the barcode reading method according to the first embodiment. In the following, the barcode reading device 10 is set to enable reading of one-dimensional barcodes and to disable reading of two-dimensional barcodes. In addition, the barcode reading device 10 is set to transition.
[0024] First, the barcode reader 10 judges whether or not a specific one-dimensional barcode has been read (step ST1). If the specific one-dimensional barcode has not been read (step ST1 NO), the barcode reader 10 does not transition from a state in which reading of the two-dimensional barcode 12 is restricted to a state in which reading of the two-dimensional barcode is possible.
[0025] On the other hand, if the specific one-dimensional barcode is read (YES in step ST1), the barcode reader 10 transitions from a state in which reading of the two-dimensional barcode 12 is restricted to a state in which reading of the two-dimensional barcode is possible.
[0026] In this way, the barcode reader 10 according to the first embodiment is set to restrict the reading of the two-dimensional barcode 12. Therefore, when reading the one-dimensional barcode of a product having both one-dimensional and two-dimensional barcodes, there is no risk of reading the two-dimensional barcode attached to the product by mistake. On the other hand, when it is desired to read the two-dimensional barcode 12 displayed on the terminal device, the state in which reading of the two-dimensional barcode 12 is restricted is transitioned to a state in which reading of the two-dimensional barcode is possible by reading the specific one-dimensional barcode 11. This allows the barcode reader 10 according to the first embodiment to temporarily read the two-dimensional barcode 12 displayed on the terminal device 13. Therefore, it is possible to restrict the reading of unintended barcodes.
[0027] <Embodiment 2> <Barcode reading system> Hereinafter, a second embodiment of the present disclosure will be described with reference to the drawings. Fig. 3 is a block diagram showing a configuration of a barcode reading system according to the second embodiment. A barcode reading system 20 according to the second embodiment includes a barcode reading device 21 and a terminal device 22.
[0028] The terminal device 22 displays the specific one-dimensional barcode and the two-dimensional barcode. The terminal device 22 displays the specific one-dimensional barcode and the two-dimensional barcode simultaneously. However, this is not limited to this, and the terminal device 22 may first display the specific one-dimensional barcode and then display the two-dimensional barcode.
[0029] <Barcode reading settings> The barcode reader 21 has a one-dimensional barcode readability setting, a two-dimensional barcode readability setting, and a transition setting. Each setting will be described in detail with reference to Figs. 4 to 6. Figs. 4 to 6 are schematic diagrams of a barcode reader according to the second embodiment reading a barcode. In Fig. 4, it is assumed that information on the one-dimensional barcode 31 attached to the product G1 is necessary, but information on the two-dimensional barcode 32 attached to the product G1 is not necessary. In Fig. 5, it is assumed that information on the one-dimensional barcode 31 and the two-dimensional barcode 32 attached to the product G1 is necessary. In Fig. 6, it is assumed that information on the specific one-dimensional barcode 221 displayed on the terminal device 22 is not necessary, but information on the two-dimensional barcode 222 displayed on the terminal device 22 is necessary.
[0030] As shown in Figs. 4 to 6, the barcode reader 21 is connected to the host device H1 by wire or wirelessly. The barcode reader 21 decodes the one-dimensional barcode and two-dimensional barcode that it reads to generate barcode data. The barcode reader 21 transmits the generated barcode data to the host device H1. On the other hand, if the one-dimensional barcode reading enable / disable setting and the two-dimensional barcode reading enable / disable setting are disabled, the barcode reader 21 does not read the barcodes.
[0031] 4 will be described. In FIG. 4, the barcode reader 21 has the one-dimensional barcode readability setting set to "Yes" and the two-dimensional barcode readability setting set to "No". That is, when reading the one-dimensional barcode 31, there is a possibility that the nearby two-dimensional barcode 32 may be read unintentionally, so the two-dimensional barcode readability setting is set to "No". Also, the barcode reader 21 has no transition setting. In this case, the barcode reader 21 reads the one-dimensional barcode 31 of the one-dimensional barcode 31 and the two-dimensional barcode 32 attached to the product G1. The barcode reader 21 decodes the one-dimensional barcode 31 to generate one-dimensional barcode data. The barcode reader 21 transmits the generated one-dimensional barcode data to the host device H1.
[0032] Next, Fig. 5 will be described. In Fig. 5, the barcode reader 21 has both the one-dimensional barcode readability setting and the two-dimensional barcode readability setting set to "Yes". In normal operation, in order to avoid reading an unintended nearby two-dimensional barcode 32, the two-dimensional barcode readability setting needs to be set to "No" as shown in Fig. 4. However, in Fig. 5, it is necessary to intentionally read both the one-dimensional barcode 31 and the two-dimensional barcode 32, so the one-dimensional barcode readability setting and the two-dimensional barcode readability setting are set to "Yes". Further, no transition setting is made for the barcode reader 21. In this case, the barcode reader 21 reads both the one-dimensional barcode 31 and the two-dimensional barcode 32 attached to the product G1. The barcode reader 21 decodes both the one-dimensional barcode 31 and the two-dimensional barcode 32, respectively, to generate one-dimensional barcode data and two-dimensional barcode data. The barcode reader 21 transmits the generated one-dimensional barcode data and two-dimensional barcode data to the host device H1.
[0033] Next, Fig. 6 will be described. In Fig. 6, the barcode reader 21 has the one-dimensional barcode readability setting set to "readable" and the two-dimensional barcode readability setting set to "not readable." Also, the barcode reader 21 is set to transition. In this case, the barcode reader 21 reads the specific one-dimensional barcode 221 out of the specific one-dimensional barcode 221 and the two-dimensional barcode 222 attached to the terminal device 22. The barcode reader 21 decodes the specific one-dimensional barcode 221 to generate specific one-dimensional barcode data.
[0034] 6 is set to transition, when the specific one-dimensional barcode 221 is read, the barcode reader 21 transitions from a state in which reading of the two-dimensional barcode 222 is restricted to a state in which reading of the two-dimensional barcode 222 is possible. This allows the barcode reader 21 to temporarily read the two-dimensional barcode 222 displayed on the terminal device 22. The barcode reader 21 reads the two-dimensional barcode 222 displayed on the terminal device 22. The barcode reader 21 decodes the two-dimensional barcode 222 to generate two-dimensional barcode data.
[0035] In this case, the barcode reader 21 deletes the specific one-dimensional barcode data from among the generated specific one-dimensional barcode data and two-dimensional barcode data. That is, the barcode reader 21 transmits the two-dimensional barcode data to the host device H1.
[0036] <Continuous barcode reading> Next, a case where the barcode reader 21 reads barcodes continuously will be described with reference to Fig. 7. Fig. 7 is a schematic diagram of the barcode reader according to the second embodiment reading a barcode. In Fig. 7, the barcode reader 21 has the one-dimensional barcode readability setting set to "readable" and the two-dimensional barcode readability setting set to "not readable." In addition, the barcode reader 21 is set to a transition setting.
[0037] In FIG. 7, first, the one-dimensional barcode 31 attached to the product G1 is read, then the two-dimensional barcode 222 displayed on the terminal device 22 is read, and then the one-dimensional barcode 31 attached to the product G1 is read again, thereby successively reading barcodes.
[0038] The case of reading the one-dimensional barcode 31 attached to the product G1 shown in FIG. 7 corresponds to FIG. 4. However, the barcode reader 21 has a transition setting in FIG. 7, but does not have a transition setting in FIG. 4. The case of reading the two-dimensional barcode 222 displayed on the terminal device 22 shown in FIG. 7 corresponds to FIG. 6. That is, in FIG. 7, after performing the process corresponding to FIG. 4, the process corresponding to FIG. 6 is performed, and then the process corresponding to FIG. 4 is performed again. The process corresponding to FIG. 4 and FIG. 6 in FIG. 7 will not be described. Here, the case of reading the two-dimensional barcode 222 displayed on the terminal device 22 and reading the one-dimensional barcode 31 attached to the product G1 again, that is, the process corresponding to FIG. 6 is performed, and then the process corresponding to FIG. 4 is performed again, will be described.
[0039] Since the transition setting is performed, the barcode reader 21 is temporarily able to read the two-dimensional barcode 222 displayed on the terminal device 22 during the process corresponding to Fig. 6. More specifically, the barcode reader 21 transitions from a state in which reading of two-dimensional barcodes is restricted to a state in which reading of two-dimensional barcodes is possible only for the time period determined by the specific one-dimensional barcode 221. After the time period determined by the specific one-dimensional barcode 221 has elapsed, the barcode reader 21 returns from a state in which reading of two-dimensional barcodes is possible to a state in which reading of two-dimensional barcodes is restricted.
[0040] In other words, when performing processing corresponding to FIG. 6 and then performing processing corresponding to FIG. 4 again, the barcode reading device 21 can read only the one-dimensional barcode 31 of the one-dimensional barcode 31 and the two-dimensional barcode 32 attached to the product G1.
[0041] The information of the one-dimensional barcode 31 attached to the product G1 is necessary, but the information of the two-dimensional barcode 32 attached to the product G1 is not. Also, the information of the specific one-dimensional barcode 221 displayed on the terminal device 22 is not necessary, but the information of the two-dimensional barcode 222 displayed on the terminal device 22 is necessary. In this way, even if different barcodes to be read are read consecutively, the barcode reader 21 can accurately read the necessary information. More specifically, as shown in FIG. 7, even when reading consecutive barcodes, there is no risk of erroneously reading the two-dimensional barcode 32 attached to the product G1.
[0042] In this way, even when consecutive barcode reading is performed, the barcode reader 21 does not have to worry about reading the two-dimensional barcode attached to the product by mistake, because of the transition setting. Also, the barcode reader 21 does not require the trouble of changing the setting according to the barcode to be read.
[0043] <Specific one-dimensional barcode> Here, the specific one-dimensional barcode will be explained with reference to Table 1. Table 1 shows an example of a specific one-dimensional barcode displayed on a terminal device. 1111111992029 shown in Table 1 is an example for an EAN / JAN-13 code. As shown in Table 1, the specific one-dimensional barcode is composed of left character data that indicates that it is a specific one-dimensional barcode, and right character data that is a setting parameter.
[0044] [Table 1]
[0045] First, the left character data from the first to the seventh digit will be described. For example, the left character data is a 13-digit number in which the first to seventh digits are the same value other than 0. As another example, the left character data may be a code in which the first seven digits of the 13-digit number are not generally distributed in the retail market.
[0046] Next, the right character data from the 8th to 13th digits from the beginning will be explained. The 8th and 9th digits from the beginning are fixed values and have the same numeric value. The fixed value is any numeric value from 0 to 9.
[0047] The first tenth digit is a number indicating the specific code. The number indicating the specific code is any number between 0 and 9. The specific code will be described with reference to Table 2. Table 2 shows an example of the specific code. The specific code is a number indicating a predetermined type of two-dimensional barcode. When the barcode reader reads the specific code, the barcode reader transitions from a state in which reading is restricted to a state in which reading is possible for the type of two-dimensional barcode determined by the specific code.
[0048] For example, as shown in Table 2, when the specific code is 2, the predetermined type of two-dimensional barcode is QR Code (registered trademark). When the barcode reader reads the specific one-dimensional barcode shown in Table 1, the state in which reading of QR Code (registered trademark) is restricted is changed to a state in which reading of QR Code is possible.
[0049] [Table 2]
[0050] The 11th and 12th digits from the beginning are numbers indicating the transition time. The number indicating the transition time is any number between 0 and 9. For example, in the specific one-dimensional barcode shown in Table 1, the 11th digit from the beginning is 0 and the 12th digit from the beginning is 2. Therefore, when the barcode reader reads the specific one-dimensional barcode shown in Table 1, it transitions from a state in which reading of two-dimensional barcodes is restricted to a state in which reading of two-dimensional barcodes is possible for 200 milliseconds. After 200 milliseconds have elapsed, the barcode reader returns from a state in which reading of two-dimensional barcodes is possible to a state in which reading of two-dimensional barcodes is restricted.
[0051] The transition time may be the time obtained by subtracting the transition start time from the transition end time, with the 11th digit from the beginning as the transition start time and the 12th digit from the beginning as the transition end time. For example, a case will be described in which the 11th digit from the beginning is 3 and the 12th digit from the beginning is 9. In this case, 300 milliseconds after the barcode reader reads the specific one-dimensional barcode, the state transitions from a state in which reading of two-dimensional barcodes is restricted to a state in which reading of two-dimensional barcodes is possible. Also, 900 milliseconds after the barcode reader reads the specific one-dimensional barcode, the state returns from a state in which reading of two-dimensional barcodes is possible to a state in which reading of two-dimensional barcodes is restricted. In other words, the transition time is 600 milliseconds obtained by subtracting the transition start time from the transition end time.
[0052] In this way, when a barcode reading device reads a specific one-dimensional barcode, the state transitions from one in which reading of two-dimensional barcodes is restricted to one in which reading of two-dimensional barcodes is possible for the time period determined by the specific one-dimensional barcode.
[0053] The 13th digit from the beginning is a number indicating a check digit that is calculated to check for reading errors. The check digit is calculated using, for example, the modulus 10 / 3 weight method or the parity check method.
[0054] In other words, when a barcode reader reads 1111111992029 shown in Table 1, it determines that it is a specific one-dimensional barcode based on the left character data from the first 7th digit. Also, the right character data from the first 10th digit causes the barcode reader to transition from a state in which QR code reading is restricted to a state in which QR code reading is possible. In this case, the right character data from the first 11th and 12th digits causes the barcode reader to transition to a state in which QR code reading is possible for 200 milliseconds. This allows the barcode reader to read the QR code displayed on the terminal device for 200 milliseconds.
[0055] Here, the specific one-dimensional barcode has been described using the EAN / JAN-13 code as an example, as shown in Table 1. However, the specific one-dimensional barcode is not limited to the EAN / JAN-13 code, and may be an ITF code, NW-7 (CODABAR), or CODE128, which are one-dimensional barcodes that can be read by a barcode reader. In this case, the specific code, which is a numerical value that indicates the type of a predetermined two-dimensional barcode, must be included in one of the one-dimensional barcodes.
[0056] <How to read a barcode> Next, a barcode reading method according to the second embodiment will be described with reference to Figs. 8 to 11. Figs. 8 to 11 are flowcharts showing the flow of the barcode reading method according to the second embodiment. Fig. 8 is a flowchart showing the flow of the barcode check. Fig. 9 shows a case where the barcode to be read is a one-dimensional barcode other than an EAN / JAN-13 code as a result of the barcode check. Fig. 10 shows a case where the barcode to be read is an EAN / JAN-13 code as a result of the barcode check. Fig. 11 shows a case where the barcode to be read is a two-dimensional barcode as a result of the barcode check.
[0057] In Fig. 8 to Fig. 11, it is assumed that the barcode reader is not aware of which of the one-dimensional barcode readability setting, the two-dimensional barcode readability setting, and the transition setting has been set. The transmission buffer in Fig. 9 to Fig. 11 is provided in the barcode reader. The barcode reader stores the barcode data obtained by decoding in the transmission buffer. The transmission buffer transmits the stored barcode data to the host device.
[0058] First, as shown in Fig. 8, the barcode reader scans a barcode (step ST001). Next, the barcode reader determines what type of barcode the scanned barcode is (step ST002). More specifically, the barcode reader includes, for example, an image processing unit and a storage unit, and performs a barcode check based on the shape of the read barcode.
[0059] That is, the storage unit stores the shapes of one-dimensional barcodes other than the EAN / JAN-13 code, the EAN / JAN-13 code, and two-dimensional barcodes. The image processing unit determines which barcode shape in the storage unit is closest to the shape of the read barcode, and recognizes the type of barcode.
[0060] Next, a case where the barcode to be read is a one-dimensional barcode other than the EAN / JAN-13 code will be described with reference to FIG.
[0061] As shown in Fig. 9, the barcode reader judges whether the reading of one-dimensional barcodes can be set (step ST301). If the reading of one-dimensional barcodes can be set (step ST301 YES), the barcode reader decodes the one-dimensional barcode other than the EAN / JAN-13 code that has been read (step ST302). The barcode reader stores the one-dimensional barcode data other than the EAN / JAN-13 code obtained by the decoding process in a transmission buffer (step ST303). Furthermore, the transmission buffer transmits the stored one-dimensional barcode data other than the EAN / JAN-13 code to the host device (step ST304).
[0062] On the other hand, if the reading permission setting for the one-dimensional barcode is not set (NO in step ST301), the barcode reader does not perform the reading process.
[0063] Next, a case where the bar code to be read is an EAN / JAN-13 code will be described with reference to FIG.
[0064] 10, the barcode reader 21 judges whether the one-dimensional barcode can be read or not (step ST311). If the one-dimensional barcode can be read or not (step ST311 YES), the barcode reader 21 decodes the read EAN / JAN-13 code to generate EAN / JAN-13 code data (step ST312).
[0065] On the other hand, if the reading permission setting for the one-dimensional barcode is not set (NO in step ST311), the barcode reader does not perform the reading process.
[0066] The barcode reader judges whether the EAN / JAN-13 code data obtained by decoding in step ST312 is specific one-dimensional barcode data or not (step ST313). More specifically, the barcode reader judges based on the left character data from the first to the seventh digit of the EAN / JAN-13 code data obtained by decoding. For example, the barcode reader judges whether the first to the seventh digit of the EAN / JAN-13 code data are the same numeric value other than 0.
[0067] If the EAN / JAN-13 code data obtained by the decoding process in step ST312 is specific one-dimensional barcode data (YES in step ST313), the barcode reader determines whether or not transition setting is possible (step ST314).
[0068] On the other hand, if the EAN / JAN-13 code data obtained by the decoding process in step ST312 is not the specific one-dimensional barcode data (NO in step ST313), the following process is performed. The barcode reader stores the EAN / JAN-13 code data obtained by the decoding process in a transmission buffer (step ST315). Furthermore, the transmission buffer transmits the stored EAN / JAN-13 code data to the host device (step ST316).
[0069] Next, if the barcode reader is set to transition (YES in step ST314), it becomes possible to temporarily read a two-dimensional barcode as shown in Fig. 11. The details will be described later.
[0070] If the barcode reader is not set to transition (NO in step ST314), the processes in steps ST315 and ST316 are performed.
[0071] Next, a case where the barcode to be read is a two-dimensional barcode will be described with reference to FIG.
[0072] As shown in Fig. 11, the barcode reader judges whether or not the reading of the two-dimensional barcode can be set (step ST321). If the reading of the two-dimensional barcode can be set (step ST321 YES), the barcode reader decodes the read two-dimensional barcode (step ST322). The barcode reader stores the two-dimensional barcode data obtained by the decoding in a transmission buffer (step ST323). Furthermore, the transmission buffer transmits the stored two-dimensional barcode data to the host device (step ST324).
[0073] On the other hand, if the reading permission setting of the 2D barcode is not set (NO in step ST321), the barcode reader judges whether or not a specific code is included in the 1D barcode data obtained by the decoding process in step ST312 shown in Fig. 10. For example, the barcode reader judges whether or not the 10th digit from the top of the 1D barcode data includes a specific code shown in Table 2.
[0074] If the one-dimensional barcode data obtained by the decoding process in step ST312 shown in FIG. 10 contains a specific code (YES in step ST325), the barcode reader is enabled to temporarily read the two-dimensional barcode defined by the specific code.
[0075] More specifically, the transition time is determined based on the 11th and 12th digits from the beginning of the one-dimensional barcode data. Based on this transition time, the barcode reader starts a transition from a state in which reading of the two-dimensional barcode is restricted to a state in which reading of the two-dimensional barcode is possible (step ST326). For example, the barcode reader starts a timer based on the value of the 11th digit from the beginning of the one-dimensional barcode data.
[0076] Next, the barcode reader 21 decodes the read two-dimensional barcode to generate two-dimensional barcode data (step ST327). After the transition time has elapsed, the barcode reader returns from a state in which reading of the two-dimensional barcode is possible to a state in which reading of the two-dimensional barcode is restricted, and ends the transition (step ST328). For example, the barcode reader ends the timer based on the value of the 12th digit from the beginning of the one-dimensional barcode data.
[0077] After the transition is completed, the barcode reader 21 deletes the specific one-dimensional barcode data from among the generated specific one-dimensional barcode data and two-dimensional barcode data (step ST329). Then, the barcode reader 21 performs the processes in steps ST323 and ST324.
[0078] On the other hand, if the one-dimensional barcode data obtained by the decoding process in step ST312 shown in FIG. 10 does not include a specific code (NO in step ST325), the barcode reader does not perform the reading process of the two-dimensional barcode.
[0079] In this way, the barcode reading system 20 according to the second embodiment is capable of reading a type of two-dimensional barcode determined by a specific one-dimensional barcode for a period of time determined by the specific one-dimensional barcode. With this configuration, when the one-dimensional barcode of a product and the two-dimensional barcode displayed on the terminal device are successively read, there is no risk of accidentally reading the two-dimensional barcode attached to the product. Therefore, it is possible to restrict the reading of unintended barcodes.
[0080] In addition, a part or all of the processes in the barcode reading device according to the first and second embodiments described above can be realized as a computer program. Such a program can be stored using various types of non-transitory computer-readable media and supplied to a computer. The non-transitory computer-readable media includes various types of tangible recording media. Examples of the non-transitory computer-readable media include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-R / Ws, and semiconductor memories (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash ROMs, and RAMs (Random Access Memory)). The program may also be supplied to a computer by various types of temporary computer-readable media. Examples of the temporary computer-readable media include electrical signals, optical signals, and electromagnetic waves. The temporary computer-readable media can supply the program to a computer via wired communication paths such as electric wires and optical fibers, or wireless communication paths.
[0081] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes. (Appendix 1) When the specific one-dimensional barcode is read from among the specific one-dimensional barcode and the two-dimensional barcode displayed on the terminal device, a transition is made from a state in which reading of the two-dimensional barcode is restricted to a state in which reading of the two-dimensional barcode is possible. Barcode reader. (Appendix 2) The transition is during a time period determined by the specific one-dimensional barcode. 2. A barcode reader as defined in claim 1. (Appendix 3) When the barcode reader reads the two-dimensional barcode, the data of the specific one-dimensional barcode is deleted. 3. A barcode reading device according to claim 1 or 2. (Appendix 4) The two-dimensional barcode is a two-dimensional barcode of a type determined by the specific one-dimensional barcode. 3. A barcode reading device according to claim 1 or 2. (Appendix 5) The specific one-dimensional barcode is a 13-digit barcode, and the first seven digits are the same number other than 0. 3. A barcode reading device according to claim 1 or 2. (Appendix 6) A barcode reading system comprising a terminal device and a barcode reading device, The terminal device displays the specific one-dimensional barcode and the two-dimensional barcode, when the barcode reader reads the specific one-dimensional barcode, the barcode reader transitions from a state in which reading of the two-dimensional barcode is restricted to a state in which reading of the two-dimensional barcode is possible. Barcode reading system. (Appendix 7) The transition is during a time period determined by the specific one-dimensional barcode. 7. A barcode reading system as described in appended claim 6. (Appendix 8) When the barcode reader reads the two-dimensional barcode, the data of the specific one-dimensional barcode is deleted. 8. A barcode reading system according to claim 6 or 7. (Appendix 9) The two-dimensional barcode is a two-dimensional barcode of a type determined by the specific one-dimensional barcode. 8. A barcode reading system according to claim 6 or 7. (Appendix 10) The specific one-dimensional barcode is a 13-digit barcode, and the first seven digits are the same number other than 0. 8. A barcode reading system according to claim 6 or 7. (Appendix 11) When the specific one-dimensional barcode is read from among the specific one-dimensional barcode and the two-dimensional barcode displayed on the terminal device, a transition is made from a state in which reading of the two-dimensional barcode is restricted to a state in which reading of the two-dimensional barcode is possible. The processing is carried out by a computer. Barcode reading method. (Appendix 12) The transition is during a time period determined by the specific one-dimensional barcode. 12. A barcode reading method as described in appendix 11. (Appendix 13) When the two-dimensional barcode is read, the data of the specific one-dimensional barcode is deleted. 13. A barcode reading method according to claim 11 or 12. (Appendix 14) The two-dimensional barcode is a two-dimensional barcode of a type determined by the specific one-dimensional barcode. 13. A barcode reading method according to claim 11 or 12. (Appendix 15) The specific one-dimensional barcode is a 13-digit barcode, and the first seven digits are the same number other than 0. 13. A barcode reading method according to claim 11 or 12. (Appendix 16) When the specific one-dimensional barcode is read from among the specific one-dimensional barcode and the two-dimensional barcode displayed on the terminal device, a transition is made from a state in which reading of the two-dimensional barcode is restricted to a state in which reading of the two-dimensional barcode is possible. Have a computer carry out the process, Barcode reading program. (Appendix 17) The transition is during a time period determined by the specific one-dimensional barcode. 17. A barcode reading program according to claim 16. (Appendix 18) When the two-dimensional barcode is read, the data of the specific one-dimensional barcode is deleted. A barcode reading program according to claim 16 or 17. (Appendix 19) The two-dimensional barcode is a two-dimensional barcode of a type determined by the specific one-dimensional barcode. A barcode reading program according to claim 16 or 17. (Appendix 20) The specific one-dimensional barcode is a 13-digit barcode, and the first seven digits are the same number other than 0. A barcode reading program according to claim 16 or 17. [Explanation of symbols]
[0082] 10, 21 Barcode reader 11, 221 Specific 1D barcode 12, 32, 222 2D barcode 13, 22 Terminal equipment 20 Barcode reading system 31 1D barcode H1 host device
Claims
1. When a specific one-dimensional barcode is read, which is displayed on a terminal device and has a predetermined transition time set for transitioning to a state in which a two-dimensional barcode can be read, the two-dimensional barcode can be read within the predetermined transition time. Barcode reader.
2. The specific one-dimensional barcode is composed of left character data indicating that it is the specific one-dimensional barcode, and right character data serving as a setting parameter.
2. The bar code reader of claim 1.
3. The transition is for a time period determined by the specific one-dimensional barcode.
3. The barcode reading device according to claim 1 or 2.
4. When the two-dimensional barcode is read, the data of the specific one-dimensional barcode is deleted.
3. The barcode reading device according to claim 1 or 2.
5. The two-dimensional barcode is a two-dimensional barcode of a type determined by the specific one-dimensional barcode.
3. The barcode reading device according to claim 1 or 2.
6. The specific one-dimensional barcode is a 13-digit barcode, and the first seven digits are the same number other than 0.
3. The barcode reading device according to claim 1 or 2.
7. A barcode reading system comprising a terminal device and a barcode reading device, the terminal device displays a specific one-dimensional barcode for which a predetermined transition time is set for transitioning to a state in which the two-dimensional barcode can be read; when the barcode reader reads the specific one-dimensional barcode displayed on the terminal device, the barcode reader is capable of reading the two-dimensional barcode within the predetermined transition time. Barcode reading system.
8. When a specific one-dimensional barcode is read, which is displayed on the terminal device and has a predetermined transition time set for transitioning to a state where a two-dimensional barcode can be read, the state transitions to a state where the two-dimensional barcode can be read within the predetermined transition time. The processing is carried out by a computer. Barcode reading method.
9. When a specific one-dimensional barcode is read, which is displayed on the terminal device and has a predetermined transition time set for transitioning to a state where a two-dimensional barcode can be read, the state transitions to a state where the two-dimensional barcode can be read within the predetermined transition time. Have a computer carry out the process, Barcode reading program.
Citation Information
Patent Citations
Bar code reader
JP1992354079A
Code reader
JP1997319815A
Optical information reader and information code output device
JP2003085474A
Commodity sales data processor
JP1994223271A
