CN107957887A - A kind of component loading method of equipment, device and Internet of things system - Google Patents

A kind of component loading method of equipment, device and Internet of things system Download PDF

Info

Publication number
CN107957887A
CN107957887A CN201610895963.1A CN201610895963A CN107957887A CN 107957887 A CN107957887 A CN 107957887A CN 201610895963 A CN201610895963 A CN 201610895963A CN 107957887 A CN107957887 A CN 107957887A
Authority
CN
China
Prior art keywords
equipment
target element
cloud server
component
executable file
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
CN201610895963.1A
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.)
Banma Zhixing Network Hongkong Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610895963.1A priority Critical patent/CN107957887A/en
Priority to TW106126769A priority patent/TW201814546A/en
Priority to PCT/CN2017/104168 priority patent/WO2018068658A1/en
Publication of CN107957887A publication Critical patent/CN107957887A/en
Pending legal-status Critical Current

Links

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
    • 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

Abstract

The embodiment of the present application provides a kind of component loading method of equipment, wherein the equipment communicates with Cloud Server, the method includes:The equipment formation component load request;The equipment sends the component load request to the Cloud Server;The equipment receives the executable file for the target element that the Cloud Server returns;The executable file of the target element is generated by the Cloud Server according to the component load request;The equipment runs the executable file of the target element, to complete the loading of the target element.In the embodiment of the present application, the executable file of target element is generated by Cloud Server, after equipment receives the executable file of target element, can directly be run to complete the loading of target element, without carrying out symbol reorientation, be reduced the occupancy of equipment computing resource.

Description

A kind of component loading method of equipment, device and Internet of things system
Technical field
This application involves field of computer technology, more particularly to a kind of component loading method of equipment, a kind of equipment Component loading device, a kind of equipment and a kind of Internet of things system.
Background technology
In technology of Internet of things, the internet-of-things terminal equipment such as industrial control equipment, intelligentized Furniture equipment, wearable device can Various sensors can be set to gather various data to communicate by accessing network, in internet-of-things terminal equipment, and led to Network is crossed to carry out data transmission.
In order to reduce cost, internet-of-things terminal equipment is usually all set using computing capability and the embedded of memory resource limitation Standby that each sensor is controlled, embedded device could be realized to sensor after needing the drive component of load sensor Control.
In the prior art, the drive component of each sensor can be preset in embedded device, or dynamic load.It will drive Dynamic component is preset at the mode of embedded device, it is impossible to flexibly updates drive component.It is embedded in existing dynamic load mode , it is necessary to which drive component carries out symbol reorientation after drive component has been downloaded, repositioning process needs to take more formula equipment Computing resource, and drive component includes the information for relocating, and these information committed memory spaces are larger.
The content of the invention
In view of the above problems, it is proposed that the embodiment of the present application overcomes the above problem or at least in part in order to provide one kind A kind of component loading method of the equipment to solve the above problems, a kind of component loading device of corresponding equipment, a kind of equipment with A kind of and Internet of things system.
To solve the above-mentioned problems, the embodiment of the present application discloses a kind of component loading method of equipment, wherein, it is described to set Standby to communicate with Cloud Server, the method includes:
The equipment formation component load request;
The equipment sends the component load request to the Cloud Server;
The equipment receives the executable file for the target element that the Cloud Server returns;The target element is held Style of writing part is generated by the Cloud Server according to the component load request;
The equipment runs the executable file of the target element, to complete the loading of the target element.
Preferably, further include:
The equipment stores the executable file of the target element received into flash memory Flash.
Preferably, the equipment runs the executable file of the target element, to complete the loading of the target element The step of include:
If the executable file of the target element is XIP executive modes, the equipment carries in the flash memory Flash Take the initialization function of the executable file of the target element;
The equipment runs the initialization function, to complete the loading of the target element.
Preferably, the equipment runs the executable file of the target element, to complete the loading of the target element The step of further include:
If the executable file of the target element is not XIP executive modes, the equipment extracts the target group Metadata in the executable file of part;The metadata includes:Initialization function memory address and the executable file pair The component Name answered;
The executable file of the target element after proposing extraction metadata is copied in memory by the equipment;
The equipment runs the initialization function, to complete the loading of the target element.
Preferably, further include:
The equipment receives the component new information that the Cloud Server is sent;
The step of equipment formation component load request, includes:
The equipment determines to need the target element updated according to the component new information;
Component load request of the equipment generation for the target element for needing to update.
Preferably, the executable file of the target element has the interface function of standardization;The interface function is at least Including a following function:Run function, close function, function reading, write-in function and I/O channel management functions.
Preferably, the component load request includes the free memory address space information of the equipment;Or, the cloud clothes The free memory address space information of the equipment is preset in business device;
The executable file of the target element is by file destination of the Cloud Server using target element, the equipment Free memory address space information generation;The file destination of the target element is added by the Cloud Server according to the component Request is carried to obtain.
Preferably, the component load request includes the memory address information of aiming symbol, and the aiming symbol is described Symbol in the equipment that target element needs call;Or, the memory address of aiming symbol is preset in the Cloud Server Information;
The executable file of the target element is by file destination of the Cloud Server using target element, the equipment Free memory address space information and the aiming symbol memory address Info Link generation.
Preferably, the Cloud Server is Internet of Things server, and the target element is the biography that the equipment needs to load The drive component of sensor.
Meanwhile the embodiment of the present application also discloses a kind of component loading method of equipment, wherein, the equipment and cloud service Device communicates, and the method includes:
The component load request that equipment described in the cloud server is sent;
The Cloud Server generates the executable file of target element according to the component load request;
The Cloud Server sends the executable file of the target element to the equipment, and the equipment is used to run institute The executable file of target element is stated, to complete the loading of the target element.
Preferably, the component load request includes the free memory address space information of the equipment;Or, the cloud clothes The free memory address space information of the equipment is preset in business device;
According to the component load request, the step of executable file for generating target element, includes the Cloud Server:
The Cloud Server obtains the file destination of target element according to the component load request;
The Cloud Server uses file destination, the free memory address space information of the target element, generation The executable file of the target element of preset format.
Preferably, the component load request includes the memory address information of aiming symbol, and the aiming symbol is described Symbol in the equipment that target element needs call;Or, the memory address of aiming symbol is preset in the Cloud Server Information;
The Cloud Server uses file destination, the free memory address space information of the target element, generation The step of executable file of the target element of preset format, includes:
The Cloud Server is using the file destination of the target element, the free memory address space information and described The memory address information of aiming symbol is linked, and generates the executable file of the target element of preset format.
Preferably, the step of Cloud Server sends the executable file to the equipment includes:
The executable file of the target element is arranged to XIP executive modes by the Cloud Server;
The executable text of the target element of XIP executive modes is arranged to described in the Cloud Server to equipment transmission Part.
Preferably, further include:
When component updates, the Cloud Server formation component new information;
The Cloud Server sends the component new information to the equipment, and the equipment is used to receive described group After part new information, the component load request is returned.
Preferably, the executable file of the target element has the interface function of standardization;The interface function is at least Including a following function:Run function, close function, function reading, write-in function and I/O channel management functions.
Preferably, the Cloud Server is Internet of Things server, and the target element is the biography that the equipment needs to load The drive component of sensor.
Meanwhile the embodiment of the present application also discloses a kind of component loading device of equipment, wherein, the equipment and cloud service Device communicates, and the device includes:
Module is requested to generate positioned at the equipment, for formation component load request;
Positioned at the request sending module of the equipment, for sending the component load request to the Cloud Server;
Positioned at the file reception module of the equipment, the target element returned for receiving the Cloud Server can perform File;The executable file of the target element is generated by the Cloud Server according to the component load request;
Positioned at the running paper module of the equipment, for running the executable file of the target element, to complete State the loading of target element.
Meanwhile the embodiment of the present application also discloses a kind of component loading device of equipment, wherein, the equipment and cloud service Device communicates, and the device includes:
Positioned at the request receiving module of the Cloud Server, the component load request sent for receiving the equipment;
Positioned at the executable file generation module of the Cloud Server, for according to the component load request, generating mesh Mark the executable file of component;
Positioned at the file sending module of the Cloud Server, for sending the executable of the target element to the equipment File, the equipment is used for the executable file for running the target element, to complete the loading of the target element.
Meanwhile the embodiment of the present application also discloses a kind of equipment, wherein, the equipment communicates with Cloud Server, described Equipment includes:
Processor, for formation component load request;
Output equipment, coupled to the processor, for sending the component load request to the Cloud Server;
Input equipment, coupled to the processor, the target element returned for receiving the Cloud Server can perform File;The executable file of the target element is generated by the Cloud Server according to the component load request;
The processor, is additionally operable to run the executable file for the target element that the input equipment obtains, to complete State the loading of target element.
Meanwhile the embodiment of the present application also discloses a kind of Internet of things system, including:Cloud Server and with the Cloud Server The equipment of communication;
The equipment includes:
Module is requested to generate, for formation component load request;
Request sending module, for sending the component load request to the Cloud Server;
File reception module, the executable file of the target element returned for receiving the Cloud Server;
Running paper module, for running the executable file of the target element, to complete adding for the target element Carry;
The Cloud Server includes:
Request receiving module, the component load request sent for receiving the equipment;
Executable file generation module, for according to the component load request, generating the executable file of target element;
File sending module, for sending the executable file of the target element to the equipment, the equipment is used for The executable file of the target element is run, to complete the loading of the target element.
The embodiment of the present application includes advantages below:
In the embodiment of the present application, when embedded device needs load driver component, embedded device is sent out to Cloud Server Sending component load request, request include the free memory address space information of embedded device.Cloud Server is true according to request Determine the drive component needed for embedded device, and using the free memory address space information generation drive component of embedded device Executable file, the executable file of built-in equipment operation drive component can complete the loading of drive component.With it is existing Dynamic load mode compare, in the embodiment of the present application, Cloud Server according to the free memory address space of embedded device believe Breath, positions the memory address of each symbol of drive component, and needs that uses embedded to set drive component The memory address of standby local symbol is directly positioned as physical memory address of the symbol in the memory headroom of embedded device.It is embedded Formula equipment can directly run the executable file of drive component, without carrying out symbol reorientation, reduce embedded device calculating The occupancy of resource.And the executable file of drive component eliminates the information for symbol reorientation, so as to reduce memory sky Between occupancy.It can also be realized in the embedded device of computing capability and memory resource limitation by method described herein The dynamic load of component.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of the component loading method embodiment 1 of equipment of the application;
Fig. 2 is a kind of step flow chart of the component loading method embodiment 2 of equipment of the application;
Fig. 3 is a kind of flow chart of the dynamic load of drive component of the embodiment of the present application;
Fig. 4 is a kind of flow chart of the dynamic load of drive component of the embodiment of the present application;
Fig. 5 is a kind of step flow chart of the component loading method embodiment 3 of equipment of the application;
Fig. 6 is a kind of structure diagram of the component loading device embodiment 1 of equipment of the application;
Fig. 7 is a kind of structure diagram of the component loading device embodiment 2 of equipment of the application;
Fig. 8 is a kind of hardware structure diagram of apparatus embodiments of the application;
Fig. 9 is a kind of block diagram of Internet of things system embodiment of the application.
Embodiment
It is below in conjunction with the accompanying drawings and specific real to enable the above-mentioned purpose of the application, feature and advantage more obvious understandable Mode is applied to be described in further detail the application.
One of core idea of the embodiment of the present application is, by Cloud Server to the memory address of the symbol of drive component into Row positioning so that embedded device may not need in load driver component carries out symbol repositioning process.
Reference Fig. 1, shows a kind of step flow chart of the component loading method embodiment 1 of equipment of the application, wherein The equipment communicates with Cloud Server, and the method specifically may include steps of:
Step 101, the equipment formation component load request;
Equipment in the embodiment of the present application can be the embedded device of computing capability and memory resource limitation, can also be Computing capability, the mainframe computing devices of memory source abundance.
When equipment needs charging assembly, equipment formation component load request.It can include equipment in component load request Need the mark of target element loaded.
For example, when embedded device calls some sensor first, embedded device needs to load the drive of the sensor Dynamic component, embedded device is according to the drive component formation component load request for needing to load first.
In another example when the drive component of some sensor needs renewal, embedded device is determined according to need to update Component formation component load request.
In embedded device, the executable image Image of embedded device is preset in a device.Executable image includes The main part of operating system, that is, operating system core A PI (Application Programming Interface, Application programming interface), such as task cooperative management module, memory management module.
When built-in equipment operation, executable image is loaded into memory RAM.
Component Component in embedded device can be with the core A PI of the offer of call operation system, when component is added After being downloaded to memory, component can be called kernel API according to the physical memory address of the symbol of core A PI in memory.
In existing component dynamic loading method, outside is not aware that component needs the core A PI that uses in equipment Physical memory address in depositing.Therefore, embedded equipment after component has been downloaded, it is necessary to the symbol of the core A PI arrived to component call Number into the symbol physical memory address in memory of these core As PI, this process is known as symbol and resets for status again for address Position.
Step 102, the equipment sends the component load request to the Cloud Server;
Step 103, the equipment receives the executable file for the target element that the Cloud Server returns;The target group The executable file of part is generated by the Cloud Server according to the component load request;
For Cloud Server after component load request is received, generation equipment needs the executable text of the target element loaded Part.
Cloud Server is during the executable file of generation target element, it is necessary to obtain the memory address letter of aiming symbol The free memory address space information being still not used by breath and equipment.Wherein, aiming symbol refers to that target element needs to adjust Symbol in the equipment used, can specifically include the core A PI of equipment symbol and equipment in the symbol of component that has run.
The symbol of target element is assigned in the free memory address being still not used by by Cloud Server, ensures target element The memory address of symbol will not produce and conflict with the memory address of local symbol in equipment.
Since the memory address of each symbol in the file destination of target element, and the memory address of aiming symbol are all set Physical memory address in standby memory headroom, therefore equipment is after the executable file of target element is received, without carrying out Symbol repositioning process.
Step 104, the equipment runs the executable file of the target element, to complete adding for the target element Carry.
Equipment, can be complete by the executable file of operational objective component after the executable file of target element is received Into the loading of target element.
In the embodiment of the present application, when embedded device needs load driver component, embedded device is sent out to Cloud Server Sending component load request.The executable text of drive component of the Cloud Server according to needed for component load request generates embedded device Part, the executable file of built-in equipment operation drive component can complete the loading of drive component.
Compared with existing dynamic load mode, in the embodiment of the present application, Cloud Server is according to the available of embedded device Memory address space information, positions the memory address of each symbol of drive component, and drive component is needed The memory address for the embedded device local symbol used directly is positioned as reality of the symbol in the memory headroom of embedded device Border memory address.Embedded device can directly run the executable file of drive component, without carrying out symbol reorientation, reduce The occupancy of embedded device computing resource.And the executable file of drive component eliminates the information for symbol reorientation, So as to reduce the occupancy of memory headroom.The application can also be passed through in the embedded device of computing capability and memory resource limitation The method realizes the dynamic load of component.
Reference Fig. 2, shows a kind of step flow chart of the component loading method embodiment 2 of equipment of the application, wherein The equipment communicates with Cloud Server, and the method specifically may include steps of:
Step 201, the equipment formation component load request;
In the embodiment of the present application, the method can also include:
The equipment receives the component new information that the Cloud Server is sent;
The step 201 can specifically include following sub-step:
Sub-step S11, the equipment determine to need the target element updated according to the component new information;
Sub-step S12, component load request of the equipment generation for the target element for needing to update.
Specifically, since various assemblies are stored in Cloud Server, when some component updates.Cloud Server can lead to Know renewal of the equipment component.
For example, when Cloud Server detects the drive component renewal of some sensor, Cloud Server notice equipment can be with Update the drive component.
Step 202, the equipment sends the component load request to the Cloud Server;
Step 203, the equipment receives the executable file for the target element that the Cloud Server returns;The target group The executable file of part is generated by the Cloud Server according to the component load request;
In the embodiment of the present application, the component load request includes the free memory address space information of the equipment; Or, the free memory address space information of the equipment is preset in the Cloud Server;
The executable file of the target element is by file destination of the Cloud Server using target element, the equipment Free memory address space information generation;The file destination of the target element is added by the Cloud Server according to the component Request is carried to obtain.
Available address information can specifically include available address field and address realm.
In oneainstance, free memory address space information can be sent to cloud clothes by equipment in component load request Business device.In another scenario, Cloud Server can get the free memory address space information of equipment in advance, or, in advance It can be free memory address space information to arrange which address.
Further, in the embodiment of the present application, the component load request includes the memory address letter of aiming symbol Breath, the aiming symbol are the symbol in the equipment that target element needs call;It is or, preset in the Cloud Server There is the memory address information of aiming symbol;
The executable file of the target element is by file destination of the Cloud Server using target element, the equipment Free memory address space information and the aiming symbol memory address Info Link generation.
In oneainstance, equipment can send the memory address information of aiming symbol to cloud in component load request Server, for example, the symbol table for the memory address information that have recorded aiming symbol is sent to by equipment by component load request Cloud Server.
In another scenario, Cloud Server can get the memory address information of the aiming symbol in equipment in advance. Specifically, Cloud Server can get the symbol table of equipment in advance, the memory address that being recorded in symbol table has aiming symbol is believed Breath.
After the completion of target element loading, target element can be interacted with the core A PI of equipment.Friendship between component Mutually, it is calling between symbol in symbol and other assemblies in finger assembly.The interaction of component and core A PI, is finger assembly Symbol and core A PI symbol between calling.Symbol is variable and function in finger assembly.
In the embodiment of the present application, the executable file of the target element has the interface function of standardization;It is described to connect Mouth function includes at least a following function:Run function, close function, function reading, write-in function and I/O channel managements Function.
After the completion of target element loading, local component can be carried out with the target element of dynamic download in equipment end Interaction.
In fact, in the embodiment of the present application, above-mentioned standard interface is also equipped with for the component of equipment end local Function.Interacted between various components by the interface function of standardization, so as to avoid producing in interaction huge Symbol table, greatly reduces Footprint occupancy, and Footprint refers to RAM/ROM.
Invoked procedure is carried out with reading the memory address of symbol.In the embodiment of the present application, from Cloud Server The memory address of each symbol in the target element of dynamic download is to be linked to generate by Cloud Server, and Cloud Server is according to setting Free memory address space information in standby is the distribution address of each symbol in target element.So as to ensure target element Memory address does not conflict with the memory address of the symbol of equipment local.
Run function is the function for starting component;Close the function that function is closing assembly;Function reading is that component is used for Read the function of data;Write-in function is the function that component is used to write data;
For example, during component A invocation components B, component A can start component by the run function of component B B.When component A needs the data of reading assembly B, component A can pass through the data of function reading reading assembly B.When component A is needed When writing data to component B, group valency A can write data by writing function to component B.When component A need not call group During part B, component A passes through the closing function of component B, closing assembly B.
I/O channel management functions be component to the function that I/O passages are managed in equipment, for example, the transmission to serial ports Baud rate, mode sensor etc. are controlled.
Step 204, the equipment stores the executable file of the target element received into flash memory Flash;
Equipment stores the executable file of the target element received into the code section address space of flash memory Flash.
Step 205, the equipment runs the executable file of the target element, to complete adding for the target element Carry.
In a kind of preferred exemplary of the embodiment of the present application, the step 205 can specifically include following sub-step:
Sub-step S21, if the executable file of the target element is XIP executive modes, the equipment is in the sudden strain of a muscle Deposit the initialization function for the executable file that the target element is extracted in Flash;
XIP (eXecute In Place, chip is interior to be performed) executive mode, is that one kind can directly be held in flash memory Flash Capable mode, when the executable file of file destination is XIP executive modes, equipment takes in the address field code space of flash memory Go out initialization function.
In the embodiment of the present application, initialization function may have the head of the executable file of file destination, and equipment can To take out initialization function from the head of the executable file of file destination.
Sub-step S22, the equipment runs the initialization function, to complete the loading of the target element.
Equipment completes the loading of target element by running initialization function.In the embodiment of the present application, target element The interface function of standardization be recorded in an interface data structure.After function operation is initialized, the interface data structure The pointer operating system that is recorded to equipment hash map tables in, the titles of various components is maintained in the hash map tables With the pointer of the interface data structure of various components.
In invocation component, the finger of the interface data structure for the component that can be called according to hash map table search to needs Pin.The memory address of the interface data structure of various components is found according to pointer, passes through the memory address of interface data structure The memory address of each interface function of component can be found.
In a kind of preferred exemplary of the embodiment of the present application, the step 204 can also specifically include following sub-step:
Sub-step S23, if the executable file of the target element is not XIP executive modes, the equipment extracts Metadata in the executable file of the target element;The metadata includes:Initialization function memory address and it is described can Perform the corresponding component Name of file;
The executable file of the target element after proposing extraction metadata is copied to by sub-step S24, the equipment In memory;
Sub-step S25, the equipment runs the initialization function, to complete the loading of the target element.
If the executable file of target element is not XIP executive modes, equipment is in the code section address space of flash memory Flash Metadata (initialization function memory address and the corresponding component of the executable file of the middle executable file by target element Title) take out, then the executable file for taking out metadata is copied in memory RAM.Equipment runs initialization function, so that Complete the loading of target element.
After function operation is initialized, the pointer that have recorded the interface data structure of the interface function of component is recorded to and sets In the hash map tables of standby operating system.
In the embodiment of the present application, the Cloud Server is Internet of Things server, and the target element needs for the equipment The drive component for the sensor to be loaded.
With reference to Fig. 3, a kind of flow chart of the dynamic load of drive component of the embodiment of the present application is shown.In the present embodiment In, when equipment is activated for the first time, the drive component load request comprising device identification is sent to Internet of Things server.
Device chip in equipment can register it in Internet of Things server in advance and use sensor before dispatching from the factory Information, such as type information etc., is then associated with the sensor information by the unique device identity of the device chip and deposited Storage.After Internet of Things server receives the drive component load request comprising device identification, it becomes possible to determined according to device identification Go out the sensor informations such as sensor model number associated there.
The pre-registered sensor information of equipment can be returned to equipment by Internet of Things server.
Equipment downloads the executable file of corresponding drive component according to sensor information from Internet of Things server.Specifically , it is a kind of it may is that:Internet of Things server to equipment after sensor information is sent, directly to equipment push sensor letter The executable file of corresponding drive component is ceased, by device downloads and is loaded into operating system, so as to drive the normal work of sensor Make.Another situation is:Internet of Things server after sensor information is sent to equipment, from equipment according to sensor information to thing Networked server sends download request, and Internet of Things server sends the executable file of corresponding drive component according to download request To equipment, by device downloads and operating system is loaded into, so as to drive normal operation of sensor.
There is the source code file of drive component or the file destination of drive component of sensor in Internet of Things server.Drive The file destination of dynamic component is the compiled device of source code file by drive component, compiles the file of generation.Internet of Things server In sensor the source code file of drive component or the file destination of drive component can be by sensor manufacturer upload There is provided.
A kind of flow chart of the dynamic load of drive component of the embodiment of the present application is shown with reference to Fig. 4.
In the present embodiment, when equipment detects the sensor newly connected, the drive component comprising device identification is added Request is carried to send to Internet of Things server.
After Internet of Things server receives component load request, sensor information that detection device newly connects.
Currently exist more ripe sensor information detection technique, the direct use of the application, not to specific Detection mode limited.By this detection technique, Internet of Things server service can get the sensing of equipment connection The sensor informations such as type number.
The sensor information detected is returned to equipment by Internet of Things server.
Equipment downloads the executable file of corresponding drive component according to sensor information from Internet of Things server.Specifically , it is a kind of it may is that:Internet of Things server to equipment after sensor information is sent, directly to equipment push sensor letter The executable file of corresponding drive component is ceased, by device downloads and is loaded into operating system, so as to drive the normal work of sensor Make.Another situation is:Internet of Things server after sensor information is sent to equipment, from equipment according to sensor information to thing Networked server sends download request, and Internet of Things server sends the executable file of corresponding drive component according to download request To equipment, by device downloads and operating system is loaded into, so as to drive normal operation of sensor.
Reference Fig. 5, shows a kind of step flow chart of the component loading method embodiment 3 of equipment of the application, wherein The equipment communicates with Cloud Server, and the method specifically may include steps of:
Step 301, the component load request that equipment described in the cloud server is sent;
In the embodiment of the present application, Cloud Server can be communicated to connect with multiple equipment.It can be wrapped in component load request Device identification is included, Cloud Server can determine it is which equipment have sent component load request according to device identification.
Step 302, the Cloud Server generates the executable file of target element according to the component load request;
In the embodiment of the present application, the Cloud Server is Internet of Things server, and the target element needs for the equipment The drive component for the sensor to be loaded.
In the embodiment of the present application, the component load request includes the free memory address space information of the equipment; Or, the free memory address space information of the equipment is preset in the Cloud Server;
The step 302 can specifically include following sub-step:
Sub-step S31, the Cloud Server obtain the file destination of target element according to the component load request;
File destination is to obtain file after source code file is compiled by compiler.
Specifically, source code file includes:.c file .cpp files .e files.
File destination includes:.obj file .lib files .o files .a files.
In the embodiment of the present application, the file destination of target element or the source code of target element are preset in Cloud Server File.
After cloud server is to component load request, generation is compiled to the source code file of target element at once The file destination of target element.
Sub-step S32, the Cloud Server use file destination, the free memory address space of the target element Information, generates the executable file of the target element of preset format;
Further, in the embodiment of the present application, the component load request includes the memory address information of aiming symbol, Symbol in the equipment that the aiming symbol calls for target element needs;Or, preset in the Cloud Server The memory address information of aiming symbol;
The sub-step S32 may further include:
The Cloud Server is using the file destination of the target element, the free memory address space information and described The memory address information of aiming symbol is linked, and generates the executable file of the target element of preset format.
Executable file is the file of the linked device link generation of file destination.Linker is literary using the target of target element The memory address information of part, free memory address space information and aiming symbol carries out link generation executable file.
Executable file includes:EXE files, dll file, ELF files, SO files.
Since the memory address of each symbol in the file destination of target element, and the memory address of aiming symbol are all set Physical memory address in standby memory headroom, therefore equipment is after the executable file of target element is received, without carrying out Symbol repositioning process.
In order to be distinguished with existing executable file, executable file is positioned as Y-ELF in the embodiment of the present application Form.The executable file of Y-ELF forms only exposes standardization initialization function interface, and initialization function is by normalization function The interface data structure operating system that is articulated in equipment hash map tables in, maintain various components in the hash map tables Title and various components interface data structure pointer.
The interface function of record standard in interface data structure;Standard interface function includes at least a following letter Number:Run function, close function, function reading, write-in function and I/O channel management functions.
In invocation component, the finger of the interface data structure for the component that can be called according to hash map table search to needs Pin.The memory address of the interface data structure of various components is found according to pointer, passes through the memory address of interface data structure The memory address of each interface function of component can be found.
In fact, in the embodiment of the present application, above-mentioned standard interface is also equipped with for the component of equipment end local Function.Interacted between various components by the interface function of standardization, so as to avoid producing in interaction huge Symbol table, greatly reduces Footprint occupancy.In addition, component can also be interacted with the core A PI of equipment.
Step 303, the Cloud Server sends the executable file of the target element to the equipment, and the equipment is used In the executable file for running the target element, to complete the loading of the target element.
In the embodiment of the present application, the step 303 can specifically include following sub-step:
The executable file of the target element is arranged to XIP executive modes by the Cloud Server;
The executable text of the target element of XIP executive modes is arranged to described in the Cloud Server to equipment transmission Part.
Specifically, Cloud Server determines whether equipment can support XIP executive modes, if equipment supports XIP executive modes, Then the executable file of file destination is arranged to XIP executive modes by Cloud Server.
In the embodiment of the present application, the method can also include:
When component updates, the Cloud Server formation component new information;
The Cloud Server sends the component new information to the equipment, and the equipment is used to receive described group After part new information, the component load request is returned.
Specifically, the component name of the existing component of each equipment can be recorded in Cloud Server, when some component updates, The equipment of the component name of component of the Cloud Server detection with the renewal, then to these equipment sending assembly new informations.If For after component new information is received, phase component load request is returned to Cloud Server.
In the embodiment of the present application, Cloud Server determines embedded device institute according to the component load request of embedded device The drive component needed, and the executable file of the free memory address space information generation drive component using embedded device, The executable file of built-in equipment operation drive component can complete the loading of drive component.
Compared with existing dynamic load mode, in the embodiment of the present application, Cloud Server is according to the available of embedded device Memory address space information, positions the address of each symbol of drive component, and drive component is needed to use Embedded device local symbol address with being directly positioned as actual memory of the symbol in the memory headroom of embedded device Location.Embedded device can directly run the executable file of drive component, without carrying out symbol reorientation, reduce embedded set The occupancy of standby computing resource.And the executable file of drive component eliminates the information for symbol reorientation, so as to reduce The occupancy of memory headroom.Side described herein can also be passed through in the embedded device of computing capability and memory resource limitation Method realizes the dynamic load of component.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group Close, but those skilled in the art should know, the embodiment of the present application and from the limitation of described sequence of movement, because according to According to the embodiment of the present application, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and involved action not necessarily the application is implemented Necessary to example.
Reference Fig. 6, shows a kind of structure diagram of the component loading device embodiment 1 of equipment of the application, wherein institute State equipment to communicate with Cloud Server, the device can specifically include following module:
Module 401 is requested to generate positioned at the equipment, for formation component load request;
Positioned at the request sending module 402 of the equipment, for sending the component load request to the cloud service Device;
Positioned at the file reception module 403 of the equipment, the target element that is returned for receiving the Cloud Server can Perform file;The executable file of the target element is generated by the Cloud Server according to the component load request;
Positioned at the running paper module 404 of the equipment, for running the executable file of the target element, to complete The loading of the target element.
In the embodiment of the present application, the device can also include:
Positioned at the memory module of the equipment, for storing the executable file of the target element received to sudden strain of a muscle Deposit in Flash.
In the embodiment of the present application, the running paper module 404 can include:
Function extracting sub-module, if the executable file for the target element is XIP executive modes, in the sudden strain of a muscle Deposit the initialization function for the executable file that the target element is extracted in Flash;
First function runs submodule, for running the initialization function, to complete the loading of the target element.
In the embodiment of the present application, the running paper module 404 can also include:
Meta-data extraction submodule, if the executable file for the target element is not XIP executive modes, is extracted Go out the metadata in the executable file of the target element;The metadata includes:Initialization function memory address and described The corresponding component Name of executable file;
Submodule is replicated, for the executable file of the target element after proposition extraction metadata to be copied to memory In;
Second function runs submodule, for running the initialization function, to complete the loading of the target element.
In the embodiment of the present application, the device can also include:Positioned at the message reception module of the equipment, it is used for Receive the component new information that the Cloud Server is sent;
The module 401 that requests to generate can include:
Target element determination sub-module, for according to the component new information, determining to need the target element updated;
Destination request generates submodule, for generating the component load request for the target element for needing to update.
In the embodiment of the present application, the executable file of the target element has the interface function of standardization;It is described to connect Mouth function includes at least a following function:Run function, close function, function reading, write-in function and I/O channel managements Function.
In the embodiment of the present application, the component load request includes the free memory address space information of the equipment; Or, the free memory address space information of the equipment is preset in the Cloud Server;
The executable file of the target element is by file destination of the Cloud Server using target element, the equipment Free memory address space information generation;The file destination of the target element is added by the Cloud Server according to the component Request is carried to obtain.
In the embodiment of the present application, the component load request includes the memory address information of aiming symbol, the target Symbol in the equipment that symbol calls for target element needs;Or, preset aiming symbol in the Cloud Server Memory address information;
The executable file of the target element is by file destination of the Cloud Server using target element, the equipment Free memory address space information and the aiming symbol memory address Info Link generation.
In the embodiment of the present application, the Cloud Server is Internet of Things server, and the target element needs for the equipment The drive component for the sensor to be loaded.
In the embodiment of the present application, when embedded device needs load driver component, embedded device is sent out to Cloud Server Sending component load request, request include the free memory address space information of embedded device.Cloud Server is true according to request Determine the drive component needed for embedded device, and using the free memory address space information generation drive component of embedded device Executable file, the executable file of built-in equipment operation drive component can complete the loading of drive component.
Compared with existing dynamic load mode, in the embodiment of the present application, Cloud Server is according to the available of embedded device Memory address space information, positions the address of each symbol of drive component, and drive component is needed to use Embedded device local symbol address with being directly positioned as actual memory of the symbol in the memory headroom of embedded device Location.Embedded device can directly run the executable file of drive component, without carrying out symbol reorientation, reduce embedded set The occupancy of standby computing resource.And the executable file of drive component eliminates the information for symbol reorientation, so as to reduce The occupancy of memory headroom.Side described herein can also be passed through in the embedded device of computing capability and memory resource limitation Method realizes the dynamic load of component.
Reference Fig. 7, shows a kind of structure diagram of the component loading device embodiment 2 of equipment of the application, wherein institute State equipment to communicate with Cloud Server, the device can specifically include following module:
Positioned at the request receiving module 501 of the Cloud Server, the component load request sent for receiving the equipment;
Positioned at the executable file generation module 502 of the Cloud Server, for according to the component load request, generation The executable file of target element;
Positioned at the file sending module 503 of the Cloud Server, for the equipment send the target element can File is performed, the equipment is used for the executable file for running the target element, to complete the loading of the target element.
In the embodiment of the present application, the component load request includes the free memory address space information of the equipment; Or, the free memory address space information of the equipment is preset in the Cloud Server;
The executable file generation module 502 can include:
File destination obtains submodule, for according to the component load request, obtaining the file destination of target element;
Executable file generates submodule, for the file destination using the target element, the free memory address Spatial information, generates the executable file of the target element of preset format.
In the embodiment of the present application, the component load request includes the memory address information of aiming symbol, the target Symbol in the equipment that symbol calls for target element needs;Or, preset aiming symbol in the Cloud Server Memory address information;
The executable file generation submodule further comprises:
Link unit, for file destination, the free memory address space information and the institute using the target element The memory address information for stating aiming symbol is linked, and generates the executable file of the target element of preset format.
In the embodiment of the present application, the file sending module 503 can include:
Executive mode sets submodule, for the executable file of the target element to be arranged to XIP executive modes;
File sending submodule, for the equipment send described in be arranged to XIP executive modes target element can Perform file.
In the embodiment of the present application, the device can also include:
Positioned at the new information generation module of the Cloud Server, for when component updates, formation component new information;
Positioned at the new information sending module of the Cloud Server, disappear for sending the component renewal to the equipment Breath, the equipment are used for after the component new information is received, and return to the component load request.
In the embodiment of the present application, the executable file of the target element has the interface function of standardization;It is described to connect Mouth function includes at least a following function:Run function, close function, function reading, write-in function and I/O channel managements Function.
In the embodiment of the present application, the Cloud Server is Internet of Things server, and the target element needs for the equipment The drive component for the sensor to be loaded.
In the embodiment of the present application, Cloud Server determines embedded device institute according to the component load request of embedded device The drive component needed, and the executable file of the free memory address space information generation drive component using embedded device, The executable file of built-in equipment operation drive component can complete the loading of drive component.
Compared with existing dynamic load mode, in the embodiment of the present application, Cloud Server is according to the available of embedded device Memory address space information, positions the address of each symbol of drive component, and drive component is needed to use Embedded device local symbol address with being directly positioned as actual memory of the symbol in the memory headroom of embedded device Location.Embedded device can directly run the executable file of drive component, without carrying out symbol reorientation, reduce embedded set The occupancy of standby computing resource.And the executable file of drive component eliminates the information for symbol reorientation, so as to reduce The occupancy of memory headroom.Side described herein can also be passed through in the embedded device of computing capability and memory resource limitation Method realizes the dynamic load of component.
With reference to Fig. 8, a kind of hardware structure diagram of apparatus embodiments of the application is shown, which can be with Cloud Server Communication.As shown in figure 8, the equipment can include processor 60, output equipment 61, input equipment 62, memory 63 and and at least One communication bus 64.Communication bus 64 is used for realization the communication connection between element.Memory 23 may be deposited comprising high-speed RAM Reservoir, it is also possible to further include non-volatile memories NVM, for example, at least a magnetic disk storage, it is also possible to including flash memory Flash. Various programs can be stored in memory, for completing various processing functions and realizing the method and step of the present embodiment.
In the embodiment of the present application, above-mentioned processor 60 for example can be central processing unit (Central Processing Unit, abbreviation CPU), application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or Other electronic components realize that the processor 60 is coupled to above-mentioned input equipment 62 by in-car circuit or wireless connection and output is set Standby 61.
In the embodiment of the present application, above-mentioned input equipment 62 can include a variety of input equipments, for example, can include towards with It is at least one in the user interface at family, device oriented equipment interface, transceiver., should be towards setting in the embodiment of the present application Standby equipment interface can be for carry out data transmission between equipment and equipment wireline interface, can also be for equipment with The hardware insertion interface of data or instruction transmission is carried out between equipment (such as between USB interface, serial ports, car body hardware facility Interface etc.);In the embodiment of the present application, which for example can be user oriented control button, use In receive phonetic entry voice-input device and user receive user's touch input touch awareness apparatus (such as with touch Touch touch-screen, Trackpad of inducing function etc.);In the embodiment of the present application, above-mentioned transceiver can have communication function Rf chip, baseband processing chip and dual-mode antenna etc..In the embodiment of the present application, above-mentioned output equipment 61 can be phase The output interface with communication function answered either voice playing equipment or transceiver.
In the embodiment of the present application, processor 60, for formation component load request;
Output equipment 61, coupled to the processor 60, for sending the component load request to the cloud service Device;
Input equipment 62, coupled to the processor 60, the target element that is returned for receiving the Cloud Server can Perform file;The executable file of the target element is generated by the Cloud Server according to the component load request;
The processor 60, is additionally operable to run the executable file for the target element that the input equipment 62 obtains, with complete Into the loading of the target element.
Equipment provided by the embodiments of the present application, can perform above method embodiment, its implementing principle and technical effect class Seemingly, details are not described herein.
In the embodiment of the present application, the processor 60, is additionally operable to the target group for receiving the input equipment 62 The executable file of part is stored into flash memory Flash.
In the embodiment of the present application, the processor 60, if being held specifically for the executable file of the target element for XIP Line mode, then extract the initialization function of the executable file of the target element in the flash memory Flash;Run described first Beginningization function, to complete the loading of the target element.
In the embodiment of the present application, the processor 60, if the executable file specifically for the target element is not XIP Executive mode, then extract the metadata in the executable file of the target element;The metadata includes:Initialization function Memory address and the corresponding component Name of the executable file;It is proposed is extracted to holding for the target element after metadata Style of writing part is copied in memory;The initialization function is run, to complete the loading of the target element.
In the embodiment of the present application, the input equipment 62, is additionally operable to receive the component that the Cloud Server is sent and update to disappear Breath;
The processor 60, specifically for according to the component new information, determining to need the target element updated, and life Into the component load request for the target element for needing to update.
In the embodiment of the present application, the executable file of the target element has the interface function of standardization;The interface Function includes at least a following function:Run function, close function, function reading, write-in function and I/O channel management letters Number.
In the embodiment of the present application, the component load request includes the free memory address space information of the equipment;Or, The free memory address space information of the equipment is preset in the Cloud Server;
The executable file of the target element is by file destination of the Cloud Server using target element, the equipment Free memory address space information generation;The file destination of the target element is added by the Cloud Server according to the component Request is carried to obtain.
In the embodiment of the present application, the component load request includes the memory address information of aiming symbol, the target symbol The symbol in the equipment called number is needed for the target element;Or, preset aiming symbol in the Cloud Server Memory address information;
The executable file of the target element is by file destination of the Cloud Server using target element, the equipment Free memory address space information and the aiming symbol memory address Info Link generation.
In the embodiment of the present application, the Cloud Server is Internet of Things server, and the target element needs for the equipment The drive component of the sensor of loading.
Equipment provided by the embodiments of the present application, can perform above method embodiment, its implementing principle and technical effect class Seemingly, details are not described herein.
Reference Fig. 9, shows a kind of block diagram of Internet of things system embodiment of the application, which includes:Cloud Server 70 and the equipment 71 to communicate with the Cloud Server;
The equipment 71 can include:
Module is requested to generate, for formation component load request;
Request sending module, for sending the component load request to the Cloud Server;
File reception module, the executable file of the target element returned for receiving the Cloud Server;
Running paper module, for running the executable file of the target element, to complete adding for the target element Carry;
The Cloud Server 70 can include:
Request receiving module, the component load request sent for receiving the equipment;
Executable file generation module, for according to the component load request, generating the executable file of target element;
File sending module, for sending the executable file of the target element to the equipment, the equipment is used for The executable file of the target element is run, to complete the loading of the target element.
In the embodiment of the present application, the equipment 71 can also include:
Memory module, for storing the executable file of the target element received into flash memory Flash.
In the embodiment of the present application, the file sending module can include:
Executive mode sets submodule, for the executable file of the target element to be arranged to XIP executive modes;
File sending submodule, for the equipment send described in be arranged to XIP executive modes target element can Perform file.
In the embodiment of the present application, the running paper module can include:
Function extracting sub-module, if the executable file for the target element is XIP executive modes, in the sudden strain of a muscle Deposit the initialization function for the executable file that the target element is extracted in Flash;
First function runs submodule, for running the initialization function, to complete the loading of the target element.
In the embodiment of the present application, the running paper module can also include:
Meta-data extraction submodule, if the executable file for the target element is not XIP executive modes, is extracted Go out the metadata in the executable file of the target element;The metadata includes:Initialization function memory address and described The corresponding component Name of executable file;
Submodule is replicated, for the executable file of the target element after proposition extraction metadata to be copied to memory In;
Second function runs submodule, for running the initialization function, to complete the loading of the target element.
In the embodiment of the present application,
The Cloud Server 70 can also include:
New information generation module, for when component updates, formation component new information;
New information sending module, for sending the component new information to the equipment, the equipment is used to connect After receiving the component new information, the component load request is returned.
The equipment can also include:
Message reception module, the component new information sent for receiving the Cloud Server;
The module that requests to generate includes:
Target element determination sub-module, for according to the component new information, determining to need the target element updated;
Destination request generates submodule, for generating the component load request for the target element for needing to update.
In the embodiment of the present application, the executable file of the target element has the interface function of standardization;It is described to connect Mouth function includes at least a following function:Run function, close function, function reading, write-in function and I/O channel managements Function.
In the embodiment of the present application,
The component load request includes the free memory address space information of the equipment;Or, in the Cloud Server Preset the free memory address space information of the equipment;
The executable file generation module includes:
File destination obtains submodule, for according to the component load request, obtaining the file destination of target element;
Executable file generates submodule, for the file destination using the target element, the free memory address Spatial information, generates the executable file of the target element of preset format.
In the embodiment of the present application,
The component load request includes the memory address information of aiming symbol, and the aiming symbol is the target element Need the symbol in the equipment called;Or, the memory address information of aiming symbol is preset in the Cloud Server;
The executable file generation submodule further comprises:
Link unit, for file destination, the free memory address space information and the institute using the target element The memory address information for stating aiming symbol is linked, and generates the executable file of the target element of preset format.
In the embodiment of the present application, the Cloud Server is Internet of Things server, and the target element needs for the equipment The drive component for the sensor to be loaded.
For device embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present application can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present application can use complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can use one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present application is with reference to according to the method for the embodiment of the present application, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that it can realize flowchart and/or the block diagram by computer program instructions In each flow and/or block and flowchart and/or the block diagram in flow and/or square frame combination.These can be provided Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to produce a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction is produced and is used for realization in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces bag The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that The instruction performed on computer or other programmable terminal equipments is provided and is used for realization in one flow of flow chart or multiple flows And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present application, those skilled in the art once know base This creative concept, then can make these embodiments other change and modification.So appended claims are intended to be construed to Including preferred embodiment and fall into all change and modification of the embodiment of the present application scope.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped Those key elements are included, but also including other elements that are not explicitly listed, or further include as this process, method, article Or the key element that terminal device is intrinsic.In the absence of more restrictions, wanted by what sentence "including a ..." limited Element, it is not excluded that also there are other identical element in the process including the key element, method, article or terminal device.
Component loading method to a kind of equipment provided herein, a kind of component loading device of equipment, one above Kind of equipment and a kind of Internet of things system, are described in detail, specific case used herein to the principle of the application and Embodiment is set forth, and the explanation of above example is only intended to help to understand the present processes and its core concept; Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific embodiments and applications There is change part, in conclusion this specification content should not be construed as the limitation to the application.

