CN114168210A - Embedded equipment deployment method and system - Google Patents

Embedded equipment deployment method and system Download PDF

Info

Publication number
CN114168210A
CN114168210A CN202111520072.5A CN202111520072A CN114168210A CN 114168210 A CN114168210 A CN 114168210A CN 202111520072 A CN202111520072 A CN 202111520072A CN 114168210 A CN114168210 A CN 114168210A
Authority
CN
China
Prior art keywords
embedded
equipment
embedded device
data
identification code
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
CN202111520072.5A
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.)
CICT Mobile Communication Technology Co Ltd
Original Assignee
CICT Mobile Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CICT Mobile Communication Technology Co Ltd filed Critical CICT Mobile Communication Technology Co Ltd
Priority to CN202111520072.5A priority Critical patent/CN114168210A/en
Publication of CN114168210A publication Critical patent/CN114168210A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • 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/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • 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/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Abstract

The invention provides an embedded device deployment method and a system, comprising the following steps: identifying an access request message data packet of the embedded equipment, and acquiring an equipment identification code and an interconnection interface of the embedded equipment; determining a file system package and a configuration file corresponding to the embedded equipment based on the equipment identification code, and issuing the file system package and the configuration file to the embedded equipment through an interconnection interface so that the embedded equipment can carry out system configuration; and receiving the operation data sent by the embedded equipment, and writing the operation data into a preset storage area based on the equipment identification code. According to the invention, the embedded equipment is started and operated at two sides in a matching way through the main control server and the embedded equipment, and the main control server becomes a starting storage medium and a storage extension of the embedded equipment, so that the local storage requirement of the embedded equipment is reduced, the hardware cost is reduced, the application program is transparent, the application program does not need to pay attention to the embedded equipment starting, configuration and operation data management method, and the development cost of the application program is reduced.

Description

