WO2021114138A1 - Upgrade abnormality analysis method, electronic device, movable platform, camera, and computer-readable storage medium - Google Patents

Upgrade abnormality analysis method, electronic device, movable platform, camera, and computer-readable storage medium Download PDF

Info

Publication number
WO2021114138A1
WO2021114138A1 PCT/CN2019/124580 CN2019124580W WO2021114138A1 WO 2021114138 A1 WO2021114138 A1 WO 2021114138A1 CN 2019124580 W CN2019124580 W CN 2019124580W WO 2021114138 A1 WO2021114138 A1 WO 2021114138A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
log
logs
exception
electronic device
Prior art date
Application number
PCT/CN2019/124580
Other languages
French (fr)
Chinese (zh)
Inventor
王威
方昊翔
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2019/124580 priority Critical patent/WO2021114138A1/en
Priority to CN201980049878.5A priority patent/CN112513818A/en
Publication of WO2021114138A1 publication Critical patent/WO2021114138A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • This application relates to the field of software upgrades, and in particular to an upgrade anomaly analysis method, electronic equipment, movable platforms, cameras, and computer-readable storage media.
  • Firmware upgrade refers to the upgrade of the embedded firmware of smart hardware devices.
  • smart hardware devices In order to fix bugs (vulnerabilities) and iterate functions, smart hardware devices generally have an over-the-air technology (OTA) differential upgrade function, but they are currently smart If the hardware device is upgraded abnormally through the OTA function, the user can only get the abnormal result of the upgrade and cannot determine the cause of the abnormal upgrade. Professional engineers need to manually locate the problem. Not only is the operation cumbersome, but if multiple abnormal upgrade results are received, it is also necessary Performing manual positioning analysis one by one consumes huge human resources.
  • OTA over-the-air technology
  • one of the objectives of the present invention is to provide an upgrade anomaly analysis method, an electronic device, a movable platform, a camera, and a computer-readable storage medium.
  • the first aspect of this application provides an upgrade anomaly analysis method, including:
  • the determining the reason for the abnormal upgrade based on the designated keyword includes:
  • the error type correspondence is used to indicate the correspondence between the designated keyword and the error type
  • the obtaining the log content corresponding to the current upgrade exception from the upgrade log includes:
  • the content after the field is obtained as the log content corresponding to this upgrade exception.
  • the obtaining the log content corresponding to the current upgrade exception from the upgrade log includes:
  • the content after the fields in each upgrade log are spliced to obtain the log content corresponding to the upgrade exception.
  • the obtaining the log content corresponding to the current upgrade exception from the upgrade log includes:
  • it also includes:
  • the reading one or more upgrade logs of the upgrade object includes:
  • the method further includes:
  • the upgrade object includes a movable platform and/or a camera.
  • the movable platform includes unmanned aerial vehicles, unmanned vehicles, and unmanned ships.
  • the error type includes any one or more of the following:
  • Initialization error data acquisition error, data transmission error, unable to enter the upgrade mode, network connection failure, firmware verification error, restart failure, and battery power is below the specified value.
  • an electronic device including:
  • a memory for storing processor executable instructions
  • the processor calls the executable instruction, and when the executable instruction is executed, it is used to perform the following operations:
  • a movable platform including:
  • the power system is arranged inside the fuselage and used to provide power for the movable platform
  • a communication system which is arranged inside the fuselage and is used to enable the movable platform to communicate with external devices;
  • the upgrading system is arranged inside the fuselage and is used to execute the method described in any one of the first aspect.
  • a camera including
  • the lens assembly is arranged inside the housing;
  • a sensor component arranged inside the housing, for sensing light passing through the lens component and generating an electrical signal
  • a communication system which is provided inside the housing and is used to enable the camera to communicate with external devices;
  • the upgrade system is arranged inside the housing and used to execute the method described in any one of the first aspect.
  • a computer-readable storage medium having computer instructions stored thereon, and when the instructions are executed by a processor, the method described in any one of the first aspects is implemented.
  • the upgrade anomaly analysis method disclosed in this embodiment reduces the tedious operation and labor cost in manual positioning analysis.
  • Fig. 1 is a flowchart of a method for analyzing an upgrade anomaly according to an exemplary embodiment of the present application.
  • Fig. 2 is a flow chart of another method for analyzing an upgrade anomaly according to an exemplary embodiment of the present application.
  • Fig. 3 is a structural diagram of an electronic device according to an exemplary embodiment of the application.
  • Fig. 4 is a structural diagram of a movable platform according to an exemplary embodiment of the present application.
  • Fig. 5 is a structural diagram of a camera according to an exemplary embodiment of the present application.
  • Firmware upgrade refers to the upgrade of the embedded firmware of smart hardware devices.
  • smart hardware devices In order to fix bugs (vulnerabilities) and iterate functions, smart hardware devices generally have an over-the-air technology (OTA) differential upgrade function, but they are currently smart If the hardware device is upgraded abnormally through the OTA function, the user can only get the abnormal result of the upgrade and cannot determine the cause of the abnormal upgrade. Professional engineers need to manually locate the problem. Not only is the operation cumbersome, but if multiple abnormal upgrade results are received, it is also necessary Performing manual positioning analysis one by one consumes huge human resources.
  • OTA over-the-air technology
  • the embodiment of the present application provides an upgrade anomaly analysis method, which can be executed by an electronic device or a smart hardware device with a networking function, and can automatically analyze when an upgrade is abnormal, locate the cause of the upgrade, without the need for the user to do it again.
  • the manual positioning process reduces the user's operation steps and is beneficial to improve the efficiency of upgrading abnormal analysis;
  • the electronic device may be a device used to assist the upgrade of the smart hardware device, such as a mobile phone, a computer, a personal tablet, or a PDA (Personal Digital Assistant) and other connected devices;
  • the smart hardware device may be a mobile platform (such as a drone, an unmanned vehicle, or an unmanned boat), a camera, a sweeping robot, or a smart speaker.
  • one or more upgrade logs of the upgrade object can be read, and the log content corresponding to the upgrade exception may be obtained from the one or more upgrade logs, and then the log Search for a specified keyword in the content, and determine the cause of the upgrade abnormality based on the specified keyword.
  • This embodiment implements the process of automatically locating the cause of the upgrade abnormality, which reduces the tedious operation and labor cost during manual positioning analysis, and is beneficial to improve the upgrade abnormality. Analyze the efficiency so that the staff can make improvements based on the located abnormal causes of the upgrade, which is beneficial to improve the success rate of the upgrade.
  • Fig. 1 is a flowchart of an upgrade anomaly analysis method according to an exemplary embodiment of this application.
  • the method includes:
  • step S101 one or more upgrade logs of the upgrade object are read, and the log content corresponding to this upgrade exception is obtained from the one or more upgrade logs; the upgrade log is obtained from the upgrade object and/or Read from the device that assists the upgrade object to upgrade.
  • step S102 a designated keyword is searched from the log content, and the reason for the abnormal upgrade is determined based on the designated keyword.
  • the upgrade object may be a smart hardware device
  • the smart hardware device may be a movable platform (such as a drone, an unmanned vehicle, or an unmanned boat), a camera, a sweeping robot, or a smart speaker, etc.
  • the electronic device may read one or more upgrade logs related to the upgrade object from itself and the upgrade object, and the upgrade log records the upgrade process of the upgrade object.
  • the related data may include the operation performed by the upgrade object during the upgrade process and the result of the operation, and then the electronic device may obtain information related to this time from one or more obtained upgrade logs.
  • the log content related to the upgrade abnormality is used for subsequent location analysis; in this embodiment, the electronic device can obtain the upgrade log from itself and the upgrade object, so as to perform joint analysis on the obtained upgrade log, which is beneficial to ensure the upgrade Accurate location of the cause of the abnormality.
  • the electronic device may also read one or more upgrade logs related to the upgrade object from itself or the upgrade object, and then obtain the information from the obtained one or more upgrade logs.
  • the log content related to the abnormality of this upgrade can be used for subsequent location analysis, which helps to reduce the tedious operation of manual location analysis and improve the efficiency of the upgrade anomaly analysis.
  • the electronic device reads an upgrade log of the upgrade object, considering that if the upgrade object is successfully upgraded, it will be entered when the record of the upgrade data is ended in the upgrade log.
  • the field indicating the success of this upgrade. Therefore, if the upgrade object is abnormal this time, you can find the last field indicating the success of the upgrade in the obtained upgrade log, and the log content after the field is this time
  • the log content corresponding to the upgrade exception that is, the electronic device can obtain the content after the field as the log content corresponding to the upgrade exception.
  • This embodiment implements accurate acquisition of the log content for subsequent location analysis.
  • the electronic device may splice the contents of the multiple upgrade logs according to the recorded upgrade time, and then search for the last field in the spliced upgrade log indicating that the upgrade is successful, and after obtaining the field
  • the content of is used as the log content corresponding to the upgrade exception; in this embodiment, the multiple upgrade logs obtained are spliced, which is beneficial to quickly find the log content related to the upgrade exception, and improve the efficiency of the upgrade exception analysis.
  • the electronic device can search for the last field in each upgrade log indicating that the upgrade is successful, and then update each upgrade log.
  • the content after the field in the log is spliced to obtain the log content corresponding to the abnormal upgrade; in this embodiment, the last field in each upgrade log indicating the successful upgrade is searched for, and then the content after the field is spliced.
  • the splicing of the content in the upgrade log that cannot be abnormal with this upgrade saves splicing time and helps improve the efficiency of this upgrade abnormal analysis.
  • the electronic device may search for a specified keyword from the log content, and then determine the cause of the upgrade exception based on the specified keyword, as one of them
  • the electronic device may pre-store an error type correspondence relationship, the error type correspondence relationship is used to indicate the correspondence relationship between a specified keyword and an error type, and when the keyword is found, it may be based on the specified keyword and
  • the pre-stored error type correspondence relationship is used to determine the error type that caused the upgrade exception, and then the cause of the upgrade exception is determined based on the error type; in this embodiment, the pre-stored error type correspondence relationship allows the device to search for the specified keyword.
  • a predetermined error flag can be set to match a specific error. For example, set the flag FAILURE XXX to match specific errors.
  • a mark of the corresponding module is set in the upgrade log to indicate the corresponding specific error. For example, if the program fails to run when the upgrade program enters the upgrade preparation process, set the flag FAILURE 001 in the upgrade log to indicate that the upgrade preparation fails. For another example, if the program fails to run when the upgrade program enters the firmware verification process, the flag FAILURE 002 is set in the upgrade log to indicate that the firmware verification fails.
  • the embodiments of this application do not impose any restrictions on the error type, and can be specifically set according to actual conditions.
  • the error type may include any one or more of the following: initialization error, Data acquisition error, data transmission error, unable to enter the upgrade mode, network connection failure, firmware verification error, restart failure, and the battery of the upgrade object is lower than the specified value, etc.
  • the upgrade abnormality analysis method is executed by a smart hardware device with networking function, if the smart hardware device obtains an abnormal upgrade result during the firmware upgrade of itself, that is, this firmware upgrade If it fails, the smart hardware device can read one or more upgrade logs from itself, and then obtain the log content related to the upgrade exception from the obtained one or more upgrade logs, so as to perform subsequent positioning analysis, which is beneficial to Reduce the tedious operation of manual positioning analysis and improve the efficiency of upgrading abnormal analysis.
  • the smart hardware device reads an upgrade log, it searches for the last field in the upgrade log indicating that the upgrade was successful, and then obtains the content after the field as the log content corresponding to the upgrade exception
  • the log content can be accurately obtained for subsequent positioning analysis.
  • the content in the multiple upgrade logs can be spliced sequentially according to the recorded upgrade time, and then the last one in the spliced upgrade log can be searched It indicates the successfully upgraded field, and the content after the field is obtained as the log content corresponding to the upgrade exception; in this embodiment, multiple upgrade logs obtained are spliced, which is beneficial to quickly find out related to the upgrade exception.
  • the log content improves the efficiency of abnormal analysis of this upgrade.
  • the smart hardware device can first search for the last field in each upgrade log that indicates a successful upgrade, and then splice the content after the fields in each upgrade log to obtain The log content corresponding to this upgrade exception; in this embodiment, there is no need to splice the content in the upgrade log that cannot be compared with the current upgrade exception, which saves splicing time and helps improve the efficiency of this upgrade exception analysis.
  • the smart hardware device may search for a specified keyword from the log content, and then determine the reason for the upgrade exception based on the specified keyword, as In an implementation manner, the smart hardware device may pre-store the error type correspondence relationship, and the error type correspondence relationship is used to indicate the correspondence relationship between a specified keyword and an error type.
  • the keyword When the keyword is found, it may be based on the specified Keyword and the pre-stored error type correspondence relationship, determine the error type that caused the upgrade exception, and then determine the cause of the upgrade exception based on the error type; in this embodiment, the pre-stored error type correspondence relationship enables the device to find the specified keyword Later, the type of abnormal error that caused this upgrade can be quickly determined based on the corresponding relationship of the error type, so that the cause of the abnormal upgrade of this time can be accurately determined based on the error type, ensuring the accuracy of the analysis result.
  • one or more upgrade logs of the upgrade object can be read, and the log content corresponding to the upgrade exception may be obtained from the one or more upgrade logs, and then the log Search for a specified keyword in the content, and determine the cause of the upgrade abnormality based on the specified keyword.
  • This embodiment implements the process of automatically locating the cause of the upgrade abnormality, which reduces the tedious operation and labor cost during manual positioning analysis, and is beneficial to improve the upgrade abnormality. Analyze the efficiency so that the staff can upgrade and improve based on the located abnormal reasons for the upgrade, which is beneficial to improve the success rate of the upgrade.
  • FIG. 2 is a flowchart of another upgrade anomaly analysis method according to an exemplary embodiment of the present application.
  • the method may be executed by an electronic device or a smart hardware device.
  • the execution subject is the electronic device:
  • the scenario where the OTA function is upgraded and the stress test is described as an example, and the method includes:
  • step S201 if a test opening operation is detected, a cyclic upgrade stress test is performed on the upgrade object.
  • step S202 if this upgrade stress test fails, read one or more upgrade logs of the upgrade object, and obtain the log content corresponding to this test failure from the one or more upgrade logs;
  • the upgrade log is read from the upgrade object and/or the device that assists the upgrade of the upgrade object.
  • step S203 a designated keyword is searched from the log content, and the reason for the abnormal upgrade is determined based on the designated keyword.
  • step S204 if the current upgrade stress test fails and the remaining number of cycles is not 0, the next upgrade stress test is performed.
  • the staff in order to ensure the stability of the OTA function, it is necessary to perform an upgrade stress test on the OTA function, where the staff can set the number of cycles of the upgrade stress test according to actual needs, and start the upgrade stress test according to actual needs.
  • the electronic device detects a test opening operation, it performs a cyclic upgrade stress test on the upgrade object.
  • the electronic device may read one or more upgrade logs of the upgrade object, and then obtain the test failure from the one or more upgrade logs Corresponding to the log content, a designated keyword is searched from the log content, and the cause of the upgrade exception is determined based on the designated keyword; this embodiment realizes the process of automatically locating the cause of the upgrade exception, which is beneficial to improve the efficiency of upgrade exception analysis.
  • the electronic device does not stop the upgrade pressure test, but performs the next upgrade pressure test in parallel; in this embodiment, when the number of remaining cycles is not 0
  • the test continues without stopping, that is, the user only needs to start the upgrade stress test process once to complete the entire cycle test process, which is beneficial to reduce user operations and improve the efficiency of the upgrade stress test.
  • FIG. 3 is a structural diagram of an electronic device according to an exemplary embodiment of this application.
  • the electronic device may be a device used to assist in upgrading smart hardware devices, such as a mobile phone, a computer, Network-equipped devices such as personal tablets or PDAs (Personal Digital Assistants), and the electronic devices include:
  • a memory 32 for storing executable instructions of the processor 31
  • the processor 31 calls the executable instruction, and when the executable instruction is executed, it is used to perform the following operations:
  • the processor 31 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 32 stores an executable instruction computer program of the upgrade abnormality analysis method.
  • the memory 32 may include at least one type of storage medium.
  • the storage medium includes a flash memory, a hard disk, a multimedia card, and a card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), Magnetic storage, magnetic disks, optical disks, etc.
  • the electronic device 30 may cooperate with a network storage device that performs the storage function of the memory 32 through a network connection.
  • the memory 32 may be an internal storage unit of the electronic device 30, such as a hard disk or a memory of the electronic device 30.
  • the memory 32 may also be an external storage device of the electronic device 30, such as a plug-in hard disk equipped on the electronic device 30, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on. Further, the memory 32 may also include both an internal storage unit of the electronic device 30 and an external storage device. The memory 32 is used to store computer programs and other programs and data required by the device. The memory 32 can also be used to temporarily store data that has been output or will be output.
  • the various embodiments described herein may be implemented using a computer-readable medium such as computer software, hardware, or any combination thereof.
  • the implementation described here can be implemented by using application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays ( It is implemented by at least one of an FPGA), a processor, a controller, a microcontroller, a microprocessor, and an electronic unit designed to perform the functions described herein.
  • ASIC application-specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing devices
  • PLD programmable logic devices
  • FPGA field programmable gate arrays
  • implementations such as procedures or functions may be implemented with a separate software module that allows execution of at least one function or operation.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, and the software code can be stored in a memory and executed by the controller.
  • the electronic device may download an upgrade file from a designated network location (such as a cloud server), and then transmit the upgrade file to the smart hardware through a wired connection or wirelessly such as near field communication (NFC) Equipment to assist the upgrade of the smart hardware device; wherein, the approach communication can be based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and others Technology to achieve.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the processor 31 is further configured to execute: determine the error type that caused the upgrade exception according to the specified keyword and the pre-stored error type correspondence; the error type correspondence is used to indicate the specified keyword Correspondence with the error type; the reason for the upgrade exception is determined based on the error type.
  • the processor 31 is further configured to execute: if an upgrade log of the upgrade object is read, search for the last field in the upgrade log that indicates a successful upgrade; and obtain the content after the field As the log content corresponding to the upgrade exception.
  • the processor 31 is further configured to execute: if multiple upgrade logs of the upgrade object are read, search for the last field in each upgrade log indicating that the upgrade was successful; The content after the field is spliced to get the log content corresponding to this upgrade exception.
  • the processor 31 is further configured to execute: if multiple upgrade logs of the upgrade object are read, concatenate the contents of the multiple upgrade logs according to the recorded upgrade time; search; The last field in the spliced upgrade log indicates that the upgrade was successful, and the content after the field is acquired as the log content corresponding to the upgrade exception.
  • the processor 31 is further configured to execute: if a test opening operation is detected, perform a cyclic upgrade stress test on the upgrade object; if the upgrade stress test fails this time, read one of the upgrade objects Or multiple upgrade logs.
  • the processor 31 is further configured to execute: if the upgrade stress test fails this time and the number of remaining cycles is not 0, perform the next upgrade stress test.
  • the upgrade object includes a movable platform and/or a camera.
  • the movable platform includes unmanned aerial vehicles, unmanned vehicles, and unmanned ships.
  • the type of error includes any one or more of the following: initialization error, data acquisition error, data transmission error, unable to enter the upgrade mode, network connection failure, firmware verification error, restart failure, and battery low Specify the value.
  • FIG. 4 is a structural diagram of a movable platform 40 according to an exemplary embodiment of this application.
  • the movable platform 40 can be upgraded with firmware through OTA function, and the movable platform 40 includes :
  • the power system 42 is arranged inside the fuselage 41 and is used to provide power for the movable platform;
  • the communication system 43 is arranged inside the fuselage 41 and is used to enable the movable platform to communicate with external devices; and,
  • the upgrade system 44 is arranged inside the fuselage 41 and is used to execute any one of the above-mentioned upgrade abnormal analysis methods.
  • the movable platform includes an unmanned aerial vehicle, an unmanned vehicle, an unmanned boat, or a sweeping robot.
  • the communication system 43 is configured to facilitate wired or wireless communication between the movable platform 40 and other devices.
  • the mobile platform 40 can access a wireless network based on a communication standard, such as WiFi, 3G, or 4G, or a combination thereof.
  • the communication system 43 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel.
  • the mobile platform 40 can download an upgrade file from a designated network location (such as a cloud server) based on the communication system, and then the upgrade system 44 performs a firmware upgrade process based on the upgrade file.
  • a designated network location such as a cloud server
  • FIG. 4 is only an example of the movable platform 40, and does not constitute a limitation on the movable platform 40. It may include more or less components than those shown in the figure, or combine certain components, or different components.
  • the movable platform 40 may also include input and output devices.
  • FIG. 5 is a structural diagram of a camera 50 according to an exemplary embodiment of this application.
  • the camera 50 can be upgraded through the OTA function.
  • the camera 50 includes:
  • the lens assembly 52 is arranged inside the housing 51;
  • the sensor assembly 53 is arranged inside the housing 51 for sensing light passing through the lens assembly 52 and generating electrical signals;
  • the communication system 54 is provided inside the housing 51 and is used to enable the camera 50 to communicate with external devices; and,
  • the upgrade system 55 is arranged inside the casing and is used to execute any one of the above-mentioned upgrade abnormal analysis methods.
  • the communication system 54 is configured to facilitate wired or wireless communication between the camera 50 and other devices.
  • the camera 50 can be connected to a wireless network based on a communication standard, such as WiFi, 3G, or 4G, or a combination thereof.
  • the communication system 54 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel.
  • FIG. 5 is only an example of the camera 50, and does not constitute a limitation on the camera 50. It may include more or fewer components than those shown in the figure, or combine certain components, or different components.
  • the camera 50 may also include input and output devices.
  • non-transitory computer-readable storage medium including instructions, such as a memory including instructions, which may be executed by a processor of an interactive device to complete the foregoing method.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
  • the electronic device when the instructions in the storage medium are executed by the processor, the electronic device is enabled to execute the aforementioned upgrade abnormality analysis method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

An upgrade abnormality analysis method, an electronic device, a movable platform, a camera, and a computer-readable storage medium. The method comprises: reading one or more upgrade logs of an upgrade object, and acquiring log content corresponding to the current upgrade abnormality from the one or more upgrade logs, wherein the upgrade logs are read from the upgrade object and/or a device assisting upgrade of the upgrade object (S101); searching the log content for a specified key word, and determining a reason for the upgrade abnormality on the basis of the specified key word (S102). The method implements a process of automatically positioning the reason for the upgrade abnormality, and reduces tedious operations during manual positioning analysis and consumed labor costs.

Description

升级异常分析方法、电子设备、可移动平台、相机及计算机可读存储介质Upgrade anomaly analysis method, electronic equipment, movable platform, camera and computer readable storage medium 技术领域Technical field
本申请涉及软件升级领域,尤其涉及一种升级异常分析方法、电子设备、可移动平台、相机及计算机可读存储介质。This application relates to the field of software upgrades, and in particular to an upgrade anomaly analysis method, electronic equipment, movable platforms, cameras, and computer-readable storage media.
背景技术Background technique
固件升级,是指对智能硬件设备的内嵌固件进行升级,智能硬件设备为了进行bug(漏洞)修复和功能迭代,一般都具备空中下载(Over The Air Technology,OTA)差分升级功能,但目前智能硬件设备如果通过OTA功能升级异常,用户仅能得到升级异常的结果而无法确定导致升级异常的原因,需要由专业工程师人为手工定位问题,不仅操作繁琐,若接收到多个升级异常结果,还需逐一进行手工定位分析,耗费了巨大的人力资源。Firmware upgrade refers to the upgrade of the embedded firmware of smart hardware devices. In order to fix bugs (vulnerabilities) and iterate functions, smart hardware devices generally have an over-the-air technology (OTA) differential upgrade function, but they are currently smart If the hardware device is upgraded abnormally through the OTA function, the user can only get the abnormal result of the upgrade and cannot determine the cause of the abnormal upgrade. Professional engineers need to manually locate the problem. Not only is the operation cumbersome, but if multiple abnormal upgrade results are received, it is also necessary Performing manual positioning analysis one by one consumes huge human resources.
发明内容Summary of the invention
有鉴于此,本发明的目的之一是提供一种升级异常分析方法、电子设备、可移动平台、相机及计算机可读存储介质。In view of this, one of the objectives of the present invention is to provide an upgrade anomaly analysis method, an electronic device, a movable platform, a camera, and a computer-readable storage medium.
首先,本申请的第一方面提供了一种升级异常分析方法,包括:First of all, the first aspect of this application provides an upgrade anomaly analysis method, including:
读取升级对象的一个或多个升级日志,并从所述一个或多个升级日志中获取本次升级异常对应的日志内容;所述升级日志从所述升级对象和/或辅助所述升级对象升级的设备中读取;Read one or more upgrade logs of the upgrade object, and obtain the log content corresponding to the upgrade exception from the one or more upgrade logs; the upgrade log obtains from the upgrade object and/or assists the upgrade object Read in upgraded equipment;
从所述日志内容中查找指定关键字,基于所述指定关键字确定升级异常原因。Search for a designated keyword from the log content, and determine the cause of the upgrade abnormality based on the designated keyword.
可选地,所述基于所述指定关键字确定升级异常原因,包括:Optionally, the determining the reason for the abnormal upgrade based on the designated keyword includes:
根据所述指定关键字以及预存的错误类型对应关系,确定导致升级异常的错误类型;所述错误类型对应关系用于表示指定关键字与错误类型的对应关系;Determine the error type that caused the upgrade exception according to the designated keyword and the pre-stored error type correspondence; the error type correspondence is used to indicate the correspondence between the designated keyword and the error type;
基于所述错误类型确定升级异常原因。Determine the cause of the upgrade exception based on the error type.
可选地,所述从所述升级日志中获取本次升级异常对应的日志内容,包括:Optionally, the obtaining the log content corresponding to the current upgrade exception from the upgrade log includes:
若读取到所述升级对象的一个升级日志,查找所述升级日志中最后一个表示升级成功的字段;If an upgrade log of the upgrade object is read, search for the last field in the upgrade log that indicates that the upgrade was successful;
获取所述字段之后的内容作为本次升级异常对应的日志内容。The content after the field is obtained as the log content corresponding to this upgrade exception.
可选地,所述从所述升级日志中获取本次升级异常对应的日志内容,包括:Optionally, the obtaining the log content corresponding to the current upgrade exception from the upgrade log includes:
若读取到所述升级对象的多个升级日志,查找各个升级日志中最后一个表示升级成功的字段;If multiple upgrade logs of the upgrade object are read, search for the last field in each upgrade log that indicates that the upgrade was successful;
将各个升级日志中所述字段之后的内容进行拼接,得到本次升级异常对应的日志内容。The content after the fields in each upgrade log are spliced to obtain the log content corresponding to the upgrade exception.
可选地,所述从所述升级日志中获取本次升级异常对应的日志内容,包括:Optionally, the obtaining the log content corresponding to the current upgrade exception from the upgrade log includes:
若读取到所述升级对象的多个升级日志,将所述多个升级日志中的内容按照记录的升级时间先后进行拼接;If multiple upgrade logs of the upgrade object are read, the contents in the multiple upgrade logs are sequentially spliced according to the recorded upgrade time;
查找拼接后的升级日志中最后一个表示升级成功的字段,并获取所述字段之后的内容作为本次升级异常对应的日志内容。Look for the last field in the spliced upgrade log that indicates that the upgrade is successful, and obtain the content after the field as the log content corresponding to the upgrade exception.
可选地,还包括:Optionally, it also includes:
若检测到测试开启操作,对所述升级对象进行循环升级压力测试;If a test opening operation is detected, perform a cyclic upgrade stress test on the upgrade object;
所述读取升级对象的一个或多个升级日志,包括:The reading one or more upgrade logs of the upgrade object includes:
若本次升级压力测试失败,读取所述升级对象的一个或多个升级日志。If this upgrade stress test fails, read one or more upgrade logs of the upgrade object.
可选地,在所述读取升级对象的一个或多个升级日志之后,还包括:Optionally, after the one or more upgrade logs of the upgrade object are read, the method further includes:
若剩余循环次数不为0,进行下一次升级压力测试。If the number of remaining cycles is not 0, perform the next upgrade stress test.
可选地,所述升级对象包括可移动平台和/或相机。Optionally, the upgrade object includes a movable platform and/or a camera.
可选地,所述可移动平台包括无人机、无人车以及无人船。Optionally, the movable platform includes unmanned aerial vehicles, unmanned vehicles, and unmanned ships.
可选地,所述错误类型包括以下任意一种或多种:Optionally, the error type includes any one or more of the following:
初始化错误、数据获取错误、数据传输错误、无法进入升级模式、网络连接失败、固件校验错误、重启失败以及电量低于指定值。Initialization error, data acquisition error, data transmission error, unable to enter the upgrade mode, network connection failure, firmware verification error, restart failure, and battery power is below the specified value.
根据本申请实施例的第二方面,提供一种电子设备,包括:According to a second aspect of the embodiments of the present application, an electronic device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
其中,所述处理器调用所述可执行指令,当可执行指令被执行时,用于执行以下操作:Wherein, the processor calls the executable instruction, and when the executable instruction is executed, it is used to perform the following operations:
读取升级对象的一个或多个升级日志,并从所述一个或多个升级日志中获取本次升级异常对应的日志内容;所述升级日志从所述升级对象和/或辅助所述升级对象升级的设备中读取;Read one or more upgrade logs of the upgrade object, and obtain the log content corresponding to the upgrade exception from the one or more upgrade logs; the upgrade log obtains from the upgrade object and/or assists the upgrade object Read in upgraded equipment;
从所述日志内容中查找指定关键字,基于所述指定关键字确定升级异常原因。Search for a designated keyword from the log content, and determine the cause of the upgrade abnormality based on the designated keyword.
根据本申请实施例的第三方面,提供一种可移动平台,包括:According to a third aspect of the embodiments of the present application, a movable platform is provided, including:
机身;body;
动力系统,设于所述机身内部,用于为所述可移动平台提供动力;The power system is arranged inside the fuselage and used to provide power for the movable platform;
通讯系统,设于所述机身内部,用于使所述可移动平台与外部设备进行通信;以及,A communication system, which is arranged inside the fuselage and is used to enable the movable platform to communicate with external devices; and,
升级系统,设于所述机身内部,用于执行第一方面中任意一项所述的方法。The upgrading system is arranged inside the fuselage and is used to execute the method described in any one of the first aspect.
根据本申请实施例的第四方面,提供一种相机,包括According to a fourth aspect of the embodiments of the present application, there is provided a camera, including
外壳;shell;
镜头组件,设于所述外壳内部;The lens assembly is arranged inside the housing;
传感器组件,设于所述外壳内部,用于感知通过所述镜头组件的光 并生成电信号;A sensor component, arranged inside the housing, for sensing light passing through the lens component and generating an electrical signal;
通讯系统,设于所述外壳内部,用于使所述相机与外部设备进行通信;以及,A communication system, which is provided inside the housing and is used to enable the camera to communicate with external devices; and,
升级系统,设于所述外壳内部,用于执行第一方面中任意一项所述的方法。The upgrade system is arranged inside the housing and used to execute the method described in any one of the first aspect.
根据本申请实施例的第五方面,提供一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现第一方面中任意一项所述的方法。According to a fifth aspect of the embodiments of the present application, there is provided a computer-readable storage medium having computer instructions stored thereon, and when the instructions are executed by a processor, the method described in any one of the first aspects is implemented.
本申请的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present application may include the following beneficial effects:
本实施例揭示的升级异常分析方法减少了手工定位分析时繁琐的操作以及耗费的人力成本。The upgrade anomaly analysis method disclosed in this embodiment reduces the tedious operation and labor cost in manual positioning analysis.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the application.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1是为本申请根据一示例性实施例示出的一种升级异常分析方法的流程图。Fig. 1 is a flowchart of a method for analyzing an upgrade anomaly according to an exemplary embodiment of the present application.
图2为本申请根据一示例性实施例示出的另一种升级异常分析方法的流程图。Fig. 2 is a flow chart of another method for analyzing an upgrade anomaly according to an exemplary embodiment of the present application.
图3为本申请根据一示例性实施例示出的一种电子设备的结构图。Fig. 3 is a structural diagram of an electronic device according to an exemplary embodiment of the application.
图4为本申请根据一示例性实施例示出的一种可移动平台的结构 图。Fig. 4 is a structural diagram of a movable platform according to an exemplary embodiment of the present application.
图5为本申请根据一示例性实施例示出的一种相机的结构图。Fig. 5 is a structural diagram of a camera according to an exemplary embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
固件升级,是指对智能硬件设备的内嵌固件进行升级,智能硬件设备为了进行bug(漏洞)修复和功能迭代,一般都具备空中下载(Over The Air Technology,OTA)差分升级功能,但目前智能硬件设备如果通过OTA功能升级异常,用户仅能得到升级异常的结果而无法确定导致升级异常的原因,需要由专业工程师人为手工定位问题,不仅操作繁琐,若接收到多个升级异常结果,还需逐一进行手工定位分析,耗费了巨大的人力资源。在一个例子中,为了保证OTA功能的稳定性,一般需要对OTA功能进行升级压力测试,但在每次测试结束之后仅能得到升级成功或失败的结果,但导致升级失败的原因需要有测试人员手动定位,操作繁琐且费时费力。Firmware upgrade refers to the upgrade of the embedded firmware of smart hardware devices. In order to fix bugs (vulnerabilities) and iterate functions, smart hardware devices generally have an over-the-air technology (OTA) differential upgrade function, but they are currently smart If the hardware device is upgraded abnormally through the OTA function, the user can only get the abnormal result of the upgrade and cannot determine the cause of the abnormal upgrade. Professional engineers need to manually locate the problem. Not only is the operation cumbersome, but if multiple abnormal upgrade results are received, it is also necessary Performing manual positioning analysis one by one consumes huge human resources. In one example, in order to ensure the stability of the OTA function, it is generally necessary to perform an upgrade stress test on the OTA function, but after each test, only the result of the success or failure of the upgrade can be obtained, but the reason for the failure of the upgrade requires a tester Manual positioning, the operation is cumbersome and time-consuming and laborious.
基于上述问题,本申请实施例提供了一种升级异常分析方法,其可由电子设备、具有联网功能的智能硬件设备来执行,能够在升级异常时进行自动分析,定位升级异常原因,无需用户再进行手工定位的过程,减少用户的操作步骤,有利于提高升级异常分析效率;其中,所述电子设备可以是用于辅助所述智能硬件设备升级的设备,例如可以是手机、电脑、个人平板或者PDA(Personal Digital Assistant,个人数字助理)等具备联网的设备;所述智能硬件设备可以是可移动平台(如无人机、无人车或者无 人船)、相机、扫地机器人或者智能音箱等。Based on the above problems, the embodiment of the present application provides an upgrade anomaly analysis method, which can be executed by an electronic device or a smart hardware device with a networking function, and can automatically analyze when an upgrade is abnormal, locate the cause of the upgrade, without the need for the user to do it again. The manual positioning process reduces the user's operation steps and is beneficial to improve the efficiency of upgrading abnormal analysis; wherein, the electronic device may be a device used to assist the upgrade of the smart hardware device, such as a mobile phone, a computer, a personal tablet, or a PDA (Personal Digital Assistant) and other connected devices; the smart hardware device may be a mobile platform (such as a drone, an unmanned vehicle, or an unmanned boat), a camera, a sweeping robot, or a smart speaker.
本实施例中,在出现升级异常时,可以读取升级对象的一个或多个升级日志,并从所述一个或多个升级日志中获取本次升级异常对应的日志内容,然后从所述日志内容中查找指定关键字,基于所述指定关键字确定升级异常原因,本实施例实现自动定位升级异常原因的过程,减少了手工定位分析时繁琐的操作以及耗费的人力成本,有利于提高升级异常分析效率,以便工作人员基于定位出的升级异常原因进行改进,有利于提高升级成功率。In this embodiment, when an upgrade exception occurs, one or more upgrade logs of the upgrade object can be read, and the log content corresponding to the upgrade exception may be obtained from the one or more upgrade logs, and then the log Search for a specified keyword in the content, and determine the cause of the upgrade abnormality based on the specified keyword. This embodiment implements the process of automatically locating the cause of the upgrade abnormality, which reduces the tedious operation and labor cost during manual positioning analysis, and is beneficial to improve the upgrade abnormality. Analyze the efficiency so that the staff can make improvements based on the located abnormal causes of the upgrade, which is beneficial to improve the success rate of the upgrade.
请参阅图1,为本申请根据一示例性实施例示出的一种升级异常分析方法的流程图,所述方法包括:Please refer to Fig. 1, which is a flowchart of an upgrade anomaly analysis method according to an exemplary embodiment of this application. The method includes:
在步骤S101中,读取升级对象的一个或多个升级日志,并从所述一个或多个升级日志中获取本次升级异常对应的日志内容;所述升级日志从所述升级对象和/或辅助所述升级对象升级的设备中读取。In step S101, one or more upgrade logs of the upgrade object are read, and the log content corresponding to this upgrade exception is obtained from the one or more upgrade logs; the upgrade log is obtained from the upgrade object and/or Read from the device that assists the upgrade object to upgrade.
在步骤S102中,从所述日志内容中查找指定关键字,基于所述指定关键字确定升级异常原因。In step S102, a designated keyword is searched from the log content, and the reason for the abnormal upgrade is determined based on the designated keyword.
其中,所述升级对象可以是智能硬件设备,所述智能硬件设备可以是可移动平台(如无人机、无人车或者无人船)、相机、扫地机器人或者智能音箱等。Wherein, the upgrade object may be a smart hardware device, and the smart hardware device may be a movable platform (such as a drone, an unmanned vehicle, or an unmanned boat), a camera, a sweeping robot, or a smart speaker, etc.
在一实施例中,若所述升级异常分析方法由辅助所述升级对象升级的电子设备来执行,在所述电子设备辅助所述升级对象进行升级的过程中得到本次升级异常的结果时,作为其中一种实现方式,所述电子设备可以从自身以及所述升级对象中读取与所述升级对象相关的一个或多个升级日志,所述升级日志记录所述升级对象在升级过程中的相关数据,在一个例子中,所述相关数据可以包括所述升级对象在升级过程中执行的操作以及操作的结果,然后所述电子设备可以从获取的一个或多个升级日志中获取与本次升级异常相关的日志内容,以便进行后续的定位分析;本实施例中, 所述电子设备可以从自身以及所述升级对象中获取升级日志,从而对获取的升级日志进行联合分析,有利于保证升级异常原因的准确定位。In one embodiment, if the upgrade anomaly analysis method is executed by an electronic device that assists the upgrade object to upgrade, when the electronic device assists the upgrade object to upgrade, when an abnormal result of this upgrade is obtained, As one of the implementation manners, the electronic device may read one or more upgrade logs related to the upgrade object from itself and the upgrade object, and the upgrade log records the upgrade process of the upgrade object. Related data. In an example, the related data may include the operation performed by the upgrade object during the upgrade process and the result of the operation, and then the electronic device may obtain information related to this time from one or more obtained upgrade logs. The log content related to the upgrade abnormality is used for subsequent location analysis; in this embodiment, the electronic device can obtain the upgrade log from itself and the upgrade object, so as to perform joint analysis on the obtained upgrade log, which is beneficial to ensure the upgrade Accurate location of the cause of the abnormality.
作为另一种实现方式,所述电子设备也可以从自身或者所述升级对象中读取与所述升级对象相关的一个或多个升级日志,然后从获取的一个或多个升级日志中获取与本次升级异常相关的日志内容,以便进行后续的定位分析,有利于减少人工定位分析的繁琐操作,提高升级异常分析效率。As another implementation manner, the electronic device may also read one or more upgrade logs related to the upgrade object from itself or the upgrade object, and then obtain the information from the obtained one or more upgrade logs. The log content related to the abnormality of this upgrade can be used for subsequent location analysis, which helps to reduce the tedious operation of manual location analysis and improve the efficiency of the upgrade anomaly analysis.
在第一种可能的实现方式中,若所述电子设备读取到所述升级对象的一个升级日志,考虑到如果所述升级对象升级成功,则在升级日志中结束升级数据的记录时会录入表示本次升级成功的字段,因此,如果所述升级对象在本次升级异常时,可以在获取的升级日志中查找最后一个表示升级成功的字段,在所述字段之后的日志内容即为本次升级异常对应的日志内容,即所述电子设备可以获取所述字段之后的内容作为本次升级异常对应的日志内容,本实施例实现日志内容的准确获取,以便进行后续的定位分析。In the first possible implementation manner, if the electronic device reads an upgrade log of the upgrade object, considering that if the upgrade object is successfully upgraded, it will be entered when the record of the upgrade data is ended in the upgrade log. The field indicating the success of this upgrade. Therefore, if the upgrade object is abnormal this time, you can find the last field indicating the success of the upgrade in the obtained upgrade log, and the log content after the field is this time The log content corresponding to the upgrade exception, that is, the electronic device can obtain the content after the field as the log content corresponding to the upgrade exception. This embodiment implements accurate acquisition of the log content for subsequent location analysis.
在第二种可能的实现方式中,若所述电子设备读取到所述升级对象的多个升级日志,由于所述升级日志在记录升级数据的同时也记录了与所述升级数据相应的升级时间,因此,所述电子设备可以将所述多个升级日志中的内容按照记录的升级时间先后进行拼接,然后查找拼接后的升级日志中最后一个表示升级成功的字段,并获取所述字段之后的内容作为本次升级异常对应的日志内容;本实施例中将获取的多个升级日志进行拼接,有利于快速查找到与本次升级异常相关的日志内容,提高本次升级异常分析效率。In the second possible implementation manner, if the electronic device reads multiple upgrade logs of the upgrade object, since the upgrade log records the upgrade data while also recording the upgrade corresponding to the upgrade data Therefore, the electronic device may splice the contents of the multiple upgrade logs according to the recorded upgrade time, and then search for the last field in the spliced upgrade log indicating that the upgrade is successful, and after obtaining the field The content of is used as the log content corresponding to the upgrade exception; in this embodiment, the multiple upgrade logs obtained are spliced, which is beneficial to quickly find the log content related to the upgrade exception, and improve the efficiency of the upgrade exception analysis.
在第三种可能的实现方式中,若所述电子设备读取到所述升级对象的多个升级日志,所述电子设备可以查找各个升级日志中最后一个表示升级成功的字段,然后将各个升级日志中所述字段之后的内容进行拼接,得到本次升级异常对应的日志内容;本实施例中分别查找各个升级日志中最后一个表示升级成功的字段再将所述字段之后的内容进行拼接,无需对升 级日志中与本次升级异常无法的内容进行拼接,节省了拼接时间,有利于提高本次升级异常分析效率。In a third possible implementation manner, if the electronic device reads multiple upgrade logs of the upgrade object, the electronic device can search for the last field in each upgrade log indicating that the upgrade is successful, and then update each upgrade log. The content after the field in the log is spliced to obtain the log content corresponding to the abnormal upgrade; in this embodiment, the last field in each upgrade log indicating the successful upgrade is searched for, and then the content after the field is spliced. The splicing of the content in the upgrade log that cannot be abnormal with this upgrade saves splicing time and helps improve the efficiency of this upgrade abnormal analysis.
在一实施例中,在得到本次升级异常对应的日志内容之后,所述电子设备可以从所述日志内容中查找指定关键字,然后基于所述指定关键字确定升级异常原因,作为其中一种实现方式,所述电子设备可以预存错误类型对应关系,所述错误类型对应关系用于表示指定关键字与错误类型的对应关系,在查找到所述关键字时,可以根据所述指定关键字以及预存的错误类型对应关系,确定导致升级异常的错误类型,然后基于所述错误类型确定升级异常原因;本实施例中通过预存错误类型对应关系,使得所述设备在查找到指定关键字后,可以基于所述错误类型对应关系快速确定导致本次升级异常错误类型,从而基于所述错误类型准确定本次升级异常原因,保证了分析结果的准确性。根据本发明的一实施方式,可以在设置预定的错误标记,来匹配具体的错误。例如,设置标记FAILURE XXX,以用于匹配具体的错误。当升级程序运行到对应的模块时,程序运行失败,则在升级日志中设置对应模块的标记,以指示对应的具体错误。例如,若升级程序进入升级准备流程时程序运行失败,则在升级日志中设置标记FAILURE 001,以指示升级准备失败。又例如,若升级程序进入固件校验流程时程序运行失败,则在升级日志中设置标记FAILURE 002,以指示固件校验失败。In one embodiment, after obtaining the log content corresponding to this upgrade exception, the electronic device may search for a specified keyword from the log content, and then determine the cause of the upgrade exception based on the specified keyword, as one of them In an implementation manner, the electronic device may pre-store an error type correspondence relationship, the error type correspondence relationship is used to indicate the correspondence relationship between a specified keyword and an error type, and when the keyword is found, it may be based on the specified keyword and The pre-stored error type correspondence relationship is used to determine the error type that caused the upgrade exception, and then the cause of the upgrade exception is determined based on the error type; in this embodiment, the pre-stored error type correspondence relationship allows the device to search for the specified keyword. Based on the corresponding relationship of the error types, the type of the abnormal error that caused the upgrade is quickly determined, so that the cause of the abnormality of the upgrade is accurately determined based on the error type, and the accuracy of the analysis result is ensured. According to an embodiment of the present invention, a predetermined error flag can be set to match a specific error. For example, set the flag FAILURE XXX to match specific errors. When the upgrade program runs to the corresponding module, and the program fails to run, a mark of the corresponding module is set in the upgrade log to indicate the corresponding specific error. For example, if the program fails to run when the upgrade program enters the upgrade preparation process, set the flag FAILURE 001 in the upgrade log to indicate that the upgrade preparation fails. For another example, if the program fails to run when the upgrade program enters the firmware verification process, the flag FAILURE 002 is set in the upgrade log to indicate that the firmware verification fails.
可以理解的是,本申请实施例对于所述错误类型不做任何限制,可依据实际情况进行具体设置,在一个例子中,所述错误类型可以是包括以下任意一种或多种:初始化错误、数据获取错误、数据传输错误、无法进入升级模式、网络连接失败、固件校验错误、重启失败以及升级对象的电量低于指定值等等。It is understandable that the embodiments of this application do not impose any restrictions on the error type, and can be specifically set according to actual conditions. In an example, the error type may include any one or more of the following: initialization error, Data acquisition error, data transmission error, unable to enter the upgrade mode, network connection failure, firmware verification error, restart failure, and the battery of the upgrade object is lower than the specified value, etc.
在另一实施例中,若所述升级异常分析方法由具有联网功能的智能硬件设备执行,如果所述智能硬件设备在对自身进行固件升级的过程中得到升级异常的结果,即本次固件升级失败,所述智能硬件设备可以从自身 读取一个或多个升级日志,然后从获取的一个或多个升级日志中获取与本次升级异常相关的日志内容,以便进行后续的定位分析,有利于减少人工定位分析的繁琐操作,提高升级异常分析效率。In another embodiment, if the upgrade abnormality analysis method is executed by a smart hardware device with networking function, if the smart hardware device obtains an abnormal upgrade result during the firmware upgrade of itself, that is, this firmware upgrade If it fails, the smart hardware device can read one or more upgrade logs from itself, and then obtain the log content related to the upgrade exception from the obtained one or more upgrade logs, so as to perform subsequent positioning analysis, which is beneficial to Reduce the tedious operation of manual positioning analysis and improve the efficiency of upgrading abnormal analysis.
在一个例子中,若所述智能硬件设备读取到一个升级日志,则查找所述升级日志中最后一个表示升级成功的字段,然后获取所述字段之后的内容作为本次升级异常对应的日志内容,本实施例实现日志内容的准确获取,以便进行后续的定位分析。In an example, if the smart hardware device reads an upgrade log, it searches for the last field in the upgrade log indicating that the upgrade was successful, and then obtains the content after the field as the log content corresponding to the upgrade exception In this embodiment, the log content can be accurately obtained for subsequent positioning analysis.
在一个例子中,若所述智能硬件设备读取到多个升级日志,则可以将所述多个升级日志中的内容按照记录的升级时间先后进行拼接,然后查找拼接后的升级日志中最后一个表示升级成功的字段,并获取所述字段之后的内容作为本次升级异常对应的日志内容;本实施例中将获取的多个升级日志进行拼接,有利于快速查找到与本次升级异常相关的日志内容,提高本次升级异常分析效率。In an example, if the smart hardware device reads multiple upgrade logs, the content in the multiple upgrade logs can be spliced sequentially according to the recorded upgrade time, and then the last one in the spliced upgrade log can be searched It indicates the successfully upgraded field, and the content after the field is obtained as the log content corresponding to the upgrade exception; in this embodiment, multiple upgrade logs obtained are spliced, which is beneficial to quickly find out related to the upgrade exception. The log content improves the efficiency of abnormal analysis of this upgrade.
在一个例子中,若所述智能硬件设备读取到多个升级日志,可以先查找各个升级日志中最后一个表示升级成功的字段,然后将各个升级日志中所述字段之后的内容进行拼接,得到本次升级异常对应的日志内容;本实施例中无需对升级日志中与本次升级异常无法的内容进行拼接,节省了拼接时间,有利于提高本次升级异常分析效率。In an example, if the smart hardware device reads multiple upgrade logs, it can first search for the last field in each upgrade log that indicates a successful upgrade, and then splice the content after the fields in each upgrade log to obtain The log content corresponding to this upgrade exception; in this embodiment, there is no need to splice the content in the upgrade log that cannot be compared with the current upgrade exception, which saves splicing time and helps improve the efficiency of this upgrade exception analysis.
在一实施例中,在获取到本次升级异常对应的日志内容之后,所述智能硬件设备可以从所述日志内容中查找指定关键字,然后基于所述指定关键字确定升级异常原因,作为其中一种实现方式,所述智能硬件设备可以预存错误类型对应关系,所述错误类型对应关系用于表示指定关键字与错误类型的对应关系,在查找到所述关键字时,可以根据所述指定关键字以及预存的错误类型对应关系,确定导致升级异常的错误类型,然后基于所述错误类型确定升级异常原因;本实施例中通过预存错误类型对应关系,使得所述设备在查找到指定关键字后,可以基于所述错误类型对应关系快速确定导致本次升级异常错误类型,从而基于所述错误类型准确定本次升 级异常原因,保证了分析结果的准确性。In one embodiment, after obtaining the log content corresponding to this upgrade exception, the smart hardware device may search for a specified keyword from the log content, and then determine the reason for the upgrade exception based on the specified keyword, as In an implementation manner, the smart hardware device may pre-store the error type correspondence relationship, and the error type correspondence relationship is used to indicate the correspondence relationship between a specified keyword and an error type. When the keyword is found, it may be based on the specified Keyword and the pre-stored error type correspondence relationship, determine the error type that caused the upgrade exception, and then determine the cause of the upgrade exception based on the error type; in this embodiment, the pre-stored error type correspondence relationship enables the device to find the specified keyword Later, the type of abnormal error that caused this upgrade can be quickly determined based on the corresponding relationship of the error type, so that the cause of the abnormal upgrade of this time can be accurately determined based on the error type, ensuring the accuracy of the analysis result.
本实施例中,在出现升级异常时,可以读取升级对象的一个或多个升级日志,并从所述一个或多个升级日志中获取本次升级异常对应的日志内容,然后从所述日志内容中查找指定关键字,基于所述指定关键字确定升级异常原因,本实施例实现自动定位升级异常原因的过程,减少了手工定位分析时繁琐的操作以及耗费的人力成本,有利于提高升级异常分析效率,以便工作人员基于定位出的升级异常原因进行升级改进,有利于提高升级成功率。In this embodiment, when an upgrade exception occurs, one or more upgrade logs of the upgrade object can be read, and the log content corresponding to the upgrade exception may be obtained from the one or more upgrade logs, and then the log Search for a specified keyword in the content, and determine the cause of the upgrade abnormality based on the specified keyword. This embodiment implements the process of automatically locating the cause of the upgrade abnormality, which reduces the tedious operation and labor cost during manual positioning analysis, and is beneficial to improve the upgrade abnormality. Analyze the efficiency so that the staff can upgrade and improve based on the located abnormal reasons for the upgrade, which is beneficial to improve the success rate of the upgrade.
请参阅图2,为本申请根据一示例性实施例示出的另一种升级异常分析方法的流程图,所述方法可由电子设备或者智能硬件设备来执行,以下以执行主体为所述电子设备,且对OTA功能进行升级压力测试的场景进行举例说明,所述方法包括:Please refer to FIG. 2, which is a flowchart of another upgrade anomaly analysis method according to an exemplary embodiment of the present application. The method may be executed by an electronic device or a smart hardware device. In the following, the execution subject is the electronic device: In addition, the scenario where the OTA function is upgraded and the stress test is described as an example, and the method includes:
在步骤S201中,若检测到测试开启操作,对所述升级对象进行循环升级压力测试。In step S201, if a test opening operation is detected, a cyclic upgrade stress test is performed on the upgrade object.
在步骤S202中,若本次升级压力测试失败,读取所述升级对象的一个或多个升级日志,并从所述一个或多个升级日志中获取本次测试失败对应的日志内容;所述升级日志从所述升级对象和/或辅助所述升级对象升级的设备中读取。In step S202, if this upgrade stress test fails, read one or more upgrade logs of the upgrade object, and obtain the log content corresponding to this test failure from the one or more upgrade logs; The upgrade log is read from the upgrade object and/or the device that assists the upgrade of the upgrade object.
在步骤S203中,从所述日志内容中查找指定关键字,基于所述指定关键字确定升级异常原因。In step S203, a designated keyword is searched from the log content, and the reason for the abnormal upgrade is determined based on the designated keyword.
在步骤S204中,若本次升级压力测试失败且剩余循环次数不为0,进行下一次升级压力测试。In step S204, if the current upgrade stress test fails and the remaining number of cycles is not 0, the next upgrade stress test is performed.
在一实施例中,为了保证OTA功能的稳定性,需要对OTA功能进行升级压力测试,其中,工作人员可以根据实际需要对升级压力测试的循环次数进行设置,并根据实际需要启动升级压力测试,所述电子设备在检测到测试开启操作时,对所述升级对象进行循环升级压力测试。In one embodiment, in order to ensure the stability of the OTA function, it is necessary to perform an upgrade stress test on the OTA function, where the staff can set the number of cycles of the upgrade stress test according to actual needs, and start the upgrade stress test according to actual needs. When the electronic device detects a test opening operation, it performs a cyclic upgrade stress test on the upgrade object.
其中,若在某一次升级压力测试中升级压力测试失败,所述电子设 备可以读取所述升级对象的一个或多个升级日志,然后从所述一个或多个升级日志中获取本次测试失败对应的日志内容,再从所述日志内容中查找指定关键字,基于所述指定关键字确定本次升级异常原因;本实施例实现自动定位升级异常原因的过程,有利于提高升级异常分析效率。Wherein, if the upgrade stress test fails in a certain upgrade stress test, the electronic device may read one or more upgrade logs of the upgrade object, and then obtain the test failure from the one or more upgrade logs Corresponding to the log content, a designated keyword is searched from the log content, and the cause of the upgrade exception is determined based on the designated keyword; this embodiment realizes the process of automatically locating the cause of the upgrade exception, which is beneficial to improve the efficiency of upgrade exception analysis.
与此同时,在检测到剩余循环次数不为0的情况下,所述电子设备不停止升级压测测试,而是并行进行下一次的升级压力测试;本实施例在剩余循环次数不为0的情况下,即使升级压力测试失败也不停止测试的继续进行,即只需用户一次启动升级压力测试过程即可完成整个循环测试过程,有利于减少用户的操作,提高升级压力测试的效率。At the same time, when it is detected that the number of remaining cycles is not 0, the electronic device does not stop the upgrade pressure test, but performs the next upgrade pressure test in parallel; in this embodiment, when the number of remaining cycles is not 0 In this case, even if the upgrade stress test fails, the test continues without stopping, that is, the user only needs to start the upgrade stress test process once to complete the entire cycle test process, which is beneficial to reduce user operations and improve the efficiency of the upgrade stress test.
相应的,请参阅图3,为本申请根据一示例性实施例示出的一种电子设备的结构图,所述电子设备可以是用于辅助智能硬件设备升级的设备,例如可以是手机、电脑、个人平板或者PDA(Personal Digital Assistant,个人数字助理)等具备联网的设备,所述电子设备包括:Correspondingly, please refer to FIG. 3, which is a structural diagram of an electronic device according to an exemplary embodiment of this application. The electronic device may be a device used to assist in upgrading smart hardware devices, such as a mobile phone, a computer, Network-equipped devices such as personal tablets or PDAs (Personal Digital Assistants), and the electronic devices include:
处理器31; Processor 31;
用于存储处理器31可执行指令的存储器32;A memory 32 for storing executable instructions of the processor 31;
其中,所述处理器31调用所述可执行指令,当可执行指令被执行时,用于执行以下操作:Wherein, the processor 31 calls the executable instruction, and when the executable instruction is executed, it is used to perform the following operations:
读取升级对象的一个或多个升级日志,并从所述一个或多个升级日志中获取本次升级异常对应的日志内容;所述升级日志从所述升级对象和/或辅助所述升级对象升级的设备中读取;Read one or more upgrade logs of the upgrade object, and obtain the log content corresponding to the upgrade exception from the one or more upgrade logs; the upgrade log obtains from the upgrade object and/or assists the upgrade object Read in upgraded equipment;
从所述日志内容中查找指定关键字,基于所述指定关键字确定升级异常原因。Search for a designated keyword from the log content, and determine the cause of the upgrade abnormality based on the designated keyword.
所述处理器31可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以 是微处理器或者该处理器也可以是任何常规的处理器等。The processor 31 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器32存储所述升级异常分析方法的可执行指令计算机程序,所述存储器32可以包括至少一种类型的存储介质,存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,所述电子设备30可以与通过网络连接执行存储器32的存储功能的网络存储装置协作。存储器32可以是电子设备30的内部存储单元,例如电子设备30的硬盘或内存。存储器32也可以是电子设备30的外部存储设备,例如电子设备30上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器32还可以既包括电子设备30的内部存储单元也包括外部存储设备。存储器32用于存储计算机程序以及设备所需的其他程序和数据。存储器32还可以用于暂时地存储已经输出或者将要输出的数据。The memory 32 stores an executable instruction computer program of the upgrade abnormality analysis method. The memory 32 may include at least one type of storage medium. The storage medium includes a flash memory, a hard disk, a multimedia card, and a card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), Magnetic storage, magnetic disks, optical disks, etc. Furthermore, the electronic device 30 may cooperate with a network storage device that performs the storage function of the memory 32 through a network connection. The memory 32 may be an internal storage unit of the electronic device 30, such as a hard disk or a memory of the electronic device 30. The memory 32 may also be an external storage device of the electronic device 30, such as a plug-in hard disk equipped on the electronic device 30, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on. Further, the memory 32 may also include both an internal storage unit of the electronic device 30 and an external storage device. The memory 32 is used to store computer programs and other programs and data required by the device. The memory 32 can also be used to temporarily store data that has been output or will be output.
这里描述的各种实施方式可以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器中并且由控制器执行。The various embodiments described herein may be implemented using a computer-readable medium such as computer software, hardware, or any combination thereof. For hardware implementation, the implementation described here can be implemented by using application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays ( It is implemented by at least one of an FPGA), a processor, a controller, a microcontroller, a microprocessor, and an electronic unit designed to perform the functions described herein. For software implementation, implementations such as procedures or functions may be implemented with a separate software module that allows execution of at least one function or operation. The software code can be implemented by a software application (or program) written in any suitable programming language, and the software code can be stored in a memory and executed by the controller.
在一应用场景中,所述电子设备可以从指定网络位置(比如云端服务器)下载升级文件,再将所述升级文件通过有线连接方式或者近场通信(NFC)等无线方式传输给所述智能硬件设备,以辅助所述智能硬件设备 进行升级;其中,所述进场通信可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其它技术来实现。In an application scenario, the electronic device may download an upgrade file from a designated network location (such as a cloud server), and then transmit the upgrade file to the smart hardware through a wired connection or wirelessly such as near field communication (NFC) Equipment to assist the upgrade of the smart hardware device; wherein, the approach communication can be based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and others Technology to achieve.
在一实施例中,所述处理器31还用于执行:根据所述指定关键字以及预存的错误类型对应关系,确定导致升级异常的错误类型;所述错误类型对应关系用于表示指定关键字与错误类型的对应关系;基于所述错误类型确定升级异常原因。In an embodiment, the processor 31 is further configured to execute: determine the error type that caused the upgrade exception according to the specified keyword and the pre-stored error type correspondence; the error type correspondence is used to indicate the specified keyword Correspondence with the error type; the reason for the upgrade exception is determined based on the error type.
在一实施例中,所述处理器31还用于执行:若读取到所述升级对象的一个升级日志,查找所述升级日志中最后一个表示升级成功的字段;获取所述字段之后的内容作为本次升级异常对应的日志内容。In an embodiment, the processor 31 is further configured to execute: if an upgrade log of the upgrade object is read, search for the last field in the upgrade log that indicates a successful upgrade; and obtain the content after the field As the log content corresponding to the upgrade exception.
在一实施例中,所述处理器31还用于执行:若读取到所述升级对象的多个升级日志,查找各个升级日志中最后一个表示升级成功的字段;将各个升级日志中所述字段之后的内容进行拼接,得到本次升级异常对应的日志内容。In an embodiment, the processor 31 is further configured to execute: if multiple upgrade logs of the upgrade object are read, search for the last field in each upgrade log indicating that the upgrade was successful; The content after the field is spliced to get the log content corresponding to this upgrade exception.
在一实施例中,所述处理器31还用于执行:若读取到所述升级对象的多个升级日志,将所述多个升级日志中的内容按照记录的升级时间先后进行拼接;查找拼接后的升级日志中最后一个表示升级成功的字段,并获取所述字段之后的内容作为本次升级异常对应的日志内容。In an embodiment, the processor 31 is further configured to execute: if multiple upgrade logs of the upgrade object are read, concatenate the contents of the multiple upgrade logs according to the recorded upgrade time; search; The last field in the spliced upgrade log indicates that the upgrade was successful, and the content after the field is acquired as the log content corresponding to the upgrade exception.
在一实施例中,所述处理器31还用于执行:若检测到测试开启操作,对所述升级对象进行循环升级压力测试;若本次升级压力测试失败,读取所述升级对象的一个或多个升级日志。In one embodiment, the processor 31 is further configured to execute: if a test opening operation is detected, perform a cyclic upgrade stress test on the upgrade object; if the upgrade stress test fails this time, read one of the upgrade objects Or multiple upgrade logs.
在一实施例中,所述处理器31还用于执行:若本次升级压力测试失败且剩余循环次数不为0,进行下一次升级压力测试。In an embodiment, the processor 31 is further configured to execute: if the upgrade stress test fails this time and the number of remaining cycles is not 0, perform the next upgrade stress test.
在一实施例中,所述升级对象包括可移动平台和/或相机。In an embodiment, the upgrade object includes a movable platform and/or a camera.
在一实施例中,所述可移动平台包括无人机、无人车以及无人船。In one embodiment, the movable platform includes unmanned aerial vehicles, unmanned vehicles, and unmanned ships.
在一实施例中,所述错误类型包括以下任意一种或多种:初始化错误、数据获取错误、数据传输错误、无法进入升级模式、网络连接失败、 固件校验错误、重启失败以及电量低于指定值。In an embodiment, the type of error includes any one or more of the following: initialization error, data acquisition error, data transmission error, unable to enter the upgrade mode, network connection failure, firmware verification error, restart failure, and battery low Specify the value.
相应的,请参阅图4,为本申请根据一示例性实施例示出的一种可移动平台40的结构图,所述可移动平台40可通过OTA功能进行固件升级,所述可移动平台40包括:Correspondingly, please refer to FIG. 4, which is a structural diagram of a movable platform 40 according to an exemplary embodiment of this application. The movable platform 40 can be upgraded with firmware through OTA function, and the movable platform 40 includes :
机身41; Body 41;
动力系统42,设于所述机身41内部,用于为所述可移动平台提供动力;The power system 42 is arranged inside the fuselage 41 and is used to provide power for the movable platform;
通讯系统43,设于所述机身41内部,用于使所述可移动平台与外部设备进行通信;以及,The communication system 43 is arranged inside the fuselage 41 and is used to enable the movable platform to communicate with external devices; and,
升级系统44,设于所述机身41内部,用于执行上述任意一项所述的升级异常分析方法。The upgrade system 44 is arranged inside the fuselage 41 and is used to execute any one of the above-mentioned upgrade abnormal analysis methods.
在一实施例中,所述可移动平台包括无人机、无人车、无人船或者扫地机器人等。In an embodiment, the movable platform includes an unmanned aerial vehicle, an unmanned vehicle, an unmanned boat, or a sweeping robot.
在一实施例中,所述通讯系统43被配置为便于可移动平台40和其它设备之间有线或无线方式的通信。可移动平台40可以接入基于通信标准的无线网络,如WiFi,3G或4G,或它们的组合。在一个示例性实施例中,所述通讯系统43经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。In an embodiment, the communication system 43 is configured to facilitate wired or wireless communication between the movable platform 40 and other devices. The mobile platform 40 can access a wireless network based on a communication standard, such as WiFi, 3G, or 4G, or a combination thereof. In an exemplary embodiment, the communication system 43 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel.
在一应用场景中,所述可移动平台40可基于所述通讯系统从指定网络位置(比如云端服务器)下载升级文件,然后由所述升级系统44基于所述升级文件进行固件升级过程。In an application scenario, the mobile platform 40 can download an upgrade file from a designated network location (such as a cloud server) based on the communication system, and then the upgrade system 44 performs a firmware upgrade process based on the upgrade file.
本领域技术人员可以理解,图4仅仅是可移动平台40的示例,并不构成对可移动平台40的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如可移动平台40还可以包括输入输出设备等。Those skilled in the art can understand that FIG. 4 is only an example of the movable platform 40, and does not constitute a limitation on the movable platform 40. It may include more or less components than those shown in the figure, or combine certain components, or different components. For example, the movable platform 40 may also include input and output devices.
相应的,请参阅图5,为本申请根据一示例性实施例示出的一种相机50的结构图,所述相机50可通过OTA功能进行升级,所述相机50包 括:Correspondingly, please refer to FIG. 5, which is a structural diagram of a camera 50 according to an exemplary embodiment of this application. The camera 50 can be upgraded through the OTA function. The camera 50 includes:
外壳51; Shell 51;
镜头组件52,设于所述外壳51内部;The lens assembly 52 is arranged inside the housing 51;
传感器组件53,设于所述外壳51内部,用于感知通过所述镜头组件52的光并生成电信号;The sensor assembly 53 is arranged inside the housing 51 for sensing light passing through the lens assembly 52 and generating electrical signals;
通讯系统54,设于所述外壳51内部,用于使所述相机50与外部设备进行通信;以及,The communication system 54 is provided inside the housing 51 and is used to enable the camera 50 to communicate with external devices; and,
升级系统55,设于所述外壳内部,用于执行上述任意一项所述的升级异常分析方法。The upgrade system 55 is arranged inside the casing and is used to execute any one of the above-mentioned upgrade abnormal analysis methods.
在一实施例中,所述通讯系统54被配置为便于所述相机50和其它设备之间有线或无线方式的通信。所述相机50可以接入基于通信标准的无线网络,如WiFi,3G或4G,或它们的组合。在一个示例性实施例中,所述通讯系统54经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。In an embodiment, the communication system 54 is configured to facilitate wired or wireless communication between the camera 50 and other devices. The camera 50 can be connected to a wireless network based on a communication standard, such as WiFi, 3G, or 4G, or a combination thereof. In an exemplary embodiment, the communication system 54 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel.
本领域技术人员可以理解,图5仅仅是所述相机50的示例,并不构成对所述相机50的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述相机50还可以包括输入输出设备等。Those skilled in the art can understand that FIG. 5 is only an example of the camera 50, and does not constitute a limitation on the camera 50. It may include more or fewer components than those shown in the figure, or combine certain components, or different components. For example, the camera 50 may also include input and output devices.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器,上述指令可由交互设备的处理器执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory including instructions, which may be executed by a processor of an interactive device to complete the foregoing method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
其中,当所述存储介质中的指令由所述处理器执行时,使得电子设备能够执行前述升级异常分析方法。Wherein, when the instructions in the storage medium are executed by the processor, the electronic device is enabled to execute the aforementioned upgrade abnormality analysis method.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得 包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. The terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements that are not explicitly listed. Elements, or also include elements inherent to such processes, methods, articles, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
以上对本发明实施例所提供的方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The methods and devices provided by the embodiments of the present invention are described in detail above. Specific examples are used in this article to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and methods of the present invention. The core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation of the present invention .

Claims (24)

  1. 一种升级异常分析方法,其特征在于,包括:An upgrade anomaly analysis method, which is characterized in that it includes:
    读取升级对象的一个或多个升级日志,并从所述一个或多个升级日志中获取本次升级异常对应的日志内容;所述升级日志从所述升级对象和/或辅助所述升级对象升级的设备中读取;Read one or more upgrade logs of the upgrade object, and obtain the log content corresponding to the upgrade exception from the one or more upgrade logs; the upgrade log obtains from the upgrade object and/or assists the upgrade object Read in upgraded equipment;
    从所述日志内容中查找指定关键字,基于所述指定关键字确定升级异常原因。Search for a designated keyword from the log content, and determine the cause of the upgrade abnormality based on the designated keyword.
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述指定关键字确定升级异常原因,包括:The method according to claim 1, wherein the determining the reason for the abnormal upgrade based on the specified keyword comprises:
    根据所述指定关键字以及预存的错误类型对应关系,确定导致升级异常的错误类型;所述错误类型对应关系用于表示指定关键字与错误类型的对应关系;Determine the error type that caused the upgrade exception according to the designated keyword and the pre-stored error type correspondence; the error type correspondence is used to indicate the correspondence between the designated keyword and the error type;
    基于所述错误类型确定升级异常原因。Determine the cause of the upgrade exception based on the error type.
  3. 根据权利要求1所述的方法,其特征在于,所述从所述升级日志中获取本次升级异常对应的日志内容,包括:The method according to claim 1, wherein the obtaining the log content corresponding to the current upgrade exception from the upgrade log comprises:
    若读取到所述升级对象的一个升级日志,查找所述升级日志中最后一个表示升级成功的字段;If an upgrade log of the upgrade object is read, search for the last field in the upgrade log that indicates that the upgrade was successful;
    获取所述字段之后的内容作为本次升级异常对应的日志内容。The content after the field is obtained as the log content corresponding to this upgrade exception.
  4. 根据权利要求1所述的方法,其特征在于,所述从所述升级日志中获取本次升级异常对应的日志内容,包括:The method according to claim 1, wherein the obtaining the log content corresponding to the current upgrade exception from the upgrade log comprises:
    若读取到所述升级对象的多个升级日志,查找各个升级日志中最后一个表示升级成功的字段;If multiple upgrade logs of the upgrade object are read, search for the last field in each upgrade log that indicates that the upgrade was successful;
    将各个升级日志中所述字段之后的内容进行拼接,得到本次升级异常对应的日志内容。The content after the fields in each upgrade log are spliced to obtain the log content corresponding to the upgrade exception.
  5. 根据权利要求1所述的方法,其特征在于,所述从所述升级日志中获取本次升级异常对应的日志内容,包括:The method according to claim 1, wherein the obtaining the log content corresponding to the current upgrade exception from the upgrade log comprises:
    若读取到所述升级对象的多个升级日志,将所述多个升级日志中的内 容按照记录的升级时间先后进行拼接;If multiple upgrade logs of the upgrade object are read, the contents in the multiple upgrade logs are sequentially spliced according to the recorded upgrade time;
    查找拼接后的升级日志中最后一个表示升级成功的字段,并获取所述字段之后的内容作为本次升级异常对应的日志内容。Look for the last field in the spliced upgrade log that indicates that the upgrade is successful, and obtain the content after the field as the log content corresponding to the upgrade exception.
  6. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising:
    若检测到测试开启操作,对所述升级对象进行循环升级压力测试;If a test opening operation is detected, perform a cyclic upgrade stress test on the upgrade object;
    所述读取升级对象的一个或多个升级日志,包括:The reading one or more upgrade logs of the upgrade object includes:
    若本次升级压力测试失败,读取所述升级对象的一个或多个升级日志。If this upgrade stress test fails, read one or more upgrade logs of the upgrade object.
  7. 根据权利要求6所述的方法,其特征在于,在所述读取升级对象的一个或多个升级日志之后,还包括:The method according to claim 6, characterized in that, after the reading one or more upgrade logs of the upgrade object, the method further comprises:
    若剩余循环次数不为0,进行下一次升级压力测试。If the number of remaining cycles is not 0, perform the next upgrade stress test.
  8. 根据权利要求1所述的方法,其特征在于,所述升级对象包括可移动平台和/或相机。The method according to claim 1, wherein the upgrade object includes a movable platform and/or a camera.
  9. 根据权利要求8所述的方法,其特征在于,所述可移动平台包括无人机、无人车以及无人船。The method according to claim 8, wherein the movable platform includes unmanned aerial vehicles, unmanned vehicles, and unmanned ships.
  10. 根据权利要求2所述的方法,其特征在于,所述错误类型包括以下任意一种或多种:The method according to claim 2, wherein the error type includes any one or more of the following:
    初始化错误、数据获取错误、数据传输错误、无法进入升级模式、网络连接失败、固件校验错误、重启失败以及电量低于指定值。Initialization error, data acquisition error, data transmission error, unable to enter the upgrade mode, network connection failure, firmware verification error, restart failure, and battery power is below the specified value.
  11. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    处理器;processor;
    用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
    其中,所述处理器调用所述可执行指令,当可执行指令被执行时,用于执行以下操作:Wherein, the processor calls the executable instruction, and when the executable instruction is executed, it is used to perform the following operations:
    读取升级对象的一个或多个升级日志,并从所述一个或多个升级日志中获取本次升级异常对应的日志内容;所述升级日志从所述升级对象和/或辅助所述升级对象升级的设备中读取;Read one or more upgrade logs of the upgrade object, and obtain the log content corresponding to the upgrade exception from the one or more upgrade logs; the upgrade log obtains from the upgrade object and/or assists the upgrade object Read in upgraded equipment;
    从所述日志内容中查找指定关键字,基于所述指定关键字确定升级异常原因。Search for a designated keyword from the log content, and determine the cause of the upgrade abnormality based on the designated keyword.
  12. 根据权利要求11所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to claim 11, wherein the processor is further configured to execute:
    根据所述指定关键字以及预存的错误类型对应关系,确定导致升级异常的错误类型;所述错误类型对应关系用于表示指定关键字与错误类型的对应关系;Determine the error type that caused the upgrade exception according to the designated keyword and the pre-stored error type correspondence; the error type correspondence is used to indicate the correspondence between the designated keyword and the error type;
    基于所述错误类型确定升级异常原因。Determine the cause of the upgrade exception based on the error type.
  13. 根据权利要求11所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to claim 11, wherein the processor is further configured to execute:
    若读取到所述升级对象的一个升级日志,查找所述升级日志中最后一个表示升级成功的字段;If an upgrade log of the upgrade object is read, search for the last field in the upgrade log that indicates that the upgrade was successful;
    获取所述字段之后的内容作为本次升级异常对应的日志内容。The content after the field is obtained as the log content corresponding to this upgrade exception.
  14. 根据权利要求11所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to claim 11, wherein the processor is further configured to execute:
    若读取到所述升级对象的多个升级日志,查找各个升级日志中最后一个表示升级成功的字段;If multiple upgrade logs of the upgrade object are read, search for the last field in each upgrade log that indicates that the upgrade was successful;
    将各个升级日志中所述字段之后的内容进行拼接,得到本次升级异常对应的日志内容。The content after the fields in each upgrade log are spliced to obtain the log content corresponding to the upgrade exception.
  15. 根据权利要求11所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to claim 11, wherein the processor is further configured to execute:
    若读取到所述升级对象的多个升级日志,将所述多个升级日志中的内容按照记录的升级时间先后进行拼接;If multiple upgrade logs of the upgrade object are read, the contents in the multiple upgrade logs are sequentially spliced according to the recorded upgrade time;
    查找拼接后的升级日志中最后一个表示升级成功的字段,并获取所述字段之后的内容作为本次升级异常对应的日志内容。Look for the last field in the spliced upgrade log that indicates that the upgrade is successful, and obtain the content after the field as the log content corresponding to the upgrade exception.
  16. 根据权利要求11所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to claim 11, wherein the processor is further configured to execute:
    若检测到测试开启操作,对所述升级对象进行循环升级压力测试;If a test opening operation is detected, perform a cyclic upgrade stress test on the upgrade object;
    若本次升级压力测试失败,读取所述升级对象的一个或多个升级日志。If this upgrade stress test fails, read one or more upgrade logs of the upgrade object.
  17. 根据权利要求16所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to claim 16, wherein the processor is further configured to execute:
    若本次升级压力测试失败且剩余循环次数不为0,进行下一次升级压力测试。If this upgrade stress test fails and the remaining number of cycles is not 0, perform the next upgrade stress test.
  18. 根据权利要求11所述的电子设备,其特征在于,所述升级对象包括可移动平台和/或相机。The electronic device according to claim 11, wherein the upgrade object includes a movable platform and/or a camera.
  19. 根据权利要求18所述的电子设备,其特征在于,所述可移动平台包括无人机、无人车以及无人船。The electronic device according to claim 18, wherein the movable platform includes an unmanned aerial vehicle, an unmanned vehicle, and an unmanned ship.
  20. 根据权利要求12所述的电子设备,其特征在于,所述错误类型包括以下任意一种或多种:The electronic device according to claim 12, wherein the error type includes any one or more of the following:
    初始化错误、数据获取错误、数据传输错误、无法进入升级模式、网络连接失败、固件校验错误、重启失败以及电量低于指定值。Initialization error, data acquisition error, data transmission error, unable to enter the upgrade mode, network connection failure, firmware verification error, restart failure, and battery power is below the specified value.
  21. 一种可移动平台,其特征在于,包括:A movable platform, characterized in that it comprises:
    机身;body;
    动力系统,设于所述机身内部,用于为所述可移动平台提供动力;The power system is arranged inside the fuselage and used to provide power for the movable platform;
    通讯系统,设于所述机身内部,用于使所述可移动平台与外部设备进行通信;以及,A communication system, which is arranged inside the fuselage and is used to enable the movable platform to communicate with external devices; and,
    升级系统,设于所述机身内部,用于执行权利要求1至10任意一项所述的方法。The upgrade system is arranged inside the fuselage and used to implement the method described in any one of claims 1 to 10.
  22. 根据权利要求21所述的方法,其特征在于,所述可移动平台包括无人机、无人车以及无人船。The method according to claim 21, wherein the movable platform includes an unmanned aerial vehicle, an unmanned vehicle, and an unmanned ship.
  23. 一种相机,其特征在于,包括A camera, characterized in that it comprises
    外壳;shell;
    镜头组件,设于所述外壳内部;The lens assembly is arranged inside the housing;
    传感器组件,设于所述外壳内部,用于感知通过所述镜头组件的光并生成电信号;A sensor assembly, arranged inside the housing, for sensing light passing through the lens assembly and generating electrical signals;
    通讯系统,设于所述外壳内部,用于使所述相机与外部设备进行通信;以及,A communication system, which is provided inside the housing and is used to enable the camera to communicate with external devices; and,
    升级系统,设于所述外壳内部,用于执行权利要求1至10任意一项所述的方法。The upgrade system is arranged inside the housing and used to implement the method described in any one of claims 1 to 10.
  24. 一种计算机可读存储介质,其特征在于,其上存储有计算机指令,该指令被处理器执行时实现权利要求1至10任意一项所述的方法。A computer-readable storage medium, characterized in that computer instructions are stored thereon, and when the instructions are executed by a processor, the method according to any one of claims 1 to 10 is realized.
