CN108897583A - Interchanger starts method, interchanger and storage medium - Google Patents

Interchanger starts method, interchanger and storage medium Download PDF

Info

Publication number
CN108897583A
CN108897583A CN201810681548.5A CN201810681548A CN108897583A CN 108897583 A CN108897583 A CN 108897583A CN 201810681548 A CN201810681548 A CN 201810681548A CN 108897583 A CN108897583 A CN 108897583A
Authority
CN
China
Prior art keywords
application software
interchanger
processing unit
central processing
exchange chip
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.)
Granted
Application number
CN201810681548.5A
Other languages
Chinese (zh)
Other versions
CN108897583B (en
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.)
Beijing Dongtu Jinyue Technology Co Ltd
Original Assignee
Beijing Dongtu Jinyue Technology Co 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 Beijing Dongtu Jinyue Technology Co Ltd filed Critical Beijing Dongtu Jinyue Technology Co Ltd
Priority to CN201810681548.5A priority Critical patent/CN108897583B/en
Publication of CN108897583A publication Critical patent/CN108897583A/en
Application granted granted Critical
Publication of CN108897583B publication Critical patent/CN108897583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of interchanger starting method, interchanger and storage mediums.Wherein, method includes:In interchanger starting, the central processing unit in interchanger obtain can the application software that provides of operating device indicate information;The central processing unit searches target application software corresponding with application software instruction information in the information software table of comparisons pre-established, wherein the information software table of comparisons is stored with the corresponding relationship of application software instruction information and application software;The central processing unit loads the target application software.The embodiment of the present invention fast and accurately loads the application software of interchanger when interchanger starts.

Description