Embedded equipment deployment method and system
Technical Field
The invention relates to the field of embedded technology, in particular to an embedded device deployment method and system.
Background
Currently, embedded devices are widely used on many hardware development platforms. The embedded devices are of various types, are distinguished from master control chip types, include single-chip microcomputers, adopt ARM (Advanced RISC Machines, RISC microprocessors) and other microprocessor structures, are distinguished from interconnection interfaces, only support low-speed interfaces such as I2C (Inter-Integrated Circuit), SPI (Serial Peripheral Interface), and also support ethernet interfaces.
At present, there is no method for performing unified management on embedded devices in a system, and for embedded devices with various applications and various interfaces, data transmission, system update and system file configuration are performed according to specific implementation requirements, so that the implementation manner is complex and unified management cannot be performed.
Therefore, how to perform unified configuration and management on embedded devices of various types becomes a difficult problem to be solved urgently in the field of embedded devices.
Disclosure of Invention
The invention provides an embedded device deployment method and system, which are used for overcoming the defect that a unified and easily-realized device configuration management method is not available for embedded devices in the prior art.
In a first aspect, the present invention provides a method for deploying an embedded device, including:
identifying an access request message data packet of embedded equipment, and acquiring an equipment identification code and an interconnection interface of the embedded equipment;
determining a file system package and a configuration file corresponding to the embedded device based on the device identification code, and issuing the file system package and the configuration file to the embedded device through the interconnection interface so as to enable the embedded device to carry out system configuration;
and receiving the operation data sent by the embedded equipment, and writing the operation data into a preset storage area based on the equipment identification code.
According to the deployment method of the embedded device provided by the invention, the method for identifying the access request message data packet of the embedded device and acquiring the device identification code and the interconnection interface of the embedded device also comprises the following steps:
binding the equipment identification code and the embedded equipment;
and establishing a mapping relation between the equipment identification code and a file system and between the equipment identification code and the configuration file to obtain a mapping relation list, and writing the mapping relation list into an equipment information index file.
According to the deployment method of the embedded device provided by the invention, the receiving of the operation data sent by the embedded device and the writing of the operation data into the preset storage area based on the device identification code comprise:
polling all interconnection interfaces and receiving data, and if the data is identified as the operating data, extracting the equipment identification code corresponding to the operating data;
and determining that the embedded equipment corresponding to the equipment identification code is accessed, and writing the user data and the running log of the embedded equipment into the preset storage area.
In a second aspect, the present invention provides a method for deploying an embedded device, including:
after initialization, sending an access request message data packet to a master control server;
receiving a response message data packet sent by the master control server, and finishing file system loading and starting based on a file system packet and a configuration file in the response message data packet;
and acquiring operation data, and sending the operation data to the master control server through an interconnection interface so as to be used for the master control server to store data.
According to the embedded device deployment method provided by the invention, after the initialization, sending an access request message data packet to a master control server, the method also comprises the following steps:
and after the power is on, executing a bootstrap program and a core program to complete the initialization of the peripheral interface drive.
According to the embedded device deployment method provided by the invention, the receiving of the response message data packet sent by the master control server and the completion of the loading and starting of the file system based on the file system packet and the configuration file in the response message data packet comprise:
polling all interconnection interfaces and receiving data, and if the data is identified as the response message data packet, receiving the file system packet and the configuration file;
and checking the file system, and mounting the file system to finish the starting of the equipment.
According to the embedded device deployment method provided by the invention, the receiving of the response message data packet sent by the master control server and the completion of the loading and starting of the file system based on the file system packet and the configuration file in the response message data packet further comprise:
and if the response message data packet is not received after the preset duration, the access request message data packet is sent to the master control server again.
According to the embedded device deployment method provided by the invention, the acquiring the operation data and sending the operation data to the main control server through the interconnection interface for the main control server to store the data comprises the following steps:
extracting the operation parameters in the configuration file, and operating the functional service program corresponding to the configuration file after the operation parameters are verified;
acquiring user data and an operation log, and packaging the user data and the operation log to obtain the operation data;
and periodically sending the operating data to the master control server through the interconnection interface, so that the master control server stores the operating data in a preset storage area.
In a third aspect, the present invention further provides an embedded device deployment system, including:
the first processing module is used for identifying an access request message data packet of the embedded equipment and acquiring an equipment identification code and an interconnection interface of the embedded equipment;
the second processing module is used for determining a file system package and a configuration file corresponding to the embedded equipment based on the equipment identification code, and sending the file system package and the configuration file to the embedded equipment through the interconnection interface so as to enable the embedded equipment to carry out system configuration;
and the third processing module is used for receiving the running data sent by the embedded equipment and writing the running data into a preset storage area based on the equipment identification code.
In a fourth aspect, the present invention further provides an embedded device deployment system, including:
the fourth processing module is used for sending an access request message data packet to the master control server after initialization;
the fifth processing module is used for receiving a response message data packet sent by the master control server and finishing file system loading and starting based on a file system and a configuration file in the response message data packet;
and the sixth processing module is used for acquiring operation data and sending the operation data to the master control server through an interconnection interface so as to store the data by the master control server.
In a fifth aspect, the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the embedded device deployment methods described above.
In a sixth aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the embedded device deployment method as described in any one of the above.
In a seventh aspect, the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the embedded device deployment method according to any one of the above.
According to the embedded device deployment method and system provided by the invention, the embedded device is started and operated at two sides in a matched manner at the main control server and the embedded device, the main control server becomes a starting storage medium and a storage extension of the embedded device, the local storage requirement of the embedded device is reduced, the hardware cost is reduced, the application program is transparent, the application program does not need to pay attention to the embedded device starting, configuration and operation data management method, and the development cost of the application program is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an embedded device deployment method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a master server access monitoring program provided in the present invention;
FIG. 3 is a flow chart of a main control server real-time message processing program provided by the present invention;
FIG. 4 is a second flowchart of an embedded device deployment method according to the present invention;
FIG. 5 is a flow chart illustrating the self-booting of the embedded device according to the present invention;
FIG. 6 is a flow chart illustrating the self-configuration of the embedded device service program provided by the present invention;
FIG. 7 is a flowchart of an embedded device service program real-time messaging program provided by the present invention;
FIG. 8 is a schematic structural diagram of an embedded device deployment system provided by the present invention;
FIG. 9 is a second schematic structural diagram of an embedded device deployment system provided in the present invention;
fig. 10 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Aiming at the defects in the prior art, the invention provides a novel embedded device deployment method which is used for realizing self-starting and self-configuration of embedded devices and mainly relates to a master control server and the embedded devices, wherein the master control server is a master device, the embedded devices are slave devices, and the self-starting and self-configuration of the embedded devices are realized through cooperation of the master device and the slave devices.
Fig. 1 is a schematic flowchart of a method for deploying an embedded device, where as shown in fig. 1, a corresponding execution main body is a master server, and the method includes:
step 101, identifying an access request message data packet of an embedded device, and acquiring a device identification code and an interconnection interface of the embedded device;
step 102, determining a file system package and a configuration file corresponding to the embedded device based on the device identification code, and issuing the file system package and the configuration file to the embedded device through the interconnection interface so as to enable the embedded device to perform system configuration;
and 103, receiving the operation data sent by the embedded equipment, and writing the operation data into a preset storage area based on the equipment identification code.
Specifically, the master control server identifies the powered-on embedded device in the operation process, and issues a file system package and a configuration file through an interconnection interface, namely a low-speed interface or a network port; the main control server locally allocates independent storage areas for the embedded equipment, receives the operation data sent by the embedded equipment and stores the operation data into the respective independent storage areas.
The main control server can support low speed interfaces such as I2C and SPI, and the Ethernet interface, and connects with the embedded device through the interconnection interface, the main control server continuously detects the information of the interconnection interface, on one hand, detects the newly accessed embedded device, if receiving the access request from the embedded device, the main control server obtains the file system and the configuration file corresponding to the embedded device according to the device identification code in the request information, and sends the information to the corresponding embedded device through the same interconnection interface, and simultaneously locally allocates an independent storage area for the newly accessed embedded device, on the other hand, receives the operation data from the embedded device, and if receiving the information sent from the embedded device, the main control server writes the operation data into the specific storage area according to the device identification code in the information.
The invention saves the storage space of the embedded server and realizes the unified management and configuration of various embedded devices by using the master control server as the starting storage medium and the storage extension of the embedded devices.
Based on the above embodiment, step 101 includes:
binding the equipment identification code and the embedded equipment;
and establishing a mapping relation between the equipment identification code and a file system and between the equipment identification code and the configuration file to obtain a mapping relation list, and writing the mapping relation list into an equipment information index file.
Particularly, the master control server acquires a corresponding file system package and a configuration file according to an equipment identification code in the request message, wherein the equipment identification code is a unique identity bound with the embedded equipment; the file system and the configuration file are also associated with the embedded device, and can be used by a real-time system of a singlechip or a linux operating system of an ARM and other microprocessors. The equipment identification code is in one-to-one correspondence with the file system package and the configuration file, and is recorded by the master control server after the association is established in advance.
And establishing a mapping relation between the equipment identification code of the embedded equipment to be deployed and the file system package and the configuration file, and storing the mapping relation into a list. The list is written into the equipment information index file in the form of a structure array, stored in the master control server, and maintained and used by the master control server. Table 1 is an example of a device information index file.
TABLE 1
Figure BDA0003406955750000071
If the software version of the service program of the embedded equipment needs to be updated, updating the corresponding file system package; and if the operation parameters of the service program of the embedded equipment need to be modified, updating the corresponding configuration file. Therefore, the software version and configuration of the embedded device can be directly changed on one side of the main control server, and the software version or configuration can be upgraded after the embedded device is restarted.
On this basis, the master control server monitors and manages the access of the embedded device, and an access monitoring program is run on the master control server, as shown in fig. 2. The access monitoring program polls a plurality of interconnection interfaces, namely a low-speed interface or an Ethernet interface, and receives data; and identifying whether the data packet is the data packet of the access message, and recording the equipment identification code and the interconnection interface if the data packet is the valid access message. And after identifying that the embedded equipment initiates access, the monitoring program inquires the equipment information index file, acquires a corresponding file system package and a configuration file through the equipment identification code if the corresponding equipment identification code exists in the file, and issues the file system package and the configuration file to the embedded equipment corresponding to the equipment identification code through the recorded interconnection interface. Meanwhile, the monitoring program can also allocate a special storage area, namely a folder named by the equipment identification code, for the accessed embedded equipment in the file memory of the master control server according to the equipment identification code, and the size of the storage area can be designed according to actual needs for subsequent use.
The invention sets the corresponding list of the equipment identification code, the file system package and the configuration file on the main control server in advance, and the embedded equipment does not need to download the software version and the configuration to the equipment for upgrading the software version according to the corresponding list, thereby saving the local memory space of the embedded equipment and improving the efficiency of changing the software version and the configuration.
Based on any of the above embodiments, step 103 includes:
polling all interconnection interfaces and receiving data, and if the data is identified as the operating data, extracting the equipment identification code corresponding to the operating data;
and determining that the embedded equipment corresponding to the equipment identification code is accessed, and writing the user data and the running log of the embedded equipment into the preset storage area.
Specifically, as shown in fig. 3, the master server records user data and an operation log of the operation of the service program of the embedded device. In the service operation process, the service program of the embedded device can continuously generate user data and an operation log, and the files need to be stored for subsequent use, so that power failure storage is required. It is a common practice to plug in a large-capacity flash, such as a nand flash, to the processor of the embedded device and write the data into the files in the flash.
And the master control server runs a real-time message processing program, and the real-time message processing program polls all the interconnection interfaces recorded in the access monitoring program and receives data, and identifies whether the data are user data and data packets of running logs sent by the embedded equipment. If the data packet is correct, extracting the equipment identification code in the data packet, inquiring whether the embedded equipment corresponding to the equipment identification code is accessed, if so, writing the effective content in the data packet into the file in the corresponding storage area, wherein the file supports additional writing, and a new file is generated after the effective content reaches the specified size, so that the real-time recording of the user data and the running log of the embedded equipment is completed.
The invention adopts the mode of centralized storage and management of the main control server, thereby saving the memory on the embedded equipment and facilitating the centralized management and data operation.
Fig. 4 is a second flowchart of the embedded device deployment method provided by the present invention, and as shown in fig. 4, the corresponding execution main body is an embedded device, and includes:
step 201, after initialization, sending an access request message data packet to a master control server;
step 202, receiving a response message data packet sent by the master control server, and completing file system loading and starting based on a file system packet and a configuration file in the response message data packet;
step 203, obtaining operation data, and sending the operation data to the master control server through an interconnection interface, so that the master control server stores the data.
Specifically, the master control server identifies the powered-on embedded device in the operation process, and issues a file system package and a configuration file through an interconnection interface, namely a low-speed interface or a network port; and locally allocating an independent storage area for the embedded equipment, receiving the running data sent by the embedded equipment and storing the running data into the respective independent storage area. When the embedded device is powered on, the core is started and the drive is initialized, then the file system and the configuration file are obtained from the main control server through the interconnection interface, namely the low-speed interface or the internet access, the loading and the starting of the file system are completed firstly, then the configuration and the operation of the service program are completed, and the operation data are sent to the main control server in the operation process of the service program.
The interconnection interface of the embedded device supports low-speed interfaces such as I2C and SPI, or Ethernet port, if supporting at the same time, the network port is selected preferentially, and the embedded device is connected with the main control server through the interconnection interface. After the embedded device is powered on, firstly, core starting and peripheral drive initialization are completed locally, then, an access request message is sent to a main control server through an interconnection interface, a response message of the main control server is waited, loading and starting of a file system are completed after a sent file system and a configuration file are obtained, a service program reads the configuration file, parameters are extracted to complete configuration and operation, and user data and an operation log generated in the operation process of the service program are continuously sent to the main control server through the interconnection interface.
According to the invention, the main control server becomes a starting storage medium and a storage extension of the embedded equipment by adapting the embedded equipment with various types of interconnection interfaces, so that the requirement of local storage of the embedded equipment is reduced, and the hardware cost is reduced; the implementation method runs on a platform driving layer of the equipment, is transparent to the application program, and the application program does not need to pay attention to the specific method for starting, configuring and running data management of the embedded equipment, so that the development cost of the application program is reduced.
Based on the above embodiment, step 201 includes:
and after the power is on, executing a bootstrap program and a core program to complete the initialization of the peripheral interface drive.
Specifically, as shown in fig. 5, after the embedded device is powered on, the chip automatically executes a boot program, and then executes a kernel program, where for different types of embedded devices, the kernel may be a kernel of a linux system, or may also be a customized minimum system in other real-time systems, and the execution of the kernel program may complete the start of the minimum system and the initialization of peripheral devices, where the peripheral devices include interconnection interfaces, i.e., low-speed interfaces such as I2C and SPI, or ethernet ports.
At this stage, because the only core for starting is the most basic part of the program which does not need to be changed after debugging is completed, the size of the program package can be controlled to be small, and the program package can be placed into a rom on a processor chip, or a small eprom or norflash is additionally arranged to meet the requirement.
After the initialization of the peripheral interface is completed, the embedded device actively initiates an access request to the master control server and waits for the master control server to issue a file system package and a configuration file. Specifically, the embedded device sends a data packet of the access request message to the master control server through an interconnection interface, i.e., a low-speed interface or an ethernet interface. And selecting the network port as an interconnection interface under the condition of the network port, and selecting the low-speed interface as the interconnection interface under the condition of no network port. The data packet of the access request message starts with a data packet type, the data packet type indication is an access message, and the length of a data packet type field is a fixed length; then the length of the data packet is used for indicating the length of the data packet, the unit is byte, and the length of the length field of the data packet is fixed length; followed by a device identification code indicating which embedded transmitted packet the length of the device identification code field is a fixed length, as shown in table 2.
TABLE 2
Type of data packet (Access message) Packet length Equipment identification code
After sending the access message, the embedded device will poll the interconnection interface to receive data all the time, and identify whether it is the response message of the main control server. Specifically, the data packet content of the response message is a file system package and a configuration file of the embedded device. The data packet starts with the data packet type, the data packet type indication is a response message, and the length of the data packet type field is a fixed length; then the length of the data packet is used for indicating the length of the data packet, the unit is byte, and the length of the length field of the data packet is fixed length; then, the device identification code is used for indicating which main control server sends the data packet, and the length of the field of the device identification code is fixed length; and finally, the data packet load is a file system and a configuration file, and the length of the load field is variable. The packet structure of the response message is shown in table 3.
TABLE 3
Figure BDA0003406955750000111
The invention carries out equipment initialization and core program loading in advance through the embedded equipment, only needs to execute partial program which does not need to be modified, has high loading speed and realizes light loading of the external equipment.
Based on any of the above embodiments, step 202 includes:
polling all interconnection interfaces and receiving data, and if the data is identified as the response message data packet, receiving the file system packet and the configuration file;
and checking the file system, and mounting the file system to finish the starting of the equipment.
In particular, as shown in FIG. 6, the file system package has a specific file structure that the embedded device can identify itself. The file system is managed by the master control server, and the operation of the embedded device is determined by the master control server. The embedded equipment interacts with the main control server through an interconnection interface to complete the self-starting of the system and the self-configuration process of the service program; after the file system package is modified, the embedded device can dynamically change the service program operated by the embedded device only by re-accessing after restarting, so that the link of downloading the program to the local for upgrading by the embedded device is avoided, and the efficiency is improved.
After the embedded equipment system is started, the service program can be started through the automatic script or directly started, the service program firstly reads the configuration file, extracts the operation parameters in the configuration file and verifies the correctness of the parameters, and then the corresponding functional service program is started and operated according to the parameters
The invention reduces the hardware cost because of reducing the requirement of local storage of the embedded device, the specific implementation method runs on the platform driving layer of the device, is transparent to the application program, the application program does not need to pay attention to the specific method of starting, configuring and running data management of the embedded device, and the development cost of the application program is reduced.
Based on any of the above embodiments, step 202 further includes:
and if the response message data packet is not received after the preset duration, the access request message data packet is sent to the master control server again.
Specifically, if the embedded device does not receive the access response message of the master control server within a certain time after sending the access message, the embedded device resends the access message.
And the embedded equipment receives the complete file system package, firstly checks the correctness of the file system package, and then mounts the file system to finish the starting process of the embedded equipment.
The invention avoids the situation that the embedded equipment waits for the master control server for a long time and initiates a new data flow again by setting a certain time length threshold.
Based on any of the above embodiments, step 203 includes:
extracting the operation parameters in the configuration file, and operating the functional service program corresponding to the configuration file after the operation parameters are verified;
acquiring user data and an operation log, and packaging the user data and the operation log to obtain the operation data;
and periodically sending the operating data to the master control server through the interconnection interface, so that the master control server stores the operating data in a preset storage area.
Specifically, as shown in FIG. 7, the configuration file has a specific file structure, and the embedded device can identify itself. The configuration files are all managed by the main control server, and the main control server determines how the embedded equipment runs the service program. The embedded equipment interacts with the main control server through an interconnection interface to complete the self-configuration process of the service program; after the configuration file is modified, the embedded equipment can automatically take effect only by re-accessing after restarting, the work of carrying out configuration updating on the embedded equipment one by one is avoided, and the efficiency is improved.
In the service running process, a service program of the embedded device continuously generates user data and a running log, and the files need to be stored for subsequent use, so that power-down storage is required. In the invention, the embedded device will run a real-time message sending program, the program will periodically obtain user data and running logs from the memory of the device, package them into running messages, and send them to the main control server through the interconnection interface, i.e. low speed interface or Ethernet interface, and write the user data and running logs into the files in the storage space independently allocated for the embedded device after the user data and running logs are received by the main control server. The operation message generated by the embedded device is packaged into a specified format in the form of a data packet: starting with a data packet type, wherein the data packet type indication is user data or an operation log, and the length of a data packet type field is a fixed length; then the length of the data packet is used for indicating the length of the data packet, the unit is byte, and the length of the length field of the data packet is fixed length; then, the device identification code is used for indicating which embedded type sent data packet, and the length of the field of the device identification code is fixed length; and finally, the data packet load, namely user data or a running log, and the length of the load field is variable. The data structure is shown in table 4.
TABLE 4
Figure BDA0003406955750000131
Figure BDA0003406955750000141
The invention is realized by adopting a built-in software mode without adding extra hardware cost, and simultaneously, the functions of all modules are independent from the common services of the main control server and the embedded equipment, so that the invention can not influence each other, can be adapted to the embedded equipment with various interconnection interfaces, and has better applicability.
The embedded device deployment system provided by the present invention is described below, and the embedded device deployment system described below and the embedded device deployment method described above may be referred to correspondingly.
Fig. 8 is a schematic structural diagram of an embedded device deployment system provided in the present invention, as shown in fig. 8, including: a first processing module 81, a second processing module 82 and a third processing module 83, wherein:
the first processing module 81 is configured to identify an access request message data packet of an embedded device, and obtain a device identification code and an interconnection interface of the embedded device; the second processing module 82 is configured to determine a file system package and a configuration file corresponding to the embedded device based on the device identification code, and issue the file system package and the configuration file to the embedded device through the interconnection interface, so that the embedded device performs system configuration; the third processing module 83 is configured to receive the operation data sent by the embedded device, and write the operation data into a preset storage area based on the device identification code.
The invention saves the storage space of the embedded server and realizes the unified management and configuration of various embedded devices by using the master control server as the starting storage medium and the storage extension of the embedded devices.
Fig. 9 is a second schematic structural diagram of an embedded device deployment system provided by the present invention, as shown in fig. 9, including: a fourth processing module 91, a fifth processing module 92 and a sixth processing module 93, wherein:
the fourth processing module 91 is configured to send an access request message data packet to the master server after initialization; the fifth processing module 92 is configured to receive a response message data packet sent by the master server, and complete file system loading and starting based on a file system and a configuration file in the response message data packet; the sixth processing module 93 is configured to obtain operation data, and send the operation data to the master server through an interconnection interface, so that the master server stores the operation data.
According to the invention, the main control server becomes a starting storage medium and a storage extension of the embedded equipment by adapting the embedded equipment with various types of interconnection interfaces, so that the requirement of local storage of the embedded equipment is reduced, and the hardware cost is reduced; the implementation method runs on a platform driving layer of the equipment, is transparent to the application program, and the application program does not need to pay attention to the specific method for starting, configuring and running data management of the embedded equipment, so that the development cost of the application program is reduced.
Fig. 10 illustrates a physical structure diagram of an electronic device, and as shown in fig. 10, the electronic device may include: a processor (processor)1010, a communication Interface (Communications Interface)1020, a memory (memory)1030, and a communication bus 1040, wherein the processor 1010, the communication Interface 1020, and the memory 1030 communicate with each other via the communication bus 1040. The processor 1010 may invoke logic instructions in the memory 1030 to perform an embedded device deployment method comprising: identifying an access request message data packet of embedded equipment, and acquiring an equipment identification code and an interconnection interface of the embedded equipment; determining a file system package and a configuration file corresponding to the embedded device based on the device identification code, and issuing the file system package and the configuration file to the embedded device through the interconnection interface so as to enable the embedded device to carry out system configuration; and receiving the operation data sent by the embedded equipment, and writing the operation data into a preset storage area based on the equipment identification code.
Furthermore, the logic instructions in the memory 1030 can be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, a computer is capable of executing the embedded device deployment method provided by the above methods, and the method includes: identifying an access request message data packet of embedded equipment, and acquiring an equipment identification code and an interconnection interface of the embedded equipment; determining a file system package and a configuration file corresponding to the embedded device based on the device identification code, and issuing the file system package and the configuration file to the embedded device through the interconnection interface so as to enable the embedded device to carry out system configuration; and receiving the operation data sent by the embedded equipment, and writing the operation data into a preset storage area based on the equipment identification code.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the embedded device deployment method provided by the above methods, the method comprising: identifying an access request message data packet of embedded equipment, and acquiring an equipment identification code and an interconnection interface of the embedded equipment; determining a file system package and a configuration file corresponding to the embedded device based on the device identification code, and issuing the file system package and the configuration file to the embedded device through the interconnection interface so as to enable the embedded device to carry out system configuration; and receiving the operation data sent by the embedded equipment, and writing the operation data into a preset storage area based on the equipment identification code.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An embedded device deployment method, comprising:
identifying an access request message data packet of embedded equipment, and acquiring an equipment identification code and an interconnection interface of the embedded equipment;
determining a file system package and a configuration file corresponding to the embedded device based on the device identification code, and issuing the file system package and the configuration file to the embedded device through the interconnection interface so as to enable the embedded device to carry out system configuration;
and receiving the operation data sent by the embedded equipment, and writing the operation data into a preset storage area based on the equipment identification code.
2. The embedded device deployment method of claim 1, wherein the identifying the access request message packet of the embedded device, obtaining the device identification code and the interconnect interface of the embedded device, further comprises:
binding the equipment identification code and the embedded equipment;
and establishing a mapping relation between the equipment identification code and a file system and between the equipment identification code and the configuration file to obtain a mapping relation list, and writing the mapping relation list into an equipment information index file.
3. The embedded device deployment method according to claim 1 or 2, wherein the receiving the operation data sent by the embedded device, and writing the operation data into a preset storage area based on the device identification code includes:
polling all interconnection interfaces and receiving data, and if the data is identified as the operating data, extracting the equipment identification code corresponding to the operating data;
and determining that the embedded equipment corresponding to the equipment identification code is accessed, and writing the user data and the running log of the embedded equipment into the preset storage area.
4. An embedded device deployment method, comprising:
after initialization, sending an access request message data packet to a master control server;
receiving a response message data packet sent by the master control server, and finishing file system loading and starting based on a file system packet and a configuration file in the response message data packet;
and acquiring operation data, and sending the operation data to the master control server through an interconnection interface so as to be used for the master control server to store data.
5. The embedded device deployment method of claim 4, wherein after the initialization, sending an access request message data packet to the master server, and before the initialization, further comprising:
and after the power is on, executing a bootstrap program and a core program to complete the initialization of the peripheral interface drive.
6. The embedded device deployment method according to claim 4, wherein the receiving of the response message data packet sent by the master server and the completion of the loading and starting of the file system based on the file system packet and the configuration file in the response message data packet comprises:
polling all interconnection interfaces and receiving data, and if the data is identified as the response message data packet, receiving the file system packet and the configuration file;
and checking the file system, and mounting the file system to finish the starting of the equipment.
7. The embedded device deployment method according to claim 6, wherein the receiving of the response message data packet sent by the master server, the completion of the file system loading and the startup based on the file system and the configuration file in the response message data packet, further comprises:
and if the response message data packet is not received after the preset duration, the access request message data packet is sent to the master control server again.
8. The embedded device deployment method of claim 4, wherein the obtaining the operation data and sending the operation data to the master server through an interconnection interface for data storage by the master server comprises:
extracting the operation parameters in the configuration file, and operating the functional service program corresponding to the configuration file after the operation parameters are verified;
acquiring user data and an operation log, and packaging the user data and the operation log to obtain the operation data;
and periodically sending the operating data to the master control server through the interconnection interface, so that the master control server stores the operating data in a preset storage area.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the embedded device deployment method according to any one of claims 1 to 8 are implemented when the program is executed by the processor.
10. A non-transitory computer readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the embedded device deployment method according to any one of claims 1 to 8.
CN202111520072.5A 2021-12-13 2021-12-13 Embedded equipment deployment method and system Pending CN114168210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111520072.5A CN114168210A (en) 2021-12-13 2021-12-13 Embedded equipment deployment method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111520072.5A CN114168210A (en) 2021-12-13 2021-12-13 Embedded equipment deployment method and system

