CN110968535A - Control instruction processing method and device, processor and electronic device - Google Patents

Control instruction processing method and device, processor and electronic device Download PDF

Info

Publication number
CN110968535A
CN110968535A CN201911204699.2A CN201911204699A CN110968535A CN 110968535 A CN110968535 A CN 110968535A CN 201911204699 A CN201911204699 A CN 201911204699A CN 110968535 A CN110968535 A CN 110968535A
Authority
CN
China
Prior art keywords
control
serial port
control instruction
physical network
network platform
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
CN201911204699.2A
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.)
Shanghai Mxchip Information Technology Co Ltd
Original Assignee
Shanghai Mxchip Information 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 Shanghai Mxchip Information Technology Co Ltd filed Critical Shanghai Mxchip Information Technology Co Ltd
Priority to CN201911204699.2A priority Critical patent/CN110968535A/en
Publication of CN110968535A publication Critical patent/CN110968535A/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/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1605Handling requests for interconnection or transfer for access to memory bus based on arbitration
    • G06F13/1652Handling requests for interconnection or transfer for access to memory bus based on arbitration in a multiprocessor architecture
    • 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/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1694Configuration of memory controller to different memory types
    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3004Arrangements for executing specific machine instructions to perform operations on memory
    • 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/4401Bootstrapping

Landscapes

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

Abstract

The invention discloses a control instruction processing method and device, a processor and an electronic device. The method comprises the following steps: monitoring a control instruction sent by a control terminal to a current serial port in a boot mode, wherein the current serial port is any one of a plurality of serial ports which are pre-configured on a physical network platform module, and the plurality of serial ports are all used for communication interaction between the physical network platform module and the control terminal; and executing corresponding control operation according to the control instruction. The invention solves the technical problems that the control process of the physical network platform module has obvious limitation and poor usability because the physical network platform module provided by the related technology can only use a single fixed serial port to carry out control instruction interaction in the process of communicating with the control terminal in the guide mode.

Description

