WO2015196479A1 - 程序数据的更新方法及设备 - Google Patents

程序数据的更新方法及设备 Download PDF

Info

Publication number
WO2015196479A1
WO2015196479A1 PCT/CN2014/081027 CN2014081027W WO2015196479A1 WO 2015196479 A1 WO2015196479 A1 WO 2015196479A1 CN 2014081027 W CN2014081027 W CN 2014081027W WO 2015196479 A1 WO2015196479 A1 WO 2015196479A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
data
startup mode
mode
control instruction
Prior art date
Application number
PCT/CN2014/081027
Other languages
English (en)
French (fr)
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 EP14888557.7A priority Critical patent/EP3002701A4/en
Priority to CN201480001780.XA priority patent/CN104428751A/zh
Priority to JP2016528322A priority patent/JP2016524771A/ja
Priority to PCT/CN2014/081027 priority patent/WO2015196479A1/zh
Priority to US14/961,970 priority patent/US20160092201A1/en
Publication of WO2015196479A1 publication Critical patent/WO2015196479A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/572Secure firmware programming, e.g. of basic input output system [BIOS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to the field of data processing technologies, and in particular, to a method and device for updating program data. Background technique
  • SD Secure Digital
  • the SD form product includes a wireless communication component, accesses the network through the wireless communication component, and updates the program data online through the network;
  • the SD form product needs to be unpacked to obtain a PCB (Printed Circuit Board) with a USB (Universal Serial Bus) interface, so that the memory chip needs to be updated from the connected computer through the USB interface.
  • Program data and update it is provided.
  • the inventors have found that the above method has at least the following problems:
  • the first method since the access to the wireless network is required, if the network is unavailable or the wireless communication component is damaged and cannot access the network, the program cannot be accessed at this time. The data is updated so that the success rate of data updates is lower.
  • the second method since the memory chip in the SD form product needs to be obtained by unpacking the SD form product, the structure of the SD form product is generally unremovable, which may cause the product shell and related products to be removed. If the PCB pad is damaged, the program data cannot be updated at this time, so that the success rate of data update is low. Summary of the invention In order to solve the problem of the prior art, an embodiment of the present invention provides a method and an apparatus for updating program data. The technical solution is as follows:
  • a method for updating program data where the method is applied to a host device; the method includes:
  • the control command is a first control instruction that enters a forced load startup mode
  • the forced load startup mode is that the terminal device acquires program data in the memory card. And start mode of data update based on the acquired program data.
  • the startup mode of the terminal device includes a forced load startup mode and a normal startup mode.
  • the control command is to enter a normal startup.
  • the second control command of the mode, wherein the normal startup mode is a startup mode in which the terminal device reads data in the built-in non-volatile flash memory according to the read data.
  • the method further includes:
  • a method for updating program data is provided, where the method is applied to a terminal device; the method includes:
  • the program data in the memory card is acquired, and the data is updated according to the acquired program data.
  • control instruction is a second control instruction that enters a normal startup mode
  • the normal startup mode is entered according to the second control instruction
  • the data in the built-in non-volatile flash memory is read and started normally according to the read data.
  • the method further includes: The device sends process data for performing data update, and the process data of the data update is used by the host device to display a process for the terminal device to perform data update.
  • a host device in a third aspect, includes a user input module, a processor, a first interface, and a second interface;
  • the first interface is connected to the terminal device
  • the second interface is connected to the memory card, and the memory card stores program data for updating the data by the terminal device;
  • the user input module is configured to receive an input instruction of a user
  • the processor is configured to determine, according to an input instruction of a user received by the user input module, an activation mode of the terminal device, and send, to the terminal device, a control instruction for controlling the terminal device to enter a determined startup mode. If it is determined that the startup mode of the terminal device is a forced load startup mode, the control command sent by the processor is a first control instruction that enters a forced load startup mode, and the forced load startup mode is that the terminal device acquires the The program data in the memory card, and the startup mode of the data update based on the acquired program data.
  • the control command sent by the processor is a second control that enters a normal startup mode.
  • the normal startup mode is that the terminal device reads the built-in non-volatile The data in the flash, according to the startup mode in which the read data is normally started.
  • the host device further includes a first control circuit
  • the processor is configured to send, by the first control circuit, the first interface to send, to the terminal device, a control instruction for controlling the terminal device to enter a determined startup mode.
  • the host The device also includes process data of the display device;
  • the display device is configured to display, according to the process data received by the first interface, a process of performing data update by the terminal device.
  • the fourth aspect provides a terminal device, where the terminal device includes a processor and a first interface, where the first interface is used to connect to the host device;
  • the first interface is configured to receive a control command sent by the host device, where the control command is used to control the terminal device to enter a startup mode of the terminal device determined by the host device;
  • the processor is configured to enter a forced loading startup mode according to the first control instruction when the control instruction received by the first interface is a first control instruction that enters a forced loading startup mode; Data; data update based on acquired program data.
  • the processor when the control instruction received by the first interface is a second control instruction that enters a normal startup mode, And entering a normal startup mode according to the second control instruction, where the normal startup mode is a startup mode in which the terminal device reads data in the built-in non-volatile flash memory according to the read data.
  • the terminal device further includes a second control circuit
  • the processor configured to receive the host by using the second control circuit to drive the first interface A control command sent by the device for controlling the terminal device to enter a determined startup mode.
  • the first interface is further configured to send process data for performing data update to the host device, where the process data of the data update is used by the host device to display a process for the terminal device to perform data update.
  • the terminal device When the terminal device enters the startup mode determined by the host device connected to the terminal device, the terminal device acquires the program data in the memory card, and performs data according to the acquired program data. Update. Since the program data of the terminal device can be directly updated by forced loading without being updated by the network or the method of unpacking the shell, the success rate of the data update can be improved. DRAWINGS
  • FIG. 1 is a flowchart of a method for updating program data according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for updating program data according to another embodiment of the present invention
  • FIG. 3 is a flowchart of a method for updating program data according to another embodiment of the present invention
  • FIG. 4 is another embodiment of the present invention
  • a schematic structural diagram of a host device provided by the example
  • FIG. 5 is a schematic structural diagram of a host device according to another embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a host device according to another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an update system of program data according to another embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a circuit connection relationship according to another embodiment of the present invention. detailed description
  • the program data cannot be updated; or, by disassembling the SD form product to obtain a PCB with a USB interface, the memory chip can download program data from the connected computer through the USB interface, and according to the downloaded program data.
  • Data Update Since the structure of the SD form product is generally unremovable, the shell removal process may damage the product case and related PCB pads, and the program data cannot be updated at this time, resulting in a lower success rate of data update.
  • the embodiment of the present invention provides a method for updating the program data, and the method is applied to the host device.
  • the host device in this embodiment and subsequent embodiments includes but is not limited to DC ( The digital camera, digital camera, DV (Digital Video), card reader, etc., and the embodiments of the present invention do not specifically limit the product form of the host device.
  • the method process provided by this embodiment includes:
  • the control instruction is a first control instruction that enters the forced loading startup mode
  • the forced loading startup mode is a startup mode in which the terminal device acquires program data in the memory card and performs data update according to the acquired program data.
  • the control command is a second control instruction that enters a normal startup mode
  • the normal startup mode is that the terminal device reads data in the built-in non-volatile flash memory, according to The startup mode in which the read data is normally started.
  • the method further includes:
  • the method provided in this embodiment by sending a startup mode for controlling the terminal device to enter the determined terminal device, when the startup mode of the terminal device is the forced loading startup mode, the control terminal device enters the forced loading startup mode, and is acquired by the terminal device.
  • the program data in the memory card is updated, and the data is updated according to the acquired program data. Since the program data of the terminal device can be directly updated by forced loading without being updated by the network or unpacked, the success rate of data update can be improved.
  • 2 is a flowchart of a method for updating program data according to another embodiment of the present invention, and another embodiment of the present invention provides a method for updating program data, where the method relates to a terminal device, and the implementation example and subsequent The embodiment does not specifically limit the product form of the terminal device. As shown in FIG. 2, the method flow provided by this embodiment includes:
  • 201 Receive a control instruction sent by the host device, where the control instruction is used to control a startup mode of the terminal device determined by the terminal device to enter the host device;
  • control instruction is the first control instruction that enters the forced load start mode, enter the forced load start mode according to the first control instruction;
  • control instruction is the second control instruction that enters the normal startup mode, entering the normal startup mode according to the second control instruction;
  • the data in the built-in non-volatile flash memory is read and started normally according to the read data.
  • the method further includes:
  • the process data for performing data update is sent to the host device, and the process data of the data update is used by the host device to display the process of updating the terminal device for data.
  • FIG. 3 is a flowchart of a method for updating program data according to another embodiment of the present invention, and another embodiment of the present invention provides a method for updating program data, which relates to a host device, a terminal device, a memory card, and the like. .
  • the method process provided by this embodiment includes:
  • the host device receives an input instruction of the user.
  • the host device includes a user input module, a first processor, a first interface, and a second interface. This embodiment does not limit the structure of the host device.
  • the manner in which the host device receives the user's input instructions includes, but is not limited to: receiving the user's input instructions through the user input module.
  • the user input module can be a mode selection switch, a touch screen, a keyboard, a mouse, etc., and the embodiment does not specifically limit the product form of the user input module.
  • the user input modules of different product configurations have different working principles. Therefore, the manners of receiving the user input commands and the specific forms of the commands are different for the user input modules of different forms, which is not specifically limited in this embodiment. For example, the user activates the input command by dialing the physical switch through the mode selection switch.
  • the user implements the input command by detecting the click signal of the touch screen on the operation interface, and the mouse and the keyboard realize the input command by detecting the user clicking the relevant button. It can be seen that the user input module under each form product receives the user's input command in different ways.
  • the host device determines, according to a user input instruction, a startup mode of the terminal device, if it is determined to be final If the startup mode of the terminal device is the forced load startup mode, step 303 is performed, and if it is determined that the startup mode of the terminal device is the normal startup mode, step 308 is performed;
  • the manner in which the host device receives the user's input command may be various. Therefore, in this step, the host device may determine the startup mode of the terminal device according to the input instruction of the user. This is not specifically limited.
  • the startup mode of the terminal device includes a forced load startup mode and a normal startup mode.
  • the user input module is now used as a mode selection switch. Since the mode selection switch can have two states, a closed state and an open state, respectively, the user input commands corresponding to different states of the mode selection switch are different, and different user input commands can correspond to different startup modes.
  • the input instruction of the user corresponding to the closed state of the mode selection switch may be associated with the forced load activation mode of the terminal device
  • the input instruction of the user corresponding to the disconnected state of the mode selection switch may be associated with the normal startup mode of the terminal device.
  • the user toggles the mode selection switch to the closed state it can be determined that the startup mode of the terminal device is the forced load startup mode.
  • the mode selection switch to the off state it can be determined that the startup mode of the terminal device is the normal startup mode.
  • the input instruction of the user corresponding to the disconnected state of the mode selection switch may be associated with the forced loading start mode of the terminal device, and the input instruction of the user corresponding to the closed state of the mode selection switch is related to the normal startup mode of the terminal device.
  • the input instruction of the user corresponding to the closed state of the mode selection switch is related to the normal startup mode of the terminal device.
  • Union When the user toggles the mode selection switch to the closed state, it can be determined that the startup mode of the terminal device is the normal startup mode.
  • the mode selection switch to the off state it can be determined that the startup mode of the terminal device is the forced load startup mode.
  • step 303 when it is determined that the startup mode of the terminal device is the forced load startup mode, step 303 is performed; when it is determined that the startup mode of the terminal device is the normal startup mode, step 308 is performed.
  • the host device sends, to the terminal device, a first control instruction for controlling the terminal device to enter a forced load startup mode.
  • This embodiment does not specifically limit the manner in which the host device sends a control command to the terminal device, including but not limited to: sending a control command to the terminal device according to the input instruction of the user.
  • the mode selection switch can be open or closed. Since the first interface of the host device is connected to the terminal device, if the user toggles the mode selection switch to the closed state, the mode control circuit between the host device and the terminal device is in a mutually connected state, and the host device can pass the electrical signal. The form sends a control command to the terminal device. For example, when the host device is connected to the power source, when the mode selection switch is in the closed state, the mode control circuit between the host device and the terminal device is in a mutually connected state.
  • the mode control circuit between the host device and the terminal device will pass current due to the circuit being turned on, and the voltage on some of the connection points will be at a high level with respect to the voltage at the ground connection point, that is, correspondingly Electrical signal. At this time, these electrical signals can be used as control commands sent by the host device to the terminal device.
  • the startup mode of the terminal device is the forced load startup mode. See Figure 10.
  • the terminal device is on the left
  • the host device is on the center
  • the memory card is on the right.
  • the interface on the left side of the host device is the first interface
  • the interface on the right side is the second interface
  • the interface on the terminal device is the third interface.
  • the first interface is connected to the third interface
  • the terminal device is connected to the host device.
  • the second interface is connected to the memory card to connect the host device to the memory card.
  • the terminal device includes an AP (Application Processor), and the AP can be a processing chip, and the processing chip has a plurality of outgoing pins.
  • the pins drawn from the processing chip include BOOT_MODE0, BOOT_MODE1, and BOOT_MODE2.
  • the pins of the processing chip may be more than the pins shown in FIG. 10. This embodiment does not specifically limit the number of pins of the processing chip.
  • the embodiment of the present invention takes four startup mode control pins as an example, that is, in addition to the above three pins, there is also a BOOT_MODE3 through which the startup mode is controlled.
  • the startup mode can be controlled by the level values of the four pins BOOT_MODE0, BOOT_MODE BOOT_MODE2 and BOOT_MODE3.
  • the specific control methods are shown in Table 1 below:
  • Non-secure E2RPOM startup OxFFFF 0000 As shown in Table 1, there are several startup modes in Table 1. Among them, the off-chip non-volatile flash NAND (Not AND) Flash boot is the normal boot mode, and the non-secure eMMC (Embedded Multi Media Card) boot is the forced load boot mode. Each boot mode has a corresponding boot address, which is the location of the code that needs to be run at boot time in the storage space.
  • BM[3] in Table 1 is BOOT_MODE3
  • BM[2] is BOOT_MODE2
  • BM[1] is BOOT_MODE1
  • BM[0] is BOOT_MODE0.
  • the pins BOOT_MODE1 and BOOT_MODE2 are grounded to ensure that the two pins are always low.
  • BOOT_MODE3 is always set to a high level, on the basis that the pins BOOT_MODE1 and BOOT_MODE2 are both low, the level of the control pin BOOT_MODE0 can make the terminal The device boots in forced load startup mode or normal startup mode.
  • the relevant circuit in the terminal device and the host device is a mode control circuit, in which VSS and VDD are positive and negative electrodes, respectively.
  • VSS and VDD are positive and negative electrodes, respectively.
  • the level of the pin BOOT_MODE0 will become a high level, which is equivalent to the host device transmitting a control command to the terminal device through the mode control circuit driving the first interface.
  • the control instruction is to enter the forced load startup mode.
  • the first control instruction Conversely, when the user toggles the mode selection switch to the off state, the pin
  • BOOT The level value of MODE0 will change to low level, which is equivalent to the host device sending a control command to the terminal device through the mode control circuit to drive the second interface, but the control command at this time is the second control command to enter the normal startup mode. .
  • the above process usually adds a boot pin to the processing chip in the terminal device, and the processing chip in the terminal device usually has a plurality of self-equipped pins. Therefore, In order to save the pin resources of the processing chip in the terminal device, a plurality of pins of the processing chip in the terminal device may be selected as the boot pin.
  • the pins BOOT_MODE0, BOOT_MODE1, and BOOT_MODE2 of the processing chip in the terminal device are used as mode control pins, that is, the startup pins are provided, and the self-contained pins are adopted. The pin control the startup mode of the terminal device, so that the pin resources of the processing chip in the terminal device can be saved, which is not specifically limited in this embodiment.
  • the terminal device receives the first control instruction sent by the host device, and enters a forced loading startup mode according to the first control instruction;
  • the terminal device When receiving the first control instruction sent by the host device, the terminal device needs to enter the forced loading startup mode according to the first control instruction sent by the host device. For example, after the mode selection switch is toggled to the closed state, the pin BOOT_MODE0 is at a high level, and the host device sends the first control command to the terminal device by controlling the mode control circuit on the host device side to control the first interface.
  • the terminal device can drive the third interface on the terminal device side to receive the first control command sent by the host device by using the mode control circuit on the terminal device side, and then enter the forced load startup mode according to the first control instruction.
  • the forced loading startup mode indicates that the terminal device is booted by other connected devices, and other devices may store updated operating system programs. Therefore, the terminal device may be controlled by the updated operating system program and start the booting process until the startup is completed.
  • the terminal device is started in a forced loading startup mode by program data in the memory card connected to the second interface of the host device.
  • the terminal device acquires program data in the memory card, and performs the number according to the acquired program data. According to the update;
  • the program data in the memory card can be obtained.
  • the embodiment does not specifically limit the manner in which the terminal device obtains the program data in the memory card, including but not The method is limited to: setting a second main controller in the terminal device in advance, and after the host device determines that the startup mode of the terminal device is the forced loading startup mode, the second main controller controls the terminal device to acquire program data in the storage card.
  • the second main controller may include an SDIO (Secure Digital Input and Output) interface, a DMA (Direct Memory Access) interface, a clock control component, a cache control component, a command control component, and the like. This embodiment does not specifically limit the composition of the two.
  • the terminal device acquires program data in the memory card
  • the terminal device is equivalent to the master device
  • the memory card is equivalent to the slave device
  • the terminal device can send a read data command to the memory card through the second master controller, thereby Read the program data in the memory card.
  • the host device is equivalent to the master device, and the terminal device and the memory card are equivalent to the slave device, and the host device can send a read data command to the terminal device or the memory card through the built-in first host controller, thereby Read data from the terminal device or memory card.
  • the manner in which the terminal device performs data update according to the acquired program data is not specifically limited in this embodiment, and includes, but is not limited to, replacing the acquired program data with the program data stored in the NAND device in the terminal device.
  • the image file may be decompressed into updated operating system data, and the updated operating system data is replaced with the terminal device.
  • Operating system data stored before NAND In order to ensure that the terminal device is powered on during the process of program data update, the host device may further include a power component, and the first interface may provide power to the terminal device.
  • the embodiment further provides a method for displaying the process and the result of updating the data of the terminal device, which is specifically described in the following steps.
  • the host device may further include a display device for displaying the process and the result of the terminal device data update, which is not specifically limited in this embodiment.
  • 306 The terminal device sends the process data of the data update of the terminal device to the host device.
  • the step is an optional step.
  • the process data for the terminal device to send the terminal device for data update is not specifically limited, where the process data is This includes but is not limited to clock waveforms.
  • the host device may receive the clock pulse waveform generated by the terminal device through the clock CLK pin on the first interface. Since the host device needs to obtain an input signal through a GPIO (General Purpose Input Output) pin, the GPIO pin in the host device can be shared with the CLK pin, which is not specifically limited in this embodiment. At this time, the host device can acquire the clock pulse waveform sent by the terminal device through the GPIO pin.
  • GPIO General Purpose Input Output
  • the host device receives process data of the terminal device for performing data update sent by the terminal device, and displays a process for the terminal device to perform data update according to the process data.
  • the host device may include a display device, and the display device may display the process of updating the data by the terminal device according to the process data sent by the terminal device.
  • the process data transmitted by the terminal device is taken as an example of a clock pulse waveform.
  • the manner in which the host device performs the process of updating the data by the terminal device according to the process data is not specifically limited in this embodiment, including but not limited to: predefining a state or result of data update by the terminal device corresponding to the waveform of different frequencies; a frequency corresponding to each received waveform; determining a state or a result of data update by the terminal device corresponding to each waveform according to a frequency corresponding to each waveform; performing a data update state or a result control display according to the terminal device corresponding to each waveform
  • the display mode of the device, the display device shows the process and result of the data update of the terminal device in different display modes.
  • the display device may be a device such as an LED (Light Emitting Diode) display lamp, which is not specifically limited in this embodiment.
  • LED Light Emitting Diode
  • the waveforms of the three frequencies are defined in advance, respectively being the first frequency, the second frequency, and the third frequency, wherein the waveform of the first frequency represents a state in which the terminal device is in the process of updating the data; the waveform of the second frequency represents the terminal device. The data update failed; the waveform of the third frequency represents the success of the terminal device data update.
  • the display device is an LED display light
  • three display modes can be defined in advance, the first display mode The LED display light flashes, indicating that the terminal device is in the state of data update; the second display mode is that the LED display light is always on, indicating that the terminal device data is updated successfully; the third display mode is that the LED display light is always off, representing Terminal device data update failed.
  • the host device may determine a frequency corresponding to the waveform, and compare the frequency corresponding to the waveform with the first frequency, the second frequency, and the third frequency, respectively, to determine which frequency is the same.
  • the frequency corresponding to the waveform is the same as the first frequency, it can be determined that the terminal device is in a state in which data update is being performed, and at this time, the LED display lamp blinks.
  • the frequency corresponding to the waveform is the same as the second frequency, it can be determined that the terminal device data update is successful, and at this time, the LED display light is always on.
  • the frequency corresponding to the waveform is the same as the third frequency, it may be determined that the terminal device data update fails, and at this time, the LED display light is always off.
  • connection between the host device, the terminal device, and the memory card is as shown in FIG. 7.
  • the interface on the left side of the host device is the first interface
  • the interface on the right side of the host device is the second interface
  • the host device passes the first interface. Connected to the terminal device and connected to the memory card through the second interface.
  • the host device sends, to the terminal device, a second control instruction that controls the terminal device to enter a normal startup mode.
  • control command is the second control command that enters the normal startup mode.
  • the terminal device receives the second control command sent by the host device, and enters a normal startup mode according to the second control command.
  • This embodiment does not specifically limit the manner in which the terminal device receives the control command sent by the host device, and does not specifically limit the manner in which the terminal device enters the normal startup mode.
  • the specific method refer to the content in the foregoing step 304, and details are not described herein again. .
  • the host device can pass the host device.
  • the first interface can normally read and write data in the terminal device, and the data in the memory card can be read and written normally through the second interface, which is not specifically limited in this embodiment.
  • the host device can forward the data stored by the host device to the network through the wireless communication component in the terminal device, which is not specifically limited in this embodiment.
  • the manner in which the host device forwards the data stored by the host device to the network through the wireless communication component in the terminal device is not specifically limited in this embodiment, including but not limited to: setting the first primary controller in the host device in advance, at the terminal a second slave controller is disposed in the device; the first master controller may send commands and data to the second slave controller, and after receiving the command and data, the second slave controller forwards the command and data to the wireless communication component, by wireless The communication component forwards the data to the network according to the command.
  • the composition of the first main controller or the second slave controller may refer to the component structure of the second main controller in the foregoing step 305. This embodiment does not specifically limit the composition of the two.
  • the terminal device includes both the second main controller and the second slave controller, and the second main controller and the second slave controller both need to The terminals of the control chip of the terminal device are connected to acquire or transmit data. Therefore, the controller connected to the pin can be switched in some way to ensure that in the normal startup mode, the terminal device acts as a slave device, and the second slave controller interacts with the memory card; in the forced loading startup mode The terminal device is used as the master device, and the second master controller interacts with other slave devices.
  • the manner of switching the controllers connected to the pins includes but is not limited to: presetting a secondary switch, and connecting the pins to different controllers through the secondary switches in different startup modes, this embodiment also No specific limitation.
  • the terminal device reads the data in the built-in non-volatile flash memory and starts normally according to the read data.
  • the system and other related programs therefore, the manner in which the terminal device is started according to the locally stored program data is not specifically limited in this embodiment, including but not limited to: when the terminal device is powered on, the bootloader is automatically executed, and the bootloader will execute the operating system program. Loaded into the memory of the terminal device, thereby being taken over by the operating system program and starting to control the startup process of the entire terminal device until the startup is completed.
  • FIG. 4 is a schematic structural diagram of a host device according to another embodiment of the present invention, and another embodiment of the present invention provides a host device, where the host device is used to execute the foregoing embodiment shown in FIG. 1 to FIG. The method performed by the host device in any of the embodiments.
  • the host device includes: a first interface 401, a second interface 402, a processor 403, and a user input module 404.
  • the first interface 401 is connected to the terminal device, and the second interface 402 is connected to the memory card.
  • the memory card stores program data for updating the data by the terminal device.
  • a user input module 404 configured to receive an instruction input by a user
  • the processor 403 is configured to determine, according to an input instruction of the user received by the user input module 404, a startup mode of the terminal device, and send, to the terminal device, a control instruction for controlling the terminal device to enter the determined startup mode; if determining a startup mode of the terminal device To force the boot mode, the control command sent by the processor 403 is the first control command to enter the forced load start mode, and the forced load start mode is to acquire the program data in the memory card by the terminal device, and perform data update according to the acquired program data. Start mode.
  • the control command sent by the processor 403 is a second control command that enters the normal startup mode
  • the normal startup mode is The startup mode of the terminal device normally started by the built-in non-volatile flash memory.
  • the host device further includes a first control circuit 405;
  • the processor 403 is configured to send, by the first control circuit 405, the first interface 401 to send, to the terminal device, a control instruction for controlling the terminal device to enter the determined startup mode.
  • the host device further includes a display device 406;
  • a first interface 401 configured to receive, by the terminal device, process data for performing data update by the terminal device
  • the display device 406 is configured to display a process for the terminal device to perform data update according to the process data received by the first interface 401.
  • the device provided in this embodiment determines the startup mode of the terminal device according to the input instruction of the user, and sends a control instruction for entering the determined startup mode to the terminal device.
  • the startup mode of the terminal device is the forced loading startup mode
  • the program data in the memory card is acquired by the terminal device, and the data is updated according to the acquired program data. Since the program data of the terminal device can be directly updated by forced loading without being updated by the network or unpacked, the success rate of data update can be improved.
  • FIG. 7 is a schematic structural diagram of a terminal device according to another embodiment of the present invention, and another embodiment of the present invention provides a terminal device, where the terminal device is used to execute the foregoing embodiment shown in FIG. 1 to FIG. The method performed by the terminal device in any of the embodiments.
  • the terminal device includes: a processor 501 and a first interface 502;
  • the first interface 502 is configured to connect to the host device
  • a first interface 502 configured to receive a control instruction sent by the host device, where the control instruction is used to control the final processor 501, when the control instruction received by the first interface 502 is the first control instruction that enters the forced load startup mode, according to The first control instruction enters a forced load startup mode; acquires program data of the memory card; and performs data update according to the acquired program data.
  • the processor 501 is configured to enter a normal startup mode according to the second control instruction when the control instruction received by the first interface 502 is the second control instruction that enters the normal startup mode, where the normal startup mode is the terminal.
  • the boot mode of the device is normally booted through the built-in non-volatile flash.
  • the terminal device further includes a second control circuit 503.
  • the processor 501 is configured to drive, by using the second control circuit 503, the first interface 502 to receive, by the host device, a control terminal.
  • the device enters a control command for the determined startup mode.
  • the first interface 502 is further configured to send process data for performing data update to the host device, where the process data of the data update is used by the host device to display the process of updating the data by the terminal device.
  • FIG. 9 is a schematic structural diagram of a system for updating program data according to another embodiment of the present invention, and another embodiment of the present invention provides a data update system, which is used to perform the foregoing FIG. 1 to FIG. The method provided by any of the embodiments. As shown in Figure 9, the system includes:
  • the host device 601 is the host device provided in the foregoing embodiment. For details, refer to the content in the foregoing embodiment, and details are not described herein.
  • the terminal device 602 is the terminal device provided in the foregoing embodiment. For details, refer to the content in the foregoing embodiment, and details are not described herein again.
  • the memory card 603 stores program data for the terminal device 602 to perform data update, and the memory card 603 is connected to the host device 601. For details, refer to the content in the foregoing embodiment, and details are not described herein again.
  • the system provided in this embodiment is started by the terminal device according to the startup mode determined by the host device.
  • the startup mode of the terminal device is the forced loading startup mode
  • the terminal device acquires the storage card.
  • Program data, and update data according to the acquired program data. Since the program data of the terminal device can be directly updated by forced loading without being updated by the network or the method of unpacking the shell, the success rate of the data update can be improved.
  • the host device and the terminal device provided by the foregoing embodiments are only illustrated by the division of the foregoing functional modules. In actual applications, the functions may be allocated by different functional modules according to requirements. Upon completion, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
  • the embodiments of the method for updating the host device, the terminal device, and the program data provided by the foregoing embodiments are in the same concept. For details, refer to the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

本发明公开了一种程序数据的更新方法及设备,属于数据处理技术领域。方法包括:接收用户的输入指令;根据用户的输入指令确定终端设备的启动模式,并向终端设备发送用于控制终端设备进入确定的启动模式的控制指令;若确定终端设备的启动模式为强制加载启动模式,控制指令为进入强制加载启动模式的第一控制指令,强制加载启动模式为终端设备获取存储卡中的程序数据,并根据获取的程序数据进行数据更新的启动模式。本发明通过主机设备确定终端设备的启动模式为强制加载启动模式,由终端设备根据从存储卡中获取的程序数据进行数据更新,从而通过强制加载实现终端设备的程序数据更新,无需通过网络更新或者拆壳更新的方式,因而提高数据更新的成功率。

Description

说 明 书 程序数据的更新方法及设备 技术领域
本发明涉及数据处理技术领域, 特别涉及一种程序数据的更新方法及设备。 背景技术
随着数据处理技术的不断发展, SD ( Secure Digital, 安全数码)形态产品 由于其内置 SD存储芯片良好的存储特性被使用的越来越广泛, 而且有个趋势 就是会集成无线通信模块。 由于 SD形态产品中存储的程序数据每隔一段时间 需要进行更新, 因此, 如何进行程序数据的更新是人们关注的问题。
相关技术中提供了两种程序数据的更新方法, 在第一种方法中, SD 形态 产品包含无线通信组件, 通过无线通信组件访问网络, 通过网络在线进行程序 数据的更新; 在第二种方法中, 需要对 SD 形态产品进行拆壳得到带有 USB ( Universal Serial Bus, 通用串行总线)接口的 PCB ( Printed Circuit Board, 印 刷电路板 ), 使存储芯片通过 USB接口从连接的计算机上下载需要更新的程序 数据并进行更新。
在实现本发明的过程中, 发明人发现上述方法至少存在以下问题: 在第一种方法中, 由于需要访问无线网络, 若网络不可用或者无线通信组 件损坏无法访问网络, 则此时无法对程序数据进行更新, 从而使得数据更新的 成功率较低。在第二种方法中, 由于 SD形态产品中的存储芯片需要通过对 SD 形态产品拆壳得到, 而 SD形态产品的结构一般都是不可拆的, 导致拆壳过程 可能会使产品壳体及相关的 PCB焊盘损坏,则此时无法对程序数据进行更新, 从而使得数据更新的成功率较低。 发明内容 为了解决现有技术的问题, 本发明实施例提供了一种程序数据的更新方法 及设备。 所述技术方案如下:
第一方面, 提供了一种程序数据的更新方法, 所述方法应用于主机设备; 所述方法包括:
接收用户的输入指令; 送用于控制所述终端设备进入确定的启动模式的控制指令;
若确定所述终端设备的启动模式为强制加载启动模式, 则所述控制指令为 进入强制加载启动模式的第一控制指令 , 所述强制加载启动模式为所述终端设 备获取存储卡中的程序数据, 并根据获取的程序数据进行数据更新的启动模式。
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述终端设备的 启动模式包括强制加载启动模式和正常启动模式。
结合第一方面的第一种可能的实现方式, 在第一方面的第二种可能的实现 方式中, 若确定所述终端设备的启动模式为正常启动模式, 则所述控制指令为 进入正常启动模式的第二控制指令, 所述正常启动模式为所述终端设备读取内 置的非易失性闪存中的数据, 根据读取的数据正常启动的启动模式。
结合第一方面、 第一方面的第一种可能的实现方式和第二种可能的实现方 式中的任一种可能的实现方式, 在第一方面的第三种可能的实现方式中, 所述 向所述终端设备发送用于控制所述终端设备进入确定的启动模式的控制指令 之后, 还包括:
接收所述终端设备发送的进行数据更新的过程数据,根据所述过程数据显 示所述终端设备进行数据更新的过程。
第二方面, 提供了一种程序数据的更新方法, 所述方法应用于终端设备; 所述方法包括:
接收主机设备发送的控制指令, 所述控制指令用于控制所述终端设备进入 所述主机设备确定的所述终端设备的启动模式; 若所述控制指令为进入强制加载启动模式的第一控制指令, 则根据所述第 一控制指令进入强制加载启动模式;
获取存储卡中的程序数据, 并根据获取的程序数据进行数据更新。
结合第二方面, 在第二方面的第一种可能的实现方式中, 若所述控制指令 为进入正常启动模式的第二控制指令, 则根据所述第二控制指令进入正常启动 模式;
读取内置的非易失性闪存中的数据, 根据读取的数据正常启动。
结合第二方面或第二方面的第一种可能的实现方式, 在第二方面的第二种 可能的实现方式中, 所述根据获取的程序数据进行数据更新之后, 还包括: 向所述主机设备发送进行数据更新的过程数据, 所述数据更新的过程数据 用于所述主机设备显示所述终端设备进行数据更新的过程。
第三方面, 提供了一种主机设备, 所述主机设备包括用户输入模块、 处理 器、 第一接口和第二接口;
所述第一接口连接终端设备;
所述第二接口连接存储卡, 所述存储卡中存储有用于所述终端设备进行数 据更新的程序数据;
所述用户输入模块, 用于接收用户的输入指令;
所述处理器, 用于根据所述用户输入模块接收的用户的输入指令确定所述 终端设备的启动模式, 并向所述终端设备发送用于控制所述终端设备进入确定 的启动模式的控制指令; 若确定所述终端设备的启动模式为强制加载启动模式 , 所述处理器发送的控制指令为进入强制加载启动模式的第一控制指令, 所述强 制加载启动模式为所述终端设备获取所述存储卡中的程序数据, 并根据获取的 程序数据进行数据更新的启动模式。
结合第三方面, 在第三方面的第一种可能的实现方式中, 若确定所述终端 设备的启动模式为正常启动模式, 所述处理器发送的控制指令为进入正常启动 模式的第二控制指令, 所述正常启动模式为所述终端设备读取内置的非易失性 闪存中的数据, 根据读取的数据正常启动的启动模式。
结合第三方面, 在第三方面的第二种可能的实现方式中, 所述主机设备还 包括第一控制电路;
所述处理器, 用于通过所述第一控制电路驱动所述第一接口向所述终端设 备发送用于控制所述终端设备进入确定的启动模式的控制指令。
结合第三方面、 第三方面的第一种可能的实现方式和第二种可能的实现方 式中任一种可能的实现方式, 在第三方面的第三种可能的实现方式中, 所述主 机设备还包括显示器件; 的过程数据;
所述显示器件, 用于根据所述第一接口接收的过程数据显示所述终端设备 进行数据更新的过程。
第四方面, 提供了一种终端设备, 所述终端设备包括处理器和第一接口; 所述第一接口用于连接主机设备;
所述第一接口, 用于接收所述主机设备发送的控制指令, 所述控制指令用 于控制所述终端设备进入所述主机设备确定的所述终端设备的启动模式;
所述处理器, 用于当所述第一接口接收的所述控制指令为进入强制加载启 动模式的第一控制指令时, 根据所述第一控制指令进入强制加载启动模式; 获 取存储卡的程序数据; 根据获取的程序数据进行数据更新。
结合第四方面, 在第四方面的第一种可能的实现方式中, 所述处理器, 用 于当所述第一接口接收的所述控制指令为进入正常启动模式的第二控制指令 时, 根据所述第二控制指令进入正常启动模式, 所述正常启动模式为所述终端 设备读取内置的非易失性闪存中的数据,根据读取的数据正常启动的启动模式。
结合第四方面, 在第四方面的第二种可能的实现方式中, 所述终端设备还 包括第二控制电路;
所述处理器, 用于通过所述第二控制电路驱动所述第一接口接收所述主机 设备发送的用于控制所述终端设备进入确定的启动模式的控制指令。
结合第四方面、 第四方面的第一种可能的实现方式和第二种可能的实现方 式中的任一种可能的实现方式, 在第四方面的第三种可能的实现方式中, 所述 第一接口, 还用于向所述主机设备发送进行数据更新的过程数据, 所述数据更 新的过程数据用于所述主机设备显示所述终端设备进行数据更新的过程。
本发明实施例提供的技术方案带来的有益效果是:
通过终端设备进入与终端设备连接的主机设备确定的启动模式进行启动 , 当终端设备的启动模式为强制加载启动模式时, 终端设备获取存储卡中的程序 数据, 并根据获取到的程序数据进行数据更新。 由于能够通过强制加载直接对 终端设备的程序数据进行更新, 而不用通过网络更新或者拆壳更新的方式, 因 而能够提高数据更新的成功率。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明一实施例提供的一种程序数据的更新方法流程图;
图 2是本发明另一实施例提供的一种程序数据的更新方法流程图; 图 3是本发明另一实施例提供的一种程序数据的更新方法流程图; 图 4是本发明另一实施例提供的一种主机设备的结构示意图;
图 5是本发明另一实施例提供的一种主机设备的结构示意图;
图 6是本发明另一实施例提供的一种主机设备的结构示意图;
图 7是本发明另一实施例提供的一种终端设备的结构示意图;
图 8是本发明另一实施例提供的一种终端设备的结构示意图;
图 9是本发明另一实施例提供的一种程序数据的更新系统结构示意图; 图 10是本发明另一实施例提供的一种电路连接关系示意图。 具体实施方式
这里将详细地对示例性实施例进行说明, 其示例表示在附图中。 下面的描 述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。 以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施 方式。 相反, 它们仅是与如所附权利要求书中所详述的、 本发明的一些方面相 一致的装置和方法的例子。 由于相关技术中在更新 SD形态产品中存储的程序 数据时, 需要通过 SD形态产品包括的无线通信组件访问网络, 通过网络在线 进行程序数据的更新, 当网络不可用或者无线通信组件损坏无法访问网络时, 则无法对程序数据进行更新; 或者,通过将 SD形态产品拆壳得到带有 USB接 口的 PCB, 使存储芯片通过 USB接口从连接的计算机上下载程序数据, 并根 据下载到的程序数据进行数据更新。 由于 SD形态产品的结构一般都是不可拆 的, 拆壳过程可能会使得产品壳件及相关的 PCB焊盘损坏, 则此时无法对程 序数据进行更新, 从而导致数据更新的成功率较低。
为了预防上述情况, 提高数据更新的成功率, 本发明实施例提供了一种程 序数据的更新方法, 该方法应用于主机设备, 本实施例及后续实施例中的主机 设备包括但不限于 DC ( Digital Camera, 数码相机)、 DV ( Digital Video , 数字 视频)及读卡器等, 本实施例及后续实施例均不对主机设备的产品形态作具体 限定。 参见图 1 , 本实施例提供的方法流程包括:
101 : 接收用户的输入指令;
102: 根据用户的输入指令确定终端设备的启动模式;
103: 向终端设备发送用于控制终端设备进入确定的启动模式的控制指令; 104: 若确定终端设备的启动模式为强制加载启动模式, 则控制指令为进 入强制加载启动模式的第一控制指令, 强制加载启动模式为终端设备获取存储 卡中的程序数据, 并根据获取的程序数据进行数据更新的启动模式。 可选地, 若确定终端设备的启动模式为正常启动模式, 则控制指令为进入 正常启动模式的第二控制指令, 正常启动模式为终端设备读取内置的非易失性 闪存中的数据, 根据读取的数据正常启动的启动模式。
可选地, 向终端设备发送用于控制终端设备进入确定的启动模式的控制指 令之后, 还包括:
接收终端设备发送的进行数据更新的过程数据,根据过程数据显示终端设 备进行数据更新的过程。
本实施例提供的方法, 通过向终端设备发送用于控制终端设备进入确定的 启动模式, 当终端设备的启动模式为强制加载启动模式时, 则控制终端设备进 入强制加载启动模式, 由终端设备获取存储卡中的程序数据, 并根据获取到的 程序数据进行数据更新。 由于能够通过强制加载直接对终端设备的程序数据进 行更新, 而不用通过网络更新或者拆壳更新的方式, 因而能够提高数据更新的 成功率。 图 2是本发明另一实施例提供的一种程序数据的更新方法流程图, 本发明 另一实施例提供了一种程序数据的更新方法, 该方法涉及到终端设备, 本实施 施例及后续实施例均不对终端设备的产品形态作具体限定。 如图 2所示, 本实 施例提供的方法流程包括:
201 : 接收主机设备发送的控制指令, 控制指令用于控制终端设备进入主 机设备确定的终端设备的启动模式;
202: 若控制指令为进入强制加载启动模式的第一控制指令, 则根据第一 控制指令进入强制加载启动模式;
203 : 获取存储卡中的程序数据, 并根据获取的程序数据进行数据更新。 可选地, 若控制指令为进入正常启动模式的第二控制指令, 则根据第二控 制指令进入正常启动模式; 读取内置的非易失性闪存中的数据, 根据读取的数据正常启动。
可选地, 根据获取的程序数据进行数据更新之后, 还包括:
向主机设备发送进行数据更新的过程数据,数据更新的过程数据用于主机 设备显示终端设备进行数据更新的过程。
本实施例提供的方法, 通过根据主机设备发送的控制指令进入主机设备确 定的启动模式进行启动, 当启动模式为强制加载启动模式时, 获取存储卡中的 程序数据, 并根据获取到的程序数据进行数据更新。 由于能够通过强制加载直 接进行程序数据的更新, 而不用通过网络更新或者拆壳更新的方式, 因而能够 提高数据更新的成功率。 图 3是本发明另一实施例提供的一种程序数据的更新方法流程图, 本发明 另一实施例提供了一种程序数据的更新方法, 该方法涉及到主机设备、 终端设 备及存储卡等。 如图 3所示, 本实施例提供的方法流程包括:
301: 主机设备接收用户的输入指令;
其中, 主机设备包括用户输入模块、 第一处理器、 第一接口和第二接口, 本实施例不对主机设备的结构进行限定。 关于主机设备接收用户的输入指令的 方式, 包括但不限于: 通过用户输入模块接收用户的输入指令。 其中, 用户输 入模块可以为模式选择开关、 触摸屏、 键盘及鼠标等, 本实施例不对用户输入 模块的产品形态作具体限定。 由于不同产品形态的用户输入模块的工作原理不 同, 因此, 针对不同形态的用户输入模块, 在接收用户输入指令时的方式以及 指令的具体形式也有所不同, 本实施例对此不作具体限定。 例如, 用户是通过 模式选择开关拨动物理开关来实现输入指令, 用户是通过检测触摸屏在操作界 面上的点击信号来实现输入指令, 鼠标与键盘是通过检测用户点击相关按键来 实现输入指令。 由此可见, 每种形态产品下的用户输入模块接收用户的输入指 令的方式不相同。
302: 主机设备根据用户的输入指令确定终端设备的启动模式, 若确定终 端设备的启动模式为强制加载启动模式, 则执行步骤 303 , 若确定终端设备的 启动模式为正常启动模式, 则执行步骤 308;
由于在上述步骤 301 中, 主机设备接收用户的输入指令方式可以有多种, 因此, 在本步骤中主机设备根据用户的输入指令确定终端设备的启动模式的方 式也可以有多种, 本实施例对此不作具体限定。 其中, 终端设备的启动模式包 括强制加载启动模式和正常启动模式。
为了便于理解, 现以用户输入模块为模式选择开关为例。 由于模式选择开 关可以有两种状态, 分别为闭合状态与断开状态, 因此, 模式选择开关的不同 状态对应的用户的输入指令不同, 而不同的用户的输入指令可以对应不同的启 动模式。 例如, 可以将模式选择开关的闭合状态对应的用户的输入指令与终端 设备的强制加载启动模式相关联,将模式选择开关的断开状态对应的用户的输 入指令与终端设备的正常启动模式相关联。 当用户拨动模式选择开关至闭合状 态时, 可确定终端设备的启动模式为强制加载启动模式。 当用户拨动模式选择 开关至断开状态时, 可确定终端设备的启动模式为正常启动模式。
或者,还可以将模式选择开关的断开状态对应的用户的输入指令与终端设 备的强制加载启动模式相关联, 将模式选择开关的闭合状态对应的用户的输入 指令与终端设备的正常启动模式相关联。 当用户拨动模式选择开关至闭合状态 时, 可确定终端设备的启动模式为正常启动模式。 当用户拨动模式选择开关至 断开状态时, 可确定终端设备的启动模式为强制加载启动模式。
经过上述过程后, 当确定终端设备的启动模式为强制加载启动模式时, 则 执行步骤 303;当确定终端设备的启动模式为正常启动模式时,则执行步骤 308。
303 : 主机设备向终端设备发送用于控制终端设备进入强制加载启动模式 的第一控制指令;
本实施例不对主机设备向终端设备发送控制指令的方式作具体限定, 包括 但不限于: 根据用户的输入指令的形式向终端设备发送控制指令。
例如, 当用户是通过模式选择开关输入指令时, 根据上述步骤 302中的内 容, 模式选择开关可以为断开或者闭合状态。 由于主机设备的第一接口连接着 终端设备, 若用户将模式选择开关拨动至闭合状态, 此时, 主机设备与终端设 备之间的模式控制电路会处于互相连通状态, 主机设备可以通过电信号的形式 向终端设备发送控制指令。 例如, 主机设备连着电源, 当模式选择开关处于闭 合状态时, 主机设备与终端设备之间的模式控制电路会处于互相连通状态。 此 时, 主机设备与终端设备之间的模式控制电路会由于电路接通而会有电流通过, 一些连结点上的电压相对于接地连结点上的电压会处于高电平状态, 即会产生 相应的电信号。此时,这些电信号可作为主机设备向终端设备发送的控制指令。
基于上述原理, 为了后续便于解释说明, 现以模式选择开关处于闭合状态 时, 确定终端设备的启动模式为强制加载启动模式为例。 参见图 10, 图中在左 边的为终端设备, 在中央的为主机设备, 在右边的为存储卡。 其中, 主机设备 左侧的接口为第一接口, 右侧的接口为第二接口, 终端设备侧的接口为第三接 口, 第一接口与第三接口相连, 实现终端设备与主机设备相连。 第二接口与存 储卡相连,实现主机设备与存储卡相连。此外,终端设备中含有 AP( Application Processor, 应用处理器), 该 AP可以为处理芯片, 处理芯片会有若干引出的管 脚。如图 10所示,处理芯片中引出的管脚包括 BOOT— MODE0、 BOOT— MODE1 及 BOOT— MODE2等。 当然, 实际情况中处理芯片引出的管脚可能不止图 10 中所示的管脚, 本实施例不对处理芯片的管脚数目作具体限定。 为了便于解释 说明,本发明实施例以四个启动模式控制管脚为例,即除了上述三个管脚之外, 还有一个 BOOT— MODE3 , 通过该四个管脚对启动模式进行控制。
其中, 可以通过 BOOT— MODE0、 BOOT— MODEL BOOT— MODE2 及 BOOT— MODE3这四个管脚的电平值来对启动模式进行控制, 具体控制方式详 见下表 1 :
表 1
BM[3] BM[2] BM[1] BM[0] 启动模式 启动地址
1 0 0 0 片外 NAND Flash启动 0x0000 0000 1 0 0 1 非安全 eMMC启动 OxFFFF 0000
1 0 1 0 非安全 USB启动 OxFFFF 0000
1 0 1 1 非安全 UART启动 OxFFFF 0000
1 1 0 0 非安全 E2RPOM启动 OxFFFF 0000 如表 1所示, 表 1中的启动模式有多种。 其中, 片外非易失性闪存 NAND ( Not AND ) Flash启动即为正常启动模式, 非安全 eMMC ( Embedded Multi Media Card, 内嵌式存储器)启动即为强制加载启动模式。 每种启动模式都有 相应的启动地址,该地址为启动时需要运行的代码在存储空间中的位置。另外, 表 1 中的 BM[3]即为 BOOT— MODE3 , BM[2]为 BOOT— MODE2 , BM[1]为 BOOT— MODE1 , BM[0]为 BOOT— MODE0。通过将这四个管脚设置成不同的电 平值, 能够控制终端设备的启动模式。
为了保证终端设备以强制加载启动模式或正常启动模式进行启动,在图 10 中, 将管脚 BOOT— MODE1与 BOOT— MODE2进行了接地, 保证这两个管脚 始终为低电平。 参见表 1 , 由于将 BOOT— MODE3始终设置为了高电平, 在管 脚 BOOT— MODE 1 与 BOOT— MODE2 都为低电平的基础上, 控制管脚 BOOT— MODE0的电平值即可让终端设备以强制加载启动模式或正常启动模式 进行启动。
在图 10 中, 终端设备与主机设备中的相关电路即为模式控制电路, 电路 中 VSS与 VDD分别为正负电极。终端设备通过接口插入到主机设备左侧的接 口插槽后, 若模式选择开关闭合, 则正极 VDD、 电感 Rl、 电感 R0与接地端 会形成一个闭合回路, 因此电感 R0的左侧连结点, 即管脚 BOOT— MODE0的 电平值会变为高电平。 结合表 1中的内容, 此时终端设备会以强制加载启动模 式, 进行启动。 因此, 当用户拨动模式选择开关至闭合状态后, 管脚 BOOT— MODE0的电平值会变为高电平, 相当于主机设备通过模式控制电路驱 动第一接口向终端设备发送了控制指令,控制指令为进入强制加载启动模式的 第一控制指令。 反之, 当用户拨动模式选择开关至断开状态后, 管脚
BOOT— MODE0的电平值会变为低电平, 相当于主机设备通过模式控制电路驱 动第二接口向终端设备发送了控制指令, 不过此时的控制指令为进入正常启动 模式的第二控制指令。
需要说明的是, 上述过程为了控制终端设备的启动模式, 通常会对终端设 备中的处理芯片额外附加启动管脚, 而终端设备中的处理芯片通常会有若干个 自带的管脚, 因此, 为了节省终端设备中的处理芯片的管脚资源, 可将终端设 备中的处理芯片自带的管脚中选择若干个管脚作为启动管脚。 对应地, 在本实 施例提供的方法中, 将终端设备中的处理芯片自带的管脚 BOOT— MODE0、 BOOT— MODE1及 BOOT— MODE2作为模式控制管脚, 即启动管脚, 通过自带 的管脚控制终端设备的启动模式,从而能够节省终端设备中的处理芯片的管脚 资源, 本实施例对此不作具体限定。
304: 终端设备接收主机设备发送的第一控制指令, 根据第一控制指令进 入强制加载启动模式;
终端设备在接收主机设备发送的第一控制指令时, 需要根据主机设备发送 第一控制指令进入强制加载启动模式。 例如, 当模式选择开关被拨动至闭合状 态后, 管脚 BOOT— MODE0为高电平, 主机设备通过控制主机设备侧的模式控 制电路驱动第一接口向终端设备发送第一控制指令后, 此时终端设备可通过终 端设备侧的模式控制电路驱动终端设备侧的第三接口接收主机设备发送的第 一控制指令, 进而根据第一控制指令进入强制加载启动模式。
其中, 强制加载启动模式表示终端设备通过连接的其它设备进行启动, 其 它设备中可存储有更新的操作系统程序, 因此, 终端设备可由更新的操作系统 程序进行控制并开始启动过程, 直至启动完毕。 在本发明实施例中, 终端设备 通过与主机设备的第二接口连接的存储卡中的程序数据以强制加载启动模式 进行启动。
305: 终端设备获取存储卡中的程序数据, 并根据获取的程序数据进行数 据更新;
通过上述步骤 304, 终端设备根据主机设备的控制进入强制加载启动模式 后, 可获取存储卡中的程序数据, 本实施例不对终端设备获取存储卡中的程序 数据的方式作具体限定,包括但不限于:预先在终端设备中设置第二主控制器, 在主机设备确定终端设备的启动模式为强制加载启动模式后, 由第二主控制器 控制终端设备获取存储卡中的程序数据。其中,第二主控制器中可以包括 SDIO ( Secure Digital Input and Output, 安全数码输入输出)接口、 DMA ( Direct Memory Access, 直接内存存取)接口、 时钟控制组件、 緩存控制组件、 命令 控制组件等, 本实施例不对两者的组成结构作具体限定。
需要说明的是, 当终端设备获取存储卡中的程序数据时, 终端设备相当于 主设备, 存储卡相当于从设备, 终端设备可通过第二主控制器向存储卡发送读 取数据命令, 从而读取存储卡中的程序数据。 对应地, 在正常启动模式下, 主 机设备相当于主设备, 终端设备及存储卡相当于从设备, 主机设备可以通过内 置的第一主控制器向终端设备或存储卡发送读取数据命令,从而读取终端设备 或存储卡中的数据。
另外, 关于终端设备根据获取到的程序数据进行数据更新的方式, 本实施 例对此不作具体限定, 包括但不限于: 将获取到的程序数据替换终端设备中 NAND存储的程序数据。 例如, 当需要对终端设备的操作系统进行更新时, 在 获取到存储卡中存储的操作系统映像文件后, 可将映像文件解压成更新的操作 系统数据, 将更新的操作系统数据替换终端设备中 NAND之前存储的操作系 统数据。 为了保证终端设备在程序数据更新的过程中处于通电状态, 主机设备 还可包括电源组件, 通过第一接口可提供电源给终端设备。
可选地, 通过上述步骤 301至步骤 305的方法在进行数据更新之后, 本实 施例还提供了一种对终端设备数据更新的过程及结果进行显示的方法, 具体详 见后续步骤。另外,主机设备为了对终端设备数据更新的过程及结果进行显示, 还可包括显示器件, 本实施例对此不作具体限定。 306: 终端设备向主机设备发送终端设备进行数据更新的过程数据; 该步骤为可选步骤, 本实施例不对终端设备向主机设备发送终端设备进行 数据更新的过程数据作具体限定,其中,过程数据包括但不限于时钟脉冲波形。 当终端设备向主机设备发送的数据更新的过程数据为时钟脉冲波形时, 主机设 备可以通过第一接口上的时钟 CLK管脚接收终端设备产生的时钟脉冲波形。 由于主机设备需要通过 GPIO ( General Purpose Input Output, 通用输入输出) 管脚来获取输入信号, 因此,可将主机设备中的 GPIO管脚与 CLK管脚共用, 本实施例对此不作具体限定。 此时, 主机设备通过 GPIO管脚能够获取终端设 备发送的时钟脉冲波形。
307: 主机设备接收终端设备发送的终端设备进行数据更新的过程数据, 并根据过程数据显示终端设备进行数据更新的过程;
为了对终端设备进行数据更新的过程进行显示, 主机设备可以包含显示器 件, 该显示器件可以根据终端设备发送的过程数据显示终端设备进行数据更新 的过程。 为了便于说明, 现以终端设备发送的过程数据为时钟脉冲波形为例。 关于主机设备根据过程数据显示终端设备进行数据更新的过程的方式, 本实施 例对此不作具体限定, 包括但不限于: 预先定义不同频率的波形对应的终端设 备进行数据更新的状态或结果; 确定接收到的每个波形对应的频率; 根据每个 波形对应的频率确定每个波形对应的终端设备进行数据更新的状态或结果; 根 据每个波形对应的终端设备进行数据更新的状态或结果控制显示器件的显示 方式, 显示器件以不同的显示方式表示终端设备进行数据更新的过程及结果。
其中, 显示器件可以为 LED ( Light Emitting Diode, 发光二极管)显示灯 等器件, 本实施例对此不作具体限定。
例如,预先定义三个频率的波形 ,分别为第一频率、第二频率及第三频率, 其中, 第一频率的波形代表终端设备处于正在进行数据更新的状态; 第二频率 的波形代表终端设备数据更新失败; 第三频率的波形代表终端设备数据更新成 功。 当显示器件为 LED显示灯时, 可预先定义三种显示方式, 第一种显示方 式为 LED显示灯闪烁, 代表终端设备处于正在进行数据更新的状态; 第二种 显示方式为 LED显示灯常亮, 代表终端设备数据更新成功; 第三种显示方式 为 LED显示灯常灭, 代表终端设备数据更新失败。
主机设备在接收到终端设备发送的一个波形后, 可确定该波形对应的频率 , 将该波形对应的频率分别与第一频率、 第二频率及第三频率进行比对, 确定与 哪个频率相同。 当该波形对应的频率与第一频率相同时, 可确定终端设备处于 正在进行数据更新的状态, 此时, LED显示灯闪烁。 当该波形对应的频率与第 二频率相同时, 可确定终端设备数据更新成功, 此时, LED显示灯常亮。 当该 波形对应的频率与第三频率相同时,可确定终端设备数据更新失败,此时, LED 显示灯常灭。
另外, 上述主机设备、 终端设备及存储卡之间的连接关系, 可参考图 7, 图中主机设备左侧接口为第一接口, 主机设备右侧接口为第二接口, 主机设备 通过第一接口与终端设备连接, 通过第二接口与存储卡连接。
需要说明的是, 终端设备进入强制加载启动模式的方法流程至此结束, 终 端设备进入正常启动模式的相关方法流程详见后续步骤。
308: 主机设备向终端设备发送控制终端设备进入正常启动模式的第二控 制指令;
本实施例不对设备向终端设备发送控制指令的方式作具体限定, 具体方法 过程可以参考上述步骤 303中的内容, 此处不再赘述。 需要说明的是, 此处的 控制指令为进入正常启动模式的第二控制指令。
309: 终端设备接收主机设备发送的第二控制指令, 并根据第二控制指令 进入正常启动模式;
本实施例不对终端设备接收主机设备发送的控制指令的方式作具体限定, 也不对终端设备进入正常启动模式的方式作具体限定, 具体方法过程可以参考 上述步骤 304中的内容, 此处不再赘述。
需要说明的是, 当终端设备按照正常启动模式启动后, 主机设备可以通过 第一接口正常读写终端设备中的数据,也可以通过第二接口正常读写存储卡中 的数据, 本实施例对此不作具体限定。 另外, 终端设备若包括无线通信组件, 则主机设备可以通过终端设备中的无线通信组件将自身存储的数据转发至网 络, 本实施例对此也不作具体限定。 关于主机设备通过终端设备中的无线通信 组件将自身存储的数据转发至网络的方式, 本实施例对此不作具体限定, 包括 但不限于: 预先在主机设备中设置第一主控制器, 在终端设备中设置第二从控 制器; 第一主控制器可向第二从控制器发送命令与数据, 第二从控制器接收到 命令与数据后, 将命令与数据转发至无线通信组件, 由无线通信组件根据命令 将数据转发至网络。 其中, 第一主控制器或第二从控制器中的组成结构可以参 考上述步骤 305中第二主控制器的组成结构, 本实施例不对两者的组成结构作 具体限定。
另外, 如图 10所示, 当 SW开关处于断开状态时, 由于正极 VDD、 电感 Rl、 电感 R0 与接地端不会形成一个闭合回路, 此时, 管脚 BOOT— MODE2 的电平值不会因主机设备与终端设备中的模式控制电路而改变, 即屏蔽了模式 控制电路的影响, 从而能够稳定地在正常启动模式下工作。
根据上述步骤可知, 根据不同启动模式下读写数据的需要, 终端设备中既 包括第二主控制器, 又包括第二从控制器, 而第二主控制器与第二从控制器都 需要与终端设备的控制芯片的管脚相连, 以获取或发送数据。 因此, 可以通过 某种方式来对管脚连接的控制器进行切换, 以保证在正常启动模式下, 终端设 备作为从设备, 由第二从控制器与存储卡进行交互; 在强制加载启动模式下, 终端设备作为主设备, 由第二主控制器与其它从设备进行交互, 本实施例对此 不作具体限定。 其中, 对管脚连接的控制器进行切换的方式包括但不限于: 预 先设置一个二级开关, 在不同的启动模式下, 通过二级开关使管脚连接不同控 制器, 本实施例对此也不作具体限定。
310: 终端设备读取内置的非易失性闪存中的数据, 根据读取的数据正常 启动。 系统等相关程序, 因此, 关于终端设备根据本地存储的程序数据进行启动的方 式, 本实施例对此不作具体限定, 包括但不限于: 在终端设备开机时, 自动执 行 bootloader, bootloader将操作系统程序加载到终端设备的内存中, 从而由操 作系统程序接管并且开始控制整个终端设备的启动过程, 直至启动完成。
本实施例提供的方法, 通过终端设备根据主机设备确定的启动模式进行启 动, 当终端设备的启动模式为强制加载启动模式时, 终端设备获取存储卡中的 程序数据, 并根据获取到的程序数据进行数据更新。 由于能够通过强制加载直 接对终端设备的程序数据进行更新, 而不用通过网络更新或者拆壳更新的方式, 因而能够提高数据更新的成功率。 图 4是本发明另一实施例提供的一种主机设备的结构示意图, 本发明另一 实施例提供了一种主机设备, 该主机设备用于执行上述图 1至图 3所示的实施 例中任一实施例中主机设备所执行的方法。 如图 4所示, 该主机设备包括: 第一接口 401、 第二接口 402、 处理器 403和用户输入模块 404。
其中, 第一接口 401连接终端设备, 第二接口 402连接存储卡, 存储卡中 存储有用于终端设备进行数据更新的程序数据;
用户输入模块 404, 用于接收用户输入的指令;
处理器 403 , 用于根据用户输入模块 404接收的用户的输入指令确定终端 设备的启动模式, 并向终端设备发送用于控制终端设备进入确定的启动模式的 控制指令; 若确定终端设备的启动模式为强制加载启动模式, 处理器 403发送 的控制指令为进入强制加载启动模式的第一控制指令, 强制加载启动模式为终 端设备获取存储卡中的程序数据, 并根据获取的程序数据进行数据更新的启动 模式。
作为一种可选实施例, 若确定终端设备的启动模式为正常启动模式, 处理 器 403发送的控制指令为进入正常启动模式的第二控制指令,正常启动模式为 终端设备通过内置的非易失性闪存正常启动的启动模式。
作为一种可选实施例, 参见图 5 , 主机设备还包括第一控制电路 405;
处理器 403 , 用于通过第一控制电路 405驱动第一接口 401向终端设备发 送用于控制终端设备进入确定的启动模式的控制指令。
作为一种可选实施例, 参见图 6, 该主机设备还包括显示器件 406;
第一接口 401 , 用于接收终端设备发送的终端设备进行数据更新的过程数 据;
显示器件 406 , 用于根据第一接口 401接收的过程数据显示终端设备进行 数据更新的过程。
本实施例提供的设备, 通过根据用户的输入指令确定终端设备的启动模式, 并向终端设备发送用于进入确定的启动模式的控制指令, 当终端设备的启动模 式为强制加载启动模式时, 则由终端设备获取存储卡中的程序数据, 并根据获 取到的程序数据进行数据更新。 由于能够通过强制加载直接对终端设备的程序 数据进行更新, 而不用通过网络更新或者拆壳更新的方式, 因而能够提高数据 更新的成功率。 图 7是本发明另一实施例提供的一种终端设备的结构示意图, 本发明另一 实施例提供了一种终端设备, 该终端设备用于执行上述图 1至图 3所示的实施 例中任一实施例中终端设备所执行的方法。 如图 7所示, 该终端设备包括: 处 理器 501和第一接口 502;
第一接口 502用于连接主机设备;
第一接口 502, 用于接收主机设备发送的控制指令, 控制指令用于控制终 处理器 501 , 用于当第一接口 502接收的控制指令为进入强制加载启动模 式的第一控制指令时, 根据第一控制指令进入强制加载启动模式; 获取存储卡 的程序数据; 根据获取的程序数据进行数据更新。 作为一种可选实施例, 处理器 501 , 用于当第一接口 502接收的控制指令 为进入正常启动模式的第二控制指令时,根据第二控制指令进入正常启动模式 , 正常启动模式为终端设备通过内置的非易失性闪存正常启动的启动模式。
作为一种可选实施例, 如图 8所示, 终端设备还包括第二控制电路 503 ; 处理器 501 , 用于通过第二控制电路 503驱动第一接口 502接收主机设备 发送的用于控制终端设备进入确定的启动模式的控制指令。
作为一种可选实施例, 第一接口 502, 还用于向主机设备发送进行数据更 新的过程数据,数据更新的过程数据用于主机设备显示终端设备进行数据更新 的过程。
本发明提供的设备, 通过根据主机设备确定的启动模式进行启动, 当启动 模式为强制加载启动模式时, 则获取存储卡中的程序数据, 并根据获取到的程 序数据进行数据更新。 由于能够通过强制加载直接进行程序数据的更新, 而不 用通过网络更新或者拆壳更新的方式, 因而能够提高数据更新的成功率。 图 9是本发明另一实施例提供的一种程序数据的更新系统的结构示意图, 本发明另一实施例提供了一种数据更新系统, 该系统用于执行上述图 1至图 3 所示的实施例中任一实施例提供的方法。 如图 9所示, 该系统包括:
主机设备 601、 终端设备 602及存储卡 603;
其中, 主机设备 601如上述实施例提供的主机设备, 具体详见上述实施例 中的内容, 此处不再赘述;
终端设备 602如上述实施例提供的终端设备, 具体详见上述实施例中的内 容, 此处不再赘述;
存储卡 603中存储有用于终端设备 602进行数据更新的程序数据, 且存储 卡 603与主机设备 601连接。 具体详见上述实施例中的内容, 此处不再赘述。
本实施例提供的系统, 通过终端设备根据主机设备确定的启动模式进行启 动, 当终端设备的启动模式为强制加载启动模式时, 终端设备获取存储卡中的 程序数据, 并根据获取到的程序数据进行数据更新。 由于能够通过强制加载直 接对终端设备的程序数据进行更新, 而不用通过网络更新或者拆壳更新的方式, 因而能够提高数据更新的成功率。 需要说明的是: 上述实施例提供的主机设备及终端设备在进行数据更新时, 仅以上述各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上 述功能分配由不同的功能模块完成, 即将设备的内部结构划分成不同的功能模 块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的主机设备、 终端设备与程序数据的更新方法实施例属于同一构思, 其具体实现过程详见方 法实施例, 这里不再赘述。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通 过硬件来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储 于一种计算机可读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘 或光盘等。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的 精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的 保护范围之内。

Claims

权 利 要 求 书
1、 一种程序数据的更新方法, 其特征在于, 所述方法应用于主机设备; 所述方法包括:
接收用户的输入指令;
根据所述用户的输入指令确定终端设备的启动模式, 并向所述终端设备发 送用于控制所述终端设备进入确定的启动模式的控制指令;
若确定所述终端设备的启动模式为强制加载启动模式, 则所述控制指令为 进入强制加载启动模式的第一控制指令, 所述强制加载启动模式为所述终端设 备获取存储卡中的程序数据, 并根据获取的程序数据进行数据更新的启动模式。
2、 根据权利要求 1所述的方法, 其特征在于, 所述终端设备的启动模式包 括强制加载启动模式和正常启动模式。
3、 根据权利要求 2所述的方法, 其特征在于, 若确定所述终端设备的启动 模式为正常启动模式, 则所述控制指令为进入正常启动模式的第二控制指令, 所述正常启动模式为所述终端设备读取内置的非易失性闪存中的数据, 根据读 取的数据正常启动的启动模式。
4、 根据权利要求 1至 3中任一权利要求所述的方法, 其特征在于, 所述向 所述终端设备发送用于控制所述终端设备进入确定的启动模式的控制指令之后, 还包括:
接收所述终端设备发送的进行数据更新的过程数据, 根据所述过程数据显 示所述终端设备进行数据更新的过程。
5、 一种程序数据的更新方法, 其特征在于, 所述方法应用于终端设备; 所述方法包括:
接收主机设备发送的控制指令, 所述控制指令用于控制所述终端设备进入 所述主机设备确定的所述终端设备的启动模式;
若所述控制指令为进入强制加载启动模式的第一控制指令, 则根据所述第 一控制指令进入强制加载启动模式;
获取存储卡中的程序数据, 并根据获取的程序数据进行数据更新。
6、 根据权利要求 5所述的方法, 其特征在于, 若所述控制指令为进入正常 启动模式的第二控制指令, 则根据所述第二控制指令进入正常启动模式;
读取内置的非易失性闪存中的数据, 根据读取的数据正常启动。
7、 根据权利要求 5或 6所述的方法, 其特征在于, 所述根据获取的程序数 据进行数据更新之后, 还包括:
向所述主机设备发送进行数据更新的过程数据, 所述数据更新的过程数据 用于所述主机设备显示所述终端设备进行数据更新的过程。
8、一种主机设备,其特征在于,所述主机设备包括用户输入模块、处理器、 第一接口和第二接口;
所述第一接口连接终端设备; 据更新的程序数据;
所述用户输入模块, 用于接收用户的输入指令;
所述处理器, 用于根据所述用户输入模块接收的用户的输入指令确定所述 终端设备的启动模式, 并向所述终端设备发送用于控制所述终端设备进入确定 的启动模式的控制指令; 若确定所述终端设备的启动模式为强制加载启动模式 , 所述处理器发送的控制指令为进入强制加载启动模式的第一控制指令, 所述强 制加载启动模式为所述终端设备获取所述存储卡中的程序数据, 并根据获取的 程序数据进行数据更新的启动模式。
9、 根据权利要求 8所述的主机设备, 其特征在于, 若确定所述终端设备的 启动模式为正常启动模式, 所述处理器发送的控制指令为进入正常启动模式的 第二控制指令, 所述正常启动模式为所述终端设备读取内置的非易失性闪存中 的数据, 根据读取的数据正常启动的启动模式。
10、 根据权利要求 8 所述的主机设备, 其特征在于, 所述主机设备还包括 第一控制电路;
所述处理器, 用于通过所述第一控制电路驱动所述第一接口向所述终端设 备发送用于控制所述终端设备进入确定的启动模式的控制指令。
11、 根据权利要求 8至 10中任一权利要求所述的主机设备, 其特征在于, 所述主机设备还包括显示器件; 的过程数据;
所述显示器件, 用于根据所述第一接口接收的过程数据显示所述终端设备 进行数据更新的过程。
12、 一种终端设备, 其特征在于, 所述终端设备包括处理器和第一接口; 所述第一接口用于连接主机设备;
所述第一接口, 用于接收所述主机设备发送的控制指令, 所述控制指令用 于控制所述终端设备进入所述主机设备确定的所述终端设备的启动模式;
所述处理器, 用于当所述第一接口接收的所述控制指令为进入强制加载启 动模式的第一控制指令时, 根据所述第一控制指令进入强制加载启动模式; 获 取存储卡的程序数据; 并根据获取的程序数据进行数据更新。
13、 根据权利要求 12所述的终端设备, 其特征在于, 所述处理器, 用于当 所述第一接口接收的所述控制指令为进入正常启动模式的第二控制指令时, 根 据所述第二控制指令进入正常启动模式, 所述正常启动模式为所述终端设备读 取内置的非易失性闪存中的数据, 根据读取的数据正常启动的启动模式。
14、 根据权利要求 12所述的终端设备, 其特征在于, 所述终端设备还包括 第二控制电路;
所述处理器, 用于通过所述第二控制电路驱动所述第一接口接收所述主机 设备发送的用于控制所述终端设备进入确定的启动模式的控制指令。
15、根据权利要求 12至 14中任一权利要求所述的终端设备,其特征在于, 述数据更新的过程数据用于所述主机设备显示所述终端设备进行数据更新的过 程。
PCT/CN2014/081027 2014-06-27 2014-06-27 程序数据的更新方法及设备 WO2015196479A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
EP14888557.7A EP3002701A4 (en) 2014-06-27 2014-06-27 METHOD AND DEVICE FOR UPDATING PROGRAM DATA
CN201480001780.XA CN104428751A (zh) 2014-06-27 2014-06-27 程序数据的更新方法及设备
JP2016528322A JP2016524771A (ja) 2014-06-27 2014-06-27 プログラムデータを更新する方法及びデバイス
PCT/CN2014/081027 WO2015196479A1 (zh) 2014-06-27 2014-06-27 程序数据的更新方法及设备
US14/961,970 US20160092201A1 (en) 2014-06-27 2015-12-08 Method and Device for Updating Program Data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/081027 WO2015196479A1 (zh) 2014-06-27 2014-06-27 程序数据的更新方法及设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/961,970 Continuation US20160092201A1 (en) 2014-06-27 2015-12-08 Method and Device for Updating Program Data

Publications (1)

Publication Number Publication Date
WO2015196479A1 true WO2015196479A1 (zh) 2015-12-30

Family

ID=52975441

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081027 WO2015196479A1 (zh) 2014-06-27 2014-06-27 程序数据的更新方法及设备

Country Status (5)

Country Link
US (1) US20160092201A1 (zh)
EP (1) EP3002701A4 (zh)
JP (1) JP2016524771A (zh)
CN (1) CN104428751A (zh)
WO (1) WO2015196479A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775847B (zh) * 2016-12-01 2020-12-29 广州视源电子科技股份有限公司 一种板卡软件版本更新方法及装置
CN108459879B (zh) * 2018-01-17 2021-08-17 宇龙计算机通信科技(深圳)有限公司 一种防止终端死机的方法、终端
CN108287671A (zh) * 2018-04-10 2018-07-17 南京扬贺扬微电子科技有限公司 一种具有boot功能的SD卡及其制卡方法
CN109255601B (zh) * 2018-08-31 2022-12-27 北京小米移动软件有限公司 终端公交卡的处理方法及装置
CN114730265A (zh) * 2020-10-29 2022-07-08 华为技术有限公司 一种电子设备及进入强制加载模式的方法
CN114528557A (zh) * 2022-02-28 2022-05-24 合肥中科爱观电子技术有限公司 一种嵌入式soc芯片自适应启动方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232294A (zh) * 2007-01-25 2008-07-30 乐金电子(昆山)电脑有限公司 远程信息处理终端机及在其上更新音频固件的方法
US20100058312A1 (en) * 2008-07-31 2010-03-04 Kabushiki Kaisha Toshiba Content Data Providing System, Content Providing Apparatus and Content Data Processing Terminal
JP2012164103A (ja) * 2011-02-07 2012-08-30 Yokogawa Electric Corp 情報処理装置
CN103164644A (zh) * 2011-12-19 2013-06-19 联想(北京)有限公司 终端设备及其开机控制方法
CN103347095A (zh) * 2013-07-22 2013-10-09 广州市交通信息中心 一种车联网系统中的无线固件更新方法

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000311087A (ja) * 1999-04-28 2000-11-07 Matsushita Electric Ind Co Ltd データ伝送装置
JP3545659B2 (ja) * 1999-10-21 2004-07-21 松下電器産業株式会社 プログラム更新方法および通信端末装置
US20060075395A1 (en) * 2004-10-01 2006-04-06 Lee Charles C Flash card system
JP2001216464A (ja) * 2000-01-31 2001-08-10 Nobutaka Kuwabara バーコード
JP4908665B2 (ja) * 2000-02-02 2012-04-04 キヤノン株式会社 プロセッサシステム及びその起動方法
US7320126B2 (en) * 2001-11-06 2008-01-15 Sandisk Corporation Implementation of in system programming to update firmware on memory cards
TWI316184B (en) * 2006-08-03 2009-10-21 Etron Technology Inc Programmable system-chip device and method of programming firmware
JP2008046708A (ja) * 2006-08-11 2008-02-28 Sharp Corp データ処理装置、プログラム管理装置、制御プログラム更新方法、プログラム管理方法、プログラム管理システム、更新プログラムおよび記録媒体
JP2010061367A (ja) * 2008-09-03 2010-03-18 Sony Corp リーダライタ、プログラム更新方法、通信システムおよび通信方法
EP2439643A1 (en) * 2009-06-05 2012-04-11 Sharp Kabushiki Kaisha Software updating system, electronic devices, and software updating method
JP2013077171A (ja) * 2011-09-30 2013-04-25 Seiko Epson Corp 集積回路装置、処理システム、電子機器、及び集積回路装置のモード切替方法
US20150212806A1 (en) * 2014-01-29 2015-07-30 Transcend Information, Inc. Initialization method and initializaion system for storage device
KR20150100075A (ko) * 2014-02-24 2015-09-02 삼성전자주식회사 메모리 및 컨트롤러를 포함하는 메모리 장치의 펌웨어를 업데이트하는 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232294A (zh) * 2007-01-25 2008-07-30 乐金电子(昆山)电脑有限公司 远程信息处理终端机及在其上更新音频固件的方法
US20100058312A1 (en) * 2008-07-31 2010-03-04 Kabushiki Kaisha Toshiba Content Data Providing System, Content Providing Apparatus and Content Data Processing Terminal
JP2012164103A (ja) * 2011-02-07 2012-08-30 Yokogawa Electric Corp 情報処理装置
CN103164644A (zh) * 2011-12-19 2013-06-19 联想(北京)有限公司 终端设备及其开机控制方法
CN103347095A (zh) * 2013-07-22 2013-10-09 广州市交通信息中心 一种车联网系统中的无线固件更新方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3002701A4 *

Also Published As

Publication number Publication date
EP3002701A1 (en) 2016-04-06
CN104428751A (zh) 2015-03-18
JP2016524771A (ja) 2016-08-18
EP3002701A4 (en) 2016-10-05
US20160092201A1 (en) 2016-03-31

Similar Documents

Publication Publication Date Title
WO2015196479A1 (zh) 程序数据的更新方法及设备
US9563442B2 (en) Baseboard management controller and method of loading firmware
JP5065297B2 (ja) Mmc/sdデバイスからホストデバイスをブートする方法,mmc/sdデバイスからブート可能なホストデバイス及びホストデバイスをブートできるmmc/sdデバイス
US11113226B2 (en) Firmware burning apparatus and system
US20170168849A1 (en) Computer Device and Memory Startup Method of Computer Device
US7822964B2 (en) Booting apparatus for booting a computer and method therefor and computer with a booting apparatus
US20100064036A1 (en) Peripheral device operation method, peripheral device and host
TWI598815B (zh) 用以供更新基本輸入輸出系統之橋接模組及其更新方法
WO2021136200A1 (zh) 引导程序的加载方法、存储介质及嵌入式终端
CN102945173A (zh) 用户程序在线升级系统和升级方法
WO2018054060A1 (zh) 一种处理器及BootLoader程序的更新方法、存储介质
US9542196B2 (en) Communication terminal and method for providing configuration data for a modem with system boot firmware
US20190079558A1 (en) Docking device, electrical device, and mac address cloning method
US20160050335A1 (en) Information processing apparatus, and control method of information processing apparatus
WO2024103829A1 (zh) 一种端口配置方法、组件及硬盘扩展装置
WO2019203797A1 (en) Firmware setup menu options for docking stations
US10115375B2 (en) Systems and methods for enabling a systems management interface with an alternate frame buffer
JP2013513874A (ja) データカードのアップグレーディング方法およびデバイス
CN108052337A (zh) 一种eMMC量产工具的固件升级方法及装置
US20130061030A1 (en) System capable of booting through a universal serial bus device and method thereof
TWM440483U (en) System external BIOS booting, bridge device and integrated chipset
TWI486790B (zh) 電腦系統以及電腦啟動設定方法
WO2016078222A1 (zh) 引导程序传输方法、嵌入式系统及引导程序传输系统
JP6364819B2 (ja) 情報処理装置、情報処理システム、起動制御方法及びプログラム
TWI567566B (zh) 電子裝置

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2014888557

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016528322

Country of ref document: JP

Kind code of ref document: A

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

Ref document number: 14888557

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE