CN112711434A - Resource package processing method and device, terminal equipment and storage medium - Google Patents

Resource package processing method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112711434A
CN112711434A CN202011642776.5A CN202011642776A CN112711434A CN 112711434 A CN112711434 A CN 112711434A CN 202011642776 A CN202011642776 A CN 202011642776A CN 112711434 A CN112711434 A CN 112711434A
Authority
CN
China
Prior art keywords
identification information
resource packet
resource
target
sub
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
CN202011642776.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.)
JD Digital Technology Holdings Co Ltd
Original Assignee
JD Digital Technology Holdings 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 JD Digital Technology Holdings Co Ltd filed Critical JD Digital Technology Holdings Co Ltd
Priority to CN202011642776.5A priority Critical patent/CN112711434A/en
Publication of CN112711434A publication Critical patent/CN112711434A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention relates to a method and a device for processing a resource packet, a terminal device and a storage medium, wherein the method comprises the following steps: receiving a resource packet sent by a server, wherein the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification; acquiring first identification information, a checking algorithm and a plurality of sub-identifications from a resource packet; determining second identification information corresponding to the plurality of sub-identifications by using a verification algorithm; and verifying the resource package according to the second identification information and the first identification information, calculating the sub-identification in the resource package by using a verification algorithm after the terminal equipment receives the resource package to obtain second verification identification information, and comparing the second verification identification information with the first identification information to verify whether the resource package received from the server is a complete resource package, so that the complete resource package is adopted for upgrading, and the condition that the upgrading fails due to the incompleteness of the resource package is avoided.

Description

Resource package processing method and device, terminal equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of software, in particular to a resource package processing method, a resource package processing device, terminal equipment and a storage medium.
Background
With the development of video and mobile internet advertising technologies, the application of advertising machines is more and more extensive, for example, in buildings, communities, markets, supermarkets, elevator entrances or different consumption places, and the like, the advertising machines provide advertisements for users by utilizing free time, so that the purpose of advertising and achieving marketing brands is achieved conveniently.
For a system with a built-in advertisement system, the upgrading mode usually comprises two modes, namely offline upgrading and online upgrading, wherein offline upgrading refers to that a professional maintainer carries out disassembly upgrading system assembly on an advertisement machine to be upgraded, and the offline upgrading mode causes high labor cost and poor flexibility; the on-line upgrading refers to that an upgrading packet is sent to an advertising machine through a network, the advertising machine automatically executes system upgrading, corresponding technical support needs to be provided by a supplier of the advertising machine during upgrading, and the upgrading process is that direct upgrading is carried out according to the received upgrading packet, so that the condition of upgrading failure can occur when the advertising machine is upgraded on line.
Disclosure of Invention
In view of this, to solve the technical problems or some technical problems, embodiments of the present invention provide a method and an apparatus for processing a resource package, a terminal device, and a storage medium.
In a first aspect, an embodiment of the present invention provides a method for processing a resource packet, where the method is applied to a terminal device, and the method includes:
receiving a resource packet sent by a server, wherein the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification;
acquiring the first identification information, the checking algorithm and a plurality of sub-identifications from the resource packet;
determining second identification information corresponding to the sub-identifications by using the verification algorithm;
and checking the resource packet according to the second identification information and the first identification information.
In a possible embodiment, the checking the resource packet according to the second identification information and the first identification information includes:
if the second identification information is consistent with the first identification information, determining that the resource packet is successfully verified and storing the resource packet at a preset position;
and if the second identification information is inconsistent with the first identification information, determining that the resource packet check fails, and sending a message for retransmitting the resource packet to the server.
In one possible implementation, the terminal device is provided with a first IOT module, and the server is provided with a second IOT module;
the receiving of the resource packet sent by the server includes:
the first IOT module receives the resource packet sent by the server through the second IOT module.
In one possible embodiment, the sending the message for retransmitting the resource packet to the server includes:
the first IOT module sends a message to a second IOT module of the server to retransmit the resource package.
In a possible implementation manner, the terminal device is further provided with a third IOT module;
the method further comprises the following steps:
receiving input target identification information through the third IOT module, wherein the target identification information is identification information of a corresponding resource packet configured for a target to be updated;
and when a target resource packet corresponding to the target identification information is inquired at a preset position, acquiring the target resource packet from the preset position to execute an updating operation on the target configuration.
In one possible embodiment, the method further comprises:
and when the target resource packet corresponding to the target identification information is not inquired from the preset position, returning a message that the target configuration does not have the resource packet to the third IOT module.
In a second aspect, an embodiment of the present invention provides a device for processing a resource packet, including:
the system comprises a receiving module, a verification module and a verification module, wherein the receiving module is used for receiving a resource packet sent by a server, the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification;
an obtaining module, configured to obtain the first identifier information, the verification algorithm, and the plurality of sub identifiers from the resource package;
the determining module is used for determining second identification information corresponding to the sub-identifications by using the checking algorithm;
and the checking module is used for checking the resource packet according to the second identification information and the first identification information.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
the system comprises a first IOT module, a second IOT module and a verification module, wherein the first IOT module is used for receiving a resource packet sent by a server, the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification;
the processor is used for acquiring the first identification information, the checking algorithm and a plurality of the sub-identifications from the resource packet; determining second identification information corresponding to the sub-identifications by using the verification algorithm; and checking the resource packet according to the second identification information and the first identification information.
In a possible implementation manner, the processor is specifically configured to determine that the resource packet is successfully verified if the second identification information is consistent with the first identification information; and if the second identification information is inconsistent with the first identification information, determining that the resource packet check fails.
In one possible implementation, the terminal device further includes:
and the memory is used for storing the resource packet when the second identification information is consistent with the first identification information.
In a possible implementation manner, the first IOT module is further configured to send a message for retransmitting the resource packet to the second IOT module of the server when the second identification information is inconsistent with the first identification information.
In one possible implementation, the terminal device further includes:
the third IOT module is used for receiving input target identification information, and the target identification information is identification information of a corresponding resource packet configured for a target to be updated; and when a target resource packet corresponding to the target identification information is inquired at a preset position, acquiring the target resource packet from the preset position to execute an updating operation on the target configuration.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the method for processing a resource package according to any one of the above first aspects.
According to the resource packet processing scheme provided by the embodiment of the invention, a resource packet sent by a server is received, the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification; acquiring the first identification information, the checking algorithm and a plurality of sub-identifications from the resource packet; determining second identification information corresponding to the sub-identifications by using the verification algorithm; and verifying the resource package according to the second identification information and the first identification information, calculating the sub-identification in the resource package by using a verification algorithm after the terminal equipment receives the resource package to obtain second verification identification information, and comparing the second verification identification information with the first identification information to verify whether the resource package received from the server is a complete resource package, so that the complete resource package is adopted for upgrading, and the condition that the upgrading fails due to the incompleteness of the resource package is avoided.
Drawings
Fig. 1 is a schematic flowchart of a method for processing a resource package according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another resource package processing method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for processing a resource package according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a resource packet processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, 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.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Fig. 1 is a schematic flowchart of a method for processing a resource packet according to an embodiment of the present invention, and as shown in fig. 1, the method specifically includes:
and S11, receiving the resource packet sent by the server.
The resource package processing method provided by the embodiment of the invention is applied to updating of configuration on terminal equipment, the terminal equipment server establishes communication connection through the communication module, and the server is used for generating and storing the resource package for updating the configuration on the terminal equipment.
The terminal device may be a device with an information display function, for example, an advertisement machine, and the server actively issues a resource packet for updating configuration to the terminal device, where the resource packet carries first identification information and a verification algorithm, and the resource packet includes a plurality of portions, and each portion is provided with a corresponding sub-identification.
Furthermore, the first identification information is arranged on each resource package to represent the uniqueness of the resource package, so that the corresponding configuration can be found for updating and upgrading subsequently and directly through the first identification information, the resource package comprises a plurality of parts, each part is provided with a corresponding sub-identifier, and the integrity of the resource package is verified through a verification algorithm, the plurality of sub-identifiers and the first identification information, so that the received resource package is complete.
It should be noted that: the check algorithm may be predetermined by the server and the terminal device, and the name/identifier of the check algorithm may be added to a preset position of the resource packet, where the preset position may be a packet header position of the resource packet, or may be any other position, and may be set according to actual requirements.
S12, obtaining the first identification information, the checking algorithm and the sub-identifications from the resource package.
And analyzing the resource package obtained from the server to obtain the first identifier, the checking algorithm and the sub-identifier corresponding to each part of the resource package.
And S13, determining second identification information corresponding to the sub-identifications by using the verification algorithm.
And calculating the plurality of sub-identifiers by adopting a verification algorithm to obtain second identifier information for verifying the integrity of the resource packet, wherein the calculation process of the sub-identifiers can correspond to different calculation processes according to different algorithms.
And adding a verification algorithm and the sub-identifiers in the resource packet to enable the terminal equipment side to calculate second identification information corresponding to the plurality of sub-identifiers by using the verification algorithm when receiving the resource packet, and verifying the integrity of the received resource packet through the second identification information.
S14, checking the resource packet according to the second identification information and the first identification information.
Comparing second identification information obtained by calculating the plurality of sub-identifications with the first identification information by adopting a verification algorithm, and determining that the resource packet is successfully verified when the second identification information is consistent with the first identification information, namely, the resource packet received from the server is complete; and when the second identification information is inconsistent with the first identification information, determining that the resource packet check fails, namely that the resource packet received from the server is incomplete.
In an alternative of the embodiment of the present invention, the first identification information may be set according to an attribute of the resource packet, and the sub-identification may be obtained by performing a back-stepping operation using a predetermined verification algorithm according to the number of the corresponding portions of the resource packet and the first identification information.
According to the resource packet processing method provided by the embodiment of the invention, a resource packet sent by a server is received, the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification; acquiring the first identification information, the checking algorithm and a plurality of sub-identifications from the resource packet; determining second identification information corresponding to the sub-identifications by using the verification algorithm; and verifying the resource package according to the second identification information and the first identification information, calculating the sub-identification in the resource package by using a verification algorithm after the terminal equipment receives the resource package to obtain second verification identification information, and comparing the second verification identification information with the first identification information to verify whether the resource package received from the server is a complete resource package, so that the complete resource package is adopted for upgrading, and the condition that the upgrading fails due to the incompleteness of the resource package is avoided.
Fig. 2 is a flowchart illustrating a flowchart of another method for processing a resource package according to an embodiment of the present invention, where as shown in fig. 2, the method specifically includes:
and S21, the first IOT module of the terminal device receives the resource packet sent by the server through the second IOT module.
The resource package processing method provided by the embodiment Of the invention is applied to updating configuration on terminal equipment, the terminal equipment is provided with a first IOT (Internet Of Things) module, the server is provided with a second IOT module, the first IOT module and the second IOT module are used for establishing communication connection between the terminal equipment and the server, and data transmission between the terminal equipment and the server can be realized through the IOT module without technical support provided by a supplier Of the terminal equipment.
The terminal device may be a device having an information display function, such as an advertisement player, and the configuration on the terminal device may be understood as a function of the terminal device, such as an image acquisition function, a sound playing function, an image display function, and the like, and the configuration may also refer to a system built in the terminal device.
Furthermore, first identification information is arranged on each resource package to represent the uniqueness of the resource package, so that the corresponding configuration can be found for updating and upgrading subsequently and directly through the first identification information, the resource package comprises a plurality of parts, each part is provided with a corresponding sub-identifier, and the integrity of the resource package is verified through a verification algorithm, the plurality of sub-identifiers and the first identification information to ensure that the received resource package is complete.
It should be noted that: the verification algorithm may be predetermined by the server and the terminal device, and the name/identifier of the verification algorithm may be added to a preset position of the resource packet, where the preset position may be a packet header position of the resource packet, or may be any other position, and may be set according to actual requirements.
S22, the processor of the terminal device obtains the first identification information, the verification algorithm and the plurality of sub-identifications from the resource package.
A processor (e.g., FPGA, MCU, etc.) on the terminal device parses the received resource packet to obtain first identification information set on the resource packet and sub-identifications in each part of the resource packet, and obtains a check algorithm (the check algorithm may be a checksum operation) from a preset position of the resource packet.
And S23, the processor of the terminal equipment determines second identification information corresponding to the sub-identifications by using the checking algorithm.
And the processor on the terminal equipment calculates the plurality of sub-identifiers by using a verification algorithm to obtain corresponding second identifier information, and the calculation process corresponding to the verification algorithm can be summation operation, product operation, differential operation and the like.
And S24, if the processor of the terminal equipment determines that the second identification information is consistent with the first identification information, determining that the verification of the resource packet is successful and storing the resource packet at a preset position.
S25, if the processor of the terminal device determines that the second identification information is inconsistent with the first identification information, determining that the check of the resource packet fails, and sending a message for retransmitting the resource packet to the server.
The processor on the terminal equipment determines whether the resource packet is complete according to the comparison result of the second identification information and the first identification information, and determines that the resource packet is successfully verified and stores the resource packet in a cache of the terminal equipment when the second identification information is consistent with the first identification information, namely, the resource packet received from the server is complete; and when the second identification information is inconsistent with the first identification information, determining that the check of the resource packet fails, and sending a message for retransmitting the resource packet to a second IOT module on the server through the first IOT module on the terminal equipment, namely, the resource packet received from the server is incomplete.
According to the resource packet processing method provided by the embodiment of the invention, a resource packet sent by a server is received, the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification; acquiring the first identification information, the checking algorithm and a plurality of sub-identifications from the resource packet; determining second identification information corresponding to the sub-identifications by using the verification algorithm; and verifying the resource package according to the second identification information and the first identification information, calculating sub-identifications in the resource package by using a verification algorithm after the terminal equipment receives the resource package to obtain second verification identification information, comparing the second verification identification information with the first identification information to verify whether the resource package received from the server is a complete resource package, and storing the resource package under the condition that the resource package is complete to ensure that the complete resource package is adopted for upgrading, thereby avoiding the condition that the upgrading fails due to the incompleteness of the resource package.
Fig. 3 is a schematic flowchart of a method for processing a resource package according to another embodiment of the present invention, and as shown in fig. 3, the method specifically includes:
and S31, receiving input target identification information through the third IOT module, wherein the target identification information is identification information of a corresponding resource packet configured for a target to be updated.
The terminal device is also provided with a third IOT module, the third IOT module is used for executing the updating operation configured on the terminal device, and the third IOT module provides an identification information input interface which is used for receiving the input target information identification.
The method includes the steps that a plurality of resource packages corresponding to configuration are stored in a preset address in a memory of the terminal device in advance through a first IOT module, corresponding first identification information is arranged on each resource package, the resource packages are used for upgrading corresponding configuration, and the configuration refers to a certain function on the terminal device, such as an AI camera acquisition function, an audio function, an image function and the like.
Further, the user determines the target configuration to be upgraded according to the requirement, determines the target identification information of the corresponding resource packet according to the target configuration, receives the input target identification information through the third IOT module, and the third IOT module queries from the memory whether the target resource packet corresponding to the target identification information exists.
S32, when a target resource package corresponding to the target identification information is inquired at a preset position, acquiring the target resource package from the preset position to execute an updating operation on the target configuration.
And S33, when the target resource packet corresponding to the target identification information is not inquired from the preset position, returning a message that the target configuration does not have the resource packet to the third IOT module.
When the target resource package corresponding to the target identification information is stored in the memory, the corresponding target resource package is called from the memory and is sent to a processor of the terminal equipment, and the processor executes the upgrading operation of the target configuration by using the target resource package.
When the target resource packet corresponding to the target identification information is not stored in the memory, a message that the target configuration does not have the resource packet is returned through the third IOT module, that is, the current version of the target configuration can be understood as the latest version.
In the method for processing the resource package provided by this embodiment, the third IOT module receives input target identification information, where the target identification information is identification information of a resource package corresponding to a target configuration to be updated, and when the target resource package corresponding to the target identification information is queried at a preset position, the integrity of the resource package is checked from the IOT module before the target resource package is stored at the preset position, so as to avoid a situation of failure in upgrading due to incompleteness of the resource package, and ensure diversity of upgrading selection by adding the third IOT module, thereby implementing custom configuration upgrading on the premise that the resource package is complete.
Fig. 4 is a schematic structural diagram of a resource packet processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus specifically includes:
a receiving module 41, configured to receive a resource packet sent by a server, where the resource packet carries first identification information and a verification algorithm, and the resource packet includes multiple portions, and each portion is provided with a corresponding sub-identifier;
an obtaining module 42, configured to obtain the first identifier information, the verification algorithm, and the plurality of sub identifiers from the resource package;
a determining module 43, configured to determine, by using the checking algorithm, second identification information corresponding to a plurality of the sub-identifications;
a checking module 44, configured to check the resource packet according to the second identification information and the first identification information.
The processing apparatus for a resource packet provided in this embodiment may be the processing apparatus for a resource packet shown in fig. 4, and may perform all the steps of the processing method for a resource packet shown in fig. 1 to 3, so as to achieve the technical effect of the processing method for a resource packet shown in fig. 1 to 3, which is described with reference to fig. 1 to 3 for brevity, and is not described herein again.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 5, the terminal device specifically includes:
the first IOT module 51 is configured to receive a resource packet sent by a server, where the resource packet carries first identification information and a verification algorithm, the resource packet includes multiple portions, and each portion is provided with a corresponding sub-identifier;
a processor 52, configured to obtain the first identification information, the checking algorithm, and the plurality of sub-identifications from the resource package; determining second identification information corresponding to the sub-identifications by using the verification algorithm; and checking the resource packet according to the second identification information and the first identification information.
In a possible embodiment, the processor 52 is specifically configured to determine that the resource packet is successfully verified if the second identification information is consistent with the first identification information; and if the second identification information is inconsistent with the first identification information, determining that the resource packet check fails.
In one possible implementation, the terminal device further includes:
a memory 53, configured to store the resource package when the second identification information is consistent with the first identification information.
In a possible implementation manner, the first IOT module 51 is further configured to send a message for retransmitting the resource packet to the second IOT module of the server when the second identification information is inconsistent with the first identification information.
In one possible implementation, the terminal device further includes:
a third IOT module 54, configured to receive input target identification information, where the target identification information is identification information of a resource packet corresponding to a target configuration to be updated; and when a target resource packet corresponding to the target identification information is inquired at a preset position, acquiring the target resource packet from the preset position to execute an updating operation on the target configuration.
The terminal device provided in this embodiment may be the terminal device shown in fig. 5, and may execute all the steps of the method for processing the resource packet shown in fig. 1 to 3, so as to achieve the technical effect of the method for processing the resource packet shown in fig. 1 to 3, and for brevity, it is specifically described with reference to fig. 1 to 3, and no further description is given here.
Fig. 6 is a schematic structural diagram of another terminal device according to an embodiment of the present invention, where the electronic device 600 shown in fig. 6 includes: at least one processor 601, memory 602, at least one network interface 604, and other user interfaces 603. The various components in the electronic device 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable communications among the components. The bus system 605 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in fig. 6.
The user interface 603 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 602 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 602 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like, and is used to implement various application services. A program implementing the method of an embodiment of the invention can be included in the application program 6022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application program 6022, the processor 601 is configured to execute the method steps provided by the method embodiments, for example, including:
receiving a resource packet sent by a server, wherein the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification; acquiring the first identification information, the checking algorithm and a plurality of sub-identifications from the resource packet; determining second identification information corresponding to the sub-identifications by using the verification algorithm; and checking the resource packet according to the second identification information and the first identification information.
In a possible implementation manner, if the second identification information is consistent with the first identification information, it is determined that the resource packet is successfully verified and the resource packet is stored in a preset position; and if the second identification information is inconsistent with the first identification information, determining that the resource packet check fails, and sending a message for retransmitting the resource packet to the server.
In one possible implementation, receiving input target identification information, where the target identification information is identification information of a resource packet corresponding to a target configuration to be updated; and when a target resource packet corresponding to the target identification information is inquired at a preset position, acquiring the target resource packet from the preset position to execute an updating operation on the target configuration.
In a possible implementation manner, when a target resource packet corresponding to the target identification information is not queried from a preset position, a message that the target configuration does not have the resource packet is returned.
The method disclosed by the above-mentioned embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The terminal device provided in this embodiment may be the terminal device shown in fig. 6, and may execute all the steps of the method for processing the resource packet shown in fig. 1 to 3, so as to achieve the technical effect of the method for processing the resource packet shown in fig. 1 to 3, and for brevity, it is specifically described with reference to fig. 1 to 3, and no further description is given here.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium are executable by one or more processors, the method for processing the resource package performed on the processing device side of the resource package is realized.
The processor is used for executing the processing program of the resource packet stored in the memory so as to realize the following steps of the processing method of the resource packet executed on the processing device side of the resource packet:
receiving a resource packet sent by a server, wherein the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification; acquiring the first identification information, the checking algorithm and a plurality of sub-identifications from the resource packet; determining second identification information corresponding to the sub-identifications by using the verification algorithm; and checking the resource packet according to the second identification information and the first identification information.
In a possible implementation manner, if the second identification information is consistent with the first identification information, it is determined that the resource packet is successfully verified and the resource packet is stored in a preset position; and if the second identification information is inconsistent with the first identification information, determining that the resource packet check fails, and sending a message for retransmitting the resource packet to the server.
In one possible implementation, receiving input target identification information, where the target identification information is identification information of a resource packet corresponding to a target configuration to be updated; and when a target resource packet corresponding to the target identification information is inquired at a preset position, acquiring the target resource packet from the preset position to execute an updating operation on the target configuration.
In a possible implementation manner, when a target resource packet corresponding to the target identification information is not queried from a preset position, a message that the target configuration does not have the resource packet is returned.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (13)