Interchanger starts method, interchanger and storage medium
Technical field
The present embodiments relate to the communication technology more particularly to a kind of interchanger starting methods, interchanger and storage medium.
Background technique
Interchanger can load multiple functions software on startup, to realize multiple functions.For example, interchanger loads when starting Be application software, then be accomplished that the function of interchanger after starting, if load is gateway application software, open The function of gateway is accomplished that after dynamic.
Currently, the mode of the application software run on switching interchanger is:Interchanger connects host computer, passes through host computer Operation interface, the artificial configuration parameter for changing bootstrap, so that it is determined that the application software that next time, starting needed to run.For example, If needing to realize gateway function after starting interchanger next time, need to change and guide by host computer before starting next time The configuration parameter of program is gateway parameter, and bootstrap loads gateway application according to gateway parameter automatically when interchanger next time starts Software.
The mode of manual amendment's configuration parameter has the following defects:If no pair after changing the configuration parameter of bootstrap Parameter after change saves in time, then when interchanger starts next time, bootstrap will not be loaded according to the parameter after change Corresponding software, load or original software.Moreover, artificial change is easy error.By the operation interface of host computer into The mode of row configuration is cumbersome.
Summary of the invention
The embodiment of the present invention provides a kind of interchanger starting method, interchanger and storage medium, when interchanger starts Fast and accurately switch the application software of interchanger.
In a first aspect, the embodiment of the invention provides a kind of interchangers to start method, including:
In interchanger starting, the central processing unit in interchanger obtain can the application software that provides of operating device indicate letter Breath;
The central processing unit is searched in the information software table of comparisons pre-established and indicates information with the application software Corresponding target application software, wherein the information software table of comparisons is stored with application software instruction information and application software Corresponding relationship;
The central processing unit loads the target application software.
Second aspect, the embodiment of the invention also provides a kind of interchangers, including:Central processing unit, can operating device and Memory;
It is described can operating device and the memory connect respectively with the central processing unit;
The memory, for storing the information software table of comparisons and one or more programs;
When one or more of programs are executed by the central processing unit, so that the central processing unit realizes any reality Apply application software chang-over method described in example.
The third aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, the program realize that interchanger described in any embodiment starts method when being executed by central processing unit or microcontroller.
In the embodiment of the present invention, by when interchanger starts, central processing unit obtains can the application that provides of operating device Software indicates information;In the information software table of comparisons pre-established, searches target corresponding with application software instruction information and answer With software, and load target application software, so as to according to can the application software instruction information that provides of operating device determine exchange Machine needs application software to be loaded, for a user, can by operation can operating device determine application software to be loaded, mention The reliability of high software load, without configuration parameter is saved, is reduced without connecting the configuration parameter of host computer modification interchanger Human configuration counts wrong probability, to fast and accurately switch the application software of interchanger.
Detailed description of the invention
Fig. 1 is a kind of flow chart for interchanger starting method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of interchanger starting method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow chart for interchanger starting method that the embodiment of the present invention three provides;
Fig. 4 a is a kind of structural schematic diagram for interchanger that the embodiment of the present invention four provides;
Fig. 4 b is the structural schematic diagram for another interchanger that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for interchanger starting method that the embodiment of the present invention one provides, and the present embodiment is applicable to Interchanger starting when, load switching after application software the case where, this method can by the central processing unit in interchanger Lai It executes, specifically comprises the following steps:
S110, in interchanger starting, the central processing unit in interchanger obtains can the application software that provides of operating device Indicate information.
In the present embodiment, interchanger includes can operating device.Optionally, can operating device may be mounted at the machine of interchanger It, can also be independently of the cabinet of interchanger on case.Can operating device can be with central processing unit wired connection or wireless connection.
Optionally, can operating device include at least one of touch screen, camera, speech recognition equipment.Dress can be operated Set can provide depending on the user's operation application software instruction information, the application software instruction information can be can operating device shape State information or can operating device generate information, be used to indicate interchanger next time starting after need application software to be loaded.
For example, can operating device be touch screen, touch screen receives the touch operation of user and is generated pair according to touch operation The application software instruction information answered, touch operation, which can be, to be touched in default touch area, touches preset duration, touches rail Mark, touch type, such as double-click, click.
In another example can operating device be camera, the gesture that camera captures user, which is simultaneously generated according to user gesture, to be corresponded to Application software indicate information, user gesture can be clockwise oscillation, counter-clockwise swing, from top to bottom, from top to bottom etc..
In another example can operating device be speech recognition equipment, speech recognition equipment identifies the voice and basis of user's input The corresponding application software of the speech production recognized indicates information, and the voice of user can be gateway application software, interchanger is answered With software etc..
Can operating device when including above-mentioned at least two device, the priority of device is set and preferentially to obtain priority higher Device provide application software indicate information;If obtaining the application software provided less than the higher device of priority indicates letter Breath obtains the application software instruction information that the device that priority is taken second place provides.
S120, central processing unit are searched in the information software table of comparisons pre-established and indicate information pair with application software The target application software answered, wherein the information software table of comparisons is stored with application software instruction information pass corresponding with application software System.
In the present embodiment, letter can be established before the application software instruction information of operating device offer by obtaining in central processing unit The software table of comparisons is ceased, and by the storage of the information software table of comparisons into the associated memory of central processing unit.Wherein, application software refers to Show that information and application software correspond.Optionally, application software herein includes the information and/or application software of application software Itself, the information of application software includes the title of application software, version, store path, number etc..
After getting above-mentioned application software instruction information, the information software stored in memory compares central processing unit Application software corresponding with application software instruction information is searched in table.In order to facilitate describing and distinguish, will find using soft Part is known as target application software.
S130, central processing unit load target application software.
Optionally, bootstrap starts central processing unit after the power-up, continues to obtain after boot program loads operating system Take can operating device provide application software instruction information, and in the information software table of comparisons pre-established search with apply it is soft Part indicates the corresponding target application software of information, loads target application software.
After central processing unit loads target application software, the function of target application software can be realized.For example, central processing Device loads gateway application software realization gateway function, and central processing unit loads application software realization switch function.
In the present embodiment, by when interchanger starts, central processing unit obtains can the application software that provides of operating device Indicate information;In the information software table of comparisons pre-established, it is soft to search target application corresponding with application software instruction information Part, and load target application software, so as to according to can the application software instruction information that provides of operating device determine interchanger need Application software to be loaded, for a user, can by operation can operating device determine application software, improve software exchange Reliability, without configuration parameter is saved, reduces human configuration and counts the general of mistake without connecting host computer modification configuration parameter Rate, to fast and accurately switch the application software of interchanger.
Embodiment two
The present embodiment advanced optimizes above-described embodiment, specifically can operating device be limited to switching device, should Switching device has at least one electronic contact, and the " closed " (closed) of contact indicates electronic contact conducting, allows electric current stream It crosses;" open circuit " of switch indicates that electronic contact is not turned on to form open circuit, does not allow electric current to flow through.Each electronic contact closed pair is answered One gear, for example, first electronic contact closed pair inductive switch device is in " 1 grade ", second electronic contact closed pair is answered Switching device is in " 2 grades ", and third electronic contact closed pair inductive switch device is in " 3 grades ", if all electronic contacts are equal Closed pair inductive switch device, which is not in, resets gear.
Fig. 2 is a kind of flow chart of interchanger starting method provided by Embodiment 2 of the present invention, is included the following steps:
S210, interchanger starting when, central processing unit obtain switching device current gear.
S220, central processing unit search target corresponding with current gear in the information software table of comparisons pre-established Application software.
S230, central processing unit load target application software.
Illustratively, central processing unit obtains the electronic contact of closure, and then gets the current gear of switching device.
The corresponding relationship of gear and application software, such as 1 grade of corresponding gateway are stored in the information software table of comparisons using soft Part, 2 grades of corresponding Packet Transport Network (Packet Transport Network, PTN) application software.
In some embodiments, it resets gear and corresponds to default application software, such as application software.
In further embodiments, if getting reset gear, it is believed that user does not select application software, then control mentions Showing device prompts the user with installation switching device, and/or prompts the user with the corresponding application software of each application software instruction information. Based on this, in interchanger starting, the central processing unit in interchanger obtains the gear of switching device, including:It is opened in interchanger When dynamic, if the gear of switching device is to reset, central processing unit control suggestion device prompts the user with installation switching device, And/or prompt the user with the corresponding application software of each application software instruction information;Central processing unit fills switch in response to user The operation set obtains the gear of switching device again.If cannot still get the non-reset of switching device after preset time Gear is then loaded directly into default application software.
Optionally, suggestion device can be display screen or loudspeaker, and connect with central processing unit, in centre It manages and prompts the user with installation switching device under the control of device.
In an application scenarios, switching device, which has, resets gear, 1 grade and 2 grades.For the ease of user's operation and raising is opened The friendly for closing device is resetting gear surrounding markings " application software ", and in 1 grade of surrounding markings, " gateway application is soft Part ", in 2 grades of surrounding markings " PTN application software ";Alternatively, prompting the user with each application software by suggestion device indicates information (gear that the present embodiment refers to switching device) corresponding application software, such as triggering suggestion device, suggestion device play respectively automatically The corresponding application software of gear.Interchanger shutdown when or normal course of operation in, user can toggle switch device to 1 grade, Then gateway application software will be loaded when next interchanger starts;User can also toggle switch device to 2 grades, then next time hand over PTN application software will be loaded by changing planes when starting;User can also toggle switch device to gear is resetted, then opened in next interchanger " application software " will be loaded when dynamic.
In another application scene, user's toggle switch device is to resetting gear.In the starting of interchanger next time, prompt It is soft that device can prompt the user with " please select application software ", " requesting dynamic switching device " and/or the corresponding application of each gear Part, if for toggle switch device to 1 grade or 2 grades, interchanger will load corresponding application software to user within a preset time;Such as For toggle switch device to 1 grade or 2 grades, interchanger does not load application software to fruit user automatically within a preset time.
In the present embodiment, by the way that when interchanger starts, central processing unit obtains the current gear of switching device, preparatory In the information software table of comparisons of foundation, target application software corresponding with current gear is searched, and load target application software pair The target application software answered enables interchanger to switch application software according to the gear state of switching device, rather than configures ginseng Number;For users, the application software that interchanger can be switched by toggle switch device, without connecting host computer configuration ginseng Number is more not required to save configuration parameter, reaches technical effect that is convenient, accurately switching application software.
Embodiment three
When previous embodiment is primarily upon interchanger starting, the process of central processing unit loading application software.Currently, central After processor loading application software, the forwarding of whole needed for also configuring the application software to exchange chip by application software Parameter.After the completion of whole retransmitting paramater configurations, interchanger completes starting.Existing interchanger starting method is slower, in order to improve The speed of interchanger starting, on the basis of the above embodiments, the present embodiment provides a kind of interchangers to start method, can be just Quick start prompt, that interchanger is realized while accurately switch application software.As shown in figure 3, specifically including following steps:
S300, interchanger power on, and start to start.Continue to execute S310 and S350.
S310, in interchanger starting, the microcontroller in interchanger initializes and obtains the access right to exchange chip Limit.Continue to execute S320.
In the present embodiment, microcontroller can be STM32 chip, a similar single-chip microcontroller, relative to central processing unit (Central Processing Unit, CPU), microcontroller has the characteristics that fast initialization.Based on this, compared to existing The configuration of exchange chip is operated by central processing unit execution in technology, in the present embodiment, by the faster micro-control of initialization procedure Device processed executes the configuration to exchange chip and operates, to save the starting time.
Firstly, clock and Bussing connector etc. that microcontroller powers on and initializes oneself, complete initialization operation.Its In, exchange chip is connect with microcontroller and central processing unit respectively.After microcontroller initialization, the visit to exchange chip is obtained Ask permission, i.e. realization exchange chip is connect with microcontroller;The connection between exchange chip and central processing unit disconnects simultaneously.
S320, microcontroller obtain the basic retransmitting paramater that each application software pre-saved needs altogether.Continue to execute S330.
The basic retransmitting paramater that each application software needs altogether is, for example, the shared basic forwarding of the equipment such as interchanger, gateway, PTN Parameter:The rate duplex of port, the forwarding state of port, the virtual LAN of port (Virtual Local Area Network, VLAN) attribute.
Basic retransmitting paramater is configured in exchange chip by S330, microcontroller.Continue to execute S340.
Above-mentioned basic retransmitting paramater can save in memory within the microcontroller, or what is connect with microcontroller deposit In reservoir.The memory can be ROM, FLASH, CD, floppy disk, the nonvolatile memories such as mechanical hard disk.
Above-mentioned basic retransmitting paramater can be directly configured in exchange chip, without carrying out the processes such as state judgement.It is optional Ground, for microcontroller via the bus between exchange chip, the basic retransmitting paramater that directly will acquire is configured to exchange chip In.So far, microcontroller completes the configuration operation to exchange chip.
S340, microcontroller discharge the access authority to exchange chip.Terminate this operation.
After microcontroller completes the configuration operation to exchange chip, other configurations no longer are carried out to exchange chip, but will Central processing unit is handed to the access authority of exchange chip, is accessed by central processing unit to exchange chip.It is micro- based on this Controller disconnects the connection between exchange chip, connects exchange chip and central processing unit.Wherein, central processing unit is exchange The primary processor of machine, the function items all for processing switch.
In the embodiment of the present invention, interchanger one is powered on, and microcontroller starts basic retransmitting paramater being configured to exchange chip, The central processing unit of microcontroller and interchanger is independent from each other, and microcontroller does not all need any operation of exchange chip The participation of the central processing unit of interchanger, the basic retransmitting paramater without obtaining exchange chip by running SDK configure, without etc. The basic retransmitting paramater of exchange chip could be configured to processes such as state a series of in SDK judgements, it is achieved that The quick start of exchange chip.
S350, in interchanger starting, the central processing unit in interchanger obtains can the application software that provides of operating device Indicate information.Continue to execute S360.
S360, central processing unit are searched in the information software table of comparisons pre-established and indicate information pair with application software The target application software answered, wherein the information software table of comparisons is stored with application software instruction information pass corresponding with application software System.Continue to execute S370.
S370, central processing unit load target application software.Continue to execute S380.
Specifically, when interchanger starts, central processing unit is first powered up and completes to initialize.Then, central processing unit is logical Cross bootstrap obtain can operating device provide application software instruction information, search and load target application software.
It is worth noting that S310-S340 is sequentially carried out, S350-S370 is sequentially carried out.S310-S340 and S350-S370 It independently carries out, does not interfere with each other.Under normal circumstances, it since microcontroller initialization procedure is fast compared with central processing unit, and is not required to Before wanting load operating system and application software, central processing unit to load target application software, microcontroller has been discharged to friendship Change the access authority of chip.Then, central processing unit continues to execute S380.
S380, central processing unit obtain the access authority to exchange chip, and basic by removing needed for target application software Other parameters except retransmitting paramater are configured in exchange chip.Terminate this operation.
Optionally, after central processing unit loading application software, which will remove according to itself configuration parameter demand Other parameters except basic retransmitting paramater are configured in exchange chip, are carried out i.e. by target application software to exchange chip Improve configuration.
Due to configuring basic retransmitting paramater in exchange chip, if application software continuation configures in exchange chip Basic retransmitting paramater will will lead to repetition configuration, and then cause network cutout.To solve the above-mentioned problems, application software is changed Basic retransmitting paramater demand is specifically deleted or skipped to configuration parameter demand in whole configuration parameter demands, thus using soft Part is not reconfigured basic retransmitting paramater, only configures other parameters, and network is avoided to stop.
Optionally, if central processing unit load is PTN application software, the other parameters of PTN application software include with Multiprotocol label switching (Multi-Protocol Label Switching, MPLS) relevant configuration parameter of business etc.;If Central processing unit load is gateway application software, and the other parameters of gateway application software include and forwarding strategy configuration parameter Deng;If central processing unit load is application software, the other parameters of application software include routing configuration Parameter and Multicast configuration parameter etc..
In the present embodiment, new be added initializes faster microcontroller in a switch, and after microcontroller initialization, The access authority to exchange chip is obtained, to configure by initializing faster microcontroller to exchange chip;Pass through Obtain the basic retransmitting paramater pre-saved;And basic retransmitting paramater is configured in exchange chip, it discharges to exchange chip Access authority, so that directly the retransmitting paramater prestored is configured in exchange chip, without by application software configuration, also Without waiting for the process tabled look-up with loading application software;Moreover, not needing center in the process of microcontroller configuration exchange chip Processor participates in, and the process of central processing unit loading application software and the process of microcontroller configuration exchange chip are to carry out simultaneously , further realize the quick start of interchanger.
In some embodiments, interchanger further includes Bussing connector, and Bussing connector is separately connected microcontroller, exchange Chip and central processing unit.Microcontroller is realized by issuing bus marco parameter to Bussing connector to bus control right It obtains and discharges.
Optionally, microcontroller obtains the access authority to exchange chip, including:Microcontroller is to bus connected to it Connector issues the first bus marco parameter, wherein the first bus marco parameter connects microcontroller for control bus connector Device and exchange chip are also used to disconnect the connection between central processing unit and exchange chip.
Correspondingly, Bussing connector is used to connect microcontroller and exchange chip, and break according to the first bus marco parameter Open the connection between central processing unit and exchange chip.
Optionally, microcontroller discharges the access authority to exchange chip, including:Microcontroller is issued to Bussing connector Second bus marco parameter, wherein the second bus marco parameter is for control bus connector connection central processing unit and exchange Chip, and the connection between microcontroller and exchange chip is disconnected, so that central processing unit obtains the access right to exchange chip Limit.
It is worth noting that the present embodiment is by configurable this hardware realization access privilege control of Bussing connector, But not limited to this.Any software and/or hardware method that can be realized bus marco is in the protection scope of the present embodiment.
It is worth noting that when microcontroller configures exchange chip, between central processing unit and exchange chip Bus be cut off, at this point, central processing unit be carrying out application software instruction information reading, table look-up and application software load Operation, and exchange chip will not be accessed in above process.Microcontroller completion probably spends 2~3 to the configuration of exchange chip Second.In most cases, the central processing unit above process is longer than the configuration process of exchange chip, then after 2~3 seconds, in Central processor can just complete the load operation of application software, and be connect by Bussing connector with exchange chip, access exchange core Piece, and then continue to configure other parameters.Based on above-mentioned analysis, operation of the central processing unit by perception less than Bussing connector, Imperceptible connecting or disconnecting with exchange chip.
In the present embodiment, Bussing connector is added in a switch, microcontroller is by issuing bus to Bussing connector Control parameter realizes the acquisition and release of access authority, is microcontroller to center after the completion of the configuration of exchange chip and configuration Processor provides bus foundation to the access of exchange chip;Meanwhile by the acquisition and release of access authority, microcontroller is in Central processor is able at times individually operate exchange chip,;Further, central processing unit perception less than with exchange chip Connect or disconnect, therefore connect or disconnect on central processing unit with exchange chip almost without influence.
Example IV
Fig. 4 a is a kind of structural schematic diagram for interchanger that the embodiment of the present invention four provides.As shown in fig. 4 a, interchanger packet Include central processing unit 41, can operating device 42 and memory 43.Can operating device 42 and memory 43 respectively with central processing unit 41 connections.
Central processing unit 41 and memory are mountable in switch chassis 40.Can operating device 42 may be mounted at exchange It, can also be independently of the cabinet 40 of interchanger on the cabinet 40 of machine.Can operating device 42 include at least switching device, touch screen, One of camera, speech recognition equipment, for providing application software instruction information.
Memory 43 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 43 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a magnetic Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 43 can be further Including the memory remotely located relative to central processing unit 41, these remote memories can pass through network connection to exchange Machine.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Memory 43, for storing the information software table of comparisons and one or more programs.Memory 43 is used as a kind of calculating Machine readable storage medium storing program for executing, can be used for storing software program, computer executable program and module, and central processing unit 41 passes through fortune Software program, instruction and the module that row is stored in memory 43, thereby executing the various function application and number of interchanger According to processing, that is, realize above-mentioned interchanger starting method.
Specifically, central processing unit 41 be used for interchanger starting when, obtain can operating device 42 provide application software Indicate information;In the information software table of comparisons pre-established, it is soft to search target application corresponding with application software instruction information Part, wherein the information software table of comparisons is stored with the corresponding relationship of application software instruction information and application software;Load target application Software.
In the present embodiment, by when interchanger starts, central processing unit 41 obtains can the application that provides of operating device 42 Software indicates information;In the information software table of comparisons pre-established, searches target corresponding with application software instruction information and answer With software, and load target application software, so as to according to can the application software instruction information that provides of operating device 42 determine and hand over Changing planes needs application software to be loaded, for a user, can by operation can operating device 42 determine application software, improve soft The reliability of part switching, without configuration parameter is saved, reduces human configuration and counts without connecting host computer modification configuration parameter Wrong probability, to fast and accurately switch the application software of interchanger.
Optionally, can operating device 42 include switching device, switching device includes at least one gear, and Fig. 4 a shows 3 A gear.Central processing unit 41 when interchanger starts, obtain can the application software that provides of operating device 42 when indicating information, It is specifically used for:In interchanger starting, the current gear of switching device is obtained;In the information software table of comparisons pre-established, Search target application software corresponding with current gear.
Further, interchanger further includes:Suggestion device 44, suggestion device 44 are connect with central processing unit 41, are used for Installation switching device is prompted the user under the control of central processing unit 41;And/or prompt the user with each application software instruction information Corresponding application software.Based on this, central processing unit 41 is when interchanger starts, when obtaining the current gear of switching device, It is specifically used for:Interchanger starting when, if the gear of switching device be reset, central processing unit 41 control suggestion device 44 to User prompts installation switching device, and/or prompts the user with the corresponding application software of each application software instruction information;In response to Operation of the family to switching device obtains the gear of switching device again.
Optionally, as shown in Figure 4 b, interchanger further includes microcontroller 45 and exchange chip 46, exchange chip 46 respectively with Microcontroller 45 and central processing unit 41 connect.
Optionally, microcontroller 45 is also connected with memory 49, and the memory 49 is for storing what each application software needed altogether Basic retransmitting paramater and one or more programs.The memory 49 is used as a kind of computer readable storage medium, can be used for storing Software program, computer executable program and module, the software journey that microcontroller 45 is stored in memory 49 by operation Sequence, instruction and module realize that above-mentioned interchanger opens thereby executing the various function application and data processing of interchanger Dynamic method.
Microcontroller 45, for initializing and obtaining the access authority to exchange chip 46 in interchanger starting;It obtains The basic retransmitting paramater that each application software pre-saved needs altogether;And basic retransmitting paramater is configured in exchange chip 46; Discharge the access authority to exchange chip 46.
Central processing unit 41 is also used to obtain the access authority to exchange chip 46, and will be needed for target application software Other parameters in addition to basic retransmitting paramater are configured in exchange chip 46.
Optionally, as shown in Figure 4 b, interchanger further includes Bussing connector 47.Bussing connector 47 respectively with exchange chip 46, microcontroller 45 and central processing unit 41 connect.
Interchanger includes power board 50 and bottom plate 60, and power board 50 is snapped on bottom plate 60 by connector 70.Power board It is provided with exchange chip 46, Bussing connector 47 and microcontroller 45 on 50, is provided with central processing unit 41 on bottom plate 60.In order to Facilitate description and distinguish, in fig. 4b, the bus between microcontroller 45 and central processing unit 41 is known as bus 1, microcontroller Bus between 45 and central processing unit 41 and exchange chip 46 is known as bus 2.
Optionally, it is additionally provided with network card interface 48 on bottom plate 60, passes through bus 3 between exchange chip 46 and network card interface 48 Connection.
Microcontroller 45 is used to issue the first bus marco parameter or the second bus marco parameter to Bussing connector 47.
Bussing connector 47 for connecting microcontroller 45 and exchange chip 46 according to the first bus marco parameter, and breaks Open the connection between central processing unit 41 and exchange chip 46;Alternatively, connecting central processing unit according to the second bus marco parameter 41 and exchange chip 46, and disconnect the connection between microcontroller 45 and exchange chip 46.
Embodiment five
The embodiment of the present invention five also provides a kind of computer readable storage medium for being stored thereon with computer program, calculates Machine program is used to execute a kind of interchanger starting method when by central processing unit or microcontroller execution,
Specifically, computer program is used to execute above-described embodiment one when being executed by central processing unit and embodiment two mentions The method of confession.This method includes:
Interchanger starting when, obtain can operating device provide application software indicate information;
In the information software table of comparisons pre-established, it is soft to search target application corresponding with application software instruction information Part, wherein the information software table of comparisons is stored with the corresponding relationship of application software instruction information and application software;
Load target application software.
Certainly, a kind of computer-readable storage medium being stored thereon with computer program provided by the embodiment of the present invention Matter, computer program are not limited to method operation as above, interchanger provided by any embodiment of the invention can also be performed Relevant operation in starting method.Computer program when being executed for executing implementation respectively by central processing unit and microcontroller The method that example four provides.Specifically being detailed in above-described embodiment, details are not described herein again.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of interchanger starts method, which is characterized in that including:
In interchanger starting, the central processing unit in interchanger obtain can the application software that provides of operating device indicate information;
The central processing unit is searched corresponding with application software instruction information in the information software table of comparisons pre-established Target application software, wherein the information software table of comparisons be stored with application software instruction information it is corresponding with application software Relationship;
The central processing unit loads the target application software.
2. the method according to claim 1, wherein it is described can operating device include switching device, the switch Device includes at least one gear;
It is described in interchanger starting, the central processing unit in interchanger obtain can the application software that provides of operating device indicate letter Breath, including:
In interchanger starting, the central processing unit obtains the current gear of the switching device;
Correspondingly, the central processing unit is searched and is indicated with the application software in the information software table of comparisons pre-established The corresponding target application software of information, including:
It is soft to search target application corresponding with current gear in the information software table of comparisons pre-established for the central processing unit Part.
3. according to the method described in claim 2, it is characterized in that, central processing unit in interchanger starting, in interchanger The gear of the switching device is obtained, including:
In interchanger starting, if the gear of the switching device is to reset, the central processing unit control suggestion device to User prompts to operate the switching device, and/or prompts the user with the corresponding application software of each application software instruction information;
Operation of the central processing unit in response to user to the switching device, obtains the gear of the switching device again.
4. the method according to claim 1, wherein the method also includes:
In interchanger starting, the microcontroller in interchanger initializes and obtains the access authority to exchange chip;
The microcontroller obtains the basic retransmitting paramater that each application software pre-saved needs altogether;And
The basic retransmitting paramater is configured in the exchange chip;
Access authority of the microcontroller release to the exchange chip.
5. according to the method described in claim 4, it is characterized in that, loading the target application software in the central processing unit Later, further include:
The central processing unit obtains the access authority to the exchange chip, and base will be removed needed for the target application software Other parameters except this retransmitting paramater are configured in the exchange chip.
6. a kind of interchanger, which is characterized in that including:Central processing unit, can operating device and memory;
It is described can operating device and the memory connect respectively with the central processing unit;
The memory, for storing the information software table of comparisons and one or more programs;
When one or more of programs are executed by the central processing unit, so that the central processing unit realizes such as claim Any application software chang-over method in 1-3.
7. interchanger according to claim 6, which is characterized in that it is described can operating device include at least switching device, touching Touch one of screen, camera, speech recognition equipment.
8. interchanger according to claim 6, which is characterized in that further include:Microcontroller and exchange chip, the exchange Chip is connect with the microcontroller and the central processing unit respectively;
The microcontroller, for initializing and obtaining the access authority to exchange chip in interchanger starting;It obtains preparatory The basic retransmitting paramater that each application software saved needs altogether;And the basic retransmitting paramater is configured to the exchange chip In;Discharge the access authority to the exchange chip;
The central processing unit, is also used to obtain the access authority to the exchange chip, and by the target application software institute The other parameters in addition to basic retransmitting paramater needed are configured in the exchange chip.
9. interchanger according to claim 6, which is characterized in that further include suggestion device;
The suggestion device is connect with the central processing unit, for prompting the user with behaviour under the control of the central processing unit Make the switching device, and/or prompts the user with the corresponding application software of each application software instruction information.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by centre Realize that interchanger as claimed in any one of claims 1 to 5 such as starts method when managing device or microcontroller execution.
CN201810681548.5A 2018-06-27 2018-06-27 Switch starting method, switch and storage medium Active CN108897583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810681548.5A CN108897583B (en) 2018-06-27 2018-06-27 Switch starting method, switch and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810681548.5A CN108897583B (en) 2018-06-27 2018-06-27 Switch starting method, switch and storage medium

