WO1995022217A1 - Automatic detection of data rate - Google Patents

Automatic detection of data rate Download PDF

Info

Publication number
WO1995022217A1
WO1995022217A1 PCT/US1995/001820 US9501820W WO9522217A1 WO 1995022217 A1 WO1995022217 A1 WO 1995022217A1 US 9501820 W US9501820 W US 9501820W WO 9522217 A1 WO9522217 A1 WO 9522217A1
Authority
WO
WIPO (PCT)
Prior art keywords
baud rate
baud
serial
communications device
remote terminal
Prior art date
Application number
PCT/US1995/001820
Other languages
French (fr)
Inventor
Michael Kennedy
Onofrio Schillaci
Original Assignee
Harris Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harris Corporation filed Critical Harris Corporation
Priority to AU19176/95A priority Critical patent/AU1917695A/en
Publication of WO1995022217A1 publication Critical patent/WO1995022217A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/0262Arrangements for detecting the data rate of an incoming signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/1307Call setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13092Scanning of subscriber lines, monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13096Digital apparatus individually associated with a subscriber line, digital line circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/1316Service observation, testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13166Fault prevention
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13174Data transmission, file transfer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13199Modem, modulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13204Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13213Counting, timing circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13216Code signals, frame structure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13332Broadband, CATV, dynamic bandwidth allocation

