Method and system for debugging frame-type equipment line card
By detecting the in-position signal of the line card and forcibly turning on the 12V power supply and shielded reset signal in the out-of-frame mode, the problem of inconvenient debugging of the line card outside the frame of the frame is solved, and a more efficient debugging environment and progress is achieved.
Patent Information
- Application Number
- CN202210088597.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2042-01-25
AI Technical Summary
The frame-type equipment line stuck is inconvenient to debug outside the box during the R&D stage, resulting in poor debugging environment and slow progress.
By detecting the in-position signal of the line card, determining its operating mode, and forcibly turning on the 12V power supply in the out-of-box operating mode, blocking the reset signal of the main control device, and achieving normal startup and debugging of the line card.
It solves the problem of inconvenience in debugging outside the line card frame, improves the debugging environment, and improves the debugging efficiency and project progress.
Smart Images

Figure CN114490381B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of frame-type device processing, and in particular, to a method, an apparatus, an electronic device and a computer-readable medium for debugging a frame-type device line card. Background Art
[0002] With the continuous innovation and development of science and technology, the development of the communications industry has led to a sharp increase in the types of network equipment, and the performance requirements for related products are also constantly increasing. The complexity of products continues to increase, from the initial 1U, 2U equipment to frame-type equipment, the functions of the equipment are diversified to meet the needs of all aspects of the market. Now the flexibility of frame-type equipment greatly meets the needs of different customers and can better serve network communications. In addition to the main control and backup main control units, frame-type equipment also supports various line card products, such as interface boards of different forms, and business boards that can bear CPU business functions. Functionally diversified collection products are inevitably accompanied by complex technical designs, such as structure, power supply control, communication technology solutions, etc. Each aspect requires careful design, from advanced technology to screws, etc., which require careful design and consideration, so that the product can eventually serve customers in large quantities. A qualified product is not only limited to the perfection of functions, but also the degree of automation of its production process, single board development and convenience of product maintenance in the later stage are also considered as qualified products.
[0003] As the types of product demands increase, a single product form can no longer meet the needs of multiple customers. The market competition for such products is gradually decreasing, and the demand for multi-functional equipment is increasing rapidly. The emergence of frame-type equipment is gradually forming a trend, which meets the needs of multiple parties and has more advantages for later functional expansion. Of course, it is obvious that multi-functional frame-type equipment is more complex than single products. Complex core technology solutions, power supply solutions, heat dissipation solutions, etc. all need to be considered in detail. The multi-functional support of frame-type equipment mainly relies on its rich line card slots. The line cards all support hot-swappable design, which greatly facilitates the change of customer functional requirements and is favored by customers. Due to the frame-type structural design, many main control boards and line card parts are inside the chassis, which is extremely inconvenient to operate in the development and debugging stage and maintenance analysis. The line card must be inserted into the chassis, and the equipment will be controlled by the main control board to power on and off. The same is true for powering off.
[0004] Therefore, a new method, apparatus, electronic device and computer-readable medium for debugging a frame-type device line card are needed.
[0005] The above information disclosed in the Background section is only for enhancement of understanding of the background of the present application and therefore it may contain information that does not constitute the prior art that is already known to a person of ordinary skill in the art. Summary of the invention
[0006] In view of this, the present application provides a method, device, electronic device and computer-readable medium for debugging line cards of frame-type equipment, which can solve the problems caused by the inconvenience of debugging line cards outside the frame during the research and development stage, improve the debugging environment to facilitate debugging by technical personnel, and speed up project progress.
[0007] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0008] According to one aspect of the present application, a method for debugging a line card of a frame-type device is proposed, the method comprising: when the in-place signal of the line card outputs a low level, determining that the line card is in an out-of-frame operation mode; forcing a 12V power supply to be turned on based on the out-of-frame operation mode to power the line card; shielding a reset signal of a main control device in the frame-type device or releasing the reset setting; and the line card is started normally to perform line card debugging.
[0009] In an exemplary embodiment of the present application, it also includes: when the in-place signal of the line card changes from high to low, it is determined that the line card is in the in-frame operation mode; the main control device in the frame device turns on the 12V power supply to power the line card; the reset signal of the line card is released; and the line card starts normally to run.
[0010] In an exemplary embodiment of the present application, it further includes: when the presence signal of the line card changes from low to high, determining that the line card is in the unplug mode; and the main control device in the frame device does not operate the line card.
[0011] In an exemplary embodiment of the present application, when the presence signal of the line card outputs a low level, it is determined that the line card is in an out-of-frame operation mode, including: when the presence signal of the line card outputs a low level, the presence signal is input into a complex programmable logic device of the line card; and the complex programmable logic device determines that the line card is in an out-of-frame operation mode based on the presence signal.
[0012] In an exemplary embodiment of the present application, forcing the 12V power supply to be turned on to power the line card based on the out-of-frame operation mode includes: forcing the 12V power supply to be turned on by controlling the enable pin of the 12V power controller in the line card; and powering the line card with the 12V power supply.
[0013] In an exemplary embodiment of the present application, when the presence signal of the line card changes from high to low, it is determined that the line card is in the in-frame operation mode, including: when the presence signal of the line card changes from high to low, the presence signal is input into the complex programmable logic device of the line card; the complex programmable logic device determines that the line card is in the in-frame operation mode based on the presence signal.
[0014] In an exemplary embodiment of the present application, a main control device in a frame device turns on a 12V power supply to power the line card, including: the main control device controls a 12V power controller in the line card through an I2C bus to power the line card.
[0015] According to one aspect of the present application, a system for debugging a line card of a frame-type device is proposed, the system comprising: a master control device, a backplane, and at least one line card; the at least one line card comprises: a 12V power controller, a complex programmable logic device, and an in-place signal port; wherein the master control device is connected to the backplane via an I2C bus; the backplane is connected to the at least one line card via an I2C bus; wherein the 12V power controller and the in-place signal port in the at least one line card are both connected to a specific bank of the complex programmable logic device.
[0016] In an exemplary embodiment of the present application, the at least one line card further includes: a reference power supply; wherein the reference power supply is an independent power supply.
[0017] In an exemplary embodiment of the present application, an enable pin and a presence signal port of a 12V power controller in the at least one line card are connected to a specific bank corresponding to a reference power supply of a complex programmable logic device.
[0018] According to one aspect of the present application, an electronic device is proposed, which includes: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
[0019] According to one aspect of the present application, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described above is implemented.
[0020] According to the method, device, electronic device and computer-readable medium for debugging line cards of frame-type devices of the present application, when the in-place signal of the line card outputs a low level, it is determined that the line card is in an out-of-frame operation mode; based on the out-of-frame operation mode, a 12V power supply is forced to be turned on to power the line card; the reset signal of the main control device in the frame-type device is shielded or the reset setting is released; and the line card is normally started to debug the line card. This can solve the problems caused by the inconvenience of out-of-frame debugging of line cards in the research and development stage, improve the debugging environment to facilitate debugging by technical personnel, and speed up project progress.
[0021] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other objects, features and advantages of the present application will become more apparent by describing in detail the exemplary embodiments thereof with reference to the accompanying drawings. The accompanying drawings described below are only some embodiments of the present application, and it is clear to a person skilled in the art that other accompanying drawings can be obtained from these accompanying drawings without creative effort.
[0023] Figure 1 The diagram is a schematic diagram of a frame-type device according to an exemplary embodiment.
[0024] Figure 2 The diagram is a schematic diagram of a system for debugging a line card of a frame-type device according to an exemplary embodiment.
[0025] Figure 3 The present invention is a flowchart showing a method for debugging a line card of a frame-type device according to an exemplary embodiment.
[0026] Figure 4 The present invention is a flowchart showing a method for debugging a line card of a frame-type device according to another exemplary embodiment.
[0027] Figure 5 The present invention is a flowchart of a method for debugging a line card of a frame-type device according to another exemplary embodiment.
[0028] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment.
[0029] Figure 7 It is a block diagram of a computer-readable medium according to an exemplary embodiment. DETAILED DESCRIPTION
[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0031] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0032] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0033] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0034] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the concepts of the present application. As used herein, the term "and / or" includes any one of the associated listed items and all combinations of one or more.
[0035] Those skilled in the art will appreciate that the drawings are merely schematic diagrams of example embodiments, and the modules or processes in the drawings are not necessarily necessary for implementing the present application, and therefore cannot be used to limit the scope of protection of the present application.
[0036] In the prior art, the following is the common way of powering up the line card outside the frame: Usually, the 12V inside the line card is controlled by a power controller with I2C function to control whether to provide 12V to the single board. Under normal use, when the main control detects that the board is inserted (i.e. in place) and identifies it, it will turn on the 12V power controller through the I2C interface, and after releasing the reset signal of the line card, the single board can be powered on normally. Now, when running outside the frame, the 12V power controller needs to be forced to power on through its hardware enable (jumper terminal), and the CPLD software needs to be modified to shield the reset signal sent by the main control, so that the line card can run normally outside the frame for debugging, etc.
[0037] Operating line cards outside the chassis is a common operation during the product development stage. It is necessary to open the cover to add jumper terminals and modify the CPLD software for normal debugging. In addition, the jumpers and modified CPLD versions need to be flashed back to the normal version when the line card is put back into the chassis. The working environment will change frequently during the debugging stage of the line card, which requires R&D personnel to make repeated changes, which is extremely inconvenient.
[0038] The applicant in this case found that in the initial development and debugging stage of the frame-type equipment, the line card equipment needs to be separated for debugging, including problem location, etc. It is of great significance to debug and diagnose the problem of the line card separately to speed up the project progress. Operation outside the frame requires powering on the single board separately. Currently, the direct power-on of the single board is controlled by the jumper inside the board, and the single board CPLD needs to shield the master control reset before it can be started separately, which is very cumbersome.
[0039] The method for debugging a frame-type device line card of the present application proposes an optimization solution for the inconvenience caused by the out-of-frame operation of the line card during the product development stage, and simplifies the process through a new control method.
[0040] Based on the method for debugging the line card of a frame device of the present application, when the board card needs to run outside the frame, it can also be powered on and run actively without removing the shell and changing the software version to achieve this, solving the problems caused by such inconveniences in the research and development stage, improving the debugging environment for easy use, and speeding up the project progress. Similar problems will also be encountered in product maintenance. The method for debugging the line card of a frame device of the present application can also solve the inconveniences caused by similar operating scenarios and facilitate product production and maintenance procedures.
[0041] Figure 1 The diagram is a schematic diagram of a system of a frame-type device according to an exemplary embodiment.
[0042] like Figure 1 As shown, the system architecture 10 may include a master control device, a backup master control, a backplane, a plurality of line cards LC1, LC2, LC3, and the like.
[0043] The main control device, the backup main control, the backplane, and multiple line cards LC1, LC2, LC3, etc. are connected through the I2C bus.
[0044] The I2C bus is a bidirectional two-wire synchronous serial bus that only requires two wires to transmit information between devices connected to the bus.
[0045] The master device is used to start the bus to transmit data and generate a clock to open the device for transmission. At this time, any addressed device is considered a slave device. The relationship between the master device, the backup master, and multiple line cards on the bus is not constant, and depends on the data transmission direction at this time.
[0046] If the master device wants to send data to line cards LC1, LC2, LC3, etc., the master device first addresses line cards LC1, LC2, LC3, etc., then actively sends data to line cards LC1, LC2, LC3, etc., and finally terminates the data transmission by the master device; if the master device wants to receive data from line cards LC1, LC2, LC3, etc., the master device first addresses line cards LC1, LC2, LC3, etc. Then the master device receives the data sent from line cards LC1, LC2, LC3, etc., and finally terminates the receiving process by the master device. The master device is responsible for generating a timing clock and terminating data transmission.
[0047] Among them, based on the frame-type structural design, the main control device, the backup main control, and multiple line cards LC1, LC2, and LC3 are embedded in the chassis. When the line cards are inserted into the frame, the device will be powered on and started by the main control board, and the same is true for powering off.
[0048] Figure 2 FIG. 1 is a schematic diagram of a system for debugging a frame-type device line card according to an exemplary embodiment. Figure 2 As shown, the system for debugging a line card of a frame-type device may include: a main control device 201, a backplane 202, and at least one line card 203;
[0049] The line card 203 may include: a switch, a 12V power supply controller, a reference power supply, a complex programmable logic device, and an in-place signal port; more specifically, the complex programmable logic device may include multiple bank intervals.
[0050] Among them, complex programmable logic devices (CPLDs) consist of fully programmable AND / OR arrays and macrocell libraries. AND / OR arrays are reprogrammable and can perform a wide range of logic functions. Macrocells are functional blocks that perform combinational or sequential logic, while also providing greater flexibility such as true or complement outputs and feedback in different paths.
[0051] The main control device 201 is connected to the backplane 202 via an I2C bus; the backplane 202 is connected to the line card 203 via an I2C bus;
[0052] The 12V power controller and the presence signal port in the line card 203 are both connected to a specific bank of the complex programmable logic device.
[0053] Among them, the reference power supply is an independent power supply.
[0054] The enable pin and the in-place signal port of the 12V power controller in the line card 203 are both connected to a specific bank corresponding to the reference power supply of the complex programmable logic device.
[0055] In this application, when the system is set up, the enable pin of the 12V power controller in the line card is connected to the bank corresponding to the internal CPLD reference power supply (3v3_STB).
[0056] The reference power supply refers to a power supply that is independent of the 12V power supply of the single board and always exists. The peripheral circuits of the 12V power supply controller are powered by this power supply. Therefore, the main controller accesses the 12V power supply controller I2C when the 12V of the line card is not powered on.
[0057] At the same time, the in-place signal port of the line card must also be connected to the bank so that the in-place signal can be acquired by the CPLD of the line card, so that the CPLD can perform logical judgment and operation.
[0058] It should be noted that the method for debugging a frame-type device line card provided in the embodiment of the present application can be executed by the CPLD in the line card.
[0059] According to the system for debugging the line card of a frame-type device of the present application, the line card can be powered on and run normally outside the frame based on the CPLD of the line card. The line card imitates the main control unit of the frame-type device, and after detecting the presence of the line card, it powers on and resets the device, thereby realizing the function of automatically switching the power on. More specifically, by connecting the enable pin en of the 12V power controller hardware to the CPLD, the CPLD determines the presence of the line card signal to realize different power-on operations.
[0060] According to the system for debugging line cards of frame-type devices of the present application, when the in-place signal of the line card outputs a low level, it is determined that the line card is in an out-of-frame operation mode; based on the out-of-frame operation mode, the 12V power supply is forced to be turned on to power the line card; the reset signal of the main control device in the frame-type device is shielded or the reset setting is released; and the line card is normally started to debug the line card. This method can solve the problems caused by the inconvenience of out-of-frame debugging of line cards in the research and development stage, improve the debugging environment to facilitate debugging by technical personnel, and speed up project progress.
[0061] Figure 3 The flowchart of a method for debugging a line card of a chassis device according to an exemplary embodiment is shown. The method 30 for debugging a line card of a chassis device includes at least steps S302 to S308.
[0062] like Figure 3 As shown, in S302, when the in-place signal of the line card outputs a low level, it is determined that the line card is in the out-of-frame operation mode. When the in-place signal of the line card outputs a low level, the in-place signal is input into the complex programmable logic device of the line card; the complex programmable logic device determines that the line card is in the out-of-frame operation mode based on the in-place signal.
[0063] In S304, based on the out-of-frame operation mode, a 12V power supply is forcibly turned on to supply power to the line card. The 12V power supply is forcibly turned on by controlling an enable pin of a 12V power supply controller in the line card; and the line card is supplied power by the 12V power supply.
[0064] In S306, the reset signal of the main control device in the frame-type device is shielded or the reset setting is released.
[0065] In S308, the line card is started normally to perform line card debugging.
[0066] When the line card is running outside the frame, the in-position signal of the line card defaults to a low level. This signal is connected to the CPLD of the line card. When the logic judges that the signal is low, the device is in an unplugged state, that is, it is in the out-of-frame mode. In this mode, the CPLD forces the 12V to be turned on through the external enable pin en of the 12V power controller according to the low level of the in-position signal (not plugged in). Since there is no intervention from the master control at this time, the line card reset signal sent by the master control has always been in the default reset state, and the line card cannot work. At this time, it is necessary to make a judgment in the CPLD logic to shield the reset signal sent by the master control to the line card when the line card device is working in the out-of-frame mode or force the line card reset to be released. At this point, the line card can start normally.
[0067] In one embodiment, when the in-place signal of the line card changes from high to low, it is determined that the line card is in the in-frame operation mode; the main control device in the frame device turns on the 12V power supply to power the line card; the reset signal of the line card is released; and the line card starts normally to run.
[0068] More specifically, when the presence signal of the line card changes from high to low, the presence signal is input into the complex programmable logic device of the line card; the complex programmable logic device determines that the line card is in the in-frame operation mode based on the presence signal. The master control device controls the 12V power controller in the line card through the I2C bus to power the line card.
[0069] In one embodiment, when the presence signal of the line card changes from low to high, it is determined that the line card is in the unplug mode; and the main control device in the frame-type device does not operate the line card.
[0070] When the line card is used normally in the frame, the main control detects the presence of the line card. If the line card is detected to be connected, the detection level of the signal on the main control side changes from high to low, indicating that the line card device is inserted. The main control controls the line card power controller through I2C to turn on the 12V power supply of the line card and release the line card reset signal. Only then can the line card be powered on and started normally. If the detection signal changes from low to high, it means that the line card is unplugged and the main control does not act.
[0071] According to the method for debugging line cards of frame-type equipment of the present application, the inherent in-place signal of the line card is used to determine the working scenario mode of the line card, so as to realize power-on and startup of the line card in different environments. The basis for judging the in-place status of the equipment in different scenarios is established. More specifically, when the in-place signal of the line card outputs a low level, it is determined that the line card is in the out-of-frame operation mode; based on the out-of-frame operation mode, the 12V power supply is forced to be turned on to power the line card; the reset signal of the main control device in the frame-type device is shielded or the reset setting is released; the line card is normally started to debug the line card. This method can solve the troubles caused by the inconvenience of out-of-frame debugging of line cards in the research and development stage, improve the debugging environment to facilitate debugging by technical personnel, and speed up the project progress.
[0072] It should be clearly understood that the present application describes how to form and use specific examples, but the principles of the present application are not limited to any details of these examples. On the contrary, based on the teaching of the content disclosed in the present application, these principles can be applied to many other embodiments.
[0073] Figure 4 The present invention is a flowchart of a method for debugging a line card of a frame-type device according to another exemplary embodiment. Figure 4 The process 40 shown is for Figure 3 A detailed description of the operation process of the master control device in the process shown.
[0074] like Figure 4 As shown, in S402, power is supplied through 3v3_STB.
[0075] In S404, a change in the presence signal is detected.
[0076] In S406, when the level changes from high to low, the 12V power supply is turned on through the I2C bus.
[0077] In S408, the line card reset is canceled.
[0078] In S410 , the line card is started.
[0079] In S412, when the level changes from low to high, the 12V power enable is turned off through the I2C bus.
[0080] In S414, the line card is reset.
[0081] When the line card is running in the chassis, the main control detects whether the card is in place and needs to rely on the level change of the in-place signal to determine whether the line card is inserted or removed. When the in-place signal changes from high to low, it means that the line card is inserted, and when the signal changes from low to high, it means that the line card is removed.
[0082] Figure 5 The present invention is a flowchart of a method for debugging a line card of a frame-type device according to another exemplary embodiment. Figure 5The process 50 shown is for Figure 3 Detailed description of the line card processing flow in the process shown.
[0083] like Figure 5 As shown, in S502, power is supplied through 3v3_STB.
[0084] In S504, the CPLD in the line card detects whether the presence signal is at a low level.
[0085] In S506, the 12V power enable pin is turned on through the CPLD.
[0086] In S508, the CPLD shields the reset signal from the master control device in the line card.
[0087] In S510 , the line card starts up.
[0088] When the line card is running outside the board, the line card in-position signal is always in a low level state, and the level remains stable, so the signal can be detected to determine the working environment of the line card. If the in-position signal level is always low, the card is in offline operation, and the CPLD software on the line card side determines that it is forced to power on. If the main control side detects a level change, it can determine whether the line card is connected or unplugged based on the level change and make corresponding processing.
[0089] According to the method for debugging frame-type equipment line cards of the present application, portable operation of line card products in an offline environment is achieved, the operation process is simplified, convenience is provided for new product research and development and production maintenance environments, and the product development cycle can be shortened and production and maintenance costs can be reduced.
[0090] The method for debugging line cards of frame-type equipment of the present application utilizes the characteristics of the line card itself and solves some practical problems existing in its actual operation process through special processing, so that a good operating environment can be provided, so that the line card can be conveniently operated on the plug-in card in different environments, which provides a convenience for debugging complex frame-type products.
[0091] Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above functions defined by the above method provided in the present application are executed. The program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0092] In addition, it should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present application, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0093] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment.
[0094] Refer to the following Figure 6 The electronic device 600 according to this embodiment of the present application is described. Figure 6 The electronic device 600 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0095] like Figure 6 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0096] The storage unit stores a program code, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps described in this specification according to various exemplary embodiments of the present application. For example, the processing unit 610 can perform the following steps: Figure 3 , Figure 4 , Figure 5 Follow the steps shown in .
[0097] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0098] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0099] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0100] The electronic device 600 may also communicate with one or more external devices 600' (e.g., keyboards, pointing devices, Bluetooth devices, etc.) to enable a user to communicate with the electronic device 600, and / or any device (e.g., routers, modems, etc.) that the electronic device 600 can communicate with one or more other computing devices. Such communication may be performed via an input / output (I / O) interface 650. In addition, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0101] In general, the present invention is based on the cpld of the line card to realize that the line card can be powered on and run normally outside the frame. The line card imitates the main control unit of the frame-type device. After detecting the presence of the line card, the device is powered on and reset, thereby realizing the function of automatic switching power-on. The present invention connects the 12V power controller hardware enable en to the cpld, and the cpld judges the situation of the line card presence signal to realize different power-on operations. When the line card is used normally in the frame, the main control detects the presence of the line card. If the line card is detected to be connected, the main control side detection level of the signal changes from high to low, indicating that the line card device is inserted. The main control controls the line card power controller through i2c to turn on the 12V power supply of the line card and release the line card reset signal. Only then can the line card be powered on and started normally. If the presence signal is detected to change from low to high, it means that the line card is unplugged and the main control does not act. When the line card is running outside the frame, the presence signal of the line card defaults to a low level. The signal is connected to the cpld of the line card. When the logic judges that the signal is low, the device is in an uninserted state, that is, it is in the out-of-frame mode. In this mode, the cpld forces the 12V to be turned on through the external enable pin en of the 12V power controller according to the low level of the in-position signal. Since there is no intervention from the master control at this time, the line card reset signal sent by the master control has always been in the default reset state, and the line card cannot work. At this time, it is necessary to make a judgment in the cpld logic. When the line card device is working in the out-of-frame mode, the reset signal sent by the master control to the line card is shielded or the line card reset is forcibly released. At this point, the line card can start normally.
[0102] When designing this method, the enable of the 12v power controller must be connected to the bank corresponding to the cpld reference power supply (3v3_STB) (reference power refers to a power supply that is independent of the single-board 12v power supply and always exists. The peripheral circuits of the 12v power controller are powered by this power supply. So far, the master accesses the 12v power controller i2c when the line card 12v is not powered on). Secondly, the line card's in-position signal must also be connected to this bank. The in-position signal that needs to be judged must also be connected to this bank to make normal operations. When the line card is running in the frame, the master detects whether the plug-in card is in place and needs to rely on the level change of the in-position signal to determine whether the line card is inserted or removed. When the in-position signal changes from high to low, it means that the line card is inserted, and the signal changes from low to high, it means that the line card is removed. When the line card is running outside the board, the line card in-position signal is always in a low level state, and the level remains stable, so the line card can be judged by detecting the signal in which the working environment is. If the in-position signal level is always at a low level, the card is in offline operation, and the cpld software on the line card determines to force power-on operation. If the main control side detects a level change, it can determine whether the line card is connected or unplugged based on the level change and make corresponding processing.
[0103] Through the above description of the implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by combining software with necessary hardware. Figure 7 As shown, the technical solution according to the implementation mode of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above method according to the implementation mode of the present application.
[0104] The software product may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0105] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0106] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0107] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by a device, the computer-readable medium realizes the following functions: when the in-place signal of the line card outputs a low level, it is determined that the line card is in an out-of-frame operation mode; based on the out-of-frame operation mode, the 12V power supply is forced to be turned on to power the line card; the reset signal of the main control device in the frame-type device is shielded or the reset setting is released; the line card is started normally for line card debugging.
[0108] Those skilled in the art will appreciate that the above modules can be distributed in the device according to the description of the embodiment, or can be changed accordingly and only used in one or more devices different from the embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.
[0109] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present application.
[0110] The exemplary embodiments of the present application are specifically shown and described above. It should be understood that the present application is not limited to the detailed structures, configurations or implementations described herein; on the contrary, the present application is intended to cover various modifications and equivalent configurations included in the spirit and scope of the appended claims.
Claims
1. A method for debugging a line card of a frame-type device, the line card comprising: A switch, a 12V power supply controller, a reference power supply, a complex programmable logic device CPLD, and a presence signal port, wherein the complex programmable logic device CPLD includes multiple bank intervals, and is composed of a fully programmable AND / OR array and a macro cell library, wherein the AND / OR array can be reprogrammed to perform logic functions, and the macro cell is a functional block that performs combinational logic or sequential logic, the line card is connected to the backplane through an I2C bus, and the backplane is connected to the main control device through the I2C bus, and the enable pin and the presence signal port of the 12V power supply controller are connected to the bank corresponding to the reference power supply of the complex programmable logic device, and the reference power supply refers to a power supply that is independent of the 12V power supply of the single board and always exists, and is characterized by comprising: When the in-place signal of the line card outputs a low level, determining that the line card is in an out-of-frame operation mode includes: when the in-place signal of the line card outputs a low level, the in-place signal is input into a complex programmable logic device of the line card, and the complex programmable logic device determines that the line card is in an out-of-frame operation mode based on the in-place signal; Forcibly turning on a 12V power supply based on the out-of-frame operation mode to power the line card; Shield the reset signal of the main control device in the frame-type device or release the reset setting; The line card is started normally to perform line card debugging; When the in-position signal of the line card changes from high to low, determining that the line card is in the in-frame operation mode includes: when the in-position signal of the line card changes from high to low, the in-position signal is input into the complex programmable logic device of the line card, and the complex programmable logic device determines that the line card is in the in-frame operation mode based on the in-position signal, the main control device in the frame device turns on the 12V power supply to power the line card, releases the reset signal of the line card, and the line card starts normally to run; When the in-place signal of the line card changes from low to high, it is determined that the line card is in the unplugging mode, and the main control device in the frame-type device does not operate the line card.
2. The method according to claim 1, characterized in that Forcibly turning on a 12V power supply based on the out-of-frame operation mode to power the line card includes: Controlling the enable pin of the 12V power controller in the line card to forcibly turn on the 12V power supply; The line card is powered by a 12V power supply.
3. The method according to claim 1, characterized in that The main control device in the frame device turns on the 12V power supply to power the line card, including: The main control device controls the 12V power controller in the line card through the I2C bus to supply power to the line card.
4. A system for debugging a frame-type device line card, characterized in that: include: Main control device, backplane, at least one line card; The at least one line card includes: a 12V power controller, a reference power supply, a complex programmable logic device, and an in-place signal port; wherein the complex programmable logic device CPLD includes multiple bank intervals, and is composed of a fully programmable AND / OR array and a macro cell library, wherein the AND / OR array can be reprogrammed to perform logic functions, and the macro cell is a functional block that performs combinational logic or sequential logic, and the reference power supply refers to a power supply that is independent of the single board 12V power supply and always exists, Wherein, the main control device is connected to the backplane via an I2C bus; the backplane is connected to the at least one line card via an I2C bus; Wherein, the enable pin and the in-place signal port of the 12V power controller in the at least one line card are connected to the bank of the complex programmable logic device; When the in-place signal of the line card outputs a low level, determining that the line card is in an out-of-frame operation mode comprises: when the in-place signal of the line card outputs a low level, the in-place signal is input into a complex programmable logic device of the line card, and the complex programmable logic device determines that the line card is in an out-of-frame operation mode based on the in-place signal; The line card is forced to turn on the 12V power supply to supply power based on the out-of-frame operation mode; Shield the reset signal of the main control device in the frame-type device or release the reset setting; The line card is started normally to perform line card debugging; When the in-place signal of the line card changes from high to low, it is determined that the line card is in the in-frame operation mode, including: when the in-place signal of the line card changes from high to low, the in-place signal is input into the complex programmable logic device of the line card, and the complex programmable logic device determines that the line card is in the in-frame operation mode based on the in-place signal, the main control device in the frame device turns on the 12V power supply to power the line card, releases the reset signal of the line card, and the line card starts normally to run; and when the in-place signal of the line card changes from low to high, it is determined that the line card is in the unplugging mode, and the main control device in the frame device does not operate the line card.
Citation Information
Patent Citations
Hot-pluggable isolation method, device and master control board
CN102325081A
Line processing unit (LPU) card in-place detecting and resetting method and main processing unit (MPU) card and LPU card
CN102387074A