POINT OF SALE FILE RECOVERY SYSTEM

Abstract: A file recovery system for POS data includes a master terminal (24) and a backup terminal (26) along with a master file device (12) and a backup file device (18), all of which are coupled to a plurality of satellite terminal (30). The master file device (12) includes a master file (16) and associated file controller (14) and the backup file device (18) includes a backup file (22) and associated file controller (20). When one of the file devices (12, 18) has been repaired after a failure, the contents of the other file device (12, 18), which has been operating as the main file device, copies the contents of its data file into the data file of the repaired file device (12, 18), while continuing to operate to respond to data requests from the terminals (24, 26, 30).

Description: POINT OF SALE FILE RECOVERY SYSTEM Technical Field This invention relates to point of sale systems of the kind including a plurality of satellite terminals adapted to input information on sold goods and a master terminal coupled to said satellite terminals and adapted to transmit and receive sales information. The invention also relates to a method of providing a file backup system for a point of sale operation. Background Art In the field of data processing, the use of point of sale (POS) terminals has required and also has enabled rapid and accurate transfer of information from one location to another in a business operation. In the case of department stores, the sales data may be transmitted or communicated from one or more terminals throughout the store to a central computer or processing unit. A filing system may be provided to maintain inventory and price data on the huge number of items that are sold in the store. The filing system and the control therefor provide means for reading and updating data and information regarding the constantly changing inventory and prices for the overall operation. U.S. Patent No. 4,468,750 discloses a point of sale system including a primary media terminal, a plurality of satellite terminals constructed and operated in a similar manner to the media terminal, and a backup media terminal. A diskette inserted into the primary media terminal received and stores data from the satellite terminals. In the event of a malfunction of the primary media terminal, the backup media terminal may be converted into the primary media terminal for the system by transferring the diskette from the faulty primary media terminal and inserting it into the backup media terminal. The conversion of the backup media terminal to the primary media terminal is thus a relatively slow and cumbersome manual operation, and interrupts the normal operational usage of the system. Disclosure of the Invention It is an object of the present invention to provide a point of sale system of the kind specified, which reduces the chances of the system being inoperative. Therefore, according to the present invention, there is provided a point of sale system of the kind specified, characterized by a plurality of file devices including respective point of sale data files and respective file control sections adapted to read and update said point of sale data files in response to requests from said terminals and to control data communication with said terminals, in that said plurality of file devices is arranged such that any one of said file devices is adapted to operate as a main file device to control file reading and updating operations and data communication within the system and to control the updating of said data files of the remaining file devices, in that any one of the remaining data file devices is adapted to operate as a main file device when said main file has failed, and in that said main file device is adapted, when the data file of one of the remaining file devices has failed, to copy the contents of its own data file into the data file that has failed while simultaneously performing normal file reading and updating operations and controlling data communication in the system. According to another aspect of the present invention, there is provided a method of providing a file backup system for a point of sale operation having a plurality of satellite terminals coupled to a master terminal, characterized by the steps of: providing a plurality of file devices including point of sale data files and associated file controllers adapted to read and update said point of sale data files in response to a request from said terminals and to control data communication with said terminal, constructing said plurality of file devices such that any one of said file devices operates as a main file device to control retrieving and updating operations and data communication within the system, controlling the updating of said point of sale data files of the remaining file devices wherein any one of said remaining file devices automatically operates as a main file device when said main file has failed, and constructing said main file device such that, when said point of sale data file of one of said remaining file devices has failed, such main file device is capable of copying the contents of its own file into said point of sale data file that failed in the up-to- date state and preparing the failed data file as a backup file while at the same time performing normal file retrieving and updating operations and controlling operation of data communication. It will be appreciated that a system or method according to the invention has an advantage over a system wherein, when a file fails during operation of the system, the system has to be stopped to recover the file, even though the fault causing the failure has been repaired, furthermore, when such a system continues to operate with only one file operative, it is possible that this file may develop a fault or fail, causing the entire system to shut down. In contrast, the system and method according to the invention enables system operation to continue even during file recovery after a fault has been repaired. Brief Description of the Drawings One embodiment of the present invention will now be described by way of example, with reference to the accompanying drawings, in which: Fig. 1 is a block diagram showing the structure of the file backup system according to a preferred embodiment of the present invention; Fig. 2 is a block diagram showing the structures of the file devices illustrated in Fig. 1; Fig. 3 is a flow chart illustrating the operation of the main file device; Fig. 4 is a flow chart illustrating the operation of the backup file device; and Fig. 5 is a flow chart illustrating the backup file recovering operation. Best Mode for Carrying Out the Invention Fig. 1 is a block diagram showing the structure of a preferred embodiment of the present invention. In the drawing, a main file device 12 includes a file controller or file control section 14 and a master file 16 in which point of sale (POS) data is stored. A backup file device 18 includes a file controller or file control section 20 and a backup file 22 in which POS data is stored. The file controller 20 has the same structure as file controller 14 and backup file 22 is the same as the master file 16. A master terminal 24 and a backup master terminal 26 are coupled by means of an in-house communication line or circuit 28. A plurality of satellite terminals 30 each consisting of a POS terminal such as an electronic cash register (ECR) or the like are coupled to the terminals 24 and 26 and to the file devices 12 and 18. All the elements 12, 18, 24, 26 and 30 are connected together via the in-house communication line or circuit 28. The master terminal 24 and the backup master terminal 26 are constructed in the same manner as that of a conventional master terminal and a backup master terminal except that file control sections for controlling the POS data file are not included in the terminals 24 and 26. Each of the satellite terminals 30 is constructed in the same manner as that of a conventional POS terminal such as an ECR or the like. In this connection, although the backup master terminal 26 is provided in this embodiment, the provision thereof is optional. Further, although only one backup file device 18 is provided in this embodiment, a plurality of such backup file devices may be provided. In addition, a structure is also possible wherein the file control devices 14 and 20 and the master file 16 and the backup file 22 are provided in the master terminal 24 and in the backup master terminal 26 and no separate file devices 12 and 18 are provided. However, in such a structure, a response to the request from each satellite terminal 30 may be delayed and thus prolong the operation. As shown in Fig. 2, the main file device 12 and the backup file device 18, respectively, consist of link control devices 32 and 34, central processing units (CPU) 36 and 38, read only memories (ROM) 40 and 42, random access memories (RAM) 44 and 46 and the master file 16 and the backup file 22. The CPU 36, the ROM 40, the RAM 44 and the link control device 32 correspond to the file control section 14 in Fig. 1. The main file device 12 and the backup file device 18 include identical elements and are constructed in exactly the same manner. Alternatively, the files 16 and 22 may be respectively included within the RAMs 44 and 46. Each of the link control devices 32 or 34 is a line control device for controlling the in-house communication line or circuit 28. The operations of the main file device 12 and the backup file device 18, which have been described in relation to Fig. 1, are respectively controlled by the CPUs 36 and 38 in accordance with processing procedures respectively stored in the ROMs 40 and 42. The normal operation of the file backup system according to the embodiment shown in Fig. 1 and the backup operation thereof in case of failure of the backup file device 18 will be described in relation to Figs. 1, 2, 3 and 4. Fig. 3 is a flow chart illustrating the simplified operation of the file control section 14 of the main file device 12 and Fig. 4 is a flow chart illustrating the simplified operation of the file control section 20 of the backup file device 18. The power source is turned on to start the operation (block 50). The main file device 12 sequentially polls the individual terminals 24, 26 and 30 within the system in a predetermined cycle to confirm the presence or absence of the data transmission or receiving request from the terminal (block 52). When a customer buys goods, the codes thereof and the number of goods sold are input from a bar code reader (not shown) or a keyboard (not shown) of any one of the master terminal 24, or the backup terminal 26 or the satellite terminal 30. The goods codes and the number of sold goods (sales information) thus input are sent over the line or circuit 28 to the main file device 12 when the main file device 12 polls the respective terminals 24, 26 or 30. The main file device 12 receives the sales information from the terminals 24, 26 or 30 and transmits such information to the backup file device 18 and simultaneously reads the master file 16 based on the goods code (block 54). The main file device 12 reads out the goods information from the master file 16, updates the sales information or the like relating to the concerned goods code (block 54) and then transmits the goods data (prices or the like) corresponding to the goods code to the respective terminal 24, 26 or 30 from which the sales information has been transmitted (block 56). The terminal 24, 26 or 30 which receives the transmitted goods data from the main file device 12 registers the goods thus sold based on the received goods data. Then, the main file device 12 checks to see whether or not the backup file device 18 has been down once and then revived (block 58). If the backup file device 18 has not been down or is not maintained in the down state, the flow returns to block 52 in Fig. 3 to repeat the same processing. In case the backup file device 18 has been down once and then revived, the flow goes to block 60 in Fig. 3 to recover the backup file data for the recovery of the backup file 22 in the backup file device 18. On the other hand and as noted from the start 62 in Fig. 4, the backup file device 18 which receives the sales information from the main file device 12 updates the backup file 22 in the same manner as the main file device 12 and then transmits the data thus updated to the main file device 12 (block 64). The main file device 12 compares the updated data received from the backup file device 18 with the updated data of its own to see whether or not the backup file 22 is correctly updated (block 64). Then, the flow goes to block 66 to confirm whether or not the main file device 12 is down (block 66). In case the main file device 12 is down, the backup file device 18 acts as the main file device to control the data communication with each terminal 24, 26 or 30 (block 68), and executes the steps 52 to 60 in Fig. 3. Next, the operation relating to the backup file recovering process in block 60 of Fig. 3 will be described with reference to Fig. 5. Fig. 5 is a flow chart illustrating the backup file recovering procedure of the main file device for the re- preparation of the backup file during the operation of the system. It is assumed that the repairing of the original main file device 12 is completed after the original main file device 12 has been down and the power source is turned on (block 70). Now, the file device 18 is in operation as the main file device, so that such main file device 18 senses the completion of the repairing of the original main file device 12 (block 58) to perform the backup file recovering operation (block 60), as shown in Fig. 3. In a first step in Fig. 5, a block counter, arranged as a copy block in order to copy the contents in the backup file 22 into the file 16, is set to n=l (block 72). Then, a check is made to see whether or not a request is sent from a terminal (block 74) and, if not, the flow goes to block 82 in which the block n(n=l), indicated by the block counter, is copied from the backup file 22 into the file 16. Then, the block counter is set to n+1 (block 84) and a check is made to see whether or not all the contents in the backup file 22 have been copied into the file 16 (block 86). If all the contents have been copied, the flow returns to block 74 to repeat the same process. Next, the case in which a request is sent from a terminal 24, 26 or 30 will be described with reference to Figs. 2 and 5. Assume that the request for the goods code "002" is sent from a terminal 30 when the block counter is set to n=30. The main file device 18 senses the request from the terminal 30 in block 74 and goes to block 76 (Fig. 5) wherein the master file 22 is retrieved to update the sales information of the goods code "002" such as the sales number (the number of sold goods) and the proceeds, as in the case in block 54 in Fig. 3. Now, assuming that one carton of milk is sold, the sales number changes from 3, which is the previous sales number, to "4", as shown in Fig. 2, and the proceeds change from ¥600 to ¥800. Then, as noted in Fig. 5, the main file device 18 transmits the data such as the unit price "¥200" to the terminal 30 from which the request is sent (block 78) and thereafter the main file device 18 re-copies the block of the requested goods code "002" in the file 22, just updated, into the file 16 which is being copied in the file device 12 (block 80). Then, the main file device 18 goes to block 82 to copy the block (n=30) and repeat the copying operation, as mentioned above. At the completion of copying of all blocks, the main file device 18 goes from block 86 to block 88 and then returns to block 52 in Fig. 3. The file device 12 acts as the backup file device to repeat the steps in blocks 64, 66 and 68 in Fig. 4. As has been described above, the present invention is constructed such that even if one of the files is destroyed, the main file can copy the contents in the master file into the file thus destroyed in the up-to-date state, while retrieving and updating the file in response to the request from each terminal 24, 26 or 30 and controlling the data communication therewith. In this manner, the file backup system in which the contents in the master file can be copied into the backup file, even during the operation of the system, can be accomplished and the backup file device can be put into operation immediately after the completion of repairing of the machine without stopping the system. Accordingly, the present invention is effective to provide a file backup system that reduces the chances of the system being down. It is thus seen that herein shown and described is a file backup system that enables rapid response to requests from terminals. When one of the file devices has failed or is down, another file device becomes the main file device and copies the content of the one file device to maintain the operation.