1. A resource packet processing method is applied to a terminal device, and is characterized in that the method comprises the following steps:
receiving a resource packet sent by a server, wherein the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification;
acquiring the first identification information, the checking algorithm and a plurality of sub-identifications from the resource packet;
determining second identification information corresponding to the sub-identifications by using the verification algorithm;
and checking the resource packet according to the second identification information and the first identification information.
2. The method of claim 1, wherein the checking the resource packet according to the second identification information and the first identification information comprises:
if the second identification information is consistent with the first identification information, determining that the resource packet is successfully verified and storing the resource packet at a preset position;
and if the second identification information is inconsistent with the first identification information, determining that the resource packet check fails, and sending a message for retransmitting the resource packet to the server.
3. The method of claim 1, wherein the terminal device is provided with a first IOT module and the server is provided with a second IOT module;
the receiving of the resource packet sent by the server includes:
the first IOT module receives the resource packet sent by the server through the second IOT module.
4. The method of claim 2, wherein sending a message to the server to retransmit the resource package comprises:
the first IOT module sends a message to a second IOT module of the server to retransmit the resource package.
5. The method according to any of claims 1-4, characterized in that the terminal device is further provided with a third IOT module;
the method further comprises the following steps:
receiving input target identification information through the third IOT module, wherein the target identification information is identification information of a corresponding resource packet configured for a target to be updated;
and when a target resource packet corresponding to the target identification information is inquired at a preset position, acquiring the target resource packet from the preset position to execute an updating operation on the target configuration.
6. The method of claim 5, further comprising:
and when the target resource packet corresponding to the target identification information is not inquired from the preset position, returning a message that the target configuration does not have the resource packet to the third IOT module.
7. An apparatus for processing resource packets, comprising:
the system comprises a receiving module, a verification module and a verification module, wherein the receiving module is used for receiving a resource packet sent by a server, the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification;
an obtaining module, configured to obtain the first identifier information, the verification algorithm, and the plurality of sub identifiers from the resource package;
the determining module is used for determining second identification information corresponding to the sub-identifications by using the checking algorithm;
and the checking module is used for checking the resource packet according to the second identification information and the first identification information.
8. A terminal device, comprising:
the system comprises a first IOT module, a second IOT module and a verification module, wherein the first IOT module is used for receiving a resource packet sent by a server, the resource packet carries first identification information and a verification algorithm, the resource packet comprises a plurality of parts, and each part is provided with a corresponding sub-identification;
the processor is used for acquiring the first identification information, the checking algorithm and a plurality of the sub-identifications from the resource packet; determining second identification information corresponding to the sub-identifications by using the verification algorithm; and checking the resource packet according to the second identification information and the first identification information.
9. The terminal device of claim 8, wherein the processor is specifically configured to determine that the resource packet is successfully verified if the second identification information is consistent with the first identification information; and if the second identification information is inconsistent with the first identification information, determining that the resource packet check fails.
10. The terminal device according to claim 9, wherein the terminal device further comprises:
and the memory is used for storing the resource packet when the second identification information is consistent with the first identification information.
11. The terminal device of claim 9, wherein the first IOT module is further configured to send a message for retransmitting the resource packet to the second IOT module of the server when the second identification information is inconsistent with the first identification information.
12. The terminal device according to any of claims 8-11, wherein the terminal device further comprises:
the third IOT module is used for receiving input target identification information, and the target identification information is identification information of a corresponding resource packet configured for a target to be updated; and when a target resource packet corresponding to the target identification information is inquired at a preset position, acquiring the target resource packet from the preset position to execute an updating operation on the target configuration.
13. A storage medium storing one or more programs executable by one or more processors to implement the method of processing a resource package according to any one of claims 1 to 6.
CN202011642776.5A 2020-12-31 2020-12-31 Resource package processing method and device, terminal equipment and storage medium Pending CN112711434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011642776.5A CN112711434A (en) 2020-12-31 2020-12-31 Resource package processing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011642776.5A CN112711434A (en) 2020-12-31 2020-12-31 Resource package processing method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112711434A true CN112711434A (en) 2021-04-27