Definitions

  • the present invention relates in general to communication systems, such as telephone systems, and is particularly directed to a mechanism for enabling a digital data communications device, such as a serial input/output device (SIO) , universal asynchronous receiver/transmitter (UART) , etc., that may be associated with a telephone line test, conditioning and reporting unit, to automatically tune itself to the baud rate of a received digital data message.
  • a digital data communications device such as a serial input/output device (SIO) , universal asynchronous receiver/transmitter (UART) , etc.
  • Digital data communications devices customarily employ one or more serial ports through which digital data messages are interfaced between a resident signalling processor and a serial data communications link to which a remote terminal device is coupled. Because digital data communications may be conducted at a number of different baud rates (e.g. 1200, 2400, 4800, 9600 baud) , such devices customarily employ one or both of a software routine and panel DIP (dual in-line packaging) switch through which a user, knowing the baud rate at which communications with a remote terminal device are to be conducted, loads a selected baud rate into an internal register for use by an attendant modem.
  • baud rates e.g. 1200, 2400, 4800, 9600 baud
  • FIG. 1 shows the distribution of a plurality of remote test equipments or measurement units 11 for monitoring and testing network lines 13 and (subscriber) termination equipment 15 remotely from one or more data terminal units (DTUs) 21, which have the capability of accessing the remote test equipments 11 through attendant modem devices 23, 24 that are linked to a central office 25.
  • DTUs data terminal units
  • the baud rates of the remote data terminal units which may access such equipments are not necessarily known at the time of installation, and indeed can be expected to vary from unit to unit, it is necessary to have a craftsperson perform on- site (trial and error) adjustment of control switch settings. Moreover, where a remotely accessible piece of equipment contains multiple serial ports, the overall hardware complexity (and therefore cost) of affording baud rate adjustment for each serial port is substantially increased.
  • an 'autobaud' detection mechanism which is installed as part of the communication control software of the serial communication device's microcontroller, and which enables the microcontroller to automatically determine the baud rate employed by a remote digital data communications device, so that the baud rate of the internal modem of the unit may be readily set and locked to that baud rate.
  • the present invention employs a table of baud rate entries (e.g. 9600, 4800, 2400, 1200, 600, 300), at each of which the terminal unit's serial communication device (modem) is capable of operating.
  • baud rate table is microcontroller-resident, it is programmable, so that the tuning capabilities of the serial input output device may be updated, for example by the replacement of a modem card capable of handling a prescribed set of baud rates with a more enhanced modem card having an expanded set of baud rates.
  • the highest baud rate within the table is the default baud rate, which the detection mechanism employs when initiating a baud rate detection routine in response to an incoming call.
  • the routine is operative to step through successively lower baud rates from the highest baud rate in the course of a search for the baud rate at which the remote device is transmitting.
  • the baud rate entries of the table are stored in sequential addresses in memory, which may be scanned by an associated soft-counter which controls baud rate entry access, the soft-counter rolling over to the highest entry once it has stepped to the lowest entry address. This roll-over to the default entry ensures that the search will not become 'hung up' on any baud rate.
  • the terminal device When an incoming call is received, and the terminal device goes off-hook, the respective bits of the received data (a potentially valid character, such as a carriage return) are stored, and the received data bit pattern is analyzed for the presence of transmission errors, such as framing, parity and overrun. If a transmission error is detected, then it is inferred that what has been received is not a valid character at the current (default) baud rate setting. The routine then increments the baud rate table address counter so as to step to the next lowest baud rate entry in the table.
  • a potentially valid character such as a carriage return
  • the autobaud detection routine When the autobaud detection routine has stepped to a new baud rate entry, it initiates a prescribed time-out (e.g. five seconds) as a safeguard against the receiver becoming 'out-of- sync' with a transmitter, whose baud rate is faster than that to which the receiving serial device is currently set . Within this time period, if the receiving serial device does not receive a further character bit pattern, it reverts to the default setting, thereby reinitiating the baud rate detection process.
  • the length of the time out period is based upon the lowest baud rate available, and is no less than the minimum character receive time for the lowest baud rate entry and allowing for character separation for every incoming character in order to ensure proper character identification.
  • the user at the remote end repeatedly asserts the character (hits the carriage return key) , to establish a connection at any of the available baud rates .
  • the routine checks the contents of the character for transmission errors, and the process proceeds as described above.
  • the autobaud detect routine will have stepped to the baud rate being transmitted, and will have captured and matched the connectivity character at the proper baud rate. If a transmission error occurs, it may be necessary to restep through the baud rate table entry sequence. However, with the wrap around feature of the table entry addressing scheme, it is ensured that the process will not hang up on any particular baud rate.
  • Figure 1 diagrammatically illustrates a telephone network having a plurality of distributed remote test equipments that are linked to supervisory data terminal units by way of a central office;
  • FIG. 2 is a flow chart of the digital communications processing routine employed by the autobaud detection mechanism in accordance with the present invention.
  • the invention resides primarily in what is effectively a prescribed augmentation of the communication control software of the serial communication device's microcontroller, which enables the microcontroller to automatically determine the baud rate employed by a remote digital data communications device, so that the baud rate of the internal modem of the unit may be readily set and locked to that baud rate for the duration of the communication.
  • the details of the circuitry of the serial communication devices are otherwise essentially unaffected.
  • the present invention employs a set or table of baud rate entries, at any of which the terminal unit's serial communication device (modem) is capable of operating. Because the baud rate table is microcontroller resident, it is programmable, so that the autobaud detection mechanism may be updated as the communication capabilities of the terminal unit change, for example by the replacement of a modem card capable of handling a prescribed set of baud rates with a more enhanced modem card having an expanded set of baud rates.
  • modem serial communication device
  • the baud detection process begins at step 201, with the serial communications device (e.g. UART, SIO, etc,) in an IDLE or ON- HOOK mode. During this state, the microcontroller of the device defaults to the highest baud rate in its baud rate table, shown at 200.
  • the serial communications device e.g. UART, SIO, etc,
  • the microcontroller of the device defaults to the highest baud rate in its baud rate table, shown at 200.
  • the baud rate entries may be stored in sequential addresses in memory, with an associated soft-counter which controls baud rate entry access rolling over to the highest entry once it has stepped to the lowest entry address, so that the baud rate access mechanism is operative to 'wrap around' on itself, and therefore does not become 'hung up' on any particular (the lowest) baud rate.
  • the baud rate entry table may contain four baud rates (1200, 2400, 4800 and 9600) .
  • the default entry for this example is 9600 baud.
  • a carriage return character ASCII 13 is employed as the character to be transmitted and identified for baud rate detection.
  • step 205 As data bits of a potentially valid character are received and stored (step 205) , they are analyzed by the serial communications device for the presence of transmission errors, for example - framing, parity and overrun, as shown at step 207. If a transmission error is detected (the answer to step 209 is YES) , it is inferred that the received bit pattern is not a valid character at the present baud rate setting (as determined by the currently accessed baud rate entry in Table 200) , and the routine transitions to step 211, which increments the baud rate table address counter so as to step to the next lowest baud rate entry in the table. Starting with a default setting of 9600 for the idle state, step 211 proceeds to the next lowest baud rate of 4800 baud in the present example.
  • step 209 If, on the other hand, no transmission error has been detected (the answer to step 209 is NO) , it is inferred that the received bit pattern corresponds to that of a potentially valid character at the present baud rate setting, and the routine transitions to step 213, which compares the stored bits of the character string with a prescribed reference character (a carriage return, in the present example) . If the serial bit compositions of the two compared characters are identical (the answer to step 215 is YES) , then it is inferred that the remote site is transmitting at the current baud setting, and the microcontroller locks the modem baud rate at that baud setting for the remainder of the call (step 217) . When the call is terminated and the device logs off into an idle state, the baud rate reverts to its default setting (9600 baud in the present example, as shown at step 201) .
  • step 215 If the result of comparison step 215 is NO, indicating that the serial bit composition of the received character is not a complete character (including necessary stop bits) identical to the stored reference character, then it is inferred that the remote site is not transmitting at the current baud setting, and the process transitions to step 211, which, as noted above, increments the baud rate table address counter to step to the next baud rate entry in the table.
  • the autobaud detection routine When the autobaud detection routine has stepped to a new baud rate entry, it initiates a prescribed time-out (e.g. five seconds) shown at step 221, as a safeguard against the receiver becoming 'out-of-sync' with a transmitter, whose baud rate is faster than that to which the receiving serial device is currently set. As shown by step 223, within this time period the receiving serial device must receive a further character for analysis (the answer to step 223 is YES) ; otherwise (the answer to step 223 is NO) it reverts to the default setting, thereby reinitiating the baud rate detection process (step 201) .
  • a prescribed time-out e.g. five seconds
  • the period of time prescribed in step 223 is based upon the lowest baud rate available, and is no less than the minimum character receive time for the lowest baud rate entry and allowing for character separation for every incoming character in order to ensure proper character identification.
  • the user at the remote end repeatedly asserts the character (hits the carriage return key) , to establish a connection at any of the available baud rates.
  • the routine transitions to step 207, which checks the contents of the character for transmission errors, and the process proceeds as described above.
  • the autobaud detect routine of Figure 2 will have stepped to the baud rate being transmitted, and captured and matched the connectivity character at the proper baud rate. As noted above, if a transmission error occurs, it may be necessary to restep through the baud rate table entry sequence. However, with the wrap around feature of the table entry addressing scheme, it is ensured that the process will not hang up on any particular baud rate.
  • the microcontroller locks the modem baud rate at that baud setting for the remainder of the call (step 217) .
  • the need participation of technical personnel to determine and then perform parameter adjustments of the control settings of a data terminals unit of a conventional baud rate setting and adjustment scheme are effectively obviated by the autobaud detection mechanism of the present invention, which is readily installed as part of the communication control software of the serial communication device's microcontroller, and enables the microcontroller to automatically determine the baud rate employed by a remote digital data communications device, so that the baud rate of the internal modem of the unit may be readily set and locked to that baud rate.
  • An autobaud detection mechanism installed as part of the communication control software of a serial communication device's microcontroller, enables the device to automatically determine the baud rate employed by a remote digital data communications device. Starting with a default baud rate, corresponding to the highest available baud rate, the mechanism steps through successively lower baud rates in the course of a search for the baud rate at which the remote device is transmitting.
  • the autobaud detection routine When the autobaud detection routine has stepped to a new baud rate entry, it initiates a prescribed time-out as a safeguard against the receiver becoming 'out-of-sync' with a transmitter. Once, the lowest baud rate has been reached, the routine steps to the default setting and starts again.