Claims: CLAIMS 1. A point of sale system, including a plurality of satellite terminals (30) adapted to input information on sold goods and a master terminal (24) coupled to said satellite terminals and adapted to transmit and receive sales information, characterized by a plurality of file devices (12, 18) including respective point of sale data files (16, 22) and respective file control sections (14, 20) adapted to read and update said point of sale data files (16, 22) in response to requests from said terminals (24, 30) and to control data communication with said terminals (24, 30), in that said plurality of file devices (12, 18) is arranged such that any one of said file devices (12, 18) is adapted to operate as a main file device to control file reading and updating operations and data communication within the system and to control the updating of said data files (16, 22) of the remaining file devices (12, 18), in that any one of the remaining data file devices (12, 18) is adapted to operate as a main file device when said main file has failed, and in that said main file device is adapted, when the data file of one of the remaining file devices has failed, to copy the contents of its own data file with the data file that has failed while simultaneously performing normal file reading and updating operations and controlling data communication in the system. 2. A system according to claim 1, characterized in that said file devices (12, 18) are arranged and constructed such that any one of said file devices (12, 18) operates as the main file device to restore another file device (12, 18) to operate as a backup file device to maintain operation of the system. 3. A system according to claim 1, characterized by an in-house communication line (28) adapted to couple said master terminal (24) and said satellite terminals (30) to said plurality of file devices (12, 18). 4. A system according to claim 1, characterized by counting means adapted to maintain control of the transfer of the contents of one file that is copied into another file. 5. A method of providing a file backup system for a point of sale operation having a plurality of satellite terminals (30) coupled to a master terminal (24), characterized by the steps of: providing a plurality of file devices (12, 18) including point of sale data files (16, 22) and associated file controllers (14, 20) adapted to read and update said point of sale data files in response to a request from said terminals (24, 30) and to control data communication with said terminal (24, 30), constructing said plurality of file devices (12, 18) such that any one of said file devices operates as a main file device to control retrieving and updating operations and data communication within the system, controlling the updating of said point of sale data files (16, 22) of the remaining file devices wherein any one of said remaining file devices automatically operates as a main file device when said main file has failed, and constructing said main file device such that, when said point of sale data file of one of said remaining file devices has failed, such main file device is capable of copying the contents of its own file into said point of sale data file that failed in the up-to-date state and preparing the failed data file as a backup file while at the same time performing normal file retrieving and updating operations and controlling operation of data communication. 6. A method according to claim 5, characterized in that said file backup system includes an in-house communication circuit (28) for coupling said master terminal (24) and said satellite terminals (30) to said plurality of file devices. 7. A method according to claim 5, characterized by the step of counting the contents of one file that is copied into another file.

Inventors: ITO FUMIO, NAITO JIRO, ITO, FUMIO, NAITO, JIRO
Applicants: NCR CO, NCR CORPORATION
Application year: 1989
Main classification: G06F15
IPC codes: G06F11, G07G1