CN114968305A - Device control method, device, management device and storage medium - Google Patents

Device control method, device, management device and storage medium Download PDF

Info

Publication number
CN114968305A
CN114968305A CN202210653648.3A CN202210653648A CN114968305A CN 114968305 A CN114968305 A CN 114968305A CN 202210653648 A CN202210653648 A CN 202210653648A CN 114968305 A CN114968305 A CN 114968305A
Authority
CN
China
Prior art keywords
function
application program
shell application
management
package
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
CN202210653648.3A
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.)
Shenzhen Shutuo Technology Co ltd
Original Assignee
Shenzhen Shutuo 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 Shenzhen Shutuo Technology Co ltd filed Critical Shenzhen Shutuo Technology Co ltd
Priority to CN202210653648.3A priority Critical patent/CN114968305A/en
Publication of CN114968305A publication Critical patent/CN114968305A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Abstract

The invention provides a device control method, a device, a management device and a storage medium, and relates to the technical field of computers. The method is applied to a management device for installing a target board card, wherein a shell application program and an update package management program are operated in the target board card, and the method comprises the following steps: receiving a function file packet sent by terminal equipment through an update packet management program; and updating the initial function file packet in the shell application program running on the target board card according to the function file packet, so that the management equipment has a control function corresponding to the function file packet, and the control function is used for controlling the display equipment. The management equipment provided with the target board receives the function file packet sent by the terminal equipment through the update packet management program and the shell application program, can automatically update the control function according to the function file packet, does not need a board manufacturer to sign again when the function is updated, enables the update of the control function to be simpler and more convenient, and improves the update efficiency of the control function.

Description

Device control method, device, management device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a device control method, an apparatus, a management device, and a storage medium.
Background
With the rapid development of scientific technology, various management devices are more and more, board cards can be installed on the management devices, and the display device can be controlled through the board cards on the management devices.
In the related art, different board manufacturers have different control modes for the same control function. And if a target control instruction is received, determining the installed target board card, then determining a target control mode of the target board card aiming at the target control instruction, and controlling the display equipment through the target board card according to the target control mode. Because different board card manufacturers have different calling modes for the system, when a new function is added to the target board card, the board card manufacturers need to re-sign the target board card, and then can call a system interface through the target board card, so that a new control function can be added to the target board card.
However, in the related art, when a new control function is added to a target board on a management device, manual docking with a manufacturer corresponding to the board is required, and the process is complicated.
Disclosure of Invention
The present invention aims to provide an apparatus control method, an apparatus, a management apparatus, and a storage medium, so as to solve the problem that in the related art, when a new control function is added for a target board card on the management apparatus, a manufacturer corresponding to the board card needs to be manually docked, and the process is complicated.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides an apparatus control method, which is applied to a management apparatus for installing a target board card, where a shell application program and an update package management program run on the target board card, and the method includes:
receiving a function file packet sent by terminal equipment through an update packet management program;
and updating an initial function file package in the shell application program running on the target board card according to the function file package, so that the management equipment has a control function corresponding to the function file package, wherein the control function is a function of controlling display equipment.
Optionally, the updating, according to the function file package, the initial function file package in the shell application program running on the target board card includes:
comparing the version number in the functional file package with the version number in the initial functional file package to obtain a comparison result;
and if the comparison result meets a preset condition, updating the function of the initial function file packet in the shell application program according to the function file packet.
Optionally, before updating the initial function file package in the shell application program running on the target board card according to the function file package, the method further includes:
adopting the shell application program to perform signature verification on the functional file package;
updating the initial function file package in the shell application program running on the target board card according to the function file package, including:
and if the signature passes the verification, updating the initial function file package in the shell application program according to the function file package.
Optionally, the performing, by using the shell application, signature verification on the function file package includes:
acquiring an execution file of the function file package by adopting the shell application program, and generating abstract information of the execution file;
decrypting the abstract file of the functional file package by adopting the shell application program to obtain decrypted abstract information;
comparing the abstract information of the execution file with the decrypted abstract information;
and if the abstract information of the execution file is the same as the decrypted abstract information, determining that the signature of the functional file package passes the verification.
Optionally, the method further includes:
receiving a calling request and a use parameter sent by the terminal equipment through a target application by adopting the shell application program; the call request includes: presetting an application program interface of a function;
calling the system permission of the display equipment through an application program interface of the preset function by adopting the shell application program according to the calling request and the use parameters so as to control the display equipment to execute the preset function;
and acquiring an execution result of the preset function from the display equipment by adopting the shell application program, and returning the execution result to the terminal equipment.
Optionally, before the invoking of the shell application by using the application program according to the invoking request and the usage parameter and through an application program interface of the preset function, invoking a system permission of the display device to control the display device to execute the preset function, the method further includes:
adopting the shell application program to perform signature verification on the calling request;
the method for calling the system permission of the display device through the application program interface of the preset function according to the calling request and the use parameters by adopting the shell application program so as to control the display device to execute the preset function includes:
and if the signature passes the verification, calling the system authority of the display equipment through an application program interface of the preset function by adopting the shell application program according to the calling request and the use parameters so as to control the display equipment to execute the preset function.
Optionally, after receiving the function file package sent by the terminal device through the update package management program, the method further includes:
establishing a communication connection between the update package management program and the shell application program in a cross-process calling mode;
and acquiring the function file package from the update package management program through the shell application program.
In a second aspect, an embodiment of the present invention further provides an apparatus control device, which is applied to a management apparatus for installing a target board, where a shell application program and an update package management program run on the target board, and the apparatus control device includes:
the receiving module is used for receiving the functional file packet sent by the terminal equipment through the updating packet management program;
and the updating module is used for updating an initial function file package in the shell application program running on the target board card according to the function file package, so that the management equipment has a control function corresponding to the function file package, and the control function is a function of controlling display equipment.
Optionally, the updating module is specifically configured to compare the version number in the functional file package with the version number in the initial functional file package to obtain a comparison result; and if the comparison result meets a preset condition, updating the function of the initial function file packet in the shell application program according to the function file packet.
Optionally, the apparatus further comprises:
the first verification module is used for verifying the signature of the functional file package by adopting the shell application program;
the updating module is specifically configured to update the initial function file package in the shell application according to the function file package if the signature verification passes.
Optionally, the first verification module is specifically configured to acquire, by using the shell application program, an execution file of the functional file package, and generate summary information of the execution file; decrypting the abstract file of the functional file package by adopting the shell application program to obtain decrypted abstract information; comparing the abstract information of the execution file with the decrypted abstract information; and if the summary information of the execution file is the same as the decrypted summary information, determining that the signature of the functional file package passes verification.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving a calling request and a use parameter sent by the terminal equipment through a target application by adopting the shell application program; the call request includes: presetting an application program interface of a function;
the calling module is used for calling the system authority of the display equipment through an application program interface of the preset function according to the calling request and the use parameters by adopting the shell application program so as to control the display equipment to execute the preset function;
and the returning module is used for acquiring the execution result of the preset function from the display equipment by adopting the shell application program and returning the execution result to the terminal equipment.
Optionally, the apparatus further comprises:
the second check module is used for adopting the shell application program to carry out signature check on the calling request;
the calling module is specifically configured to call, by using the shell application program and according to the calling request and the use parameter, the system permission of the display device through the application program interface of the preset function to control the display device to execute the preset function if the signature verification passes.
Optionally, the apparatus further comprises:
the establishing module is used for establishing communication connection between the update package management program and the shell application program in a cross-process calling mode;
and the acquisition module is used for acquiring the function file package from the update package management program through the shell application program.
In a third aspect, an embodiment of the present invention further provides a management device, including: a memory storing a computer program executable by the processor, and a processor implementing the apparatus control method according to any one of the first aspect described above when the processor executes the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is read and executed, the apparatus control method according to any one of the first aspects is implemented.
The invention has the beneficial effects that: the device control method provided by the embodiment of the invention is applied to a management device for installing a target board card, wherein a shell application program and an update package management program are operated in the target board card, and the method comprises the following steps: receiving a function file packet sent by terminal equipment through an update packet management program; and updating the initial function file package in the shell application program running on the target board card according to the function file package so that the management equipment has a control function corresponding to the function file package, wherein the control function is used for controlling the display equipment. The management equipment provided with the target board receives the function file packet sent by the terminal equipment through the update packet management program and the shell application program, can automatically update the control function according to the function file packet, does not need a board manufacturer to sign again when the function is updated, enables the update of the control function to be simpler and more convenient, and improves the update efficiency of the control function.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an apparatus control system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an apparatus control method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of an apparatus control method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of an apparatus control method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of an apparatus control method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of an apparatus control method according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of an apparatus control method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus control device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a management device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all embodiments of the present invention.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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 application.
In the description of the present application, it should be noted that if the terms "upper", "lower", etc. are used for indicating the orientation or positional relationship based on the orientation or positional relationship shown in the drawings or the orientation or positional relationship which is usually arranged when the product of the application is used, the description is only for convenience of describing the application and simplifying the description, but the indication or suggestion that the referred device or element must have a specific orientation, be constructed in a specific orientation and operation, and thus, cannot be understood as the limitation of the application.
Furthermore, the terms first, second and the like in the description and in the claims, as well as 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.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
With the rapid development of scientific technology, various management devices are more and more, board cards can be installed on the management devices, and the display device can be controlled through the board cards on the management devices.
In the related art, different board manufacturers have different control modes for the same control function. And if a target control instruction is received, determining the installed target board card, then determining a target control mode of the target board card aiming at the target control instruction, and controlling the display equipment through the target board card according to the target control mode. Because different board card manufacturers have different calling modes for the system, when a new function is added to the target board card, the board card manufacturers need to re-sign the target board card, and then can call a system interface through the target board card, so that a new control function can be added to the target board card.
For example, different board manufacturers have different API (Application Programming Interface) signatures and API module definitions for different control functions. For example, for the screenshot function, the vendor A's instructions are: screenshokmanager. Manufacturer B commands are surface control, screen, int width, int height; when a new control function is added, functions required for butt joint with a card manufacturer are needed, the process is complicated, and when a new manufacturer is in butt joint with the existing functions, a butt joint test needs to be carried out again.
In addition, if the link of card manufacturer signature is not added, any common application can call the system API, wherein the system API comprises some risky APIs: restarting the device, quiescing the installation of applications, uninstalling applications, etc., can increase the system risk, and therefore, this scheme also has major drawbacks.
In order to solve the problem that in the related art, when a new control function is added for a target board card on management equipment, manual butt joint with a manufacturer corresponding to the board card is needed, and the process is complicated. The embodiment of the application provides an equipment control method, a management device provided with a target board card receives a function file packet sent by a terminal device through an update packet management program and a shell application program, the automatic update of a control function can be realized according to the function file packet, and when the function is updated, a board card manufacturer is not required to sign again, so that the update of the control function is simpler and more convenient, and the update efficiency of the control function is improved.
Fig. 1 is a schematic structural diagram of an apparatus control system according to an embodiment of the present invention, and as shown in fig. 1, the system may include: a display device 101, a management device 102, and a terminal device 103.
The management device 102 may be installed with a target board 1011, and the target board 1011 runs a shell application program and an update package management program. The display device 101 and the management device 102 are communicatively connected, as are the terminal device 103 and the management device 102.
In practical application, the terminal device 103 may perform remote function control on the display device 101 through the target board 1011 in the management device 102, and obtain a function control result for the display device 101, so as to implement remote monitoring and control on the display device 101. The function control may include at least one of: screenshot, recording a screen, restarting a device, installing an application, and the like.
In this embodiment, the terminal device 103 may send a call request to the management device 102, the management device 102 may receive the call request, and the management device 102 may control the display device 101 to execute a corresponding function according to the call request by using a shell application program, so as to obtain a function control result; the display apparatus 101 feeds back the function control result to the terminal apparatus 103 through the management apparatus 102.
In some embodiments, the terminal device 103 may send a function file package to the management device 102, and the management device 102 receives the function file package sent by the terminal device 103 through an update package management program, and updates an initial function file package in a shell application running on the target board 1011 according to the function file package, so that the management device 102 has a control function corresponding to the function file package, where the control function is a function of controlling the display device 101.
The following explains a device control method provided in the embodiment of the present application, with the management device 102 as an execution subject.
Fig. 2 is a schematic flowchart of a device control method according to an embodiment of the present invention, and as shown in fig. 2, the method may include:
s201, receiving the function file package sent by the terminal equipment through the update package management program.
The management equipment is provided with a target board card, and a shell application program and an update package management program run in the target board card.
It should be noted that the shell application running on the target board is a shell application signed by a board manufacturer, and is not an empty shell application. When the shell application program is the shell application program signed by the board card manufacturer, the shell application program can call the system permission of the display device.
In this embodiment of the present application, the management device may serve as a controller of the display device, and the system permission of the display device may also be regarded as the system permission of the management device, that is, the shell application may invoke the system permission of the display device, or may serve as the shell application may invoke the system permission of the display device.
In some embodiments, the terminal device transmits the function file package to the management device, and the management device may receive the function file package by updating the package management program. Wherein, the shell application program may be called shell (shell) for short.
S202, updating an initial function file package in a shell application program running on the target board card according to the function file package, so that the management equipment has a control function corresponding to the function file package.
Wherein the control function is a function of controlling the display device.
Optionally, before S201, the terminal device may also send an initial function package to the management device, and the management device may receive the initial function package file and set the initial function package file in the shell application.
In the embodiment of the application, the management device implements a control function on the display device according to the target board card and the shell application running on the target board card, and performs function update on the target board card, which may also be understood as function update on the shell application.
It should be noted that the terminal device may remotely control the functions of the display device through the management device, and the controllable functions include: and controlling functions corresponding to the function file package.
In summary, an apparatus control method provided in the embodiment of the present invention is applied to a management apparatus for installing a target board, where a shell application and an update package management program run on the target board, and the method includes: receiving a function file packet sent by terminal equipment through an update packet management program; and updating the initial function file packet in the shell application program running on the target board card according to the function file packet, so that the management equipment has a control function corresponding to the function file packet, and the control function is used for controlling the display equipment. The management equipment provided with the target board receives the function file packet sent by the terminal equipment through the update packet management program and the shell application program, can automatically update the control function according to the function file packet, does not need a board manufacturer to sign again when the function is updated, enables the update of the control function to be simpler and more convenient, and improves the update efficiency of the control function.
Optionally, fig. 3 is a flowchart illustrating a device control method according to an embodiment of the present invention, and as shown in fig. 3, the updating the initial function file package in the shell application running on the target board according to the function file package in S201 may include:
s301, comparing the version number in the functional file package with the version number in the initial functional file package to obtain a comparison result.
And S302, if the comparison result meets a preset condition, updating the function of the initial function file package in the shell application program according to the function file package.
In some embodiments, the shell application on the management device may compare the version number in the newly received functional package in the update package management program with the version number in the initial functional package in the current shell application system folder; and judging whether the version number in the newly received functional file packet in the update packet management program is the same as the version number in the initial functional file packet. And if the version number in the newly received functional file package is higher than the version number of the initial functional file package, replacing the initial functional file package under the system folder of the shell application program with the newly received functional file package in the update package management program, and dynamically unloading the initial functional file package.
Optionally, fig. 4 is a flowchart illustrating a device control method according to an embodiment of the present invention, and as shown in fig. 4, before the updating, in the S202, the initial function file package in the shell application running on the target board according to the function file package, the method may further include:
s401, signature verification is carried out on the functional file package by adopting a shell application program.
The signature verification method of the functional file package set in the shell application program can be adopted to perform signature verification on the functional file package.
The step of updating the initial function file package in the shell application program running on the target board card according to the function file package in S202 may include:
s402, if the signature passes the verification, updating the initial function file package in the shell application program according to the function file package.
It should be noted that, if the signature verification passes, it is determined that the function file package is reliable, and the initial function file package in the shell application is updated according to the function file package, so that the function update of the target board card in the management device is realized. When the function is updated, the function file package can be set in the shell application program, and the corresponding control function of the display device can be realized based on the shell application program in the target board card of the management device.
Optionally, fig. 5 is a flowchart illustrating a device control method according to an embodiment of the present invention, and as shown in fig. 5, the process of performing signature verification on the function file package by using the shell application in S401 may include:
s501, acquiring an execution file of the function file package by adopting a shell application program, and generating abstract information of the execution file.
In the embodiment of the application, the terminal device can acquire the execution file corresponding to the control function and generate the abstract of the execution file; encrypting the summary by using a private key to generate an encrypted summary file; and packaging the execution file and the encrypted abstract file into a functional file package, and sending the functional file package to the management equipment, wherein the management equipment can receive the functional file package.
In some embodiments, the terminal device may upload the function file package to update package management software of the management device, the update package management software may transmit the function file package to the shell application, and the management device may acquire an execution file of the function file package using the shell application and generate summary information of the execution file.
Optionally, the execution file may include a plurality of preset requests, caller identity information (preset with a terminal device signature), API information for calling the board device system, and information for returning a function control result.
S502, decrypting the summary file of the functional file package by adopting the shell application program to obtain decrypted summary information.
The shell application may include a public signature key of the terminal device.
In this embodiment of the application, the management device may use a shell application to decrypt the digest file of the functional file package to obtain decrypted digest information.
S503, comparing the summary information of the execution file with the decrypted summary information.
It should be noted that the management device compares whether the digest information of the execution file is the same as the decrypted digest information.
And S504, if the summary information of the executed file is the same as the decrypted summary information, determining that the signature of the functional file package is verified to be passed.
If the digest information of the execution file is the same as the decrypted digest information, the signature of the functional file package is determined to be verified, the functional file package is reliable, and the function can be updated based on the functional file package.
Optionally, fig. 6 is a schematic flowchart of a device control method according to an embodiment of the present invention, and as shown in fig. 6, the method may include:
s601, receiving a call request and a use parameter sent by the terminal device through the target application by adopting a shell application program.
In some embodiments, the terminal device may send the call request and the use parameter to the management device, and the management device receives the call request and the use parameter by using the shell application in a cross-process call mode.
In addition, the target application may use the system rights of the display device. The functions that can be requested by the target application and the functions corresponding to the function file package can be the same.
And S602, calling the system authority of the display equipment by adopting a shell application program through an application program interface of a preset function according to the calling request and the use parameters so as to control the display equipment to execute the preset function.
In the embodiment of the application, the management device uses a shell application program, and calls the system permission of the display device through an application program interface of a preset function, wherein the preset function is a control function corresponding to the call request, according to the call request and the use parameter, and controls the display device to execute the preset function.
For example, the preset function may include at least one of: screenshot, recording a screen, restarting a device, installing an application, and the like.
And S603, acquiring an execution result of the preset function from the display equipment by adopting the shell application program, and returning the execution result of the preset function to the terminal equipment.
In some embodiments, the management device may acquire an execution result of the preset function from the display device by using a shell application; and sending the execution result of the preset function to the terminal device, and the terminal device can receive the execution result of the preset function.
For example, the execution result of the preset function may include at least one of the following: screenshot results, screen recording results, device restart results, application installation results, and the like.
Optionally, fig. 7 is a schematic flowchart of a device control method according to an embodiment of the present invention, and as shown in fig. 7, before a shell application is adopted in S602, and the system permission of the display device is called through an application program interface of a preset function according to a usage parameter, so as to control the display device to execute the preset function, the method further includes:
and S701, adopting a shell application program to perform signature verification on the calling request.
In the above S602, the invoking of the system permission of the display device through the application program interface of the preset function according to the invoking request and the usage parameter by using the shell application program may include:
and S702, if the signature passes the verification, calling the system authority of the display equipment through an application program interface with a preset function by adopting a shell application program according to the calling request and the use parameters so as to control the display equipment to execute the preset function.
It should be noted that the management device may perform signature verification on the call request by using an asymmetric verification method.
Optionally, the process of receiving the function file package sent by the terminal device through the update package management program in S101 may include: establishing communication connection between an update package management program and a shell application program in a cross-process calling mode; and acquiring the function file package from the update package management program through the shell application program.
It should be noted that the terminal device may upload the function file package to the update package management software of the management device, and the update package management software of the management device may send the function file package to the shell application of the management device in a cross-process call manner; the shell application of the management device may receive the feature file package.
In summary, an apparatus control method provided in the embodiment of the present invention is applied to a management apparatus for installing a target board, where a shell application and an update package management program run on the target board, and the method includes: receiving a function file packet sent by terminal equipment through an update packet management program; and updating the initial function file packet in the shell application program running on the target board card according to the function file packet, so that the management equipment has a control function corresponding to the function file packet, and the control function is used for controlling the display equipment. The management equipment provided with the target board receives the function file packet sent by the terminal equipment through the update packet management program and the shell application program, can automatically update the control function according to the function file packet, does not need a board manufacturer to sign again when the function is updated, enables the update of the control function to be simpler and more convenient, and improves the update efficiency of the control function.
Moreover, the shell application program of the management device calls the system authority of the display device, so that the control safety of the display device can be improved, and the system risk is avoided.
For specific implementation processes and technical effects, reference is made to relevant contents of the above method, and details of the method will not be described below.
Fig. 8 is a schematic structural diagram of an apparatus control device according to an embodiment of the present invention, and as shown in fig. 8, the apparatus is applied to a management apparatus for installing a target board, where a shell application and an update package management program run on the target board, and the apparatus includes:
a receiving module 801, configured to receive a function file package sent by a terminal device through an update package management program;
an updating module 802, configured to update an initial function file package in the shell application running on the target board card according to the function file package, so that the management device has a control function corresponding to the function file package, where the control function is a function of controlling a display device.
Optionally, the updating module 802 is specifically configured to compare the version number in the functional file package with the version number in the initial functional file package to obtain a comparison result; and if the comparison result meets a preset condition, updating the function of the initial function file packet in the shell application program according to the function file packet.
Optionally, the apparatus further comprises:
the first verification module is used for verifying the signature of the functional file package by adopting the shell application program;
the updating module 802 is specifically configured to update the initial function file package in the shell application according to the function file package if the signature check passes.
Optionally, the first verification module is specifically configured to acquire, by using the shell application program, an execution file of the functional file package, and generate summary information of the execution file; decrypting the abstract file of the functional file package by adopting the shell application program to obtain decrypted abstract information; comparing the abstract information of the execution file with the decrypted abstract information; and if the abstract information of the execution file is the same as the decrypted abstract information, determining that the signature of the functional file package passes the verification.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving a calling request and a use parameter sent by the terminal equipment through a target application by adopting the shell application program; the call request includes: presetting an application program interface of a function;
the calling module is used for calling the system authority of the display equipment through an application program interface of the preset function by adopting the shell application program according to the calling request and the use parameters so as to control the display equipment to execute the preset function;
and the return module is used for acquiring the execution result of the preset function from the display equipment by adopting the shell application program and returning the execution result to the terminal equipment.
Optionally, the apparatus further comprises:
the second check module is used for adopting the shell application program to carry out signature check on the calling request;
the calling module is specifically configured to call, by using the shell application program and according to the calling request and the use parameter, the system permission of the display device through the application program interface of the preset function to control the display device to execute the preset function if the signature verification passes.
Optionally, the apparatus further comprises:
the establishing module is used for establishing communication connection between the update package management program and the shell application program in a cross-process calling mode;
and the acquisition module is used for acquiring the function file package from the update package management program through the shell application program.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 9 is a schematic structural diagram of a management device according to an embodiment of the present invention, where a target board is installed on the management device, and a shell application is run on the target board.
As shown in fig. 9, the target board further includes: a processor 901, a memory 902.
The memory 902 is used for storing programs, and the processor 901 calls the programs stored in the memory 902 to execute the above method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of 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, devices or units, and may be in an electrical, mechanical 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 network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
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, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other media capable of storing program codes.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An apparatus control method is applied to a management apparatus for installing a target board, where a shell application and an update package management program are run on the target board, and the method includes:
receiving a function file packet sent by terminal equipment through an update packet management program;
and updating an initial function file package in the shell application program running on the target board card according to the function file package, so that the management equipment has a control function corresponding to the function file package, wherein the control function is a function of controlling display equipment.
2. The method of claim 1, wherein the updating the initial function file package in the shell application running on the target board according to the function file package comprises:
comparing the version number in the functional file package with the version number in the initial functional file package to obtain a comparison result;
and if the comparison result meets a preset condition, updating the function of the initial function file packet in the shell application program according to the function file packet.
3. The method of claim 1, wherein before updating the initial function file package in the shell application running on the target board according to the function file package, the method further comprises:
adopting the shell application program to perform signature verification on the functional file package;
updating the initial function file package in the shell application program running on the target board card according to the function file package, including:
and if the signature passes the verification, updating the initial function file package in the shell application program according to the function file package.
4. The method of claim 3, wherein said signature checking the feature bundle using the shell application comprises:
acquiring an execution file of the function file package by adopting the shell application program, and generating abstract information of the execution file;
decrypting the abstract file of the functional file package by adopting the shell application program to obtain decrypted abstract information;
comparing the abstract information of the execution file with the decrypted abstract information;
and if the abstract information of the execution file is the same as the decrypted abstract information, determining that the signature of the functional file package passes the verification.
5. The method according to any one of claims 1-4, further comprising:
receiving a calling request and a use parameter sent by the terminal equipment through a target application by adopting the shell application program; the call request includes: presetting an application program interface of a function;
calling the system permission of the display equipment through an application program interface of the preset function by adopting the shell application program according to the calling request and the use parameters so as to control the display equipment to execute the preset function;
and acquiring an execution result of the preset function from the display equipment by adopting the shell application program, and returning the execution result to the terminal equipment.
6. The method according to claim 5, wherein before the invoking of the shell application by the application program interface of the preset function according to the invocation request and the usage parameter, the method further comprises:
adopting the shell application program to perform signature verification on the calling request;
the using the shell application program, according to the calling request and the use parameter, calling the system permission of the display device through an application program interface of the preset function, so as to control the display device to execute the preset function, including:
if the signature passes the verification, the shell application program is adopted, and the system authority of the display equipment is called through an application program interface of the preset function according to the calling request and the use parameters so as to control the display equipment to execute the preset function.
7. The method according to claim 1, wherein after receiving the function file package sent by the terminal device through the update package management program, the method further comprises:
establishing a communication connection between the update package management program and the shell application program in a cross-process calling mode;
and acquiring the function file package from the update package management program through the shell application program.
8. An apparatus control device is applied to a management apparatus for installing a target board card, in which a shell application program and an update package management program are run in the target board card, and includes:
the receiving module is used for receiving the functional file packet sent by the terminal equipment through the updating packet management program;
and the function updating module is used for updating an initial function file package in the shell application program running on the target board card according to the function file package, so that the management equipment has a control function corresponding to the function file package, and the control function is a function of controlling display equipment.
9. A management device, comprising: a memory storing a computer program executable by the processor, and a processor implementing the apparatus control method according to any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when read and executed, implements the device control method of any one of the preceding claims 1 to 7.
CN202210653648.3A 2022-06-09 2022-06-09 Device control method, device, management device and storage medium Pending CN114968305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210653648.3A CN114968305A (en) 2022-06-09 2022-06-09 Device control method, device, management device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210653648.3A CN114968305A (en) 2022-06-09 2022-06-09 Device control method, device, management device and storage medium

Publications (1)

Publication Number Publication Date
CN114968305A true CN114968305A (en) 2022-08-30

Family

ID=82961638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210653648.3A Pending CN114968305A (en) 2022-06-09 2022-06-09 Device control method, device, management device and storage medium

Country Status (1)

Country Link
CN (1) CN114968305A (en)

Similar Documents

Publication Publication Date Title
EP3509270B1 (en) Data backup method and device, storage medium and electronic apparatus
US10225426B2 (en) Image forming apparatus having firmware update function, method of controlling the same, program for executing the method, and storage medium
CN101258505B (en) Secure software updates
US7543150B2 (en) Method and system for setting up hosting environments in safety
US9131169B2 (en) Apparatus, license determining method, recording medium
CN109828772B (en) Thermal update method, operating system, terminal device, and storage medium
US8984296B1 (en) Device driver self authentication method and system
US9344406B2 (en) Information processing device, information processing method, and computer program product
US20140026228A1 (en) Information processing apparatus and control method
US10360396B2 (en) Token-based control of software installation and operation
CN111070662B (en) 3D printing method, device and storage medium
CN113703813A (en) Kernel upgrading method, device, equipment and computer readable storage medium
US10771462B2 (en) User terminal using cloud service, integrated security management server for user terminal, and integrated security management method for user terminal
JP2011150499A (en) Thin client system, thin client terminal, and thin client program
CN109766084B (en) Customized development method and device for payment application, computer equipment and storage medium
CN111191216A (en) OFD signature client with JAVA interface and method and system for signature and signature verification thereof
JP6429455B2 (en) Image forming apparatus, control method therefor, and program
CN114968305A (en) Device control method, device, management device and storage medium
US20210234983A1 (en) Image forming system, image forming apparatus, and storing medium storing application control program
CN108469956B (en) Image forming apparatus, management server, and information processing method
CN114036491A (en) Software management method, system and storage medium
CN107770210A (en) Licence plate side's control method, set top box and family's open platform
CN111427607A (en) Configuration file repair method, device and computer-readable storage medium
CN111597570B (en) Application program reinforcing method, device, equipment and storage medium
CN109683972B (en) Information control 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