CN110990324A - Method and device for realizing output control, computer storage medium and terminal - Google Patents

Method and device for realizing output control, computer storage medium and terminal Download PDF

Info

Publication number
CN110990324A
CN110990324A CN201911024677.8A CN201911024677A CN110990324A CN 110990324 A CN110990324 A CN 110990324A CN 201911024677 A CN201911024677 A CN 201911024677A CN 110990324 A CN110990324 A CN 110990324A
Authority
CN
China
Prior art keywords
converter
programmable device
output control
arm processor
bmc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911024677.8A
Other languages
Chinese (zh)
Inventor
曲勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911024677.8A priority Critical patent/CN110990324A/en
Publication of CN110990324A publication Critical patent/CN110990324A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Abstract

A method, a device, a computer storage medium and a terminal for realizing output control comprise: establishing communication between an advanced reduced instruction set machine (ARM) processor and a converter which need to be subjected to information output control through a programmable device; for the ARM processor which establishes communication with the converter, the converter is used for carrying out output control on information; the programmable device is connected between a Baseboard Management Controller (BMC) and the ARM processor, and the programmable device is connected with the converter. The embodiment of the invention realizes the output control of information through the programmable device and the converter, provides network support for fault analysis through remote equipment, and improves the fault analysis efficiency of the mobile terminal system.

Description

