Data transmission device

Abstract: A data transmission device comprises memory means for storing a plurality of data consisting of a plurality of kinds of sorting areas and selectively transmits the data of the sorting area including a desired data in response to a predetermined command signal. Accordingly, data of the sorting areas including no desired data may not be sent. And the central processing unit is connected to each of the electronic cash registers through one or more communication lines and when the electronic cash register receives a command signal sent from the central processing unit, the electronic cash register acts according to the command signal. Accordingly, one or a plurality of electronic cash registers can be remote controlled by sending a command signal from the central processing unit.

Description: The present invention relates to a data transmission device which is preferably adapted to a sales management system e.g. in which a host computer provided in a head office is connected to an electronic cash register provided in each of branch stores through one or more on-line circuits. In the prior art, there has been adopted a sales management system, wherein a main store or central processing office is connected to each of branch stores through an on-line circuit so that sales data e.g. transmitted from an electronic cash register provided in each of the branch stores are integrally processed by a host computer provided in the main store or in the central processing office and that a unit price of each of goods and a code of each division ('division' means a minimum sorting category representing goods in the same category having the same price hereinafter) are transmitted from the host computer to the electronic cash register in each of the branch stores so as to perform the sales managements of all the branch stores integrally by means of the host computer. In such a sales management system as described above, in order to sum up the gross sales of all the branch stores in a day, the sales data of each of the branch stores should be sent from the electronic cash register in each of the branch stores to the host computer in the main store. Moreover, in the case that there are provided a main apparatus and a plurality of additional apparatuses of an electronic cash register in each of the branches in such a sales management system, the main electronic cash register has a function of performing inspection and liquidation, a function of transferring data sent from the host computer and data set in the main electronic cash register to a plurality of additional electronic cash registers provided in each of the branches, and a function of performing a process of opening and closing the stores. In the prior art, in the case of transmitting a sales data from an electronic cash register provided in each of the branches to the host computer provided in a main store, the data of all the divisions stored in so called a division file have been sent from each of the cash registers to the host computer. Therefore, in the host computer only the data of the sales division must be retrieved and selected. In such a sales management system, the time for transmitting the data is made so long that not only transmission efficiency is bad due to useless buffers for the data transmission but also processing operation of the host computer becomes complicated. Moreover, in order to performing the above mentioned functions in the main electronic cash register, an operator skilled in the operation of the main electronic cash register should be disposed in the store where there is provided an additional electronic cash register. Moreover, since the above mentioned functions of the main electronic cash register are performed generally after closing each of the branch stores, an operator of the main register should be disposed in each of the stores still after closing the stores. US-A-4 425 619 describes an electronic cash register having a transaction data memory with 24 memory sections each of which can store the transaction amount registered in a preselected one hour. A selection system is associated with each of the memory sections for selecting a desired memory section. The transaction data stored in the selected memory section are applied to a printer system, whereby the transaction data can be printed on a journal paper and/or a receipt slip for administration purposes. There is no interaction between the electronic cash register and a central host computer. GB-A-2 176 921 describes a data processing system having a central system controller and a plurality of electronic cash registers. One of the cash registers is a master cash register and the other ones are slave cash registers. This data transmission system is e.g. usable for a restaurant system having one master cash register for the accountance and a plurality of slave cash registers for the waiters. All cash registers transmit the subtotal data for every order to the controller. There is no function for the controller to interrogate the contents from specific cash registers. The system controller receives all data immediately when the data are inputted into the cash registers. It is an object of the present invention to provide a data transmission device that is applicable for the communication between a main store or central processing office and a plurality of electronic cash registers and improves the transmission efficiency and reduces the load of processing operations. This object is solved, according to the invention, with a data transmission device as defined in claim 1. According to the invention, each of the electronic cash registers can be remote controlled according to the command signals sent from the host computer. Thereby, the device is labour-saving and improves the operability of the entire system. The invention is further directed to a method for selectively controlling data sent from a plurality of electronic cash registers to a host computer. Such method is defined, according to the invention, by the features of claim 5. Hereunder, embodiments of the invention will be explained in more detail with reference to the accompanying drawings. Figs. 1 to 4 are drawings for explaining a first embodiment according to the present invention, wherein Fig. 1 is a block diagram showing a constitution of a sales management system comprising electronic cash registers C of the first embodiment according to the present invention, Fig. 2 is a schematic diagram showing an example of a command signal which is transmitted from a host computer 1 to an electronic cash register C, Fig. 3 is a schematic diagram showing an example of a division file 6a which is stored in the electronic cash register C, and Fig. 4 is a flow chart for explaining an operation of the electronic cash register C according to the first example, Figs. 5 to 11 are drawings for explaining a second embodiment according to the present invention, wherein Fig. 5 is a block diagram showing a constitution of the second embodiment of a data transmission device 10 of a sales management system according to the present invention, Fig. 6 is a schematic diagram showing flows of the signals when transmitting a command signal from a host computer 1 to an electronic cash register C, Fig. 7 is a schematic diagram showing the second example of a command signal which is transmitted from the host computer 1 to the electronic cash register C, Fig. 8 is a flow chart for explaining an operation of the electronic cash register C according to the second example, Fig. 9 is a schematic diagram showing flows of the signals when transmitting a signal of finishing information, Fig. 10 is a schematic diagram showing an arrangement of a finishing information signal which is sent from the electronic cash register C to the host computer 1, Fig. 11 is a flow chart for explaining an operation of the electronic cash register C when sending a finishing information signal. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT EXAMPLE 1 In a sales management system as shown in Fig. 1, there is provided a host computer 1 in a main store of an affiliated stores and there is provided each of electronic cash registers C1 to Cn (represented as C hereinafter) in each of affiliated branch stores, wherein each of the electronic cash registers C having a similar constitution is connected to the host computer 1 through an on-line circuit so as to communicate between the host computer 1 and each of the electronic cash registers C. Each of the electronic cash registers C comprises an interface 2, a signal sending/receiving unit 3, a processing unit 4, a read only memory (referred to as ROM hereinafter) 5, a file portion 6, a key input portion 7 and a printer portion 8. The processing unit 4 is connected to the host computer 1 through the signal sending/receiving unit 3 and through the interface 2 so as to perform the transmission of data between the cash register C and the host computer 1. Also, the processing unit 4 is connected to the ROM 5 for storing a program for registering in the electronic cash register C and is connected to the file portion 6 consisting of a plurality of files 6a to 6d formed of such as random access memory (referred to as RAM hereinafter), wherein there is stored a division file e.g. to be described later in the file 6a. Furthermore, the key input portion 7 for registering and the printer portion 8 for printing on sheet e.g. are connected to the processing unit 4 so as to be controlled by the processing unit 4. In such an electronic cash register C as described above, when sales data per one day is transmitted to the host computer 1, a command signal for sending a desired data is transmitted from the host computer 1 to the electronic cash register C. When the electronic cash register C receives the command signal, the desired data is selected from the file portion 6 in response to the command signal so as to be transmitted to the host computer 1. Fig. 2 shows an example of an arrangement of a command signal which consists of data of a file number and a file name. The file name represents one of the files 6a, 6b, 6c and 6d, and in case of the division file 6a e.g., "DPTFL" is used as the file name. The file number consists of four figure numeral for example and the head, second and third figures of the numeral represents a sorting area and, for example, in the division file 6a, "012" represents a sorting area AR of a data of sales. As to the lowest figure of the file number, "0" represents the demand for transferring the data of all the divisions and "1" represents the demand for transferring the data of the division in which there is a sale and "2" represents the demand for transferring the data of the division in which there is no sale. Fig. 3 shows a composition of the division file 6a, wherein the data of one division is called 'record'. As shown in Fig. 3, one record consists of a plurality of sorting areas. The sorting area AR of the sales consists of a division code representing a kind of the division, the gross sales of goods in the division and the amount of the sales of the goods in the division. And in the rest of the record, there are assigned a code of a group of the goods in the division such as fruits or vegetables, a code of the name of the division, a unit price of the goods of the division, the maximum of the gross sales and the number of the customers having bought a good in the division. For example, in case the file name of a command signal transmitted from the host computer 1 to the electronic cash register C is "DPTFL", the data in the division file 6a is transmitted from the electronic cash register C to the host computer 1. Moreover, in case the file number is e.g. "0121", only the data of the sales in the division in which there is a sale in the division file 6a (the data represented by the sorting area AR in Fig. 3) is transmitted to the host computer 1. The operation of the electronic cash register C will be explained with reference to Fig. 4. In step n1, when the electronic cash register C receives a command signal for sending data from the host computer 1, a file name is read out of the command signal demanding for sending data and the program goes to step n2. In step n2, in case the file name included in the command signal demanding for sending data is e.g. "DPTFL", that is, in case the host computer 1 transmits a demand signal for sending data stored in the division file 6a, the program goes to step n3. If the file name is not "DPTFL" in step n2, the program goes to step n12 and the process corresponding to the file name except the file name "DPTFL" of the division file 6a is similarly performed. In step n3, the file number is read and the program goes to step n4 and it is judged whether or not the upper three figures of the file number are "012", and in case of "012", i.e., when there is transmitted a demand signal for sending data of the sales from the host computer 1, the program goes to step n5. In case of not "012" in step n4, the program goes to step n13 and a data except the data of the sales is selected to be processed. In step n5, the data of the sales is selected and the program goes to step n6. It is judged in step n6 whether the lowest figure of the file number is "0", "1" or "2", and in case of "0", the program goes to step n7 and the data of the sales in all of the records in the division file 6a are sent from the electronic cash register C to the host computer 1. In case of "1" in step n6, the program goes to step n8 and a record of the division in which there is a sale is retrieved and next in step n9 a data of the sales in the retrieved record is sent to the host computer 1. In case of "2" in step n6, the program goes to step n10 and a record of a division in which there is no sale is retrieved and next in step n11 a data of the sales in the retrieved record is sent to the host computer 1. As described above in the first example, the host computer 1 transmits a command signal demanding for sending a desired data to the electronic cash register C and the desired data is retrieved in the electronic cash register C, so that only the required data can be sent from the electronic cash register C to the host computer 1. Accordingly, the time for transmitting data is decreased and the transmission efficiency is improved and in addition, the labor saving of the host computer 1 can be realized. In the first example, though there is shown an example of the compositions of the command signal and the division file data, it is obvious to those skilled in the art that other compositions of the command and the division file data can be adopted. As described above, in the data transmission device according to the present invention, a plurality of data consisting of a plurality of kinds of sorting areas are stored in the memory means and a data of a sorting area including a desired data is only selectively transmitted among said plurality of data and the data of other sorting areas including no desired data is not transmitted. Accordingly, the transmission efficiency can be improved and the processing operation in the data receiving station can be simplified. EXAMPLE 2 The explanation is made with reference to Figs. 5 to 11, wherein similar parts are designated by similar numerals and the explanation of the similar parts are omitted. When an electronic cash register C receives a command signal sent from a host computer 1, the electronic cash register C acts in correspondence to the command signal. There are two types of electronic cash registers C, one type having additional apparatuses M1 to Mm such as a case of an electronic cash register C1 and the other type having no additional apparatus such as a case of an electronic cash register C2 as shown in Fig. 5. In Fig. 6, a demand signal WF1 demanding for writing in is transmitted from the host computer 1 to the electronic cash register C and when the electronic cash register C receives the signal WF1 demanding for writing in, an area for storing the command signals sent from the host computer 1 is secured in order to receive the data. The command signals are sequentially transmitted from the host computer 1 to the electronic cash register C. The command signals include a data of the operation of the electronic cash register C. When the transmission of the command signals from the host computer 1 to the electronic cash register C is finished, the finishing signal RB1 is sent to the electronic cash register C. When the electronic cash register C receives the finishing signal RB1, another finishing signal RB2 is transmitted from the electronic cash register C to the host computer 1 for the information of the completion of receipt of the command signal. As described above, the command signals are transmitted to the electronic cash register C from the host computer 1, whereby the action in response to the command signal is performed in the electronic cash register C. Fig. 7, shows a composition of the command signal which is sent from the host computer 1 to the electronic cash register C. The command signal consists of data of job numbers indicating the operation of the electronic cash register C to be performed, various kinds of parameters and dummy data for matching a unit data capacity when sending a data signal. In the electronic cash register C receiving such a command signal as described above, the operation of the electronic cash register C is performed in response to the command signal. For example, when the job number is "500", in the case that the electronic cash register C is a type of having additional apparatuses M1 to Mm such as a case of the electronic cash register C1 as shown in Fig. 5, a set data and programming data are transmitted to the additional apparatus M so as to perform so called an opening process such as a process of setting a condition to be capable of registering the data in the additional apparatus M. Moreover, when the job number is "501", the electronic cash register C acts so that the additional apparatus M sends the registered data so as to perform a closing process such as a process for prohibiting the operation of each of the additional apparatus M, i.e., a process for turning the power source off. In the transferring process of the data from the electronic cash register C to the additional apparatus M thereof, when the job number is "850" for example, the data assigned to the key functions of each of the additional apparatus M are transmitted to each of the additional apparatus M so as to set the key functions of the additional apparatus M. As to the operations of inspection/liquidation, the operations corresponding to the data of the job numbers as shown in the table 1 can be performed by remote control. JOB NO. PERFORMING OPERATION NAME KIND OF OPERATION Y = 1 Y = 2 INSPECT LIQUID. INSPEC/LIQUID. Y00 ALL ITEMS C and ADD. INS. FOR ONE DAY LIQ. FOR ONE DAY LIQ. FOR A PERIOD Y01 C and INDICATED ADD. INS. FOR ONE DAY LIQ. FOR ONE DAY - Y30 TRANSACTION C and ADD. INS. FOR ONE DAY INS. FOR ONE DAY - Y30 C or INDICATED ADD. INS. FOR ONE DAY INS. FOR ONE DAY INS. FOR A PERIOD Note 1. ADD. represents ADDITIONAL APPARATUS. 2. INS. and LIQ. represent INSPECTION and LIQUIDATION. In the table 1, the job number "Y" represents a numeral 1 or 2 and when Y = 1, it represents a gross in a unit day, when Y = 2, it represents a gross in a period such as in a month. For example, when the job number is "Y00", the data of all the items such as sales in every division, gross sales of all the divisions, sum of discounts in all the transactions, the number and sum of returned goods, the sum and number of the corrections of the data mis-registered by the operators, and the time of money exchanges are individually printed in every item, and if the data of the job number is a data indicating for liquidation with parameters, these numeric data are reset after they are printed. When the job number is "Y30", the data of the transaction items other than the data of the sales in each division are printed. In case the electronic cash register C has an additional apparatus M, the total data of the data stored in the electronic cash register C and the data stored in the additional apparatus M are processed in the same way as described above. Moreover, if the job number is "Y01" and the electronic cash register C and some of the additional apparatuses M are designated with parameters, the sum of the data stored in the electronic cash register C and the data stored in the additional apparatus M throughout the items mentioned above can be printed. Moreover, if the job number is "Y30" and the electronic cash register C and the additional apparatuses M thereof are designated with parameters, the sum of the data stored in the electronic cash register C and the data of the transaction items stored in the designated additional apparatuses can be printed. Fig. 8 shows a flow chart for explaining the operation corresponding to the command signal sent from the host computer 1 to the electronic cash register C. In step s1, the electronic cash register C receives a data signal sent from the host computer 1. It is judged in step s2 whether or not the received data signal is a command signal sent from the host computer 1, and in case of the command signal sent from the host computer 1, the program goes to step s3. In case of not a command signal, the program goes to step s6 and the other process is performed. In step s3, the job number and the parameter included in the command signal are assigned to the electronic cash register C and the finishing code is set to "unactivated". Next in step s4, the operation corresponding to the job number, i.e., the operation of inspection/liquidation is performed. When such an inspection/liquidation operation is completed, the finishing code is set to "normal completion" in step s5 as to be described later. When such a remote control as described above is performed, it is necessary to confirm in the central processing unit of the host computer 1 whether or not the electronic cash register C is normally operated. For the confirmation as mentioned above, the host computer 1 sends a signal demanding for sending a finishing information to the electronic cash register C. Fig. 9 shows a flow of the signals when sending such a finishing information. A demand signal RF demanding for the operation of reading out the finishing information is sent from the host computer 1 to the electronic cash register C. Subsequently, a finishing signal RB3 is sent from the host computer 1 to the electronic cash register C. The electronic cash register C sends a signal WF2 demanding for writing to the host computer 1 before sending the finishing information so as to secure the area for storing the data to be received in the memory means provided in the host computer 1. Subsequently, the electronic cash register C sends a finishing information having a composition as to be described later to the host computer 1. When the transmission of the finishing information is completed, another finishing signal RB4 is sent from the electronic cash register C to the host computer 1. When the subsequent operation of the electronic cash register C is performed by remote control of the host computer 1, the host computer 1 sends the signal WF1 demanding for writing mentioned above to the electronic cash register C as shown in Fig. 6. When the transmission of the data signal between the host computer 1 and the electronic cash register C is put into the end, the finishing signal RB5 is sent from the host computer 1 to the electronic cash register C. Fig. 10 shows a composition of the finishing information transmitted from the electronic cash register C to the host computer 1. The finishing information includes data of job numbers, finishing code and dummy data. In the finishing information, the data of the job number and the dummy data are useless and only the finishing code is useful and examples of the finishing code are shown in the table 2. The finishing code "0000" represents that the operation corresponding to the command signal sent from the host computer 1 (referred to as command operation) has been normally completed. The finishing code "0010" represents that the command operation is not yet performed or under performing. The finishing code "0020" represents that the command operation has not been performed because of the occurrence of the communication error between the electronic cash register C and the additional apparatus M in the case of having an additional apparatus M. The finishing code "0030" represents that the command operation such as a liquidation or opening process has not been performed because the electronic cash register C is under the opening process. The finishing code "0040" represents that the command operation of the closing process has not been performed because the electronic cash register C is under the closing process. The finishing code "0050" represents that the command operation of the closing process has not been performed because the communication between the electronic cash register C and the additional apparatus M is being performed in the case of having an additional apparatus M. The finishing code "0060" represents the error of the job number included in the command signal sent from the host computer 1. The finishing code "0070" represents that the command operation such as a transfer of a data of goods has not been performed because the data of the goods has not been entered to be stored. The finishing code "0080" represents that, in the case of predetermining an operator of the electronic cash register C, because the code of the operator is undefined, the command operation can not be performed. The finishing code "0090" represents that the command operation of transferring a data signal to the additional apparatus M can not be performed because the additional apparatus M is under registering operation. The finishing code "0100" represents that the parameter of the command signal sent from the host computer 1 is abnormal. As described above, the host computer 1 receives the informations whether or not the operation of the electronic cash register C corresponding to the command signal previously sent from the host computer 1 has been normally completed, or the result and reason why the operation can not be performed. Fig. 11 is a flow chart explaining an operation of the electronic cash register C when sending the finishing information. In step m1, the electronic cash register C receives a data signal sent from the host computer 1 and decodes the data. It is judged in step m2 whether or not the received data is a signal RF demanding for reading out a finishing code, and in case of not a signal RF demanding for reading out a finishing code, the program goes to step m5 and other process is performed. In case of the signal RF demanding for reading out a finishing code, the program goes to step m3 and the electronic cash register C reads out the set finishing code. Next in step m4, the finishing information including the finishing code is sent from the electronic cash register C to the host computer 1. As described above, in this example, the remote control of the electronic cash register C can be performed by sending the command signals from the host computer 1 to the electronic cash register C. Moreover, the electronic cash register C stores the finishing code of the operation performed by remote control as described above, therefore, it can be confirmed in the host computer 1 whether or not the operation corresponding to the command signal sent from the host computer 1 has been normally performed in the electronic cash register C. As described above, according to the present invention, the central processing unit of the host computer is connected to one or more electronic cash registers through a communication line and the electronic cash register receives a predetermined command signal so as to perform the operation corresponding to the command signal. Accordingly, one or more electronic cash registers can be remote controlled by sending a signal from the central processing unit so that the labor saving of the data transmission device and improvement of the operability thereof can be realized. FINISHING CODE CONTENT OBJECTING OPERATION 0000 NORMAL COMPLETION ALL COMMANDING OPERATIONS 0010 UN-ACTIVATION OF COMMANDING ALL COMMANDING OPERATIONS 0020 COMMUNICATION ERROR TO ADD. M1 TO Mm ALL COMMANDING OPERATIONS 0030 IMPOSSIBLE TO RETURN BECAUSE OF OPENING LIQUIDATION/OPENING PROCESS 0040 IMPOSSIBLE TO RETURN BECAUSE OF CLOSING CLOSING PROCESS 0050 IMPOSSIBLE TO RETURN BECAUSE OF COMMUNICATION TO ADD. M1 TO Mm CLOSING PROCESS 0060 JOB NUMBER OF COMMAND ERROR OPERATION OF TRANSFER OF DATA 0070 IMPOSSIBLE TO RETURN BECAUSE OF NO DATA OF GOODS TRANSFER OF DATA OF GOODS 0080 OPERATOR CODE UNDEFINED ALL COMMANDING OPERATIONS 0090 IMPOSSIBLE TO RETURN BECAUSE OF REGISTERING OF ADD. M1 TO Mm TRANSFER TO ADD. M1 TO Mm 0100 PARAMETER ERROR OF COMMAND ALL COMMANDING OPERATIONS Note 1. ADD. represents ADDITIONAL APPARATUS.

