card reader/writer

Abstract: A noncontact IC card, a card reader/writer, and a card system, which are capable of securely detecting a start flag, thereby reducing a communication error rate and achieving higher communication reliability. The noncontact IC card has a control unit, which includes a CPU, ROM, RAM, etc., and it further has a 1-bit flip-flop (F/F) connected between a receive circuit and the control unit. According to a program of the control unit, data are received one bit at a time, and a UART is set ready for receiving when a bit pattern of the start flag is detected. The card reader/writer is equipped with a control unit, which includes a CPU, ROM, RAM, etc.. The foregoing control unit inserts 1-byte dummy data " H" between a trigger signal and the start flag at the time of transmission. The card system has a card reader/writer and a noncontact IC card. The card reader/writer is provided with a control unit, a transmitting antenna, which includes a series resonance circuit, and a switching circuit, which is connected between a receiving antenna and a receive circuit. Further, the noncontact IC card is provided with a 1-bit flip-flop (F/F), which is connected between the receive circuit and the control unit.

Description: The present invention relates to a noncontact IC card, a card reader/writer, and a card system, which employ radio waves as communication media thereof. Description of the Related Art Fig. 11 shows a card apparatus (card system), which is disclosed in AIM JAPAN ┌Data carrier Technic and Application┘ 1990 Nikkan Kogyo Shinbun. This card system includes a conventional card reader/writer 1 and a noncontact IC card 2. Fig. 12 shows a receive circuit 17 of the conventional card reader/writer 1. In Fig. 11, the card reader/writer 1 includes an input/output circuit 11, which is connected to a host computer (HOST) to communicate with the host computer, a control unit 12, which controls the whole system and processes data, a UART (universal asynchronous receiver transmitter) 13, which converts serial data to parallel data or vice versa, a send circuit 14, which modulates the digital signals of serial data received from the UART 13 and converts them to electrical signals, a transmitting antenna 15, which includes a parallel resonance circuit and transmits the electrical signals as radio waves, a receiving antenna 16, which includes a parallel resonance circuit and converts received radio waves into electrical signals, a receive circuit 17, which demodulates the electrical signals and converts into digital signals, and a power circuit 18, which supplies a power source of, for example, 5 VDC, to the foregoing constituents and a power source of, for example, 24 VDC, to the transmitting antenna 15 and the receiving antenna 16. The control unit 12 includes a CPU, ROM, RAM, etc. Further in Fig. 11, the noncontact IC card 2 is equipped with a transmit-receive antenna 21, which converts received radio waves into electrical signals and vice versa, a receive circuit 22, which demodulates the electrical signals and converts them into digital signals, a UART (universal asynchronous receiver transmitter) 23, which converts serial data to parallel data or vice versa, a control unit 24, which controls the whole system and processes data, a send circuit 25, which modulates the digital signals of the serial data received from the UART 23 and converts them into electrical signals, and a power circuit 26, which includes a battery. The control unit 24 is equipped with a CPU, ROM, RAM, etc. In Fig. 12, the receive circuit 17 is provided with a receiving buffer 171 connected to the receiving antenna 16, an AGC (automatic gain control) 172, which automatically controls the gain of the receiving buffer 171, and a demodulator 173 connected between the receiving buffer 171 and the UART 13. The operation of the conventional card reader/writer 1 and the noncontact IC card 2 will now be described with reference to Figs. 13, 14, 15 and 16. Figs. 13 and 14 show the forms of the signals sent from the card reader/writer 1 to the noncontact IC card 2. Fig. 15 shows a flowchart, which gives a brief overview of the operation of the noncontact IC card 2. Fig. 16 shows a flowchart, which gives the details of the operation corresponding to steps 33 and 34 in Fig. 15. As a basic operation, the card reader/writer 1 sends a command to the noncontact IC card 2 and the noncontact IC card 2 executes the command and sends the result back to the card reader/writer 1. For instance, when the system is applied to a security system, the card reader/writer 1 is installed on a door of a room, while the noncontact IC card 2 is carried by an inhabitant of the room. The card reader/writer 1 continually sends a command, requesting for an ID to be returned, and when the noncontact IC card 2 receives the command, it returns the ID. The card reader/writer 1 checks the ID and unlocks the door if it accepts the ID. There are some cases where the host computer connected to the card reader/writer 1 checks the ID. As shown in (a) of Fig. 13, the signal sent from the card reader/writer 1 to the noncontact IC card 2 is configured so that a trigger signal is sent out first, then a start flag is sent out following a 2-bit interval, and the data shown in Fig. 14 follow. A frame, which is a unit of data, includes a 1-bit start bit, 8-bit data, a 1-bit parity bit, and a 2-bit stop bit as shown in Fig. 14. The start flag of Fig. 13 indicates the data, which have the same configuration as that of the single frame of Fig. 14, the 8-bit data in the single frame having a predetermined bit pattern. First, upon receipt of the trigger signal shown in (a) of Fig. 13, the noncontact IC card 2 is switched from a sleep state to an active state and enables the UART 23 to receive signals (refer to steps 30 through 32 of Fig. 15. Then, when the noncontact IC card receives the start flag shown in (a) of Fig. 13, it begins receiving a data block shown in Fig. 14 (refer steps 33 and 34), implements the processing in response to the command, sends the result back to the card reader/writer 1 or carries out other appropriate processing, then moves back into the sleep state (refer to a step 35). The UART 23 of the noncontact IC card 2 starts receiving the data when it detects the 1-bit start bit and receives the following 8 bits as data (refer to a step 40 of Fig. (16). The 2-bit stop bit indicates the break between frames; if this break cannot be detected, it is determined as a framing error and the data received this time is not taken in, and the system waits until it detects the next start bit (1 bit indicating the change from the high level to the low level as shown in Fig. (14), i.e., until synchronization is achieved before it goes back to the step 40 (refer to steps 41 and 42). If no framing error occurs, then the system accepts the next data (refer to a step 43). In other words, if the start bit is not properly detected, it is very likely that the next start bit cannot be properly detected until the framing error takes place. As shown in (a) of Fig. 13, after the trigger signal is received, the start flag, which is the data block having a particular bit pattern, is received. The noncontact IC card 2 enables the UART 23 to receive signals only after the end of the trigger signal; therefore, the start flag can be securely received if the trigger signal is properly received. If, however, the trigger signal is left out as indicated by the dotted line shown in (b) of Fig. 13, resulting in a failure to properly receive the trigger signal (e.g., if the distance between the card reader/writer 1 and the noncontact IC card 2 is just barely within the communication range), then the noncontact IC card 2 is actuated to make the UART 23 ready for receiving, causing a portion of A to be erroneously received as the start bit in the start flag. The UART 23 processed data on an 8-bit basis; therefore, the following start flag cannot be properly received, skipping the whole data block. The operation of the receive circuit 17 of the card reader/writer 1 will now be described. The intensity of a radio wave greatly varies depending on the distance between the card reader/writer 1 and the noncontact IC card 2. For this reason, the gain of the receive circuit 17 needs to be adjusted. This is why the receive circuit incorporates an AGC 172. The AGC 172, however, requires some time to restore its original gain once the gain decreases. The card reader/writer 1 has the transmitting antenna 15 and the receiving antenna 16, which share the same frequency; therefore, it receives the radio waves (extremely intensive), which the card reader/writer itself sends out, through its own receiving antenna 16. This causes the gain of the AGC 172 to decrease for a while after transmission. As a result, the communication distance between the card reader/writer 1 and the noncontact IC card 2 is shortened. This means that there was a problem with the conventional noncontact IC card 2 in that, if it fails to properly receive the trigger signal from the card reader/writer 1, then it cannot securely receive the start flag and skips the whole data block, resulting in an increased communication error rate with consequent damaged communication reliability. There was also a problem with the conventional card reader/writer 1 in that, since it uses the same frequency for transmitting and receiving, it receives its own transmitted radio waves through the receiving antenna 16. This intensive radio waves decrease the gain of the AGC 172 of the receive circuit 17, which in turn deteriorates the receiving sensitivity and shortens the communication distance. This led to a higher communication error rate with consequent deteriorated communication reliability. There was still another problem with the conventional card reader/writer 1 in that, since it uses the same frequency for transmitting and receiving, the transmitting antenna 15 and the receiving antenna 16 thereof interfere with each other. This destroys the waveforms of transmitted and received signals, leading to a higher communication error rate and poor communication reliability. Document EP-A-0 583 084 discloses a card reader/writer as defined in the preamble of claim 1. It is an object of the present invention to provide a noncontact IC card, which is capable of securely receiving a start flag even if it fails to successfuly receive a trigger signal. This object is solved by a card reader/writer as set out in the independent claim 1. Further advantageous developments are defined in the dependent claims. Fig. 1 is a block diagram showing the configuration of the noncontact IC card according to an example not forming part of the present invention; Fig. 2 shows a form of the signal received by the noncontact IC card of Fig. 1; Fig. 3 is a flowchart showing the operation of the noncontact IC card of Fig. 1; Fig. 4 is a block diagram showing the configuration of the noncontact IC card according to another example not forming part of the present invention; Fig. 5 shows the operation of a card reader/writer for illustrating the operation of the noncontact IC card of Fig. 4; Fig. 6 is a flowchart showing the operation of the noncontact IC card of Fig. 4; Fig. 7 is a block diagram showing the configuration of the card reader/writer according to still another example not forming part of the present invention; Fig. 8 shows a form of the signal transmitted by the card reader/writer of Fig. 7; Fig. 9 is a block diagram showing the configuration of the card reader/writer according to an embodiment of the present invention; Fig. 10 shows a form of the signal transmitted by the card reader/writer of Fig. 9; Fig. 11 is a block diagram showing a card apparatus, which includes a conventional card reader/writer and noncontact IC card; Fig. 12 shows the configuration of a receive circuit of the card reader/writer of Fig. 11; Fig. 13 shows a form of the signal transmitted from the card reader/writer to the noncontact IC card of Fig. 11; Fig. 14 shows a form of the signal transmitted from the card reader/writer to the noncontact IC card of Fig. 11; Fig. 15 is a flowchart showing the operation of the noncontact IC card of Fig. 11; and Fig. 16 is a flowchart showing the operation of the noncontact IC card of Fig. 11. The following describes an example not forming part of the present invention with reference to the attached drawings. Fig. 1 shows the configuration of a noncontact IC card 2A according to the example, a transmit-receive antenna 21 through a UART 23, a send circuit 25, and a power circuit 26 being the same as those for the conventional noncontact IC card 2. In Fig. 1, the noncontact IC card 2A includes a control unit 24A, which differs from the conventional control unit 24 in function. The control unit 24A has a CPU,ROM,RAM,etc.. It is further equipped with a 1-bit flip-flop (F/F) 27 connected between the receive circuit 22 and the control unit 24A. The operation of the noncontact IC card 2A will now be described in connection with Fig. 2 and Fig. 3. Fig. 2 shows the signal received by the noncontact IC card 2A. Fig. 3 shows the flowchart of the operation of the control unit 24A of the noncontact IC card 2A. As shown in Fig. 1, the noncontact IC card 2A has the F/F 27 so that it can monitor the data received from the receive circuit 22 through the control unit 24A before the data is sent to the UART 23. According to a program of the control unit 24A, the data are received a bit at a time, and when a bit pattern of a start flag is detected, the UART 23 is enabled to receive the data. This allows the start flag to be detected even if the trigger signal is missing. The control unit 24A receives the data from the F/F 27 a bit at a time and compares a received bit string with the bit pattern of the start flag for each bit (refer to steps 50 through 52 of Fig. 3). For instance, as shown in Fig. 2, if the start flag is a hexadecimal "5A" (hereinafter referred to as "5A H "), then the control unit 24A looks for a pattern of "0010110100" including the preceding and following start bits and parity bits. When the control unit detects the start flag, it enables the UART 23 to be ready for receiving, thereby to begin receiving data (refer to steps 53 and 54). In other words, since the UART 23 receives 8 bits at a time, the noncontact IC card 2A is provided with the F/F 27, which is capable of monitoring the state of receive data for each bit according to the program of the control unit 24A. The trigger signal is received through the same line as that for receive data; therefore, the UART 23 cannot distinguish data from the trigger. The control unit 24A can, however, eventually distinguish them since the control unit 24A monitors each bit by the F/F 27. If the bit pattern of the start flag is "5A H ", for example, then the control unit 24A starts receiving a bit at a time after it is actuated by the trigger signal, and it sets the UART 23 ready for receiving when it detects the pattern of "5A H ". Hence, the start flag can be securely detected, which reduces the communication error rate, leading to higher communication reliability. Another example not forming part of the present invention will be described with reference to the attached drawings. Fig. 4 shows the configuration of the noncontact IC card 2B according to this example, the transmit-receive antenna 21 through the UART 23, the send circuit 25, and the power circuit 26 being the same as those for the conventional noncontact IC card 2. Fig. 5 shows the sensitivity characteristics of the AGC 172 of the receive circuit 17 of the card reader/writer 1. Further, Fig. 6 shows the flowchart of the operation of a control unit 24B of the noncontact IC card 2B. In Fig. 4, the noncontact IC card 2B includes a control unit 24B, which is different from the conventional control unit 24 in function. The control unit 24B is provided with a CPU, ROM, RAM, etc.. The card reader/writer 1 has a transmitting antenna 15 and a receiving antenna 16, which share the same frequency; therefore, it receives radio waves, which it sends out through its own transmitting antenna 15, through its own receiving antenna 16. In the card reader/writer 1, the receive circuit 17 is provided with the AGC 172, which adjusts the receiving sensitivity, thereby extending the receiving distance. The AGC 172, however, takes time to recover the original sensitivity thereof once the sensitivity decreases; therefore, if the card reader/writer 1 receives the intensive radio waves, which the card reader/writer 1 itself transmits, then the sensitivity cannot be recovered before the noncontact IC card responds. Accordingly, as shown in Fig. 5, the noncontact IC card 2B is provided with a waiting time so that the noncontact IC card 2B responds after the receiving sensitivity of the AGC 172 of the card reader/writer (R/W) 1 has been recovered. This prevents the communication distance between the card reader/writer 1 and the noncontact IC card 2B from decreasing, thus achieving a lower communication error rate with resultant higher communication reliability. More specifically, as shown in Fig. 6, in a step 65, the control unit 24B of the noncontact IC card 2B allows a response waiting time, e.g., a few milliseconds, after receiving a data block from the card reader/writer 1, then it returns a response to the card reader/writer 1. Other processing (steps 60 through 64, and 66) is the same as that shown in Fig. 15. Still another example not forming part of the present invention will be described with reference to the attached drawings. Fig. 7 shows the configuration of a card reader/writer 1A according to this example, an input/output circuit 11, and the UART 13 through a power circuit 18 being the same as those of the conventional card reader/writer 1. Fig. 8 shows the signal transmitted from the card reader/writer 1A to the noncontact IC card 2. In Fig. 7, the card reader/writer 1A includes a control unit 12A, which differs from the conventional control unit 12 in function. The control unit 12A is equipped with a CPU, ROM, RAM, etc.. As shown in Fig. 8, the control unit 12A of the card reader/writer 1A inserts 1-byte dummy data "00 H " between the trigger signal and the start flag at the time of transmission. More specifically, the data are sent out so that the trigger signal is followed by data, an 8-bit data portion in a frame thereof being "00 H ", which is further followed by a start flag, the 8-bit data portion in a frame thereof being "5A H ", for example, then regular data follows. As shown in (b) of Fig. 13, even if the noncontact IC card 2 erroneously detects portion A of the trigger signal as the start bit, a framing error occurs since the dummy data "00 H " follows, thus enabling it to correctly receive the next start flag. This leads to a reduced communication error rate and higher communication reliability. An embodiment of the present invention will now be described with reference to the attached drawings. Fig. 9 shows the configuration of a card reader/writer 1B according to this embodiment of the present invention, the input/output circuit 11 and the UART 13 through the power circuit 18 being the same as those of the conventional card reader/writer 1. Fig. 10 shows the signal transmitted from the card reader/writer 1B to the noncontact IC card 2. In Fig. 9, the card reader/writer 1B includes a control unit 12B which differs from the conventional control unit 12 in function. The control unit 12B has a CPU, ROM, RAM, etc.. As shown in Fig. 10, the control unit 12B of the card reader/writer 1B allows an interval of at least one frame (12 bits) between the trigger signal and the start flag at the time of transmission. More specifically, the control unit 12B transmits data so that the trigger signal is followed by a waiting time, which is equivalent to one frame set by, for example, a timer, then a start flag with the 8-bit data portion in a frame thereof being "5A H " follows before regular data follows. In the noncontact IC card 2, at the time of receiving, as shown in (b) of Fig. 13, if there is a missing trigger signal, the missing trigger signal causes the trigger signal to end even if receiving is enabled immediately after the trigger is received. The noncontact IC card then detects the next portion A as the start bit and receives 1-byte data, but it is very unlikely to match the start flag; therefore, the 1-byte data will be skipped, allowing the next start flag to be normally received. This reduces the communication error rate, thus achieving higher communication reliability. Above, a noncontact IC card, a card reader/writer, and a card system have been described, which are capable of securely detecting a start flag, thereby reducing a communication error rate and achieving higher communication reliability. The noncontact IC card has a control unit, which includes a CPU, ROM, RAM, etc., and it further has a 1-bit flip-flop (F/F) connected between a receive circuit and the control unit. According to a program of the control unit, data are received one bit at a time, and a UART is set ready for receiving when a bit pattern of the start flag is detected. The card reader/writer is equipped with a control unit, which includes a CPU, ROM, RAM, etc.. The foregoing control unit inserts 1-byte dummy data "00 H " between a trigger signal and the start flag at the time of transmission. The card system has a card reader/writer and a noncontact IC card. The card reader/writer is provided with a control unit, a transmitting antenna, which includes a series resonance circuit, and a switching circuit, which is connected between a receiving antenna and a receive circuit. Further, the noncontact IC card is provided with a 1-bit flip-flop (F/F), which is connected between the receive circuit and the control unit.

Claims: A card reader/writer comprising: a UART (13) , which converts serial data into parallel data and vice versa; a send circuit (14) , which modulates a digital signal of serial data from said UART (13) and converts it into a send electrical signal; a transmitting antenna (15) , which transmits said send electrical signal as a radio wave; a receiving antenna (16) , which converts a received radio wave into a receive electrical signal; a receive circuit (17), which demodulates said receive electrical signal and converts it into a digital signal; and a control unit (12B) which controls said card reader/writer (1B), characterized in that said send circuit sends a trigger signal followed by a start flag which indicates the start of data, and said control circuit (12B) is arranged to set the interval between said trigger signal and said start flag to one frame or more. The card reader/writer according to claim 1, characterized in that said control unit (12A) inserts dummy data between said trigger signal and said start flag. The card reader/writer according to claim 2, characterized in that said transmitting antenna (15) is a series resonance circuit. The card reader/writer according to claim 3, characterized by a switching circuit (19), which is connected between said receiving antenna (16) and said receive circuit (17) and which disconnects them during transmission. The card reader/writer according to claim 4, characterized in that said switching circuit (16) disconnects said receiving antenna (16) and said receive circuit (17) with a timing, which prevents a switching noise from being transmitted to said receive circuit (17).

Inventors: FUJIOKA SHUZO, FUJIOKA, SHUZO, FUJIOKA, SHUZO, C/O MITSUBISHI ELEC. SEMICONDUCTOR
Applicants: MITSUBISHI ELEC SEMICONDUCTOR, MITSUBISHI ELECTRIC CORP, MITSUBISHI DENKI KABUSHIKI KAISHA, MITSUBISHI ELECTRIC SEMICONDUCTOR SOFTWARE CO., LTD.
Application year: 1995
Main classification: G06K19
IPC codes: B42D15, G06K19, H04M3, G06K7