[go: up one dir, main page]

CN113961288A - Lower computer control method, device, equipment and computer readable storage medium - Google Patents

Lower computer control method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113961288A
CN113961288A CN202111203924.8A CN202111203924A CN113961288A CN 113961288 A CN113961288 A CN 113961288A CN 202111203924 A CN202111203924 A CN 202111203924A CN 113961288 A CN113961288 A CN 113961288A
Authority
CN
China
Prior art keywords
computer
lower computer
request
target
identification information
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
CN202111203924.8A
Other languages
Chinese (zh)
Inventor
宫明
万志宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202111203924.8A priority Critical patent/CN113961288A/en
Publication of CN113961288A publication Critical patent/CN113961288A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开涉及一种下位机控制方法、装置、设备及计算机可读存储介质,由于本公开所述目标类型对应的第二前端页面,可以控制所述目标类型的一个或多个下位机,不同于现有技术中,每增加一种类型的下位机或者每增加一个下位机,都需要将下位机的前端代码和后端服务代码复制到上位机上,本公开只需要把所述目标类型下位机对应的前端页面嵌套在上位机前端页面上,因此,本公开可以提高开发效率,有效避免因上位机上内容过多过杂导致的卡顿等问题。另外,相比于现有技术中上位机调用下位机接口处理请求的这种方法,本公开实施例可以减少上位机的工作量,同时避免了下位机的接口暴露在上位机上,进而对下位机的接口起到一定的保护作用。

Figure 202111203924

The present disclosure relates to a lower-level computer control method, device, device, and computer-readable storage medium. Due to the second front-end page corresponding to the target type described in the present disclosure, one or more lower-level computers of the target type can be controlled, which is different from that of the target type. In the prior art, each time a type of lower computer is added or a lower computer is added, the front-end code and the back-end service code of the lower computer need to be copied to the upper computer, and the present disclosure only needs to correspond to the target type of the lower computer. The front-end page of the host computer is nested on the front-end page of the host computer. Therefore, the present disclosure can improve the development efficiency and effectively avoid problems such as jamming caused by too much content on the host computer. In addition, compared with the prior art method in which the upper computer calls the interface of the lower computer to process the request, the embodiment of the present disclosure can reduce the workload of the upper computer, and at the same time avoid the interface of the lower computer from being exposed on the upper computer, thereby preventing the lower computer from being exposed. The interface plays a certain protective role.

Figure 202111203924

Description

