CN116339793A - Intelligent Internet of things operating system upgrading method and device, computer equipment and medium - Google Patents

Intelligent Internet of things operating system upgrading method and device, computer equipment and medium Download PDF

Info

Publication number
CN116339793A
CN116339793A CN202211695944.6A CN202211695944A CN116339793A CN 116339793 A CN116339793 A CN 116339793A CN 202211695944 A CN202211695944 A CN 202211695944A CN 116339793 A CN116339793 A CN 116339793A
Authority
CN
China
Prior art keywords
upgrade
compression
operating system
intelligent internet
things
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
CN202211695944.6A
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.)
Shenzhen Oribo Technology Co Ltd
Original Assignee
Shenzhen Oribo 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 Shenzhen Oribo Technology Co Ltd filed Critical Shenzhen Oribo Technology Co Ltd
Priority to CN202211695944.6A priority Critical patent/CN116339793A/en
Publication of CN116339793A publication Critical patent/CN116339793A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The application relates to an intelligent Internet of things operating system upgrading method, device, computer equipment and medium. The method comprises the following steps: decompressing the downloaded upgrade compressed package; the upgrade compression package is provided with system upgrade data corresponding to an intelligent Internet of things operating system of the running home terminal; if the system compression packet is obtained through decompression, storing the system compression packet into a flash memory space; the system compression package is obtained by compressing system upgrade data; after entering an engineering mode of an intelligent Internet of things operating system, acquiring a system compression packet from a flash memory space; decompressing the system compression packet to obtain system upgrade data; and upgrading the intelligent Internet of things operating system according to the system upgrading data. By adopting the method, the upgrading adaptability of the intelligent Internet of things operating system can be improved.

Description