Method and device for realizing output control, computer storage medium and terminal
Technical Field
The present disclosure relates to, but not limited to, computer technology, and more particularly, to a method, an apparatus, a computer storage medium, and a terminal for implementing output control.
Background
The cloud server (ECS) is a computing Service which is simpler and more efficient in management mode than a physical server, can quickly create or release the processing capacity of any multiple cloud servers, can elastically stretch and contract, and is safe and reliable without purchasing hardware in advance. The mobile terminal cloud server (including but not limited to an android cloud server) is a server which provides application service for clients in a cloud background, a plurality of advanced reduced instruction set machine (ARM) core boards are carried in the mobile terminal cloud server, and a mobile terminal system is independently operated on an ARM processor of each ARM core board so as to realize pooling of computing resources. The user can directly run the application in the server through the cloud interface without downloading application software, so that the user experience can be improved.
When a mobile terminal system breaks down, the related technology mainly opens a server case on site through a mobile terminal cloud server, and carries out fault analysis in a serial port debugging mode after connecting a serial port of an ARM processor.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a method and a device for realizing output control, a computer storage medium and a terminal, which can improve the fault analysis efficiency of a mobile terminal system.
The embodiment of the invention provides a method for realizing output control, which comprises the following steps:
establishing communication between an advanced reduced instruction set machine (ARM) processor and a converter which need to be subjected to information output control through a programmable device;
for the ARM processor which establishes communication with the converter, the converter is used for carrying out output control on information;
the programmable device is connected between the baseboard management controller BMC and the ARM processor, and the programmable device is connected with the converter.
In an exemplary embodiment, the establishing, by the programmable device, communication between the ARM processor and the converter, which needs to be controlled by information output, includes:
the programmable device receives a selection instruction from the BMC and selects an ARM processor needing to establish communication with the converter according to the selection instruction;
and the programmable device establishes the communication between the selected ARM processor needing to establish communication with the converter and the converter through a preset enabling instruction.
In an exemplary embodiment, the programmable device comprises an electronic device of any of the following categories:
FPGA, complex programmable logic device CPLD.
In an exemplary embodiment, the output control of the information by the converter includes:
the converter receives a control instruction from the BMC;
and the converter outputs the information from the ARM processor which is connected with the converter to a remote end or a local serial port which is connected with the BMC through serial port redirection SOL according to the received control instruction.
On the other hand, an embodiment of the present invention further provides an apparatus for implementing output control, including: the programmable device is connected between the baseboard management controller BMC and the advanced reduced instruction set machine ARM processor, and the converter is connected with the programmable device; wherein the content of the first and second substances,
the programmable device is used for: establishing communication between an ARM processor needing information output control and a converter;
the converter is used for carrying out information output control on the ARM processor which establishes communication with the converter.
In one exemplary embodiment: the BMC is configured to: sending a selection instruction to the programmable device;
the programmable device is specifically configured to: selecting an ARM processor which needs to establish communication with the converter according to the received selection instruction; and establishing communication between the selected ARM processor needing to establish communication with the converter and the converter through a preset enabling instruction.
In an exemplary embodiment, the programmable device comprises an electronic device of any of the following categories:
FPGA, complex programmable logic device CPLD.
In one exemplary embodiment: the BMC is configured to: sending a control instruction to the converter;
the converter is specifically configured to: and according to the received control instruction, outputting the information from the ARM processor which is connected with the converter to a remote end or a local serial port which is connected with the BMC through serial port redirection SOL.
In another aspect, an embodiment of the present invention further provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are used to execute the method for implementing output control.
In another aspect, an embodiment of the present invention further provides a terminal, including: a memory and a processor; wherein the content of the first and second substances,
the processor is configured to execute program instructions in the memory;
the program instructions are read and executed on a processor to realize the output control method.
Compared with the related art, the technical scheme of the application comprises the following steps: establishing communication between an advanced reduced instruction set machine (ARM) processor and a converter which need to be subjected to information output control through a programmable device; for the ARM processor which establishes communication with the converter, the converter is used for carrying out output control on information; the programmable device is connected between the baseboard management controller BMC and the ARM processor, and the programmable device is connected with the converter. The embodiment of the invention realizes the output control of information through the programmable device and the converter, provides network support for fault analysis through remote equipment, and improves the fault analysis efficiency of the mobile terminal system.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flow chart of a method for implementing output control according to an embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus for implementing output control according to an embodiment of the present invention;
FIG. 3 is a block diagram of a system architecture of an exemplary application of the present invention;
fig. 4 is a flowchart of serial port information output control according to an exemplary application of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method for implementing output control according to an embodiment of the present invention, as shown in fig. 1, including:
step 101, establishing communication between an advanced reduced instruction set machine (ARM) processor and a converter which need to be subjected to information output control through a programmable device;
the programmable device is connected between the baseboard management controller BMC and the ARM processor;
the ARM processor provided by the embodiment of the invention is a processor arranged on an ARM core board.
In an exemplary embodiment, the establishing, by the programmable device, communication between the ARM processor and the converter, which needs to be controlled by information output, includes:
the programmable device receives a selection instruction from the BMC and selects an ARM processor needing to establish communication with the converter according to the selection instruction;
and the programmable device establishes the communication between the selected ARM processor needing to establish communication with the converter and the converter through a preset enabling instruction.
In one exemplary embodiment, the programmable device is connected to the BMC via an I2C bus;
in an exemplary embodiment, the connection between the ARM processor and the translator may include a UART communication link connection.
In an exemplary embodiment, the programmable device comprises an electronic device of any of the following categories:
FPGA, complex programmable logic device CPLD.
102, controlling the output of information by the converter for an ARM processor establishing communication with the converter;
wherein the programmable device is connected with the converter.
In an exemplary embodiment, the information for performing output control according to the embodiment of the present invention includes serial port information.
In an exemplary embodiment, the converter includes: a UART converter.
In an exemplary embodiment, the output control of the information by the converter includes:
the converter receives a control instruction from the BMC;
and the converter outputs the information from the ARM processor which is connected with the converter to a remote end or a local serial port which is connected with the BMC through serial port redirection SOL according to the received control instruction.
In an exemplary embodiment, the BMC and the converter are connected through a general purpose input/output port GPIO.
Compared with the related art, the technical scheme of the application comprises the following steps: establishing communication between an advanced reduced instruction set machine (ARM) processor and a converter which need to be subjected to information output control through a programmable device; for the ARM processor which establishes communication with the converter, the converter is used for carrying out output control on information; the programmable device is connected between the baseboard management controller BMC and the ARM processor, and the programmable device is connected with the converter. The embodiment of the invention realizes the output control of information through the programmable device and the converter, provides network support for fault analysis through remote equipment, and improves the fault analysis efficiency of the mobile terminal system.
Fig. 2 is a block diagram of a device for implementing output control according to an embodiment of the present invention, as shown in fig. 2, including: the programmable device is connected between the baseboard management controller BMC and the advanced reduced instruction set machine ARM processor, and the converter is connected with the programmable device; wherein the content of the first and second substances,
the programmable device is used for: establishing communication between an ARM processor needing information output control and a converter;
the converter is used for carrying out information output control on the ARM processor which establishes communication with the converter.
In an exemplary embodiment, the converter includes: a UART converter.
In one exemplary embodiment: the BMC is configured to: sending a selection instruction to the programmable device;
the programmable device is specifically configured to: selecting an ARM processor which needs to establish communication with the converter according to the received selection instruction; and establishing communication between the selected ARM processor needing to establish communication with the converter and the converter through a preset enabling instruction.
In one exemplary embodiment, the programmable device is connected to the BMC via an I2C bus;
in an exemplary embodiment, the connection between the ARM processor and the translator may include a UART communication link connection.
In an exemplary embodiment, the programmable device comprises an electronic device of any of the following categories:
FPGA, complex programmable logic device CPLD.
In one exemplary embodiment: the BMC is configured to: sending a control instruction to the converter;
the converter is specifically configured to: and according to the received control instruction, outputting the information from the ARM processor which is connected with the converter to a remote end or a local serial port which is connected with the BMC through serial port redirection SOL.
In an exemplary embodiment, the BMC and the converter are connected through a general purpose input/output port GPIO.
Compared with the related art, the technical scheme of the application comprises the following steps: an apparatus for implementing output control, comprising: the programmable device is connected between the baseboard management controller BMC and the advanced reduced instruction set machine ARM processor, and the converter is connected with the programmable device; wherein the programmable device is to: establishing communication between an ARM processor needing information output control and a converter; the converter is used for carrying out information output control on the ARM processor which establishes communication with the converter. The embodiment of the invention realizes the output control of information through the programmable device and the converter, provides network support for fault analysis through remote equipment, and improves the fault analysis efficiency of the mobile terminal system.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used for executing the method for realizing the output control.
An embodiment of the present invention further provides a terminal, including: a memory and a processor; wherein the content of the first and second substances,
the processor is configured to execute program instructions in the memory;
the program instructions are read and executed on a processor to realize the output control method.
The method of the embodiment of the present invention is briefly described below by using application examples, which are only used for illustrating the present invention and are not used for limiting the protection scope of the present invention.
Application example
The application example takes a mobile terminal cloud server as an android cloud server as an example for illustration, and the application example realizes that the serial port information of any ARM processor in the server is output to the local through a multiplexing physical serial port of a panel or output to a remote end through serial port redirection (SOL) through a Baseboard Management Controller (BMC). Fig. 3 is a block diagram of a system structure of an application example of the present invention, as shown in fig. 3, 54 ARM core boards are collocated in an android cloud server, a UART of an ARM processor on the 0 th to 26 th ARM core boards is connected with a CPLD0, a UART of an ARM processor on the 27 th to 53 th ARM core boards is connected with a CPLD1, and the UART is connected with a UART Switch chip through a CPLD0 and a CPLD 1. The BMC sends enabling instructions to the CPLD0 and CPLD1 through the I2C to enable the UART link and establish communication between the ARM processor and the converter that needs to establish communication with the converter. Then, the BMC switches the channel of the converter through the GPIO, determines to output serial port information from the ARM processor which is connected with the converter to a far end or a local serial port connected with the BMC through serial port redirection SOL.
Fig. 4 is a flowchart of serial port information output control according to an exemplary application of the present invention, as shown in fig. 4, including:
step 401, after the BMC is powered on and started, loading the last serial port output configuration from a charged erasable programmable read-only memory (EEPROM);
step 402, the BMC sends enabling instructions to a Complex Programmable Logic Device (CPLD)0 and a CPLD1 respectively to enable the UART link of the ARM processor.
Step 403, the converter judges whether the SOL is in an Active state; if the SOL is in the activated state, go to step 404; if the SOL is not activated, go to step 405;
step 404, switching a Universal Asynchronous Receiver Transmitter (UART) converter (Switch), and outputting serial port information to a far end through BMCUART;
and step 405, outputting the serial port information to a local serial port.
The application example of the invention improves the usability and flexibility of the mobile terminal cloud server.
"one of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art. ".