Family

ID=75548092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011642776.5A Pending CN112711434A (en) 2020-12-31 2020-12-31 Resource package processing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112711434A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023077738A1 (en) * 2021-11-05 2023-05-11 上海商汤智能科技有限公司 Resource packet uploading method and apparatus, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153537A (en) * 2017-12-25 2018-06-12 北京车联天下信息技术有限公司 Mobile application update method and device
CN109413200A (en) * 2018-11-26 2019-03-01 Oppo(重庆)智能科技有限公司 A kind of method, client, MES and electronic equipment that resource imports
CN111314437A (en) * 2020-01-20 2020-06-19 腾讯科技(深圳)有限公司 Resource package downloading method and device, storage medium and electronic device
CN111558224A (en) * 2020-04-26 2020-08-21 完美世界(北京)软件科技发展有限公司 Mobile terminal game resource packaging method, unpacking method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153537A (en) * 2017-12-25 2018-06-12 北京车联天下信息技术有限公司 Mobile application update method and device
CN109413200A (en) * 2018-11-26 2019-03-01 Oppo(重庆)智能科技有限公司 A kind of method, client, MES and electronic equipment that resource imports
CN111314437A (en) * 2020-01-20 2020-06-19 腾讯科技(深圳)有限公司 Resource package downloading method and device, storage medium and electronic device
CN111558224A (en) * 2020-04-26 2020-08-21 完美世界(北京)软件科技发展有限公司 Mobile terminal game resource packaging method, unpacking method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023077738A1 (en) * 2021-11-05 2023-05-11 上海商汤智能科技有限公司 Resource packet uploading method and apparatus, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN109068179B (en) Multi-platform live broadcast method, computer device and computer readable storage medium
CN109597655B (en) Method and device for configuring application program
US10127057B2 (en) Method and apparatus for dynamically implementing application function
JP2019505056A (en) Electronic payment service processing method and device, and electronic payment method and device
CN110324174B (en) Block chain environment detection method, equipment, device and storage medium
CN110995703B (en) Service processing request processing method and device, and electronic device
CN107005435B (en) Network service descriptor shelving method and device
CN112714158B (en) Transaction processing method, relay network, cross-link gateway, system, medium and equipment
CN107733883B (en) Method and device for detecting account numbers registered in batches
CN108574721B (en) Login method, device, server, user terminal and readable storage medium
CN112148315A (en) Software deployment method, device, server and storage medium
CN109040263B (en) Service processing method and device based on distributed system
US20160162984A1 (en) Processing unstructured messages
US9021114B2 (en) Automatic connection of computing devices
CN114490037A (en) Mirror image deployment method and device, electronic equipment and storage medium
CN110012111B (en) Data service cluster system and data processing method
CN106708539B (en) Client updating method and device
CN112711434A (en) Resource package processing method and device, terminal equipment and storage medium
CN115131022A (en) Block chain-based digital asset transaction method, device, equipment and medium
CN108345508B (en) Interface call testing method and device
EP4087206A1 (en) Internet-of-things device registration method and apparatus, device and storage medium
CN109951549B (en) Network page access method and device and computer readable storage medium
CN105592169A (en) Terminal identification method and terminal identification device
CN112714166A (en) Multi-cluster management method and device for distributed storage system
CN111416851A (en) Method for session synchronization among multiple load balancers and load balancer

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
CB02 Change of applicant information

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Digital Technology Holding Co., Ltd

CB02 Change of applicant information