CN112648954A - Method and device for determining length of interface cable - Google Patents

Method and device for determining length of interface cable Download PDF

Info

Publication number
CN112648954A
CN112648954A CN202011565772.1A CN202011565772A CN112648954A CN 112648954 A CN112648954 A CN 112648954A CN 202011565772 A CN202011565772 A CN 202011565772A CN 112648954 A CN112648954 A CN 112648954A
Authority
CN
China
Prior art keywords
signal
duration
time
determining
media interface
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011565772.1A
Other languages
Chinese (zh)
Inventor
李帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202011565772.1A priority Critical patent/CN112648954A/en
Publication of CN112648954A publication Critical patent/CN112648954A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness

Abstract

The application provides a method for determining the length of an interface cable, which comprises the following steps: determining a first signal duration between an oscillator and a media interface and a second signal duration between the oscillator and the media interface via a baseboard management controller, wherein the first signal duration corresponds to at least a clock signal and the second signal duration corresponds to at least a clock signal and a data signal; the clock signal and the data signal at least satisfy a time alignment condition; determining a third signal duration from the baseboard management controller to the media interface based on the first signal duration and the second signal duration; determining a cable length from the baseboard management controller to the media interface based on the third signal duration. Simultaneously, this application still provides a device for confirming interface cable length.

Description