Abstract

An autobaud dectection mechanism, installed as part of the communication control software of a serial communication device's microcontroller, enables the device to automatically determine the baud rate employed by a remote digital data communications device. Starting with a default baud rate, corresponding to the highest available baud rate, the mechanism steps through successively lower baud rates in the course of a search for the baud rate at which the remote device is transmitting. When an incoming call is received, respective bits of the received data are examined for the presence of transmission errors. If a transmission error is detected, the baud rate is stepped to the next lowest baud rate. If no error is detected, the received data bits are compared with a reference character. If the two compared data bit patterns match, the controller locks the baud rate at that baud setting for the remainder of the call. When the call is terminated, the baud rate reverts to its default setting. If the bit pattern comparison does not indicates a match, the baud rate is stepped to the next lowest baud rate. When the autobaud detection routine has stepped to a new baud rate entry, it initiates a prescribed time-out as a safeguard against the receiver becoming 'out-of-sync' with a transmitter. Once, the lowest baud rate has been reached, the routine steps to the default setting and starts again.

Description

AUTOMATIC DETECTION OF DATA RATE
FIELD OF THE INVENTION The present invention relates in general to communication systems, such as telephone systems, and is particularly directed to a mechanism for enabling a digital data communications device, such as a serial input/output device (SIO) , universal asynchronous receiver/transmitter (UART) , etc., that may be associated with a telephone line test, conditioning and reporting unit, to automatically tune itself to the baud rate of a received digital data message.
BACKGROUND OF THE INVENTION
Digital data communications devices customarily employ one or more serial ports through which digital data messages are interfaced between a resident signalling processor and a serial data communications link to which a remote terminal device is coupled. Because digital data communications may be conducted at a number of different baud rates (e.g. 1200, 2400, 4800, 9600 baud) , such devices customarily employ one or both of a software routine and panel DIP (dual in-line packaging) switch through which a user, knowing the baud rate at which communications with a remote terminal device are to be conducted, loads a selected baud rate into an internal register for use by an attendant modem.
Unfortunately, there are variety of applications of digital communications devices, which are to be remotely accessed, in order that an attendant utility device may be conditioned and controlled, without the availability of technical personnel having prior knowledge of the baud rate used by the remote. A non-limitative example of such an application is diagrammatically illustrated in Figure 1, which shows the distribution of a plurality of remote test equipments or measurement units 11 for monitoring and testing network lines 13 and (subscriber) termination equipment 15 remotely from one or more data terminal units (DTUs) 21, which have the capability of accessing the remote test equipments 11 through attendant modem devices 23, 24 that are linked to a central office 25. Because the baud rates of the remote data terminal units which may access such equipments are not necessarily known at the time of installation, and indeed can be expected to vary from unit to unit, it is necessary to have a craftsperson perform on- site (trial and error) adjustment of control switch settings. Moreover, where a remotely accessible piece of equipment contains multiple serial ports, the overall hardware complexity (and therefore cost) of affording baud rate adjustment for each serial port is substantially increased.
SUMMARY OF THE INVENTION
In accordance with the present invention, the above described shortcomings of conventional baud rate setting and adjustment schemes, which require the participation of technical personnel to determine and then perform parameter adjustments of the control settings of the terminals units are effectively obviated by what may be termed an 'autobaud' detection mechanism, which is installed as part of the communication control software of the serial communication device's microcontroller, and which enables the microcontroller to automatically determine the baud rate employed by a remote digital data communications device, so that the baud rate of the internal modem of the unit may be readily set and locked to that baud rate.
More particularly, rather than employ conventional baud- setting switches through which baud rate must be set by an on- site craftsperson, the present invention employs a table of baud rate entries (e.g. 9600, 4800, 2400, 1200, 600, 300), at each of which the terminal unit's serial communication device (modem) is capable of operating. Because the baud rate table is microcontroller-resident, it is programmable, so that the tuning capabilities of the serial input output device may be updated, for example by the replacement of a modem card capable of handling a prescribed set of baud rates with a more enhanced modem card having an expanded set of baud rates.
Pursuant to the invention the highest baud rate within the table is the default baud rate, which the detection mechanism employs when initiating a baud rate detection routine in response to an incoming call. The routine is operative to step through successively lower baud rates from the highest baud rate in the course of a search for the baud rate at which the remote device is transmitting. The baud rate entries of the table are stored in sequential addresses in memory, which may be scanned by an associated soft-counter which controls baud rate entry access, the soft-counter rolling over to the highest entry once it has stepped to the lowest entry address. This roll-over to the default entry ensures that the search will not become 'hung up' on any baud rate.
When an incoming call is received, and the terminal device goes off-hook, the respective bits of the received data (a potentially valid character, such as a carriage return) are stored, and the received data bit pattern is analyzed for the presence of transmission errors, such as framing, parity and overrun. If a transmission error is detected, then it is inferred that what has been received is not a valid character at the current (default) baud rate setting. The routine then increments the baud rate table address counter so as to step to the next lowest baud rate entry in the table.
If, on the other hand no transmission error has been detected, it is inferred assumed that what has been received is a potentially valid character at the present baud rate setting, and the stored data bits are compared with a prescribed reference character (e.g. carriage return) . If the serial bit compositions of the two compared data bit patterns match, it is inferred that the remote site is transmitting at the current baud setting, and the microcontroller locks the modem baud rate at that baud setting for the remainder of the call . When the call is terminated and the device logs off into an idle state, the baud rate reverts to its default setting. If the bit pattern comparison does not indicate a match, it is inferred that the remote site is not transmitting at the current baud setting, and the routine increments the baud rate table address counter to step to the next baud rate entry in the table.
When the autobaud detection routine has stepped to a new baud rate entry, it initiates a prescribed time-out (e.g. five seconds) as a safeguard against the receiver becoming 'out-of- sync' with a transmitter, whose baud rate is faster than that to which the receiving serial device is currently set . Within this time period, if the receiving serial device does not receive a further character bit pattern, it reverts to the default setting, thereby reinitiating the baud rate detection process. The length of the time out period is based upon the lowest baud rate available, and is no less than the minimum character receive time for the lowest baud rate entry and allowing for character separation for every incoming character in order to ensure proper character identification. Customarily, the user at the remote end repeatedly asserts the character (hits the carriage return key) , to establish a connection at any of the available baud rates . When a new character pattern is received within the time out window (which is normally the case) , the routine checks the contents of the character for transmission errors, and the process proceeds as described above.
Eventually, the autobaud detect routine will have stepped to the baud rate being transmitted, and will have captured and matched the connectivity character at the proper baud rate. If a transmission error occurs, it may be necessary to restep through the baud rate table entry sequence. However, with the wrap around feature of the table entry addressing scheme, it is ensured that the process will not hang up on any particular baud rate.
BRIEF DESCRIPTION OF THE DRAWINGS
Figure 1 diagrammatically illustrates a telephone network having a plurality of distributed remote test equipments that are linked to supervisory data terminal units by way of a central office; and
Figure 2 is a flow chart of the digital communications processing routine employed by the autobaud detection mechanism in accordance with the present invention.
DETAILED DESCRIPTION Before describing in detail the autobaud detection mechanism in accordance with the present invention, it should be observed that the invention resides primarily in what is effectively a prescribed augmentation of the communication control software of the serial communication device's microcontroller, which enables the microcontroller to automatically determine the baud rate employed by a remote digital data communications device, so that the baud rate of the internal modem of the unit may be readily set and locked to that baud rate for the duration of the communication. The details of the circuitry of the serial communication devices are otherwise essentially unaffected. Consequently, the configuration of such devices and the manner in which they are interfaced with other communication equipment of the telephone network have been illustrated in the drawings by readily understandable block diagrams, which show only those specific details that are pertinent to the present invention, so as not to obscure the disclosure with details which will be readily apparent to those skilled in the art having the benefit of the description herein. Thus, the block diagram illustrations of the Figures are primarily intended to illustrate the major components of the system in a convenient functional grouping, whereby the present invention may be more readily understood. The autobaud detection mechanism of the present invention will be described with reference to Figure 2 which is a communications signal processing flow routine through which the baud rate of a remote message-sourcing terminal may be automatically determined. As pointed out briefly above, rather than employ baud- setting switches through which baud rate may be set by craftsperson intervention, the present invention employs a set or table of baud rate entries, at any of which the terminal unit's serial communication device (modem) is capable of operating. Because the baud rate table is microcontroller resident, it is programmable, so that the autobaud detection mechanism may be updated as the communication capabilities of the terminal unit change, for example by the replacement of a modem card capable of handling a prescribed set of baud rates with a more enhanced modem card having an expanded set of baud rates. Referring now to Figure 2, which shows respective steps of the communications processing routine of autobaud detection mechanism in accordance with the present invention, the baud detection process begins at step 201, with the serial communications device (e.g. UART, SIO, etc,) in an IDLE or ON- HOOK mode. During this state, the microcontroller of the device defaults to the highest baud rate in its baud rate table, shown at 200. In order to facilitate stepping through successively lower baud rates, the baud rate entries may be stored in sequential addresses in memory, with an associated soft-counter which controls baud rate entry access rolling over to the highest entry once it has stepped to the lowest entry address, so that the baud rate access mechanism is operative to 'wrap around' on itself, and therefore does not become 'hung up' on any particular (the lowest) baud rate. For purposes of an illustrative example, the baud rate entry table may contain four baud rates (1200, 2400, 4800 and 9600) . Thus, the default entry for this example is 9600 baud.
When an incoming call is received, and the terminal device goes off-hook, as shown at step 203, the respective bits of one or more potentially valid characters employed to establish communications between terminal units are stored in a register or section of memory dedicated to character matching, as will be described. For purposes of the present description, as a non- limitative example, and keeping with currently accepted practice in establishing and confirming connectivity between a data- sourcing site (calling party) and a data destination site (called party) , a carriage return character (ENTER = ASCII 13) is employed as the character to be transmitted and identified for baud rate detection. As data bits of a potentially valid character are received and stored (step 205) , they are analyzed by the serial communications device for the presence of transmission errors, for example - framing, parity and overrun, as shown at step 207. If a transmission error is detected (the answer to step 209 is YES) , it is inferred that the received bit pattern is not a valid character at the present baud rate setting (as determined by the currently accessed baud rate entry in Table 200) , and the routine transitions to step 211, which increments the baud rate table address counter so as to step to the next lowest baud rate entry in the table. Starting with a default setting of 9600 for the idle state, step 211 proceeds to the next lowest baud rate of 4800 baud in the present example.
If, on the other hand, no transmission error has been detected (the answer to step 209 is NO) , it is inferred that the received bit pattern corresponds to that of a potentially valid character at the present baud rate setting, and the routine transitions to step 213, which compares the stored bits of the character string with a prescribed reference character (a carriage return, in the present example) . If the serial bit compositions of the two compared characters are identical (the answer to step 215 is YES) , then it is inferred that the remote site is transmitting at the current baud setting, and the microcontroller locks the modem baud rate at that baud setting for the remainder of the call (step 217) . When the call is terminated and the device logs off into an idle state, the baud rate reverts to its default setting (9600 baud in the present example, as shown at step 201) .
If the result of comparison step 215 is NO, indicating that the serial bit composition of the received character is not a complete character (including necessary stop bits) identical to the stored reference character, then it is inferred that the remote site is not transmitting at the current baud setting, and the process transitions to step 211, which, as noted above, increments the baud rate table address counter to step to the next baud rate entry in the table.
When the autobaud detection routine has stepped to a new baud rate entry, it initiates a prescribed time-out (e.g. five seconds) shown at step 221, as a safeguard against the receiver becoming 'out-of-sync' with a transmitter, whose baud rate is faster than that to which the receiving serial device is currently set. As shown by step 223, within this time period the receiving serial device must receive a further character for analysis (the answer to step 223 is YES) ; otherwise (the answer to step 223 is NO) it reverts to the default setting, thereby reinitiating the baud rate detection process (step 201) . The period of time prescribed in step 223 is based upon the lowest baud rate available, and is no less than the minimum character receive time for the lowest baud rate entry and allowing for character separation for every incoming character in order to ensure proper character identification. Customarily, the user at the remote end repeatedly asserts the character (hits the carriage return key) , to establish a connection at any of the available baud rates. For a character received within the time out window (the answer to step 223 is YES) , which is normally the case, the routine transitions to step 207, which checks the contents of the character for transmission errors, and the process proceeds as described above.
Eventually, the autobaud detect routine of Figure 2 will have stepped to the baud rate being transmitted, and captured and matched the connectivity character at the proper baud rate. As noted above, if a transmission error occurs, it may be necessary to restep through the baud rate table entry sequence. However, with the wrap around feature of the table entry addressing scheme, it is ensured that the process will not hang up on any particular baud rate. Once the answer to step 215 is YES, indicating that the remote site is transmitting at the current baud setting, the microcontroller locks the modem baud rate at that baud setting for the remainder of the call (step 217) . As will be appreciated from the foregoing description, the need participation of technical personnel to determine and then perform parameter adjustments of the control settings of a data terminals unit of a conventional baud rate setting and adjustment scheme are effectively obviated by the autobaud detection mechanism of the present invention, which is readily installed as part of the communication control software of the serial communication device's microcontroller, and enables the microcontroller to automatically determine the baud rate employed by a remote digital data communications device, so that the baud rate of the internal modem of the unit may be readily set and locked to that baud rate.
While I have shown and described an embodiment in accordance with the present invention, it is to be understood that the same is not limited thereto but is susceptible to numerous changes and modifications as known to a person skilled in the art, and I therefore do not wish to be limited to the details shown and described herein but intend to cover all such changes and modifications as are obvious to one of ordinary skill in the art. An autobaud detection mechanism, installed as part of the communication control software of a serial communication device's microcontroller, enables the device to automatically determine the baud rate employed by a remote digital data communications device. Starting with a default baud rate, corresponding to the highest available baud rate, the mechanism steps through successively lower baud rates in the course of a search for the baud rate at which the remote device is transmitting. When an incoming call is received, respective bits of the received data are examined for the presence of transmission errors. If a transmission error is detected, the baud rate is stepped to the next lowest baud rate. If no error is detected, the received data bits are compared with a reference character. If the two compared data bit patterns match, the controller locks the baud rate at that baud setting for the remainder of the call . When the call is terminated, the baud rate reverts to its default setting. If the bit pattern comparison does not indicate a match, the baud rate is stepped to the next lowest baud rate. When the autobaud detection routine has stepped to a new baud rate entry, it initiates a prescribed time-out as a safeguard against the receiver becoming 'out-of-sync' with a transmitter. Once, the lowest baud rate has been reached, the routine steps to the default setting and starts again.