Control instruction processing method and device, processor and electronic device
Technical Field
The invention relates to the field of computers, in particular to a method and a device for processing a control instruction, a processor and an electronic device.
Background
At present, in a BOOT mode (BOOT mode), a physical network platform module provided in the related art can only use a single fixed serial port to perform control instruction interaction in a communication process with a control terminal, and the remaining serial ports are used for connecting external devices with different purposes. For example: in the development stage, serial port 0 and serial port 1 are arranged on the physical network platform module, and it is assumed that only serial port 1 is agreed in advance on the physical network platform module to be used for control instruction interaction in the BOOT mode, so that the control terminal can perform control instruction interaction with the physical network platform module only by being connected with serial port 1 on the physical network platform module through a serial port line. If the control terminal is connected with the serial port 0 on the physical network platform module through the serial port line, the control instruction interaction in the BOOT mode cannot be carried out between the control terminal and the physical network platform module, and therefore the control process of the physical network platform module has obvious limitation and poor usability.
In addition, in consideration of the difference of the mechanical structure of the physical network platform modules produced by different manufacturers, serial ports at different positions may need to be applied in the actual development stage. For example: the physical network platform module produced by the manufacturer A needs to perform control instruction interaction in the BOOT mode with the control terminal through the serial port 0 in the actual development stage, and the physical network platform module produced by the manufacturer B needs to perform control instruction interaction in the BOOT mode with the control terminal through the serial port 1 in the actual development stage. If the control terminal is limited to be connected with the serial port 1 on the physical network platform module only through the serial port line, the control terminal can perform control instruction interaction with the physical network platform module in the BOOT mode, and unnecessary limitation is caused to the development process.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
At least part of embodiments of the present invention provide a method, an apparatus, a processor, and an electronic apparatus for processing a control instruction, so as to at least solve the technical problems that a physical network platform module provided in the related art generally only uses a single fixed serial port for control instruction interaction in the process of communicating with a control terminal in a boot mode, which causes obvious limitations in the control process of the physical network platform module and poor usability of the physical network platform module.
According to an embodiment of the present invention, a method for processing a control instruction is provided, including:
monitoring a control instruction sent by a control terminal to a current serial port in a boot mode, wherein the current serial port is any one of a plurality of serial ports which are pre-configured on a physical network platform module, and the plurality of serial ports are all used for communication interaction between the physical network platform module and the control terminal; and executing corresponding control operation according to the control instruction.
Optionally, monitoring a control instruction sent by the control terminal to the current serial port includes: monitoring a plurality of serial ports simultaneously by adopting a monitoring component; if the detection instruction is monitored from the current serial port, determining that the control terminal is connected to the current serial port through a serial port line, and determining that the physical network platform module performs control instruction interaction in a guide mode with the control terminal through the current serial port; and monitoring a control instruction from the current serial port.
Optionally, executing the corresponding control operation according to the control instruction includes: analyzing the control instruction, and determining a control object, wherein the control object comprises: setting firmware, setting operating system parameters and setting memory space; and executing corresponding control operation based on the control object.
Optionally, when the control content includes a firmware setting, performing the corresponding control operation based on the control object includes: performing read and/or update operations on the boot program firmware; performing a read and/or update operation on the application firmware; read and/or update operations are performed on the radio frequency driver firmware.
Optionally, when the control content includes an operating system parameter setting, performing the corresponding control operation based on the control object includes: performing a read operation on the operating system parameter setting; performing an update operation on the operating system parameter settings; an erase operation is performed on the operating system parameter set.
Optionally, when the control content includes a memory space setting, executing a corresponding control operation based on the control object includes: executing reading operation on data contents stored in a specified memory space; executing updating operation on the data content stored in the appointed memory space; executing erasing operation on the data content stored in the designated memory space; and executing query operation on the memory address allocation list.
According to an embodiment of the present invention, there is also provided a control instruction processing apparatus, including:
the monitoring module is used for monitoring a control instruction sent by the control terminal to a current serial port in a boot mode, wherein the current serial port is any one of a plurality of serial ports which are pre-configured on the physical network platform module, and the plurality of serial ports are all used for communication interaction between the physical network platform module and the control terminal; and the processing module is used for executing corresponding control operation according to the control instruction.
Optionally, the listening module includes: the first monitoring unit is used for monitoring a plurality of serial ports simultaneously by adopting a monitoring component; the first determining unit is used for determining that the control terminal is connected to the current serial port through a serial port line if the detection instruction is monitored from the current serial port, and determining that the physical network platform module performs control instruction interaction in a guide mode with the control terminal through the current serial port; and the second monitoring unit is used for monitoring the control instruction from the current serial port.
Optionally, the processing module comprises: the second determining unit is used for analyzing the control instruction and determining a control object, wherein the control object comprises: setting firmware, setting operating system parameters and setting memory space; and the processing unit is used for executing corresponding control operation based on the control object.
Optionally, when the control content includes a firmware setting, a processing unit for performing a read and/or update operation on the boot program firmware; performing a read and/or update operation on the application firmware; and performing read and/or update operations on the radio frequency driver firmware.
Optionally, when the control content includes an operating system parameter setting, the processing unit is configured to perform a read operation on the operating system parameter setting; performing an update operation on the operating system parameter settings; and performing an erase operation on the operating system parameter settings.
Optionally, when the control content includes a memory space setting, the processing unit is configured to perform a read operation on data content stored in a specified memory space; executing updating operation on the data content stored in the appointed memory space; executing erasing operation on the data content stored in the designated memory space; and executing query operation on the memory address allocation list.
In at least part of embodiments of the invention, a mode of monitoring a control instruction sent by a control terminal to a current serial port in a BOOT mode is adopted, the current serial port is any one of a plurality of serial ports pre-configured on a physical network platform module, and the plurality of serial ports are all used for communication interaction between the physical network platform module and the control terminal, and corresponding control operation is executed through the control instruction, so that the control terminal can flexibly select any one of the plurality of serial ports pre-configured on the physical network platform module to perform control instruction interaction between the physical network platform module and the physical network platform module in a BOOT mode, and the technical effects of getting rid of the limitation that only a single fixed serial port can be used for control instruction interaction between the physical network platform module and the control terminal in the BOOT mode, having strong usability and being capable of flexibly adapting to physical network platform modules with different mechanical structures are achieved, and then solved the physics net platform module that provides among the correlation technique under the guide mode, the in-process that communicates with control terminal can only use single fixed serial ports to carry out control command interaction usually, leads to physics net platform module control process to have obvious limitation, its easy-to-use relatively poor technical problem.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic structural diagram of communication interaction between a physical network platform module and a control terminal according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a method of processing control instructions according to one embodiment of the invention;
FIG. 3 is a block diagram of an operating system architecture for use in a physical network platform module according to an alternative embodiment of the present invention;
fig. 4 is a block diagram of a control instruction processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with one embodiment of the present invention, there is provided an embodiment of a method for processing control instructions, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than presented herein.
The method embodiment can be executed in a physical network platform module. The physical network platform module can be applied to intelligent air conditioners, intelligent refrigerators, intelligent microwave ovens or similar physical network platform equipment. Fig. 1 is a schematic structural diagram of communication interaction between a physical network platform module and a control terminal according to an embodiment of the present invention, and as shown in fig. 1, the control terminal 100 may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a personal computer, and the like. The physical network platform module 200 may include: listening component, boot component, first serial port 201, second serial port 202, third serial port 203 … nth serial port 20N. The control terminal 100 may select any serial port from the first serial port 201, the second serial port 202, and the third serial port 203 …, and the nth serial port 20N performs control instruction interaction in the BOOT mode with the physical network platform module 200.
On this basis, physical network platform module 200 may include one or more processors (which may include, but are not limited to, a processing device such as a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), or a programmable logic device (FPGA)), and memory for storing data. Optionally, the above physical network platform module may further include a transmission device for a communication function. It will be understood by those skilled in the art that the above structural description is only illustrative and not limiting to the structure of the above physical network platform module. For example, the physical network platform module may also include more or fewer components than described above, or have a different configuration than described above.
The memory may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the processing method of the control instruction in the embodiment of the present invention, and the processor executes various functional applications and data processing by running the computer programs stored in the memory, that is, implements the processing method of the control instruction. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located from the processor, and these remote memories may be connected to the physical network platform module through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used to receive or transmit data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the physical network platform module. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the control terminal may include a display device. The display device may be, for example, a touch screen type Liquid Crystal Display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the control terminal. In some embodiments, the control terminal has a Graphical User Interface (GUI) with which a user can interact by touching finger contacts and/or gestures on the touch-sensitive surface, where the human-machine interaction function optionally includes the following interactions: executable instructions for creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, emailing, call interfacing, playing digital video, playing digital music, and/or web browsing, etc., for performing the above-described human-computer interaction functions, are configured/stored in one or more processor-executable computer program products or readable storage media.
In this embodiment, a method for processing a control instruction running on the above-mentioned physical network platform module is provided, and fig. 2 is a flowchart of a method for processing a control instruction according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step S22, in a boot mode, monitoring a control instruction sent by a control terminal to a current serial port, wherein the current serial port is any one of a plurality of serial ports pre-configured on a physical network platform module, and the plurality of serial ports are all used for communication interaction between the physical network platform module and the control terminal;
and step S24, executing corresponding control operation according to the control command.
Through the steps, the technical effects that the control instruction sent by the control terminal to the current serial port can be monitored in the guide mode, the current serial port is any one of a plurality of serial ports which are pre-configured on the physical network platform module, and the plurality of serial ports are all used for the communication interaction between the physical network platform module and the control terminal, the control instruction executes corresponding control operation, the control terminal can flexibly select any one of the plurality of serial ports which are pre-configured on the physical network platform module to carry out the control instruction interaction in the BOOT mode with the physical network platform module are achieved, the limitation that only a single fixed serial port can be used for carrying out the control instruction interaction between the physical network platform module and the control terminal in the guide mode is eliminated, the usability is strong, and the physical network platform modules with different mechanical structures can be flexibly adapted, and then solved the physics net platform module that provides among the correlation technique under the guide mode, the in-process that communicates with control terminal can only use single fixed serial ports to carry out control command interaction usually, leads to physics net platform module control process to have obvious limitation, its easy-to-use relatively poor technical problem.
In an optional embodiment, the operating system applied in the physical network platform module may be an internet of things access operating system based on a microcontroller, and is a software platform for developing internet of things devices. The operating system is internally provided with a real-time operating system kernel facing the equipment of the Internet of things, and is particularly suitable for running on the micro-control equipment with limited resources. The operating system comprises a bottom chip driver, a wireless network protocol, a radio frequency control technology and an application framework. In addition, the operating system also comprises a network communication protocol stack, a security algorithm and protocol, a hardware abstraction layer, a programming tool and other software function packages essential for developing the Internet of things.
Fig. 3 is a schematic diagram of an operating system architecture applied in a physical network platform module according to an alternative embodiment of the present invention, and as shown in fig. 3, the operating system architecture may include: the system comprises an application layer framework, a hardware configuration framework and a cloud service access framework. In the application layer framework, a special operation flow can be realized by setting and directly calling an Application Program Interface (API). In the hardware configuration framework, connection parameters can be quickly and simply modified in the board level configuration by changing the connection mode (for example, pin modification) of the hardware device. In the cloud service access framework, the cloud access protocol component can provide a simple and effective application framework for the application program, and the application program can quickly realize the application function only by realizing the part related to the application.
Optionally, in step S22, monitoring the control command sent by the control terminal to the current serial port may include the following steps:
step S221, monitoring a plurality of serial ports simultaneously by adopting a monitoring component;
step S222, if the detection instruction is monitored from the current serial port, determining that the control terminal is connected to the current serial port through a serial port line, and determining that the physical network platform module performs control instruction interaction in a guide mode with the control terminal through the current serial port;
and step S223, monitoring a control instruction from the current serial port.
Under the BOOT mode, the physical network platform module can monitor a plurality of serial ports simultaneously through the monitoring component. The control terminal can select any one of the plurality of serial ports which are configured in advance on the physical network platform module according to actual conditions and perform control instruction interaction in the BOOT mode with the physical network platform module. Before sending the control instruction to the physical network platform module, the control terminal can send a detection instruction to a serial port (namely a current serial port) connected with the control terminal through a serial port line, so that the monitoring component can monitor that the control terminal is connected to the current serial port through the serial port line and determine that the physical network platform module conducts control instruction interaction in a guide mode with the control terminal through the current serial port. Then, the control terminal can successively send control instructions to the current serial port, so as to control the physical network platform module to execute corresponding control operation.
Optionally, in step S24, executing the corresponding control operation according to the control instruction may include the following steps:
step S241, analyzing the control command, and determining a control object, where the control object includes: setting firmware, setting operating system parameters and setting memory space;
in step S242, a corresponding control operation is performed based on the control object.
The boot component on the physical network platform module (which is responsible for providing the boot program) may be viewed as a piece of pre-boot program that runs before the operating system kernel or user application starts. Hardware equipment can be initialized and a mapping chart of a memory space can be established by running a bootstrap program, so that the software and hardware environment of the whole operating system is brought into a proper running state, and a good running environment is provided for finally calling an operating system kernel or a user application program.
The physical network platform module can determine a control object by analyzing the control instruction. The control objects may include, but are not limited to: firmware setting, operating system parameter setting and memory space setting. Then, the guide component on the physical network platform module executes the corresponding control operation based on the control object.
Alternatively, in step S242, when the control content includes the firmware setting, performing the corresponding control operation based on the control object may include performing steps of:
step S2420, performing a read and/or update operation on the boot firmware;
the control terminal may perform a read and/or update operation on the boot firmware on the physical network platform module by using a control instruction having a command code of 0 and a command name of BOOTUPDATA. That is, the control command can not only read the boot firmware and save the read boot firmware in the specified file directory, but also update the read boot firmware.
Step S2421, performing a reading and/or updating operation on the application firmware;
the control terminal may perform a read and/or update operation on the application firmware on the physical network platform module by using a control instruction with a command code of 1 and a command name of FWUPDATA. That is, not only can the application firmware be read and saved under the specified file directory by the control command, but also the user can select the application firmware to be updated from the application firmware and click to confirm, so as to complete the updating operation of the application firmware.
In step S2422, a read and/or update operation is performed on the rf driver firmware.
The control terminal may perform a read and/or update operation on the rf driver firmware on the physical network platform module by using a control command with a command code of 2 and a command name of driver update. That is, through the control command, not only can the rf driving firmware be read and saved to the designated file directory, but also the user can select the rf driving firmware to be updated and click to confirm, so as to complete the update operation of the rf driving firmware.
Alternatively, when the control content includes the operating system parameter setting, performing the corresponding control operation based on the control object in step S242 may include performing the steps of:
step S2423, performing a read operation on the operating system parameter setting;
step S2424, updating the operating system parameter setting;
in step S2425, an erase operation is performed on the operating system parameter settings.
The control terminal may perform at least one of a read operation, an update operation, and an erase operation on the operating system parameter set on the physical network platform module by using a control instruction having a command code of 3 and a command name of PARAUPDATE. That is, through the control command, not only can the operating system parameters be read and saved in the specified file directory, but also the user can select the operating system parameters to be updated from the operating system parameters and click to confirm, so as to complete the updating operation of the operating system parameters. In addition, the user can also select the operating system parameters needing to be erased from the operating system parameters and click the confirmation to complete the erasing operation of the operating system parameters.
Optionally, in step S242, when the control content includes the memory space setting, the performing the corresponding control operation based on the control object may include performing the following steps:
step S2426, performing a read operation on the data content stored in the designated memory space;
step S2427, performing an update operation on the data content stored in the designated memory space;
step S2428, erasing the data content stored in the designated memory space;
in step S2429, a query operation is performed on the memory address allocation list.
The control terminal may perform at least one of a read operation, an update operation, and an erase operation on data contents stored in a designated memory space on the physical network platform module by using a control command having a command code of 4 and a command name of flag. That is, by the control command, not only the data contents stored in the specified memory space can be read and the read data contents stored in the specified memory space can be saved in the specified file directory, but also the user can select the data contents stored in the specified memory space to be updated from the data contents stored in the plurality of memory spaces and click to confirm, so as to complete the updating operation of the data contents stored in the specified memory space. In addition, the user can also select the data content stored in the designated memory space which needs to be erased from the data contents stored in the plurality of designated memory spaces and click to confirm, so as to complete the erasing operation of the data content stored in the designated memory space.
Further, the control terminal may also perform a query operation on the memory address allocation list on the physical network platform module by using a control instruction with a command code of 5 and a command name of memomomap.
In addition to the above control instructions, the control terminal may run the application on the physical network platform module by using the control instruction with the command code of 6 and the command name of BOOT. The control terminal may also perform a restart operation on the physical network platform module by using a control instruction with a command code of 7 and a command name of REBOOT.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a control instruction processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a control instruction processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes: the monitoring module 10 is used for monitoring a control instruction sent by the control terminal to a current serial port in a boot mode, wherein the current serial port is any one of a plurality of serial ports which are pre-configured on the physical network platform module, and the plurality of serial ports are all used for communication interaction between the physical network platform module and the control terminal; and the processing module 20 is configured to execute a corresponding control operation according to the control instruction.
Optionally, the listening module 10 includes: a first monitoring unit (not shown in the figure) for monitoring the plurality of serial ports simultaneously by using the monitoring component; a first determining unit (not shown in the figure) configured to determine that the control terminal is connected to the current serial port through a serial port line if the detection instruction is monitored from the current serial port, and determine that the physical network platform module performs control instruction interaction in a boot mode with the control terminal via the current serial port; and the second monitoring unit (not shown in the figure) is used for monitoring the control command from the current serial port.
Optionally, the processing module 20 comprises: a second determining unit (not shown in the figure), configured to parse the control instruction, and determine a control object, where the control object includes: setting firmware, setting operating system parameters and setting memory space; and a processing unit (not shown in the figure) for performing a corresponding control operation based on the control object.
Optionally, when the control content includes a firmware setting, a processing unit (not shown in the figure) for performing a read and/or update operation on the boot firmware; performing a read and/or update operation on the application firmware; and performing read and/or update operations on the radio frequency driver firmware.
Alternatively, when the control content includes operating system parameter settings, a processing unit (not shown in the figure) for performing a read operation on the operating system parameter settings; performing an update operation on the operating system parameter settings; and performing an erase operation on the operating system parameter settings.
Optionally, when the control content includes a memory space setting, a processing unit (not shown in the figure) for performing a read operation on the data content stored in the specified memory space; executing updating operation on the data content stored in the appointed memory space; executing erasing operation on the data content stored in the designated memory space; and executing query operation on the memory address allocation list.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, monitoring a control instruction sent by the control terminal to a current serial port in a boot mode, wherein the current serial port is any one of a plurality of serial ports pre-configured on the physical network platform module, and the plurality of serial ports are all used for communication interaction between the physical network platform module and the control terminal;
and S2, executing corresponding control operation according to the control command.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, monitoring a control instruction sent by the control terminal to a current serial port in a boot mode, wherein the current serial port is any one of a plurality of serial ports pre-configured on the physical network platform module, and the plurality of serial ports are all used for communication interaction between the physical network platform module and the control terminal;
and S2, executing corresponding control operation according to the control command.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for processing a control instruction, comprising:
monitoring a control instruction sent by a control terminal to a current serial port in a boot mode, wherein the current serial port is any one of a plurality of serial ports which are pre-configured on a physical network platform module, and the plurality of serial ports are all used for communication interaction between the physical network platform module and the control terminal;
and executing corresponding control operation according to the control instruction.
2. The method of claim 1, wherein monitoring the control command sent by the control terminal to the current serial port comprises:
monitoring the plurality of serial ports simultaneously by adopting a monitoring component;
if a detection instruction is monitored from the current serial port, determining that the control terminal is connected to the current serial port through a serial port line, and determining that the physical network platform module performs control instruction interaction in the guide mode with the control terminal through the current serial port;
and monitoring the control instruction from the current serial port.
3. The method of claim 1, wherein performing the corresponding control operation in accordance with the control instruction comprises:
analyzing the control instruction, and determining a control object, wherein the control object comprises: setting firmware, setting operating system parameters and setting memory space;
and executing corresponding control operation based on the control object.
4. The method of claim 3, wherein when the control content includes firmware settings, performing corresponding control operations based on the control object comprises:
performing read and/or update operations on the boot program firmware;
performing a read and/or update operation on the application firmware;
read and/or update operations are performed on the radio frequency driver firmware.
5. The method of claim 3, wherein when the control content includes operating system parameter settings, performing corresponding control operations based on the control object comprises:
performing a read operation on the operating system parameter setting;
performing an update operation on the operating system parameter settings;
and executing an erasing operation on the operating system parameter setting.
6. The method of claim 3, wherein when the control content comprises a memory space setting, performing the corresponding control operation based on the control object comprises:
executing reading operation on data contents stored in a specified memory space;
executing updating operation on the data content stored in the appointed memory space;
executing erasing operation on the data content stored in the designated memory space;
and executing query operation on the memory address allocation list.
7. An apparatus for processing a control instruction, comprising:
the monitoring module is used for monitoring a control instruction sent by the control terminal to a current serial port in a boot mode, wherein the current serial port is any one of a plurality of serial ports which are pre-configured on a physical network platform module, and the plurality of serial ports are all used for communication interaction between the physical network platform module and the control terminal;
and the processing module is used for executing corresponding control operation according to the control instruction.
8. The apparatus of claim 7, wherein the listening module comprises:
the first monitoring unit is used for monitoring the plurality of serial ports simultaneously by adopting a monitoring component;
the first determining unit is used for determining that the control terminal is connected to the current serial port through a serial port line if a detection instruction is monitored from the current serial port, and determining that the physical network platform module performs control instruction interaction in the guide mode with the control terminal through the current serial port;
and the second monitoring unit is used for monitoring the control instruction from the current serial port.
9. The apparatus of claim 7, wherein the processing module comprises:
a second determining unit, configured to parse the control instruction and determine a control object, where the control object includes: setting firmware, setting operating system parameters and setting memory space;
and the processing unit is used for executing corresponding control operation based on the control object.
10. The apparatus of claim 9, wherein when the control content comprises a firmware setting, the processing unit is configured to perform a read and/or update operation on a boot firmware; performing a read and/or update operation on the application firmware; and performing read and/or update operations on the radio frequency driver firmware.
11. The apparatus of claim 9, wherein when the control content comprises an operating system parameter setting, the processing unit is configured to perform a read operation on the operating system parameter setting; performing an update operation on the operating system parameter settings; and performing an erase operation on the operating system parameter settings.
12. The apparatus according to claim 9, wherein when the control content comprises a memory space setting, the processing unit is configured to perform a read operation on data content stored in a specified memory space; executing updating operation on the data content stored in the appointed memory space; executing erasing operation on the data content stored in the designated memory space; and executing query operation on the memory address allocation list.
13. A storage medium, in which a computer program is stored, wherein the computer program is configured to execute a method of processing a control instruction according to any one of claims 1 to 6 when executed.
14. A processor, characterised in that the processor is configured to run a program, wherein the program is configured to execute the method of processing the control instruction of any one of claims 1 to 6 when running.
15. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the method for processing the control instruction according to any one of claims 1 to 6.
CN201911204699.2A 2019-11-29 2019-11-29 Control instruction processing method and device, processor and electronic device Pending CN110968535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911204699.2A CN110968535A (en) 2019-11-29 2019-11-29 Control instruction processing method and device, processor and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911204699.2A CN110968535A (en) 2019-11-29 2019-11-29 Control instruction processing method and device, processor and electronic device

Publications (1)

Publication Number Publication Date
CN110968535A true CN110968535A (en) 2020-04-07

Family

ID=70032317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911204699.2A Pending CN110968535A (en) 2019-11-29 2019-11-29 Control instruction processing method and device, processor and electronic device

Country Status (1)

Country Link
CN (1) CN110968535A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787078A (en) * 2020-06-19 2020-10-16 揭阳市聆讯软件有限公司 Signaling control system and communication method based on elevator Internet of things

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020073304A1 (en) * 2000-12-07 2002-06-13 Marsh James L. System and method for updating firmware
CN102855151A (en) * 2012-08-21 2013-01-02 武汉电信器件有限公司 Optical module firmware in-application upgrading method capable of not interrupting service
CN103677923A (en) * 2013-12-13 2014-03-26 中国航空工业集团公司第六三一研究所 BOOT bootstrap program run protection method
US20140365758A1 (en) * 2013-06-11 2014-12-11 International Business Machines Corporation Techniques for booting an information processing system
CN109697079A (en) * 2018-12-13 2019-04-30 杭州迪普科技股份有限公司 The update method and device of bootstrap loader
CN110192321A (en) * 2017-11-30 2019-08-30 南京德朔实业有限公司 The method for updating program of electronic device and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020073304A1 (en) * 2000-12-07 2002-06-13 Marsh James L. System and method for updating firmware
CN102855151A (en) * 2012-08-21 2013-01-02 武汉电信器件有限公司 Optical module firmware in-application upgrading method capable of not interrupting service
US20140365758A1 (en) * 2013-06-11 2014-12-11 International Business Machines Corporation Techniques for booting an information processing system
CN103677923A (en) * 2013-12-13 2014-03-26 中国航空工业集团公司第六三一研究所 BOOT bootstrap program run protection method
CN110192321A (en) * 2017-11-30 2019-08-30 南京德朔实业有限公司 The method for updating program of electronic device and electronic device
CN109697079A (en) * 2018-12-13 2019-04-30 杭州迪普科技股份有限公司 The update method and device of bootstrap loader

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
吕俊龙;和卫星;汤连桥;: "多重引导框架下基于WinCE的ARM多串口开发" *
张舞杰;南亦民;: "基于STM32F103VB的应用编程技术的实现" *
李静波;: "嵌入式***固件升级的设计" *
褚超\N\N\N\N,杜栓义: "TMS320VC5509数传平台中串行引导的研究与实现" *
陆俊伟;龚元明;周建鹏;李文静;: "基于Wi-Fi远程通信的无线烧录器的设计与实现" *
香勇\N\N\N\N,施克仁\N\N\N\N,窦海霓: "TMS320C54x的加载引导" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787078A (en) * 2020-06-19 2020-10-16 揭阳市聆讯软件有限公司 Signaling control system and communication method based on elevator Internet of things
CN111787078B (en) * 2020-06-19 2023-05-05 揭阳市聆讯软件有限公司 Signaling control system and communication method based on elevator Internet of things

Similar Documents

Publication Publication Date Title
CN108605220B (en) Application processing method and device for embedded universal integrated circuit card
CN111352597B (en) Multi-screen display control method and device, electronic equipment and readable storage medium
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
US9354919B2 (en) Method and device for loading android virtual machine application
CN103729107A (en) Method and device for achieving suspension target
CN105101479A (en) Adaptive configuration method and device for network frequency band of mobile terminal
CN110262810B (en) Method and device for installing application
CN108282410A (en) Background traffic control method, device, storage medium and user terminal
US20140282058A1 (en) Electronic device with a funiction of applying applications of different operating systems, system and method thereof
CN110989820A (en) Method and device for controlling power consumption of processor, processor and electronic device
CN103092648A (en) Method and system of mirror image upgrade and user device and personal computer
CN112463199A (en) System upgrading method and terminal
CN110968535A (en) Control instruction processing method and device, processor and electronic device
CN112286554B (en) Application program updating method, device, electronic equipment and readable storage medium
CN110908934A (en) Physical network platform module, physical network platform equipment and control instruction processing system
CN108268397B (en) Processing method of access equipment and mobile terminal
CN112929254A (en) Message processing method and device and electronic equipment
WO2022194068A1 (en) Flash memory configuration method and apparatus, electronic device, and storage medium
CN108271092B (en) Processing method of access equipment and mobile terminal
CN108268396B (en) Processing method of access equipment and mobile terminal
CN106021075A (en) Method for implementing process of viewing BMC IP address of server mainboard at any time
WO2022171058A1 (en) Application program processing method and apparatus, and electronic device
CN114296939A (en) Application program processing method and device, storage medium, processor and equipment
CN110489013B (en) Touch detection method, touch detection device and display panel
CN213069764U (en) Touch control equipment

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