Publications (1)

Publication Number Publication Date
CN114168210A true CN114168210A (en) 2022-03-11

Family

ID=80486329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111520072.5A Pending CN114168210A (en) 2021-12-13 2021-12-13 Embedded equipment deployment method and system

Country Status (1)

Country Link
CN (1) CN114168210A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035524A (en) * 2021-11-11 2022-02-11 成都卡诺普机器人技术股份有限公司 Control method and automatic control system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364891A (en) * 2011-09-13 2012-02-29 杭州华三通信技术有限公司 Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
CN102413022A (en) * 2011-12-31 2012-04-11 北京新媒传信科技有限公司 Application debugging method and system
CN109218103A (en) * 2018-09-26 2019-01-15 京信通信系统(中国)有限公司 Gateway upgrade method, gateway and Network Management Equipment
CN111371832A (en) * 2019-12-11 2020-07-03 添可智能科技有限公司 Data storage and detection method and equipment
CN111736877A (en) * 2020-03-31 2020-10-02 紫光云技术有限公司 Method for upgrading Agent of cloud database

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364891A (en) * 2011-09-13 2012-02-29 杭州华三通信技术有限公司 Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
CN102413022A (en) * 2011-12-31 2012-04-11 北京新媒传信科技有限公司 Application debugging method and system
CN109218103A (en) * 2018-09-26 2019-01-15 京信通信系统(中国)有限公司 Gateway upgrade method, gateway and Network Management Equipment
CN111371832A (en) * 2019-12-11 2020-07-03 添可智能科技有限公司 Data storage and detection method and equipment
CN111736877A (en) * 2020-03-31 2020-10-02 紫光云技术有限公司 Method for upgrading Agent of cloud database

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035524A (en) * 2021-11-11 2022-02-11 成都卡诺普机器人技术股份有限公司 Control method and automatic control system

