METHOD FOR TRANSMISSION OF DIGITAL INFORMATION

Abstract: Procedure for the transmission of digital data in a control/monitoring system of a building, said system consisting of room-specific nodes interconnected by means of fibre-optic or galvanic cables and used as control units. In the system, the data flows in the form of packets containing the fields required for data transmission in the system. Digital data and analog data converted into digital form are transmitted in the system, analog data being converted into digital form by taking samples of it at a given sampling frequency. Each packet contains data to be transmitted at at least two different sampling frequencies. Moreover, each node takes care of substantially all of the control/monitoring data needed in the place where the node is located.

Description: METHOD FOR TRANSMISSION OF DIGITAL INFORMATION. The present invention relates to a procedure for the trans¬ mission of digital data according to the introductory part of claim 1. The increasing number of functions of and devices used in buildings and the increasing safety and environmental re¬ quirements impose new requirements on the development of sys- terns for internal transfer of data and energy within a build¬ ing. In a commercial building, dozens of different systems are needed, and their number is increasing in homes as well. To solve the problem of the expenses resulting from the installation and renovation of these systems, general systems designed to replace separate ones have been developed. In this type of "intelligent" system, it is possible to connect e.g. temperature sensors and electromechanical actuators to the same conductor. In these systems, however, several types of medium are used according to the type of mechanical connection of the devices or other requirements. There are also a number of data links completely outside these systems, including e.g. public address and centralized radio systems, data networks and telephone networks. In the present invention, all data transmission required in a building is integrated in a single medium. Excluded from the system is only the television aerial signal, but this, too, can be included when the component speeds increase in the future. However, video signals can be transmitted in com¬ pressed form even through a slow communication link, such as the 11 MHz link presented as an example in this application. In the system in question, the central component is a room-specific node, a local electronic control centre with a sufficient number of connections for the control, monitoring and data transmission functions required for one room. All devices needed in a room can be connected to the system: illuminators, electric heaters or electrically operated circulation water valves, different motors, locks, etc. The detectors used to obtain the information required for control and alarms include temperature, brightness, proximity, smoke and burglar alarm sensors. Devices using or producing infor¬ mation coded into different forms include computers, loud¬ speakers, telephones, and in hotels e.g. the pay-television program selector. All these devices can be connected to a single node simultaneously if necessary. The features characteristic of the procedure of the invention are presented in the claims attached. In the following, the invention is described in detail by the aid of an example by referring to the attached drawings, in which Figure 1 presents the functions controlled by a node at the room level. Figure 2 presents a small system according to the invention, in which CN is the central node, CRD is a centralized radio device. Mod is a telephone modem, Tel is a telephone exchange or a telephone line, and NI ... N4 are nodes. Figure 3 presents a large system according to the invention, in which CN is the central node, CRD is a centralized radio device. Mod is a telephone modem, Tel is a telephone exchange or a telephone line, and N1 ... N4 are nodes, PTV is a pay-television centre, Mon monitoring and control, Al alarms and Rep reporting. Figure 4 presents a data packet in which SYN is synchroniza- tion pattern, f leading flag, A address field, D data field, P parity, Tf trailing flag, C telephone channel counter, T telephone channel field and 3 hifi sound. Figure 5 presents a system of the invention comprising a central node and two other nodes. Connected to the central node are a telephone exchange and a centralized radio program source, to the first node a pair of loudspeakers for stereo sound, and to the second node two telephones. Figure 6 presents the data transmission electronics, in which T&C is- timing and control, MI microprocessor interface, F flip-flop, M multiplexer, L line amplifier, B buffer, S shift register, D demultiplexer, VC volume control, m multiplexer control, a audio signal, t telephone signal, c command, mi microprocessor interface, and 1 loop. Figure 7 presents a block diagram representing the transmis¬ sion of signals, where as is analog signal, ADC is A/D con¬ verter, and MUX is multiplexer. Figures 8 represent the communication of commands. The node controls the devices in the room independently according to the sensor data and the instructions given. For the control, information may be needed from other nodes connected to the system or from outside. The operation of a centralized radio system, telephone, data network and video camera monitoring generally requires communication with the corresponding central device. To implement the data transmis¬ sion, 2 - 125 nodes can be connected together by means of galvanic paired or coaxial cable or optic fibre (fig. 1) to form a data network. The nodes in the network form a loop. The procedure of the present invention provides extremely varied and flexible possibilities for data transmission between the nodes. Each node can function both as a transmit¬ ting and as a receiving unit. One of the nodes is the central node. In large systems, the central node of each loop is placed in the control centre of the next level. In this way, a star network (fig. 3) is formed, in which the control centre is the centre and the loops form the points of the star. Small systems have only one loop (fig. 2). The central node is provided with connections e.g. for a centralized radio program source and for a telephone subexchange. One of the functions of the central node is retransmission of the necessary channels (e.g. telephone channels) into the net- work, because the data in the loop flows in one direction. For instance, the data of the last node in the loop ends up in the central node, from where it has to be rewritten into the loop to allow it to be read by another node. In the system of the example, the internode communication comprises: 1) command links, of which there may be several in operation simultaneously between any two nodes. 2) telephone connections, 16 lines. The number of lines can be increased in groups of 8 lines. Each group supersedes a mono centralized radio channel. 3) centralized radio hifi sound, 10 channels, unless the number is reduced by other connections, such as telephone connections. 4) compressed video channels. The bandwidth depends on the number of audio channels connected to one video channel. The bandwidth of an audio channel is 704 kHz. 5) computer data network. Uses the same channels as audio connections. Max. ten connections. Functionally, the above-mentioned transmission connections correspond to corresponding numbers of galvanic cable connec¬ tions which can be connected via software between two or more nodes. For instance, to establish a telephone connection, a free telephone line is selected and taken into use between two nodes. One of these is generally the central node of a loop. In centralized radio, a desired channel is selected, or two channels if stereo sound is desired. Several nodes can listen to the same channel. A centralized radio connection typically uses one-way communication, whereas a telephone connection uses two-way communication. In other words, the connections replace a bundle of cable connections. Besides, the number of cables replaced is considerably larger than the number of the logical connections mentioned, because in practice e.g. each telephone requires its own separate line from the exchange to the telephone set. The electronics containing all the required properties can be placed almost completely in a single integrated circuit. Thus, a very simple physical implementation is achieved for a universal data transmission procedure which can also be easily managed by designers and installers. Technical implementation In practice, a transmission link should have a speed of at least 10 MHz to have sufficient communication capacity. In the present invention, a speed of 11 MHz, which is a multiple of the sampling frequency 44 kHz, has been selected. For the purposes of the invention, it is immaterial whether the link is a galvanic or a fibre-optic one. The selection depends on factors that, in principle, are of secondary importance, such as price and the requirements imposed by the circumstances. Data flow in the loop is unidirectional. If a specially high reliability is required and the system is expected to remain capable of continuing transmission even if the connection between any of the nodes should break, a duplicate system can be built by adding a stand-by loop in which data flows in the opposite direction. The essential parts of the electronics required for the data transmission are implemented as an integrated circuit (fig. 6). The electronics needed around the IC depend on the func¬ tion of the node. The central node has two circuits, one for sending the packet and the other for receiving it from the loop. Operation The central node starts the communication by sending a packet consisting of a synchronization pattern followed by other fields, some which are filled in by the central node. The next node transmits the packet further to the next one, but reads the field reserved for its own use and replaces its content with new data if the node is part of a bidirectional link. If the link is unidirectional, the node only either reads the field or replaces its content. The delay occurring in a node is only one and a half bits (0.136 μs). The delay- varies somewhat because the clock generators of the nodes are not synchronous with each other. Immediately after the cen¬ tral node has transmitted the last bit of the packet, it starts sending a new one. Just before the transmission of the new packet, those fields of the last packet returned complete that are to be retrans¬ mitted are loaded into the new packet. This completely re¬ turned packet has a consecutive number lower by two than that of the one being transmitted. Since the number of nodes in a loop varies, a packet arrives back to the central node after a delay depending on the num¬ ber of nodes in the loop. It is essential to the operation of the system that the delay occurring in the loop never exceeds the length of the packet. The central node is always sending the next packet when the previous one returns. A loop may contain as many as a hundred nodes, so it is essential to the operation of the system that the delay should be as low as 0.136 μs, as mentioned before. The incoming packet generally contains fields that should be retransmitted with the out- going packet. However, there is no time to transfer them into the packet already being sent, so they are transmitted with the next one. Therefore, in addition to the delay occurring in the nodes, a packet passing through the central node is delayed by an amount corresponding to two packets, i.e. 45.5 μs. This is a delay insignificant in itself. However, the treatment of telephone channels requires a special arrange¬ ment, which will be discussed later on. Communication of commands The system has a command communication facility by which the central node can transmit to the nodes commands controlling other data communication as well any data required by the system. A command link is always a connection between two nodes, and the central node is no exception in this respect. In the communication of commands, the length of the field containing actual data is 16 bits. The interpretation of these bits depends on whether the communication takes place for the making/breaking of a connection or for actual data transmission. To establish a contact with another node, a node first asks the other node whether it is free. Assuming that the node seeking contact is node number mm and the target is node number nn: 1) The caller mm inquires whether nn is free (fig. 8a) Bit 15=0 when the word contains data relating to the making/breaking of a connection (handshake data). Bits 14-8 always contain the address of the target of the message. When Bit 15=0 and bit 7=0, bits 6-0 contain the address of the caller. 2) The target responds (fig. 8b) When bit 15=0 and bit 7=1, bits 6-0 contain a code, in this case the information about whether the target is busy or free. If the target is free, it inidcates this with a code and knows that the bytes arriving next come from the same caller. 3) The caller mm transmits its message byte by byte (fig. 8c) When bit 15=1, bits 7-0 are taken to be the data byte to be transmitted. 4) The caller mm ends the message by sending a handshake word according to item 2. 5) The target acknowledges the end of communication by means of a corresponding handshake word, the code part of which may contain an indication of whether the message was correctly received. A word in the communication of commands is always preceded by a flag (leading flag) indicating whether the field is free. The caller can only write into a free word. When the caller detects a free-flag r it changes it to a reserved-flag and writes a new content into the word. When the target reads its own address from the word, it has to release it for use by others. However, by the time the target realizes that the address coincides with its own, the preceding flag has already been transmitted to the next node and can no loger be written to. Howevr, the word is followed by a trailing flag into which the node can write to indicate that the word is released. When the word is again loaded for retransmission into the loop by the central node, the leading flag is up¬ dated according to the trailing flag and the latter is reset. Thus, a word always remains reserved at least during its passage from the caller to the central node (fig. 8d) . The bits in the word are transmitted from left to right. Tf is trailing flag, P is parity bit and Lf is leading flag. The principle of command communication allows a completely asynchronous connection between nodes. This reduces the need for data buffers at the nodes and thus lowers the cost of their electronics. In command communication, 36 simultaneous connections can be maintained if the transmission speed of each connection is 9600 baud. Telephone traffic In telephone traffic, the sampling frequency is 8 kHz instead of the 44 kHz frequency for other channels. Conversion accuracy is 8 bits. Complete transmission of one telephone channel takes place during four packets. In a packet there are two bits reserved for one telephone channel. A complete transmission cycle consists of 11 packets and is as follows: Packet 1 contains telephone channel bits 0 and 1 , packet 2 bits 2 and 3, packet 3 bits 4 and 5, packet 4 bits 6 and 7, packet 5 is empty, packet 6 contains bits 0 and 1 , packet 7 bits 2 and 3, packet 8 bits 4 and 5, packet 9 bits 6 and 7, packet 10 and 11 are empty. In other words, two 8-bit samples are transmitted at a frequency of 4 kHz, which means a sam- pling frequency of 8 kHz. If the ISDN command channels are in use, they can be placed on the empty bits. The packet has a field common to all telephone channels, indicating the number (phase) of the packet being sent from the central node. For example, if the central node is sending packet number three, then at the beginning of the transmis¬ sion it will receive the latter part of packet number two and at the end the first part of packet number three. The tele¬ phone fields of packet number two that are to be retransmit- ted into the loop can only be transferred into packet number four, before the transmission of which all of packet number two has arrived to the central node. In other words, a node has to take care that, when it reads the two bits from the telephone channel reserved for it, e.g. if for packet number two those bits are bits 2 and 3, then it has to write in their place bits 6 and 7, which belong to packet number 4. Other signals A packet contains 10 fields that can be used for the trans¬ mission of a hifi-level audio signal, a compressed video signal or of data. Several channels can be reserved for a single video signal according to the picture quality required. The channels are separated by a 0-bit to prevent the occur¬ rence of more than 16 successive 1-bits and the confusion of the bit sequence with the synchronization pattern. The 0-bit can also be used as a parity bit if care is taken that the word does not contain more than 8 successive 1-bits. Characteristics 1 ) Command connections: - Connection between any two nodes - Unlimited number of simultaneous connections - Transmission speed 44000 (8-bit) bytes per second - Correctness of transmission checked by software 2) Telephone connections: - 16 lines, expandable in groups of 8 lines, each additional group taking up the space of one hifi audio channel - transmission speed: 8000 (8-bit) bytes per second - ISDN command connection 16 kb/s 3) Centralized radio hifi sound: - Max. 10 channels - Can be connected as five stereo channels - Transmission speed: 44000 words (16 bits) 4) Computer data transmission and monitoring video camera image transmission: - Uses the same channels as hifi sound - The same transmission speed as for hifi sound In all connections, any node can function both as transmitter and as receiver.