PCT/CN2019/124580 2019-12-11 2019-12-11 Upgrade abnormality analysis method, electronic device, movable platform, camera, and computer-readable storage medium WO2021114138A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/124580 WO2021114138A1 (en) 2019-12-11 2019-12-11 Upgrade abnormality analysis method, electronic device, movable platform, camera, and computer-readable storage medium
CN201980049878.5A CN112513818A (en) 2019-12-11 2019-12-11 Upgrade exception analysis method, electronic device, movable platform, camera, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/124580 WO2021114138A1 (en) 2019-12-11 2019-12-11 Upgrade abnormality analysis method, electronic device, movable platform, camera, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2021114138A1 true WO2021114138A1 (en) 2021-06-17

Family

ID=74923732

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/124580 WO2021114138A1 (en) 2019-12-11 2019-12-11 Upgrade abnormality analysis method, electronic device, movable platform, camera, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN112513818A (en)
WO (1) WO2021114138A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099439A (en) * 2021-03-29 2021-07-09 上海闻泰信息技术有限公司 OTA upgrade pressure test method, device, computer equipment and storage medium
CN113641380B (en) * 2021-07-16 2024-03-19 一汽奔腾轿车有限公司 OTA upgrading problem analysis method
CN115118577B (en) * 2022-06-24 2023-08-18 重庆长安汽车股份有限公司 Remote upgrade abnormality cause determination method, device, electronic equipment and storage medium
CN116545685A (en) * 2023-04-28 2023-08-04 零束科技有限公司 In-vehicle verification failure information management method, communication system, vehicle and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060436A (en) * 2007-06-05 2007-10-24 杭州华三通信技术有限公司 A fault analyzing method and device for communication equipment
JP2013233604A (en) * 2012-05-08 2013-11-21 Canon Inc Method and device of monitoring control of production apparatus, and production system
CN105955862A (en) * 2016-04-15 2016-09-21 乐视控股(北京)有限公司 Abnormal problem monitoring positioning method and device
CN106843957A (en) * 2017-01-17 2017-06-13 青岛海信移动通信技术股份有限公司 System firmware upgrade method and device
CN107896170A (en) * 2017-11-08 2018-04-10 平安科技(深圳)有限公司 Insure the monitoring method and device of application system
CN108089986A (en) * 2017-12-18 2018-05-29 江苏木盟智能科技有限公司 A kind of version updating test method and system based on robot

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060436A (en) * 2007-06-05 2007-10-24 杭州华三通信技术有限公司 A fault analyzing method and device for communication equipment
JP2013233604A (en) * 2012-05-08 2013-11-21 Canon Inc Method and device of monitoring control of production apparatus, and production system
CN105955862A (en) * 2016-04-15 2016-09-21 乐视控股(北京)有限公司 Abnormal problem monitoring positioning method and device
CN106843957A (en) * 2017-01-17 2017-06-13 青岛海信移动通信技术股份有限公司 System firmware upgrade method and device
CN107896170A (en) * 2017-11-08 2018-04-10 平安科技(深圳)有限公司 Insure the monitoring method and device of application system
CN108089986A (en) * 2017-12-18 2018-05-29 江苏木盟智能科技有限公司 A kind of version updating test method and system based on robot