Publications (2)

Publication Number Publication Date
CN108897583A true CN108897583A (en) 2018-11-27
CN108897583B CN108897583B (en) 2022-03-25

Family

ID=64346684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810681548.5A Active CN108897583B (en) 2018-06-27 2018-06-27 Switch starting method, switch and storage medium

Country Status (1)

Country Link
CN (1) CN108897583B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683968A (en) * 2018-12-18 2019-04-26 北京东土军悦科技有限公司 Interchanger quick start method, interchanger and storage medium
CN112532541A (en) * 2019-09-19 2021-03-19 恒为科技(上海)股份有限公司 Method and device for starting switch

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123507A (en) * 2007-10-08 2008-02-13 杭州华三通信技术有限公司 A protection method and storage device for data information in storage device
CN102279828A (en) * 2011-07-25 2011-12-14 中兴通讯股份有限公司 Control device and method for converting PCI (programmable communication interface) to Flash interface
US20120143990A1 (en) * 2004-12-30 2012-06-07 Nimrod Diamant Virtual serial port and protocol for use in serial-over-lan communication
CN102968351A (en) * 2012-12-13 2013-03-13 中国航空无线电电子研究所 External control method for BIT parameters
CN103631591A (en) * 2013-11-29 2014-03-12 中国航空无线电电子研究所 Software operation control system and method meeting civil-aircraft different software grade requirements
CN105337749A (en) * 2014-06-24 2016-02-17 华为技术有限公司 Method for configuring network device, optical module, and network device system
US20160364231A1 (en) * 2015-06-10 2016-12-15 Telefonaktiebolaget L M Ericsson (Publ) Method for minimal service impact during software upgrade in network elements (nes)

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120143990A1 (en) * 2004-12-30 2012-06-07 Nimrod Diamant Virtual serial port and protocol for use in serial-over-lan communication
CN101123507A (en) * 2007-10-08 2008-02-13 杭州华三通信技术有限公司 A protection method and storage device for data information in storage device
CN102279828A (en) * 2011-07-25 2011-12-14 中兴通讯股份有限公司 Control device and method for converting PCI (programmable communication interface) to Flash interface
CN102968351A (en) * 2012-12-13 2013-03-13 中国航空无线电电子研究所 External control method for BIT parameters
CN103631591A (en) * 2013-11-29 2014-03-12 中国航空无线电电子研究所 Software operation control system and method meeting civil-aircraft different software grade requirements
CN105337749A (en) * 2014-06-24 2016-02-17 华为技术有限公司 Method for configuring network device, optical module, and network device system
US20160364231A1 (en) * 2015-06-10 2016-12-15 Telefonaktiebolaget L M Ericsson (Publ) Method for minimal service impact during software upgrade in network elements (nes)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李向文: ""支持OpenFlow交换机的关键技术研究与实现"", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *
金超: ""基于以太网的虚拟交换机研究"", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683968A (en) * 2018-12-18 2019-04-26 北京东土军悦科技有限公司 Interchanger quick start method, interchanger and storage medium
CN112532541A (en) * 2019-09-19 2021-03-19 恒为科技(上海)股份有限公司 Method and device for starting switch

