[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112559085A - Plug-in loading method, equipment, storage medium and device of Internet of things equipment - Google Patents

Plug-in loading method, equipment, storage medium and device of Internet of things equipment Download PDF

Info

Publication number
CN112559085A
CN112559085A CN202011557907.XA CN202011557907A CN112559085A CN 112559085 A CN112559085 A CN 112559085A CN 202011557907 A CN202011557907 A CN 202011557907A CN 112559085 A CN112559085 A CN 112559085A
Authority
CN
China
Prior art keywords
plug
loading
internet
target
function
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
CN202011557907.XA
Other languages
Chinese (zh)
Other versions
CN112559085B (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.)
Suzhou 360 Intelligent Security Technology Co Ltd
Original Assignee
Suzhou 360 Intelligent Security Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou 360 Intelligent Security Technology Co Ltd filed Critical Suzhou 360 Intelligent Security Technology Co Ltd
Priority to CN202011557907.XA priority Critical patent/CN112559085B/en
Publication of CN112559085A publication Critical patent/CN112559085A/en
Application granted granted Critical
Publication of CN112559085B publication Critical patent/CN112559085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

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

Abstract

The invention discloses a plug-in loading method, equipment, a storage medium and a device of Internet of things equipment, compared with the prior mode that the Internet of things equipment is stopped first and then plug-in installation is carried out, when the target Internet of things equipment is in the running state, by acquiring the plug-in modification event of the target Internet of things equipment, when the plug-in modification event is a preset plug-in loading event, determining the plug-in to be loaded and the plug-in loading type of the plug-in to be loaded according to the plug-in modification event, the target plug-in loading strategy is determined according to the plug-in loading type, and the plug-in to be loaded is loaded according to the target plug-in loading strategy, thereby overcoming the defects that in the prior art, under the condition of not stopping running, the plug-in loading method has the advantages that plug-in loading is carried out on the Internet of things equipment, so that the plug-in loading process of the Internet of things equipment can be optimized, and plug-in loading requirements of various Internet of things equipment are met.

Description

Plug-in loading method, equipment, storage medium and device of Internet of things equipment
Technical Field
The invention relates to the technical field of Internet of things, in particular to a plug-in loading method, plug-in loading equipment, storage medium and device for Internet of things equipment.
Background
At present, when plug-in is loaded on the Internet of things equipment, the Internet of things equipment needs to be stopped firstly, and then plug-in installation is carried out.
However, in practical application, because the service-class and other internet-of-things devices cannot stop operating at any time, some internet-of-things devices cannot directly load plug-ins.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a plug-in loading method, equipment, a storage medium and a device of Internet of things equipment, and aims to solve the technical problem of how to optimize the plug-in loading process of the Internet of things equipment.
In order to achieve the above object, the present invention provides a plug-in loading method for an internet of things device, including the following steps:
when target Internet of things equipment is in an operating state, acquiring a plug-in modification event of the target Internet of things equipment;
when the plug-in modification event is a preset plug-in loading event, determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event;
and determining a target plug-in loading strategy according to the plug-in loading type, and loading the plug-in to be loaded according to the target plug-in loading strategy.
Optionally, the step of determining a target plug-in loading policy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading policy specifically includes:
when the plug-in loading type is a replacing function loading type, determining a plug-in to be replaced and a target function according to the plug-in to be loaded;
acquiring initial function information of the plug-in to be loaded, and determining an initial function inlet according to the initial function information;
searching a near jump instruction corresponding to the initial function inlet, and jumping to a target memory space address according to the near jump instruction;
and acquiring a far jump instruction stored in the target memory space address, and jumping to a space address corresponding to a target function according to the far jump instruction.
Optionally, the step of searching for a near jump instruction corresponding to the initial function entry and jumping to a target memory space address according to the near jump instruction specifically includes:
searching a near jump instruction corresponding to the initial function entry in a preset first mapping relation table, wherein the preset first mapping relation table comprises the corresponding relation between the function entry and the near jump instruction;
and searching a target memory space address corresponding to the near jump instruction in a preset second mapping relation table, and jumping to the target memory space address.
Optionally, before the step of searching for the near jump instruction corresponding to the initial function entry in a preset first mapping relation table, where the preset first mapping relation table includes a corresponding relation between the function entry and the near jump instruction, the plug-in loading method for the internet of things device further includes:
modifying a first instruction of a function entry to be selected to obtain a near jump instruction to be selected;
and establishing a preset first mapping relation table according to the function entry to be selected and the near jump instruction to be selected.
Optionally, before the step of searching for the target memory space address corresponding to the near jump instruction in the preset second mapping relationship table and jumping to the target memory space address, the plug-in loading method for the internet of things device further includes:
distributing a corresponding to-be-selected memory space address for the to-be-selected near jump instruction, wherein the to-be-selected memory space address stores a to-be-selected far jump instruction;
and establishing a preset second mapping relation table according to the to-be-selected near jump instruction and the to-be-selected memory space address.
Optionally, the step of determining a target plug-in loading policy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading policy specifically includes:
when the plug-in loading type is a new function loading type, acquiring a current running process of the target Internet of things equipment and a function address of the current running process;
and modifying the register execution function of the current running process according to the function address and the plug-in to be loaded.
Optionally, the step of modifying the register of the currently running process to execute the function according to the function address and the plug-in to be loaded specifically includes:
determining the pointing position of a current register according to the function address, and determining a current execution instruction according to the pointing position of the current register;
and modifying the register execution function of the current running process according to the current execution instruction and the plug-in to be loaded.
Optionally, the step of obtaining a plug-in modification event of the target internet of things device when the target internet of things device is in an operating state specifically includes:
when target Internet of things equipment is in an operating state, acquiring equipment information of the target Internet of things equipment;
and determining a to-be-monitored plug-in directory table according to the equipment information, and acquiring a plug-in modification event of the to-be-monitored plug-in directory table.
Optionally, the step of determining a to-be-monitored plug-in directory table according to the device information and acquiring a plug-in modification event of the to-be-monitored plug-in directory table specifically includes:
searching a to-be-monitored plug-in directory table corresponding to the equipment information, and acquiring operation information of the to-be-monitored target table;
and extracting the identification of the operation information to obtain an information identification, and determining a plug-in modification event according to the information identification.
Optionally, before the step of determining, according to the plug-in modification event, a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded when the plug-in modification event is a preset plug-in loading event, the plug-in loading method for the internet of things device further includes:
performing feature extraction on the plug-in modification event to obtain event features;
and judging whether the plug-in modification event is a preset plug-in loading event or not according to the event characteristics.
Optionally, when the plug-in modification event is a preset plug-in loading event, the step of determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event specifically includes:
when the plug-in modification event is a preset plug-in loading event, extracting information of the plug-in modification event to obtain a plug-in to be loaded;
and matching the plug-in modification event with a preset modification event to obtain a matching result, and determining the plug-in loading type of the plug-in to be loaded according to the matching result.
Optionally, after the step of determining a target plug-in loading policy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading policy, the plug-in loading method for the internet of things device further includes:
after the plug-in to be loaded is loaded, generating reminding information according to the plug-in to be loaded;
and searching for the management terminal equipment corresponding to the target Internet of things equipment, and sending the reminding information to the management terminal equipment.
In addition, in order to achieve the above object, the present invention further provides a plug-in loading device of an internet of things device, where the plug-in loading device of the internet of things device includes a memory, a processor, and a plug-in loading program of the internet of things device, which is stored in the memory and can be run on the processor, and the plug-in loading program of the internet of things device is configured to implement the steps of the plug-in loading method of the internet of things device as described above.
In addition, in order to achieve the above object, the present invention further provides a storage medium, where a plug-in loader of the internet of things device is stored on the storage medium, and when being executed by a processor, the plug-in loader of the internet of things device implements the steps of the plug-in loading method of the internet of things device as described above.
In addition, in order to achieve the above object, the present invention further provides a plug-in loading device for an internet of things device, where the plug-in loading device for the internet of things device includes: the device comprises an acquisition module, a determination module and a loading module;
the acquisition module is used for acquiring a plug-in modification event of the target Internet of things equipment when the target Internet of things equipment is in an operating state;
the determining module is used for determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event when the plug-in modification event is a preset plug-in loading event;
and the loading module is used for determining a target plug-in loading strategy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading strategy.
Optionally, the loading module is further configured to determine, when the plug-in loading type is a replacement function loading type, a plug-in to be replaced and a target function according to the plug-in to be loaded;
the loading module is further used for acquiring initial function information of the plug-in to be loaded and determining an initial function inlet according to the initial function information;
the loading module is further configured to search for a near jump instruction corresponding to the initial function entry, and jump to a target memory space address according to the near jump instruction;
and the loading module is also used for acquiring a far jump instruction stored in the target memory space address and jumping to a space address corresponding to a target function according to the far jump instruction.
Optionally, the loading module is further configured to search for a near jump instruction corresponding to the initial function entry in a preset first mapping relation table, where the preset first mapping relation table includes a corresponding relation between the function entry and the near jump instruction;
the loading module is further configured to search a target memory space address corresponding to the near jump instruction in a preset second mapping relation table, and jump to the target memory space address.
Optionally, the loading module is further configured to modify a first instruction of the function entry to be selected, so as to obtain a near jump instruction to be selected;
the loading module is further configured to establish a preset first mapping relation table according to the function entry to be selected and the near jump instruction to be selected.
Optionally, the loading module is further configured to allocate a corresponding to-be-selected memory space address to the to-be-selected near jump instruction, where the to-be-selected memory space address stores a to-be-selected far jump instruction;
and the loading module is also used for establishing a preset second mapping relation table according to the to-be-selected near jump instruction and the to-be-selected memory space address.
Optionally, the loading module is further configured to, when the plug-in loading type is a new function loading type, obtain a current running process of the target internet of things device and a function address of the current running process;
and the loading module is also used for modifying the register execution function of the current running process according to the function address and the plug-in to be loaded.
In the invention, when a target Internet of things device is in an operating state, a plug-in modification event of the target Internet of things device is obtained, when the plug-in modification event is a preset plug-in loading event, a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded are determined according to the plug-in modification event, a target plug-in loading strategy is determined according to the plug-in loading type, and the plug-in to be loaded is loaded according to the target plug-in loading strategy; compared with the existing mode of stopping the Internet of things equipment and then installing the plug-ins, the method and the device have the advantages that when the target Internet of things equipment is in the running state, the target plug-in loading strategy is determined by detecting the plug-in modification event, and the plug-ins to be loaded are loaded according to the target plug-in loading strategy, so that the defect that the plug-ins cannot be loaded on the Internet of things equipment under the condition of not stopping running in the prior art is overcome, the plug-in loading process of the Internet of things equipment can be optimized, and the plug-in loading requirements of various Internet of things equipment are met.
Drawings
Fig. 1 is a schematic structural diagram of a plug-in loading device of an internet-of-things device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a plug-in loading method for internet of things equipment according to a first embodiment of the present invention;
fig. 3 is a schematic flowchart of a plug-in loading method for internet of things equipment according to a second embodiment of the invention;
fig. 4 is a schematic flowchart of a plug-in loading method for internet of things equipment according to a third embodiment of the present invention;
fig. 5 is a block diagram of a first embodiment of a plug-in loading device of an internet of things device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a plug-in loading device of an internet of things device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the plug-in loading device of the internet of things device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the plug-in loading device of the internet of things device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, identified as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a plug-in loader for internet of things devices.
In the plug-in loading device of the internet of things device shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting user equipment; the plug-in loading device of the internet of things device calls the plug-in loading program of the internet of things device stored in the memory 1005 through the processor 1001, and executes the plug-in loading method of the internet of things device provided by the embodiment of the invention.
Based on the hardware structure, the embodiment of the plug-in loading method of the Internet of things equipment is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a plug-in loading method for internet of things equipment, and the first embodiment of the plug-in loading method for internet of things equipment is provided.
In a first embodiment, the plug-in loading method for the internet of things device includes the following steps:
step S10: and when the target Internet of things equipment is in the running state, acquiring a plug-in modification event of the target Internet of things equipment.
It should be understood that the execution main body of the embodiment is a plug-in loading device of the internet of things device, where the plug-in loading device of the internet of things device may be an electronic device such as a computer or a server, and may also be another device that can achieve the same or similar functions, which is not limited in this embodiment, and in the embodiment, the cloud server is taken as an example for description.
It should be noted that the target internet of things device may be an authorized device that establishes a communication connection with the cloud server in advance, which is not limited in this embodiment.
It can be understood that the obtaining of the plug-in modification event of the target internet of things device may be obtaining device information of the target internet of things device when the target internet of things device is in an operating state, determining a directory table of the plug-in to be monitored according to the device information, and obtaining the plug-in modification event of the directory table of the plug-in to be monitored.
It should be noted that the plug-in modification event of the plug-in directory table to be monitored may be an addition, rewrite, or deletion event of the plug-in directory table to be monitored.
Step S20: and when the plug-in modification event is a preset plug-in loading event, determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event.
It can be understood that, when the plug-in modification event is a preset plug-in loading event, determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event may be that, when the plug-in modification event is a preset plug-in loading event, extracting information of the plug-in modification event to obtain a plug-in to be loaded, matching the plug-in modification event with the preset modification event to obtain a matching result, and determining the plug-in loading type of the plug-in to be loaded according to the matching result.
It should be noted that the preset modification event may be preset by a user, for example, a new function event and a replacement function event, which is not limited in this embodiment.
It should be understood that the preset modification event is traversed, the traversed preset modification event is used as a modification event to be matched, the plug-in modification event is matched with the modification event to be matched to obtain a matching result, and after the traversal of the preset modification event is finished, the plug-in loading type of the plug-in to be loaded is determined according to the matching result.
Step S30: and determining a target plug-in loading strategy according to the plug-in loading type, and loading the plug-in to be loaded according to the target plug-in loading strategy.
It should be noted that the plug-in loading types include: the replacement function load type and the new function load type are not limited in this embodiment.
It should be understood that, when the plug-in loading type is a replacement function loading type, determining a plug-in to be replaced and a target function according to the plug-in to be loaded, acquiring initial function information of the plug-in to be loaded, determining an initial function entry according to the initial function information, searching a near jump instruction corresponding to the initial function entry, jumping to a target memory space address according to the near jump instruction, acquiring a far jump instruction stored in the target memory space address, and jumping to a space address corresponding to the target function according to the far jump instruction.
And when the plug-in loading type is the newly added function loading type, acquiring the current running process of the target Internet of things equipment and the function address of the current running process, and modifying the register execution function of the current running process according to the function address and the plug-in to be loaded.
In the first embodiment, when the target internet of things equipment is in an operating state, a plug-in modification event of the target internet of things equipment is obtained, when the plug-in modification event is a preset plug-in loading event, a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded are determined according to the plug-in modification event, a target plug-in loading strategy is determined according to the plug-in loading type, and the plug-in to be loaded is loaded according to the target plug-in loading strategy; compared with the existing mode of stopping the internet of things equipment and then installing the plug-in, in the embodiment, when the target internet of things equipment is in the running state, the target plug-in loading strategy is determined by detecting the plug-in modification event, and the plug-in to be loaded is loaded according to the target plug-in loading strategy, so that the defect that the plug-in loading of the internet of things equipment cannot be carried out under the condition of not stopping running in the prior art is overcome, the plug-in loading process of the internet of things equipment can be optimized, and the plug-in loading requirements of various kinds of internet of things equipment are met.
Referring to fig. 3, fig. 3 is a schematic flowchart of a plug-in loading method for internet of things equipment according to a second embodiment of the present invention, and the second embodiment of the plug-in loading method for internet of things equipment according to the present invention is provided based on the first embodiment shown in fig. 2.
In the second embodiment, the step S10 includes:
step S101: and when the target Internet of things equipment is in the running state, acquiring equipment information of the target Internet of things equipment.
It should be noted that the target internet of things device may be an authorized device that establishes a communication connection with the cloud server in advance, which is not limited in this embodiment.
The device information may be device model information, and the like, which is not limited in this embodiment.
It can be understood that the obtaining of the device information of the target internet of things device may be searching for device information corresponding to the target internet of things device in a preset storage area. The preset storage area may be a storage area preset by a user and used for storing information of the internet of things device, which is not limited in this embodiment.
Step S102: and determining a to-be-monitored plug-in directory table according to the equipment information, and acquiring a plug-in modification event of the to-be-monitored plug-in directory table.
It should be noted that the plug-in modification event of the plug-in directory table to be monitored may be an addition, rewrite, or deletion event of the plug-in directory table to be monitored.
It should be understood that the determining of the list table of the plug-in to be monitored according to the device information may be to look up the list table of the plug-in to be monitored corresponding to the device information.
It can be understood that, the obtaining of the plug-in modification event of the plug-in directory table to be monitored may be monitoring the plug-in directory table to be monitored so as to obtain the plug-in modification event of the plug-in directory table to be monitored.
Further, in order to improve the reliability of the plug-in modification event, the step S102 includes:
searching a to-be-monitored plug-in directory table corresponding to the equipment information, and acquiring operation information of the to-be-monitored target table;
and extracting the identification of the operation information to obtain an information identification, and determining a plug-in modification event according to the information identification.
It should be understood that, the looking up the to-be-monitored plug-in directory table corresponding to the device information may be to look up the to-be-monitored plug-in directory table corresponding to the device information in the preset device information table. The plug-in directory table to be monitored comprises a corresponding relation between the device information and the plug-in directory table to be monitored, and the corresponding relation between the device information and the plug-in directory table to be monitored can be preset by a user.
It should be noted that the operation information may be operation information such as addition, rewriting, deletion, and the like, and the identification information may be an identifier for identifying a type of the operation information, which is not limited in this embodiment.
In the second embodiment, when the target internet of things device is in the running state, the device information of the target internet of things device is obtained, the directory table of the plug-in to be monitored is determined according to the device information, and the plug-in modification event of the directory table of the plug-in to be monitored is obtained, so that the plug-in modification event can be rapidly determined.
In the second embodiment, before the step S20, the method further includes:
step S110: and performing feature extraction on the plug-in modification event to obtain event features.
It should be noted that the event feature may be a feature used to represent a plug-in modification event, and the present embodiment is not limited to this.
Step S120: and judging whether the plug-in modification event is a preset plug-in loading event or not according to the event characteristics.
It should be understood that, the determining, according to the event feature, whether the plug-in modification event is the preset plug-in loading event may be matching the event feature with an event feature corresponding to the preset plug-in loading event to obtain a matching result, and determining, according to the matching result, whether the plug-in modification event is the preset plug-in loading event.
In the second embodiment, the event characteristics are obtained by extracting the characteristics of the plug-in modification event, and whether the plug-in modification event is a preset plug-in loading event or not is judged according to the event characteristics, so that the accuracy of judging the preset plug-in loading event can be improved.
In the second embodiment, the step S20 includes:
step S201: and when the plug-in modification event is a preset plug-in loading event, extracting information of the plug-in modification event to obtain a plug-in to be loaded.
It should be understood that, the information extraction is performed on the plug-in modification events, and the obtaining of the plug-ins to be loaded may be to traverse the plug-in modification events one by one, obtain a traversal result, and determine the plug-ins to be loaded according to the traversal result.
Step S202: and matching the plug-in modification event with a preset modification event to obtain a matching result, and determining the plug-in loading type of the plug-in to be loaded according to the matching result.
It should be noted that the preset modification event may be preset by a user, for example, a new function event and a replacement function event, which is not limited in this embodiment.
It should be understood that the preset modification event is traversed, the traversed preset modification event is used as a modification event to be matched, the plug-in modification event is matched with the modification event to be matched to obtain a matching result, and after the traversal of the preset modification event is finished, the plug-in loading type of the plug-in to be loaded is determined according to the matching result.
In the second embodiment, when the plug-in modification event is a preset plug-in loading event, extracting information of the plug-in modification event to obtain a plug-in to be loaded, matching the plug-in modification event with the preset modification event to obtain a matching result, and determining the plug-in loading type of the plug-in to be loaded according to the matching result, so that the plug-in loading type of the plug-in to be loaded can be quickly determined.
In the second embodiment, the step S30 includes:
step S301: and when the plug-in loading type is the replacing function loading type, determining a plug-in to be replaced and a target function according to the plug-in to be loaded.
It should be understood that, the determining of the plug-in to be loaded and the target function according to the plug-in to be loaded may be to extract information of the plug-in to be loaded, and obtain the plug-in to be replaced and the target function.
Step S302: and acquiring initial function information of the plug-in to be loaded, and determining an initial function inlet according to the initial function information.
It is to be understood that the determining of the initial function entry according to the initial function information may be looking up the initial function entry corresponding to the initial function information in a preset function information table. The preset function information table includes a corresponding relationship between the initial function information and the initial function entry, and the corresponding relationship between the initial function information and the initial function entry may be preset by a user.
Step S303: and searching a near jump instruction corresponding to the initial function inlet, and jumping to a target memory space address according to the near jump instruction.
It should be understood that, in the plug-in loading method of this embodiment, based on the inline hook technology, the first instruction at the entry of the initial function is modified to be the near jump instruction, and the program jumps to the memory space address storing the far jump instruction, so that when the program is executed to the initial function, the program jumps to the actual original jump instruction, and then jumps to the entry of the target function for execution. Because the far jump usually needs a plurality of instructions to realize, through the technology of the scheme, only one instruction of the initial function needs to be modified to carry out the jump twice, when the program is executed to the entry of the initial function, the jump is directly executed without suspending the process, and the hook failure condition caused by the halt failure is avoided.
It can be understood that if a remote jump instruction is used to jump when a program is executed to an entry of an initial function, a great change needs to be made to the initial function, for example, 5 instructions of the initial function may need to be changed, but such a great change to the initial function may result in complex function repair and difficult maintenance. In the scheme, when the program is executed to the initial function entrance, the near jump instruction corresponding to the initial function entrance is determined, the far jump instruction is not set at the initial function entrance, and only 1 instruction needs to be changed when the near jump instruction is set at the initial function, so that the change of the initial function is reduced, the difficulty of function repair is reduced, and the maintenance is more convenient.
Further, in consideration of practical application, a near jump instruction corresponding to the initial function entry is directly searched, and a target memory space address is jumped to according to the near jump instruction, which inevitably results in excessive objects involved in a processing process and excessive computation. To overcome this drawback, step S303 includes:
searching a near jump instruction corresponding to the initial function entry in a preset first mapping relation table, wherein the preset first mapping relation table comprises the corresponding relation between the function entry and the near jump instruction;
and searching a target memory space address corresponding to the near jump instruction in a preset second mapping relation table, and jumping to the target memory space address.
It should be noted that, the correspondence between the function entry and the close jump instruction may be preset by a user, which is not limited in this embodiment.
The preset second mapping relation table includes a corresponding relation between the near jump instruction and the target memory space address, wherein the corresponding relation between the near jump instruction and the target memory space address may be preset by a user.
Further, in order to improve the reliability of the first mapping relation table, before the preset first mapping relation table includes a corresponding relation between a function entry and a near jump instruction, the method further includes:
modifying a first instruction of a function entry to be selected to obtain a near jump instruction to be selected;
and establishing a preset first mapping relation table according to the function entry to be selected and the near jump instruction to be selected.
It should be understood that, because a far jump instruction needs to modify a plurality of instructions of a function, and a near jump instruction only needs to modify one instruction of the function, in order to achieve a better jump effect and improve the jump effect, the first instruction of the function entry to be selected may be modified to obtain the near jump instruction to be selected.
It can be understood that, according to the above steps, a candidate near jump instruction may be set for each candidate function entry of the candidate function, and the candidate function entry and the candidate near jump instruction have a corresponding relationship, and in order to more conveniently record the corresponding relationship therebetween and facilitate subsequent execution, a preset first mapping relationship table may be established according to the candidate function entry and the candidate near jump instruction. The corresponding relation between the function entry to be selected and the near jump instruction to be selected is recorded in the preset first mapping relation table.
Further, in order to avoid that a plurality of near jump instructions jump to the same far jump instruction, which results in slow program progress, different corresponding far jump instructions may be set for the near jump instructions of different initial functions, so as to achieve a better jump effect, the searching for a target memory space address corresponding to the near jump instruction in a preset second mapping relation table, and jumping to a position before the target memory space address, further includes:
distributing a corresponding to-be-selected memory space address for the to-be-selected near jump instruction, wherein the to-be-selected memory space address stores a to-be-selected far jump instruction;
and establishing a preset second mapping relation table according to the to-be-selected near jump instruction and the to-be-selected memory space address.
It should be understood that after the to-be-selected near jump instruction is obtained, a corresponding to-be-selected memory space address may be allocated to each to-be-selected near jump instruction, and then a preset second mapping list may be established according to the to-be-selected near jump instruction and the to-be-selected memory space address. And the preset second mapping list records the corresponding relation between the to-be-selected near jump instruction and the to-be-selected memory space address.
It can be understood that each to-be-selected memory space address stores a to-be-selected far jump instruction, when jumping to the to-be-selected memory space address, the to-be-selected far jump instruction stored therein can be acquired, and far jump is performed through the to-be-selected far jump instruction.
Step S304: and acquiring a far jump instruction stored in the target memory space address, and jumping to a space address corresponding to a target function according to the far jump instruction.
It can be understood that, since the far jump instruction is stored in the target memory space address, the far jump instruction stored in the target memory space address can be acquired after jumping to the target memory space address according to the near jump instruction.
It should be appreciated that after the far jump instruction is fetched, the far jump instruction may be executed to jump to the spatial address corresponding to the target function. Through the steps, a far jump instruction does not need to be arranged at the entrance of the target function, but only a near jump instruction needs to be arranged at the entrance of the target function, and the far jump is realized through a mode of two jumps.
In a second embodiment, when the plug-in loading type is a replacement function loading type, determining a plug-in to be replaced and a target function according to the plug-in to be loaded, acquiring initial function information of the plug-in to be loaded, determining an initial function entry according to the initial function information, searching a near jump instruction corresponding to the initial function entry, jumping to a target memory space address according to the near jump instruction, acquiring a far jump instruction stored in the target memory space address, and jumping to a space address corresponding to the target function according to the far jump instruction, so that far jump in a hook process can be realized in a two-jump manner, and replacement function loading of the plug-in to be loaded is realized.
Referring to fig. 4, fig. 4 is a flowchart illustrating a plug-in loading method for an internet of things device according to a third embodiment of the present invention, and the third embodiment of the plug-in loading method for the internet of things device according to the present invention is provided based on the second embodiment illustrated in fig. 3.
In the third embodiment, the step S30 includes:
step S301': and when the plug-in loading type is the newly added function loading type, acquiring the current running process of the target Internet of things equipment and the function address of the current running process.
It should be noted that the current running process may be a running process of a currently running application of the target internet of things device.
It should be understood that the obtaining of the current running process of the target internet of things device and the function address of the current running process may be detecting the current running process of the target internet of things device and the function address of the current running process in real time.
Step S302': and modifying the register execution function of the current running process according to the function address and the plug-in to be loaded.
It should be understood that, modifying the register execution function of the currently running process according to the function address and the plug-in to be loaded may be determining an objective function according to the plug-in to be loaded, and modifying the register execution function of the currently running process into the objective function according to the function address.
Further, in order to ensure the reliability of the register executing the function modification, the step S202' includes:
determining the pointing position of a current register according to the function address, and determining a current execution instruction according to the pointing position of the current register;
and modifying the register execution function of the current running process according to the current execution instruction and the plug-in to be loaded.
It should be understood that, modifying the register execution function of the currently running process according to the currently executed instruction and the plug-in to be loaded may be determining an objective function according to the plug-in to be loaded, and modifying the register execution function of the currently running process into the objective function according to the currently executed instruction.
In a third embodiment, when the plug-in loading type is a newly added function loading type, the current running process of the target internet of things device and the function address of the current running process are obtained, and the register execution function of the current running process is modified according to the function address and the plug-in to be loaded, so that the function can be executed by modifying the register, and the newly added function loading of the plug-in to be loaded is realized.
In the third embodiment, after the step S30, the method further includes:
step S40: and after the plug-in to be loaded is loaded, generating reminding information according to the plug-in to be loaded.
It should be understood that the generation of the reminding information according to the plug-in to be loaded may be to acquire the plug-in information of the plug-in to be loaded and use the plug-in information as the reminding information.
Step S50: and searching for the management terminal equipment corresponding to the target Internet of things equipment, and sending the reminding information to the management terminal equipment.
It can be understood that the searching for the management end device corresponding to the target internet of things device may be searching for the management end device corresponding to the target internet of things device in a preset management end device table. The preset management end device table includes a corresponding relationship between the target internet of things device and the management end device, the corresponding relationship between the target internet of things device and the management end device can be preset by a user, and this embodiment is not limited to this.
In a third embodiment, after the plug-in to be loaded is loaded, a reminding message is generated according to the plug-in to be loaded, a management terminal device corresponding to the target internet of things device is searched, and the reminding message is sent to the management terminal device, so that a management terminal user can be reminded of the completion of the loading of the plug-in to be loaded in time.
In addition, an embodiment of the present invention further provides a storage medium, where a plug-in loader of the internet of things device is stored on the storage medium, and when being executed by a processor, the plug-in loader of the internet of things device implements the steps of the plug-in loading method of the internet of things device described above.
In addition, referring to fig. 5, an embodiment of the present invention further provides a plug-in loading device for an internet of things device, where the plug-in loading device for the internet of things device includes: the device comprises an acquisition module 10, a determination module 20 and a loading module 30;
the obtaining module 10 is configured to obtain a plug-in modification event of a target internet of things device when the target internet of things device is in an operating state.
It should be noted that the target internet of things device may be an authorized device that establishes a communication connection with the cloud server in advance, which is not limited in this embodiment.
It can be understood that the obtaining of the plug-in modification event of the target internet of things device may be obtaining device information of the target internet of things device when the target internet of things device is in an operating state, determining a directory table of the plug-in to be monitored according to the device information, and obtaining the plug-in modification event of the directory table of the plug-in to be monitored.
It should be noted that the plug-in modification event of the plug-in directory table to be monitored may be an addition, rewrite, or deletion event of the plug-in directory table to be monitored.
The determining module 20 is configured to determine, according to the plug-in modification event, a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded when the plug-in modification event is a preset plug-in loading event.
It can be understood that, when the plug-in modification event is a preset plug-in loading event, determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event may be that, when the plug-in modification event is a preset plug-in loading event, extracting information of the plug-in modification event to obtain a plug-in to be loaded, matching the plug-in modification event with the preset modification event to obtain a matching result, and determining the plug-in loading type of the plug-in to be loaded according to the matching result.
It should be noted that the preset modification event may be preset by a user, for example, a new function event and a replacement function event, which is not limited in this embodiment.
It should be understood that the preset modification event is traversed, the traversed preset modification event is used as a modification event to be matched, the plug-in modification event is matched with the modification event to be matched to obtain a matching result, and after the traversal of the preset modification event is finished, the plug-in loading type of the plug-in to be loaded is determined according to the matching result.
The loading module 30 is configured to determine a target plug-in loading policy according to the plug-in loading type, and load the plug-in to be loaded according to the target plug-in loading policy.
It should be noted that the plug-in loading types include: the replacement function load type and the new function load type are not limited in this embodiment.
It should be understood that, when the plug-in loading type is a replacement function loading type, determining a plug-in to be replaced and a target function according to the plug-in to be loaded, acquiring initial function information of the plug-in to be loaded, determining an initial function entry according to the initial function information, searching a near jump instruction corresponding to the initial function entry, jumping to a target memory space address according to the near jump instruction, acquiring a far jump instruction stored in the target memory space address, and jumping to a space address corresponding to the target function according to the far jump instruction.
And when the plug-in loading type is the newly added function loading type, acquiring the current running process of the target Internet of things equipment and the function address of the current running process, and modifying the register execution function of the current running process according to the function address and the plug-in to be loaded.
In this embodiment, when the target internet of things device is in an operating state, a plug-in modification event of the target internet of things device is obtained, when the plug-in modification event is a preset plug-in loading event, a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded are determined according to the plug-in modification event, a target plug-in loading policy is determined according to the plug-in loading type, and the plug-in to be loaded is loaded according to the target plug-in loading policy; compared with the existing mode of stopping the internet of things equipment and then installing the plug-in, in the embodiment, when the target internet of things equipment is in the running state, the target plug-in loading strategy is determined by detecting the plug-in modification event, and the plug-in to be loaded is loaded according to the target plug-in loading strategy, so that the defect that the plug-in loading of the internet of things equipment cannot be carried out under the condition of not stopping running in the prior art is overcome, the plug-in loading process of the internet of things equipment can be optimized, and the plug-in loading requirements of various kinds of internet of things equipment are met.
Other embodiments or specific implementation manners of the plug-in loading device of the internet of things device may refer to the above method embodiments, and details are not described here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
The invention discloses A1 and a plug-in loading method of Internet of things equipment, wherein the plug-in loading method of the Internet of things equipment comprises the following steps:
when target Internet of things equipment is in an operating state, acquiring a plug-in modification event of the target Internet of things equipment;
when the plug-in modification event is a preset plug-in loading event, determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event;
and determining a target plug-in loading strategy according to the plug-in loading type, and loading the plug-in to be loaded according to the target plug-in loading strategy.
A2, the plug-in loading method for internet of things equipment as described in a1, where the step of determining a target plug-in loading policy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading policy specifically includes:
when the plug-in loading type is a replacing function loading type, determining a plug-in to be replaced and a target function according to the plug-in to be loaded;
acquiring initial function information of the plug-in to be loaded, and determining an initial function inlet according to the initial function information;
searching a near jump instruction corresponding to the initial function inlet, and jumping to a target memory space address according to the near jump instruction;
and acquiring a far jump instruction stored in the target memory space address, and jumping to a space address corresponding to a target function according to the far jump instruction.
A3, the plug-in loading method for internet of things equipment according to a2, where the step of searching for a near jump instruction corresponding to the initial function entry and jumping to a target memory space address according to the near jump instruction specifically includes:
searching a near jump instruction corresponding to the initial function entry in a preset first mapping relation table, wherein the preset first mapping relation table comprises the corresponding relation between the function entry and the near jump instruction;
and searching a target memory space address corresponding to the near jump instruction in a preset second mapping relation table, and jumping to the target memory space address.
A4, the plug-in loading method for internet of things equipment according to A3, where the near jump instruction corresponding to the initial function entry is searched for in a preset first mapping table, and before the step of including a correspondence between a function entry and a near jump instruction in the preset first mapping table, the plug-in loading method for internet of things equipment further includes:
modifying a first instruction of a function entry to be selected to obtain a near jump instruction to be selected;
and establishing a preset first mapping relation table according to the function entry to be selected and the near jump instruction to be selected.
A5, the plug-in loading method for internet of things equipment according to a4, where before the step of searching for the target memory space address corresponding to the near jump instruction in a preset second mapping relationship table and jumping to the target memory space address, the plug-in loading method for internet of things equipment further includes:
distributing a corresponding to-be-selected memory space address for the to-be-selected near jump instruction, wherein the to-be-selected memory space address stores a to-be-selected far jump instruction;
and establishing a preset second mapping relation table according to the to-be-selected near jump instruction and the to-be-selected memory space address.
A6, the plug-in loading method for internet of things equipment as described in a1, where the step of determining a target plug-in loading policy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading policy specifically includes:
when the plug-in loading type is a new function loading type, acquiring a current running process of the target Internet of things equipment and a function address of the current running process;
and modifying the register execution function of the current running process according to the function address and the plug-in to be loaded.
A7, the method for loading a plug-in of an internet of things device as described in a6, where the step of modifying the register of the currently running process to execute a function according to the function address and the plug-in to be loaded specifically includes:
determining the pointing position of a current register according to the function address, and determining a current execution instruction according to the pointing position of the current register;
and modifying the register execution function of the current running process according to the current execution instruction and the plug-in to be loaded.
A8, the method for loading a plug-in of an internet of things device as defined in any one of a1-a7, wherein the step of obtaining a plug-in modification event of a target internet of things device when the target internet of things device is in a running state specifically includes:
when target Internet of things equipment is in an operating state, acquiring equipment information of the target Internet of things equipment;
and determining a to-be-monitored plug-in directory table according to the equipment information, and acquiring a plug-in modification event of the to-be-monitored plug-in directory table.
A9, the plug-in loading method for internet of things equipment as described in A8, wherein the step of determining a directory table of plug-ins to be monitored according to the equipment information and obtaining a plug-in modification event of the directory table of plug-ins to be monitored specifically includes:
searching a to-be-monitored plug-in directory table corresponding to the equipment information, and acquiring operation information of the to-be-monitored target table;
and extracting the identification of the operation information to obtain an information identification, and determining a plug-in modification event according to the information identification.
A10, the plug-in loading method for internet of things equipment according to a9, wherein before the step of determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event when the plug-in modification event is a preset plug-in loading event, the plug-in loading method for internet of things equipment further includes:
performing feature extraction on the plug-in modification event to obtain event features;
and judging whether the plug-in modification event is a preset plug-in loading event or not according to the event characteristics.
A11, the plug-in loading method for internet of things equipment according to any one of a1-a7, wherein when the plug-in modification event is a preset plug-in loading event, the step of determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event specifically includes:
when the plug-in modification event is a preset plug-in loading event, extracting information of the plug-in modification event to obtain a plug-in to be loaded;
and matching the plug-in modification event with a preset modification event to obtain a matching result, and determining the plug-in loading type of the plug-in to be loaded according to the matching result.
A12, in the plug-in loading method for an internet of things device according to any one of a1-a7, after the steps of determining a target plug-in loading policy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading policy, the plug-in loading method for an internet of things device further includes:
after the plug-in to be loaded is loaded, generating reminding information according to the plug-in to be loaded;
and searching for the management terminal equipment corresponding to the target Internet of things equipment, and sending the reminding information to the management terminal equipment.
The invention discloses B13 and plug-in loading equipment of Internet of things equipment, wherein the plug-in loading equipment of the Internet of things equipment comprises: the device comprises a memory, a processor and a plug-in loader of the internet of things device, wherein the plug-in loader of the internet of things device is stored in the memory and can run on the processor, and when being executed by the processor, the plug-in loader of the internet of things device realizes the steps of the plug-in loading method of the internet of things device.
The invention discloses C14 and a storage medium, wherein a plug-in loader of Internet of things equipment is stored in the storage medium, and the plug-in loader of the Internet of things equipment realizes the steps of the plug-in loading method of the Internet of things equipment when being executed by a processor.
The invention discloses D15 and a plug-in loading device of Internet of things equipment, wherein the plug-in loading device of the Internet of things equipment comprises: the device comprises an acquisition module, a determination module and a loading module;
the acquisition module is used for acquiring a plug-in modification event of the target Internet of things equipment when the target Internet of things equipment is in an operating state;
the determining module is used for determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event when the plug-in modification event is a preset plug-in loading event;
and the loading module is used for determining a target plug-in loading strategy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading strategy.
D16, the plug-in loading device of internet of things device recited in D15, where the loading module is further configured to determine, according to the plug-in to be loaded, a plug-in to be replaced and a target function when the plug-in loading type is a replacement function loading type;
the loading module is further used for acquiring initial function information of the plug-in to be loaded and determining an initial function inlet according to the initial function information;
the loading module is further configured to search for a near jump instruction corresponding to the initial function entry, and jump to a target memory space address according to the near jump instruction;
and the loading module is also used for acquiring a far jump instruction stored in the target memory space address and jumping to a space address corresponding to a target function according to the far jump instruction.
D17, the plug-in loading device of internet of things equipment according to D16, where the loading module is further configured to search for a near jump instruction corresponding to the initial function entry in a preset first mapping table, where the preset first mapping table includes a correspondence between the function entry and the near jump instruction;
the loading module is further configured to search a target memory space address corresponding to the near jump instruction in a preset second mapping relation table, and jump to the target memory space address.
D18, the plug-in loading device of internet of things device as recited in D17, where the loading module is further configured to modify a first instruction of a function entry to be selected, so as to obtain a near jump instruction to be selected;
the loading module is further configured to establish a preset first mapping relation table according to the function entry to be selected and the near jump instruction to be selected.
D19, the plug-in loading device of internet of things equipment according to D18, where the loading module is further configured to allocate a corresponding to-be-selected memory space address to the to-be-selected near jump instruction, where the to-be-selected memory space address stores a to-be-selected far jump instruction;
and the loading module is also used for establishing a preset second mapping relation table according to the to-be-selected near jump instruction and the to-be-selected memory space address.
D20, the plug-in loading apparatus for internet of things device as described in D15, where the loading module is further configured to obtain a current running process of the target internet of things device and a function address of the current running process when the plug-in loading type is a new added function loading type;
and the loading module is also used for modifying the register execution function of the current running process according to the function address and the plug-in to be loaded.

Claims (10)

1. A plug-in loading method of Internet of things equipment is characterized by comprising the following steps:
when target Internet of things equipment is in an operating state, acquiring a plug-in modification event of the target Internet of things equipment;
when the plug-in modification event is a preset plug-in loading event, determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event;
and determining a target plug-in loading strategy according to the plug-in loading type, and loading the plug-in to be loaded according to the target plug-in loading strategy.
2. The plug-in loading method for internet of things equipment according to claim 1, wherein the step of determining a target plug-in loading policy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading policy specifically comprises:
when the plug-in loading type is a replacing function loading type, determining a plug-in to be replaced and a target function according to the plug-in to be loaded;
acquiring initial function information of the plug-in to be loaded, and determining an initial function inlet according to the initial function information;
searching a near jump instruction corresponding to the initial function inlet, and jumping to a target memory space address according to the near jump instruction;
and acquiring a far jump instruction stored in the target memory space address, and jumping to a space address corresponding to a target function according to the far jump instruction.
3. The plug-in loading method for internet of things equipment according to claim 2, wherein the step of searching for a near jump instruction corresponding to the initial function entry and jumping to a target memory space address according to the near jump instruction specifically comprises:
searching a near jump instruction corresponding to the initial function entry in a preset first mapping relation table, wherein the preset first mapping relation table comprises the corresponding relation between the function entry and the near jump instruction;
and searching a target memory space address corresponding to the near jump instruction in a preset second mapping relation table, and jumping to the target memory space address.
4. The plug-in loading method for internet of things equipment according to claim 3, wherein before the step of looking up the near jump instruction corresponding to the initial function entry in a preset first mapping table, where the preset first mapping table includes a correspondence between the function entry and the near jump instruction, the plug-in loading method for internet of things equipment further includes:
modifying a first instruction of a function entry to be selected to obtain a near jump instruction to be selected;
and establishing a preset first mapping relation table according to the function entry to be selected and the near jump instruction to be selected.
5. The plug-in loading method for internet of things equipment according to claim 4, wherein before the step of searching the target memory space address corresponding to the near jump instruction in the preset second mapping relation table and jumping to the target memory space address, the plug-in loading method for internet of things equipment further comprises:
distributing a corresponding to-be-selected memory space address for the to-be-selected near jump instruction, wherein the to-be-selected memory space address stores a to-be-selected far jump instruction;
and establishing a preset second mapping relation table according to the to-be-selected near jump instruction and the to-be-selected memory space address.
6. The plug-in loading method for internet of things equipment according to claim 1, wherein the step of determining a target plug-in loading policy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading policy specifically comprises:
when the plug-in loading type is a new function loading type, acquiring a current running process of the target Internet of things equipment and a function address of the current running process;
and modifying the register execution function of the current running process according to the function address and the plug-in to be loaded.
7. The plug-in loading method for internet of things equipment according to claim 6, wherein the step of modifying the register execution function of the currently running process according to the function address and the plug-in to be loaded specifically comprises:
determining the pointing position of a current register according to the function address, and determining a current execution instruction according to the pointing position of the current register;
and modifying the register execution function of the current running process according to the current execution instruction and the plug-in to be loaded.
8. The utility model provides a plug-in loading equipment of thing networking equipment which characterized in that, plug-in loading equipment of thing networking equipment includes: a memory, a processor and a plug-in loader of an internet of things device stored on the memory and operable on the processor, the plug-in loader of the internet of things device implementing the steps of the plug-in loading method of the internet of things device as claimed in any one of claims 1 to 7 when executed by the processor.
9. A storage medium, wherein the storage medium stores thereon a plug-in loader of an internet of things device, and when being executed by a processor, the plug-in loader of the internet of things device implements the steps of the plug-in loading method of the internet of things device according to any one of claims 1 to 7.
10. The utility model provides a plug-in components loading device of thing networking equipment which characterized in that, plug-in components loading device of thing networking equipment includes: the device comprises an acquisition module, a determination module and a loading module;
the acquisition module is used for acquiring a plug-in modification event of the target Internet of things equipment when the target Internet of things equipment is in an operating state;
the determining module is used for determining a plug-in to be loaded and a plug-in loading type of the plug-in to be loaded according to the plug-in modification event when the plug-in modification event is a preset plug-in loading event;
and the loading module is used for determining a target plug-in loading strategy according to the plug-in loading type and loading the plug-in to be loaded according to the target plug-in loading strategy.
CN202011557907.XA 2020-12-23 2020-12-23 Plug-in loading method, equipment, storage medium and device of Internet of things equipment Active CN112559085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011557907.XA CN112559085B (en) 2020-12-23 2020-12-23 Plug-in loading method, equipment, storage medium and device of Internet of things equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011557907.XA CN112559085B (en) 2020-12-23 2020-12-23 Plug-in loading method, equipment, storage medium and device of Internet of things equipment

Publications (2)

Publication Number Publication Date
CN112559085A true CN112559085A (en) 2021-03-26
CN112559085B CN112559085B (en) 2022-11-04

Family

ID=75034034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011557907.XA Active CN112559085B (en) 2020-12-23 2020-12-23 Plug-in loading method, equipment, storage medium and device of Internet of things equipment

Country Status (1)

Country Link
CN (1) CN112559085B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7886287B1 (en) * 2003-08-27 2011-02-08 Avaya Inc. Method and apparatus for hot updating of running processes
CN106055330A (en) * 2016-05-31 2016-10-26 深圳卡尔拓客科技有限公司 Management method and system of application program
CN106161100A (en) * 2016-08-03 2016-11-23 青岛海信电器股份有限公司 A kind of internet of things equipment collocation method and internet-of-things terminal
WO2017096917A1 (en) * 2015-12-11 2017-06-15 中兴通讯股份有限公司 Method and apparatus for injecting hot patch
CN111324359A (en) * 2020-02-27 2020-06-23 支付宝(杭州)信息技术有限公司 Plug-in deployment method and device
CN111970140A (en) * 2020-06-28 2020-11-20 格创东智(深圳)科技有限公司 Real-time processing method and system based on hot update

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7886287B1 (en) * 2003-08-27 2011-02-08 Avaya Inc. Method and apparatus for hot updating of running processes
WO2017096917A1 (en) * 2015-12-11 2017-06-15 中兴通讯股份有限公司 Method and apparatus for injecting hot patch
CN106055330A (en) * 2016-05-31 2016-10-26 深圳卡尔拓客科技有限公司 Management method and system of application program
CN106161100A (en) * 2016-08-03 2016-11-23 青岛海信电器股份有限公司 A kind of internet of things equipment collocation method and internet-of-things terminal
CN111324359A (en) * 2020-02-27 2020-06-23 支付宝(杭州)信息技术有限公司 Plug-in deployment method and device
CN111970140A (en) * 2020-06-28 2020-11-20 格创东智(深圳)科技有限公司 Real-time processing method and system based on hot update

Also Published As

Publication number Publication date
CN112559085B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN108667855B (en) Network flow abnormity monitoring method and device, electronic equipment and storage medium
CN111258680B (en) Resource loading method and device, storage medium and electronic device
CN105426310A (en) Method and apparatus for detecting performance of target process
CN113835713B (en) Source code packet downloading method, device, computer equipment and storage medium
CN106354536A (en) Method and device of loading ELF file of Linux system in Windows system
CN113961936A (en) Trusted white list construction method, system and device and computer equipment
CN115576600A (en) Code change-based difference processing method and device, terminal and storage medium
CN110674434A (en) Method and device for releasing browsing resources
CN112559085B (en) Plug-in loading method, equipment, storage medium and device of Internet of things equipment
CN112417449A (en) Abnormal behavior detection method, equipment, storage medium and device
CN112256295A (en) Application program updating method, device, equipment and storage medium
CN110727436A (en) Operation interface script execution method and device, terminal equipment and storage medium
CN113778841A (en) Detection method, device and equipment for file to be tested and storage medium
CN102752151B (en) Measuring and controlling product management method and device based on flexibility testing technology
CN110309000B (en) Application update prompting method and terminal equipment
CN113609478A (en) IOS platform application program tampering detection method and device
CN114519477A (en) Large data platform tenant management system, method, storage medium and electronic equipment
CN111338946A (en) Android simulator detection method and device
CN115988057B (en) Quick connection method, storage medium and equipment for database cluster
CN112559920B (en) Hook method, device and equipment based on jump instruction and storage medium
CN113885963B (en) Secondary development file execution method, device and storage medium
CN112541182B (en) Kernel VFS layer system repairing method, device, equipment and storage medium
CN113608996B (en) Mirror image compiling test method, system, device and readable storage medium
CN116010467B (en) Risk discovery method, device, equipment and storage medium based on communication map
CN112035310A (en) USB flash disk ID detection method, device, 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
GR01 Patent grant
GR01 Patent grant