Intelligent Internet of things operating system upgrading method and device, computer equipment and medium
Technical Field
The application relates to the technical field of the internet of things, in particular to an intelligent internet of things operating system upgrading method, device, computer equipment and medium.
Background
With the development of the internet of things technology, the functions realized by the internet of things equipment are more and more, and correspondingly, the complexity of the system of the internet of things equipment is higher and higher, and the upgrade package used for upgrading the system of the internet of things equipment is larger and larger.
In the conventional technology, in order to control the cost of the internet of things device, the storage capacity of the internet of things device is often smaller. However, for the internet of things device with a relatively small storage capacity, the problem that the storage capacity is insufficient to adapt to the upgrade package and the system upgrade fails is often unavoidable.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, a computer readable storage medium, and a computer program product for upgrading an operating system of an intelligent internet of things, which can improve adaptability.
In a first aspect, the present application provides an intelligent internet of things operating system upgrade method. The method comprises the following steps:
decompressing the downloaded upgrade compressed package; the upgrade compression package is provided with system upgrade data corresponding to an intelligent Internet of things operating system of the running home terminal;
if the system compression packet is obtained through decompression, storing the system compression packet into a flash memory space; the system compression package is obtained by compressing system upgrade data;
after entering an engineering mode of an intelligent Internet of things operating system, acquiring a system compression packet from a flash memory space;
decompressing the system compression packet to obtain system upgrade data;
and upgrading the intelligent Internet of things operating system according to the system upgrading data.
In one embodiment, the method further comprises:
if the upgrade compression package is decompressed to obtain system upgrade data, after entering an engineering mode of the intelligent Internet of things operating system, upgrading the intelligent Internet of things operating system according to the system upgrade data.
In one embodiment, before decompressing the downloaded upgrade compressed package, the method further comprises:
sending a downloading request of an upgrade compression package corresponding to an intelligent Internet of things operating system to a server; the download request carries the flash memory space information of the local terminal;
under the condition that the size of system upgrade data corresponding to an intelligent Internet of things operating system is not matched with the flash memory space information, obtaining an upgrade compression packet which is returned by a server and is generated after compression based on a system compression packet;
the system compression packet is obtained by compressing system upgrade data by a server.
In one embodiment, the method further comprises:
and under the condition that the size of system upgrade data corresponding to the intelligent Internet of things operating system is matched with the flash memory space information, acquiring an upgrade compression packet which is returned by the server and is generated after primary compression based on the system upgrade data.
In one embodiment, the method further comprises:
determining a storage path of the upgrade compressed package in the flash memory space;
writing the storage path and the system upgrading instruction into a system upgrading partition;
after entering an engineering mode of an intelligent Internet of things operating system, acquiring a system compression packet from a flash memory space, wherein the method specifically comprises the following steps of:
when the intelligent Internet of things operating system at the local end is restarted, reading a system upgrading instruction and a storage path from a system upgrading partition;
and entering an engineering mode of an intelligent Internet of things operating system based on the system upgrading instruction, and determining a system compression packet under a storage path.
In one embodiment, decompressing the downloaded upgrade compression package includes:
decompressing the downloaded upgrade compressed package to obtain a data package related to system upgrade;
checking the format of the data packet;
if the format is a compression format, judging decompression to obtain a system compression packet.
In a second aspect, the application further provides an intelligent internet of things operating system upgrading device. The device comprises:
the acquisition module is used for decompressing the downloaded upgrade compressed package; the upgrade compression package is provided with system upgrade data corresponding to an intelligent Internet of things operating system of the running home terminal;
the first decompression module is used for storing the system compression package into a flash memory space if the system compression package is obtained through decompression; the system compression package is obtained by compressing system upgrade data;
the second decompression module is used for acquiring a system compression packet from the flash memory space after entering an engineering mode of the intelligent Internet of things operating system; decompressing the system compression packet to obtain system upgrade data; and upgrading the intelligent Internet of things operating system according to the system upgrading data.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory in which a computer program is stored and a processor which, when executing the computer program, carries out the steps of the method described above.
In a fourth aspect, the present application also provides a computer-readable storage medium. A computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method described above.
In a fifth aspect, the present application also provides a computer program product. Computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described above.
The method, the device, the computer equipment, the storage medium and the computer program product for upgrading the intelligent Internet of things operation system decompress the downloaded upgrade compression package; the upgrade compression package is provided with system upgrade data corresponding to an intelligent Internet of things operating system of the running home terminal; if the system compression packet is obtained through decompression, storing the system compression packet into a flash memory space; the system compression package is obtained by compressing system upgrade data; after entering an engineering mode of an intelligent Internet of things operating system, acquiring a system compression packet from a flash memory space; decompressing the system compression packet to obtain system upgrade data; and upgrading the intelligent Internet of things operating system according to the system upgrading data. The system compression package is obtained by decompressing the upgrade compression package, and is stored in the flash memory space, so that the intelligent Internet of things operating system can be upgraded according to the system upgrade data obtained by decompressing the system compression package.
Drawings
FIG. 1 is an application environment diagram of an intelligent Internet of things operating system upgrade method in one embodiment;
FIG. 2 is a flow chart of a method for upgrading an operating system of the intelligent Internet of things in one embodiment;
FIG. 3 is a simplified flow chart of an upgrade method of an operation system of the intelligent Internet of things in one embodiment;
FIG. 4 is a block diagram of an upgrade apparatus for an operating system of the intelligent Internet of things in one embodiment;
FIG. 5 is an internal block diagram of a computer device in one embodiment;
fig. 6 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The method for upgrading the intelligent Internet of things operating system, which is provided by the embodiment of the application, can be applied to an application environment shown in fig. 1. Wherein the internet of things device 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server.
The internet of things device 102 may download the upgrade compression package from the server 104; the internet of things device 102 may decompress the downloaded upgrade compression package; the upgrade compression package is provided with system upgrade data corresponding to an intelligent Internet of things operating system of the running home terminal; if the system compression packet is obtained by decompression, the internet of things device 102 may store the system compression packet in the flash memory space; the system compression packet is obtained by compressing the system upgrade data; after the internet of things device 102 enters an engineering mode of an intelligent internet of things operating system, acquiring the system compression packet from a flash memory space; the internet of things device 102 may decompress the system compression packet to obtain the system upgrade data; the internet of things device 102 may upgrade the intelligent internet of things operating system according to the system upgrade data.
The internet of things device 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and the internet of things device may be an intelligent sound box, an intelligent television, an intelligent air conditioner, an intelligent central control switch, an intelligent lamp, an intelligent curtain, an intelligent vehicle-mounted device, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, an upgrade method of an operating system of an intelligent internet of things is provided, and the method is applied to the internet of things device in fig. 1 for illustration, and includes the following steps:
s202, decompressing the downloaded upgrade compressed package; the upgrade compression package is provided with system upgrade data corresponding to an intelligent Internet of things operating system of the running home terminal.
The system upgrade data is data for upgrading an intelligent Internet of things operating system.
The internet of things device comprises an intelligent internet of things operating system. The internet of things device can run an upgrade detection program, and interact with the server through the upgrade detection program to detect new system upgrade data in the server. And under the condition that new system upgrade data exists in the server, the Internet of things equipment can download an upgrade compression packet corresponding to the new system upgrade data from the server. The computer device may decompress the upgrade compression package.
In one embodiment, the internet of things device may run a background update program by which the upgrade compression package is automatically downloaded from the server.
In one embodiment, the internet of things device may be an intelligent home device, such as an intelligent central control device. The intelligent central control equipment is an Internet of things gateway and is used for controlling household equipment connected to the intelligent central control equipment.
S204, if the system compression packet is obtained through decompression, storing the system compression packet into a flash memory space; the system compression packet is obtained by compressing the system upgrade data.
The internet of things device may decompress the upgrade compression package to obtain a system compression package, and store the decompressed system compression package in the flash memory space.
In one embodiment, the internet of things device may decompress from the upgrade compression package to obtain system upgrade data, and store the system upgrade data to the flash memory space. The upgrade data is not a data packet in compressed format.
In one embodiment, the internet of things device may decompress the upgrade compression package to obtain an application data package, and store the application data package to the memory space. The internet of things device can upgrade the application program of the local terminal by using the application data packet in the memory space.
In one embodiment, the internet of things device may use the new application data to cover the existing application data packet in the memory space, thereby implementing the upgrade of the application program of the home terminal.
In one embodiment, the system upgrade data includes partition image files, engineering mode image files, kernel image files, file system image files, and the like.
The partition image file (boot. Img) is composed of file header information, kernel data and file system data. An engineering mode image file (recovery. Img) is used to brush (install) engineering modes. The kernel image file (kernel. Img) contains various hardware drivers, basic file systems, etc. of the computer. The file system image file (rootfs.img) contains the root file system.
S206, after entering the engineering mode of the intelligent Internet of things operating system, acquiring a system compression packet from the flash memory space.
The engineering mode refers to a mode capable of modifying data inside the internet of things device or an intelligent internet of things operating system, and in the engineering mode, the internet of things device can be used for brushing a new intelligent internet of things operating system or backing up or upgrading an existing intelligent internet of things operating system, and factory setting can be restored.
For example, after entering the engineering mode of the intelligent internet of things operating system, the internet of things device may determine a storage path of the upgrade compression package in the flash memory space to obtain the system compression package from the flash memory space.
S208, decompressing the system compression packet to obtain system upgrade data; and upgrading the intelligent Internet of things operating system according to the system upgrading data.
The internet of things device may decompress the system compression packet in an engineering mode of the intelligent internet of things operating system to obtain system upgrade data. The internet of things device can check the system upgrade data in an engineering mode of the intelligent internet of things operating system, and upgrade the intelligent internet of things operating system by using the system upgrade data after the system upgrade data passes the check.
In one embodiment, after the upgrade of the operating system of the intelligent internet of things is completed, the internet of things device may delete the system upgrade data to release the storage space of the local terminal.
In the method for upgrading the intelligent Internet of things operating system, the downloaded upgrading compression packet is decompressed; the upgrade compression package is provided with system upgrade data corresponding to an intelligent Internet of things operating system of the running home terminal; if the system compression packet is obtained through decompression, storing the system compression packet into a flash memory space; the system compression package is obtained by compressing system upgrade data; after entering an engineering mode of an intelligent Internet of things operating system, acquiring a system compression packet from a flash memory space; decompressing the system compression packet to obtain system upgrade data; and upgrading the intelligent Internet of things operating system according to the system upgrading data. The system compression package is obtained by decompressing the upgrade compression package, and is stored in the flash memory space, so that the intelligent Internet of things operating system can be upgraded according to the system upgrade data obtained by decompressing the system compression package.
In one embodiment, the method further comprises: if the upgrade compression package is decompressed to obtain system upgrade data, after entering an engineering mode of the intelligent Internet of things operating system, upgrading the intelligent Internet of things operating system according to the system upgrade data.
For example, the internet of things device may decompress the upgrade compression package to obtain the system upgrade data or the system compression package. Under the condition that the upgrade compression package is decompressed to obtain system upgrade data, the Internet of things device can store the system upgrade data into the flash memory space. The internet of things device can acquire system upgrade data from the flash memory space after entering an engineering mode of the intelligent internet of things operating system, and verify the system upgrade data. After the verification is passed, the Internet of things device can upgrade the intelligent Internet of things operating system by using the system upgrade data.
In this embodiment, if the upgrade compressed packet is decompressed to obtain the system upgrade data, after entering the engineering mode of the intelligent internet of things operating system, the intelligent internet of things operating system is upgraded according to the system upgrade data, and under the condition that the flash memory space is sufficient, the system compressed packet is not required to be decompressed in the re-engineering mode, and the system upgrade data is directly used for upgrading, so that the computing resources can be saved.
In one embodiment, before decompressing the downloaded upgrade compressed package, the method further comprises: sending a downloading request of an upgrade compression package corresponding to an intelligent Internet of things operating system to a server; the download request carries the flash memory space information of the local terminal; under the condition that the size of system upgrade data corresponding to an intelligent Internet of things operating system is not matched with the flash memory space information, obtaining an upgrade compression packet which is returned by a server and is generated after compression based on a system compression packet; the system compression packet is obtained by compressing system upgrade data by a server.
The internet of things device may generate a download request of an upgrade compression packet corresponding to the intelligent internet of things operating system, where the download request carries the flash memory space information of the local terminal, when detecting that new system upgrade data exists in the server. The internet of things device may send a download request to the server. The server may determine a flash space size indicated by the flash space information. The server may determine whether the flash space of the internet of things device is capable of accommodating the system upgrade data by comparing the size of the flash space with the size of the system upgrade data. Under the condition that the flash memory space of the Internet of things equipment cannot accommodate the system upgrade data, the server can compress the system upgrade data to obtain a system compression packet, and compress the system compression packet to obtain an upgrade compression packet. At this time, the upgrade package includes the secondarily compressed system upgrade data. The internet of things device can acquire the upgrade compression package returned by the server.
In this embodiment, under the condition that the size of system upgrade data corresponding to the operating system of the intelligent internet of things is not matched with the flash memory space information, an upgrade compression packet generated after the upgrade compression packet based on the system compression packet returned by the server is obtained, and the smaller flash memory space is used for system upgrade, so that the adaptability of system upgrade is improved.
In one embodiment, the method further comprises: and under the condition that the size of system upgrade data corresponding to the intelligent Internet of things operating system is matched with the flash memory space information, acquiring an upgrade compression packet which is returned by the server and is generated after primary compression based on the system upgrade data.
For example, in the case that the flash memory space of the internet of things device can accommodate the system upgrade data, the server may compress the system upgrade data once to obtain the upgrade compression package. At this time, the upgrade compression package includes the system upgrade data compressed once. The internet of things device can acquire the upgrade compression package returned by the server.
In one embodiment, the internet of things device may decompress and check the upgrade package returned by the server to obtain system upgrade data or a system compression package.
In this embodiment, under the condition that the size of system upgrade data corresponding to the operating system of the intelligent internet of things is matched with flash memory space information, an upgrade compression packet generated after primary compression based on the system upgrade data returned by the server is obtained, and under the condition that the flash memory space is enough, decompression of the system compression packet in a re-engineering mode is not needed, and the system upgrade data is directly used for upgrade processing, so that computing resources can be saved.
In one embodiment, the method further comprises: determining a storage path of the upgrade compressed package in the flash memory space; writing the storage path and the system upgrading instruction into a system upgrading partition; after entering an engineering mode of an intelligent Internet of things operating system, acquiring a system compression packet from a flash memory space, wherein the method specifically comprises the following steps of: when the intelligent Internet of things operating system at the local end is restarted, reading a system upgrading instruction and a storage path from a system upgrading partition; and entering an engineering mode of an intelligent Internet of things operating system based on the system upgrading instruction, and determining a system compression packet under a storage path.
The system upgrading instruction is an instruction required for upgrading the intelligent Internet of things operating system, and is used for indicating the Internet of things equipment to enter an engineering mode of the intelligent Internet of things operating system and upgrading the intelligent Internet of things operating system in the engineering mode.
For example, the internet of things device may obtain a storage path of the upgrade compression package in the flash memory space, and write the storage path and the system upgrade instruction into the system upgrade partition. When the intelligent Internet of things operating system at the local end is restarted, the Internet of things equipment can read the system upgrading instruction and the storage path from the system upgrading partition. Under the condition that the system upgrading instruction is read, the Internet of things equipment can enter an engineering mode of an intelligent Internet of things operating system in response to the system upgrading instruction, and a system compression packet under a lake area storage path is stored.
In one embodiment, the internet of things device restarts the intelligent internet of things operating system after writing the storage path and system upgrade instructions into the system upgrade partition (the MIsc partition). When the intelligent Internet of things operating system is restarted, the Internet of things equipment can read data in the system upgrading partition through a universal starting code (universal bootloader, uboot). If the system upgrade instruction is found, the normal intelligent Internet of things operating system is not entered, but rather the engineering mode (recovery) of the intelligent Internet of things operating system is entered. The internet of things device can decompress the system compression packet in the engineering mode to obtain system upgrade data, check the system upgrade data in the engineering mode and upgrade by using the system upgrade data.
In one embodiment, the system upgrade data includes a plurality of image files. Such as boot. Img, kernel. Img, misc. Img, trust. Img, vendor. Img, system. Img, etc.
In this embodiment, when the operating system of the intelligent internet of things at the local end is restarted, a system upgrade instruction and a storage path are read from a system upgrade partition; the system upgrading instruction is used for entering an engineering mode of an intelligent Internet of things operating system, determining a system compression packet under a storage path, and subsequently carrying out upgrading processing based on the system compression packet under the engineering mode, so that a smaller flash memory space can be used for carrying out system upgrading, and the adaptability of system upgrading is improved.
In one embodiment, decompressing the downloaded upgrade compression package comprises: decompressing the downloaded upgrade compressed package to obtain a data package related to system upgrade; checking the format of the data packet; if the format is a compression format, judging decompression to obtain a system compression packet.
The internet of things device may decompress the downloaded upgrade compression package to obtain a data package related to system upgrade. The internet of things device may check the format of the data packet. And under the condition that the data packet format is a compression format, the Internet of things equipment can judge to decompress to obtain a system compression packet. Under the condition that the format of the data packet is not in a compressed format, the Internet of things equipment can judge to decompress to obtain system upgrade data.
In this embodiment, the downloaded upgrade compressed packet is decompressed to obtain a data packet related to system upgrade; checking the format of the data packet; if the format is the compression format, judging decompression to obtain a system compression packet, and then storing the system compression packet into a flash memory space, and using a smaller flash memory space to upgrade the system, so that the adaptability of the system upgrade is improved.
In one embodiment, a simple flow diagram of an intelligent internet of things operating system upgrade method is provided as shown in fig. 3. The intelligent central control equipment is communicated with the server through a network, and when an upgrade detection program operated by the intelligent central control equipment detects that a new intelligent Internet of things operating system exists in the server, the intelligent central control equipment can determine that the version of the current intelligent Internet of things operating system of the local end is too low. The intelligent central control device may download an upgrade compression package (update. Zip) from the server. The internet of things device can decompress the upgrade compressed package and verify the data package obtained by decompression.
Under the condition that the data packet is in a non-compressed format, namely the data packet is system upgrade data, the intelligent central control equipment can enter an engineering mode of an intelligent Internet of things operating system, and the system upgrade data is used for upgrading in the engineering mode. The system upgrade data may include system. Img.
Under the condition that the data packet is in a compressed format, namely the data packet is a system compressed packet, the intelligent central control equipment can enter an engineering mode of an intelligent Internet of things operating system, and under the engineering mode, the system compressed packet is decompressed to obtain system upgrade data. The intelligent central control device can be upgraded in the engineering mode by using the system upgrade data. The system compression package may include system. Img. Zip.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an intelligent internet of things operating system upgrading device for realizing the above related intelligent internet of things operating system upgrading method. The implementation scheme of the device for solving the problem is similar to the implementation scheme recorded in the method, so the specific limitation in the embodiment of the device for upgrading the operating system of the intelligent internet of things provided below can be referred to the limitation of the method for upgrading the operating system of the intelligent internet of things, and the description is omitted herein.
In one embodiment, as shown in fig. 4, there is provided an intelligent internet of things operating system upgrade apparatus 400, including: an acquisition module 402, a first decompression module 404, and a second decompression module 406, wherein:
an obtaining module 402, configured to decompress the downloaded upgrade compressed package; the upgrade compression package is provided with system upgrade data corresponding to an intelligent Internet of things operating system of the running home terminal.
The first decompression module 404 is configured to store the system compression packet into the flash memory space if the system compression packet is obtained by decompression; the system compression packet is obtained by compressing the system upgrade data.
The second decompression module 406 is configured to obtain a system compression packet from the flash memory space after entering an engineering mode of the operating system of the intelligent internet of things; decompressing the system compression packet to obtain system upgrade data; and upgrading the intelligent Internet of things operating system according to the system upgrading data.
In one embodiment, the method further comprises:
if the upgrade compression package is decompressed to obtain system upgrade data, after entering an engineering mode of the intelligent Internet of things operating system, upgrading the intelligent Internet of things operating system according to the system upgrade data.
In one embodiment, the obtaining module 402 is further configured to send a download request of an upgrade compression package corresponding to the operating system of the intelligent internet of things to the server; the download request carries the flash memory space information of the local terminal; under the condition that the size of system upgrade data corresponding to an intelligent Internet of things operating system is not matched with the flash memory space information, obtaining an upgrade compression packet which is returned by a server and is generated after compression based on a system compression packet; the system compression packet is obtained by compressing system upgrade data by a server.
In one embodiment, the obtaining module 402 is further configured to obtain an upgrade compression packet generated after performing primary compression based on the system upgrade data returned by the server when the size of the system upgrade data corresponding to the operating system of the intelligent internet of things is matched with the flash memory space information.
In one embodiment, the second decompression module 406 is further configured to determine a storage path of the upgrade compression package in the flash space; writing the storage path and the system upgrading instruction into a system upgrading partition; when the intelligent Internet of things operating system at the local end is restarted, reading a system upgrading instruction and a storage path from a system upgrading partition; and entering an engineering mode of an intelligent Internet of things operating system based on the system upgrading instruction, and determining a system compression packet under a storage path.
In one embodiment, the obtaining module 402 is further configured to decompress the downloaded upgrade compressed package to obtain a data package related to system upgrade; checking the format of the data packet; if the format is a compression format, judging decompression to obtain a system compression packet.
All or part of the modules in the intelligent internet of things operating system upgrading device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing system upgrade data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection.
In one embodiment, a computer device is provided, which may be an internet of things device, and an internal structure diagram thereof may be as shown in fig. 6. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by the processor, implements a method for upgrading an operating system of the intelligent internet of things. The display unit of the computer equipment is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device, wherein the display screen can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on a shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 5 or 6 are merely block diagrams of portions of structures related to the aspects of the present application and are not intended to limit the computer devices to which the aspects of the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. An intelligent internet of things operating system upgrading method is characterized by comprising the following steps:
decompressing the downloaded upgrade compressed package; the upgrade compression package is provided with system upgrade data corresponding to an intelligent Internet of things operating system of the running home terminal;
if the system compression packet is obtained through decompression, storing the system compression packet into a flash memory space; the system compression packet is obtained by compressing the system upgrade data;
after entering an engineering mode of an intelligent Internet of things operating system, acquiring the system compression packet from a flash memory space;
decompressing the system compression packet to obtain the system upgrade data;
and upgrading the intelligent Internet of things operating system according to the system upgrading data.
2. The method according to claim 1, wherein the method further comprises:
if the upgrade compression package is decompressed to obtain the system upgrade data, after entering an engineering mode of the intelligent Internet of things operating system, upgrading the intelligent Internet of things operating system according to the system upgrade data.
3. The method of claim 1, wherein prior to decompressing the downloaded upgrade compression package, the method further comprises:
sending a downloading request of an upgrade compression package corresponding to an intelligent Internet of things operating system to a server; the download request carries the flash memory space information of the local terminal;
acquiring an upgrade compression packet generated after compression based on a system compression packet returned by the server under the condition that the size of system upgrade data corresponding to the intelligent Internet of things operating system is not matched with the flash memory space information;
the system compression packet is obtained by compressing the system upgrade data by the server.
4. A method according to claim 3, characterized in that the method further comprises:
and under the condition that the size of system upgrade data corresponding to the intelligent Internet of things operating system is matched with the flash memory space information, acquiring an upgrade compression packet which is returned by the server and is generated after primary compression based on the system upgrade data.
5. The method according to claim 1, wherein the method further comprises:
determining a storage path of the upgrade compression package in a flash memory space;
writing the storage path and the system upgrading instruction into a system upgrading partition;
after entering an engineering mode of an intelligent Internet of things operating system, acquiring the system compression packet from a flash memory space, wherein the method specifically comprises the following steps of:
when the intelligent Internet of things operating system at the local end is restarted, reading the system upgrading instruction and the storage path from the system upgrading partition;
and entering an engineering mode of an intelligent Internet of things operating system based on the system upgrading instruction, and determining a system compression packet under the storage path.
6. The method of any of claims 1 to 5, wherein decompressing the downloaded upgrade compression package comprises:
decompressing the downloaded upgrade compressed package to obtain a data package related to system upgrade;
checking the format of the data packet;
and if the format is a compression format, judging to decompress to obtain a system compression packet.
7. An intelligent internet of things operating system upgrade apparatus, the apparatus comprising:
the acquisition module is used for decompressing the downloaded upgrade compressed package; the upgrade compression package is provided with system upgrade data corresponding to an intelligent Internet of things operating system of the running home terminal;
the first decompression module is used for storing the system compression package into a flash memory space if the system compression package is obtained through decompression; the system compression packet is obtained by compressing the system upgrade data;
the second decompression module is used for acquiring the system compression packet from the flash memory space after entering an engineering mode of the intelligent Internet of things operating system; decompressing the system compression packet to obtain the system upgrade data; and upgrading the intelligent Internet of things operating system according to the system upgrading data.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202211695944.6A 2022-12-28 2022-12-28 Intelligent Internet of things operating system upgrading method and device, computer equipment and medium Pending CN116339793A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211695944.6A CN116339793A (en) 2022-12-28 2022-12-28 Intelligent Internet of things operating system upgrading method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211695944.6A CN116339793A (en) 2022-12-28 2022-12-28 Intelligent Internet of things operating system upgrading method and device, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN116339793A true CN116339793A (en) 2023-06-27