Claims (10)

1. A method of implementing output control, comprising:
establishing communication between an advanced reduced instruction set machine (ARM) processor and a converter which need to be subjected to information output control through a programmable device;
for the ARM processor which establishes communication with the converter, the converter is used for carrying out output control on information;
the programmable device is connected between the baseboard management controller BMC and the ARM processor, and the programmable device is connected with the converter.
2. The method of claim 1, wherein establishing communication between the ARM processor and the converter via the programmable device comprises:
the programmable device receives a selection instruction from the BMC and selects an ARM processor needing to establish communication with the converter according to the selection instruction;
and the programmable device establishes the communication between the selected ARM processor needing to establish communication with the converter and the converter through a preset enabling instruction.
3. A method according to claim 1 or 2, characterized in that the programmable device comprises an electronic device of any of the following categories:
FPGA, complex programmable logic device CPLD.
4. The method according to claim 1 or 2, wherein the controlling of the output of the information by the converter comprises:
the converter receives a control instruction from the BMC;
and the converter outputs the information from the ARM processor which is connected with the converter to a remote end or a local serial port which is connected with the BMC through serial port redirection SOL according to the received control instruction.
5. An apparatus for implementing output control, comprising: the programmable device is connected between the baseboard management controller BMC and the advanced reduced instruction set machine ARM processor, and the converter is connected with the programmable device; wherein the content of the first and second substances,
the programmable device is used for: establishing communication between an ARM processor needing information output control and a converter;
the converter is used for carrying out information output control on the ARM processor which establishes communication with the converter.
6. The apparatus of claim 5,
the BMC is configured to: sending a selection instruction to the programmable device;
the programmable device is specifically configured to: selecting an ARM processor which needs to establish communication with the converter according to the received selection instruction; and establishing communication between the selected ARM processor needing to establish communication with the converter and the converter through a preset enabling instruction.
7. The apparatus of claim 5 or 6, wherein the programmable device comprises an electronic device of any one of the following categories:
FPGA, complex programmable logic device CPLD.
8. The apparatus of claim 5 or 6,
the BMC is configured to: sending a control instruction to the converter;
the converter is specifically configured to: and according to the received control instruction, outputting the information from the ARM processor which is connected with the converter to a remote end or a local serial port which is connected with the BMC through serial port redirection SOL.
9. A computer storage medium having computer-executable instructions stored therein for performing the method of implementing output control of any of claims 1-4.
10. A terminal, comprising: a memory and a processor; wherein the content of the first and second substances,
the processor is configured to execute program instructions in the memory;
the program instructions read and execute the method for realizing the output control in any one of claims 1-4 on a processor.
CN201911024677.8A 2019-10-25 2019-10-25 Method and device for realizing output control, computer storage medium and terminal Pending CN110990324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911024677.8A CN110990324A (en) 2019-10-25 2019-10-25 Method and device for realizing output control, computer storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911024677.8A CN110990324A (en) 2019-10-25 2019-10-25 Method and device for realizing output control, computer storage medium and terminal

Publications (1)

Publication Number Publication Date
CN110990324A true CN110990324A (en) 2020-04-10

Family

ID=70082450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911024677.8A Pending CN110990324A (en) 2019-10-25 2019-10-25 Method and device for realizing output control, computer storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110990324A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042815A (en) * 2007-01-19 2007-09-26 华南理工大学 Single chip computer teaching experimental device based on on-line programmable logic device
US8417774B2 (en) * 2006-12-06 2013-04-09 Fusion-Io, Inc. Apparatus, system, and method for a reconfigurable baseboard management controller
CN105868149A (en) * 2016-03-24 2016-08-17 杭州昆海信息技术有限公司 A serial port information transmission method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8417774B2 (en) * 2006-12-06 2013-04-09 Fusion-Io, Inc. Apparatus, system, and method for a reconfigurable baseboard management controller
CN101042815A (en) * 2007-01-19 2007-09-26 华南理工大学 Single chip computer teaching experimental device based on on-line programmable logic device
CN105868149A (en) * 2016-03-24 2016-08-17 杭州昆海信息技术有限公司 A serial port information transmission method and device

Similar Documents

Publication Publication Date Title
CN107066305B (en) Method and device for updating server firmware of server and server
CN107135279B (en) Method and device for processing long connection establishment request
RU2614569C2 (en) Rack with automatic recovery function and method of automatic recovery for this rack
CN102214106B (en) Automatic dual-system guide method of embedded device
CN110650503B (en) Network access method, device, system and computer readable storage medium
CN113296871A (en) Method, equipment and system for processing container group instance
CN107148035B (en) Frequency band selection method and device and wireless equipment
CN109828830B (en) Method and apparatus for managing containers
CN114064091A (en) OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle
CN110768840A (en) Control method, device, equipment and storage medium of communication equipment
CN113630443A (en) Service management method, device, server and medium
CN110312266B (en) Method and device for realizing WIFI communication by multiple systems of terminal
CN110275701B (en) Data processing method, device, medium and computing equipment
CN110990324A (en) Method and device for realizing output control, computer storage medium and terminal
EP2835737A1 (en) Data terminal running mode switching method, device, and data terminal
CN104092661A (en) Serial port communication method and apparatus of virtual machines
CN115412993A (en) Relay discovery method, system, device and storage medium
CN115145733A (en) Resource allocation method, device, server and system
CN115374042A (en) Bus switching method, device, equipment and medium
CN108737120A (en) A kind of idle method and set-top box of set-top box
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN110119111B (en) Communication method and device, storage medium, and electronic device
CN114237684A (en) Component management system, method, device, electronic device and storage medium
WO2016078322A1 (en) Io channel allocation method and device
CN107454021B (en) Communication method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200410