Claims: A data transmission device comprising a host computer (1) communicating with a plurality of electronic cash registers (C 1 to C n ), each of said cash registers (C 1 to C n ) comprising a memory (6) for storing records of a plurality of data, some data being allocated in distinct plural sorting areas of the records, the memory of each of the cash registers (C 1 to C n ) comprising a plurality of files (6a-6d), characterized in that each of the cash registers (C 1 to C n ) is connected to said host computer (1) through a communication line and comprises means for receiving from the host computer (1) a predetermined command signal for causing the cash register to send to the host computer (1) data stored in a specific file (6a-6d), and means for selecting and sending said data stored in said specific file (6a-6d) in response to said command signal, said command signal containing an information for selecting the specific file (6a-6d) of the memory (6) for sending only said data of said specific file (6a-6d) to the host computer (1). The data transmission device of claim 1, wherein the command signal contains an information representing a sorting area (AR). The data transmission device of claim 1 or 2, wherein said electronic cash register (C 1 to C n ) has one or a plurality of additional apparatuses (M) connected thereto. The data transmission device of one of claims 1-3, wherein the sorting area (AR) includes in combination a division code, the gross sales in the division, the amount of sales of goods in the division, the rest of the plural sorting areas (AR) including a code representing the group of the goods in the division, a code of the name of the division, a unit price of the goods of the division, the maximum of the gross sales and the number of customers having bought the goods in the division. A method for selectively controlling data sent from a plurality of electronic cash registers (C 1 to C n ) to a host computer (1), each of said cash registers (C 1 to C n ) comprising a memory (6) for storing records of a plurality of data, some data being allocated in distinct plural sorting areas of the records, the memory of each of the cash registers (C 1 to C n ) comprising a plurality of files (6a-6d), characterized by the steps of: a) receiving a desired data sending command signal from the host computer (1) by the plurality of electronic cash registers (C 1 to C n ); b) identifying whether the data of sales in all the records or only the data of the sales of the records in which there is a sale are to be transmitted, said command signal including a demand signal therefore; c) processing said command signal in said cash registers (C 1 to C n ) so that only data stored in the memory (6) and identified to be transmitted in step b) are sent to said host computer (1); d) transmitting required data from the plurality of electronic cash registers (C 1 to C n ) to the host computer (1).

Inventors: MIYAMOTO KUNIHIRO, NISHII TOSHIFUMI, OKA YUKIHIKO, SHIRASAKI TAKASHI, MIYAMOTO, KUNIHIRO, NISHII, TOSHIFUMI, OKA, YUKIHIKO, SHIRASAKI, TAKASHI
Applicants: SHARP KK, SHARP KABUSHIKI KAISHA
Application year: 1988
Main classification: G07G1
IPC codes: G07G1