Data processing apparatus

Abstract: A data processing apparatus for use in an electronic data research system in which data produced at respective panelist home is transmitted to a data center via a telephone link which is commonly used by a telephone set of the panelist home, there are provided a center call mode in which the data is transmitted to the data center in response to the polling from the data center within a predetermined time gate, a terminal call mode in which the data is transmitted to the data center at a predetermined time out of the time gate, and a real time mode in which current data is transmitted to the data center while the connection between the panelist home and data center via the telephone link is continuously made.

Description: The present invention relates to a data processing apparatus for use in an electronic research system in which data produced at a plurality of terminals is transmitted to a data center which processes statistically the data. In the electronic data process apparatus such as the electronic apparatus for deriving the television audience ratings and market research, data stored in a number of terminals is transmitted to the data center by means of communication lines such as telephone links and the data center processes the received data to derive desired television audience rating and market research data. In one of the known data processing apparatuses, the transmission of the data from the terminal to the data center is initiated when a main memory is filled with the data. In the terminal, i.e. the panelist home, a usual telephone link is used as the data transmission line, so that the data transmission is effected during a given time period called time gate TG within the mid night or early morning in order not to disturb normal usage of the telephone at the panelist home. The data transmission is initiated in response to the polling from the data center. In Japanese Patent Publication Kokai Sho 54-80,617 and GB-A-2143354 there is disclosed the television audience rating research system utilizing the above mentioned method. At the terminal, the data is converted into a signal having a given format and is stored in RAM and the data signal read out of RAM is transmitted to the data center once a day or once a week. The terminal comprises ROM in which are stored program and various kinds of fixed constants as well as the telephone number of the data center, open and close times of TG, data format, etc. The contents stored in ROM may be changed. For instance, the data format may be altered by manually operating dip switches. As explained above, when the transmission of data from the terminal to the data center is initiated when the main store in the terminal is filled with the data, the data transmission might occur during the time interval in which the panelist is using the telephone or wants to use the telephone. This results in that the data transmission could not be effected sufficiently and might trouble the normal usage of the panelist telephone, so that it is rather difficult to obtain the cooperation of the panelist. In the method in which the time gate is set during the low traffic time period such as mid-night and early morning, when the number of terminals is increased, it becomes difficult to complete or finish the data transmission only during the mid night and early morning and the data transmission might be competitive with the normal usage of the panelist. In order to mitigate such a drawback, the number of telephone links and the size of the computer installed in the data center have to be increased. However, since the utilizing rate of telephone link in the data center is very low such as about 13%, the cost performance of the data center becomes extremely low. The present invention has for its object to provide a novel and useful data processing apparatus in which the telephone links and equipments of the data center can be utilized efficiently by effecting the data transmission in a time period other than the time gate, while the competition for the telephone links between the data transmission and the normal usage of the panelist home can be avoided effectively. In general, the research for the television audience rating and the market research are processed in a batch mode and the data is transmitted from the terminal to the data center once a day or once a week. However, it is required to obtain television audience ratings for particular television programs, events and commercial programs in a real time mode. It is another object of the invention to provide a data processing apparatus in which data can be transmitted from the terminals to the data center also in the real time mode. As explained above, in ROM provided in the terminal there are stored various kinds of data such as telephone numbers of the data centers, open and close times of time gate and data format. When one or more of these instructions is or are to be altered, contents in ROMs in all terminals have to be changed. This requires very cumbersome labor work and therefore, the sytem could not be changed or expanded freely. It is still another object of the invention to provide a data processing apparatus in which the above mentioned control instructions can be altered easily and freely by sending commands from the data center to the terminals. According to the present invention, there is provided a data processing apparatus for use in an electronic research system in which in a number of panelist homes data is formed into transmission data having a given format and the transmission data is transmitted to at least one data center via a telephone link which is commonly used by a telephone set of each panelist home, comprising center call transmission means for effecting a center call in which the transmission data is transmitted from the panelist home to the data center in response to a call from the data center to the panelist home within a predetermined time gate characterised by: terminal call transmission means for effecting a terminal call in which the transmission data is transmitted from the panelist home to the data center in response to a call from the panelist home to the data center; and control means for selectively operating said center call transmission means and terminal call transmission means. In the data processing apparatus according to the invention, panelist homes are divided into a plurality of groups and the terminal call and center call can be suitably allocated to these groups. When the center call is selected, the telephone link in the panelist home is connected to the terminal during the predetermined time gate to prepare for receiving the polling from the data center. It is always checked whether the telephone set is in the off-hook condition or in the on-hook condition, and when the off-hook condition is detected, the telephone link is changed at once into the telephone set of the panelist home, so that any conflict between the data transmission and the normal speech communication of the panelist home can be avoided. When the data transmission could not be finished within the predetermined time gate, the time gate may be extended for thirty minutes. When the terminal call is selected, the terminal calls the data center at a predetermined time in a day or on a predetermined day in a week. Also in this terminal call mode, the off-hook condition of the telephone set of the panelist home is always checked so that the terminal does not call the data center during the busy condition of the telephone set. When there are provided two data centers, at first the terminal calls the first data center. When the first data center is in the busy condition, then the terminal calls the second data center. When the second data center is also in the busy condition, the terminal calls again the first data center after a predetermined pause time period. The above mentioned operation is repeated. When it is confirmed that the data center responds to the call from the terminal, the communication fee is not charged to the panelist. That is to say, the data transmission is effected in the free dial mode. Fig. 1 is a block diagram showing the general construction of the data transmission system using the data processing apparatus according to the invention; Figs. 2A, 2B and 2C are block diagrams illustrating an embodiment of the data processing apparatus according to the invention; Figs. 3A to 3J depict a timing chart in case of receiving the identifying signal from the center; Figs. 4A to 4K show a timing chart explaining the operation for receiving a call from a third party; Figs. 5A and 5B illustrate a flow chart for effecting the busy check; and Fig. 6 is a flow chart showing the operation of the terminal call. Fig. 1 is a block diagram showing the data transmission system using the data processing apparatus according to the invention. In the present embodiment, the collection of data concerning the market research, television audience rating and research questionnaire can be carried out over telephone type links. In Figs. 1, a reference numeral 1 denotes a panelist home and a reference numeral 10 represents a data center. In the panelist home 1, there are arranged channel detectors 3a, 3b ... besides television receiver sets 2a, 2b ..., respectively to detect television channels being viewed. The detected channel data is transmitted to a data processing apparatus 8 according to the invention via domestic power supply lines 6. There is further provided a market research data entry device 7 which includes a bar-code reader and a keyboard for entering various kinds of data of products purchased by panelists. The entered data is transmitted to the data processing apparatus 8. In the panelist home 1 there are further provided questionnaire transmitters 4a, 4b ... for transmitting answers to questions by means of infrared radiations. By pressing keys provided on transmitters while watching questions displayed on the television receiver screens, answers of panelists can be transmitted to questionnaire receivers 5a, 5b .... It should be noted that the data may be transmitted with the aid of ultrasonic waves or weak electromagnetic waves. The questionnaire receivers 5a, 5b ... are preferably placed on the channel detectors 3a, 3b ..., respectively. The data received by the questionnaire receivers 5a, 5b ... are supplied to the channel detectors 3a, 3b ..., and then are transmitted to the data processing apparatus 8 together with the channel data. The data processing apparatus 8 can identify various kinds of data supplied from the channel detectors 3a, 3b ..., market research data entry device 7 and questionnaire transmitters 4a, 4b ..., and converts these kinds of data into transmission data having a given format which is then stored. A reference numeral 9 denotes a telephone set provided in the panelist home, which telephone set utilizes the telephone like link together with the data processing apparatus 8. The data center 10 comprises computer 12 and interface 11. The computer 12 analyzes various kinds of data transmitted from the panelist homes to derive market research information and television audience ratings. The data center 10 further comprises a magnetic tape device 14 and its interface 13 which serve as a back-up for the computer 12. A plurality of telephone lines are connected to the data center 10 so that it can handle a plurality of the terminals 1 simultaneously. Figs. 2A, 2B and 2C are block diagrams of an embodiment of the data processing apparatus according to the invention. The data processing apparatus 8 receives the television channel data and personal research data via the domestic power supply lines 6 and the market research data over the cable, converts the thus received data into given format data which is then stored in a memory. The data is then transmitted to the data center in response to the call from the data center (center call mode) or to the call from the terminal (terminal call mode). The data processing apparatus of the present embodiment shares the telephone like link with the telephone set 9, but it is also possible to provide a separate private link. In this case, a switch 65 connected to a port 64 is switched into a meter side. The switch 65 is set to the telephone side when the telephone like link is commonly used by the data processing apparatus 8 and the telephone set 9. As illustrated in Figs. 2A, 2B and 2C, the data processing apparatus comprises NCU (Network Control Unit) and MODEM substrate 20 and CPU (Central Processing Unit) substrate 21. CPU 80 is arranged on the CPU substrate 21, and common buses 23 and 81 of these substrates 20 and 21 are interconnected with each other by means of a bus 82. NCU and MODEM substrate 20 comprises NCU 22, MODEM 40, NCU control circuit, other circuits and power source. When a power switch 70 is switched on, a red light emitting diode (LED) 67a (POW) is lit on. NCU 22 has various functions such as setting of TG, detection of call within TG, detection of distance station connected (DSC), connection of MODEM, holding of the D.C. loop, detection of the off-hook of the telephone set of the panelist home and manual selection to the telephone set. A telephone link (lines L₁, L₂) 24 is connected to a terminal 25 and the telephone set 9 is connected to either one of terminals 25, 26 and 27. The input from the telephone link 24 is connected to the internal circuit via a switcher 28 and manually operated switching contacts k¹∼k⁴. When the center call mode is selected and TG is made on, a T relay is energized. The T relay as well as CML, TP, S, and D relays are controlled by CPU via a port 66. When the T relay is energized, its contact t¹ is changed into a position opposite to that shown in Fig. 2A, so that the input signal from the line L₁ is supplied to a 16 Hz detector 29 by means of cmℓ¹ contact, t¹ contact, s¹ contact, capacitor C₂ and resistor R₃. Further, an amber LED (TG) 67b is lit on to emit bright orange light. When the call is effected from the center, the 16 Hz detector 29 supplies a signal to a light receiving element 31 of a photocoupler 30 and an interruption signal for the calling indicator (CI) is supplied to the port 60. In this manner, CPU 80 detects the call from the center. When the interruption for CI is effected, the CML relay is energized and its cmℓ¹ contact is changed over from the position shown in Fig. 2A. Then, a green LED (CML) 67c is lit on. When the CML relay is energized, the D.C. loop is formed via a choke coil RET and the telephone link 24 is connected to the MODEM and other circuits. When the data transmission is effected in response to the polling from the center, a center identification signal (abbreviated as CW for Carrier Wave) within an audio frequency range is sent in succession to the calling signal of 16 Hz. The CW signal transformed by a low frequency transformer 36 is supplied via amplifier 42, band-pass filter 43 for the center identification signal and amplifier 44 to a rectifier 45. An output signal from the rectifier 45 is applied to one input of a comparator 47. To the other input of comparator 47 is applied a reference voltage formed by a potentiometer 46. When the output from the rectifier 45 exceeds the reference voltage, the interruption for CW is confirmed. In this case, a delay of about one second is provided, so that any erroneous operation due to spurious signal can be avoided. When the interruption for CW is effected, a LED (ER) 67d is lit on. The message from the center is supplied via an amplifier 37 to MODEM 40 and is demodulated thereby. The demodulated message signal is accessed by CPU 80 via a serial I/O port 41. The data signal stored in the memory of the terminal is supplied via said serial I/O port 41 to the MODEM 40 and is modulated thereby. The modulated data signal is transmitted by means of amplifiers 39 and 38 and transformer 36 to the telephone link 24. Under the control of CPU 80 via a port 51, a ring back tone generator 49 produces a ring back tone which is then supplied via low-pass filter 52, amplifiers 58 and 38 to the telephone link 24, and at the same time, is supplied via an amplifier 53 to a loud speaker 54. When the telephone set 9 in the panelist home is of the push button type, there is provided a dual tone multi frequency generator (DTMF) 55 which generates combinations of two frequncies selected from higher and lower frequency groups in accordance with telephone numbers. The tone signal lasts for 70 ms and has a period of 125 ms. During the tone signal is generated, a yellow LED (DT) 67e is lit on. In order to set the push button mode, switches 63 provided on a port 61 are set to [2:PB]. The push button signal thus formed is supplied on the telephone link via amplifiers 57 and 38. When the telephone set 9 in the panelist home is of the dial pulse type, the telephone link is connected to a dialing circuit by making on the T, S and D relays via the port 66. Then, by controlling the D relay, its contact d¹ is made on and off to generate dial pulses. In synchronism with the on and off of the contact d¹, a yellow LED (DP) 67f is lit on and off. The dial pulse mode is selected by setting the switches 63 on the port 61 into [0:10 PPS] or [1:20 PPS]. There are two pulse rates, i.e. 10 PPS (pulses per second) and 20 PPS. 10 PPS is selected by [0] and 20 PPS is set by [1]. A timer 59 generates real times of 0.5 ms, 50 ms and 100 ms which are utilized to set the interruption timings for respective flows and also are used as reference times for various soft timers. A port 60 is made operative when the interruptions for CI, CW and DSC are effected, when counters 0, 1 and 2 provided on the port 60 are in the operative condition, and when the serial I/O port 41 is operative to effect the reception or transmission. CPU 80 can detect the condition of the port 60 to know the various conditions. Switches 62 on the port 61 are provided for giving a delay which can prevent any erroneous judgement whether the telephone set is in the off-hook or on-hook condition. The delay time differs for respective kinds of the telephone sets. A non-volatile RAM 48 stores various kinds of data such as telephone number of the center, start and end times of TG, start time of the terminal call and initial data necessary for the terminal call. The data stored in RAM 48 is not erased even when the power supply is stopped. The data stored in RAM 48 is read out into the CPU 80 via a port 50. According to one aspect of the present invention, the data stored in the RAM 48 can be rewritten by means of commands from the center. There is further provided a D.C. power source 74 which produces +12 V, -12 V and +5 V and energizes a battery charger 75 which charges a battery 77 via a switch 76. The CPU substrate 21 comprises, in addition to CPU 80, ROM 83 for storing an operation program for the system, RAM 84 for temporarily storing data, real time timer 85 for producing times at which data is generated, timer 86 for producing necessary times for various devices, interruption control circuit 87, home number encoder 88 for generating an identification number of the panelist home, a receiver number encoder 89 for producing receiver numbers, receiver scanning interface 90 for controlling the scanning of maximum eight receivers, terminal 94 for connecting a checker which checks the operation of the system, interface 95 for the checker, terminal 96 for connecting a market research data entry device for entering names, amounts, shops, etc. of purchased goods with the aid of bar code reader and keyboard, interface 97 for the market research data entry device, optional terminal 98, optional interface 99, and ports 91, 92 and 93. The port 91 comprises switches for setting the system modes, i.e. on-line mode switch 1, center call mode switch 2, terminal call mode switch 3, real time mode switch 4, market research mode switch 5, and optional switches 7 and 8. The port 92 comprises switches for setting various operations of the terminal call mode. Now it is assumed that there are arranged two centers. When only the first center is selected, a switch 1 on the port 92 is made on, and when the second center is selected, a switch 2 is made on. When both the first and second switches 1 and 2 are made on, both the first and second centers are selected. When the terminal call is effected every day, a third switch 3 is made on, but when the terminal call is carried out once in a week, the third switch 3 is made off. When the fee for the telephone communication is charged to the transmitter, a fourth switch 4 is made on (DSC), and when the free dial is carried out, the switch 4 is made off. The port 93 comprises start and stop switches, and push button switches for testing the operation of TG, telephone set and call. By utilizing these switches, the checking operation can be carried out effectively. When the TG switch is pushed, TG is forcedly made on for two minutes. During this time period of two minutes, when the call is received from the center, the data collection can be carried out. Therefore, when it is required to test and confirm the operation of the terminal, the center may ask the panelist to push this TG switch. Then, it is possible to test and confirm the operation of the terminal in the on-line mode. When the call switch is depressed, it is possible to effect the terminal call in regardless of the calling time stored in the non-volatile RAM 48. Therefore, various kinds of tests can be effected freely. When the telephone switch is pushed, the telephone link 24 is connected to the telephone set 9 so that the normal speech communication test may be performed. The data transmitted from the channel detector 3 and transmitter 4 over the domestic power supply line 6 is supplied to the electronic tunner 101 via power switch 70, capacitor 71, transformer 72 and amplifier 73 by inserting an AC plug 68 of the data processing apparatus into a socket connected to the domestic power supply line 6. In the electronic tunner 101, the frequencies of carrier waves are scanned with the aid of a control voltage generator (CVG) 102 under the control of CPU 80. The picked-up signal is amplified by an amplifier 103, detected by an FM detector 104 and is decoded by a decoder 105. In this manner, the data signal is decoded and is supplied on the common bus 81. To the data signal thus produced are added the data stored in ROM 83 and the data signals from the other encoders to form the transmission data of the predetermined format. Then the data signal is stored in RAM 84. In the present embodiment, the data signal stored in RAM 84 is transmitted to the center in either one of the center call mode, terminal call mode and center/terminal call mode. In the center call mode, the time gate TG is set within the low traffic time period during the mid-night and early morning and the data signal is transmitted within the time gate TG. TG is set to respective panelist homes such that the center calls to the panelist homes are not overlapped with each other. In the terminal call mode, the call times for respective panelist homes are set during a time interval except for the time gate TG such that the call times from respective panelist homes are not overlapped with each other. When a large number of terminals are provided, the data transmission can be effected efficiently by dividing them into the center call group and the terminal call group. As explained above, in case of selecting the center call mode the on-line mode switch 1 and center call mode switch 2 on the port 91 are made on. The terminal call mode can be attained by making on the on-line mode switch 1 and terminal call mode switch 3 on the port 91, and when both the modes are to be selected, all the switches 1, 2 and 3 on the port 91 are made on. In the present embodiment, there is further provided the switch 4 on the port 91. When the switch 4 is made on, the telephone link 24 is always captured on the real time mode, so that the television audience rating and estimation for various matters may be collected and calculated on the real time mode. Next, the time gate TG will be further explained in detail. The time gate TG may be set to three hours during the mid-night and early morning during which the traffic is small. The start and end times of the time gate TG are stored in the non-volatile RAM 48. CPU 80 interrupts every one second to check whether the start and end times of the time gate have been reached or not. When the start time of the time gate TG has been detected, T relay is energized to connect the 16 Hz detector 29 to the telephone link 24 after it has been confirmed that the telephone set 9 is not used. When T relay is de-energized, the time gate TG is made off. This is effected in the following three cases, i.e. when the time gate end timing has come without receiving the polling from the center, when the data transmission has been normally ended, and when the telephone set 9 is used by the panelist. When the data transmission on the on-line mode has not been completed correctly, the end time of the time gate may be extended for, for instance, a half an hour. Now the operation of the center call will be explained also with reference to Figs. 3A to 3J. During the time gate TG shown in Fig. 3A, when the 16 Hz calling signal (Fig. 3B) is transmitted from the center, the photocoupler 31 is made on and the information denoting that the interruption has been detected is supplied to CPU 80 via the port 64. Since CI is made on, CPU 80 reads CI to know that the interruption for CI has been effected (Fig. 3C). When the interruption for CI has been detected, a CI wait timer (several hundreds ms) is actuated (Fig. 3D). The CI wait timer is provided for preventing the detector of spurious CI signals due to noise and chattering. After the predetermined time period of the CI wait timer has elapsed, only when the CI signal is still existent, it is finally judged that the interruption for CI has been effected. Since the calling signal has the duration of one second, the real CI signal lasts after the expiration of the timer period of the CI wait timer. The CI wait timer is formed by a soft timer by means of CPU 80 on the bias of the timer period of 50 msec. generated by the timer 59. In the present embodiment, there are provided a number of timers, among which only the timers 59 of 0.5 ms, 50 ms and 100 ms and timer 85 are formed by the hard timer, and the remaining timers are all constituted by soft timers formed by CPU 80. After the given time of the CI wait timer has lapsed, CML relay is made on to connect the telephone link 24 to the MODEM 40, and at the same time, CW monitor timer (several seconds) and ring back tone output timer (several tens seconds) are actuated (Figs. 3E and 3F). The CW monitor timer is provided to judge the call from a third party when the CW interruption is not effected after a given time period from the CI interruption, and the ring back tone is provided to open the telephone link 24 when the telephone set 9 is not in the off-hook condition due to the absence of the panelists within a predetermined time period after the CI interruption. Then, the CW signal is sent, and after one second the CW interruption is effected (Fig. 3G). At the same time the CW monitor timer and ring back tone output timer are stopped (Figs. 3E and 3F). Further, CW wait timer (several seconds) and no-communication timer (several tens seconds) are initiated (Figs. 3H and 3I). From the center, in succession to the transmission of the CW signal for the given time period, a signal having another frequency is transmitted. The CW wait timer is provided to make the coincidence with the end of said signal having another frequency. The no-communication timer is provided to open the telephone link 24 when no polling is effected from the center within a certain time period (about 30 seconds) after the CW interruption. When the polling is sent from the center (Fig. 3J) within said time period, the no-communication timer is initiated again. Then, the no-communication timer is actuated each time a predetermined time period has been elapsed, while the communication from the center is normally continued. When the normal communication could not be attained due to the condition of the telephone link 24, the link is disconnected at the end of the timer period of the no-communication timer. Figs. 4A to 4K show timing charts when the call is effected from a third party during the time gate TG. In this case, the operation of the CI interruption in response to the 16 Hz ringing signal, and the actuation of the CW monitor timer and ring back tone output timer after the predetermined time period defined by the CI wait timer are entirely same as those explained above with reference to Figs. 3A to 3D. When the CW signal is not sent, the ring back tone is generated (Figs. 4G and 4J) after the predetermined time of the CW monitor timer has elapsed (Fig. 4E), and the telephone set 9 is connected to the telephone link 24. When a panelist responds to the ringing by off-hooking the telephone hand-set, the ring back tone is stopped (Fig. 4G) and the ring back tone output timer is stopped (Fig. 4F). When the panelist does not respond to the ringing, the ring back tone is stopped after the given time period (Fig. 4J) and the telephone set 9 is disconnected from the telephone link 24. In the present embodiment, the on/off condition of photocouplers 33 and 34 is checked by the interruption so that it is always checked whether the telephone set 9 is in the off-hook condition or in the on-hook condition. When the photocouplers 33 and 34 are made on, T relay and CML relay are made off and TP relay is made on so that the telephone link 24 is connected to the telephone set 9 after it has been confirmed the off-hook condition. During the telephone set 9 is used, the similar monitoring operation is carried out, and when the photocouplers 33, 34 are made off, TP relay is made off after confirming the on-hook condition. Now the operation of the apparatus will be explained in detail with reference to Fig. 5 showing a flow chart of checking the busy state of the telephone set 9. In case that the CI interruption has not been effected (step S₂), The DSC interruption has not been effected (N in step S₃), the on-line communication is not carried out (N in step S₄), C/I·DSC input is not effected (N in step S₅) and the calling mode is not performed (N in step S₆), that is to say in case that the start flags for the off-hook monitor timer and on-hook monitor timer have not been set (N in steps S₇ and S₈), the condition of the port 66 is checked. When the off-hook condition is detected (Y in step S₉), the start flags for the off-hook monitor timer is set and the above explained delay time is set for the off-hook monitor timer (step S₁₁). When the off hook condition is not detected (N in step S₉), the busy check flag (off-hook flag and on-hook flag) and the off-hook monitor timer are initialized (steps S₁₄, S₁₅). When the off-hook condition is first detected, since the start flag for the off-hook monitor timer has not been set, the step S₇ goes into No. When the off-hook monitor timer is set in the step S₁₀, during next repetitive operation, the step S₇ goes into Yes. When the off-hook condition is detected in step S₁₆ (N in step S₁₆), the busy check is repeated until the off-hook timer becomes zero by the steps S₁₇ and S₁₈. When the timer becomes zero (N in step S₁₈), it is possible to confirm that the handset is in the off-hook condition, so that the ring back tone output timer is stopped (step S₁₉) to stop the generation of ring back tone (step S₂₀). Then, CML and T relays are mode off to disconnect the terminal from the telephone link 24, and further TP relay is made on to connect the telephone set 9 to the telephone link (step S₂₁). Since the start flag for the off-hook monitor timer is no more necessary, the start flag is cleared (step S₂₂). During the call, it is necessary to monitor spurious on-hook, so that the start flag for the on-hook monitor timer is set (step S₂₃). Therefore, in a next cycle, the step S₈ goes into Yes and the flow goes into the step S₂₄. When the off-hook condition is detected to confirm that the telephone set 9 is still used (Y in step S₂₄), the start flag for the on-hook monitor timer is cleared (step S₂₈), and the on-hook monitor timer value of 20 seconds is set (step S₂₉). The process goes circularly through S₁→S₂→S₁₆→S₁₃→S₈→S₂₄→S₂₉→S₁₃→S₁ until the on-hook is effected. When the telephone set 9 is brought into the on-hook condition, the step S₂₄ goes into No, so that the process is transferred into the step S₂₅, and the on-hook monitor timer flag is checked. In the first cycle, the flag is not set so that the step S₂₅ goes into No, and the flag is set in the step S₂₆. Next, the on-hook monitor timer having the timer period of 20 seconds is set (step S₂₇), and the above mentioned circular loop is traced again. In this time, since the start flag for the on-hook timer has been set, the step S₂₅ goes into Yes. By means of steps S₃₀ and S₃₁, the circulation is effected until the timer period has elapsed. When the timer period becomes zero, the on-hook has been confirmed (N in step S₃₁), so that the busy check flag is cleared (step S₃₂), on-hook monitor timer flag is cleared (step S₃₃), the off-hook monitor timer is initialized (step S₃₄) and TP relay is made off (step S₃₅). Next the operation of the terminal call will be explained with reference to a flow chart illustrated in Fig. 6. When the terminal call mode is selected (step S₄₁), one or more centers are selected (step S₄₂). A plurality of centers may be provided in such cases that the call charge might become high due to a wide range over which terminals are distributed and that the number of terminals is too large to process data by means of a single center. When either one of the centers 1 and 2 is to be selected, either one of the switches 1 and 2 on the port 92 is made on, and when both the centers are selected, both the switches are made on. Next, either one of the every day call and every week call is selected by making the switch 3 of the port 92 on or off (step S₄₃). The switch 4 on the port 92 is used to select DSC and free dial in which the call charge is paid by the center (step S₄₄). In case of using the subscriber's telephone link and private telephone link, since the call for transmitting the data is charged to the center, the free dial is usually selected. CPU 80 checks the port 91 by the interruption for one second, and when the terminal call mode is selected, the data of the real time timer 85 and the data stored in the non-volatile RAM 48 are compared with each other (step S₄₅). When the real time becomes identical with the call time, it is checked whether the telephone set in the panelist home is used or not. When the telephone set is used, the dial is initiated after the on-hook condition is attained. Next, the port 92 is read out and the telephone number of the center is set in the register (step S₄₆). When the two centers 1 and 2 have been selected, at first the center 1 is accessed. When the access to the center 1 could not be attained, then the center 2 is accessed. This operation is repeated eight times. A next operation differs for the pulse dial and push-button dial. In case of the push-button (N in step S₄₇), T, CML, S and D relays are made on (step S₄₈) so that the telephone link is connected to DTMF circuit 55. Then, a prepause timer having a timer period of 3.2 seconds is set (step S₄₉). The prepause time is a time during which the dial signal can be received after the D.C. circuit is closed. According to the normal specification, the prepause time is defined to 3 seconds, but in the present embodiment the prepause time is set to 3.2 seconds. Next a first digit of the telephone number is read out (step S₅₀) and a tone signal corresponding thereto is generated (step S₅₁). A width of the tone signal is controlled by a tone output timer having a timer period of 70 ms and the period of the tone signal is controlled by a tone cycle timer having the timer period of 125 ms. Then a next digit of the telephone number is read out (step S₅₂) until the last digit has been read out (step S₅₃). When the telephone set is the pulse dial (Y in step S₄₇), T, S and D relays are made on to close contacts t¹, s¹ and d¹ (step S₅₄), the line is closed for the direct current and is connected to the dial pulse transmission circuit. The prepause time of 3.2 seconds is also applied to the pulse dial (step S₅₅). The dialing is carried out by changing the D relay from the on condition to the off condition. The pulse off time is controlled by a pulse off timer such that the pulse off time is set to 70 ms for 10 PPS and 33.5 ms for 20 PPS, and at the end of the off time, D relay is made on. The pulse period is controlled by a pulse cycle timer such that 100 ms for 10 PPS and 50 ms for 20 PPS. At the end of the pulse cycle time, the D relay is made off and the number of pulses is controlled by a dial pulse counter to produce a pulse series (step S₅₇). Then after interposing a pause time (minimum pause time is 620 ms for 10 pps and 470 ms for 20 PPS), a next digit of the telephone number is read out (step S₅₉) and a corresponding pulse series is generated, This process is repeated until the last digit is read out. A next process differs for DSC and free dial. In case of DSC (Y in step S₆₁), T, S and D relays are made on (step S₆₄) and the interruption for DSC is allowed (step S₆₅), and in case of free dial (N in step S₆₁), T and CML relays are made on (step S₆₂) and the CW is allowed (step ₆₃). As explained above, in the terminal call mode, the response due to CW or DSC from the center is waited (step S₇₁) and when the interruption due to CW or DSC is not performed during the timer period of several tens seconds of DSC timer, the retry is effected after fifteen minutes. When the two centers have been selected, the retry is carried out alternately for the first and second centers. Since the retry is allowed eight times, when the number of retry is not reached the eight times (step S₆₇), the recall time of fifteen minutes is attained (step S₆₈). When the communication could not be effected by the eight time retry, the process is treated as the error (step S₆₉). It is advantageous to effect the real time communication in the terminal call mode, and start and end timings may be previously written into the non-volatile RAM 48 from the center. When the real time becomes identical with the start timing, the center is accessed in the terminal call mode and the data is transmitted to the center on the real time. Therefore, the telephone link becomes busy. The center immediately processes the received data to provide update data. As explained above in detail according to the present embodiment, the telephone number of at least one center, start and end times of the time gate TG, terminal call time, data format of the terminal call, real time call start and end times, etc. are stored in the non-volatile RAM 48, and the data stored therein can be rewritten from the center by means of commands denoted in the on-line protocol. Therefore, even if the terminals are spread over a wide range, the alternation and expansion of the data collecting system can be effected at will. Further, the center can read out the data stored in the terminals at any desired times. In the present embodiment, by manually operating the switches provided on the ports it is possible to set the on-line mode, center call mode, terminal call mode, selection of the first and/or second centers, every day communication/every week communication, and selection of DSC/free dial. It should be noted that it is also possible to store necessary data for the above mentioned selections in the non-volatile RAM. Also in this case, the data may be easily altered from the center. As explained above in detail, in the data processing apparatus according to the invention, data can be easily collected from a number of terminals, because both the center call mode and terminal call mode are prepared in each terminals and the data can be transmitted from the terminal to the center by using any one of the two modes. Usually the center call is carried out during the mid-night and early morning during which the traffic is small, and the terminal call is effected during a high traffic time period. When the communication could not be effected, the retry is repeated by the predetermined number of times. When a plurality of centers are provided, the terminal can access the centers cyclically. This results in that the probability of loss can be further decreased. Further, the telephone number of center, times of time gate TG, terminal call time, etc. are stored in the non-volatile RAM and can be rewritten from the center, so that the expansion and alternation of the system can be carried out at will. The time gate in the center call mode is set during the mid-night and early morning and further in the terminal call mode the call times of respective terminals are set such that the terminal calls are not overlapped with each other, so that the panelists can use their telephone sets without feeling any difficulty. In case of using the subscriber's telephone set in the panelist home, the condition of the telephone set is monitored every 50 ms by the interruption and the data transmission is effected in a time period during which the telephone set is not used. All the cost for transmitting the data is charged to the center so that the system can be easily accepted by the panelists. Due to the above features, a very large number of panelists can be spread over the whole country without any difficulty and every effective data can be collected. In addition to the every day transmission and every week transmission there is further provided the real time transmission, so that the estimation of television programs being broadcasted and the effect of the commercial can be promptly obtained at the center. This will lead to an entirely new usage of the system. In the above embodiment, the data for deriving the television audience rating and the market research data are collected and processed. However, according to the invention any other data such as atmospheric data, public pollution data, search data for social matters, questionnaire data, etc. can be equally collected. It should be noted that the present invention is not limited to the above mentioned embodiment, but many alternations and modifications for circuit construction, timing charts and flow charts may be conceived by those skilled in the art within the scope of the invention.