Claims (20)

1. a kind of component loading method of equipment, it is characterised in that the equipment communicates with Cloud Server, the method bag Include:
The equipment formation component load request;
The equipment sends the component load request to the Cloud Server;
The equipment receives the executable file for the target element that the Cloud Server returns;The executable text of the target element Part is generated by the Cloud Server according to the component load request;
The equipment runs the executable file of the target element, to complete the loading of the target element.
2. according to the method described in claim 1, it is characterized in that, further include:
The equipment stores the executable file of the target element received into flash memory Flash.
3. according to the method described in claim 2, it is characterized in that, the equipment runs the executable text of the target element Part, to include the step of completing the loading of the target element:
If the executable file of the target element is XIP executive modes, the equipment extracts institute in the flash memory Flash State the initialization function of the executable file of target element;
The equipment runs the initialization function, to complete the loading of the target element.
4. according to the method described in claim 3, it is characterized in that, the equipment runs the executable text of the target element Part, to be further included the step of completing the loading of the target element:
If the executable file of the target element is not XIP executive modes, the equipment extracts the target element Metadata in executable file;The metadata includes:Initialization function memory address and the executable file are corresponding Component Name;
The executable file of the target element after proposing extraction metadata is copied in memory by the equipment;
The equipment runs the initialization function, to complete the loading of the target element.
5. according to the method described in claim 1, it is characterized in that, further include:
The equipment receives the component new information that the Cloud Server is sent;
The step of equipment formation component load request, includes:
The equipment determines to need the target element updated according to the component new information;
Component load request of the equipment generation for the target element for needing to update.
6. according to the method described in claim 1, it is characterized in that, the executable file of the target element has standardization Interface function;The interface function includes at least a following function:Run function, close function, function reading, write-in letter Number and I/O channel management functions.
7. according to the method described in claim 1, it is characterized in that, the component load request includes the available interior of the equipment Deposit address space information;Or, the free memory address space information of the equipment is preset in the Cloud Server;
The executable file of the target element by the Cloud Server using the file destination of target element, the equipment can Generated with memory address space information;The file destination of the target element please according to component loading by the Cloud Server Ask acquisition.
8. the method according to the description of claim 7 is characterized in that the component load request is with including the memory of aiming symbol Location information, the aiming symbol are the symbol in the equipment that target element needs call;Or, in the Cloud Server Preset the memory address information of aiming symbol;
The executable file of the target element by the Cloud Server using the file destination of target element, the equipment can Generated with the memory address Info Link of memory address space information and the aiming symbol.
9. according to the method described in claim 1, it is characterized in that, the Cloud Server is Internet of Things server, the target The drive component for the sensor that component needs to load for the equipment.
10. a kind of component loading method of equipment, it is characterised in that the equipment communicates with Cloud Server, the method bag Include:
The component load request that equipment described in the cloud server is sent;
The Cloud Server generates the executable file of target element according to the component load request;
The Cloud Server sends the executable file of the target element to the equipment, and the equipment is used to run the mesh The executable file of component is marked, to complete the loading of the target element.
11. according to the method described in claim 10, it is characterized in that, the component load request includes the available of the equipment Memory address space information;Or, the free memory address space information of the equipment is preset in the Cloud Server;
According to the component load request, the step of executable file for generating target element, includes the Cloud Server:
The Cloud Server obtains the file destination of target element according to the component load request;
The Cloud Server uses file destination, the free memory address space information of the target element, and generation is default The executable file of the target element of form.
12. according to the method for claim 11, it is characterised in that the component load request includes the memory of aiming symbol Address information, the aiming symbol are the symbol in the equipment that target element needs call;Or, the Cloud Server In preset the memory address information of aiming symbol;
The Cloud Server uses file destination, the free memory address space information of the target element, and generation is default The step of executable file of the target element of form, includes:
The Cloud Server uses file destination, the free memory address space information and the target of the target element The memory address information of symbol is linked, and generates the executable file of the target element of preset format.
13. according to the method described in claim 10, it is characterized in that, it can be held described in the Cloud Server to equipment transmission The step of style of writing part, includes:
The executable file of the target element is arranged to XIP executive modes by the Cloud Server;
The executable file of the target element of XIP executive modes is arranged to described in the Cloud Server to equipment transmission.
14. according to the method described in claim 10, it is characterized in that, further include:
When component updates, the Cloud Server formation component new information;
The Cloud Server sends the component new information to the equipment, and the equipment is used to receive the component more After new information, the component load request is returned.
15. according to the method described in claim 10, it is characterized in that, the executable file of the target element has standardization Interface function;The interface function includes at least a following function:Run function, close function, function reading, write-in Function and I/O channel management functions.
16. according to the method described in claim 10, it is characterized in that, the Cloud Server is Internet of Things server, the mesh The drive component for the sensor that mark component needs to load for the equipment.
17. the component loading device of a kind of equipment, it is characterised in that the equipment communicates with Cloud Server, the device bag Include:
Module is requested to generate positioned at the equipment, for formation component load request;
Positioned at the request sending module of the equipment, for sending the component load request to the Cloud Server;
Positioned at the file reception module of the equipment, the executable text of the target element returned for receiving the Cloud Server Part;The executable file of the target element is generated by the Cloud Server according to the component load request;
Positioned at the running paper module of the equipment, for running the executable file of the target element, to complete the mesh Mark the loading of component.
18. the component loading device of a kind of equipment, it is characterised in that the equipment communicates with Cloud Server, the device bag Include:
Positioned at the request receiving module of the Cloud Server, the component load request sent for receiving the equipment;
Positioned at the executable file generation module of the Cloud Server, for according to the component load request, generating target group The executable file of part;
Positioned at the file sending module of the Cloud Server, for sending the executable text of the target element to the equipment Part, the equipment is used for the executable file for running the target element, to complete the loading of the target element.
19. a kind of equipment, it is characterised in that the equipment communicates with Cloud Server, and the equipment includes:
Processor, for formation component load request;
Output equipment, coupled to the processor, for sending the component load request to the Cloud Server;
Input equipment, coupled to the processor, the executable file of the target element returned for receiving the Cloud Server; The executable file of the target element is generated by the Cloud Server according to the component load request;
The processor, is additionally operable to run the executable file for the target element that the input equipment obtains, to complete the mesh Mark the loading of component.
A kind of 20. Internet of things system, it is characterised in that including:Cloud Server and the equipment to communicate with the Cloud Server;
The equipment includes:
Module is requested to generate, for formation component load request;
Request sending module, for sending the component load request to the Cloud Server;
File reception module, the executable file of the target element returned for receiving the Cloud Server;
Running paper module, for running the executable file of the target element, to complete the loading of the target element;
The Cloud Server includes:
Request receiving module, the component load request sent for receiving the equipment;
Executable file generation module, for according to the component load request, generating the executable file of target element;
File sending module, for sending the executable file of the target element to the equipment, the equipment is used to run The executable file of the target element, to complete the loading of the target element.
CN201610895963.1A 2016-10-13 2016-10-13 A kind of component loading method of equipment, device and Internet of things system Pending CN107957887A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201610895963.1A CN107957887A (en) 2016-10-13 2016-10-13 A kind of component loading method of equipment, device and Internet of things system
TW106126769A TW201814546A (en) 2016-10-13 2017-08-08 Device component loading method, apparatus and internet of things system
PCT/CN2017/104168 WO2018068658A1 (en) 2016-10-13 2017-09-29 Device component loading method, apparatus and internet of things system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610895963.1A CN107957887A (en) 2016-10-13 2016-10-13 A kind of component loading method of equipment, device and Internet of things system

Publications (1)

Publication Number Publication Date
CN107957887A true CN107957887A (en) 2018-04-24

Family

ID=61905173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610895963.1A Pending CN107957887A (en) 2016-10-13 2016-10-13 A kind of component loading method of equipment, device and Internet of things system

Country Status (3)

Country Link
CN (1) CN107957887A (en)
TW (1) TW201814546A (en)
WO (1) WO2018068658A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020083059A1 (en) * 2018-10-26 2020-04-30 阿里巴巴集团控股有限公司 Client establishment method, apparatus and system
CN113475048A (en) * 2019-04-03 2021-10-01 深圳迈瑞生物医疗电子股份有限公司 Access control method, access control equipment and electronic equipment
CN113873044A (en) * 2021-10-15 2021-12-31 阿里巴巴(中国)有限公司 Data transmission method, system, device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI740380B (en) * 2020-02-17 2021-09-21 中華電信股份有限公司 Monitoring equipment system and method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543107A (en) * 2003-11-04 2004-11-03 中兴通讯股份有限公司 Method of singleboard Node B software download and upgrade
CN101510161A (en) * 2009-03-30 2009-08-19 北京中星微电子有限公司 Bootstrap implementing method, apparatus and portable electronic apparatus
CN103942078A (en) * 2014-04-30 2014-07-23 华为技术有限公司 Method for loading driver and embedded device
CN104144466A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Access method for sensor in Internet of Things, Internet of Things system and server
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node
CN105988836A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Application recommendation method and device
CN105991729A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Installation package downloading method and server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023585A (en) * 1997-05-02 2000-02-08 Webtv Networks, Inc. Automatically selecting and downloading device drivers from a server system to a client system that includes one or more devices
US8533707B2 (en) * 2008-03-04 2013-09-10 Lsi Corporation Linux matrix compilation system and method
US9392051B2 (en) * 2010-12-06 2016-07-12 Google Inc. Application distribution supplying a dedicated application to a terminal from an application deposited by the developer
US20140207846A1 (en) * 2013-01-23 2014-07-24 International Business Machines Corporation Client-side aggregation of nested resource dependencies
CN104253783A (en) * 2013-06-25 2014-12-31 中国移动通信集团公司 Web application realization code loading method, device, system and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543107A (en) * 2003-11-04 2004-11-03 中兴通讯股份有限公司 Method of singleboard Node B software download and upgrade
CN101510161A (en) * 2009-03-30 2009-08-19 北京中星微电子有限公司 Bootstrap implementing method, apparatus and portable electronic apparatus
CN104144466A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Access method for sensor in Internet of Things, Internet of Things system and server
CN103942078A (en) * 2014-04-30 2014-07-23 华为技术有限公司 Method for loading driver and embedded device
CN105988836A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Application recommendation method and device
CN105991729A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Installation package downloading method and server
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
来存良主编: "《煤矿信息化技术》", 28 February 2007, 煤炭工业出版社 *
王海燕,李精明著: "《可编程控制器及工业控制网络》", 30 September 2015, 上海交通大学出版社 *
陈 玲,李 兵,李松渊: "多文件系统在嵌入式设备中的应用", 《西华大学学报(自然科学版)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020083059A1 (en) * 2018-10-26 2020-04-30 阿里巴巴集团控股有限公司 Client establishment method, apparatus and system
CN111190649A (en) * 2018-10-26 2020-05-22 阿里巴巴集团控股有限公司 Client building method, device and system
CN111190649B (en) * 2018-10-26 2023-07-25 阿里巴巴集团控股有限公司 Client building method, device and system
CN113475048A (en) * 2019-04-03 2021-10-01 深圳迈瑞生物医疗电子股份有限公司 Access control method, access control equipment and electronic equipment
CN113873044A (en) * 2021-10-15 2021-12-31 阿里巴巴(中国)有限公司 Data transmission method, system, device and storage medium
CN113873044B (en) * 2021-10-15 2024-01-02 阿里巴巴(中国)有限公司 Data transmission method, system, equipment and storage medium