Lower computer control method, device, equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for controlling a lower computer.
Background
Generally, one upper computer centrally manages a plurality of lower computers, and the plurality of lower computers may belong to the same type or different types.
In the prior art, each type of lower computer is added or each lower computer is added, the front-end code and the rear-end service code of the lower computer need to be copied to the upper computer, so that the upper computer can control the newly added lower computer. However, this results in a low development efficiency and a large amount of time.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method, an apparatus, a device, and a computer readable storage medium for controlling a lower computer, so as to improve development efficiency and effectively avoid the problems of jamming and the like caused by too much content on an upper computer.
In a first aspect, an embodiment of the present disclosure provides a lower computer control method, which is applied to a terminal, and the method includes:
responding to a first operation of a user in a first front-end page of an upper computer, and displaying a preset list, wherein the preset list comprises one or more types of identification information respectively corresponding to lower computers connected with the upper computer;
responding to a second operation of a user on identification information of a target type in the one or more types, and displaying a second front-end page corresponding to the target type in the first front-end page, wherein the second front-end page comprises identification information corresponding to one or more lower computers belonging to the target type respectively;
responding to a third operation of a user on identification information of a target lower computer in the one or more lower computers, and sending a first request to the upper computer, wherein the first request comprises the identification information of the target lower computer, and the upper computer is used for forwarding the first request to the target lower computer;
and receiving and displaying a processing result which is forwarded by the upper computer and generated by the target lower computer according to the first request.
The embodiment of the disclosure provides a lower computer control method, which is applied to an upper computer, and the method comprises the following steps:
receiving a first request sent by a terminal, wherein the first request comprises identification information of a target lower computer;
forwarding the first request to the target lower computer;
receiving a processing result generated by the target lower computer according to the first request;
and sending the processing result to the terminal.
In a second aspect, an embodiment of the present disclosure provides a lower-level computer control apparatus included in a terminal, the apparatus including:
the display module is used for responding to a first operation of a user in a first front-end page of the upper computer and displaying a preset list, wherein the preset list comprises one or more types of identification information respectively corresponding to the lower computer connected with the upper computer; responding to the operation of a user on the identification information of a target type in the one or more types, and displaying a second front-end page corresponding to the target type in the first front-end page, wherein the second front-end page comprises the identification information corresponding to one or more lower computers belonging to the target type respectively;
the sending module is used for responding to the operation of a user on the identification information of a target lower computer in the one or more lower computers, sending a first request to the upper computer, wherein the first request comprises the identification information of the target lower computer, and the upper computer is used for forwarding the first request to the target lower computer;
the receiving module is used for receiving a processing result which is transmitted by the upper computer and generated by the target lower computer according to the first request;
and the display module is also used for displaying a processing result which is forwarded by the upper computer and generated by the target lower computer according to the first request.
The disclosed embodiment provides a lower computer control device, including in the host computer, the device includes:
the receiving module is used for receiving a first request sent by a terminal, and the first request comprises identification information of a target lower computer;
the forwarding module is used for forwarding the first request to the target lower computer;
the receiving module is further configured to: receiving a processing result generated by the target lower computer according to the first request;
the forwarding module is further configured to: and sending the processing result to the terminal.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method as applied to the terminal of the first aspect.
In a fourth aspect, an embodiment of the present disclosure provides an upper computer, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method as described in the first aspect as applied to an upper computer.
In a fifth aspect, the disclosed embodiments provide a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method according to the first aspect.
In a sixth aspect, the disclosed embodiments also provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement the method according to the first aspect.
The method, the device, the equipment and the computer readable storage medium for controlling the lower computer provided by the embodiment of the disclosure respond to a first operation of a user in a first front-end page of an upper computer through a terminal, and display a preset list, wherein the preset list comprises one or more types of identification information respectively corresponding to the lower computer connected with the upper computer. In addition, responding to a second operation of the user on the identification information of the target type in the one or more types through the terminal, and displaying a second front-end page corresponding to the target type in the first front-end page, wherein the second front-end page comprises the identification information corresponding to one or more lower computers belonging to the target type respectively. Further, a first request is sent to the upper computer through a terminal in response to a third operation of a user on identification information of a target lower computer in the one or more lower computers, the first request comprises the identification information of the target lower computer, and the upper computer is used for forwarding the first request to the target lower computer. And finally, receiving and displaying a processing result which is forwarded by the upper computer and generated by the target lower computer according to the first request through a terminal. According to the method, the second front-end page corresponding to the target type can control one or more lower computers of the target type, and different from the prior art, the method only needs to nest the front-end page corresponding to the target type lower computer on the front-end page of the upper computer when one type of lower computer is added or one lower computer is added, and therefore the development efficiency can be improved, and the problems of jamming and the like caused by excessive upper content of the upper computer are effectively avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a lower computer control method provided in an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an application scenario provided by the embodiment of the present disclosure;
FIG. 3 provides a schematic view of a user interface for an embodiment of the present disclosure;
FIG. 4 provides a schematic view of a user interface for an embodiment of the present disclosure;
FIG. 5 provides a schematic view of a user interface for an embodiment of the present disclosure;
fig. 6 is a flowchart of a method for controlling a lower computer according to another embodiment of the present disclosure;
FIG. 7 provides a schematic view of a user interface for an embodiment of the present disclosure;
FIG. 8 provides a schematic view of a user interface for an embodiment of the present disclosure;
FIG. 9 provides a schematic view of a user interface for an embodiment of the present disclosure;
fig. 10 is a flowchart of a method for controlling a lower computer according to another embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of a lower computer control device according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a lower computer control device according to an embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 14 is a schematic structural diagram of an upper computer provided in the embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
With the continuous development of computer technology, it is common for an upper computer to manage a lower computer. In a scene where the upper computer centrally manages the lower computers, the same type of lower computers are mostly managed.
Generally, one upper computer centrally manages a plurality of lower computers, and the plurality of lower computers may belong to the same type or different types.
In the prior art, each type of lower computer is added or each lower computer is added, the front-end code and the rear-end service code of the lower computer need to be copied to the upper computer, so that the upper computer can control the newly added lower computer. However, this results in a low development efficiency and a large amount of time. In order to solve the problem, embodiments of the present disclosure provide a lower computer control method, which is described below with reference to specific embodiments.
Fig. 1 is a flowchart of a lower computer control method provided in the embodiment of the present disclosure. The method can be applied to the application scenario shown in fig. 2, where the application scenario includes an electronic device 21, an upper computer 22, and a lower computer 23, and the electronic device 21 may specifically be a terminal, for example, a smart phone, a palm computer, a tablet computer, a wearable device with a display screen, a desktop computer, a notebook computer, an all-in-one machine, an intelligent home device, and the like. It can be understood that the lower computer control method provided by the embodiment of the present disclosure may also be applied in other scenarios.
The following describes the lower computer control method shown in fig. 1 with reference to the application scenario shown in fig. 2, where the method is applied to a terminal, and includes the following specific steps:
s101, responding to a first operation of a user in a first front-end page of an upper computer, and displaying a preset list, wherein the preset list comprises one or more types of identification information respectively corresponding to lower computers connected with the upper computer.
The electronic device 21 shown in fig. 2 opens the browser and displays a login interface. The user inputs an account name and a password and clicks to log in. The account number composed of the account name and the password is a universal account number of the lower computer managed by the upper computer. In response to the login operation of the user on the browser, the electronic device 21 displays the first front page of the upper computer shown in fig. 3 on the user interface of the electronic device 21. The user clicks the "lower computer management" icon, and the electronic device 21 displays, in response to an operation of the user clicking the "lower computer management" icon in the first front-end page of the upper computer, an interface of a preset list as shown in fig. 4 on the user interface of the electronic device 21, where the preset list includes identification information corresponding to one or more types of lower computers connected to the upper computer.
Optionally, the one or more types of corresponding identification information may be a name or an icon. The preset list comprises a type A lower computer, a type B lower computer, a type C lower computer, a type D lower computer and the like.
Optionally, the operation mode is not limited to single click or double click, and may also be dragging, sliding, touching, and the like.
And S102, responding to a second operation of the user on the identification information of the target type in the one or more types, and displaying a second front-end page corresponding to the target type in the first front-end page, wherein the second front-end page comprises the identification information corresponding to one or more lower computers belonging to the target type respectively.
In the interface of the preset list shown in fig. 4, the user clicks the "a-type lower computer" icon, and in response to an operation of clicking the "a-type lower computer" icon by the user in the preset list page, the electronic device 21 displays a page shown in fig. 5, that is, displays a second front-end page corresponding to the a-type lower computer in the first front-end page, where the second front-end page includes identification information corresponding to one or more lower computers of the a-type lower computer, respectively, and the identification information corresponding to three lower computers of the a-type lower computer, respectively, is "a 1", "a 2", and "A3" shown in fig. 5. Similarly, the user clicks other types of lower computers, the response process and the principle are the same, and details are not described herein.
Optionally, the identification information respectively corresponding to the one or more lower computers of the target type includes, but is not limited to, a serial number, an Identity Document (ID), a name, and an icon. The present disclosure is named as an example, and takes "a 1", "a 2", and "A3" as identification information corresponding to three lower computers belonging to the type a lower computer, respectively.
Optionally, the second front end page may be nested in the first front end page by an in-line frame (iframe).
S103, responding to a third operation of a user on identification information of a target lower computer in the one or more lower computers, sending a first request to the upper computer, wherein the first request comprises the identification information of the target lower computer, and the upper computer is used for forwarding the first request to the target lower computer.
As shown in fig. 5, taking an example that a user clicks an "a 1" icon, the electronic device 21 sends a first request to the upper computer 22 in response to a click operation of the user on identification information "a 1" of a target lower computer of the one or more lower computers, where the first request includes identification information "a 1" of the target lower computer, and the upper computer 22 is configured to forward the first request to the target lower computer 23.
Optionally, the first request may be a hypertext Transfer Protocol (HTTP) request.
And S104, receiving and displaying a processing result which is forwarded by the upper computer and generated by the target lower computer according to the first request.
As shown in fig. 2, after the upper computer 22 forwards the first request to the target lower computer 23, the lower computer 23 generates a processing result according to the request and returns the processing result to the upper computer 22, the upper computer 22 returns the received processing result to the electronic device 21, and the electronic device 21 receives the processing result and displays the processing result generated by the target lower computer according to the first request on a front-end page of the upper computer 22.
The method and the device for displaying the identification information of the upper computer display screen in screen display. In addition, responding to a second operation of the user on the identification information of the target type in the one or more types through the terminal, and displaying a second front-end page corresponding to the target type in the first front-end page, wherein the second front-end page comprises the identification information corresponding to one or more lower computers belonging to the target type respectively. Further, a first request is sent to the upper computer through a terminal in response to a third operation of a user on identification information of a target lower computer in the one or more lower computers, the first request comprises the identification information of the target lower computer, and the upper computer is used for forwarding the first request to the target lower computer. And finally, receiving and displaying a processing result which is forwarded by the upper computer and generated by the target lower computer according to the first request through a terminal. According to the method, the second front-end page corresponding to the target type can control one or more lower computers of the target type, and different from the prior art, the method only needs to nest the front-end page corresponding to the target type lower computer on the front-end page of the upper computer when one type of lower computer is added or one lower computer is added, and therefore the development efficiency can be improved, and the problems of jamming and the like caused by excessive upper content of the upper computer are effectively avoided.
In addition, after the upper computer receives the request sent by the electronic equipment, the upper computer does not call the interface of the lower computer to process the request, but only forwards the request to the lower computer, and the lower computer performs corresponding processing on the request. Therefore, compared with the method for calling the lower computer interface to process the request by the upper computer in the prior art, the method and the device for processing the request by the lower computer can reduce the workload of the upper computer, simultaneously avoid the data interface of the lower computer from being exposed on the upper computer, and play a certain protection role on the data interface of the lower computer.
Fig. 6 is a flowchart of a kernel upgrade method according to another embodiment of the present disclosure, and as shown in fig. 6, the method applied to a terminal includes the following steps:
s601, responding to a fourth operation of the user in the first front-end page, and displaying the preset list.
The electronic device 21 shown in fig. 2 opens the browser and displays a login interface. The user inputs an account name and a password and clicks to log in. The account number composed of the account name and the password is a universal account number of the lower computer managed by the upper computer. In response to the login operation of the user on the browser, the electronic device 21 displays the first front page of the upper computer shown in fig. 7 on the user interface of the electronic device 21. When the user clicks the "new" icon, the electronic device 21 displays an interface of the preset list shown in fig. 8 on the user interface of the electronic device 21 in response to the user clicking the "new" icon on the first front-end page of the upper computer.
S602, responding to a fifth operation of the user on the identification information of the target type in the one or more types, and sending a second request to the upper computer.
The user selects the identification information of the target type on the interface of the preset list shown in fig. 8, the electronic device 21 displays the page shown in fig. 9 in response to the operation of "selecting the identification information of the target type" of the user in the page of the preset list, that is, the D-type lower computer and the E-type lower computer are selected, the user clicks the "add" icon, and the electronic device 21 sends a second request to the upper computer 22 in response to the operation of "adding" of the user in the page of the preset list.
Optionally, the operation of responding to the "addition" of the user in the preset list page may be to add the selected target type in sequence, or to add multiple types at the same time.
And S603, receiving the related information of the second front-end page corresponding to the target type returned by the upper computer.
After the upper computer 22 receives the second request sent by the electronic device 21, the upper computer 22 returns the relevant information of the second front-end page corresponding to the selected target type to the electronic device 21, and the electronic device 21 receives the relevant information of the second front-end page corresponding to the target type returned by the upper computer 22, as shown in fig. 9, that is, the electronic device 21 receives the relevant information of the second front-end page corresponding to the D-type lower computer and the E-type lower computer returned by the upper computer 22.
Optionally, the target type may be a sequentially selected type, or may be multiple types selected simultaneously.
S604, loading the second front-end page corresponding to the target type into the first front-end page according to the related information of the second front-end page corresponding to the target type.
The related information of the second front end page may be a code corresponding to the second front end page. Further, the upper computer 22 adds the code corresponding to the second front-end page to the code corresponding to the first front-end page to obtain a new section of code. The electronic device 21 further performs page rendering according to the new piece of code, so that the second front-end page can be loaded into the first front-end page.
S605, responding to a first operation of a user in a first front-end page of an upper computer, and displaying a preset list, wherein the preset list comprises one or more types of identification information respectively corresponding to lower computers connected with the upper computer.
Specifically, the implementation process and principle of S605 and S101 are consistent, and are not described herein again.
S606, responding to a second operation of the user on the identification information of the target type in the one or more types, and displaying a second front-end page corresponding to the target type in the first front-end page, wherein the second front-end page comprises identification information corresponding to one or more lower computers belonging to the target type respectively.
Specifically, the implementation process and principle of S606 and S102 are consistent, and are not described herein again.
S607, responding to a third operation of a user on identification information of a target lower computer in the one or more lower computers, sending a first request to the upper computer, wherein the first request comprises the identification information of the target lower computer, and the upper computer is used for forwarding the first request to the target lower computer.
Specifically, the implementation process and principle of S607 and S103 are the same, and are not described herein again.
And S608, receiving and displaying a processing result which is forwarded by the upper computer and generated by the target lower computer according to the first request.
Specifically, the implementation process and principle of S608 and S104 are consistent, and are not described herein again.
According to the method and the device for displaying the preset list, the terminal responds to the fourth operation of the user in the first front-end page and displays the preset list before responding to the first operation of the user in the first front-end page of the upper computer and displaying the preset list. And then, responding to a fifth operation of the user on the identification information of the target type in the one or more types through the terminal, and sending a second request to the upper computer. And further, receiving related information of a second front-end page corresponding to the target type returned by the upper computer through a terminal, and loading the second front-end page corresponding to the target type into the first front-end page according to the related information of the second front-end page corresponding to the target type. As each type of the lower computer is added, only the front-end page of the corresponding type of the lower computer needs to be imported into the front-end page of the upper computer, so that a user can complete the import process without the intervention of developers, the development efficiency can be improved, and the operation difficulty is reduced.
Fig. 10 is a flowchart of a lower computer control method according to another embodiment of the present disclosure, and as shown in fig. 10, the method is applied to an upper computer, and includes the following steps:
s1001, receiving a first request sent by a terminal, wherein the first request comprises identification information of a target lower computer.
As shown in fig. 5, taking an example that a user clicks an "a 1" icon, the electronic device 21 sends a first request to the upper computer 22 in response to a click operation of the user on identification information "a 1" of a target lower computer of the one or more lower computers, where the first request includes the identification information "a 1" of the target lower computer, and the upper computer 22 receives the first request sent by the electronic device 21, where the first request includes the identification information of the target lower computer.
S1002, forwarding the first request to the target lower computer.
After receiving the first request sent by the electronic device 21, the upper computer 22 determines which lower computer belongs to which type according to the identification information of the target lower computer, for example, the identification information of the present disclosure takes the name as an example, as shown in fig. 5, since the identification information is "a 1", it can be determined that the target lower computer is the lower computer No. 1 of the type a lower computers. Then, the upper computer 22 forwards the first request to the type 1 lower computer in the type a lower computers.
And S1003, receiving a processing result generated by the target lower computer according to the first request.
As shown in fig. 2, after the upper computer 22 forwards the first request to the target lower computer 23, the lower computer 23 generates a processing result according to the request and returns the processing result to the upper computer 22, and the upper computer 22 receives the processing result generated by the lower computer 23.
And S1004, sending the processing result to the terminal.
After receiving the processing result generated by the lower computer 23, the upper computer 22 returns the received processing result to the electronic device 21.
According to the embodiment of the disclosure, the upper computer receives a first request sent by the terminal, the first request comprises identification information of a target lower computer, the first request is forwarded to the target lower computer, and further, the upper computer can also receive a processing result generated by the target lower computer according to the first request and sends the processing result to the terminal. After the upper computer receives the request sent by the electronic equipment, the upper computer does not call the interface of the lower computer to process the request, but only forwards the request to the lower computer, and the lower computer performs corresponding processing on the request. Therefore, compared with the method for calling the lower computer interface to process the request by the upper computer in the prior art, the method and the device for processing the request by the lower computer can reduce the workload of the upper computer, simultaneously avoid the data interface of the lower computer from being exposed on the upper computer, and play a certain protection role on the data interface of the lower computer.
On the basis of the above embodiment, after receiving the first request sent by the terminal, the method further includes: generating authorization information corresponding to the target lower computer according to the identification information of the target lower computer; and carrying the authorization information in the first request.
Taking the identification information "a 1" as an example, after receiving the first request sent by the electronic device 21, the upper computer 22 generates authorization information corresponding to the No. 1 lower computer in the type a lower computer according to the identification information "a 1" of the target lower computer, and carries the authorization information in the first request.
Optionally, the authorization information may be an encryption packet and a key string of a user name and a password corresponding to the target lower computer.
Correspondingly, forwarding the first request to the target lower computer comprises the following steps: and forwarding the first request carrying the authorization information to the target lower computer.
After receiving the first request sent by the electronic device 21, the upper computer 22 determines which lower computer belongs to which type according to the identification information of the target lower computer, for example, the identification information of the present disclosure takes the name as an example, as shown in fig. 5, since the identification information is "a 1", it can be determined that the target lower computer is the lower computer No. 1 of the type a lower computers. Then, the upper computer 22 forwards the first request carrying the authorization information to the type 1 lower computer in the type a lower computers.
Optionally, generating authorization information corresponding to the target lower computer according to the identification information of the target lower computer, including: acquiring a digital certificate corresponding to the target lower computer according to the identification information of the target lower computer; and generating authorization information corresponding to the target lower computer according to the digital certificate corresponding to the target lower computer.
As shown in fig. 5, since the identification information is "a 1", the upper computer 22 may determine that the target lower computer is the No. 1 lower computer in the type a lower computers, then obtain the digital certificate of the No. 1 lower computer in the type a lower computers, and generate the authorization information of the No. 1 lower computer in the type a lower computers according to the digital certificate of the No. 1 lower computer in the type a lower computers.
Optionally, the digital certificate is a rule that is pre-formulated by the upper computer and the lower computer, and the rule includes: the upper computer generates a certificate according to the identification information of the lower computer and issues the certificate to the corresponding lower computer, and the digital certificate can generate authorization information.
Specifically, the upper computer generates authorization information according to the digital certificate, the corresponding lower computer has the same digital certificate, the digital certificate of the lower computer can also generate the authorization information, the lower computer judges whether the two authorization information are completely the same, if the two authorization information are the same, the lower computer generates a processing result according to the request and returns the processing result to the upper computer 22, and the upper computer 22 receives the processing result generated by the lower computer 23. Otherwise, the request is not processed.
According to the embodiment of the method and the device, after the upper computer receives the first request which comprises the identification information of the target lower computer and is sent by the terminal, the digital certificate corresponding to the target lower computer is obtained according to the identification information of the target lower computer. Further, the upper computer generates authorization information corresponding to the target lower computer according to the digital certificate corresponding to the target lower computer, carries the authorization information in the first request, and forwards the first request carrying the authorization information to the target lower computer. Because the authorization information is generated by the upper computer, is not acquired from the lower computer and is returned to the upper computer, the method and the device can avoid the exposure of the authorization information of the lower computer on an acquisition path and a front page of the upper computer, and improve the safety of the lower computer.
Fig. 11 is a schematic structural diagram of a lower computer control device according to an embodiment of the present disclosure. The lower computer control device may be a terminal as described in the above embodiments, or the lower computer control device may be a component or assembly in the terminal. The lower computer control device provided by the embodiment of the disclosure can execute the processing flow provided by the embodiment of the lower computer control method, and the lower computer control device is included in the terminal. As shown in fig. 11, the lower computer control device 110 includes: a display module 111, a sending module 112, and a receiving module 113; the display module 111 is configured to display a preset list in response to a first operation of a user in a first front-end page of an upper computer, where the preset list includes one or more types of identification information corresponding to respective lower computers connected to the upper computer; responding to the operation of a user on the identification information of a target type in the one or more types, and displaying a second front-end page corresponding to the target type in the first front-end page, wherein the second front-end page comprises the identification information corresponding to one or more lower computers belonging to the target type respectively; the sending module 112 is configured to send a first request to the upper computer in response to a user operating identification information of a target lower computer of the one or more lower computers, where the first request includes the identification information of the target lower computer, and the upper computer is configured to forward the first request to the target lower computer; the receiving module 113 is configured to receive a processing result, which is generated by the target lower computer according to the first request and forwarded by the upper computer; the display module 111 is further configured to display a processing result forwarded by the upper computer and generated by the target lower computer according to the first request.
Optionally, the display module 111 is further configured to display a preset list in response to a fourth operation of the user in a first front-end page before displaying the preset list in response to the first operation of the user in the first front-end page of the upper computer; the sending module 112 is further configured to send a second request to the upper computer in response to a fifth operation of the user on the identification information of the target type in the one or more types; the receiving module 113 is further configured to receive related information of a second front-end page corresponding to the target type, which is returned by the upper computer; the device further comprises: the loading module 114 is configured to load the second front-end page corresponding to the target type into the first front-end page according to the related information of the second front-end page corresponding to the target type.
The lower computer control device in the embodiment shown in fig. 11 can be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 12 is a schematic structural diagram of a lower computer control device according to another embodiment of the present disclosure. The lower computer control device may be the upper computer as described in the above embodiment, or the lower computer control device may be a component or assembly in the upper computer. The lower computer control device provided by the embodiment of the disclosure can execute the processing flow provided by the embodiment of the lower computer control method, and the lower computer control device is included in the upper computer. As shown in fig. 12, the lower computer control device 120 includes: a receiving module 121 and a forwarding module 122; the receiving module 121 is configured to receive a first request sent by a terminal, where the first request includes identification information of a target lower computer; the forwarding module 122 is configured to forward the first request to the target lower computer; the receiving module 121 is further configured to receive a processing result generated by the target lower computer according to the first request; the forwarding module 122 is further configured to send the processing result to the terminal.
Optionally, the lower computer control device 120 further includes: a generating module 123 and a carrying module 124; the generating module 123 is configured to generate authorization information corresponding to the target lower computer according to the identification information of the target lower computer after the receiving module receives the first request sent by the terminal; the carrying module 124 is configured to carry the authorization information in the first request;
correspondingly, when the sending module 112 forwards the first request to the target lower computer, the sending module is specifically configured to: and forwarding the first request carrying the authorization information to the target lower computer.
Optionally, the generating module 123 is specifically configured to: acquiring a digital certificate corresponding to the target lower computer according to the identification information of the target lower computer; and generating authorization information corresponding to the target lower computer according to the digital certificate corresponding to the target lower computer.
The lower computer control device in the embodiment shown in fig. 12 can be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device may be a terminal as described in the above method embodiments. The electronic device provided in the embodiment of the present disclosure may execute the processing procedure provided in the embodiment of the lower computer control method, as shown in fig. 13, the electronic device 130 includes: memory 131, processor 132, computer programs, and communications interface 133; wherein the computer program is stored in the memory 131 and configured to execute the lower computer control method as described above by the processor 132.
Fig. 14 is a schematic structural diagram of an upper computer provided in the embodiment of the present disclosure. The upper computer may be the upper computer as described in the above method embodiment. The upper computer provided in the embodiment of the present disclosure may execute the processing procedure provided in the embodiment of the lower computer control method, as shown in fig. 14, the upper computer 140 includes: memory 141, processor 142, computer programs, and communications interface 143; wherein the computer program is stored in the memory 141 and configured to execute the lower computer control method as described above by the processor 142.
In addition, the embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the lower computer control method described in the above embodiment.
Furthermore, the embodiments of the present disclosure also provide a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the computer program or instructions implement the lower computer control method as described above.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1.一种下位机控制方法,其特征在于,应用于终端,所述方法包括:1. a lower computer control method, is characterized in that, is applied to terminal, and described method comprises: 响应于用户在上位机的第一前端页面中的第一操作,显示预设列表,所述预设列表包括所述上位机所连接的下位机所属的一种或多种类型分别对应的标识信息;In response to the user's first operation on the first front-end page of the upper computer, a preset list is displayed, and the preset list includes the identification information corresponding to one or more types of the lower computer to which the upper computer is connected. ; 响应于用户对所述一种或多种类型中目标类型的标识信息的第二操作,在所述第一前端页面中显示所述目标类型对应的第二前端页面,其中,所述第二前端页面包括属于所述目标类型的一个或多个下位机分别对应的标识信息;In response to a second operation by the user on the identification information of the target type in the one or more types, a second front-end page corresponding to the target type is displayed in the first front-end page, wherein the second front-end The page includes identification information respectively corresponding to one or more lower-level computers belonging to the target type; 响应于用户对所述一个或多个下位机中目标下位机的标识信息的第三操作,向所述上位机发送第一请求,所述第一请求包括所述目标下位机的标识信息,所述上位机用于将所述第一请求转发给所述目标下位机;In response to the third operation by the user on the identification information of the target lower computer in the one or more lower computers, a first request is sent to the upper computer, and the first request includes the identification information of the target lower computer, so The upper computer is used to forward the first request to the target lower computer; 接收并显示所述上位机转发的由所述目标下位机根据所述第一请求生成的处理结果。Receive and display the processing result forwarded by the upper computer and generated by the target lower computer according to the first request. 2.根据权利要求1所述的方法,其特征在于,响应于用户在上位机的第一前端页面中的第一操作,显示预设列表之前,所述方法还包括:2. The method according to claim 1, characterized in that, before displaying the preset list in response to the user's first operation on the first front-end page of the host computer, the method further comprises: 响应于用户在所述第一前端页面中的第四操作,显示所述预设列表;Displaying the preset list in response to a fourth operation by the user in the first front-end page; 响应于用户对所述一种或多种类型中目标类型的标识信息的第五操作,向所述上位机发送第二请求;In response to the user's fifth operation on the identification information of the target type in the one or more types, send a second request to the upper computer; 接收所述上位机返回的所述目标类型对应的第二前端页面的相关信息;Receive the relevant information of the second front-end page corresponding to the target type returned by the host computer; 根据所述目标类型对应的第二前端页面的相关信息,将所述目标类型对应的第二前端页面加载到所述第一前端页面中。Loading the second front-end page corresponding to the target type into the first front-end page according to the relevant information of the second front-end page corresponding to the target type. 3.一种下位机控制方法,其特征在于,应用于上位机,所述方法包括:3. a lower computer control method, is characterized in that, is applied to upper computer, and described method comprises: 接收终端发送的第一请求,所述第一请求包括目标下位机的标识信息;receiving a first request sent by the terminal, where the first request includes the identification information of the target lower computer; 将所述第一请求转发给所述目标下位机;forwarding the first request to the target lower computer; 接收所述目标下位机根据所述第一请求生成的处理结果;receiving the processing result generated by the target lower computer according to the first request; 将所述处理结果发送给所述终端。Send the processing result to the terminal. 4.根据权利要求3所述的方法,其特征在于,接收终端发送的第一请求之后,所述方法还包括:4. The method according to claim 3, wherein after receiving the first request sent by the terminal, the method further comprises: 根据所述目标下位机的标识信息,生成所述目标下位机对应的授权信息;Generate authorization information corresponding to the target lower computer according to the identification information of the target lower computer; 将所述授权信息携带在所述第一请求中;carrying the authorization information in the first request; 相应的,将所述第一请求转发给所述目标下位机,包括:Correspondingly, forwarding the first request to the target lower computer includes: 将携带有所述授权信息的所述第一请求转发给所述目标下位机。The first request carrying the authorization information is forwarded to the target lower computer. 5.根据权利要求4所述的方法,其特征在于,根据所述目标下位机的标识信息,生成所述目标下位机对应的授权信息,包括:5. The method according to claim 4, wherein, according to the identification information of the target lower computer, the authorization information corresponding to the target lower computer is generated, comprising: 根据所述目标下位机的标识信息,获取所述目标下位机对应的数字证书;According to the identification information of the target lower computer, obtain the digital certificate corresponding to the target lower computer; 根据所述目标下位机对应的数字证书,生成所述目标下位机对应的授权信息。Authorization information corresponding to the target lower computer is generated according to the digital certificate corresponding to the target lower computer. 6.一种下位机控制装置,其特征在于,所述下位机控制装置包括在终端中,所述装置包括:6. A lower computer control device, characterized in that, the lower computer control device is included in a terminal, and the device comprises: 显示模块,用于响应于用户在上位机的第一前端页面中的第一操作,显示预设列表,所述预设列表包括所述上位机所连接的下位机所属的一种或多种类型分别对应的标识信息;响应于用户对所述一种或多种类型中目标类型的标识信息的操作,在所述第一前端页面中显示所述目标类型对应的第二前端页面,其中,所述第二前端页面包括属于所述目标类型的一个或多个下位机分别对应的标识信息;A display module, configured to display a preset list in response to a user's first operation on the first front-end page of the upper computer, where the preset list includes one or more types to which the lower computer connected to the upper computer belongs corresponding identification information; in response to the user's operation on the identification information of the target type in the one or more types, the second front-end page corresponding to the target type is displayed in the first front-end page, wherein the The second front-end page includes identification information corresponding to one or more lower-level computers belonging to the target type respectively; 发送模块,用于响应于用户对所述一个或多个下位机中目标下位机的标识信息的操作,向所述上位机发送第一请求,所述第一请求包括所述目标下位机的标识信息,所述上位机用于将所述第一请求转发给所述目标下位机;A sending module, configured to send a first request to the upper computer in response to the user's operation on the identification information of the target lower computer in the one or more lower computers, and the first request includes the identification of the target lower computer information, the upper computer is used to forward the first request to the target lower computer; 接收模块,用于接收所述上位机转发的由所述目标下位机根据所述第一请求生成的处理结果;a receiving module, configured to receive the processing result forwarded by the upper computer and generated by the target lower computer according to the first request; 所述显示模块还用于显示所述上位机转发的由所述目标下位机根据所述第一请求生成的处理结果。The display module is further configured to display the processing result forwarded by the upper computer and generated by the target lower computer according to the first request. 7.根据权利要求6所述的装置,其特征在于,所述显示模块还用于:在响应于用户在上位机的第一前端页面中的第一操作,显示预设列表之前,响应于用户在所述第一前端页面中的第四操作,显示所述预设列表;7. The device according to claim 6, wherein the display module is further configured to: in response to the user's first operation on the first front-end page of the host computer, before displaying the preset list, in response to the user In the fourth operation in the first front-end page, the preset list is displayed; 所述发送模块还用于:响应于用户对所述一种或多种类型中目标类型的标识信息的第五操作,向所述上位机发送第二请求;The sending module is further configured to send a second request to the host computer in response to the fifth operation by the user on the identification information of the target type in the one or more types; 所述接收模块还用于:接收所述上位机返回的所述目标类型对应的第二前端页面的相关信息;The receiving module is further configured to: receive the relevant information of the second front-end page corresponding to the target type returned by the host computer; 所述装置还包括:加载模块,用于根据所述目标类型对应的第二前端页面的相关信息,将所述目标类型对应的第二前端页面加载到所述第一前端页面中。The apparatus further includes: a loading module configured to load the second front-end page corresponding to the target type into the first front-end page according to the relevant information of the second front-end page corresponding to the target type. 8.一种下位机控制装置,其特征在于,所述下位机控制装置包括在上位机中,所述装置包括:8. A lower computer control device, characterized in that, the lower computer control device is included in the upper computer, and the device comprises: 接收模块,用于接收终端发送的第一请求,所述第一请求包括目标下位机的标识信息;a receiving module, configured to receive a first request sent by the terminal, where the first request includes the identification information of the target lower computer; 转发模块,用于将所述第一请求转发给所述目标下位机;a forwarding module, configured to forward the first request to the target lower computer; 所述接收模块还用于:接收所述目标下位机根据所述第一请求生成的处理结果;The receiving module is further configured to: receive the processing result generated by the target lower computer according to the first request; 所述转发模块还用于:将所述处理结果发送给所述终端。The forwarding module is further configured to: send the processing result to the terminal. 9.根据权利要求8所述的装置,其特征在于,所述装置还包括:9. The apparatus of claim 8, wherein the apparatus further comprises: 生成模块,用于在所述接收模块接收终端发送的第一请求之后,根据所述目标下位机的标识信息,生成所述目标下位机对应的授权信息;a generating module, configured to generate authorization information corresponding to the target lower computer according to the identification information of the target lower computer after the receiving module receives the first request sent by the terminal; 携带模块,用于将所述授权信息携带在所述第一请求中;a carrying module, configured to carry the authorization information in the first request; 相应的,所述发送模块将所述第一请求转发给所述目标下位机时,具体用于:将携带有所述授权信息的所述第一请求转发给所述目标下位机。Correspondingly, when the sending module forwards the first request to the target lower computer, it is specifically configured to: forward the first request carrying the authorization information to the target lower computer. 10.根据权利要求9所述的装置,其特征在于,所述生成模块具体用于:10. The apparatus according to claim 9, wherein the generating module is specifically used for: 根据所述目标下位机的标识信息,获取所述目标下位机对应的数字证书;According to the identification information of the target lower computer, obtain the digital certificate corresponding to the target lower computer; 根据所述目标下位机对应的数字证书,生成所述目标下位机对应的授权信息。Authorization information corresponding to the target lower computer is generated according to the digital certificate corresponding to the target lower computer. 11.一种电子设备,其特征在于,包括:11. An electronic device, characterized in that, comprising: 存储器;memory; 处理器;以及processor; and 计算机程序;Computer program; 其中,所述计算机程序存储在所述存储器中,并被配置为由所述处理器执行以实现如权利要求1-2中任一项所述的方法。wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-2. 12.一种上位机,其特征在于,包括:12. A host computer, characterized in that, comprising: 存储器;memory; 处理器;以及processor; and 计算机程序;Computer program; 其中,所述计算机程序存储在所述存储器中,并被配置为由所述处理器执行以实现如权利要求3-5中任一项所述的方法。wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of claims 3-5. 13.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-5中任一项所述的方法。13. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1-5 is implemented.
CN202111203924.8A 2021-10-15 2021-10-15 Lower computer control method, device, equipment and computer readable storage medium Pending CN113961288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111203924.8A CN113961288A (en) 2021-10-15 2021-10-15 Lower computer control method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111203924.8A CN113961288A (en) 2021-10-15 2021-10-15 Lower computer control method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113961288A true CN113961288A (en) 2022-01-21