Claims: A data processing apparatus (8) for use in an electronic research system in which in a number of panelist homes data is formed into transmission data having a given format and the transmission data is transmitted to at least one data center (10) via a telephone link (24) which is commonly used by a telephone set of each panelist home, comprising center call transmission means (20, 21, 22) for effecting a center call in which the transmission data is transmitted from the panelist home (1) to the data center in response to a call from the data center to the panelist home within a predetermined time gate (TG) characterised by: terminal call transmission means (20, 21, 22) for effecting a terminal call in which the transmission data is transmitted from the panelist home to the data center in response to a call from the panelist home to the data center; and control means (80, 91) for selectively operating said center call transmission means and terminal call transmission means. An apparatus according to claim 1, wherein said terminal call transmission means (20, 21, 22) is constructed such that said terminal call is effected during a terminal call time which has been set outside said time gate (TG). An apparatus according to claim 2, wherein the apparatus further comprises a memory (84) for storing the transmission data, and said control means (80, 91) is constructed such that the transmission data read out of said memory is transmitted from the panelist home (1) to the data center (10) at a regular period. An apparatus according to claim 3, wherein said regular period is selectable from once a day and once a week. An apparatus according to claim 2, wherein said control means (80, 91) is constructed such that the transmission data is transmitted from the panelist home (1) to the data center (10) in a real time mode, while the panelist home and data center are kept connected to each other via the telephone link (24). An apparatus according to claim 2, wherein said control means (80, 91) includes a non-volatile RAM (48) in which various kinds of instructions such as a telephone number of at least one data center (10), start and end times of the time gate (TG), the terminal call time, and the data format are stored, and means for rewriting any one of said instructions in accordance with commands sent from the data center (10). An apparatus according to claim 2, wherein said control means (80, 91) comprises means (33, 34) for monitoring the condition of a telephone set (9) of the panelist home and means (TP) for connecting the telephone link (24) to the telephone set when the monitoring means detects an off-hook condition of the telephone set within said time gate (TG). An apparatus according to claim 2, wherein said control means (80, 91) is constructed such that when the communication between the panelist home (1) and data center (10) could not be attained, a retry is effected a predetermined number of times. An apparatus according to claim 2 for use in the electronic research system including a plurality of data centers (10), wherein said control means (80, 91) is constructed such that said terminal call transmission means (20, 21, 22) calls successively each of said plurality of data centers (10).

Inventors: ITOH YOSHIKAZU, WAKE SHUNJI C O IKEGAMI TSUSHI, ITOH, YOSHIKAZU, WAKE, SHUNJI C/O IKEGAMI TSUSHINKI CO. LTD.
Applicants: IKEGAMI TSUSHINKI KK, VIDEO RES, IKEGAMI TSUSHINKI CO., LTD., VIDEO RESEARCH LTD
Application year: 1988
Main classification: H04H9
IPC codes: H04N17, H04H9, G06Q50, H04M11