Claims: CLAIMS 1. Procedure for the transmission of digital data in a con- trol/monitoring system of a building, said system consisting of room-specific nodes interconnected by means of fibre-optic or galvanic cables and used as control units, in which system the data flows in the form of packets con- taining the fields required for data transmission in the system, and which system works by transmitting digital data and analog data converted into digital form, the analog data being converted into digital form by taking samples of it at a given sampling frequency, characterized in that each packet contains data to be transmitted at at least two different sampling frequencies, and that each node takes care of substantially all of the control/ monitoring data needed in the place where the node is located. 2. Procedure for the transmission of data according to claim 1 , characterized in that each node is able both to receive data by reading a field in the packet and to transmit data by replacing the data in a field of the packet with new data. 3. Procedure according to claim 1 for the transmission of data in a system at least partially implemented in the form of a loop, characterized in that the data either flows in one direction in the loop or, in systems requiring special reli- ability, a duplicate loop is used, the data in the other loop flowing in the opposite direction. 4. Procedure for the transmission of data according to claim 1 or 3, characterized in that the packets are transmitted in the loop at a constant frequency. 5. Procedure for the transmission of data according to claim 1 , characterized in that the delay occurring in the passage of a packet through all the nodes of the loop and back to the central node is, even at its maximum, less than the time elapsing during the transfer of one packet, said delay being dependent on the number of nodes, and that the consecutive number of a packet completely returned to the central node is always lower by two than that of the packet being transmit¬ ted, so that especially telephone signals to be transmitted at a frequency lower than the packet frequency can be as¬ sembled on the basis of the current number of the packet transmission cycle relating to the transmission of telephone signals. 6. Procedure for the transmission of data according to claim 1 , characterized in that the loop has a central node which controls the timing of the transmission of the packet, fills in the required fields from different sources and copies the necessary fields from the packet received from the loop for retransmission into the loop, and that several loops can be connected by means of said central node to form a larger system. 7. Procedure for the transmission of data according to claim 1 , characterized in that a command field contained in the packet conveys commands controlling other data communication from the central node to the nodes as well as all data trans- isson required by the control/monitoring system. 8. Procedure for the transmission of data according to claim 7, characterized in that the command field is preceded by a flag indicating whether it is free or reserved, passing this information to a node writing to said field, and that the command field is followed by another flag, by means of which a node having just read the field can release it. 9. Procedure for the transmission of data according to claim 1 , characterized in that, if any one of the nodes does not receive a packet from the loop, it will start sending packets independently into the loop, enabling a break in the loop to be automatically located. 10. Procedure for the transmission of data according to claim 1 , characterized in that the packet contains a synchroniza- tion field, by means of which the fields of the packet can be located, and that the occurrence of data in the format of the synchronization field data is prevented in other parts of the packet. AMENDED CLAIMS [ received by the International Bureau on 16 September 1993 (16.09.93); original claims 1, 3 and 5 amended; other claims unchanged (3 pages)] 1. Procedure for the transmission of digital data in a con- trol/monitoring system of a building, said system consisting of room-specific nodes interconnected by means of fibre-optic or galvanic cables and used as control units, which form a loop, and of which one node operates as a central node, in which system the data flows in the form of packets including the fields required for data transmission in the system, the fields further comprising fields for commands and corresponding data transfer required by the system, as analog data converted to digital form, of which fields the command fields have leading and trailing flags expressing the status, characterized in that in the command field the receiver releases the field for following user by means of a status bit acting as a trailing flag and being the last in the time scale, which status bit is transmitted in the time scale by the central node to become a status bit preceding the field in question and acting as a leading flag, which informs the following user about the status of the field, whereby the transmission delay caused by the number of the nodes is even at its maximum less than the time needed for the transmission of one packet when the number of nodes is at the most half of the number of bits in the packet and when the delay of one node is always less than the transmission time of two bits. 2. Procedure for the transmission of data according to claim 1, characterized in that each node is able both to receive data by reading a field in the packet and to transmit data by replacing the data in a field of the packet with new data. 3. Procedure according to claim 1 for the transmission of data in a system at least partially implemented in the form of a loop, characterized in that the data either flows in one direction in the loop or, in systems requiring special reli-ability, a duplicate loop is used, the data in the other loop flowing in the opposite direction. 4. Procedure for the transmission of data according to claim 1 or 3, characterized in that the packets are transmitted in the loop at a constant frequency. 5. Procedure for the transmission of data according to claim 1, characterized in that the delay occurring in the passage of a packet through all the nodes of the loop and back to the central node is, even at its maximum, less than the time elapsing during the transfer of one packet, said delay being dependent on the number of nodes, and that the ordinal number of a packet completely returned to the central node is always lower by two than that of the packet being transmitted, so that especially telephone signals to be transmitted at a frequency lower than the packet frequency can be as-sembled on the basis of the current number of the packet transmission cycle relating to the transmission of telephone signals. 6. Procedure for the transmission of data according to claim 1, characterized in that the loop has a central node which controls the timing of the transmission of the packet, fills in the required fields from different sources and copies the necessary fields from the packet received from the loop for retransmission into the loop, and that several loops can be connected by means of said central node to form a larger system. 7. Procedure for the transmission of data according to claim 1, characterized in that a command field contained in the packet conveys commands controlling other data communication from the central node to the nodes as well as all data trans-misson required by the control/monitoring system. 8. Procedure for the transmission of data according to claim 7, characterized in that the command field is preceded by a flag indicating whether it is free or reserved, passing this information to a node writing to said field, and that the command field is followed by another flag, by means of which a node having just read the field can release it. 9. Procedure for the transmission of data according to claim 1, characterized in that, if any one of the nodes does not receive a packet from the loop, it will start sending packets independently into the loop, enabling a break in the loop to be automatically located. 10. Procedure for the transmission of data according to claim 1, characterized in that the packet contains a synchroniza-tion field, by means of which the fields of the packet can be located, and that the occurrence of data matching the synchronization field data is prevented in other parts of the packet.

Inventors: MARTTINEN TAPIO, MARTTINEN, TAPIO
Applicants: MARTTINEN TAPIO, MARTTINEN, TAPIO
Application year: 1993
Main classification: H04L12
IPC codes: H04L12