Also Published As

Publication number Publication date
CN112513818A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
WO2021114138A1 (en) Upgrade abnormality analysis method, electronic device, movable platform, camera, and computer-readable storage medium
CN105094903B (en) The method and device that firmware is upgraded
US9188629B2 (en) Electronic device and printed circuit board testing method
WO2018000607A1 (en) Method and electronic apparatus for identifying test case failure causes
CN112261635A (en) Bluetooth test method, device, electronic equipment and computer readable storage medium
CN109815141B (en) Test method and device
CN108536597A (en) A kind of terminal test method, device, terminal device and storage medium
WO2020237508A1 (en) Assertion validation code binding method and apparatus
CN113553010A (en) Optical disc file checking method, optical disc recording method and computing device
CN107643893A (en) A kind of program detecting method and device
CN110750280A (en) Application upgrading method and system based on Android platform and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
US11422917B2 (en) Deriving software application dependency trees for white-box testing
CN114185571A (en) Firmware upgrading method and device of CPLD, terminal and readable storage medium
CN113138916A (en) Automatic testing method and system for picture structuring algorithm based on labeled sample
CN110889116B (en) Advertisement interception method and device and electronic equipment
CN112181467A (en) Method and device for upgrading memory firmware of terminal, terminal and storage medium
WO2023060893A1 (en) Storage space management method and apparatus, and device and storage medium
CN115033182A (en) Processing method and device
CN113407932B (en) Channel identifier reporting method, system and storage medium
CN112527335B (en) Method, system and computer device for automated processing npm dependent package installation
CN114721943A (en) Method and device for determining test range
CN113806252A (en) Board card identification method, computer, device, terminal equipment and storage medium
CN113656318A (en) Software version testing method and device and computer equipment
CN113792787B (en) Remote sensing big data processing method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19956122

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19956122

Country of ref document: EP

Kind code of ref document: A1