Also Published As

Publication number Publication date
TW201814546A (en) 2018-04-16
WO2018068658A1 (en) 2018-04-19

Similar Documents

Publication Publication Date Title
CN106598667B (en) Method and apparatus for repairing kernel loophole
CN107025559B (en) Service processing method and device
US20180089434A1 (en) Preserving trust data during operating system updates of a secure element of an electronic device
CN103309709B (en) A kind of firmware upgrade method, device and communication equipment
CN107402788B (en) Resource packaging management method and device
CN103970563B (en) The method of dynamic load Android class
CN107957887A (en) A kind of component loading method of equipment, device and Internet of things system
US20150220247A1 (en) Electronic device and method for providing information thereof
WO2015030972A1 (en) Redirecting local storage to cloud storage
CN110096302A (en) Software data storage, upgrade method, device, equipment and storage medium
CN104267981B (en) A kind of method and device of application layout on loading desktop
CN108282518A (en) A kind of customer terminal webpage generation method and device
US10657522B2 (en) Apparatus and method for processing card application in electronic device
CN107832099A (en) A kind of client release compatible method, apparatus and storage medium
US20160234340A1 (en) Systems and methods for adaptive cloning of mobile devices
CN109660372A (en) A kind of method and device of the business configuration of SDN
CN112527301B (en) Method for realizing application plug-in and electronic equipment
CN104281478A (en) Method and device for updating application programs
CN108055320A (en) Processing method, terminal device and the computer readable storage medium of resource downloading
CN102999349A (en) Software upgrading method
US20160378553A1 (en) Resource Management Method and Device for Terminal System
CN102609650A (en) System and method for realizing software encrypting and downloading in electronic equipment
KR102188685B1 (en) Apparatas and method for generating application packages
US10303462B2 (en) Windows support of a pluggable ecosystem for universal windows application stores
CN107533468A (en) For cloud and the scalability bundle of suite of devices

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201223

Address after: Room 603, 6 / F, Roche Plaza, 788 Cheung Sha Wan Road, Kowloon, China

Applicant after: Zebra smart travel network (Hong Kong) Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180424