Similar Documents

Publication Publication Date Title
CN106201563B (en) Configuration method and device of starting parameters and method and device for starting mainboard
US10002054B2 (en) Method and system for performing automatic system recovery
JP6799668B2 (en) RAID setting
CN103200271B (en) The method of ARM server and automation installation system thereof
CN101546270A (en) Automatic installation method for Linux operation system, device and system
CN103984575A (en) Rapid deployment method of cluster Linux operation system in cloud-computing environment
CN110879712A (en) Cloud data center physical host installation method and related device
TW201430561A (en) System and method of starting baseboard management controller
CN110908753B (en) Intelligent fusion cloud desktop server, client and system
CN103024079B (en) Obtain the method for server resource information, resource pool management system and server
CN101056205A (en) A management method, system and device based on ATCA architecture-based server
CN107391193A (en) A kind of client, the system and method for configuration server
CN107066287A (en) The method and system of ESXI virtual machine automatic deployment installation systems
WO2011088701A1 (en) Method and device for online upgrading cross-platform version
US20170249165A1 (en) Usb wireless network card configuration methods, host, usb wireless network card and communication system
CN111901142A (en) Firmware silent upgrading method and device for embedded equipment cluster
CN107220085B (en) Method for automatically upgrading RAID card firmware
CN114168210A (en) Embedded equipment deployment method and system
WO2022199335A1 (en) Method, apparatus and device for controlling firmware upgrade of server component, and storage medium
CN109120680B (en) Control system, method and related equipment
CN113326104B (en) Method, system and device for modifying internal configuration of virtual machine
CN111163167A (en) System installation method and device
CN111078305A (en) Information acquisition method and device, server and information management system
CN112948008A (en) Ironic based physical bare computer management method
CN103442041A (en) Method, device and system for upgrading firmware of embedded device

Legal Events

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