Claims

WHAT IS CLAIMED
1. For use with a serial data communications device having a serial port through which digital data messages are interfaced between a resident communications controller and a serial data communications link, to which a remote terminal device is coupled, a mechanism for establishing the baud rate of said serial communications device at the baud rate of a digital data message received from said remote terminal device comprising the steps of: (a) initially setting the baud rate of said serial communications device to a default baud rate corresponding to the highest baud rate at which said serial communications device is operative to communicate with a remote terminal device;
(b) in response to an incoming call from a remote terminal device, examining respective bits of a received digital data stream for the presence of transmission errors;
(c) in response to step (b) detecting the presence of a transmission error, changing the baud rate from its current baud rate to a baud rate lower than the current baud rate, and monitoring said serial data communications link for digital data transmitted from said remote terminal device at said lower baud rate, but otherwise comparing the bit contents of said received digital data stream with a digital bit pattern associated with a prescribed reference character; and (d) in response to step (c) detecting a match between said received digital data stream and said digital bit pattern associated with said prescribed reference character, setting the baud rate of said serial communications device at the current baud setting for the remainder of the call, but otherwise changing the baud rate from its current baud rate to said lower baud rate, and repeating steps (b) - (d) , until step (d) sets the baud rate of said serial communications device for the remainder of the call.
2. A method according to claim 1, wherein, in said baud rate changing steps (c) and (d) , in response to said current baud rate being the lowest baud rate at which said serial communications device is operative to communicate with a remote terminal device, changing the current, lowest baud rate to said default highest baud rate.
3. A method according to claim 1, wherein, in each of steps (c) and (d) , upon changing the baud rate from its current baud rate to said lower baud rate, initiating a time-out period, and repeating steps (b) - (d) only in response to the receipt of a further digital message from said remote terminal within said time-out period, but otherwise changing the baud rate from its current baud rate to said default baud rate of step (a) and repeating steps (b) - (d) .
4. A method according to claim 3, wherein said time-out period is no less than the minimum character receive time for the lowest baud rate entry, allowing for character separation for every incoming character in order to ensure character identification in step (c) .
5. A method according to claim 1, wherein step (a) includes the step of storing a plurality of baud rate representative codes associated with those baud rates at which said serial communications device is capable of communicating with a remote terminal device, and setting the default baud rate of said serial communications device to the highest baud rate at which said serial communications device is capable of communicating with a remote terminal device.
6. A serial data communications device having a serial port through which digital data messages are interfaced between a resident communications controller and a serial data communications link, to which a remote terminal device is coupled, said communications controller having its baud rate initially set to a default baud rate corresponding to the highest baud rate at which said serial communications device is capable of communicating with a remote terminal device, and being operative to establish the baud rate of said serial communications device at the baud rate of a digital data message received from said remote terminal device by means of a baud rate establishing routine which is operative to execute the following steps:
(a) in response to an incoming call from a remote terminal device, examining respective bits of a received digital data stream for the presence of transmission errors;
(b) in response to step (a) detecting the presence of a transmission error, changing the baud rate from its current baud rate to a baud rate lower than the current baud rate, and monitoring said serial data communications link for digital data transmitted from said remote terminal device at said lower baud rate, but otherwise comparing the bit contents of said received digital data stream with a digital bit pattern associated with a prescribed reference character; and
(c) in response to step (b) detecting a match between said received digital data stream and said digital bit pattern associated with said prescribed reference character, setting the baud rate of said serial communications device at the current baud setting for the remainder of the call, but otherwise changing the baud rate from its current baud rate to said lower baud rate, and repeating steps (a) - (c) , until step (c) sets the baud rate of said serial communications device for the remainder of the call.
7. A serial data communications device according to claim 6, wherein, in said baud rate changing steps (b) and (c) , in response to said current baud rate being the lowest baud rate at which said serial communications device is operative to communicate with a remote terminal device, said routine is operative to change the current, lowest baud rate to said default highest baud rate.
8. A serial data communications device according to claim 6, wherein, in each of steps (b) and (c) , upon changing the baud rate from its current baud rate to said lower baud rate, said routine is operative to initiate a time-out period, and repeat steps (a) - (c) only in response to the receipt of a further digital message from said remote terminal within said time-out period, but otherwise said routine changes the baud rate from its current baud rate to said default baud rate and repeats steps (a) - (c) .
9. A serial data communications device according to claim 8, wherein said time-out period is no less than the minimum character receive time for the lowest baud rate entry, allowing for character separation for every incoming character in order to ensure character identification in step (b) .
10. A serial data communications device according to claim 6, wherein said communications controller includes memory which stores a plurality of baud rate representative codes associated with those baud rates at which said serial communications device is capable of communicating with a remote terminal device.
PCT/US1995/001820 1994-02-09 1995-02-09 Automatic detection of data rate WO1995022217A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU19176/95A AU1917695A (en) 1994-02-09 1995-02-09 Automatic detection of data rate

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US08/193,813 1994-02-09
US08/193,813 US5490209A (en) 1994-02-09 1994-02-09 Autobaud rate detection mechanism

Publications (1)

Publication Number Publication Date
WO1995022217A1 true WO1995022217A1 (en) 1995-08-17

Family

ID=22715115

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US1995/001820 WO1995022217A1 (en) 1994-02-09 1995-02-09 Automatic detection of data rate

Country Status (3)

Country Link
US (1) US5490209A (en)
AU (1) AU1917695A (en)
WO (1) WO1995022217A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998019405A1 (en) * 1996-10-30 1998-05-07 Qualcomm Incorporated Method and apparatus for performing data rate determination
GB2330047A (en) * 1997-07-16 1999-04-07 Samsung Electronics Co Ltd Controlling baud rates for data exchange
EP0918421A1 (en) * 1997-11-13 1999-05-26 Optimay GmbH Baud rate detection in serial data transmission
EP0998703A1 (en) * 1996-08-23 2000-05-10 Ascend Communications, Inc. Method and system for automatic detection for isdn switch time in north america
CN1315072C (en) * 2004-04-25 2007-05-09 赵红刚 Method for automatic matching communication of computer and serial port external module
CN111314018A (en) * 2019-11-01 2020-06-19 珠海格力电器股份有限公司 Baud rate self-adaptive adjustment processing system and method and information data processing terminal

Families Citing this family (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5881240A (en) * 1995-03-29 1999-03-09 Brother Kogyo Kabushiki Kaisha Method and device for setting speed of data transmission
US5841992A (en) * 1996-03-25 1998-11-24 Snap-On Tools Company Network-to-serial device intelligent converter
JP2954048B2 (en) * 1996-11-19 1999-09-27 山形日本電気株式会社 Baud rate generation circuit
US5852615A (en) * 1996-12-14 1998-12-22 Microsoft Corp. Method and system for transmitting data from a unidirectional transmitter to a receiver
US6008735A (en) * 1997-02-03 1999-12-28 Microsoft Corporation Method and system for programming a remote control unit
US6031848A (en) * 1997-05-07 2000-02-29 3Com Corporation Apparatus for an improved ISDN terminal adapter having baud rate unblocking and methods for use therein
US5963622A (en) * 1997-07-29 1999-10-05 3Com Corporation Mode signalling method and apparatus
US6072827A (en) * 1997-08-29 2000-06-06 Xiox Corporation Automatic baud rate detection
US6198785B1 (en) 1997-09-29 2001-03-06 Lucent Technologies Inc. Autobaud rate detection and adjustment
US6175576B1 (en) * 1997-10-17 2001-01-16 Paradyne Corporation Signaling capable telecommunication system and method
SE512509C2 (en) 1997-12-17 2000-03-27 Ericsson Telefon Ab L M Method and apparatus for establishing data communication via a mobile telephone modem
US6097754A (en) * 1998-02-25 2000-08-01 Lucent Technologies, Inc. Method of automatically detecting the baud rate of an input signal and an apparatus using the method
US6157689A (en) * 1998-03-16 2000-12-05 Ericsson Inc. Automatic speed detection for asynchronous serial communications
US6442628B1 (en) * 1998-05-01 2002-08-27 Adaptec, Inc. Method and system for automatically determining maximum data throughput over a bus
US6366610B1 (en) 1998-05-15 2002-04-02 Advanced Micro Devices, Inc. Autobauding with adjustment to a programmable baud rate
JP3994360B2 (en) * 1998-05-20 2007-10-17 ソニー株式会社 Information processing apparatus, information processing method, and recording medium
KR100477794B1 (en) * 1998-06-27 2005-06-08 주식회사 팬택앤큐리텔 Automated Board Execution Method of IMP with Data Format Detection
US6597374B1 (en) 1998-11-12 2003-07-22 Microsoft Corporation Activity based remote control unit
US6678751B1 (en) * 1999-10-15 2004-01-13 Micro Motion, Inc. System for setting frame and protocol for transmission in a UART device
US6675215B1 (en) * 2000-02-17 2004-01-06 Microsoft Corporation Automatic baud rate detection of null modem unimodem client connection
US6850561B1 (en) 2000-03-21 2005-02-01 Advanced Micro Devices, Inc. Predictable updating of a baud divisor of an asynchronous serial port during data reception
GB0013147D0 (en) * 2000-05-31 2000-07-19 Koninkl Philips Electronics Nv Method of and receiver for estimating the bit rate of data
DE10121912C2 (en) * 2001-05-05 2003-05-22 Phoenix Contact Gmbh & Co Method for central data rate setting in a data transmission system and device for central data rate setting
US6944248B2 (en) * 2001-05-17 2005-09-13 Bluebrook Associates Llc Data rate calibration for asynchronous serial communications
US7076033B2 (en) * 2003-03-31 2006-07-11 Research In Motion Limited Bit rate matching system and method
US6798869B1 (en) * 2003-03-31 2004-09-28 Research In Motion Limited Bit rate matching system and method
JP3909704B2 (en) * 2003-04-04 2007-04-25 ソニー株式会社 Editing system
US7333536B2 (en) * 2003-10-09 2008-02-19 Stmicroelectronics Pvt. Ltd. System and method for auto baud rate detection in asynchronous serial communication
DE102004018614B4 (en) * 2004-04-16 2016-07-21 Conti Temic Microelectronic Gmbh Method and bus connection unit for detecting the current bit rate in a data bus system
US8041844B2 (en) * 2004-12-29 2011-10-18 Intel Corporation Autodetection of a PCI express device operating at a wireless RF mitigation frequency
US7861017B2 (en) * 2007-10-19 2010-12-28 Sony Corporation Consumer electronics control (CEC) line enhancement method for HDMI network that selects a transfer rate from a plurality of transfer rates
CN101645752B (en) * 2008-08-08 2013-01-09 鸿富锦精密工业(深圳)有限公司 Automatic detection system and automatic detection method of communication protocol
JP2011035473A (en) * 2009-07-29 2011-02-17 Renesas Electronics Corp Baud rate error detection circuit and baud rate error detection method
US10038569B2 (en) * 2016-03-29 2018-07-31 Intel IP Corporation Self-adapting baud rate
US10608868B2 (en) * 2017-11-29 2020-03-31 International Business Machines Corporation System and method for proactive distributed agent based network diagnosis
WO2019116446A1 (en) * 2017-12-12 2019-06-20 三菱電機株式会社 Optical communication device, control method, and control program
CN113141323A (en) * 2021-03-22 2021-07-20 北京星网锐捷网络技术有限公司 Serial port based inter-device communication method and device
CN114866367B (en) * 2022-04-13 2023-12-05 深圳市三旺通信股份有限公司 CAN equipment communication method and device, CAN optical cat equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0463269A1 (en) * 1990-06-29 1992-01-02 International Business Machines Corporation Method and apparatus for automatic functional speed setting of a data circuit terminating equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5816668B2 (en) * 1976-11-12 1983-04-01 富士通株式会社 Facsimile transmission method
US4418322A (en) * 1980-04-03 1983-11-29 Amp Incorporated Automatic digital circuit for synchronizing with a variable baud rate generator
JPS59165540A (en) * 1983-03-09 1984-09-18 Ricoh Co Ltd Control system for data transmission
JPH0722324B2 (en) * 1983-08-30 1995-03-08 富士通株式会社 Data transmission method
US5159465A (en) * 1987-10-09 1992-10-27 Ricoh Company, Ltd. Facsimile machine having a transmission speed selective shiftdown function
US5008902A (en) * 1989-01-25 1991-04-16 International Business Machines Corp. Automatic baud rate detection
US5202963A (en) * 1990-12-18 1993-04-13 Bull Hn Information Systems Inc. Method and apparatus for adapting a remote communications controller to a variety of types of communications modems
US5202899A (en) * 1991-08-16 1993-04-13 Rockwell International Corporation Apparatus for providing dynamic selection of modem protocol to support multiple modem types

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0463269A1 (en) * 1990-06-29 1992-01-02 International Business Machines Corporation Method and apparatus for automatic functional speed setting of a data circuit terminating equipment

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0998703A1 (en) * 1996-08-23 2000-05-10 Ascend Communications, Inc. Method and system for automatic detection for isdn switch time in north america
EP0998703A4 (en) * 1996-08-23 2001-02-07 Ascend Communications Inc Method and system for automatic detection for isdn switch time in north america
WO1998019405A1 (en) * 1996-10-30 1998-05-07 Qualcomm Incorporated Method and apparatus for performing data rate determination
US5872775A (en) * 1996-10-30 1999-02-16 Qualcomm Incorporated Method and apparatus for performing rate determination
GB2330047A (en) * 1997-07-16 1999-04-07 Samsung Electronics Co Ltd Controlling baud rates for data exchange
US6356583B1 (en) 1997-07-16 2002-03-12 Samsung Electronics Co., Ltd. Device and method for controlling the baud rate between a portable telephone and an external device
EP0918421A1 (en) * 1997-11-13 1999-05-26 Optimay GmbH Baud rate detection in serial data transmission
WO1999026384A1 (en) * 1997-11-13 1999-05-27 Optimay Gmbh Baud rate detection in serial data transmission
AU743350B2 (en) * 1997-11-13 2002-01-24 Optimay Gmbh Baud rate detection in serial data transmission
CN1315072C (en) * 2004-04-25 2007-05-09 赵红刚 Method for automatic matching communication of computer and serial port external module
CN111314018A (en) * 2019-11-01 2020-06-19 珠海格力电器股份有限公司 Baud rate self-adaptive adjustment processing system and method and information data processing terminal
CN111314018B (en) * 2019-11-01 2021-07-13 珠海格力电器股份有限公司 Baud rate self-adaptive adjustment processing system and method and information data processing terminal

Also Published As

Publication number Publication date
US5490209A (en) 1996-02-06
AU1917695A (en) 1995-08-29

Similar Documents

Publication Publication Date Title
US5490209A (en) Autobaud rate detection mechanism
US5195085A (en) Communication link identifier
US5450425A (en) Protocol for communication of a data packet
US4856047A (en) Automated remote telemetry paging system
US5793809A (en) Transparent technique for Mu-law modems to detect an all-digital circuit connection
US5825849A (en) Loop-back test system using a suppressed ringing connection
US4646287A (en) Idle period signalling in a packet switching system
US4850008A (en) Method and apparatus for discrimination between different kinds of data transmission
US4680773A (en) Data telecommunications system and method utilizing a multi-mode modem
CN1133518A (en) Method of fast setting high-speed PSTN connection used in telecommunication exchange
US4646320A (en) Automatic digital strapping apparatus for data modems
US5680589A (en) Ring communication system using ISDN
US6178233B1 (en) System and method for off-line notifying a network user
WO1989011190A1 (en) Isdn traffic generator adaptor
US5125082A (en) Management system capable of quickly assigning a terminal endpoint identifier to a terminal equipment unit
US7272211B2 (en) Property management system protocol auto-detection
JPH10224466A (en) Information transfer method
US5440617A (en) Simple modem log-on authentication
US6081556A (en) Transparent technique for Mu-law modems to detect an all-digital circuit connection
CA1141453A (en) Shared maintenance terminal system
US5457690A (en) DTMF Signaling on four-wire switched 56 Kbps Lines
WO1995026603A1 (en) Method and apparatus for transmission of data and voice
KR960010864B1 (en) Telecommunication line matching apparatus and method
KR100489943B1 (en) The method for customer management in remote data transfer system
KR100606006B1 (en) Terminal specific information automatic setting device and method of key phone system

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AU CA CN NZ

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FR GB GR IE IT LU MC NL PT SE

121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: CA

122 Ep: pct application non-entry in european phase