1. Field of the Invention
This invention relates to a communication system and, more particularly, to a synchronous communication system of nodes interconnected in a daisy chain, each having at least two ports for transferring information across an Ethernet transmission line (i.e., twisted pair of conductors or CAT5) to form a virtual ring network, wherein each node can either provide a master clock or can recover a clock from the network to form the synchronous transfer of various types of data sent in multiplexed channels demarcated by a frame and packet structure signaled by Ethernet coding violations. Ports within each node can accommodate data that conforms to a particular protocol used by the network (i.e., “compliant data”), or the port can accommodate non-compliant data, such as asynchronous Ethernet-based packets of data and/or Sony/Philips Digital Interface Format (“SPDIF”) data.
2. Description of the Related Art
A communication system is generally known as a system that permits communication between nodes interconnected by a transmission line. Each node can transmit information, or can transmit and receive information, across the transmission line. The communication system of interconnected nodes can be organized in various topologies, such as bus, ring, star, or tree topology.
A bus topology network is generally regarded as linear, where transmissions from one node propagate the length of the transmission line and are received by all other nodes connected to that bus. A ring topology network, however, generally consists of a series of nodes connected to one another by unidirectional transmission links to form a single, closed loop. Examples of a ring network are described in IEEE 802.5 and Fiber Distributed Data Interface (FDDI).
The transmission line between nodes can be either wired or wireless. It is preferred that the transmission line accommodate different types of data. Unfortunately, certain portions of a network may be tailored to sending bursts of data, such as TCP/IP across Ethernet, while other portions may be called upon to send streaming data, such as audio and video data. It would be desirable to introduce a network that can transfer both types of information, in whatever form, upon the network. Moreover, it would be desirable to use, for example, copper wire, fiber optic, or wireless transmission medium for the chosen transmission line.
Ethernet and IEEE 802.03 specify a particular protocol in which packets of data can be sent between computing systems. Ethernet can sense multiple access collisions and can arbitrate which source device will gain mastership over the transmission line. Ethernet operates at the lowest levels of the OSI reference model, normally reserved for the data link and physical link layers. The Ethernet protocol specifies a particular frame format of a preamble, followed by a destination address and a source address, and then the data payload. The data is generally encoded in a 4B/5B or 8B/10B encoding structure prior to the data being sent across the coax or twisted pair transmission line.
The encoded packets of data sent within an Ethernet frame generally have no time relationship relative to each other. For example, a computer can send a burst of data in several successive frames, and then a considerable amount of time might pass before the next burst of data is sent. Bursty or packetized data need not be sent as real-time, time-related data since the packets are typically stored and used later by the destination device.
Conversely, streaming data has a temporal relationship between samples produced from a source port onto the network. That relationship between those samples must be maintained across the transmission line to prevent perceptible errors, such as gaps or altered frequencies. A loss in the temporal relationship can cause a receiver at a destination to experience jitter, echo, or in the worst instance, periodic blanks in the audio and video stream.
Packetized TCP/IP data, for example, placed in an Ethernet frame need not maintain the sample rate or temporal relationship of that data, and networks that send packetized data typically send that data at whatever rate the source device operates. Thus, a network that forwards packetized data is generally considered as an asynchronous network. Conversely, a network that forwards streaming data is generally synchronous, with each source and destination node sampling at a rate synchronous to the network.
While streaming data is typically sent synchronously across a network, there may be instances in which the sample rate (fs) local to a node is not at the same frequency as the frame synchronization rate (FSR or FSY) of the transmission line. If this is the case, then the data streaming from a source device can be sample rate converted, and then sent synchronously across the network. Alternatively, the data can be sent isochronously across the network.
There are various types of sample rate converters available on the market. For example, Analog Devices Corp. offers part no. AD1896 to convert the sample rate offered by the local clock to another sample rate synchronous to, for example, another clock associated with the network, for example. Either increasing or decreasing the sample rate would be beneficial if a system can be employed that can match fs to FSY. Sample rate conversion, however, oftentimes involves fairly complex algorithms for comparing fs to FSY, and generally a digital signal processor (DSP) is used at the source node. If, for example, the source node contains compressed data, such as AC3 data streaming from a DVD, the compressed data must be decompressed before the data is sample rate converted. Unfortunately, sending decompressed data consumes more network bandwidth than sending compressed data.
It would be desirable to implement an improved communication system or network. The improved network should be one that can accommodate streaming data in either synchronous or isochronous form. The data streaming from a source node should be sent isochronously rather than sample rate converted. Moreover, the improved network should also accommodate packetized data in order to interface computing systems, such as computers and interactive televisions, to streaming audio and video data accessible by such systems.
The information sent from the various devices 14-20 can be sent to receiver 12 as analog data or digital data. A popular format for digital data is the Sony/Phillips Digital Interface Format (SPDIF). SPDIF was established by the Audio Engineering Society (AES) in conjunction with the European Broadcasting Union (EBU) to create a standard interface known as the AES/EBU interface. The interface constitutes a serial transmission format for linearly-represented, digital audio data. The format is generally independent of sampling frequency, but three sampling frequencies are nonetheless recommended by AES for pulse code modulated (PCM) application: 32 kHz, 44.1 kHz, and 48 kHz. The SPDIF protocol and frame structure is well documented as a series of 16-bit bytes, beginning with control and category codes, as well as the source number and channel number by which data is transferred from a digital source, such as a CD, DVD, or MP3 player.
The SPDIF protocol can, for example, be used by a digital television (DTV) 24, and a packet hub 26 can be used to combine packetized data from, for example, a digital video broadcast (DVB) receiver sometimes known as a set top box 28. Certain commands broadcast from the set top box 28 can be forwarded to hub 26, while streaming data is forwarded to the audio video receiver 12. The command signals that emanate from set top box 28 can be sent as, for example, TCP/IP data within the network layer of the OSI model, which is then wrapped with the Ethernet protocol, recognizable to hub 26. Along with the Ethernet packets from the set top box 28 and digital television 24, hub 26 can also receive Ethernet packets from a personal computer (PC) 30. The packets of information processed by hub 26, therefore, can constitute control information.
It may be desirable to implement interactive television processing in multiple rooms throughout a user's home, or in different homes or locations. For example, another DTV 32 can be situated in a second room, separate and apart from DTV 24 placed in a first room. Alternatively, DTV 32 can be a computer laptop carried outside the home in which DTV 24 resides. Similar to DTV 24, an audio amplifier 34 might form a part of DTV 32 or be built outside DTV 32 and, as shown, receives either digital or analog information. If in digital form, the information can be sent possibly in SPDIF format to amplifier 34, which then processes the digital information and outputs the information to the appropriate left and right speakers, or multiple surround speakers 36.
A prevalent problem with home or consumer audio/video electronics is the rapid advances in digital interaction to those electronics via, for example, PCs. Interacting home electronics with PCs is difficult at best simply due to the differences between asynchronous networks and synchronous networks. Network 10 of
There have been attempts to overcome the problem of interfacing asynchronous transmission lines to synchronous transmission lines in order to network audio and video data. For example, a product known as CobraNet attempts to eliminate the dropouts and discontinuities of streaming data sent across an asynchronous network. CobraNet providers recommend using dedicated Ethernet network for audio, and another dedicated Ethernet network for the packetized data. See, Harshbarger and Gloss, “Networking for Audio, Part 3,” 2004, herein incorporated by reference. Requiring two separate Ethernet networks and maintaining the asynchronous protocol between nodes substantially increases the overhead of the network, and the complexity of software and hardware drivers used by that network.
It would be desirable to introduce a network that can transfer streaming data (both isochronous and synchronous streaming data), as well as packetized TCP/IP data and control data simultaneously across a network. It would also be desirable to send the various types of data across a network that is clocked at the same rate for all such types of data. Thus, the desired network is a synchronous network where sampled, streaming data is cognizant of the network transfer rate, and packetized data is placed onto the network at the network transfer rate. Moreover, the improved network avoids utilizing two transmission paths for audio/video information and packetized data. Any multimedia device which streams data or sends bursts (packets) of data can be formatted and time-slotted onto the desired communication system and network.
The desired communication system or network can utilize a single communication link between nodes coupled in a daisy-chain fashion. Each node desirably has a minimum two ports, and each port can accommodate two pairs of conductors, preferably twisted-pair conductors associated with a CAT 5 cable associated with Ethernet connectivity. The CAT 5 cable is bidirectional and the minimum two port node affords a virtual ring communication topology within a synchronous network not found in conventional topologies. Moreover, the desired system can send streaming and non-streaming data in different time slots within a frame demarcated by a frame coding violation. Within the desired frame are non-streaming or packetized data immediately preceded by a packet coding violation. The synchronizing master clock can be generated from one node within the network, and passed through each of the remaining nodes within the ring to synchronize the different types of data sent as frames of data.
The problems outlined above are in large part solved by a communication system and network made up of a multimedia device having ports coupled together to complete a network to which a second multimedia device can be coupled. Each port is used to determine whether an incoming bitstream from the second device is in compliance with the network protocol or not. If so, then the compliant data is forwarded into the appropriate time slot of the network packet. If not, then the non-compliant data is not directly placed onto the network but instead is recognized by an input of the first device specifically designed to accept the non-compliant data. An interface within the port can be used to reformat, if needed, the non-compliant data and to output it from the first port and into a bypass input of a second port via the ring network. The output from the first port is coupled onto the network path through a bypass output pin of the first port.
As used herein, a multimedia device is any device that sends or receives data in whatever form. Examples of multimedia devices include multimedia hubs, switches and audio processors (i.e., audio and/or video receivers), computers, amplifiers, speakers, multimedia players (i.e., CD players, DVD players, MP3 players etc.), multimedia recorders (i.e., VCRs, DVRs, etc.), and GPS systems. The term multimedia device is henceforth referred to simply as a device.
The network protocol used by the present system involves a preamble that establishes a channel between a source device and a destination device, where the destination device can be any device connected to the network of interconnected devices that is configured in a ring topography. Each frame following the preamble consists of a time-division multiplexed set of fields reserved for respective channels of communication. For example, the first field might be reserved for synchronous streaming data, the second for streaming isochronous data, the third for packetized data, and the fourth for control data. Thus, multimedia devices coupled to the ring can send in each frame at least one type of data. The frame transfer rate (FSY) is synchronized to the sample rate or, alternatively, if the sample rate is higher or lower than FSY, then streaming data can be sent isochronously within a particular time slot or channel, established about the ring network. Therefore, each frame sends contiguous channels of streaming data from a source device to a destination device, without time-interruption between frames. As the streaming data is sampled on the source device, it is sent in real-time across the network within one of possibly N number of channels or fields within a frame, sent at the same rate or possibly integer multiples of fs.
The protocol used by the synchronous network hereof involves specific time-division, multiplexed channels reserved in each and every frame. Each channel is designated for a particular type of data transfer, whether the data type is synchronous, isochronous, packet, or control data. In order to interface with that network protocol, it is imperative to recognize incoming data from a multimedia device as either data that falls within that protocol or outside of that protocol. Data which is timed relative to a frame sync pulse or FSY as a particular type of data offset in time from the FSY pulse for a designated time slot (i.e., time-division, multiplexed channel) will be compliant with the network protocol. The FSY pulse exists as part of the compliant data protocol and is used to signal the beginning of each frame. However, if non-compliant data such as packetized Ethernet data is being sent, the beginning of each frame must be recognized by the Ethernet physical layer device (or PHY transceiver) as the beginning of each frame.
The Ethernet PHY will recognize data encoded in a specific fashion, such as the popular 4B/5B encoding scheme. If, however, a code exists that does not represent any data transferred under the 4B/5B scheme, then that code can be signified as a “violation.” The 4B/5B coding violation can represent the beginning of each frame. Knowing the beginning of each frame, all data can be recognized within one of the time-division multiplexed channels reserved for that particular type of data within that channel. For example, if a channel is designated to receive Ethernet-type data, the Ethernet data is typically placed in the packet within one time slot of a channel existing between a pair of multimedia devices. That time slot is set off and immediately preceded by a packet coding violation. Similar to the frame coding violation, the packet coding violation is represented as a sequence of bits not recognizable as any encoded data under the 4B/5B coding scheme.
A digital-to-analog converter (DAC) typically sends analog signals modulated possibly according to frequency that is dissimilar to the frequency used by the synchronous network. Typically, analog signals range somewhere near 20 Hz-20 kHz, or possibly wider, but certainly much less than the transfer rate of the network which can be much higher than 30 kHz and, more preferably, 44.1 kHz or 48 kHz. Although SPDIF data can be sent at 44.1 kHz or 48 kHz, SPDIF data uses a preamble that is dissimilar from the preamble of data sent across the network. Also, SPDIF data is not time-slot allocated in accordance with the network protocol that accommodates multiple types of streaming and packetized data. Similarly, data sent across a generic universal serial bus (USB) also has a dissimilar preamble. Still further, packets of data sent according to the Ethernet protocol use a protocol different from that used by the network since TCP/IP data within the Ethernet packet is not targeted for a specific time slot of a frame that is regularly sent at an FSY rate, nor is the preamble for packetized data sent as broadcast channels synchronously across the network.
Analog signals, Ethernet packets, USB data, and SPDIF data are transferred at a variable frequency different from the network, transferred at a frequency asynchronous to the network, and/or transferred using a preamble or coding algorithm altogether different from the compliant packets sent across the network. Thus, analog, packetized, and SPDIF data, and possibly other types of data, not consistent with the frequency, amplitude, preamble and coding of the network packets/frames (i.e., the network protocol) are herein referred to as non-conformal or non-compliant data. Multimedia devices that send non-compliant data are, therefore, referred to as non-compliant devices or simply “legacy” devices.
Since SPDIF and Ethernet packets are coded different from the compliant data of the network, devices which send and receive Ethernet and SPDIF data are recognized as non-compliant devices. In order to accommodate the non-compliant coding mechanisms of such devices, a signal is needed to demarcate which channel and which time slot within the frame the non-compliant data resides. A coding violation not recognizable to Ethernet can, for example, establish where the Ethernet packets exist within the frame.
Until the legacy devices can transfer data in the appropriate time slot and at the network transfer rate, the present network implements a port that will accommodate the legacy devices and their associated data bitstreams. However, some devices may comply with the network and, therefore, the port can also recognize compliant devices and their associated data bitstreams. The present network and communication system can connect multimedia devices with one another to form a ring, with each device connected to a port that can recognize and appropriately direct either compliant or non-compliant data sent from each device. The port can receive incoming data from a compliant device onto the network, or can receive incoming data from a non-compliant device into a pin designated to receive the non-compliant data.
According to one embodiment, a pair of communication ports is provided. Both ports can be associated with a first multimedia device. The first port has a first port receive input, a first port bypass input, and a first port output. The second port has a second port receive input, a second port bypass input, and a second port output. The first port output is coupled to the second port bypass input to form a network among the pair of ports (first and second ports). The network allows a second multimedia device to couple incoming data onto the network path and/or communicate with the first multimedia device associated with the first and second ports. If the incoming data from the second multimedia device is conforming to (i.e., is compliant data), then the incoming data can be placed into an appropriate timeslot of the network frame, and the data continues through the first port from the first port bypass input to the first port output, and then into the second port bypass input to the second port output, and back around to the first port bypass input—if only two ports are provided.
If the incoming data is not compliant, then the incoming data is placed into an input of the first multimedia device specifically designated to receive this data, and meanwhile the network continues from the first port bypass input to the first port output, which includes the first port bypass output. The pin is one that preferably receives serial data and, once the non-compliant serial data is processed, it can be reformatted by an interface circuit or system within the first port, if desired, to a format that is compatible with the network protocol. Thus, the reformatted, non-compliant data can be made compliant after it is processed by an interface circuit associated with the first port. Other ports of the network have a similar interface circuit, which preferably comprises a digital signal processor (DSP) that processes the incoming data and a physical layer transceiver device, or controller, that reformats the incoming data to make it compliant to a particular time slot reserved for that type of data.
According to one embodiment, the first port associated with the first device can compare the protocol and a time-division structure of each frame of data transferred across a ring network through the first port, second port, and so forth associated with the first device with the protocol of the incoming data from the second device to determine if the incoming data is compliant with the network protocol. If it is, then the incoming data is said to be sent from a compliant device. If it is not compliant, then the incoming data is sent from a non-compliant, legacy multimedia device. SPDIF, analog signals, and packetized (i.e., Ethernet) data is typically regarded as non-compliant data from non-compliant devices.
A port of the first device can accommodate incoming data from either a compliant or non-compliant device. If it is desirous to connect both compliant and non-compliant devices to the first device, then preferably the first device includes two ports: one port for each connection. The two ports are connected through bypass input/outputs so that each port includes two inputs (a receive input for receiving incoming data and a bypass input) and two outputs (a transmit output for sending outgoing data and a bypass output). The bypass output is coupled to a bypass input of the next port within the series of ports. The bypass output from the last port in the series is coupled to a bypass input of the first port in the series to complete the ring network.
Each port includes an auto detect detector/comparator and multiplexer circuit operably coupled to compare the data sent across the network to incoming data, and forward the incoming data onto the network via a bypass output if the incoming data is in a format similar to the network protocol. The port might include a phase-locked loop having a frequency multiplier and divider for slaving a sampling rate of incoming data to a transfer rate of the data sent across the network. Alternatively, at least one bit can be sent with the incoming data representative of a phase difference between the phase of the incoming data and the phase of data sent across the network. The phase difference information contained in the bit value can then be used, along with the data transfer rate of the network, to recompile a sampling rate at the destination node, or device. In instances in which a phase-locked loop exists at the source and destination, slaved from the network transfer rate, represents operation in a locked isochronous mode of transfer. Instances in which at least one bit is sent along with the data across the network representing phase differences is referred to as an unlocked isochronous mode of transfer. Regardless of which mode of operation is chosen, data can be sent isochronously across the network if the sample rate on the source or destination device is different from FSY of the network.
According to yet another embodiment, a communication system is provided that includes a first device having a first port that includes a first port receive input and a first port transmit output. A second multimedia device has a second port that includes a second port receive input and a second port transmit output. The first port receive input and second port transmit output are coupled together to transfer digital data and right analog audio data. The second port receive input and first port transmit output are coupled together to transfer digital data and left analog audio data. The first device can include an analog-to-digital converter (ADC), whereas the second device can include a digital-to-analog converter (DAC), or vice versa. The first device can also include a third port. The first port can include a first port bypass input and a first port bypass output, and wherein the third port can include a third port bypass input and third port bypass output. The first port bypass output is preferably coupled to the third port bypass input. The first port can further include a serial input pin and a multiplexer. The serial input can be a pin on an interface circuit that includes a processor, into which all incoming data is sent. The serial input receives all incoming data, including non-compliant data. The right analog audio data and/or the digital data placed into the first port receive input can be directed to either the serial input pin, if compliant data, or onto the first port bypass output via placement into a receive input on the interface circuit, if non-compliant data.
According to one preferred embodiment, a communication system is provided that comprises a first node, a second node, and a third node. A first port coupled to the first node is arranged between two primary pairs of conductors and the first node, for transferring non-streaming and streaming data synchronously between the first node and the second node. A second port can be coupled to the first node between two secondary pairs of conductors and the first node, for transferring non-streaming and streaming data synchronously between the first node and the third node. A clock signal can be derived at the first, second, or third node from edges of the non-streaming and streaming data. Alternatively, the clock signal can be derived from a crystal resonator coupled to the first, second, or third node. The first port can include a receiver and a driver. The receiver can be configured to recover a clock signal from edges of the non-streaming and streaming data, and the driver can be configured to receive the clock signal and drive the non-streaming and streaming data synchronously with the recovered clock signal.
According to one example, the primary and secondary conductor pairs are twisted pairs of conductors associated with CAT 5 cable used in, for example, Ethernet communication. The non-streaming data can be encoded using a 4B/5B encoding. The first, second, and third nodes can be coupled together in a daisy chain, yet each of the first, second, and third nodes comprise at least two ports, wherein each port within the first, second, and third nodes accommodates the transferal of bidirectional differential signals with multiplexers that convey information received on a receiver within one port to a transmitter of the same port, or to a transmitter of another port within the same node to effectuate a ring communication topology.
According to yet another preferred embodiment, a communication system is provided that comprises two pairs of conductors linking a first node and second node. A serial bitstream of differential signals are bifurcated into frames of data and sent bi-directionally across the two pairs of conductors, with each frame beginning with a frame coding violation and each non-streaming packet of data within each frame beginning with a packet coding violation. The frame coding violation comprises two sets of three consecutive logic 0 voltage values separated by no more than two consecutive logic 1 voltage values. The packet coding violation can comprises three consecutive logic 0 voltage values. The three consecutive logic 0 voltage values can be followed by 4B/5B encoded data contained within a half-byte or nibble. The frame coding violation and the packet coding violation comprise a sequence of bits that do not represent any code used in a 4B/5B encoding of data for Ethernet transmission.
According to yet another preferred embodiment, a method for transferring data is provided. The method includes forming a sequence of bits dissimilar from encoded data as a frame coding violation, and another sequence of bits as a packet coding violation. Streaming and non-streaming data are placed in two different time segments within a frame immediately after the frame coding violation. The non-streaming data is placed within the frame immediately after the packet coding violation. The frame of streaming and non-streaming data is synchronized to a clock signal and transferred across a communication system.
Other objects and advantages of the invention will become apparent upon reading the following detailed description and upon reference to the accompanying drawings in which:
While the invention is susceptible to various modifications and alternative forms, specific embodiments hereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawings and detailed description thereto are not intended to limit the invention to the particular form disclosed, but on the contrary, are intended to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the present invention as defined by the appended claims.
It is recognized that one or more multimedia devices can sample data at a higher sampling rate (fs) than the frame sync rate (FSY) of a transmission line. For example, a multimedia device can be a CD player that samples at approximately 44.1 kHz. The CD player can stream data at, for example, 16 bits per sample audio channel (32 bits/stereo channel), therefore, resulting in a bps Baud rate across the transmission line of 32 bits/stereo sample×44.1 K samples/second=1.4112 Mbps. The non-return to zero (“NRZ”) data from the device can be encoded in several ways. Data can also be encoded using, for example, the well known Miller encoding technique.
Alternative encoding includes bi-phase encoding, or encoding so that the encoded bit stream does not incur an accumulated DC value. The latter encoding mechanism is oftentimes referred to as DC-adaptive or DC-free encoding, and is described in U.S. Pat. No. 6,437,710 herein incorporated by reference. If FSY across the transmission line is different than the sample rate fs, then the streaming data from the multimedia device cannot be placed synchronously through the transmission line to another device (i.e., from a DVD player to a speaker). Instead, the streaming data must be placed as isochronous streaming data as opposed to synchronous streaming data. Other types of data as described above can also be placed across the network.
Asynchronous data or packetized data can be arranged as datagrams, using the Transmission Control protocol (TCP) and the Internet protocol (IP). TCP/IP are the fragmented datagrams placed in an IP packet format. However, when the TCP/IP packet is forwarded across a network, the transport and networking layer of the OSI reference model can be sent according to a data layer or physical layer of the OSI reference model according to, for example, the Ethernet protocol. The datagrams alone can be removed from the Ethernet protocol and sent using a different protocol if desired.
Turning now to the drawings,
Each time slot represents a channel. For example, there may be four channels within a frame structure of 64 bytes, and each channel can have a minimum of 2 bytes. If each channel has the same number of bytes, then the 64 bytes can be broken into 16 bytes each that repeats at an audio sample rate of a device connected to the network via a node. For instance, if the audio sample rate is 48 kHz, the total bit rate of the network between any two nodes is 48 K/frames sec.×64 bytes/frame×8 bits/byte=24.576 Mbits/sec.
When a device is activated or “powered up,” routing tables are broadcast across the control channel to each of the other devices upon the network. The control channel contains configuration (or reconfiguration) routing tables needed to accommodate data transfer between the newly activated device(s). The routing table is, therefore, created to accommodate all of the various channels or frame portions established to receive the various types of data, thereafter synchronously sent across the network between activated devices. The routing table within a memory medium of, for example, a DSP will then identify which bytes within a frame is associated with a particular channel when subsequent communication is desired.
Thus, for example, if a DVD is on one channel and a CD on another channel, the routing table will actually assign time slots to those channels. In this fashion, the DVD player will send audio and video information within a first channel, yet the CD player will send audio information within a second channel allocated according to time slots. If the network transfer rate is 48 kHz, then a DVD player that samples at 48 kHz and a CD player that samples at 44.1 kHz will allocate the synchronous data channel to the DVD player, and the isochronous data channel to the CD player.
Isochronous data can have, for example, a variable channel length also established within the routing tables when, for example, a computer connected to the network comes on-line. For example, if an isochronous transfer requires an additional byte within successive frames (shown in
The four time slots shown in
There may be instances in which, for example, both a telephone and a CD may be sampling data at the same rate in which the network data is being clocked. In this case, two frame segments or time slots are reserved within each frame for carrying synchronous data. In this example, there certainly can be more than four time slots, with two or more time slots dedicated to receiving synchronous data and, possibly, another two or more dedicated to receiving isochronous data if, for example, a pair of higher or lower sampling rate players can be activated on the network.
Time slots TS0-TS3 are shown merely as an example and are available as corresponding segments within each frame, beginning with frame 1 and ending with frame N. If the network is operating at a lower FSY than a sample rate (fs) of a particular device, then possibly another byte will be needed for the segment carrying isochronous data. A typical example might be a network locked to a CD output sampled at 44.1 kHz attempting to place a DVD player information sampled at 48 kHz. In order to accommodate the higher sampling rate of the DVD drive, an additional byte is placed within the isochronous segment of, for example, time slot TS2.
Regardless of the data type being sent, each channel of data sent across the network is transferred at the same rate. This allows the network to operate synchronously while accommodating what is normally data that is sent asynchronously, or data that is sampled at a higher or lower rate than the network transfer rate (i.e., isochronous data). Each time slot or channel is thereby synchronous with one another. Transferring the channels synchronously is implemented by allocating an additional byte to the synchronous transfer of isochronous data.
While the isochronous data is sent at the same transfer rate as the other channels, a signaling byte is used to identify which of the N bytes (if the sample rate is less than the frame sync rate) or N+1 bytes (if the sample rate is greater than the frame sync rate) in each frame are valid. For example, if the network is operating at 48 kHz and it is desired that a device sample onto the network at 44.1 kHz, then a minimum of 8×44.1/48 bytes/frame or 7.35 bytes/per frame are needed to accommodate an 8 byte per frame isochronous channel. In this example where N=8, a minimum of 8 bytes per frame are needed to accommodate this isochronous data, yet only a portion of the 8 bytes in each frame are actually valid.
The signaling byte will keep track of which of these frames are valid and which are not. Thus, the isochronous data is synchronized off of the signaling byte. For reasons described later, a tag byte can be used to synchronize packetized data, and to indicate where within each frame the packetized data exists and is valid. The signaling byte can be embedded within the data itself and can represent a coding violation, for example. A coding violation dissimilar from, for example, the DCA or DC-free coding of U.S. Pat. No. 6,437,710 will indicate where isochronous, asynchronous, and/or synchronous data are to be placed within each frame by signaling the beginning of a series of bytes which occupy that frame segment, as well as one or more successive frame segments until the end of that message has arrived. The time between when a data code violation occurs will then symbolize a channel, where that channel can encompass different data types.
Within each port is a detector (or comparator) 45b and a pair of multiplexers 48a and 48b, as indicated by the detailed, blow up illustration of port 42. Multiplexer 48a receives BI from the network and serial output, TX, from the AV receiver device. Depending on whether the external device 50a is compliant or non-compliant, then multiplexer 48a will select compliant data within BI for input into the RX pin of device 50a, or multiplexer 48a will select non-compliant data from the transmit pin, TX, of device 41 for input into the RX pin of device 50a. Auto detect of the incoming data is not needed, knowing data output on the TX pin of device 41 is non-compliant. Detector 45b and multiplexer 48b are attributed to the BO and RX of the audio-video (AV) receiver device 50a. Transmit output of device 50a is coupled to receive input of port 42. An auto detect is performed by detector 45b, and multiplexer 48b will either send the signal upon the receive input to BO of port 42 or the BI will be sent, depending on whether the incoming data is compliant or not.
Details of the auto detect or auto negotiation function are set forth in
The incoming data on the RX pin of port 42 is placed into both detector 45b and a receive pin of an interface, which will eventually lead to device 41. The data on BI can be routed to 41, if needed, through a port connecting a controller that receives BI placed on BO. As shown in
Device 50a is a compliant device that sends/receives data according to the network protocol described above, with channel information of channel A placed in the appropriate time slot and, thus, detector 45b and multiplexer 48b will compare and route the appropriate data to the receive pin, RX, associated with an interface of device 41. Thus, the incoming data on the RX pin of device 41 can be processed and coupled internally through an interface circuit and associated transceiver controller via, for example, an I2C or I2S port to the BO of port 42 to process the incoming data by device 41, but also to send the incoming data on RX pin or the incoming data BI of the network data to other devices 50b, 50c and/or 50d, if needed. Details of the interface circuit used to couple BO through a controller to the input of device 41 is described below in reference to
If a device is non-compliant, such as device 50b, then it is uncertain where the data of a particular channel (i.e., channel C) is to be placed since the protocol is unrecognizable to the network protocol, as detected by the auto detect circuitry within device 44. Thus, port 44 receives the incoming signal on the serial input pin as well as the multiplexer. The multiplexer within port 44 will select the BI for coupling onto BO to continue the network, but will allow device 41 to receive the non-compliant data via the serial input pin, SR. Decision on whether the incoming data placed on the RX input is compliant or not is made within, for example, a DSP. Similar to device 50a, devices 50c and 50d are compliant devices that send channel of information within a particular dedicated slot, such as channel E as shown. Devices 50c and 50d can be coupled within the ring to expand the ring network to include more than two devices.
Placed between BI and RX is controller 56 that operates not only as a network transceiver to place BI onto the network, but also to place BI into device 41 if device 41 is a destination for compliant data forwarded across the network. Controller 56 takes compliant data and arranges that data into a protocol acceptable to the well known I2C or I2S protocol acceptable to DSP 60. Controller 56, serves as a physical layer device to synchronize and reformat the incoming data of BI to the DSP-recognizable format. The controller can send reformatted data across the I2C bus to DSP 60. Controller 56 thereby affords compliant network data to be placed onto the input of device 41. Further details of the PHY or physical layer device of controller 56 as it pertains to the reformatting of Ethernet incoming data are set forth in
Each port thereby includes an interface. Interface 64 of port 44 is illustrated in detail to include multiplexer 58a, 58b, detector 54b, DSP 60 and controller 56. Detector 54b of
The 8B/10B or 4B/5B code of Ethernet is detected as being dissimilar from DCA code and, therefore, code comparator 68 will send the comparison results to the multiplexer to selectively receive the incoming data or not upon the receive input of a compliant device within the network. Similar to the code comparator 68, preamble comparator 66 compares the preambles of the SPDIF versus network preambles to determine if there is a protocol difference. Both code and preamble comparators determine any protocol differences to denote whether the incoming data will be sent into the serial input pin which is dedicated to receiving the non-compliant data, or whether the incoming data will be placed on the receive input of the port that is connected to the BO of that port for receiving compliant data.
Similar to ADC and DAC circuits within interface circuits 65 and 67 of ports 44 and 46, counterpart DAC 71 and ADC 73 can be placed in non-compliant devices 50b and 50c. Importantly, the left and right analog audio data of an ADC are placed on the left and right analog audio pins that are shared with the transmit and receive pins, respectively. Conversely, the left and right analog audio data of a DAC are placed on the left and right analog audio pins that are shared with the receive and transmit pins, respectively. In this fashion, a left/right audio information can be sent from a DAC to a left/right pins (and transmit/receive pins) of a port associated with an ADC. Left and right information sent by the DAC can be returned by the ADC, and the transmit/receive right/left convention on the DAC is therefore consistent with the receive/transmit right/left convention on the ADC to form a virtual loop network between the ADC and DAC for sending and receiving analog audio information. As shown in
Also included in
Similar to interface 65, another interface 67 has similarly situated circuit elements and, in particular, left and right DACs broken out separately from each other. The DACs 74a and 79a receive the incoming data, and form the conversion. A multiplexer 76a′ is shown and operates similar to multiplexer 76a. The same is said for multiplexer 76b′ and detector 75b′ operating similar to multiplexer 76b and detector 75b. A driver circuit can be provided in each interface to drive compliant data from the network via BI back out to the connected device if the appropriate select signal is provided via the configuration registers. As shown in
The audio-video receiver (compliant or non-compliant) can play audio and video information placed into the network from a DVD player 90, or SPDIF information sent from DVD player 90 via interface 82. The information can be sent over an I2C port or I2S port to the serial receive, SR, input of interface 80 or 82, depending on whether the destination audio-video receiver is compliant or not. The controller within the interface unit will synchronize the incoming data and perform other physical layer functions on the incoming data. Audio-video receiver 84 and/or 86 can send optical information, for example, into a fiber optic receiver (FOR) 92a and 92b.
To implement auto SPDIF (or Ethernet) detection, the non-compliant data output from legacy device 86 is also connected to the SPDIF/Ethernet serial input, SR, pin of interface 82. This pin is configured to receive the SPDIF/Ethernet data. When SPDIF/Ethernet is detected, the input multiplexer state is switched to pass the BI from interface 80 onto the RX input of interface 82. Thus, when an SPDIF device 86 (i.e., an A/V receiver) is connected, the ring is maintained and, specifically, the communication from one device to the other across the network is maintained. Information from the network can be transferred back out from the network onto the third device 86 via a fiber optic transmitter (FOX) 98b.
Labeled in dashed line are two ports 100a and 100b corresponding to first device, e.g., DVD 90. Port 100a is dedicated to receiving network information as well as compliant data from a compliant device 84. Port 100b, however, is dedicated to receiving both network information and non-compliant data from device 86. In the example shown, the SPDIF/Ethernet input is recovered by an asynchronous source port, labeled as the serial receive (SR) port. Along with the controller, the detector/comparator described above can be integrated into the interface to performs the comparison, and then a multiplexer is shown to multiplex the appropriate signal onto the receive pin of the interface. If the SPDIF/Ethernet data is to be received, the SPDIF/Ethernet data is transported unlocked isochronously to an asynchronous serial receive port (SR), where the controller within the interface 82 performs synchronization using a PLL, or other means described below.
Multiplexers 94a and 94b will connect the optical receiver data out signal to the receive input of interface 80/82 only if light is detected and SPDIF (or Ethernet) data is not detected. The status signal of the optical receiver is connected to the general purpose input/output of the interface. If this indicates that light is detected, then the interface will monitor the SPDIF lock detector within the corresponding interface unit. If lock is not detected within a certain timeframe, then the optical receiver data out is connected to the receive (RX) input. SPDIF input may be at 48 kHz or 44.1 kHz, whereas the network may be locked to 48 kHz. Software automatically determines the frequency differences and the comparator determines any preamble differences.
DVD player 90 is typically synchronized to a 27 MHz clock derived from a PLL 104. DVD player 90 provides preferably 96/48 kHz or 88.2/44.1 kHz audio data. When the DVD rate and the network rate are not equal, the DVD data is transported in locked isochronous mode. When the DVD and network rates are the same, the DVD data is transported synchronously. The maximum data from the DVD is approximately six channels, 24 bit, and 96 kHz. Simultaneously, the DVD provides AC3 encoded data over SPDIF, which is equivalent to CD audio bandwidth. All six channels of 96 kHz audio plus the AC data can be transported in three isochronous streams simultaneously. The interface 80/82 will process six channels of 96 kHz audio and packs those channels into two isochronous channels, while one DSP on one of the interfaces will pack AC3 into another isochronous channel.
Transporting data unlocked isochronously typically involves a digital PLL at the destination device. Thus, PLL 104 (
Comparator 106 compares the phase difference between the leading or falling edges of each frame transfer clock or sample clock. A digital phase comparator 108 can take place using a timer, for example. If three serial bitstreams are used, for example, a high speed clock can be 3072 fs. If, for example, six cycles of 3072 fs separate the trailing edge of FSY1 and FSY2 (noted as ΔΦ1), then a byte indicating a binary 6 value is periodically sent across the network. Increasing the clock rate to 24576 fs will significantly increase the resolution of the binary value and, therefore, instead of sending 8 bits periodically, 12 bits can be sent.
The phase difference (e.g., an 8-bit byte or 12-bit byte) is thereafter used by the PLL and the destination port. Adder 110 subtracts the phase difference between FSY1 and FSY2 (represented as A-R), and the phase difference between FSY2 and FSY1 (represented as B-R) to achieve A-R-(B-R). If those differences are 0 and, thus, the digital PLL 104 is locked, then the output from adder 110 will be 0 phase difference placed into a filter, divider, and oscillator network 112. Adder 110 and filter, divider, and oscillator 112 can form a part of a DSP. Phase comparator 108 compares the network transfer frame rate clock edge to the local sampling rate of the destination device, shown as reference B. Reference B is made equal to reference A due to the feedback from digital filter and programmable divider 112. Divider 112 receives a high frequency clock from oscillator 112 that, based on the control output from filter 112, divides the oscillator output to the appropriate frequency and phase needed to lock the local sampling clock B to the source sampling clock A.
A local digital PLL at the destination device allows any streaming data at any frequency to be sent unlocked into the network. It is not until it is received upon destination device 114 will the sampling rate be locked to the sampling rate on the source device 105. Phase and/or frequency differences can be sent across the network along with the isochronous data as unlocked isochronous data. A digital PLL avoids the use of complex sample rate conversion mechanism in the source device, and the overhead of a DSP in that device. Instead, a single PLL can be used in the destination port and thereby allow isochronous data to be sent across the network with clock recovery being used in the destination port in lieu of sample rate conversion, or jitter associated with localized crystal oscillators.
A non-compliant or legacy CD might send left and right audio channel outputs into the ADC interface. The ADC interface will then forward the audio information into the DSP of receiver 124 as digital information. Compliant device 120 can also send data into port 126a. Port 126a can then forward the data onto the network, as well as into the DSP of audio-video receiver 124 via the serial transmit pin (SX).
Serial clock (SCK) and the frame sync clock (FSY) are derived using either the unlocked isochronous transport mechanism of
Referring to
Referring to
The controller is typically clocked by a local 27 MHz crystal oscillator. Alternatively, the crystal can be deactivated and the controller can be clocked from a 27 MHz clock that is derived from FSY2. The controller is within interface 134a and 134b. As audio data is read from the drive, it is decompressed in the case of a movie and, if necessary, is forwarded to a DAC. The sample rate of the DAC is fixed and unchanged, it is generated directly or implicitly from the 27 MHz reference. As an example, a PLL with a frequency conversion ratio of 2/1125 will convert the 27 MHz reference clock of the controller to the 48 kHz sample clock needed to sample the audio data from the drive. A conversion ratio of 49/30000 will convert 27 MHz to 44.1 kHz. Thus, source device 136 and destination device 138 can receive data sampled at almost any frequency, as well as the rate at which the controllers within interface 134a and 134b operate. Thus, the serial clock and the sample rates can be adjusted based on the divide and multiply factors of the local PLL's within both source and destination nodes. A locked isochronous transport mode can, therefore, be achieved.
The bitstream of data within each frame is synchronized to a clock signal. Upon startup or reset of the network, one client can be designated as the master clock client, whereby a crystal resonator within that client is used to synchronize the network transmission. The synchronous data provides edges for recovering the clock signal at the slave client locations. The receiver within each of the slave clients or nodes recovers the clock signal and uses that signal to transmit the synchronous data to the next client or node within the ring. Since each client contains two ports and since each port accommodates two pairs of conductors for receiving and transmitting differential signals, the network is configured as a ring even though the client nodes are connected in a daisy-chain fashion. Shown merely as an example, client 202e can be a DTV for receiving streaming video signals, with the audio signals forwarded through client 202e to client 202f which may comprise an audio video receiver for processing those audio signals. Further within the frame structure can be Ethernet signals that are received by client 202g for allowing client 202g Internet access or email messaging.
While client nodes can be connected in a daisy-chain fashion, the nodes can also be connected in a ring or star topology. For example, when connecting three nodes, each having its own associated network interface, each node can have its own set of RJ45 terminals with a CAT5 link between nodes. A minimum of one RJ45 connector can be associated with each node; however, when connected in a ring topology, six RJ45 connectors are needed for three nodes. In a star topology, six RJ45 connectors are needed along with three CAT5 cables and one routing hub. An example of a routing hub is shown in
An MAC 230 couples to the clock/data recovery circuitry as well as the logic 226 and provides a media independent interface supporting the MII and RMII bus. MAC 230 includes a host controller 232 and a data engine 234, and supports both full duplex 10 Base T, 100 Base T, for CAT 3 and CAT 5 unshielded twisted-pair cable, and can also accommodate compliant data placed in the frame structure described above.
MAC 230 also includes an auto detect or auto negotiation function 244. The purpose of the auto negotiation function is to automatically configure the PHY to the optimum link parameters based on the capability of its coupled client. Auto negotiation is a mechanism for exchanging configuration information between two link partners and automatically selecting the highest performance mode or the configuration of the coupled client. Auto negotiation is defined in the IEEE 802.3 specification, however, an additional reserved bit within configuration register 246 is set aside for defining whether the client-coupled device is compliant or not.
The capabilities of the PHY are stored in configuration register 246. The auto negotiation is initiated by the occurrence of either a hardware or software reset, a power-down reset, a link status down, or setting the register 0, bit 9 to a logic 1 voltage value to indicate an auto negotiation restart. On detection of one of these events, the PHY begins auto negotiation by transmitting bursts of fast linked pulses (FLP). These are bursts of linked pulses from the 10M transmitter. The data transmitted by the FLP burst is known as the “link code word.” The link code word is defined in the IEEE 802.03, clause 28. Depending upon how many of the reserved bits within the configuration register are used, there are possibly multiple matches for the linked client. For example, the linked client can be identified as a 100M full duplex, 100M half duplex, 10M full duplex, 10M half duplex, Ethernet device, SPDIF device, etc. For example, register 31 of the PHY special control/status register can have one of its reserved bits set aside for determining whether the client-coupled device is sending and receiving Ethernet data (i.e., a personal computer), sending and receiving SPDIF data, etc.
Scrambler 274 passes the 5-bit wide parallel data to the NRZI converter 276, where it becomes a serial 125 MHz NRZ data stream. The NRZ data stream is encoded to MLT-3 using a converter 278. MLT-3 is a tri-level code where a change in the logic level represents a code bit logic 1 and the logic output remaining at the same level represents a code bit at logic level 0. An equalizer 280 compensates for phase and amplitude distortion caused by the physical transmission channel. Equalizer 280 preferably restores the signal for CAT 5 cable between 1 meter and 150 meters, for example. Once restored, data is placed into the RJ45 jack 282 and thereafter placed upon the CAT 5 (or CAT 3) cable 284. Of course, however, the data flow from MAC 230 to CAT 5 284 is bidirectional.
Referring to
Referring to
Indigenous to the Ethernet transmission protocol is that all valid data not contain more than two sets of logic 0s within the 5B symbol sequence. If data were to contain more than two sequential sets of logic 0s within a 10 bit sequence, then it would be known that a coding violation would occur. Since two 5-bit 5B symbols when strung together to represent data cannot contain 2, 3-bit logic 0 values separated by at least one logic 1 value, formulating such a sequence as shown by reference 294 of
As shown in
While the nodes are connected in a daisy-chain fashion, communication operates in a virtual or logical ring. The Ethernet or CAT 5 cable is particularly useful at producing the logical ring from the daisy chain since it contains multiple twisted pairs for bidirectional communication. The nodes can arbitrate for access to the shared channels and send packets with headers to the destination address and the header. Channels can be allocated to a particular node as streaming channels, which provide a fixed number of bytes per frame for a sending node to put an audio or video stream onto that channel. The sending node has a guaranteed bandwidth and the virtual ring of the network allows data to be guaranteed to reach the destination in a certain amount of time.
By combining Ethernet transmission protocol with the compliant transmission protocol herein, Quality of Service issues are reduced. The MAC circuitry can auto detect between Ethernet and the compliant packets or streaming data. If the auto detection determines the network is attached to another compliant or non-compliant device, it can configure for conversion to a compliant transmission protocol or, possibly, communicate in the Ethernet mode. In order to use an existing Ethernet PHY, the compliant network transmission protocol must use 4B/5B coding which Ethernet uses. The recovered clock is available since the Ethernet PHY must generate it to recover data in Ethernet mode.
Ethernet coding rules require that there cannot be more than three consecutive logic 0's, and there must be at least two logic 1 values in any 5-bit code. Thus, the 16 valid codes for transmission of data requires that no combination can produce two sets of three consecutive logic 0's separated by one or more number of logic 1's. Thus, a coding violation of three consecutive logic 0's separated by at least one logic 1 identifies the start of a frame. Once the frame sync pattern is identified, an additional coding violation can be used to identify the start of a packet, end of packet, and wait identifiers.
Although numerous improvements are described herein, the ability to send Ethernet-like packet information across dedicated channels will enable direct tunneling of Ethernet data to and from a network port operating in an Ethernet mode, for example. The Ethernet-like asynchronous packets may be designated with a start byte, several destination bytes, and a preemptive acknowledge (PACK) byte. The Ethernet-like packet also has an end byte to denote where the data begins and ends. The combination of start and end bytes contains special codes that violate DCA coding rules as described above. The PACK byte is used for flow control. For consistency with current Ethernet MAC addresses, the packet destination address can be six bytes, rather than two bytes. The Ethernet MAC address is stored locally in non-volatile memory, and is unique for each device. Valid Ethernet MAC addresses should be used in order to allow applications residing on nodes to communicate seamlessly with Ethernet devices that may be connected through the compliant or non-compliant ports.
One issue involving Ethernet asynchronous packet channels and the maintenance of those channels for transmission is arbitration. Typically, for example, a ring topology might have a master node, upstream nodes, and downstream nodes, relative to that master node. For any given byte in a frame, a node can either transmit its own value or bypass the incoming byte value from the previous upstream network node. Each node can also modify the incoming data before the data is transmitted. For example, each node could increment the incoming byte value and transmit that incremented value. For a given frame byte, a node can transmit either a data value or an identifier. An identifier must be uniquely identifiable from any data value, and typically consists of a defined coding violation. The start identifier is used during arbitration to determine which node will gain mastership of a particular channel.
When two or more nodes want to transmit data on the same byte channel, an arbitration protocol determines which of the nodes wins arbitration and is allowed to transmit its data on that byte channel. The channel is in use until the node that won arbitration has finished transmitting its data. Once a channel is no longer in use, the nodes in the network can once again arbitrate for mastership of that channel. Arbitration is used only to decide which of the nodes currently requesting a channel is granted mastership. The general rules of arbitration for, e.g., the Ethernet asynchronous packet channel are fairly straightforward. If multiple nodes generate start bytes that indicate the start of an Ethernet packet within their particular frame, the node that generates the start byte closest to the beginning of the frame will win arbitration and obtain mastership. That node is then free to send the complete packet, ending with the end byte. If multiple nodes attempt to place start bytes in the same byte location of a frame, the node closest to the master will win arbitration.
Yet further, if multiple nodes are waiting to send Ethernet packets when another finishes transmitting, the waiting nodes will be given access to the channel in a token ring manner (in the direction of the data flow through the ring, starting with the node directly downstream from the current transmitting node). When multiple nodes are ready to transmit and the channel is already in use, only the first of those nodes in the ring following the node currently transmitting is allowed to transmit a start byte and win arbitration once the channel becomes idle.
Because all nodes on a single or virtual ring will share the bandwidth of the Ethernet-like asynchronous packet channel, an acknowledge mechanism must be utilized. All nodes share the same collision domain, and if one node cannot accept packets due to a full receive buffer, it can stop all traffic on that channel by asserting a preemptive acknowledge (PACK) byte. This is functionally equivalent to an Ethernet jam signal. The node may not assert the PACK byte for packets it is supposed to receive, e.g., destination addresses to its MAC, multicast, or broadcast address. A CRC acknowledge byte in the current asynchronous channel can enable a low-level hardware and transmitting nodes to detect when packets fail to reach their destination. This mechanism works only when all nodes are connected together within a single or virtual ring.
Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.
Number | Date | Country | Kind |
---|---|---|---|
06003321.4 | Feb 2006 | EP | regional |
06003322.2 | Feb 2006 | EP | regional |