Method and device for determining length of interface cable
Technical Field
The present disclosure relates to computer hardware layout technologies, and in particular, to a method and an apparatus for determining a length of an interface cable.
Background
A Network Interface is usually provided in the server to support the function of Network Controller Sideband Interface (NCSI), but in the conventional design specification requirements, the length of the cable of the simplified Independent Media Interface (RMII) of the NCSI is required to be within 20 inches, which severely limits the structural layout of the motherboard.
Disclosure of Invention
In view of the above, embodiments of the present application are intended to provide a method and an apparatus for determining a length of an interface cable.
In order to achieve the purpose, the technical scheme of the application is realized as follows:
according to an aspect of the present application, there is provided a method for determining a length of an interface cable, including:
determining a first signal duration between an Oscillator (OSC) and a Media Interface (RMII) and a second signal duration between the Oscillator and the Media Interface via a Baseboard Management Controller (BMC), wherein the first signal duration corresponds to at least a clock signal and the second signal duration corresponds to at least a clock signal and a data signal; the clock signal and the data signal at least satisfy a time alignment condition; determining a third signal duration from the baseboard management controller to the media interface based on the first signal duration and the second signal duration; determining a cable length from the baseboard management controller to the media interface based on the third signal duration.
In the above scheme, the step of the clock signal and the data signal at least satisfying the time alignment condition includes:
determining a requirement of the media interface for setup time and a requirement for hold time based on a time difference between the first signal time duration and the second signal time duration; the media interface's requirements for setup time and for the hold time at least satisfy a time alignment condition.
In the foregoing solution, determining a third signal duration between the baseboard management controller and the media interface based on the first signal duration and the second signal duration includes:
determining a maximum value corresponding to the third signal duration based on the requirement of the media interface for the setup time; determining a minimum value corresponding to the third signal duration based on the requirement of the media interface for the holding time; determining the third signal duration in a range from the maximum value to the minimum value.
In the foregoing solution, determining the requirement of the media interface for the setup time based on the time difference between the first signal time and the second signal time at least includes:
determining a total time length between the first signal time length and the current N clock cycles; and determining a time length difference between the total time length and the second signal time length; if the current establishing time is less than or equal to the duration difference, determining that the current establishing time meets the requirement of the media interface on the establishing time;
determining a requirement of the media interface for a hold time based on a difference in the duration of the first signal duration and the second signal duration, including at least:
determining a total duration of the second signal duration and a half duration of a current clock cycle, determining a first time difference between the total duration and the current N time periods, and determining a second time difference between the first time difference and the first signal duration; and if the current holding time is less than or equal to the second time length difference, determining that the current holding time meets the requirement of the media interface on the holding time.
In the above scheme, the method further comprises:
the third signal duration satisfies a multiple condition of a clock period corresponding to the first signal duration.
In the above scheme, the method further comprises:
the third signal duration is N times of a clock period corresponding to the first signal duration, where N is greater than or equal to 2.
In the above scheme, the method further comprises:
and the signal intensity corresponding to the length of the cable from the baseboard management controller to the media interface meets the preset signal intensity.
In the foregoing solution, the second signal duration at least includes: a first duration and a second duration; wherein the first duration is the same as or different from the first signal duration.
In the foregoing solution, determining the length of the cable from the baseboard management controller to the media interface based on the third signal duration includes:
determining the length of the cable corresponding to the third signal duration based on a preset table; the preset table stores mapping relations of various cable lengths and signal durations; determining the cable length as a cable length of the baseboard management controller to the media interface.
According to another aspect of the present application, there is provided an apparatus for determining a length of an interface cable, including:
the device comprises a determining unit, a judging unit and a processing unit, wherein the determining unit is used for determining a first signal time length from an oscillator to a media interface and a second signal time length from the oscillator to the media interface through a baseboard management controller, the first signal time length at least corresponds to a clock signal, and the second signal time length at least corresponds to the clock signal and a data signal; the clock signal and the data signal at least satisfy a time alignment condition; and further configured to determine a third signal duration between the baseboard management controller and the media interface based on the first signal duration and the second signal duration; and the controller is further configured to determine a cable length from the baseboard management controller to the media interface based on the third signal duration.
According to the method and the device for determining the length of the interface cable, a first clock signal between an oscillator and a media interface is determined; determining a third clock signal of the oscillator to a baseboard management controller based on a clock difference of the first clock signal and the second clock signal; the second clock signal characterizes a vibration period of the oscillator; determining a cable length of the media interface based on the third clock signal. Therefore, not only can the reliable transmission of the data signals be guaranteed, but also the layout structure of the mainboard can not be limited by the cable length of the media interface any more.
Drawings
Fig. 1 is a schematic view of a flow implementation of a method for determining a length of an interface cable according to the present application;
FIG. 2 is a schematic structural component diagram of an electronic device according to the present application;
FIG. 3 is a first structural diagram of an apparatus for determining the length of an interface cable according to the present application;
fig. 4 is a schematic structural diagram of a device for determining the length of an interface cable according to the present application.
Detailed Description
The technical solution of the present application is further described in detail with reference to the drawings and specific embodiments of the specification.
Fig. 1 is a schematic view of a flow implementation of a method for determining a length of an interface cable in the present application, as shown in fig. 1, including:
step 101, determining a first signal duration between an oscillator and a media interface and a second signal duration between the oscillator and the media interface through a baseboard management controller, wherein the first signal duration at least corresponds to a clock signal, and the second signal duration at least corresponds to the clock signal and a data signal; the clock signal and the data signal at least satisfy a time alignment condition;
in the present application, the method is mainly applied to electronic devices, and the electronic devices may be desktop computers, notebook computers, servers, and the like.
Specifically, the electronic device may determine a first signal duration between the oscillator and the media interface according to a conversion relationship between the cable length and the signal transmission period by determining a cable length between the oscillator and the media interface. The first signal duration corresponds to at least a clock signal.
For example, the NCSI clock is 50Mhz with a period of 20ns, where 1ns corresponds to 6 inches, and when the long cable length between OSC and RMII is determined to be 18 inches, the duration of the clock signal between OSC and RMII can be determined to be 3 ns.
In the application, when the electronic device determines the second signal duration between the oscillator and the media interface through the baseboard management controller, the specific length of the cable is unknown, so that the second signal duration can be preset in a preset mode. And the data signal corresponding to the duration of the second signal generally refers to the data signal transmitted from the baseboard management controller to the media interface, that is, the signal for the data transmission direction (TXEN/TXD). The clock signal corresponding to the second signal duration is actually transmitted to the BMC through the cable, and then forwarded inside the BMC and then sent back to the Ethernet (ETH, Ethernet), so that the setup holding time needs to be analyzed at the receiving end of the ETH (or RMII), and it is ensured that the clock signal and the data signal corresponding to the second signal duration at least satisfy the time alignment condition, so as to avoid the occurrence of the abnormal setup time and hold time in the data transmission direction.
Here, the RMII actually belongs to the independent media interface of the ETH, so the RMII of the ETH can be used as the receiving end.
In this application, when the clock signal and the data signal corresponding to the second signal duration at least satisfy the time alignment condition, the requirement of the media interface for the setup time and the requirement for the hold time may be specifically determined based on the duration difference between the first signal duration and the second signal duration; wherein the media interface requires at least a time alignment condition for the set-up time and a hold time.
Specifically, when determining the requirement of the media interface for the setup time based on the time difference between the first signal time and the second signal time, the electronic device may at least first determine the total time between the first signal time and the current N clock cycles; and determining a time difference between the total time length and the second signal time length; and if the current establishing time is less than or equal to the duration difference, determining that the current establishing time meets the requirement of the media interface on the establishing time. Specifically, the requirement of the media interface for the setup time is shown in the following formula (one):
Tsetup≤(Tfly-clk+n·T)-Tfly-data (one);
wherein, Tfly-clk represents the first signal duration. T isfly-data represents the duration of the second signal, T represents a time period and n represents several time periods.
In addition, when determining the requirement of the media interface for the holding time based on the time length difference between the first signal time length and the second signal time length, the electronic device may at least first determine a total time length between the second signal time length and a half time length of the current clock cycle, determine a first time length difference between the total time length and the current N clock cycles, and determine a second time length difference between the first time length difference and the first signal time length; and if the current holding time is less than or equal to the second time difference, determining that the current holding time meets the requirement of the media interface on the holding time. Specifically, the requirement of the media interface for the retention time is shown in the following formula (two):
Figure BDA0002861708470000051
wherein, Tfly-clk represents the first signal duration. T isfly-data represents the duration of the second signal, T represents a time period and n represents several time periods.
In this application, the second signal duration at least includes a first duration and a second duration. The first time duration and the first signal time duration may be the same or different. Depending on the position of the OSC on the motherboard. For example, when the OSC is located directly above the RMII, the first duration and the first signal duration may be the same, and when the OSC is located above the RMII in a direction away from the BMC, the first duration and the first signal duration may be different.
In this application, the signal strength corresponding to the cable length from the baseboard management controller to the media interface also needs to satisfy the preset signal strength.
For example, if the preset signal strength is a, the signal strength corresponding to the cable length from the bmc to the media interface cannot be lower than a, so as to meet the requirement of signal quality.
102, determining a third signal duration from the baseboard management controller to the media interface based on the first signal duration and the second signal duration;
in this application, the electronic device may determine a third signal duration between the baseboard management controller and the media interface based on a duration difference between the first signal duration and the second signal duration and requirements of the media interface for setup time and hold time.
Specifically, the electronic device may first determine a maximum value corresponding to the duration of the third signal based on a requirement of the media interface for setup time; then, based on the requirement of the media interface for the holding time, determining the minimum value corresponding to the third signal duration; finally, the third signal duration is determined in the range from the maximum value to the minimum value.
Fig. 2 is a schematic structural diagram of an electronic device in the present application, as shown in fig. 2, including:
an Oscillator (OSC)201, a Baseboard Management Controller (BMC)202, and a media interface (RMII)203, wherein (i) between the OSC 201 and the RMII 203 is a first signal duration, and (ii) between the OSC 201 and the BMC 202 and the RMII 203 is a second signal duration.
Here, continuing to refer to the above equation (one) and equation (two), the following equations (three) and (four) are obtained:
wherein L is calculatedmax(Tsetup):
As shown in particular in figure 2 of the drawings,
Tfly-clk ═ r, representing the first signal duration; t isfly-data ═ r + c + r, representing the second signal duration;
according to the formula (I), the following results are obtained:
Tsetup≤(①+n·T)-(①+②+③+④)
Tsetup≤n·T-(②+③+④)
among them, since (c) is (d):
Tsetup≤n·T-(②+②+③),
thereby, the maximum value corresponding to the third signal duration can be obtained:
Figure BDA0002861708470000071
calculating Lmin(Thold):
According to the formula (two), it is found that:
Figure BDA0002861708470000072
therefore, the minimum value corresponding to the third signal time length can be obtained:
Figure BDA0002861708470000073
thus, the range of values for the duration of the third signal is:
Figure BDA0002861708470000074
in this application, the duration of the third signal at least needs to satisfy the multiple condition of the clock period corresponding to the duration of the first signal.
For example, the third signal duration is N times of the clock period corresponding to the first signal duration, where N is greater than or equal to 2. For example, referring to the above equations (three, four), the following equation (five) can be obtained:
when n is 1, T is 20ns, i.e.:
Figure BDA0002861708470000081
when n is 2, T is 20ns, i.e.:
Figure BDA0002861708470000082
step 103, determining the length of the cable from the baseboard management controller to the media interface based on the third signal duration.
In this application, when the electronic device determines the length of the cable from the baseboard management controller to the media interface based on the third signal duration, the length of the cable corresponding to the third signal duration may be specifically determined based on a preset table; the preset table stores mapping relations between lengths of various cables and signal durations; then, the cable length corresponding to the third signal duration is determined as the cable length from the baseboard management controller to the media interface.
Such as: the Clock (CLK) is 50Mhz, the period is 20ns,
presetting the cable length of 1inch 2.54cm 167 ps;
10inch=25.4cm=1.67ns;
119inch=304cm=20ns;
thus, when the duration of the second time is 20ns, the length of the cable can be converted into 119inch to 304cm by the preset table. I.e. reliable transmission of the NCSI interface can be guaranteed when the OSC is routed via the BMC to a cable of about 304cm (i.e. about 3m) RMII. Therefore, the mainboard structure of the electronic equipment is not limited by the length of the NCSI interface cable.
Fig. 3 is a schematic structural composition diagram of an apparatus for determining the length of an interface cable according to the present application, as shown in fig. 3, including:
a determining unit 301, configured to determine a first signal duration between an oscillator and a media interface and a second signal duration between the oscillator and the media interface via a baseboard management controller, where the first signal duration corresponds to at least a clock signal and the second signal duration corresponds to at least a clock signal and a data signal; the clock signal and the data signal at least satisfy a time alignment condition; and further configured to determine a third signal duration between the baseboard management controller and the media interface based on the first signal duration and the second signal duration; and the controller is further configured to determine a cable length from the baseboard management controller to the media interface based on the third signal duration.
In a preferred embodiment, the determining unit 301 is specifically configured to determine, based on a time difference between the first signal time duration and the second signal time duration, a requirement of the media interface for setup time and a requirement for hold time; wherein the media interface's requirements for setup time and for hold time at least satisfy a time alignment condition.
In a preferred embodiment, the determining unit 301 is specifically configured to determine a maximum value corresponding to the duration of the third signal based on a requirement of the media interface for setup time; determining a minimum value corresponding to the third signal duration based on the requirement of the media interface for the holding time; determining the third signal duration in a range from the maximum value to the minimum value.
In a preferred embodiment, the determining unit 301 is specifically configured to determine a total duration between the first signal duration and the current N clock cycles; and determining a time length difference between the total time length and the second signal time length; if the current establishing time is less than or equal to the duration difference, determining that the current establishing time meets the requirement of the media interface on the establishing time; determining a total time length of the second signal time length and a half time length of a current clock period, determining a first time length difference between the total time length and the current N time seed periods, and determining a second time length difference between the first time length difference and the first signal time length; and if the current holding time is less than or equal to the second time length difference, determining that the current holding time meets the requirement of the media interface on the holding time.
In a preferred embodiment, the third signal duration satisfies a multiple condition of a clock period corresponding to the first signal duration.
Specifically, the third signal duration is N times of a clock cycle corresponding to the first signal duration, where N is greater than or equal to 2.
In a preferred embodiment, the signal strength corresponding to the cable length from the baseboard management controller to the media interface satisfies a preset signal strength.
In a preferred embodiment, the second signal duration at least includes: a first duration and a second duration; the first time length is the same as or different from the first signal time length, and is determined according to the position of the oscillator on the mainboard.
In a preferred embodiment, the determining unit 301 specifically determines, based on a preset table, a cable length corresponding to the third signal duration; the preset table stores mapping relations of various cable lengths and signal durations; determining the cable length as a cable length of the baseboard management controller to the media interface.
It should be noted that: in the device for determining the length of the interface cable provided in the above embodiment, when determining the length of the cable, only the division of the program modules is exemplified, and in practical applications, the above processing distribution may be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the above-described processing. In addition, the apparatus for determining the length of the interface cable and the method for determining the length of the interface cable provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
The embodiment of the present application further provides a device for determining the length of an interface cable, where the device includes: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute, when running the computer program: determining a first signal duration between an oscillator and a media interface and a second signal duration between the oscillator and the media interface via a baseboard management controller, wherein the first signal duration corresponds to at least a clock signal and the second signal duration corresponds to at least a clock signal and a data signal; the clock signal and the data signal at least satisfy a time alignment condition;
determining a third signal duration from the baseboard management controller to the media interface based on the first signal duration and the second signal duration;
determining a cable length from the baseboard management controller to the media interface based on the third signal duration.
The processor is further configured to, when executing the computer program, perform: determining a requirement of the media interface for setup time and a requirement for hold time based on a time difference between the first signal time duration and the second signal time duration;
the media interface's requirements for setup time and for the hold time at least satisfy a time alignment condition.
The processor is further configured to, when executing the computer program, perform: determining a maximum value corresponding to the third signal duration based on the requirement of the media interface for the setup time;
determining a minimum value corresponding to the third signal duration based on the requirement of the media interface for the holding time;
determining the third signal duration in a range from the maximum value to the minimum value.
The processor is further configured to, when executing the computer program, perform: determining a total time length between the first signal time length and the current N clock cycles; and determining a time length difference between the total time length and the second signal time length;
if the current establishing time is less than or equal to the duration difference, determining that the current establishing time meets the requirement of the media interface on the establishing time;
determining a requirement of the media interface for a hold time based on a difference in the duration of the first signal duration and the second signal duration, including at least:
determining a total duration of the second signal duration and a half duration of a current clock cycle, determining a first time difference between the total duration and the current N time periods, and determining a second time difference between the first time difference and the first signal duration;
and if the current holding time is less than or equal to the second time length difference, determining that the current holding time meets the requirement of the media interface on the holding time.
The third signal duration satisfies a multiple condition of a clock period corresponding to the first signal duration.
The third signal duration is N times of a clock period corresponding to the first signal duration, where N is greater than or equal to 2.
And the signal intensity corresponding to the length of the cable from the baseboard management controller to the media interface meets the preset signal intensity.
The second signal duration includes at least: a first duration and a second duration;
wherein the first duration is the same as or different from the first signal duration.
The processor is further configured to, when executing the computer program, perform: determining the length of the cable corresponding to the third signal duration based on a preset table; the preset table stores mapping relations of various cable lengths and signal durations;
determining the cable length as a cable length of the baseboard management controller to the media interface.
Fig. 4 is a schematic structural diagram of an apparatus for determining the length of an interface cable according to the present application, wherein the apparatus 400 for determining the length of an interface cable may be a mobile phone, a computer, a digital broadcast terminal, an information transceiver, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like. The apparatus 400 for determining the length of the interface cable shown in fig. 4 comprises: at least one processor 401, memory 402, at least one network interface 404, and a user interface 403. The various components in the apparatus 400 that determine the length of the interface cable are coupled together by a bus system 405. It is understood that the bus system 405 is used to enable connection communication between these components. The bus system 405 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 405 in fig. 4.
The user interface 403 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
It will be appreciated that the memory 402 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 402 described in embodiments herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 402 in the embodiments of the present application is used to store various types of data to support the operation of the apparatus 400 for determining the length of an interface cable. Examples of such data include: any computer program for operating on the apparatus for determining interface cable length 400, such as an operating system 4021 and an application 4022; contact data; telephone book data; a message; a picture; video, etc. The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The application 4022 may include various applications such as a Media Player (Media Player), a Browser (Browser), and the like for implementing various application services. A program for implementing the method according to the embodiment of the present application may be included in the application 4022.
The method disclosed in the embodiments of the present application may be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 401. The Processor 401 described above may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 401 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 402, and the processor 401 reads the information in the memory 402 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the apparatus 400 for determining the length of the interface cable may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors (gpus), controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
In an exemplary embodiment, the present application further provides a computer readable storage medium, such as a memory 402, comprising a computer program, which is executable by a processor 401 of the apparatus 400 for determining the length of the interface cable, to perform the steps of the aforementioned method. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, performs: determining a first signal duration between an oscillator and a media interface and a second signal duration between the oscillator and the media interface via a baseboard management controller, wherein the first signal duration corresponds to at least a clock signal and the second signal duration corresponds to at least a clock signal and a data signal; the clock signal and the data signal at least satisfy a time alignment condition;
determining a third signal duration from the baseboard management controller to the media interface based on the first signal duration and the second signal duration;
determining a cable length from the baseboard management controller to the media interface based on the third signal duration.
The computer program, when executed by the processor, further performs: determining a requirement of the media interface for setup time and a requirement for hold time based on a time difference between the first signal time duration and the second signal time duration;
the media interface's requirements for setup time and for the hold time at least satisfy a time alignment condition.
The computer program, when executed by the processor, further performs: determining a maximum value corresponding to the third signal duration based on the requirement of the media interface for the setup time;
determining a minimum value corresponding to the third signal duration based on the requirement of the media interface for the holding time;
determining the third signal duration in a range from the maximum value to the minimum value.
The computer program, when executed by the processor, further performs: determining a total time length between the first signal time length and the current N clock cycles; and determining a time length difference between the total time length and the second signal time length;
if the current establishing time is less than or equal to the duration difference, determining that the current establishing time meets the requirement of the media interface on the establishing time;
determining a requirement of the media interface for a hold time based on a difference in the duration of the first signal duration and the second signal duration, including at least:
determining a total duration of the second signal duration and a half duration of a current clock cycle, determining a first time difference between the total duration and the current N time periods, and determining a second time difference between the first time difference and the first signal duration;
and if the current holding time is less than or equal to the second time length difference, determining that the current holding time meets the requirement of the media interface on the holding time.
The third signal duration satisfies a multiple condition of a clock period corresponding to the first signal duration.
The third signal duration is N times of a clock period corresponding to the first signal duration, where N is greater than or equal to 2.
And the signal intensity corresponding to the length of the cable from the baseboard management controller to the media interface meets the preset signal intensity.
The second signal duration includes at least: a first duration and a second duration;
wherein the first duration is the same as or different from the first signal duration.
The computer program, when executed by the processor, further performs: determining the length of the cable corresponding to the third signal duration based on a preset table; the preset table stores mapping relations of various cable lengths and signal durations;
determining the cable length as a cable length of the baseboard management controller to the media interface.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of determining an interface cable length, comprising:
determining a first signal duration between an oscillator and a media interface and a second signal duration between the oscillator and the media interface via a baseboard management controller, wherein the first signal duration corresponds to at least a clock signal and the second signal duration corresponds to at least a clock signal and a data signal; the clock signal and the data signal at least satisfy a time alignment condition;
determining a third signal duration from the baseboard management controller to the media interface based on the first signal duration and the second signal duration;
determining a cable length from the baseboard management controller to the media interface based on the third signal duration.
2. The method of claim 1, the clock signal and the data signal satisfying at least a time alignment condition, comprising:
determining a requirement of the media interface for setup time and a requirement for hold time based on a time difference between the first signal time duration and the second signal time duration;
the media interface's requirements for setup time and for the hold time at least satisfy a time alignment condition.
3. The method of claim 2, determining a third signal duration between the baseboard management controller to the media interface based on the first signal duration and the second signal duration, comprising:
determining a maximum value corresponding to the third signal duration based on the requirement of the media interface for the setup time;
determining a minimum value corresponding to the third signal duration based on the requirement of the media interface for the holding time;
determining the third signal duration in a range from the maximum value to the minimum value.
4. The method of claim 2, determining the media interface's requirement for setup time based on a difference in durations of the first signal duration and the second signal duration, comprising at least:
determining a total time length between the first signal time length and the current N clock cycles; and determining a time length difference between the total time length and the second signal time length;
if the current establishing time is less than or equal to the duration difference, determining that the current establishing time meets the requirement of the media interface on the establishing time;
determining a requirement of the media interface for a hold time based on a difference in the duration of the first signal duration and the second signal duration, including at least:
determining a total duration of the second signal duration and a half duration of a current clock cycle, determining a first time difference between the total duration and the current N time periods, and determining a second time difference between the first time difference and the first signal duration;
and if the current holding time is less than or equal to the second time length difference, determining that the current holding time meets the requirement of the media interface on the holding time.
5. The method of claim 4, further comprising:
the third signal duration satisfies a multiple condition of a clock period corresponding to the first signal duration.
6. The method of claim 5, further comprising:
the third signal duration is N times of a clock period corresponding to the first signal duration, where N is greater than or equal to 2.
7. The method of claim 1, further comprising:
and the signal intensity corresponding to the length of the cable from the baseboard management controller to the media interface meets the preset signal intensity.
8. The method of claim 1, the second signal duration comprising at least: a first duration and a second duration;
wherein the first duration is the same as or different from the first signal duration.
9. The method of claim 1, determining a cable length of the baseboard management controller to the media interface based on the third signal duration, comprising:
determining the length of the cable corresponding to the third signal duration based on a preset table; the preset table stores mapping relations of various cable lengths and signal durations;
determining the cable length as a cable length of the baseboard management controller to the media interface.
10. An apparatus for determining interface cable length, comprising:
the device comprises a determining unit, a judging unit and a processing unit, wherein the determining unit is used for determining a first signal time length from an oscillator to a media interface and a second signal time length from the oscillator to the media interface through a baseboard management controller, the first signal time length at least corresponds to a clock signal, and the second signal time length at least corresponds to the clock signal and a data signal;
the clock signal and the data signal at least satisfy a time alignment condition; and further configured to determine a third signal duration between the baseboard management controller and the media interface based on the first signal duration and the second signal duration; and the controller is further configured to determine a cable length from the baseboard management controller to the media interface based on the third signal duration.
CN202011565772.1A 2020-12-25 2020-12-25 Method and device for determining length of interface cable Pending CN112648954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011565772.1A CN112648954A (en) 2020-12-25 2020-12-25 Method and device for determining length of interface cable

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011565772.1A CN112648954A (en) 2020-12-25 2020-12-25 Method and device for determining length of interface cable