Also Published As

Publication number Publication date
CN108897583B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
US20200220774A1 (en) Method and device for detecting network failure
US20150149658A1 (en) Software upgrade of routers
EP3211527A1 (en) Multi-screen sharing based application management method and device, and storage medium
CN108897583A (en) Interchanger starts method, interchanger and storage medium
CN109597313A (en) Method for changing scenes and device
CN111629304A (en) Loudspeaker control method and device and electronic equipment
CN105357727B (en) A kind of mobile network and local network automatic switching method
CN104811930A (en) Network flow control method and network flow control system for mobile terminal
CN109683968A (en) Interchanger quick start method, interchanger and storage medium
US20140115313A1 (en) Electronic device and start-up method thereof
CN108924064A (en) Interchanger quick start method, interchanger and medium
US20100125726A1 (en) Thin client host wakeup method and thin client host
CN111478983A (en) Three-layer switch port IP address configuration method, system, terminal and storage medium
CN110036569A (en) Efficient controlling mechanism in spaced antenna module
CN103379385B (en) The control method of intelligent television and operating system
CN109756431A (en) Hybrid network configuration method, device, network structure and electronic equipment
WO2016183916A1 (en) Dual card switching method and device
CN116932433B (en) Installation control method based on DPU and related equipment
CN108597515A (en) The state display systems and method of dish-washing machine
CN102540105A (en) Method for testing AC and DC on/off machines
CN108595072A (en) Multi-screen display method, device, storage medium and electronic equipment
CN107256150A (en) It is a kind of to shorten the method to set up without screen Android device starting up's time
WO2023125159A1 (en) Video generation circuits, video generation method, and electronic devices
CN107018557A (en) A kind of terminal control method and terminal
CN106231423A (en) The control method of playing audio/video and system

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
GR01 Patent grant
GR01 Patent grant