Family

ID=86884723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211695944.6A Pending CN116339793A (en) 2022-12-28 2022-12-28 Intelligent Internet of things operating system upgrading method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN116339793A (en)

Similar Documents

Publication Publication Date Title
CN105144074B (en) It is stored using the block of hybrid memory device
CN103493011A (en) Application compatibility with library operating systems
US9262283B2 (en) Method for reading kernel log upon kernel panic in operating system
CN108650287B (en) Upgrading method and device for terminal device in Internet of things and computer readable medium
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN105138376A (en) Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
US20130179670A1 (en) Booting method of multimedia device and multimedia device
CN112988284A (en) Application program starting method and device, computer equipment and storage medium
CN113504918A (en) Equipment tree configuration optimization method and device, computer equipment and storage medium
CN112667246A (en) Application function extension method and device and electronic equipment
CN114237727B (en) Drive loading method, device, computer equipment and storage medium
US11409648B2 (en) Electronic apparatus and controlling method for performing memory swapping to reduce resource usage
CN116541336A (en) Software running method of multi-core chip and coprocessor
KR102516940B1 (en) Electronic device for performing a booting and method of operating the same
CN116339793A (en) Intelligent Internet of things operating system upgrading method and device, computer equipment and medium
CN113778485A (en) System operation method and device of electronic chip, electronic chip and storage medium
CN114443442A (en) Log storage method and electronic equipment
CN115827080B (en) Embedded equipment adaptation method and device based on serial port communication and computer equipment
CN111381892A (en) Data processing method, device, equipment and machine readable medium
CN116048593A (en) System intelligent upgrading method, device, computer equipment and storage medium
CN113408845B (en) Processing method and device of production flow, computer equipment and storage medium
CN114741095A (en) Upgrading method and device based on linux system, computer equipment and storage medium
CN114416471A (en) Startup log control method and device, computer equipment and storage medium
CN114281351A (en) Application operation method, electronic device and storage medium

Legal Events

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