Publications (1)

Publication Number Publication Date
CN112648954A true CN112648954A (en) 2021-04-13

Family

ID=75363089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011565772.1A Pending CN112648954A (en) 2020-12-25 2020-12-25 Method and device for determining length of interface cable

Country Status (1)

Country Link
CN (1) CN112648954A (en)

Similar Documents

Publication Publication Date Title
US8595366B2 (en) Method and system for dynamically creating and servicing master-slave pairs within and across switch fabrics of a portable computing device
TWI627526B (en) Method and system for conserving power consumption in memory system and computer program therefor
JP2015501048A (en) Method and PCD for showing a peripheral component interface express (PCIE) coupling device to an operating system operable on a portable computing device (PCD)
CN114580344B (en) Test excitation generation method, verification system and related equipment
TW200305802A (en) Power conservation techniques for a digital computer
JP2017519294A (en) Multi-host power controller (MHPC) for flash memory-based storage devices
CN112765082B (en) Multi-host arbitration method, device and readable storage medium
EP2983089A1 (en) Method, device, and chip for implementing mutually exclusive operation of multiple threads
WO2016209427A1 (en) Adaptive hardware acceleration based on runtime power efficiency determinations
CN116306408B (en) Verification environment determination method, device, equipment and storage medium of System On Chip (SOC)
CN112648954A (en) Method and device for determining length of interface cable
CN109684258B (en) Signal processing device and method
TW201617777A (en) Electronic apparatus and wake-up method thereof
US20130159591A1 (en) Verifying data received out-of-order from a bus
CN108293197A (en) A kind of resource statistics method, apparatus and terminal
CN110741359A (en) System and method for changing slave identification of integrated circuit on shared bus
CN108509223B (en) Data processing method, device and system and storage medium
US7363465B2 (en) Semiconductor device, microcomputer, and electronic equipment
US10360167B1 (en) Systems and methods for using a bus exchange switch to control processor affinity
CN112000491A (en) Application program interface calling method, device, equipment and storage medium
TWI220194B (en) Method and system for accessing memory data
US20200065274A1 (en) Always-on ibi handling
US9442788B2 (en) Bus protocol checker, system on chip including the same, bus protocol checking method
CN110658901B (en) Distribution method and device
CN115858432B (en) Access method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination