CN111935307A - Remote control method and device for hardware equipment, storage medium and transparent computing system - Google Patents

Remote control method and device for hardware equipment, storage medium and transparent computing system Download PDF

Info

Publication number
CN111935307A
CN111935307A CN202010973242.4A CN202010973242A CN111935307A CN 111935307 A CN111935307 A CN 111935307A CN 202010973242 A CN202010973242 A CN 202010973242A CN 111935307 A CN111935307 A CN 111935307A
Authority
CN
China
Prior art keywords
server
instruction
hardware
client
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010973242.4A
Other languages
Chinese (zh)
Other versions
CN111935307B (en
Inventor
李政军
陈娅芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan New Cloudnet Technology Co ltd
Original Assignee
Hunan New Cloudnet 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 Hunan New Cloudnet Technology Co ltd filed Critical Hunan New Cloudnet Technology Co ltd
Priority to CN202010973242.4A priority Critical patent/CN111935307B/en
Publication of CN111935307A publication Critical patent/CN111935307A/en
Application granted granted Critical
Publication of CN111935307B publication Critical patent/CN111935307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/02Network-specific arrangements or communication protocols supporting networked applications involving the use of web-based technology, e.g. hyper text transfer protocol [HTTP]
    • H04L67/025Network-specific arrangements or communication protocols supporting networked applications involving the use of web-based technology, e.g. hyper text transfer protocol [HTTP] for remote control or remote monitoring of the application

Abstract

The application discloses a remote control method and device of hardware equipment, a computer readable storage medium and a transparent computing system. The method comprises the step of showing a web operation interface to an authorized user after the current login user is verified to be the authorized user. Authorizing a user to issue a hardware end and a remote operation type which are required to be remotely controlled in a web operation interface in a hardware device operation instruction mode, and calling a corresponding operation function implementation module to execute corresponding remote operation on target hardware equipment corresponding to the instruction according to a received hardware device operation instruction identifier by a system; the operation function implementation module is generated by packaging and converting a group of operation commands for implementing preset operation functions. The application realizes remote control of the hardware end, and an operator does not need to be familiar with operation codes of operations to be executed.

Description

Remote control method and device for hardware equipment, storage medium and transparent computing system
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for remotely controlling a hardware device, a computer-readable storage medium, and a transparent computing system.
Background
With the rapid development of internet technology, users have higher and higher requirements for convenient operation of hardware devices, such as intelligent terminal devices and other clients or servers. In the related art, a client or a server is usually controlled through local operation, such as power on and power off of the server, and setting of an IP address of the client, which requires that a user must be located at a location of the devices when the user needs to operate the client or the server, and has a problem of limitation of a control distance, which is inconvenient for the user to operate in real time and on the spot, and the user experience is poor. In addition, the control of the client or the server is usually realized by inputting a specific code instruction, so that an operator needs to know the corresponding operation code, and the requirement on the professional level of a specific operation data controller is high.
In view of this, how to overcome the disadvantages that the client or the server cannot operate remotely and needs to be controlled by artificial professional knowledge is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application provides a remote control method and device of hardware equipment, a computer readable storage medium and a transparent computing system, which realize remote control of the hardware equipment without the need of knowing operation codes of corresponding operations by an operator.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a remote control method for a hardware device, including:
when the current login user is detected to be an authorized user, displaying a web operation interface to the authorized user;
after receiving the operation instruction issued by the authorized user through the web operation interface, calling a corresponding operation function implementation module according to the operation instruction identification of the hardware equipment to execute corresponding operation on the target hardware equipment;
the operation function implementation module is generated by packaging and converting a group of operation commands for implementing preset operation functions.
Optionally, the hardware device operation instruction is a server operation instruction, and the invoking a corresponding operation function implementation module according to the hardware device operation instruction identifier to perform a corresponding operation on the target hardware device includes:
according to the server operation instruction identification, an operation function implementation module matched with the current operation type is called by using a php built-in function to issue the server operation instruction to a target server, so that the target server executes corresponding operation according to the server operation instruction;
the server operation instruction comprises web identification information, target server identification information and an operation type.
Optionally, after the target server executes the corresponding operation according to the server operation instruction, the method further includes:
judging whether the operation type in the server operation instruction is a preset operation type or not;
if the operation type in the server operation instruction is a preset operation type, simultaneously issuing an instruction for updating the configuration information of the function associated with the preset operation type in the target server according to the server operation instruction, and/or issuing an instruction for executing preset operation to a corresponding client through the target server;
after the target server executes the server operation instruction, the preset operation type is an operation type which cannot be normally used by a function, corresponding to the preset operation type, of the target server, and the function of which the implementation function has an association relation; or the preset operation type is an operation type which can not be normally used by the relevant functions of the client side belonging to the target server after the target server executes the server operation instruction; or the preset operation type is an operation type that after the target server executes the server operation instruction, the function in the target server, which corresponds to the preset operation type and has an association relation with the implementation function, cannot be normally used, and the related function of the client side belonging to the target server cannot be normally used at the same time.
Optionally, the hardware device operation instruction is a client operation instruction, and the invoking a corresponding operation function implementation module according to the hardware device operation instruction identifier to perform a corresponding operation on the target hardware device includes:
determining a server to which a target client belongs according to the client operation instruction; the client operation instruction comprises web identification information, the target client identification information and an operation type;
and calling an operation function implementation module matched with the current operation type by using a php built-in function according to the client operation instruction identification to issue the client operation instruction to the server, and pushing the client operation instruction to the target client through the server so that the target client executes corresponding operation according to the client operation instruction.
Optionally, the pushing, by the server, the client operation instruction to the target client includes:
and simultaneously and respectively pushing the client operating instructions to a plurality of target clients through the server so as to realize batch control of the clients.
Optionally, the operation function implementation module performs encryption processing in advance by using an encryption algorithm.
Another aspect of an embodiment of the present invention provides a remote control apparatus for a hardware device, including:
the operation agent component comprises a plurality of operation function realization modules, and each function operation realization module is generated by packaging and converting a group of operation commands for realizing preset operation functions;
the Web service component is used for showing a Web operation interface to an authorized user when the current login user is detected to be the authorized user; and after receiving the operation instruction issued by the authorized user through the web operation interface, calling a corresponding operation function implementation module according to the operation instruction identification of the hardware equipment to execute corresponding operation on the target hardware equipment.
The embodiment of the present invention further provides a remote control apparatus for a hardware device, which includes a processor, where the processor is configured to implement the steps of the remote control method for a hardware device according to any one of the foregoing embodiments when executing a computer program stored in a memory.
An embodiment of the present invention further provides a computer-readable storage medium, where a remote control program of a hardware device is stored on the computer-readable storage medium, and when executed by a processor, the remote control program of the hardware device implements the steps of the remote control method of the hardware device according to any of the foregoing items.
The embodiment of the invention finally provides a transparent computing system, which comprises a transparent server, a transparent network, a transparent client and a remote control device of the hardware equipment;
the remote control device of the hardware equipment is deployed on a central server of the transparent server so as to realize that a user remotely controls the transparent server and/or the transparent client through the transparent network through any terminal equipment with a browser in the same local area network or a configuration support external network;
the terminal equipment is any one of the transparent clients or a client in the non-transparent computing system.
The technical scheme provided by the application has the advantages that a group of operation commands for realizing the hardware end operation commands are packaged into an operation function realization module, the operation function realization module is called to operate the corresponding hardware end, an operator does not need to input operation command codes, namely the group of linux commands, the operator does not need to have corresponding professional knowledge, and the operator does not need to rely on the professional knowledge to carry out operation control on the hardware end. An operator with authorization authority can issue a hardware end and a remote operation type which are required to be remotely controlled on any piece of equipment supporting a web browser in a hardware equipment operation instruction mode on a web operation interface, after a system receives the hardware equipment operation instruction, an operation function implementation module corresponding to the operation type which the operator is required to execute is called based on the instruction to remotely operate a client, the operator does not need to be located at the same place as the hardware end and is not limited by distance, the remote operation control of the hardware end is realized, the hardware end is operated more conveniently, quickly and efficiently, and the use experience of a user is improved.
In addition, the embodiment of the invention also provides a corresponding implementation device, a computer readable storage medium and a transparent computing system aiming at the remote control method of the hardware equipment, so that the method has higher practicability, and the device, the computer readable storage medium and the transparent computing system have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a remote control method for a hardware device according to a first embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a remote control method for a hardware device according to a second embodiment of the present application;
fig. 3 is a schematic flowchart of a remote control method for a hardware device in a third embodiment provided in the present application;
fig. 4 is a schematic flowchart of a remote control method for a hardware device in a fourth embodiment provided in the present application;
fig. 5 is a schematic flowchart of a remote control method for a hardware device in a fifth embodiment provided in the present application;
FIG. 6 is a block diagram of an embodiment of a remote control device of a hardware device according to the present disclosure;
FIG. 7 is a block diagram of another embodiment of a remote control device for a hardware device according to the present disclosure;
fig. 8 is a structural diagram of a remote control apparatus of a hardware device according to an embodiment of the present disclosure.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a remote control method for a hardware device according to an embodiment of the present invention, where the embodiment of the present invention may include the following:
s101: and monitoring whether a user logs in the web operation interface, if so, executing S102, and if not, continuing monitoring.
The web operation interface of the application is an interactive window between a user, namely an operator, and a system, and at least comprises a user information setting module and an operation command type selection or input module in the web operation interface, wherein the user, namely the operator, wants to remotely control a hardware end selection or input module, two functional modules, namely the operation command type selection or input module and the hardware end selection or input module, are displayed on the web operation interface in a pull-down page option form and/or an input frame form, the operator can determine the operation command type and the hardware end through the pull-down option selection or a direct input form, the operation command type selection or input module and the hardware end selection or input module jointly generate a hardware equipment operation instruction, namely the hardware equipment operation instruction comprises an operation type to be executed and hardware end information to be controlled, and can include but not be limited to controlling the shutdown, the remote control, and the remote control of the server, Restart, network configuration, DHCP service start-stop, deployment service start-stop, shutdown, restart, IP setting of the client, timing tasks and the like. The user information setting module is used for providing functions of user login password modification and user information modification, a user can log in a web operation interface in a fixed user name-password mode and also can log in the web operation interface in a dynamic password mode, and the dynamic password mode needs to be bound with intelligent terminal equipment such as a mobile phone in advance and is used for receiving a dynamic password or a dynamic password.
S102: judging whether the login user is an authorized user, if so, executing S103; if not, the process returns to the step S101.
It is understood that if a user logs in the web operation interface, a login password is output, and only after the login password, such as a fixed password or a dynamic password, is verified to be correct, the login user or the operator is an authorized user.
S103: and displaying the web operation interface to an authorized user.
After the login user is verified to be the authorized user in S102, a web operation interface is displayed to the user, and if the login password of the login user is verified to be incorrect, an option of retrieving the password can be provided for the user, so that the user can still log in the web operation page after forgetting the password.
S104: and after receiving the operation instruction issued by the authorized user through the web operation interface, calling a corresponding operation function implementation module according to the operation instruction identification of the hardware equipment to execute corresponding operation on the target hardware equipment.
It can be understood that the hardware device operation instruction carries the operation type and the identification information of the target hardware device information, after receiving the instruction, the instruction is analyzed to obtain the operation type, then the operation function implementation module corresponding to the operation type is matched, and the operation function implementation module is used for executing corresponding operation on the target hardware device. In this step, the operation function implementation module is generated by encapsulating and converting a group of operation commands for implementing the preset operation function, where the operation commands may be linux commands, or of course, other types of operation commands, and the command line number in the operation commands may be determined based on the actual operation function type. For example, a shutdown linux command is a shutdown-h not, and an operation function implementation module corresponding to the shutdown function only needs to package the shutdown-h not, if an operation function of configuring an IP through a configuration file is to be implemented, since the IP needs to be restarted after configuration, the two command lines of the configuration IP and the automatic restart need to be packaged into one operation function implementation module, for example, a duvim/etc/sysconfig/network-scripts/ifcg-eth 0 is configured through the configuration file, a duvim/etc/sysconfig/network-scripts/ifcg-eth 10 is automatically restarted after 10 minutes, and a duvim/etc/sysconfig/network-scripts/cfifg-eth 0 and a shutdown-r 10 need to be packaged according to an execution sequence by the operation function implementation module for implementing the configuration IP. And the calling of the operation function implementation module promotes the authority of the web service operation account so as to have the authority of executing the unauthorized directory or the designated system software. The method and the system give the account number without the management authority to the administrator through authority promotion, and execute the corresponding operation instruction. For example, if a user wants to perform remote control of automatic restart after 10 minutes on a client with a label 10, the user selects the client with a hardware end of the label 10 on a web operation interface, the operation type is automatic restart operation, a hardware device operation instruction issued by the web operation interface carries the client with the label 10 and identification information of the automatic restart operation, and a system calls a function implementation module for implementing the automatic restart operation to automatically restart the client with the label 10 after 10 minutes.
It should be emphasized here that the web operation interface may be exposed on any device supporting a browser function, and the operating system of the hardware end to be controlled needs to be consistent with the type of the operation command encapsulated in the operation function implementation module, and if the operation function implementation module is generated by encapsulating and converting a set of linux commands implementing the preset operation function, the operating system of the hardware end is a linux system.
In the technical scheme provided by the embodiment of the invention, a group of operation commands for realizing a hardware end operation command is packaged into an operation function realization module, and the operation function realization module is called to operate the corresponding hardware end without inputting operation command codes by an operator, namely the group of linux commands, so that the operator is not required to have corresponding professional knowledge and the operator is not required to rely on the professional knowledge to carry out operation control on the hardware end. An operator with authorization authority can issue a hardware end and a remote operation type which are required to be remotely controlled on any piece of equipment supporting a web browser in a hardware equipment operation instruction mode on a web operation interface, after a system receives the hardware equipment operation instruction, an operation function implementation module corresponding to the operation type which the operator is required to execute is called based on the instruction to remotely operate a client, the operator does not need to be located at the same place as the hardware end and is not limited by distance, the remote operation control of the hardware end is realized, the hardware end is operated more conveniently, quickly and efficiently, and the use experience of a user is improved.
The hardware end of the present application may be a server end or a client end, and the above embodiments are collectively referred to as a hardware end, so that a person skilled in the art can more clearly understand how to remotely control the server and the client end, the present application explains the technical solutions of the present application by taking the server and the client end as executed objects respectively as examples.
As an optional implementation manner, the hardware device operation instruction is a server operation instruction, that is, the server is remotely controlled by the web end, such as shutdown, restart, network configuration, DHCP service start-stop, and the like, please refer to fig. 2, where a process of invoking a corresponding operation function implementation module according to the hardware device operation instruction identifier in S104 to perform a corresponding operation on the target hardware device may include:
s421: and calling an operation function implementation module matched with the current operation type by using the php built-in function according to the server operation instruction identifier to issue a server operation instruction to the target server so that the target server executes corresponding operation according to the server operation instruction.
The server operation instruction comprises web identification information, target server identification information and an operation type. The web identification information is used for uniquely identifying a web operation interface, the target server identification information is used for identifying the position of a server operated remotely, the identification information can be, for example, a unique number or an IP address of the server in a local area network, the operation type is how to control the target server, and for some operations of which the operation type is parameter configuration, specific information of parameters to be configured needs to be carried, for example, IP configuration information needs to be carried.
In this embodiment, a php built-in function needs to be installed in advance, an operation function implementation module is called by the php built-in function through a parameter form in an http protocol or webstock transmission protocol instruction, the php built-in function may be an existing php file in any form, and a user requests the server for the php file through a browser, for example, the php file is input in an address bar: http:// localhost/index. php, Apache searches a php file requested by a browser under a user document publishing directory on a server, submits the php file to a php interpreter for interpretation and execution, the php interpreter analyzes the syntax of the php file, the php program is executed to return the execution result of the php program to the browser by using code which can be identified by the browser, for example, the Apache returns the execution result to the browser, the browser interprets and executes the return result, and the execution result is displayed in a browser window. Of course, the operation function implementation module may also be called by other ways, and a person skilled in the art may select the operation function implementation module according to actual requirements, which is not limited in this application.
It is understood that after some operations, such as parameter configuration operations, are performed on the server by the user, the operations may affect the normal operation of other functions of the server, for example, if the DHCP protocol of the server is changed, the corresponding previous ip address is not available, and after the DHCP parameters are changed, the change of the ip-related parameters is performed. A server may respond to 1 or more clients that have a request-response relationship with the server, such as a DHCP server that performs IP address assignment for clients within a local area network. Some parameters of the server affect the normal operation of the client affiliated to the server, after a user performs some operations on the server to change the parameters, some functions of the client cannot be used continuously, if the server is connected by the client according to the previous IP after the IP information of the server is updated, the client cannot be connected successfully, the server cannot be requested successfully, and after the IP is updated by the server, in order to avoid the problem that the client cannot be linked, a restart instruction needs to be pushed to all the clients. Based on this, please refer to fig. 3, which may also include the following:
s420: judging whether the operation type in the server operation instruction is a preset operation type, if not, executing S421; if yes, go to S422.
In this step, after the preset operation type is that the target server executes the server operation instruction, the function which is in the target server and corresponds to the preset operation type and has the incidence relation with the realization function cannot be normally used; or after the preset operation type is that the target server executes the server operation instruction, the related functions of the client belonging to the target server cannot be normally used; or after the preset operation type is that the target server executes the server operation instruction, the function which is in the target server and corresponds to the preset operation type and has the association relation with the realization function cannot be normally used, and the related function of the client side which belongs to the target server cannot be normally used at the same time. As for the situations that the server can not normally use the functions of the server and the client functions can not normally use the server due to certain operations, the technical personnel in the field can preset the operations according to actual situations, and the operations are not listed one by one in the application.
S421: and calling an operation function implementation module matched with the current operation type by using the php built-in function according to the server operation instruction identifier to issue a server operation instruction to the target server so that the target server executes corresponding operation according to the server operation instruction.
S422: and calling an operation function implementation module matched with the current operation type by using the php built-in function according to the server operation instruction identifier to issue a server operation instruction to the target server, and simultaneously issuing an instruction for updating the configuration information of the function associated with the preset operation type in the target server according to the server operation instruction, and/or issuing an instruction for executing the preset operation to the corresponding client through the target server.
For example, when a server update IP configuration instruction containing IP configuration information and web identification information issued by a web operation interface is received, an operation function implementation module for implementing an IP configuration function is called by using a php built-in function according to the instruction to update the IP information of the server, and meanwhile, an instruction for updating DHCP service configuration information and an instruction for updating client IP information need to be issued respectively, so as to avoid the problem that the client cannot be linked due to the update of the server IP information, and the server pushes a restart instruction to all clients.
According to the embodiment, the instruction of the related function is automatically issued, so that the hardware end is further controlled more efficiently and conveniently, the use of a user is facilitated, and the use experience of the user is improved.
As an optional implementation manner, in parallel with the foregoing manner, the hardware device operation instruction is a client operation instruction, that is, the client is remotely controlled by the web end, such as shutdown, restart, IP setting, and timing task, please refer to fig. 4, where a process of invoking a corresponding operation function implementation module according to the hardware device operation instruction identifier in S104 to perform a corresponding operation on the target hardware device may include:
s430: and determining a server to which the target client belongs according to the client operation instruction.
In the application, the hardware device operation instruction issued by the web operation interface cannot be issued directly to the client, the server is required to forward the hardware device operation instruction, and correspondingly, the client operation instruction may include the web identification information, the target client identification information and the operation type. The web identification information is used for uniquely identifying a web operation interface, the target client identification information is used for identifying the position of a remote operation client, the identification information can be, for example, a unique number or an ip address of the client in a local area network, and the operation type is used for indicating how a user wants to control the target client. For some operations with the operation type of parameter configuration, specific information of parameters to be configured needs to be carried, for example, configuring an IP, and IP configuration information needs to be carried.
S431: and calling an operation function implementation module matched with the current operation type by using a php built-in function according to the client operation instruction identification to issue a client operation instruction to the server, and pushing the client operation instruction to a target client through the server so that the target client executes corresponding operation according to the client operation instruction.
The server can push an operation instruction to the target client through the local private protocol communication between the web end and the server. For example, after receiving a client IP configuration instruction issued by the web operation interface, the client IP configuration instruction includes client IP configuration information, web identification information, and client identification information. The client IP configuration information needs to be the same as the IP segment of the server to which it belongs. The client-side subordinate server receives the client-side IP configuration instruction, then pushes the web instruction carrying the IP configuration information to a target client side, and after the server pushes the client-side operation information to the corresponding target client side, the target client side executes corresponding operation according to the operation instruction. Correspondingly, the target client can be manually restarted according to the actual situation to enable the IP of the target client to take effect, and the IP of the target client can take effect automatically when the client is started up.
In some other embodiments of the embodiment of the present invention, in order to control the hardware end more efficiently, please refer to fig. 5, S431 may also be:
s4311: and pushing client operation instructions to a plurality of target clients simultaneously and respectively through the server so as to realize batch control of the clients.
It is understood that a server may manage multiple clients simultaneously, and a user may perform the same operation on multiple clients of the server remotely, so that the server may construct multiple threads for receiving and issuing the multiple client operation instructions to corresponding target clients simultaneously. In addition, there is a scenario that after configuration parameters of the server change, certain functions of all the clients managed by the server cannot be used normally, and then the server can issue instructions for changing the parameters to a plurality of clients at the same time, so that the client control efficiency is improved.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as a logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 1 to fig. 5 are only schematic manners, and do not represent only such an execution order.
As the user demands for data security are higher and higher, particularly in the process of using the network, the user is easily subjected to various viruses, trojans and hackers to steal data, in order to improve system security and avoid unauthorized users from using the operation function implementation module to remotely operate the client or the server in the local area network, as an optional implementation manner, the operation function implementation module of the present application may perform encryption processing in advance by using an encryption algorithm to improve the authority for calling the operation function implementation module and control the authority of the operation system, for example, the operation function implementation module may be encrypted by using MD5, and of course, other encryption algorithms may also be used, which is not limited in this application.
The embodiment of the invention also provides a corresponding device for the remote control method of the hardware equipment, so that the method has higher practicability. Wherein the means can be described separately from the functional module point of view and the hardware point of view. In the following, the remote control apparatus of the hardware device provided in the embodiment of the present invention is introduced, and the remote control apparatus of the hardware device described below and the remote control method of the hardware device described above may be referred to correspondingly.
Based on the angle of the functional module, referring to fig. 6, fig. 6 is a structural diagram of a remote control apparatus of a hardware device according to an embodiment of the present invention, in a specific implementation manner, the apparatus may include:
the operation agent component 601 includes a plurality of operation function implementation modules, and each function operation implementation module is generated by encapsulating and converting a group of operation commands for implementing preset operation functions.
The Web service component 602 is configured to, when it is detected that the current login user is an authorized user, present a Web operation interface to the authorized user; and after receiving the operation instruction issued by the authorized user through the web operation interface, calling a corresponding operation function implementation module according to the operation instruction identification of the hardware equipment to execute corresponding operation on the target hardware equipment.
Optionally, in some implementations of this embodiment, the Web service component 602 may include:
the server operation module is used for calling an operation function implementation module matched with the current operation type by using a php built-in function according to the server operation instruction identifier to issue a server operation instruction to the target server so that the target server executes corresponding operation according to the server operation instruction; the server operation instruction comprises web identification information, target server identification information and an operation type.
In some other implementation manners of the embodiment of the present invention, the server operation module may include, for example:
the judging submodule is used for judging whether the operation type in the server operation instruction is a preset operation type, and the preset operation type is an operation type which can not be normally used by a function corresponding to the preset operation type and having an association relation with an implementation function in the target server after the target server executes the server operation instruction; or after the preset operation type is that the target server executes the server operation instruction, the related functions of the client belonging to the target server cannot be normally used; or after the preset operation type is that the target server executes the server operation instruction, the function which is in the target server and corresponds to the preset operation type and has the correlation relation with the realization function cannot be normally used, and the related function of the client which belongs to the target server cannot be normally used at the same time;
and the operation sub-module is used for issuing an instruction for updating the configuration information of the function associated with the preset operation type in the target server according to the server operation instruction and/or issuing an instruction for executing the preset operation to the corresponding client through the target server if the operation type in the server operation instruction is the preset operation type.
Optionally, in other embodiments of this embodiment, the Web service component 602 may include a client operation module, and the client operation module may include:
the server positioning sub-module is used for determining a server to which the target client belongs according to the client operation instruction; the client operation instruction comprises web identification information, target client identification information and an operation type;
and the instruction issuing sub-module is used for issuing the client operation instruction to the server by using the php built-in function call operation function implementation module matched with the current operation type according to the client operation instruction identification, and pushing the client operation instruction to the target client through the server so that the target client executes corresponding operation according to the client operation instruction.
In some other embodiments of the embodiment of the present invention, the client operation module may include, for example, a batch control sub-module, and the batch control sub-module is configured to simultaneously and respectively push client operation instructions to a plurality of target clients through the server, so as to implement batch control of the clients.
The functions of the functional modules of the remote control apparatus of the hardware device according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
From the above, the embodiment of the present invention realizes remote control of the hardware end and the operator does not need to know the operation code of the operation to be executed.
The above mentioned remote control device of the hardware device is described from the perspective of the functional module, and further, the present application also provides a remote control device of the hardware device, which is described from the perspective of the hardware. Fig. 7 is a block diagram of another remote control apparatus for a hardware device according to an embodiment of the present application. As shown in fig. 7, the apparatus comprises a memory 70 for storing a computer program;
the processor 71 is configured to implement the steps of the remote control method of the hardware device according to any of the above embodiments when executing the computer program.
The processor 71 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like, among others. The processor 71 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 71 may also include a main processor and a coprocessor, the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 71 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 71 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The memory 70 may include one or more computer-readable storage media, which may be non-transitory. Memory 70 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 70 is at least used for storing a computer program 701, wherein after being loaded and executed by the processor 71, the computer program can implement the relevant steps of the remote control method of the hardware device disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 70 may also include an operating system 702, data 703, and the like, and the storage manner may be a transient storage or a permanent storage. Operating system 702 may include Windows, Unix, Linux, etc. The data 703 may include, but is not limited to, data corresponding to test results, and the like.
In some embodiments, the remote control device of the hardware apparatus may further include a display 72, an input/output interface 73, a communication interface 74, a power supply 75, and a communication bus 76.
Those skilled in the art will appreciate that the configuration shown in FIG. 7 does not constitute a limitation of the remote control of a hardware device and may include more or fewer components than those shown, such as sensor 77.
The functions of the functional modules of the remote control apparatus of the hardware device according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
From the above, the embodiment of the present invention realizes remote control of the hardware end and the operator does not need to know the operation code of the operation to be executed.
It is to be understood that, if the remote control method of the hardware device in the above-described embodiment is implemented in the form of a software functional unit and sold or used as a separate product, it may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, the embodiment of the present invention further provides a computer-readable storage medium, in which a remote control program of a hardware device is stored, and the steps of the remote control method of the hardware device according to any one of the above embodiments are performed when the remote control program of the hardware device is executed by a processor.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
From the above, the embodiment of the present invention realizes remote control of the hardware end and the operator does not need to know the operation code of the operation to be executed.
An embodiment of the present invention further provides a transparent computing system, which, referring to fig. 8, may include a transparent server 81, a transparent network 82, and a transparent client 83, where a remote control device 810 of a hardware device is deployed in the transparent server 81, and the transparent network 82 is used to connect the transparent server 81 and the transparent client 83.
The transparent computing system is a computing mode in which a user does not need to sense the specific location of a computer operating system, middleware, an application program and a communication network, and the user only needs to select and use corresponding services such as computing, telephone, television, internet surfing, entertainment and the like from various used terminal devices including but not limited to fixed terminal devices, mobile terminal devices and various household terminal devices through the network according to own needs. The transparent server 81 is a computing device with an external memory, and integrates a large number of general personal microcomputers, servers, mainframes, etc., which have strong computing power or are very powerful, and the transparent server stores various software and information resources required by users, and also completes management and coordination of the transparent computing system, such as scheduling, allocation and transmission of various operating system core codes, and management of scheduling, allocation and transmission of various software services to the transparent client. The transparent client 83 integrates the current lightweight devices such as PCs, PDAs, smart phones, digital home appliances, etc., and may be a bare phone without any software installed or a lightweight terminal equipped with a part of a core software platform. Transparent network 82 integrates the current transparent network of various network devices and interconnected devices.
The remote control device 810 of the hardware device of the embodiment can be deployed on the central server of the transparent server 81 to enable a user to remotely control any service in the transparent server 81 and/or any client in the transparent client 83 through the transparent network 82 through the same local area network or any terminal device with a browser in the configuration support extranet. The end device may be any one of the transparent clients 83 or a client in a non-transparent computing system.
The functions of the remote control device 810 of the hardware device according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention sends the operation instruction identification to perform the relevant control on the server through the Web end or pushes the relevant operation batch to perform the relevant control on the client through the server in the transparent computing system, so that the user can remotely control any hardware end in the transparent computing system on the basis of not knowing the operation code of the operation to be executed.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above detailed description is provided for a remote control method and apparatus for hardware devices, a computer-readable storage medium, and a transparent computing system. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (9)

1. A method for remotely controlling a hardware device, comprising:
when the current login user is detected to be an authorized user, displaying a web operation interface to the authorized user;
after receiving the operation instruction issued by the authorized user through the web operation interface, calling a corresponding operation function implementation module according to the operation instruction identification of the hardware equipment to execute corresponding operation on the target hardware equipment;
the operation function implementation module is generated by packaging and converting a group of operation commands for implementing preset operation functions; the hardware equipment operation instruction comprises an operation type to be executed and hardware end information to be controlled.
2. The remote control method for the hardware device according to claim 1, wherein the hardware device operation instruction is a server operation instruction, and the invoking of the corresponding operation function implementation module according to the hardware device operation instruction identifier to perform the corresponding operation on the target hardware device comprises:
according to the server operation instruction identification, an operation function implementation module matched with the current operation type is called by using a php built-in function to issue the server operation instruction to a target server, so that the target server executes corresponding operation according to the server operation instruction;
the server operation instruction comprises web identification information, target server identification information and an operation type.
3. The method for remotely controlling hardware equipment according to claim 2, wherein after the causing the target server to perform the corresponding operation according to the server operation instruction, the method further comprises:
judging whether the operation type in the server operation instruction is a preset operation type or not;
if the operation type in the server operation instruction is a preset operation type, simultaneously issuing an instruction for updating the configuration information of the function associated with the preset operation type in the target server according to the server operation instruction, and/or issuing an instruction for executing preset operation to a corresponding client through the target server;
after the target server executes the server operation instruction, the preset operation type is an operation type which cannot be normally used by a function, corresponding to the preset operation type, of the target server, and the function of which the implementation function has an association relation; or the preset operation type is an operation type which can not be normally used by the relevant functions of the client side belonging to the target server after the target server executes the server operation instruction; or the preset operation type is an operation type that after the target server executes the server operation instruction, the function in the target server, which corresponds to the preset operation type and has an association relation with the implementation function, cannot be normally used, and the related function of the client side belonging to the target server cannot be normally used at the same time.
4. The remote control method for the hardware device according to claim 1, wherein the hardware device operation instruction is a client operation instruction, and the invoking of the corresponding operation function implementation module according to the hardware device operation instruction identifier to perform the corresponding operation on the target hardware device comprises:
determining a server to which a target client belongs according to the client operation instruction; the client operation instruction comprises web identification information, the target client identification information and an operation type;
and calling an operation function implementation module matched with the current operation type by using a php built-in function according to the client operation instruction identification to issue the client operation instruction to the server, and pushing the client operation instruction to the target client through the server so that the target client executes corresponding operation according to the client operation instruction.
5. The method of claim 4, wherein the pushing, by the server, the client operation instruction to the target client comprises:
and simultaneously and respectively pushing the client operating instructions to a plurality of target clients through the server so as to realize batch control of the clients.
6. The remote control method for the hardware device according to any one of claims 1 to 5, wherein the operation function implementation module performs encryption processing using an encryption algorithm in advance.
7. A remote control apparatus for a hardware device, comprising:
the operation agent component comprises a plurality of operation function realization modules, and each function operation realization module is generated by packaging and converting a group of operation commands for realizing preset operation functions;
the Web service component is used for showing a Web operation interface to an authorized user when the current login user is detected to be the authorized user; after receiving the operation instruction issued by the authorized user through the web operation interface, calling a corresponding operation function implementation module according to the operation instruction identification of the hardware equipment to execute corresponding operation on the target hardware equipment; the hardware equipment operation instruction comprises an operation type to be executed and hardware end information to be controlled.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a remote control program of a hardware device, which when executed by a processor implements the steps of the remote control method of the hardware device according to any one of claims 1 to 6.
9. A transparent computing system comprising a transparent server, a transparent network and a transparent client, further comprising a remote control of the hardware device of claim 7;
the remote control device of the hardware equipment is deployed on a central server of the transparent server so as to realize that a user remotely controls the transparent server and/or the transparent client through the transparent network through any terminal equipment with a browser in the same local area network or a configuration support external network;
the terminal equipment is any one of the transparent clients or a client in the non-transparent computing system.
CN202010973242.4A 2020-09-16 2020-09-16 Remote control method and device for hardware equipment, storage medium and transparent computing system Active CN111935307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010973242.4A CN111935307B (en) 2020-09-16 2020-09-16 Remote control method and device for hardware equipment, storage medium and transparent computing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010973242.4A CN111935307B (en) 2020-09-16 2020-09-16 Remote control method and device for hardware equipment, storage medium and transparent computing system

Publications (2)

Publication Number Publication Date
CN111935307A true CN111935307A (en) 2020-11-13
CN111935307B CN111935307B (en) 2021-01-05

Family

ID=73333812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010973242.4A Active CN111935307B (en) 2020-09-16 2020-09-16 Remote control method and device for hardware equipment, storage medium and transparent computing system

Country Status (1)

Country Link
CN (1) CN111935307B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469264A (en) * 2002-05-10 2004-01-21 松下电器产业株式会社 Equipment control system
JP2009159529A (en) * 2007-12-27 2009-07-16 Toshiba Corp Broadcasting program transmitting system, and automatic program time extending method thereof
CN106790419A (en) * 2016-12-01 2017-05-31 江苏物联网研究发展中心 Care bed intelligent management system
CN107870823A (en) * 2016-09-27 2018-04-03 富士施乐株式会社 Electronic installation and image processing apparatus
CN108037675A (en) * 2018-02-01 2018-05-15 苏州创爵智能科技有限公司 A kind of Intelligent household scene control method based on ZigBee Group
CN109254838A (en) * 2018-08-21 2019-01-22 中邮科通信技术股份有限公司 A kind of automation task based on JAVA BeanShell
CN109800156A (en) * 2018-12-20 2019-05-24 交控科技股份有限公司 A kind of subway signal system automation test method based on profile command
CN110673921A (en) * 2019-09-29 2020-01-10 联想(北京)有限公司 Information processing method and device and electronic equipment
CN110958217A (en) * 2019-10-12 2020-04-03 平安科技(深圳)有限公司 Method and device for remotely controlling server, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469264A (en) * 2002-05-10 2004-01-21 松下电器产业株式会社 Equipment control system
JP2009159529A (en) * 2007-12-27 2009-07-16 Toshiba Corp Broadcasting program transmitting system, and automatic program time extending method thereof
CN107870823A (en) * 2016-09-27 2018-04-03 富士施乐株式会社 Electronic installation and image processing apparatus
CN106790419A (en) * 2016-12-01 2017-05-31 江苏物联网研究发展中心 Care bed intelligent management system
CN108037675A (en) * 2018-02-01 2018-05-15 苏州创爵智能科技有限公司 A kind of Intelligent household scene control method based on ZigBee Group
CN109254838A (en) * 2018-08-21 2019-01-22 中邮科通信技术股份有限公司 A kind of automation task based on JAVA BeanShell
CN109800156A (en) * 2018-12-20 2019-05-24 交控科技股份有限公司 A kind of subway signal system automation test method based on profile command
CN110673921A (en) * 2019-09-29 2020-01-10 联想(北京)有限公司 Information processing method and device and electronic equipment
CN110958217A (en) * 2019-10-12 2020-04-03 平安科技(深圳)有限公司 Method and device for remotely controlling server, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111935307B (en) 2021-01-05

Similar Documents

Publication Publication Date Title
US10091055B2 (en) Configuration service for configuring instances
EP3413685B1 (en) Profile download method, and related devices and system
EP2845364A1 (en) Certificate based connection to cloud virtual machine
CN105765533B (en) Method and apparatus for firmware virtualization
US10021111B2 (en) Location based authentication of users to a virtual machine in a computer system
CN109451042A (en) For matching network method without screen smart machine
KR102191347B1 (en) Security configuration of cloud computing nodes
US9858105B1 (en) Service for managing custom virtual machine images
US9648040B1 (en) Authorization check using a web service request
CN106170763A (en) A kind of software check method and apparatus
CN111935307B (en) Remote control method and device for hardware equipment, storage medium and transparent computing system
CN112272190A (en) Data access method and device
CN102148831A (en) Method and system for safely controlling terminal application
CN108375964B (en) Conversational machine management method and device
CN110928554A (en) Deployment method, device, equipment and storage medium
CN109120444B (en) Cloud resource management method, processor and storage medium
CN104301419A (en) Non-local-machine remote download control system and method
US20210075880A1 (en) Delegating network data exchange
CN108053288B (en) Service arrangement issuing method and device
EP3345112A1 (en) Thresholds on scripts executable by unified extensible firmware interface systems
CN108255497B (en) Application deployment method and device
CN112579872B (en) Network resource access intermediary system based on resource plug-in and processing method thereof
US11018930B2 (en) Internet of things gateway onboarding
WO2019235307A1 (en) Management device and management method
CN112883309A (en) Method, device, equipment and medium for accessing application through browser

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant