Abstract:
The present invention relates to a circuit controlling terminal equipment identifiers identifying said terminal equipment in a communicating apparatus wherein a number of the above-mentioned terminal equipment are connected to a network, and makes it possible to reduce the amount of hardware make the operation faster and facilitate the control of TEI assignment by using the address of a memory storing binary data as the TEI value.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a communicating apparatus wherein a number of terminal equipment are connected to a network, and to be further detailed, it relates to a circuit controlling terminal equipment identifiers identifying terminal equipment. 
     2. Description of the Prior Art 
     The apparatus performing communication processing according to the HDLC (High-level Data Link Control)-type data link layer controlling procedure has been known. FIG. 1 shows a configuration of an in-house network shown in the CCITT Recommendation I.430, and a subscriber line 41 such as a telephone line controls an in-house bus 42, and a controlling apparatus 43 terminating the subscriber line is connected thereto, and terminal equipments TE0, TE1 . . . TEn such as a telephone and a facsimile are connected to the in-house bus 42. Numerals 44 in the figure designate terminating resistors. 
     In the above-mentioned Recommendation, one telephone number corresponds to one controlling apparatus 43, and discrimination of the terminal equipments TE0, TE1 . . . TEn is made using subaddresses called terminal equipment identifiers TEI. For this reason, it is prescribed that the terminal equipment stores the TEI value thereof, and compares the TEI value of a received number with the TEI value of itself, and takes in the received signal when the both values match with each other. 
     FIG. 2 shows a terminal equipment identifier controlling circuit for performing this operation. Numeral 5a designates an n-bit register storing the TEI values of itself. Taking these values as X 0 . . . X n-2 , X n-1 , these bits are given to exclusive NOR gates 5 0 . . . 5 n-2 , 5 n-1 . On the other hand, the TEI values of the received n bits Y 0 . . . Y n-2 , Y n-1  becomes another input of the above-mentioned exclusive NOR gates 5 0 . . . 5 n-2 , 5 n-1 , and the output thereof is inputted to an AND gate 5b of n input. 
     Numeral 5c designates a comparator constituted with the NOR gates 5 0 , 5 n-2 , 5 n-1  and the AND gate 5bb. And, as obvious from the configuration of this comparator 5c, when the receieved TEI value and the TEI value of itself stored in the register 5a match with each other, a match output is obtained at the AND gate 5b, and thereby the terminal equipment judges that the received signal is for itself, and takes in this received signal transmitted with TEI values, and in the case of mismatch, it neglects that signal. 
     Then, in accordance with the CCITT Recommendation Q.921, one terminal equipment is allowed to have one or more TEI values. Accordingly, in the case where the equipment has a plurality of TEI values, a plurality of registers 5a and comparators 5c are required respectively, and thereby a problem exists that the amount of hardware is increased and the time required for comparison is extended. 
     Also, the TEI value to be assigned to one terminal equipment is unknown in designing and manufacturing it, and therefore another problem exists that no rational design can be performed. 
     In addition, apart from this, the network side is required to control the TEI values assigned to all terminal equipment. 
     SUMMARY OF THE INVENTION 
     A first object of this invention is to provide a terminal equipment identifier controlling circuit capable of easily storing a plurality of TEI values. 
     A second object of this invention is to provide a terminal equipment identifier controlling circuit capable of comparing a plurality of TEI values at one time. 
     A third object of this invention is to provide a terminal equipment identifier controlling circuit which can be universally designed and manufactured irrespective of the number of TEI values to be assigned and wherein the amount of hardware is constant. 
     A forth object of this invention is to provide a terminal equipment identifier controlling circuit capable of immediately judging whether or not the TEI value has been assigned in the main apparatus side. 
     A terminal equipment identifier controlling circuit in accordance with the present invention is designed to make the address of memory correspond to the TEI value. This means that it comprises a memory, a means for giving this memory a terminal equipment identifier as an address signal, a means for writing binary data to the address of the above-mentioned memory corresponding to the address signal given by this means and a means for reading binary data of this address. 
     In the terminal equipment, for example, &#34;1&#34; is written to the address of the memory corresponding to the terminal equipment identifier assigned to itself. Then terminal equipment identifier of the received signal is given to this memory as an address signal, and the data of the corresponding address is read. If the read data is &#34;1&#34;, it can be judged that itself is destination, and if &#34;0&#34;, it is judged that itself is not destination. 
     On the other hand, in the network side, in assigning a terminal equipment identifier to a terminal equipment, the identifier is given to this memory as an address signal, and, for example, &#34;1&#34; is written to the corresponding address. Then, whether or not the terminal equipment identifier has been assigned can be judged by reading this memory. If &#34;1&#34; is read, the assignment has been made, and if &#34;0&#34; is read, the assignment has not yet been made. 
     The above and further objects and features of the invention will more fully be apparent from the following detailed description with accompanying drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram of the conventional apparatus, 
     FIG. 2 is a circuit diagram of the conventional terminal equipment identifier controlling circuit, 
     FIG. 3 is a block diagram showing the whole of a communicating apparatus in accordance with the present invention, 
     FIG. 4 is a block diagram of a major part of a circuit in the terminal equipment side in accordance with the present invention, 
     FIG. 5 is a format diagram of frame data, 
     FIG. 6 is a concept view showing the contents of a memory, 
     FIG. 7 is a block diagram of a major part of a circuit in the main apparatus side in accordance with the present invention, 
     FIG. 8 is a circuit diagram of the memory and its surroundings; and 
     FIG. 9 is a flow chart illustrating the series of steps executed by a controlling part 1 depicted in FIG. 4. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     Hereinafter, detailed description is made on the present invention on the basis of the drawings showing an embodiment thereof. FIG. 3 is a block diagram showing a schematic configuration of the whole apparatus in accordance with the present invention, and FIG. 4 is a block diagram showing a major part of terminal equipments thereof TE0, TE1 . . . TEn. FIG. 3 shows the configuration of the in-house network shown in the CCITT Recommendation I.430, and thereto a main apparatus 10 installed in a telephone exchange office or the like is connected through a subscriber line 41 such as a telephone line. The subscriber line 41 is connected to a controlling apparatus 43 controlling an in-house bus 42 and terminating the subscriber line 41, and the terminal equipments TE0, TE1 . . . TEn such as a telephone and a facsimile are connected to the in-house bus 42. In the figure, numerals 44, 44 designate terminating resistors. In FIG. 4, numeral 1 designates a control part making access to a memory 2 on the basis of the received signal and HDLC frame data FD is inputted thereto from the network side, that is, the main apparatus 10 through the subscriber line 41, the controlling apparatus 43, the terminating resistor 44 and the in-house bus 42. This frame data FD has a format as shown in FIG. 5, and consists of a flag F1 representing the head of the data, an address data AD including a terminal equipment identifier TEI, a control code part CNTL representing character or the like of the transmitted data, a data I to be transmitted, an error check data FCS and a flag F2 representing the end of the data. The controlling part 1 gives the data corresponding to the TEI from the address data AD to the memory 2 as an address signal ADR. Also, the controlling part 1 decodes the control code part CNTL, and outputs a write signal WR when writing &#34;1&#34;, a release signal RS when writing &#34;0&#34;, and a read signal RD when reading data from the memory 2 respectively in a select-one fashion to the memory 2 whereto access is made by the address signal ADR. A data DT read from the memory 2 is given to the controlling part 1. Also, the configuration is made so as to give a clear signal CLR to the memory 2 when resetting the contents of the whole addresses of the memory 2 to &#34;0&#34;, and the clear signal CLR may be given by a switch or the like installed in the terminal equipment side or may be given from the network side. 
     The controlling part 1 judges whether or not the received data is for itself as described later, and when the data is for itself, it gives the data I or the like excluding the Flags F1 and F2 and the control code part CNTL to a post-stage circuit in the terminal equipment. 
     Next, description is made on the operation of the apparatus in accordance with the present invention on the basis of FIG. 6 showing the stored contents of the memory 2. As shown in FIG. 6, the memory 2 has a configuration of 8×8 bits, and the high-order three bits of the address signal ADR (six bits) are taken as column address and the low-order three bits as row address. Before using this apparatus or a terminal equipment, the clear signal CLR is given to reset the memory 2. Then, all of the contents of the memory 2 become &#34;0&#34; as shown in FIG. 6 (a). 
     Subsequently, a TEI is assigned to that terminal equipment from the network side, and in this case, the address frame data AD received from the main apparatus 10 comprises the address data containing the assigned TEI value and the control code part CNTL having the contents showing that the transmitted signal is for assigning the TEI value. The controlling part 1 having received this outputs the write signal WR, and outputs the TEI value as the address signal ADR. In the case where the assigned TEI value is 20 (010100), &#34;1&#34; is written to the address of the third column (010) and the fifth row (100) shown in FIG. 6(b). Thereby, this terminal equipment is assigned the TEI value of &#34;20&#34;. 
     Then, when the normal frame data FD is received in the subsequent communication, the controlling part 1 extracts the TEI value from the address data AD in that data, gives it to the memory 2 as the address signal ADR, and gives the read signal RD. In the case where the received TEI value is &#34;20&#34;, the read data is &#34;1&#34;, and the controlling part 1 takes in the received data as the one for itself. 
     On the other hand, when the value is not &#34;20&#34;, access is made to the address where the stored data is &#34;0&#34;, and therefore &#34;0&#34; is read. In this case, the controlling part 1 neglects it as data for another equipment. 
     FIG. 6(c) shows the contents of the memory 2 of the terminal equipment whereto a plurality of TEI values are assigned. In this case, 7(000111), 35(100011) and 57(111001) are assigned as the TEI values in addition to the above-described &#34;20&#34;. This means that the data of addresses of the first column (000) and the eighth row (111), the fifth column (100) and the fourth row (011), and the eighth column (111) and the second row (001) are &#34;1&#34;. In this terminal equipment, in the case where any one of the TEI values 20,7, 35 and 57 is given in the frame data FD, the read data DT becomes &#34;1&#34;, and the controlling part 1 takes in this as the data for itself. FIG. 6(d) shows the data of the address in the case where the TEI value of the received data is &#34;7&#34; by hatching. 
     FIG. 6(e) shows the read data &#34;0&#34; in the case where the TEI value of the received data is &#34;10&#34;(001010) by hatching In this case, the received data is neglected. 
     As described above, in the case where the TEI values are assigned, when any one of the TEI values is released, the frame data FD having the corresponding control code part CNTL and the TEI value to be released is transmitted from the main apparatus 10. The controlling part 1 having received this gives this TEI value to the memory 2 as the address signal ADR, and gives the release signal RD. Now, in the case where the TEI value to be released is 57, as shown in FIG. 6(f), the data of the address of the eighth column and the second row is replaced by &#34;0&#34;. 
     Then, such a memory is also installed in the main apparatus 10 side. FIG. 7 shows a major part of the main apparatus 10 having a controlling part 11 and a memory 12. Before assigning the TEI values, the controlling part 11 gives the clear signal CLR to the memory 12, resetting all of the stored contents to &#34;0&#34;. In assigning the TEI value to any one of the terminal equipment TE0, TE1 . . . TEn subsequently, the controlling part 11 gives this TEI value to the memory 12 as the address signal ADR, and gives the write signal WR to the memory 12. Thereby, the data of the address corresponding to the TEI value having been assigned becomes 1. Now, in the case where &#34;0&#34;, &#34;1&#34;, &#34;2&#34;, &#34;3&#34;, &#34;4&#34;, . . . &#34;10&#34; are assigned as the TEI values to a single or a plurality of terminal equipments, the contents of the memory becomes as shown in FIG. 7. 
     Then, in the case where the TEI value is assigned anew to any one of the terminal equipments, the TEI value having been assigned must not be used. Then, the controlling part 11 gives the TEI value planned to be assigned to the memory 12 as the address signal ADR, giving the read signal RD to the memory 12. Thereby, the data DT of the corresponding address is read out to the controlling part 11. 
     If the read data DT is &#34;0&#34;, the TEI value thereof has not been assigned, and in reverse, if it is &#34;1&#34;, it can be judged that the value has been assigned. 
     In the case where the TEI value having been assigned is released, this TEI value is given to the memory 12 as the addrss signal ADR, and the release signal RS is given to the memory 12. Thereby, the data of the corresponding address is re-written from &#34;1&#34; to &#34;0&#34;, becoming a value which can be assigned anew. 
     FIG. 8 is a circuit diagram showing a configuration of the memory 2 or 12, and here an example in the case where the total number of TEIs is 16 (=2 4 ) is illustrated, and a memory has a configuration of four rows and four columns, and the address signal ADR is of four bits. 
     The high-order two bits and the low-order two bits of the address signal ADR are given to address decoding parts 21 and 22. The first, the second, the third and the fourth columns are selected corresponding to (0,0), (0,1), (1, 0), and (1, 1) of the two high-order bits respectively, and the first, the second, the third and the fourth rows are selected corresponding to (0, 0), (0, 1), (1, 0) and (1,1) of the two low-order bits respectively. Symbols C 11 , C 12 . . . C 44  designate memory cells, and symbol Cij (i, j=1˜4) designates a cell of row i and column j. Numerals 31, 32, 33 and 34 designate writing and reading circuits on a column basis installed for writing, reading, releasing and clearing. These writing and reading circuits 31, 32, 33 and 34 are configurated with combinations of logical circuits, and are given the clear signal CLR, the read signal RD, the release signal RS and the write signal WR through respective lines 23, 24, 25 and 26, being given the select signal of each column from the address decoding part 21. Also, the read data DT is outputted through a data line 27. 
     Next, description is made on a configuration of the writing and reading circuit 31 and the like. Output of the address decoding part 21 is given to AND gates 30a and 30b. The write signal WR is given to an OR gate 30c, an inverter 30d and the gate of an N-channel transistor 30e one end of which is of ground potential. The release signal RS is given to the OR gate 30c, the gate of a N-channel transistor 30f and an inverter 30g. The read signal RD is given to the AND gate 30b. The clear signal CLR is given to AND gates 30i and 30j through an inverter 30h, and to the gate of a N-channel transistor 30s and an inverter 30t. 
     Output of the OR gate 30c is given to the AND gate 30a. Output of the inverter 30d is given to the gate of a P-channel transistor 30h which is connected in series to the N-channel transistor 30f and is positioned on the power source side. Output of the inverter 30g is given to the gate of a P-channel transistor 30 which is connected in series to the N-channel transistor 30e and is positioned on the power source side. The potential of the intermediate node of a series circuit of transistors 30k and 30f is given to a bit line 30n through a tri-state buffer 30m. The potential of the intermediate node of a series circuit of the transistors 30 and 30e is given to a bit line 30q through a tri-state buffer 30p. Outputs of the AND gates 30a and 30b are given to the AND gates 30i and 30j, respectively. Output of the AND gate 30i is used as control signals of the tri-state buffers 30m and 30p, and output of the AND gate 30j is used as a control signal of a sense amplifier 30r. The sense amplifier 30r outputs binary data corresponding to the level of bit lines 30n and 30q as a readout signal to the data line 27. 
     Output of the inverter 30f is given to the gate of a P-channel transistor 30u. The transistor 30s is inserted between the bit line 30n and the ground potential, and the transistor 30u is inserted between the power source potential and the bit line 30q. 
     Next, description is made on the operation of this writing and reading circuit 31. When a control signal is given, the transistors 30s and 30r are both put in the conductive state, the bit line 30n goes low, the bit line 30q goes high, and &#34;0&#34; is written to each memory cell. 
     When the write signal WR is given, one input of the AND gate 30a of the column selected by the address decoding part 21 goes high, and therefore the output of the AND gate 30i goes high, and the tri-state buffers 30m and 30p are opened. On the other hand, the transistors 30k and 30e are turned on, and therefore, the bit line 30n goes high, and the bit line 30q goes low, and in reverse to the case of the clear signal, &#34;1&#34; is written to the memory cell of the selected memory row. 
     In reverse, in the case where the release signal RS is given, the tri-state buffers 30m and 30p are opened likewise, but in this case, the transistors 30f and 30 are turned on, and therefore the bit line 30n goes low, the bit line 30q goes high, and &#34;0&#34; is written to the selected memory cell. 
     Next, in the case where the read signal RD is given, the output of the AND gate 30b of the selected column goes high, and the output of the AND gate 30j starts the sense amplifier 30r to read the contents of the accessed memory through the bit lines 30n and 30q. 
     In accordance with the present invention as described above, in the terminal equipment, the amount of hardware is constant irrespective of the amount of TEIs to be assigned, and the time required for comparison is also constant, and thereby the present invention is effective to make the equipment smaller-sized and to make the operation faster. Also, the amount of TEIs to be assigned can be determined posteriorly, and therefore the restrictions in design and manufacture are alleviated to a large extent. 
     On the other hand, in the main apparatus side, it is possible to immediately judge whether or not the TEI value has been already assigned. 
     Thus the present invention exerts an excellent effect. 
     As this invention may be embodied in several forms without departing from the spirit of essential characteristics thereof, the present embodiment is therefore illustrative and not restrictive, since the scope of the invention is defined by the appended claims rather than by the description preceding them, and all changes that fall within the metes and bounds of the claims, or equivalence of such metes and bounds thereof are therefore intended to be embraced by the claims.