Script upgrading method and device for terminal equipment, equipment, medium and product
By establishing a unified script management platform in the Internet of Things system and determining the upgrade method based on the connection status of the terminal equipment, the problems of high cost of terminal equipment script upgrade and inconsistent process are solved, and the effect of unified management and cost reduction is achieved.
Patent Information
- Application Number
- CN202411807441.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-02-25
AI Technical Summary
In the Internet of Things system, the script upgrade cost of terminal devices is high and the process is not unified, making script adaptation difficult.
By establishing a unified script management platform, the connection status of the target terminal device is detected, and the script upgrade method is determined based on the connection status, including online upgrade and offline upgrade method, thereby realizing script upgrade of the terminal device.
It realizes unified management and dynamic configuration of terminal device script upgrades, reduces script upgrade costs and simplifies the process.
Smart Images

Figure CN119520274A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a script upgrading method, device, equipment, medium and product of a terminal device. Background Art
[0002] In IoT systems such as smart cities and smart buildings, the scripts of terminal devices in the IoT system need to be upgraded regularly or irregularly. IoT systems usually include a wide variety of terminal devices, such as multiple elevators and water meters in smart building systems. Upgrading the scripts of terminal devices one by one is costly, the upgrade process is difficult to unify, and the script adaptation of terminal devices is difficult. Therefore, a script upgrade method for terminal devices is needed to achieve unified management and dynamic configuration of terminal device script upgrades and reduce script upgrade costs. Summary of the invention
[0003] The present invention provides a script upgrade method, device, equipment, medium and product for terminal devices to solve the problems of high cost and inconsistent process of script upgrade of terminal devices. By establishing a unified script management platform, the script upgrade method of the terminal device is determined according to the connectivity status of the gateway and the terminal device, thereby realizing the script upgrade of the terminal device, which is conducive to reducing the script upgrade cost.
[0004] According to one aspect of the present invention, a script upgrade method for a terminal device is provided, the method being executed by a script management platform, the method comprising:
[0005] If a script upgrade task of the target terminal device is detected, the connection status between the gateway and the target terminal device is obtained;
[0006] Determine the script upgrade mode according to the connection status between the gateway and the target terminal device; wherein the script upgrade mode includes an online upgrade mode and an offline upgrade mode;
[0007] The script of the target terminal device is upgraded according to the script upgrade method.
[0008] According to another aspect of the present invention, a script upgrade device for a terminal device is provided, the device being configured on a script management platform, the device comprising:
[0009] A connection status acquisition module is used to acquire the connection status between the gateway and the target terminal device if a script upgrade task of the target terminal device is detected;
[0010] An upgrade mode determination module is used to determine a script upgrade mode according to the connectivity status between the gateway and the target terminal device; wherein the script upgrade mode includes an online upgrade mode and an offline upgrade mode;
[0011] The script upgrade module is used to upgrade the script of the target terminal device according to the script upgrade method.
[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0013] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the script upgrade method for a terminal device described in any embodiment of the present invention.
[0014] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the script upgrade method for a terminal device described in any embodiment of the present invention when executed.
[0015] According to another aspect of the present invention, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the script upgrade method for a terminal device according to any embodiment of the present invention is implemented.
[0016] The technical solution of the embodiment of the present invention obtains the connection status between the gateway and the target terminal device when detecting the script upgrade task of the target terminal device, determines the script upgrade method according to the connection status between the gateway and the target terminal device, and upgrades the script of the target terminal device according to the script upgrade method. The technical solution solves the problems of high cost and non-uniform process of terminal device script upgrade. By establishing a unified script management platform, the script upgrade method of the terminal device is determined according to the connection status between the gateway and the terminal device, thereby realizing the script upgrade of the terminal device, which is conducive to reducing the script upgrade cost.
[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 is a flowchart of a script upgrade method for a terminal device provided according to Embodiment 1 of the present invention;
[0020] Figure 2 is a flowchart of a script upgrade method for a terminal device provided according to Embodiment 2 of the present invention;
[0021] Figure 3 This is a schematic diagram of the structure of a script upgrade device for a terminal device provided in accordance with a third embodiment of the present invention;
[0022] Figure 4 It is a structural schematic diagram of an electronic device for implementing the script upgrading method of a terminal device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0025] Embodiment 1
[0026] Figure 1 The present invention provides a flowchart of a script upgrade method for a terminal device in the first embodiment of the present invention. This embodiment is applicable to the script upgrade scenario of a terminal device in an Internet of Things system. The method can be executed by a script upgrade device of the terminal device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0027] S110: If a script upgrade task of a target terminal device is detected, the connection status between the gateway and the target terminal device is obtained.
[0028] This solution can be executed by a script management platform, which can manage the scripts of each terminal device in the Internet of Things system. The terminal device can be an electronic device such as a display screen, an elevator, an air conditioner, and an electric meter. The script management platform can periodically upgrade the script of the target terminal device, or when the user's script upgrade instruction is detected, it can obtain the script upgrade file uploaded by the user and perform script upgrade on the target terminal device. The script upgrade task of the target terminal device can be the script upgrade cycle that reaches the target terminal device, or it can be the detection of the user's script upgrade instruction, or it can be the detection of the script upgrade file uploaded by the user.
[0029] After detecting the script upgrade task of the target terminal device, the script management platform can detect whether the gateway of the script management platform is connected to the target terminal device, and determine whether the script management platform can communicate with the target terminal device through the network based on the connectivity status of the gateway and the target terminal device.
[0030] S120. Determine a script upgrade method according to a connection status between the gateway and the target terminal device; wherein the script upgrade method includes an online upgrade method and an offline upgrade method.
[0031] The script management platform can determine the script upgrade method according to the connection status between the gateway and the target terminal device. Specifically, if the gateway is connected to the target terminal device, the script is upgraded in an online upgrade mode; if the gateway is not connected to the target terminal device, the script is upgraded in an offline upgrade mode.
[0032] The online upgrade method may be that the script management platform transmits the script upgrade data to the target terminal device through the network to complete the script upgrade of the target terminal device. The offline upgrade method may be that the script management platform transmits the script upgrade data of the target terminal device to the near field communication device associated with the target terminal device, and the near field communication device forwards the script upgrade data to the target terminal device based on the near field communication technology to complete the script upgrade of the target terminal device.
[0033] S130: Upgrade the script of the target terminal device according to the script upgrade method.
[0034] According to the script upgrade method that matches the target terminal device, the script management platform can realize the script upgrade of all terminal devices in the IoT system, which is conducive to reducing the script upgrade cost and unifying the script upgrade process.
[0035] The technical solution of the embodiment of the present invention obtains the connection status between the gateway and the target terminal device when detecting the script upgrade task of the target terminal device, determines the script upgrade method according to the connection status between the gateway and the target terminal device, and upgrades the script of the target terminal device according to the script upgrade method. The technical solution solves the problems of high cost and non-uniform process of terminal device script upgrade. By establishing a unified script management platform, the script upgrade method of the terminal device is determined according to the connection status between the gateway and the terminal device, thereby realizing the script upgrade of the terminal device, which is conducive to reducing the script upgrade cost.
[0036] Embodiment 2
[0037] Figure 2 This is a flowchart of a script upgrade method for a terminal device provided in Embodiment 2 of the present invention. This embodiment is refined based on the above embodiment. Figure 2 As shown, the method includes:
[0038] S210: If a script upgrade task of a target terminal device is detected, the connection status between the gateway and the target terminal device is obtained.
[0039] S220: Determine whether the gateway is connected to the target terminal device.
[0040] S230: Acquire script upgrade data of the target terminal device, and send the script upgrade data to the target terminal device, so that the target terminal device upgrades the script according to the script upgrade data.
[0041] It is understandable that the script upgrade data may include data such as new version software code, configuration files, and resource files required during the script upgrade process. The script management platform can obtain the script upgrade data of the target version in the script database according to the script upgrade task of the target terminal device, and send the script upgrade data to the target terminal device. The target terminal device can receive the script upgrade data and parse the script upgrade data to implement the script upgrade.
[0042] In a feasible solution, the script management platform includes a rule engine; the script upgrade data is generated by the rule engine according to the script upgrade task of the target terminal device.
[0043] The script management platform can be configured with a rule engine, which is a component embedded in the application that can separate business decisions from application code and write business decisions using predefined semantics. The rule engine can receive a script upgrade task, interpret the business rules matched by the target terminal device, and generate script upgrade data based on the business rules matched by the target terminal device.
[0044] This solution can generate matching script upgrade data for different terminal devices to ensure the adaptability of script upgrades.
[0045] S240: Send script upgrade data to a near field communication device associated with a target terminal device, so as to send the script upgrade data to the target terminal device through the near field communication device, so that the target terminal device upgrades the script according to the script upgrade data.
[0046] For target terminal devices that cannot communicate with the script management platform, the script management platform can search for near-field communication devices associated with the target terminal devices, such as handheld data collectors, and send the script upgrade data of the target terminal device to the near-field communication device, which is then transmitted to the target terminal device based on near-field communication technology, so that the target terminal device can upgrade the script according to the script upgrade data.
[0047] Among them, a Near Field Communication (NFC) device can exchange data with a target terminal device when they are close to each other. The NFC technology may include Bluetooth, infrared radio frequency, Zigbee, and NFC (NearField Communication, short-range wireless communication) technologies.
[0048] In a preferred solution, obtaining the connectivity status between the gateway and the target terminal device includes:
[0049] Perform security verification on the target terminal device. If the security verification passes, obtain the connectivity status between the gateway and the target terminal device.
[0050] In order to ensure the security of communication within the Internet of Things, the script management platform can obtain information such as the target terminal device identification, current script version, target script version, and script upgrade data address in the script upgrade task after detecting the script upgrade task of the target terminal device. Based on the target terminal device identification, current script version, target script version, and script upgrade data address, the script management platform can perform security verification on the target terminal device to determine whether the target terminal device is safe. For example, determine whether the status of the target terminal device is normal, whether the current script version matches, whether the target script version is continuous with the current script version, and whether the script upgrade data address is legal. If the target terminal device passes the security verification, the connectivity status between the gateway and the target terminal device is obtained. If the target terminal device fails the security verification, the script upgrade task of the target terminal device is not executed to ensure the security of devices, data, and communications within the Internet of Things.
[0051] The technical solution of the embodiment of the present invention obtains the connection status between the gateway and the target terminal device when detecting the script upgrade task of the target terminal device, determines the script upgrade method according to the connection status between the gateway and the target terminal device, and upgrades the script of the target terminal device according to the script upgrade method. The technical solution solves the problems of high cost and non-uniform process of terminal device script upgrade. By establishing a unified script management platform, the script upgrade method of the terminal device is determined according to the connection status between the gateway and the terminal device, thereby realizing the script upgrade of the terminal device, which is conducive to reducing the script upgrade cost.
[0052] Embodiment 3
[0053] Figure 3 The schematic diagram of the structure of a script upgrade device for a terminal device provided in the third embodiment of the present invention is shown in FIG. The device is configured on a script management platform, such as Figure 3 As shown, the device comprises:
[0054] A connection status acquisition module 310 is used to acquire the connection status between the gateway and the target terminal device if a script upgrade task of the target terminal device is detected;
[0055] The upgrade mode determination module 320 is used to determine the script upgrade mode according to the connection status between the gateway and the target terminal device; wherein the script upgrade mode includes an online upgrade mode and an offline upgrade mode;
[0056] The script upgrade module 330 is used to upgrade the script of the target terminal device according to the script upgrade method.
[0057] In this solution, the upgrade mode determination module 320 is specifically used to:
[0058] If the gateway is connected to the target terminal device, then the script upgrade mode of the target terminal device is determined to be an online upgrade mode;
[0059] If the gateway is not connected to the target terminal device, it is determined that the script upgrade mode of the target terminal device is an offline upgrade mode.
[0060] In a feasible solution, the upgrade mode determination module 320 is specifically used to:
[0061] If the script upgrade mode of the target terminal device is an online upgrade mode, the script upgrade data of the target terminal device is obtained, and the script upgrade data is sent to the target terminal device, so that the target terminal device upgrades the script according to the script upgrade data.
[0062] In another feasible solution, the upgrade mode determination module 320 is further used to:
[0063] If the script upgrade mode of the target terminal device is an offline upgrade mode, the script upgrade data is sent to the near field communication device associated with the target terminal device, so that the script upgrade data is sent to the target terminal device through the near field communication device, so that the target terminal device upgrades the script according to the script upgrade data.
[0064] On the basis of the above solution, the script management platform includes a rule engine; the script upgrade data is generated by the rule engine according to the script upgrade task of the target terminal device.
[0065] In a preferred solution, the connectivity status acquisition module 310 is specifically used to:
[0066] Perform security verification on the target terminal device. If the security verification passes, obtain the connectivity status between the gateway and the target terminal device.
[0067] The script upgrade device for a terminal device provided in an embodiment of the present invention can execute the script upgrade method for a terminal device provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0068] Embodiment 4
[0069] Figure 4 A schematic diagram of an electronic device 410 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0070] like Figure 4As shown, the electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.
[0071] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0072] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 411 executes the various methods and processes described above, such as a script upgrade method for a terminal device.
[0073] In some embodiments, the script upgrade method of the terminal device may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the script upgrade method of the terminal device described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to execute the script upgrade method of the terminal device in any other appropriate manner (e.g., by means of firmware).
[0074] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0075] The computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of the script upgrade device of a general-purpose computer, a special-purpose computer or other programmable terminal device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed completely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine, or completely on a remote machine or server.
[0076] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0077] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0078] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0079] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0080] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0081] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A script upgrade method for a terminal device, characterized in that: The method is executed by a script management platform, and the method includes: If a script upgrade task of the target terminal device is detected, the connection status between the gateway and the target terminal device is obtained; Determine the script upgrade mode according to the connection status between the gateway and the target terminal device; wherein the script upgrade mode includes an online upgrade mode and an offline upgrade mode; The script of the target terminal device is upgraded according to the script upgrade method.
2. The method according to claim 1, characterized in that Determining the script upgrade method according to the connection status between the gateway and the target terminal device includes: If the gateway is connected to the target terminal device, then the script upgrade mode of the target terminal device is determined to be an online upgrade mode; If the gateway is not connected to the target terminal device, it is determined that the script upgrade mode of the target terminal device is an offline upgrade mode.
3. The method according to claim 2, characterized in that The step of upgrading the script of the target terminal device according to the script upgrading method includes: If the script upgrade mode of the target terminal device is an online upgrade mode, the script upgrade data of the target terminal device is obtained, and the script upgrade data is sent to the target terminal device, so that the target terminal device upgrades the script according to the script upgrade data.
4. The method according to claim 3, characterized in that The script for upgrading the target terminal device according to the script upgrading method further includes: If the script upgrade mode of the target terminal device is an offline upgrade mode, the script upgrade data is sent to the near field communication device associated with the target terminal device, so that the script upgrade data is sent to the target terminal device through the near field communication device, so that the target terminal device upgrades the script according to the script upgrade data.
5. The method according to claim 4, characterized in that The script management platform includes a rule engine; the script upgrade data is generated by the rule engine according to the script upgrade task of the target terminal device.
6. The method according to claim 1, characterized in that The obtaining of the connection status between the gateway and the target terminal device includes: Perform security verification on the target terminal device. If the security verification passes, obtain the connectivity status between the gateway and the target terminal device.
7. A script upgrade device for a terminal device, characterized in that: The device is configured on a script management platform, and includes: A connection status acquisition module is used to acquire the connection status between the gateway and the target terminal device if a script upgrade task of the target terminal device is detected; An upgrade mode determination module is used to determine a script upgrade mode according to the connectivity status between the gateway and the target terminal device; wherein the script upgrade mode includes an online upgrade mode and an offline upgrade mode; The script upgrade module is used to upgrade the script of the target terminal device according to the script upgrade method.
8. An electronic device, characterized in that: The electronic device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the script upgrade method for a terminal device according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the script upgrade method for a terminal device according to any one of claims 1 to 6 when executed.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the script upgrading method for a terminal device according to any one of claims 1 to 6 is implemented.