Family

ID=79464101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111203924.8A Pending CN113961288A (en) 2021-10-15 2021-10-15 Lower computer control method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113961288A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016058366A1 (en) * 2014-10-15 2016-04-21 珠海格力电器股份有限公司 Smart home appliance control method and home control center
CN106385351A (en) * 2016-10-13 2017-02-08 北京小米移动软件有限公司 Control method and device of intelligent household equipment
CN106842969A (en) * 2017-02-13 2017-06-13 浙江风向标科技有限公司 Apparatus control method and device
CN107783509A (en) * 2016-08-27 2018-03-09 北京北信源软件股份有限公司 A kind of intelligent home furnishing control method, device and system
CN110262274A (en) * 2019-07-22 2019-09-20 青岛海尔科技有限公司 Smart home device control display methods and system based on Internet of Things operating system
WO2020192714A1 (en) * 2019-03-28 2020-10-01 华为技术有限公司 Device control page display method, related apparatus and system
CN113433831A (en) * 2021-06-29 2021-09-24 青岛海尔科技有限公司 Control method and module of intelligent household equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016058366A1 (en) * 2014-10-15 2016-04-21 珠海格力电器股份有限公司 Smart home appliance control method and home control center
CN107783509A (en) * 2016-08-27 2018-03-09 北京北信源软件股份有限公司 A kind of intelligent home furnishing control method, device and system
CN106385351A (en) * 2016-10-13 2017-02-08 北京小米移动软件有限公司 Control method and device of intelligent household equipment
CN106842969A (en) * 2017-02-13 2017-06-13 浙江风向标科技有限公司 Apparatus control method and device
WO2020192714A1 (en) * 2019-03-28 2020-10-01 华为技术有限公司 Device control page display method, related apparatus and system
CN110262274A (en) * 2019-07-22 2019-09-20 青岛海尔科技有限公司 Smart home device control display methods and system based on Internet of Things operating system
CN113433831A (en) * 2021-06-29 2021-09-24 青岛海尔科技有限公司 Control method and module of intelligent household equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6463463B2 (en) Service processing method, apparatus, and server
US11175796B2 (en) Menu management method, server, and system
US8763145B2 (en) Cloud system, license management method for cloud service
JP6859512B2 (en) Methods and devices for authenticated login
US12056415B2 (en) Desktop sharing method and mobile terminal
US20120302210A1 (en) System, method, and program for generating screen
US20190050420A1 (en) Edit and share unsupported files through instantly generated preview
WO2018209465A1 (en) Webpage access control method and gateway device
EP3174244B1 (en) Video communication ending method and apparatus, computer program and recording medium
CN114547676A (en) Permission control method and device for application program page
WO2025050883A1 (en) Micro-end generation method and apparatus, computer device, and storage medium
CN113961288A (en) Lower computer control method, device, equipment and computer readable storage medium
CN113840013B (en) Document system for hierarchical management
CN108306892B (en) A request-response method and system based on TrustZone
CN111784427A (en) Product information processing method and device based on electronic shelf and storage medium
CN117667141B (en) Charging protocol software system and multiparty cooperative processing method
JP5770354B1 (en) Server system and request execution control method
CN114553955B (en) Remote publishing method, device and system based on mobile devices
US11816173B2 (en) Method and apparatus for managing user profile
JP2013191093A (en) Information processing device, information processing system, and program
CN112181558A (en) Image control method, system and device
CN118646611A (en) Method, device, equipment and storage medium for creating a group
CN118708137A (en) Printing control method, system and device
CN118250496A (en) Data processing method, device, equipment and storage medium
CN117155935A (en) Node processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220121