WO2018076969A1 - 软件升级方法、计算设备及通道控制设备 - Google Patents

软件升级方法、计算设备及通道控制设备 Download PDF

Info

Publication number
WO2018076969A1
WO2018076969A1 PCT/CN2017/102510 CN2017102510W WO2018076969A1 WO 2018076969 A1 WO2018076969 A1 WO 2018076969A1 CN 2017102510 W CN2017102510 W CN 2017102510W WO 2018076969 A1 WO2018076969 A1 WO 2018076969A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
instruction
channel control
software
upgrade
Prior art date
Application number
PCT/CN2017/102510
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 深圳创维数字技术有限公司
Publication of WO2018076969A1 publication Critical patent/WO2018076969A1/zh

Links

Images

Classifications

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

Definitions

  • the present disclosure relates to the field of communication technologies, for example, to software upgrade methods, computing devices, and channel control devices.
  • the software upgrade methods usually include Over-the-Air Technology (OTA) upgrade and Internet Protocol (IP) upgrade.
  • OTA Over-the-Air Technology
  • IP Internet Protocol
  • UART Universal Asynchronous Receiver/Transmitter
  • USB Universal Serial Bus
  • the specified files are generally upgraded one by one according to requirements. Users need to manually operate according to requirements, which is time consuming, and the workload of software upgrades involved by users is relatively large.
  • the present disclosure provides a software upgrade method, a computing device, and a channel control device, which can automatically switch between a storage medium and a computing device, a storage medium, and an electronic device to be upgraded by using a channel switching device, thereby realizing automation of software upgrade and reducing The amount of work involved in software upgrades for users.
  • the present disclosure provides a software upgrade method, which is applied to a computing device, the computing device is in communication connection with a channel control device, the channel control device is in communication connection with a storage medium, and the channel control device is also connected through a universal serial bus USB interface.
  • the communication connection with the electronic device to be upgraded by the software may include:
  • the step of sending the software upgrade file of the electronic device to the storage medium includes:
  • the method further includes:
  • Determining whether the entire upgrade process of the electronic device is completed, and if not, returning to executing the sending the first instruction to the channel control device, so that the channel control device establishes the computing device and the storage according to the first instruction The steps of the data transfer channel between the media.
  • the method further includes: if yes, controlling the electronic device to enter a user interface.
  • the method further includes:
  • the step of determining whether the entire upgrade process of the electronic device is completed further includes: determining, according to the upgrade result, whether the entire upgrade process of the electronic device is completed.
  • the computing device communicates with the channel control device and the electronic device by using a preset protocol, where the preset protocol includes at least one of a Transmission Control Protocol (TCP) and a UART protocol.
  • TCP Transmission Control Protocol
  • UART UART protocol
  • the channel control device is respectively connected to the computing device, the electronic device, and the storage medium through a USB line.
  • the sending the second instruction to the channel control device to enable the channel control device to establish a USB transmission channel between the electronic device and the storage medium according to the second instruction include:
  • NVRAM Non-Volatile Random Access Memory
  • the method further includes:
  • the method further includes:
  • the storage medium is a USB flash drive.
  • the present disclosure also provides a computing device, the computing device comprising:
  • a first channel control module configured to send a first instruction to the channel control device, to enable the channel control device to establish data between the computing device and the storage medium according to the first instruction Transmission channel
  • a sending module configured to send, by using the data transmission channel, a software upgrade file of the electronic device to the storage medium, where the software upgrade file includes a configuration file for upgrading the software
  • a second channel control module configured to send a second instruction to the channel control device, so that the channel control device establishes a USB transmission channel between the electronic device and the storage medium according to the second instruction, to And causing the electronic device to perform software upgrade by using the software upgrade file through the USB transmission channel.
  • the sending module is configured to: detect a current upgrade phase of software of the electronic device; and send a software upgrade file corresponding to the current upgrade phase to the storage according to the current upgrade phase medium.
  • the computing device further includes: a determining module, configured to determine, after the step of sending the second instruction to the channel control device, whether the entire upgrade process of the electronic device is completed; if the determining module determines If the entire upgrade process is not completed, the first channel control module sends a first instruction to the channel control device, so that the channel control device establishes between the computing device and the storage medium according to the first instruction. Data transmission channel.
  • a determining module configured to determine, after the step of sending the second instruction to the channel control device, whether the entire upgrade process of the electronic device is completed; if the determining module determines If the entire upgrade process is not completed, the first channel control module sends a first instruction to the channel control device, so that the channel control device establishes between the computing device and the storage medium according to the first instruction. Data transmission channel.
  • the present disclosure also provides a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • the present disclosure also provides a computing device including one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory, when executed by one or more processors , perform any of the above methods.
  • the present disclosure also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, Having the computer perform any of the methods described above.
  • the present disclosure can switch the storage medium to the electronic product to be upgraded by the software and the channel between the storage medium and the computing device by means of the channel switching device, and the computing device can modify the storage medium during the process of upgrading the software of the electronic device. Upgrade files to automate the upgrade of electronic device software and reduce the workload of software upgrades involving users.
  • FIG. 1 is a schematic flowchart of a software upgrade method according to an embodiment.
  • FIG. 2 is a schematic flowchart diagram of another software upgrade method according to an embodiment.
  • FIG. 3 is a schematic structural diagram of a computing device according to an embodiment.
  • FIG. 4 is a schematic structural diagram of another computing device according to an embodiment.
  • FIG. 5 is a schematic diagram of communication between a personal computer and a USB channel control device and a test product according to an embodiment.
  • FIG. 6 is a schematic diagram of a connection relationship between a USB channel control device, a personal computer, a test product, and a USB flash drive according to an embodiment.
  • FIG. 7 is a schematic flowchart diagram of still another software upgrade method according to an embodiment.
  • FIG. 8 is a schematic structural diagram of a channel control device according to an embodiment.
  • FIG. 9 is a schematic diagram of a connection relationship between a computing device, a channel control device, a storage medium, and an electronic device to be upgraded by software according to an embodiment.
  • FIG. 10 is a schematic structural diagram of hardware of a computing device according to an embodiment.
  • FIG. 1 is a schematic flowchart of a software upgrade method provided by this embodiment.
  • the method can be applied to the computing device 10, as shown in FIG. 9, the computing device 10 is in communication with the channel control device 20, The channel control device 20 is communicatively coupled to the storage medium 30.
  • the channel control device 20 is also communicatively coupled to the electronic device 40 to be upgraded by the software via a universal serial bus USB interface.
  • the method may include the step 110. - Step 130:
  • step 110 a first instruction is sent to the channel control device to cause the channel control device to establish a data transmission channel between the computing device and the storage medium according to the first instruction.
  • the computing device may be a personal computer
  • the channel control device may be a USB channel control device
  • the electronic device to be upgraded by the software may be a product to be tested
  • the storage medium may be a USB disk, as shown in FIG. 5, the individual
  • the computer 510 can communicate with the USB channel control device 520 and the test product 530 via at least one of a TCP and a UART protocol, respectively.
  • the USB channel control device 520 can be connected to the personal computer 510, the test product 530, and the USB flash drive 540 through a USB cable.
  • the method further includes: sending an instruction to erase the non-volatile random access memory to the test product to erase the NVRAM data of the test product.
  • the personal computer can send an instruction to erase the NVRAM to the test product to erase the NVRAM data of the test product, and then perform subsequent operations on the test product. Before the personal computer sends the command to erase the NVRAM to the test product, connect the communication line between the personal computer, the test product and the USB flash drive, and connect the USB channel between the USB channel control device and the personal computer, the test product and the USB flash drive to ensure the USB cable.
  • the connection between the personal computer, test product, U disk, and USB channel control device is normal.
  • the personal computer can send an instruction to open a channel between the personal computer and the USB flash drive, that is, the first instruction described above, to the USB channel control device to control the device between the personal computer and the USB flash drive through the USB channel.
  • the data transmission channel, and then the personal computer can communicate with the U disk to control the operation of the U disk.
  • step 120 sending a software upgrade text of the electronic device through the data transmission channel And to the storage medium, wherein the software upgrade file includes a configuration file for upgrading the software.
  • the computer sends an upgrade file for upgrading the software to be upgraded in the test product to the USB flash drive
  • the upgrade file may include a related configuration file; if the related configuration file is not set in the upgrade file, the personal computer and the USB flash drive After the connection, the personal computer sends the corresponding upgrade file to the U disk, and then sets the relevant configuration file in the U disk.
  • step 130 a second instruction is sent to the channel control device, so that the channel control device establishes a USB transmission channel between the electronic device and the storage medium according to the second instruction, so that the The electronic device uses the software upgrade file to perform software upgrade through the USB transmission channel.
  • the personal computer sends an instruction to open a channel between the test product and the USB flash drive, that is, the second instruction described above, to the USB channel control device to open the USB transmission channel between the test product and the USB flash drive through the USB channel control device.
  • the personal computer sends the corresponding upgrade file to the USB flash drive, and after setting the configuration file, the command for opening the channel between the test product and the USB flash drive can be sent to the USB channel control device, so that the USB channel control device opens the test product and the USB flash drive.
  • the channel is so that the test product can use the upgrade files and configuration files in the USB flash drive for USB upgrade.
  • the method further includes: sending an upgrade instruction to the electronic device, so that the electronic device passes the USB transmission channel according to the upgrade instruction
  • the software upgrade file is used to perform software upgrade.
  • the personal computer sends an instruction to upgrade the software for upgrading the test product to the test product, so that the test product is upgraded through the USB transmission channel and using the upgrade file and configuration file in the U disk.
  • USB flash drive When upgrading a software for an electronic device through a USB flash drive, the USB flash drive is usually connected to the personal computer. Copy the upgrade file and modify the related configuration file. Then manually connect the USB disk to the electronic device, that is, test the product. Enter the upgrade interface according to the operation of the test product, and upgrade it. Manually, the test personnel need to perform manual operation. The process of connecting the USB flash drive to the computer and the electronic device needs to be manually repeated, the user workload is large, and the upgrade efficiency is low.
  • the storage medium and the computing device are switched, and the channel between the storage medium and the electronic device to be upgraded by the software is upgraded.
  • the computing device may also modify the upgrade file in the storage medium. Upgrade the corresponding configuration file to automate the software upgrade, reduce the workload of software upgrades involved by the user, and improve the test efficiency and ensure the quality of related electronic products during software testing.
  • the method further includes:
  • FIG. 2 is a schematic flowchart of another method for software upgrade provided by this embodiment. As shown in FIG. 2, the method may include the steps of:
  • a first instruction is sent to the channel control device to cause the channel control device to establish a data transmission channel between the computing device and the storage medium according to the first instruction.
  • step 220 a current upgrade phase of the software of the electronic device is detected.
  • the personal computer determines the current upgrade phase
  • the corresponding upgrade file of the current upgrade phase is sent to the USB flash drive and the configuration file is set. Because some software upgrades of test products are divided into several stages, different upgrade stages use different upgrade files, and different configuration files, so the personal computer determines the current upgrade stage of the software to be upgraded, and sends the upgrade file corresponding to the current upgrade stage.
  • the configuration file is a file set in the U disk, modify the configuration file in the U disk to the configuration file corresponding to the current upgrade phase.
  • a second instruction is sent to the channel control device to cause the channel control device to establish a USB transmission channel between the electronic device and the storage medium according to the second instruction.
  • step 240 an upgrade instruction is sent to the electronic device, so that the electronic device performs software upgrade using the software upgrade file through the USB transmission channel according to the upgrade instruction.
  • the personal computer sends a USB upgrade command to the test product, and the test product uses the upgrade file and configuration file in the U disk for software upgrade. After the software upgrade in this upgrade phase is completed, proceed to step 250.
  • step 250 it is determined whether the entire upgrade process of the electronic device is completed. If no, go back to step 210, and if yes, go to step 260.
  • step 210 send an instruction to open a channel between the personal computer and the USB flash drive.
  • the USB channel control device is used to open the data transmission channel between the terminal and the USB disk through the USB channel control device, and enter the software upgrade process of the next upgrade phase to form a loop until the entire upgrade process of the test product is completed, to the software. More test products in the upgrade phase can greatly reduce the tester's work intensity and improve the test efficiency of software testing.
  • step 260 the electronic device can be controlled to enter the user interface.
  • the test product is controlled to enter the user interface.
  • step 250 before determining whether the entire upgrade process of the test product is completed, The method further includes: receiving an upgrade result fed back by the electronic device.
  • the determining whether the entire upgrade process of the test product is completed is as follows: determining whether the entire upgrade process of the electronic device is completed according to the upgrade result.
  • the computing device may query the software upgrade result of the electronic device according to the preset query period. If the current phase is upgraded, determine whether the entire upgrade process of the electronic device is completed.
  • the personal computer test software cannot automatically modify the upgrade file and the configuration file in the U disk according to the current upgrade phase of the software to be upgraded, so that the problem of automatic testing of the software cannot be realized by using the USB channel.
  • Switching devices, switching U disk and personal computer, U disk and test product channel, in the software upgrade process the personal computer can automatically modify the U disk upgrade file and related configuration files, thus achieving automation of software upgrades, reducing users
  • the workload of software upgrades involved can also improve the efficiency of software testing and improve the quality of related electronic products during software testing.
  • the embodiment of the present invention further provides a computing device, which can perform the software upgrade method provided by the foregoing embodiment.
  • a computing device which can perform the software upgrade method provided by the foregoing embodiment.
  • the description of the embodiment of the computing device refer to the embodiment of the software upgrade method.
  • FIG. 3 is a structural block diagram of a computing device provided by this embodiment. As shown in FIG. 3, the computing device can include:
  • the first channel control module 310 is configured to send a first instruction to the channel control device, so that the channel control device establishes a data transmission channel between the computing device and the storage medium according to the first instruction;
  • the sending module 320 is configured to send, by using the data transmission channel, a software upgrade file of the electronic device to the storage medium, where the software upgrade file includes a configuration file for upgrading the software;
  • the second channel control module 330 is configured to send a second instruction to the channel control device, so that the channel control device establishes between the electronic device and the storage medium according to the second instruction a USB transmission channel for causing the electronic device to perform software upgrade using the software upgrade file through the USB transmission channel.
  • the computing device can be a personal computer
  • the channel control device can be called a USB channel control device
  • the storage medium can be a USB flash drive
  • the electronic device to be upgraded by the software can be a test product
  • the personal computer can pass at least one of a TCP and a UART protocol.
  • the protocol communicates with the channel control device and the test product respectively.
  • the USB channel control device is respectively connected to the personal computer, the test product, and the USB disk through a USB cable.
  • the personal computer can modify the U disk upgrade file and related configuration files to realize the software upgrade automation. To reduce the workload of software upgrades involving users, and to improve the efficiency of software testing and improve the quality of electronic products during software testing.
  • the computing device may further include:
  • the erasing module 410 is configured to send a second instruction to the channel control device, so that the channel control device establishes a USB transmission channel between the electronic device and the storage medium according to the second instruction Previously, an instruction to erase the NVRAM was sent to the electronic device to erase the NVRAM data of the electronic device.
  • the computing device may further include: a query module 420, configured to, after the erasing module 410 sends an instruction to erase the NVRAM to the electronic device, to erase the NVRAM data of the electronic device, query the NVRAM of the electronic device according to a preset period. Whether the data is successfully erased, if the query module queries that the NVRAM data of the electronic device is erased successfully, the first channel control module 310 is turned on.
  • a query module 420 configured to, after the erasing module 410 sends an instruction to erase the NVRAM to the electronic device, to erase the NVRAM data of the electronic device, query the NVRAM of the electronic device according to a preset period. Whether the data is successfully erased, if the query module queries that the NVRAM data of the electronic device is erased successfully, the first channel control module 310 is turned on.
  • the sending module 320 is configured to: detect a current upgrade phase of the software of the electronic device; and send a software upgrade file corresponding to the current upgrade phase to the storage medium according to the current upgrade phase.
  • the computing device may further include a determining module 430 configured to determine whether the entire upgrade process of the electronic device is completed after the step of sending the second instruction to the channel control device; and determining, by the determining module, the entire upgrade process
  • the first channel control module 310 sends a first instruction to the channel control device, so that the channel control device establishes between the computing device and the storage medium according to the first instruction. Data transmission channel.
  • the computing device may further include: a user interface entry module 440, configured to control the test product to enter the user interface when the determining module 430 determines that the entire upgrade process is completed.
  • a user interface entry module 440 configured to control the test product to enter the user interface when the determining module 430 determines that the entire upgrade process is completed.
  • the computing device may further include: an upgrade result receiving module 450, configured to receive an upgrade result fed back by the electronic device.
  • the determining module 430 is further configured to determine whether the entire upgrade process of the electronic device is completed according to the upgrade result.
  • This embodiment further provides another software upgrade method, which can be applied to the channel control device 20.
  • the channel control device 20 is communicably connected to the computing device 10 and the storage medium 30, respectively, and the channel control device 20 also passes through the USB interface.
  • the method may include steps 710-740.
  • step 710 a first instruction sent by the computing device is received.
  • step 720 a data transmission channel between the computing device and the storage medium is established according to the first instruction, so that the computing device sends a software upgrade file of the electronic device through the data transmission channel.
  • the software upgrade file includes a configuration file for upgrading the software.
  • step 730 a second instruction sent by the computing device is received.
  • step 740 a USB transmission channel between the electronic device and the storage medium is established according to the second instruction, so that the electronic device uses the software upgrade file to perform software upgrade through the USB transmission channel.
  • the channel control device receives the first instruction from the computing device, establishes a data transmission channel between the computing device and the storage medium, and the computing device sends a software upgrade file to the storage device, and then the channel control device receives the data transmission sent by the computing device.
  • a second instruction establishing a USB transmission channel between the electronic device and the storage medium, and the electronic device calls the software upgrade file from the storage medium to perform software upgrade through the USB transmission channel.
  • the method further includes: detecting, by the computing device, that the electronic device has not completed the entire upgrade In the process, returning to the step of receiving the first instruction sent by the computing device.
  • the channel control device continues to receive the first instruction sent by the computing device, and establishes the electronic device and the storage according to the first instruction.
  • the embodiment further provides a channel control device, wherein the channel control device is respectively connected to the computing device and the storage medium, and the channel control is further connected to the electronic device to be upgraded by the software through the USB interface, as shown in FIG.
  • the channel control device includes:
  • the first receiving module 810 is configured to receive the first instruction sent by the computing device.
  • a first channel establishing module 820 configured to establish a data transmission channel between the computing device and the storage medium according to the first instruction, so that the computing device sends the electronic device through the data transmission channel
  • Software upgrade file to the storage medium includes a configuration file for upgrading the software.
  • the second receiving module 830 is configured to receive a second instruction sent by the computing device.
  • a second channel establishing module 840 configured to establish a USB transmission channel between the electronic device and the storage medium according to the second instruction, so that the electronic device passes through the USB transmission channel Use the software upgrade file to upgrade the software.
  • the first receiving module 810 is further configured to: when the computing device detects that the electronic device does not complete the entire upgrade process, continue to receive the first instruction sent by the computing device.
  • the computing device such as a personal computer, can solve the problem that the personal computer cannot modify the upgrade file and the configuration file in the U disk during the software upgrade process, thereby failing to implement the software automatic test problem, and switching the device by using the USB channel.
  • U disk and personal computer, U disk and test product channel, during the software upgrade process the personal computer can modify the U disk upgrade file and configuration file, can achieve automation of software upgrades, reduce the workload of software upgrades involving users It can also improve the testing efficiency during software testing and improve the quality of electronic products.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for performing any of the above methods.
  • FIG. 10 it is a schematic diagram of a hardware structure of a computing device provided by this embodiment.
  • the computing device includes: a processor 910 and a memory 920. (Communications Interface) 930 and bus 940.
  • a processor 910 and a memory 920.
  • (Communications Interface) 930 and bus 940.
  • the processor 910, the memory 920, and the communication interface 930 can complete communication with each other through the bus 940.
  • Communication interface 930 can be used for information transfer.
  • Processor 910 can invoke logic instructions in memory 920 to perform any of the methods of the above-described embodiments.
  • the memory 920 can include a storage program area and a storage data area, and the storage program area can store an operating system and an application required for at least one function.
  • the storage data area can store data and the like created according to the use of the computing device.
  • the memory may include, for example, a volatile memory of a random access memory, and may also include a non-volatile memory. For example, at least one disk storage device, flash memory device, or other non-transitory solid state storage device.
  • the logic instructions in the above memory 920 can be implemented in the form of software functional units. And when sold or used as a standalone product, the logic instructions can be stored in a computer readable storage medium.
  • the technical solution of the present disclosure may be embodied in the form of a computer software product, which may be stored in a storage medium, and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) All or part of the steps of the method described in this embodiment are performed.
  • the storage medium may be a non-transitory storage medium or a transitory storage medium.
  • the non-transitory storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
  • All or part of the processes in the foregoing embodiment may be completed by a computer program indicating related hardware, and the program may be stored in a non-transitory computer readable storage medium, and when the program is executed, may include the above The flow of an embodiment of the method.
  • the present disclosure provides a software upgrade method, a computing device, and a channel control device, which can automatically switch between a storage medium and a computing device, a storage medium, and an electronic device to be upgraded by using a channel switching device, thereby realizing automation of software upgrade and reducing Testers' workloads improve the efficiency of software testing.

Landscapes

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

Abstract

软件升级方法、计算设备及通道控制设备。该方法可以包括发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道;通过所述数据传输通道,发送所述电子设备的软件升级文件到所述存储介质,所述软件升级文件包括对软件进行升级的配置文件;发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道,以使所述电子设备通过所述USB传输通道,利用所述软件升级文件进行软件升级。

Description

软件升级方法、计算设备及通道控制设备 技术领域
本公开涉及通信技术领域,例如涉及软件升级方法、计算设备及通道控制设备。
背景技术
电子产品通常要进行软件升级来修复软件的一些问题或者获取新的软件功能,软件升级的方式通常有空中下载技术(Over-the-Air Technology,OTA)升级、互联网协议(Internet Protocol,IP)升级、通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)升级和通用串行总线(Universal Serial Bus,USB)升级等。电子产品的软件升级的稳定性十分重要,USB升级作为一种重要的软件升级方式,通常被广大用户和开发者作为首选的软件升级方式,并被大量应用在电子产品的研发、生产和售后使用阶段。
相关的电子产品的软件升级过程中,一般逐个按照要求升级指定的文件,用户需要按照要求手动操作,比较耗费时间,用户涉及的软件升级的工作量也比较大。
发明内容
本公开提供了软件升级方法、计算设备及通道控制设备,可以通过借助通道切换设备,自动切换存储介质与计算设备、存储介质与待软件升级的电子设备的通道,可以实现软件升级的自动化,减少用户涉及的软件升级的工作量。
本公开提供了一种软件升级方法,应用于计算设备,所述计算设备与通道控制设备通信连接,所述通道控制设备与存储介质通信连接,所述通道控制设备还通过通用串行总线USB接口与待软件升级的电子设备通信连接,可以包括:
发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道;
通过所述数据传输通道,发送所述电子设备的软件升级文件到所述存储介质,所述软件升级文件包括对软件进行升级的配置文件;
发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道,以使所述电子设备通过所述USB传输通道,利用所述软件升级文件进行软件升级。可选地,所述发送所述电子设备的软件升级文件到所述存储介质的步骤包括:
检测所述电子设备的软件的当前的升级阶段;
根据所述当前的升级阶段,发送与所述当前的升级阶段对应的软件升级文件到所述存储介质。
可选地,所述发送第二指令给所述通道控制设备的步骤之后还包括:
判断所述电子设备的整个升级过程是否完成,若否,返回执行所述发送第一指令给通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道的步骤。
可选地,所述判断所述电子设备的整个升级过程是否完成的步骤之后还包括:若是,则控制所述电子设备进入用户界面。
可选地,其中,所述判断所述电子设备的整个升级过程是否完成的步骤之前,还包括:
接收所述电子设备反馈的升级结果;
所述判断所述电子设备的整个升级过程是否完成的步骤还包括:根据所述升级结果判断所述电子设备的整个升级过程是否完成。
可选地,所述计算设备通过预设协议分别与所述通道控制设备和所述电子设备进行通讯,其中所述预设协议包括传输控制协议(Transmission Control Protocol,TCP)和UART协议中的至少一个。
可选地,所述通道控制设备通过USB线分别与所述计算设备、所述电子设备和所述存储介质连接。
可选地,所述发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道的步骤之前还包括:
发送擦除非易失性随机访问存储器(Non-Volatile Random Access Memory,NVRAM)的指令给所述电子设备,以擦除所述电子设备的NVRAM数据。
可选地,所述发送擦除NVRAM的指令给所述电子设备,以擦除所述电子设备的NVRAM数据的步骤之后,还包括:
按预置周期查询所述电子设备的NVRAM数据是否擦除成功,若是,则继续执行所述发送第一指令给所述通道控制设备的步骤。
可选地,所述发送第二指令给所述通道控制设备的步骤之后,还包括:
发送升级指令给所述电子设备,以使所述电子设备根据所述升级指令,通过所述USB传输通道,利用所述软件升级文件进行软件升级。
可选地,所述存储介质为U盘。
本公开还提供一种计算设备,该计算设备包括:
第一通道控制模块,设置为发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据 传输通道;
发送模块,设置为通过所述数据传输通道,发送所述电子设备的软件升级文件到所述存储介质,所述软件升级文件包括对软件进行升级的配置文件;
第二通道控制模块,设置为发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道,以使所述电子设备通过所述USB传输通道,利用所述软件升级文件进行软件升级。
可选地,所述发送模块是设置为:检测所述电子设备的软件的当前的升级阶段;根据所述当前的升级阶段,发送与所述当前的升级阶段对应的软件升级文件到所述存储介质。
可选地,所述计算设备还包括:判断模块,设置为在发送第二指令给所述通道控制设备的步骤之后,判断所述电子设备的整个升级过程是否完成;若所述判断模块判断出整个升级过程未完成,则所述第一通道控制模块发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道。
本公开还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任意一种方法。
本公开还提供一种计算设备,该计算设备包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述任意一种方法。
本公开还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种方法。
本公开能够通过借助通道切换设备,切换存储介质与待软件升级的电子产品,以及存储介质与计算设备之间的通道,在对电子设备的软件进行升级的过程中,计算设备可以修改存储介质中的升级文件,实现电子设备软件升级的自动化,减少用户涉及的软件升级的工作量。
附图说明
图1是一实施例提供的一种软件升级方法的流程示意图。
图2是一实施例提供的另一种软件升级方法的流程示意图。
图3是一实施例提供的一种计算设备的结构示意图。
图4是一实施例提供的另一种计算设备的结构示意图。
图5是一实施例提供的个人计算机与USB通道控制设备和测试产品的通讯示意图。
图6是一实施例提供的USB通道控制设备与个人计算机、测试产品、和U盘的连接关系示意图。
图7是一实施例提供的又一种软件升级方法的流程示意图。
图8是一实施例提供的通道控制设备的结构示意图。
图9是一实施例提供的计算设备、通道控制设备、存储介质和待软件升级的电子设备的连接关系示意图。
图10是一实施例提供的一种计算设备的硬件结构示意图。
具体实施方式
图1是本实施例提供的一种软件升级方法的流程示意图。该方法可以应用于计算设备10,如图9所示,所述计算设备10与通道控制设备20通信连接, 所述通道控制设备20与存储介质30通信连接,所述通道控制设备20还通过通用串行总线USB接口与待软件升级的电子设备40通信连接,如图1所示,该方法可以包括步骤110-步骤130:
在步骤110中,发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道。
上述计算设备可以为个人计算机,所述通道控制设备可以为USB通道控制设备,所述待软件升级的电子设备可以为待测试产品,所述存储介质可以为U盘,如图5所示,个人计算机510可以通过TCP和UART协议中的至少一种协议分别与USB通道控制设备520、测试产品530进行通讯,。如图6所示,所述USB通道控制设备520可以通过USB线分别与个人计算机510、测试产品530、U盘540连接。
可选地,在步骤110之前还包括:发送擦除非易失性随机访问存储器的指令给测试产品,以擦除测试产品的NVRAM数据。
个人计算机可以发送擦除NVRAM的指令给测试产品以擦除测试产品的NVRAM数据,进而对测试产品进行后续操作。个人计算机发送擦除NVRAM的指令给测试产品之前,连接个人计算机、测试产品及U盘之间的通讯线,并连接USB通道控制设备与个人计算机、测试产品和U盘之间的USB线,确保个人计算机、测试产品、U盘、USB通道控制设备之间连接正常。
擦除测试产品的NVRAM数据之后,个人计算机可以发送打开个人计算机与U盘之间通道的指令,即上述第一指令,给USB通道控制设备,以通过USB通道控制设备个人计算机与U盘之间的数据传输通道,进而个人计算机可与U盘进行通讯,对U盘进行操作控制。
在步骤120中,通过所述数据传输通道,发送所述电子设备的软件升级文 件到所述存储介质,其中,所述软件升级文件包括对软件进行升级的配置文件。
例如,计算机发送对测试产品中的待升级软件进行升级的升级文件到所述U盘,升级文件中可以包括相关的配置文件;若升级文件中未设置相关的配置文件,则个人计算机与U盘连通之后,个人计算机把对应的升级文件发送到U盘中之后,在U盘中设置相关的配置文件。
在步骤130中,发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道,以使所述电子设备通过所述USB传输通道,利用所述软件升级文件进行软件升级。
例如,个人计算机发送打开测试产品与U盘之间通道的指令,即上述第二指令,给USB通道控制设备,以通过USB通道控制设备打开测试产品与U盘之间的USB传输通道。
个人计算机把对应的升级文件发送到所述U盘,设置配置文件之后,可以发送打开测试产品与U盘之间通道的指令给USB通道控制设备,使USB通道控制设备打开测试产品与U盘之间的通道,以使测试产品可利用U盘中的升级文件和配置文件进行USB升级。
可选地,所述发送第二指令给所述通道控制设备的步骤之后,还包括:发送升级指令给所述电子设备,以使所述电子设备根据所述升级指令,通过所述USB传输通道,利用所述软件升级文件进行软件升级。
例如,个人计算机发送对测试产品进行软件升级的升级指令的指令给测试产品,以使测试产品通过USB传输通道,利用U盘中的升级文件和配置文件进行软件升级。
在通过U盘为电子设备的软件进行升级时,通常把U盘连接个人计算机来 复制升级文件,并修改相关的配置文件,之后手动将U盘接入电子设备,即测试产品,根据测试产品的操作进入升级界面,进行升级,需要测试人员手动操作,若进行多次升级,则需手动重复将U盘与计算机和电子设备连接的过程,用户工作量较大,且升级效率低。
本实施例中,通过借助通道控制设备,切换存储介质与计算设备,以及存储介质与待软件升级的电子设备之间的通道,在软件升级过程中,计算设备还可以修改存储介质中的升级文件,升级相应的配置文件,从而实现了软件升级的自动化,减少用户涉及的软件升级的工作量,还可以在软件测试时,提高测试效率,保证相关电子产品的品质。
可选地,所述发送擦除NVRAM的指令给所述电子设备,以擦除所述电子设备的NVRAM数据的步骤之后,还包括:
按预置周期查询所述电子设备的NVRAM数据是否擦除成功,若是,则继续执行所述发送第一指令给所述通道控制设备的步骤,即NVRAM数据擦除成功之后发送打开计算设备与存储介质之间通道的第一指令给通道控制设备,以保证后续升级过程的稳定进行。
图2是本实施例提供的另一种软件升级的方法流程示意图。如图2所示,该方法可以包括步骤:
在步骤210中,发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道。
在步骤220中,检测所述电子设备的软件的当前的升级阶段。
根据所述当前的升级阶段,发送与所述当前的升级阶段对应的软件升级文件到所述存储介质。
例如,个人计算机与U盘连通之后,个人计算机确定当前的升级阶段,把 当前的升级阶段的对应的升级文件发送到U盘中,并设置配置文件。因为有些测试产品的软件升级分几个阶段,不同升级阶段使用不同的升级文件,和不同的配置文件,因此个人计算机确定待升级软件当前的升级阶段,把与当前的升级阶段对应的升级文件发送到U盘中,若配置文件为在U盘中设置的文件,则修改U盘中配置文件为当前升级阶段对应的配置文件。
在步骤230中,发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道。
在步骤240中,发送升级指令给所述电子设备,以使所述电子设备根据所述升级指令,通过所述USB传输通道,利用所述软件升级文件进行软件升级。
例如,个人计算机发送USB升级的指令给测试产品,测试产品利用U盘中的升级文件和配置文件进行软件升级。本升级阶段的软件升级完成之后,继续执行步骤250。
在步骤250中,判断所述电子设备的整个升级过程是否完成。若否,返回执行步骤210,若是,则执行步骤260。
例如,每一个升级阶段的软件升级完成之后,判断测试产品的整个升级过程是否完成,若否,则继续进行后续软件升级,返回执行步骤210,:发送打开个人计算机与U盘之间通道的指令给USB通道控制设备,以通过USB通道控制设备打开本终端与U盘之间的数据传输通道,进入下一升级阶段的软件升级过程,形成一个循环,直到测试产品的整个升级过程完成,对软件升级阶段比较多的测试产品,能大大减少测试人员的工作强度,提高软件测试的测试效率。
在步骤260中,可以控制电子设备进入用户界面。
例如,测试产品的整个升级过程完成之后,控制测试产品进入用户界面。
可选地,在步骤250中,判断所述测试产品的整个升级过程是否完成之前, 还包括:接收所述电子设备反馈的升级结果。步骤250中所述判断所述测试产品的整个升级过程是否完成,还包括:根据所述升级结果判断所述电子设备的整个升级过程是否完成。也可以是计算设备按预置查询周期查询电子设备的软件升级结果,若当前阶段升级完成,则判断电子设备的整个升级过程是否完成。
本实施例可以解决软件升级过程中,个人计算机测试软件无法自动根据待升级软件的当前升级阶段自动修改U盘中的升级文件和配置文件,从而无法实现软件的自动化测试的问题,通过借助USB通道切换设备,切换U盘与个人计算机、U盘与测试产品的通道,在软件升级过程中,个人计算机可以自动修改U盘的升级文件及相关的配置文件,从而实现了软件升级的自动化,减少用户涉及的软件升级的工作量,还可以在软件测试时,提高软件测试的效率,提升相关电子产品的品质。
本发明实施例还提供的一种计算设备,该计算设备可以执行上述实施例提供的软件升级方法,在计算设备的实施例中未尽的描述,请参考上述软件升级方法的实施例。
图3是本实施例提供的一种计算设备的结构框图。如图3所示,该计算设备可以包括:
第一通道控制模块310,设置为发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道;
发送模块320,设置为通过所述数据传输通道,发送所述电子设备的软件升级文件到所述存储介质,所述软件升级文件包括对软件进行升级的配置文件;
第二通道控制模块330,设置为发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的 USB传输通道,以使所述电子设备通过所述USB传输通道,利用所述软件升级文件进行软件升级。
例如,计算设备可以为个人计算机,通道控制设备可以叫做USB通道控制设备,存储介质可以为U盘,待软件升级的电子设备可以为测试产品,个人计算机可以通过TCP和UART协议中的至少一种协议分别与所述通道控制设备、所述测试产品进行通讯。所述USB通道控制设备通过USB线分别与所述个人计算机、所述测试产品和所述U盘连接。
本实施例通过借助USB通道切换设备,切换U盘与个人计算机、U盘与测试产品的通道,实现软件升级过程中,个人计算机可以修改U盘的升级文件及相关配置文件,实现软件升级的自动化,减少用户涉及的软件升级的工作量,还可以在软件测试时,提高软件测试的效率,提升电子产品的品质。
可选地,如图4所示,该计算设备还可以包括:
擦除模块410,设置为在发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道的步骤之前,发送擦除NVRAM的指令给电子设备,以擦除电子设备的NVRAM数据。
所述计算设备还可以包括:查询模块420,设置为在擦除模块410发送擦除NVRAM的指令给电子设备,以擦除电子设备的NVRAM数据之后,按预置周期查询所述电子设备的NVRAM数据是否擦除成功,若查询模块查询出电子设备的NVRAM数据擦除成功,则开启第一通道控制模块310。
所述发送模块320是设置为:检测所述电子设备的软件的当前的升级阶段;根据所述当前的升级阶段,发送与所述当前的升级阶段对应的软件升级文件到所述存储介质。
所述计算设备还可以包括判断模块430:设置为在发送第二指令给所述通道控制设备的步骤之后,判断所述电子设备的整个升级过程是否完成;在所述判断模块判断出整个升级过程未完成时,则所述第一通道控制模块310发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道。
所述计算设备还可以包括:用户界面进入模块440,设置为在判断模块430判断出整个升级过程完成时,则控制测试产品进入用户界面。
所述计算设备还可以包括:升级结果接收模块450,设置为接收所述电子设备反馈的升级结果。所述判断模块430还设置为根据所述升级结果判断所述电子设备的整个升级过程是否完成。
本实施例还提供另一种软件升级方法,可以应用于通道控制设备20,如图9所示,通道控制设备20分别与计算设备10和存储介质30通信连接,通道控制设备20还通过USB接口与待软件升级的电子设备40通信连接,如图7所示,该方法可以包括步骤710-步骤740。
在步骤710中,接收所述计算设备发送的第一指令。
在步骤720中,根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道,以使所述计算设备通过所述数据传输通道,发送所述电子设备的软件升级文件到所述存储介质,所述软件升级文件包括对软件进行升级的配置文件。
在步骤730中,接收所述计算设备发送的第二指令。
在步骤740中,根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道,以使所述电子设备通过所述USB传输通道,利用所述软件升级文件进行软件升级。
例如,通道控制设备接收计算设备发送第一指令,建立计算设备与所述存储介质之间的数据传输通道,计算设备向存储设备进行发送软件升级文件,之后通道控制设备接收所述计算设备发送的第二指令,建立所述电子设备与所述存储介质之间的USB传输通道,电子设备通过所述USB传输通道,从所述存储介质中调用所述软件升级文件进行软件升级。
可选地,所述根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道的步骤之后,还包括:在所述计算设备检测到所述电子设备未完成整个升级过程时,返回执行接收所述计算设备发送的第一指令的步骤。
例如,在所述计算设备检测到所述电子设备未完成整个升级过程时,通道控制设备继续接收所述计算设备发送的第一指令,根据所述第一指令建立所述电子设备与所述存储介质之间的USB传输通道,以使计算设备继续向存储介质发送后续升级阶段的软件升级文件。
本实施例还提供一种通道控制设备,所述通道控制设备分别与计算设备和存储介质通信连接,所述通道控制还通过USB接口与所述待软件升级的电子设备通信连接,如图8所示,所述通道控制设备包括:
第一接收模块810,设置为接收所述计算设备发送的第一指令。
第一通道建立模块820,设置为根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道,以使所述计算设备通过所述数据传输通道,发送所述电子设备的软件升级文件到所述存储介质,所述软件升级文件包括对软件进行升级的配置文件。
第二接收模块830,设置为接收所述计算设备发送的第二指令。
第二通道建立模块840,设置为根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道,以使所述电子设备通过所述USB传输通道,利 用所述软件升级文件进行软件升级。
可选地,所述第一接收模块810还设置为:在所述计算设备检测到所述电子设备未完成整个升级过程时,继续收所述计算设备发送的第一指令。
本实施例提供的计算设备,如个人计算机,可以解决软件升级过程中,个人计算机无法修改U盘中的升级文件和配置文件,从而无法实现软件自动化测试的问题,通过借助USB通道切换设备,切换U盘与个人计算机、U盘与测试产品的通道,进行软件升级过程中,个人计算机可以修改U盘的升级文件及配置文件,可以实现了软件升级的自动化,减少用户涉及的软件升级的工作量,还可以提高软件测试时的测试效率,提升电子产品的品质。
本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任意一种方法。
如图10所示,是本实施例提供的一种计算设备的硬件结构示意图,如图10所示,该计算设备包括:处理器(processor)910和存储器(memory)920;还可以包括通信接口(Communications Interface)930和总线940。
其中,处理器910、存储器920和通信接口930可以通过总线940完成相互间的通信。通信接口930可以用于信息传输。处理器910可以调用存储器920中的逻辑指令,以执行上述实施例的任意一种方法。
存储器920可以包括存储程序区和存储数据区,存储程序区可以存储操作系统和至少一个功能所需的应用程序。存储数据区可以存储根据计算设备的使用所创建的数据等。此外,存储器可以包括,例如,随机存取存储器的易失性存储器,还可以包括非易失性存储器。例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。
此外,在上述存储器920中的逻辑指令可以通过软件功能单元的形式实现 并作为独立的产品销售或使用时,该逻辑指令可以存储在一个计算机可读取存储介质中。本公开的技术方案可以以计算机软件产品的形式体现出来,该计算机软件产品可以存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本实施例所述方法的全部或部分步骤。
存储介质可以是非暂态存储介质,也可以是暂态存储介质。非暂态存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质。
上述实施例方法中的全部或部分流程,是可以通过计算机程序来指示相关的硬件完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序被执行时,可包括如上述方法的实施例的流程。
工业实用性
本公开提供了软件升级方法、计算设备及通道控制设备,可以通过借助通道切换设备,自动切换存储介质与计算设备、存储介质与待软件升级的电子设备的通道,可以实现软件升级的自动化,减少测试人员的工作量,提高软件测试的效率。

Claims (17)

  1. 一种软件升级方法,应用于计算设备,所述计算设备与通道控制设备通信连接,所述通道控制设备与存储介质通信连接,所述通道控制设备还通过通用串行总线USB接口与待软件升级的电子设备通信连接,所述方法包括:
    发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道;
    通过所述数据传输通道,发送所述电子设备的软件升级文件到所述存储介质,所述软件升级文件包括对软件进行升级的配置文件;
    发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道,以使所述电子设备通过所述USB传输通道,利用所述软件升级文件进行软件升级。
  2. 根据权利要求1所述的方法,其中,所述发送所述电子设备的软件升级文件到所述存储介质的步骤包括:
    检测所述电子设备的软件的当前的升级阶段;
    根据所述当前的升级阶段,发送与所述当前的升级阶段对应的软件升级文件到所述存储介质。
  3. 根据权利要求2所述的方法,其中,所述发送第二指令给所述通道控制设备的步骤之后还包括:
    判断所述电子设备的整个升级过程是否完成,若否,返回执行所述发送第一指令给通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道的步骤。
  4. 根据权利要求3所述的方法,其中,所述判断所述电子设备的整个升级过程是否完成的步骤之后还包括:若是,则控制所述电子设备进入用户界面。
  5. 根据权利要求3所述的方法,其中,所述判断所述电子设备的整个升级 过程是否完成的步骤之前,还包括:
    接收所述电子设备反馈的升级结果;
    所述判断所述电子设备的整个升级过程是否完成的步骤还包括:根据所述升级结果判断所述电子设备的整个升级过程是否完成。
  6. 根据权利要求1所述的方法,其中,所述计算设备通过预设协议分别与所述通道控制设备和所述电子设备进行通讯,其中所述预设协议包括传输控制协议TCP和通用异步收发传输器UART协议中的至少一个。
  7. 根据权利要求1所述的方法,其中,发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道的步骤之前还包括:
    发送擦除非易失性随机访问存储器NVRAM的指令给所述电子设备,以擦除所述电子设备的NVRAM数据。
  8. 根据权利要求7所述的方法,其中,所述发送擦除NVRAM的指令给所述电子设备,以擦除所述电子设备的NVRAM数据的步骤之后,还包括:
    按预置周期查询所述电子设备的NVRAM数据是否擦除成功,若是,则继续执行所述发送第一指令给所述通道控制设备的步骤。
  9. 根据权利要求1所述的方法,所述发送第二指令给所述通道控制设备的步骤之后,还包括:
    发送升级指令给所述电子设备,以使所述电子设备根据所述升级指令,通过所述USB传输通道,利用所述软件升级文件进行软件升级。
  10. 根据权利要求1所述的方法,其中,所述存储介质为U盘。
  11. 一种计算设备,所述计算设备与通道控制设备通信连接,所述通道控制设备与存储介质通信连接,所述通道控制设备还通过通用串行总线USB接口与 待软件升级的电子设备通信连接,所述计算设备包括:
    第一通道控制模块,设置为发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道;
    发送模块,设置为通过所述数据传输通道,发送所述电子设备的软件升级文件到所述存储介质,所述软件升级文件包括对软件进行升级的配置文件;
    第二通道控制模块,设置为发送第二指令给所述通道控制设备,以使所述通道控制设备根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道,以使所述电子设备通过所述USB传输通道,利用所述软件升级文件进行软件升级。
  12. 根据权利要求11所述的计算设备,其中:
    所述发送模块是设置为:检测所述电子设备的软件的当前的升级阶段;根据所述当前的升级阶段,发送与所述当前的升级阶段对应的软件升级文件到所述存储介质。
  13. 根据权利要求12所述的计算设备,其中,所述计算设备还包括:
    判断模块,设置为在发送第二指令给所述通道控制设备的步骤之后,判断所述电子设备的整个升级过程是否完成;若所述判断模块判断出整个升级过程未完成,则所述第一通道控制模块发送第一指令给所述通道控制设备,以使所述通道控制设备根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道。
  14. 一种软件升级方法,应用于通道控制设备,所述通道控制设备分别与计算设备和存储介质通信连接,所述通道控制还通过USB接口与待软件升级的电子设备通信连接,所述方法包括:
    接收所述计算设备发送的第一指令;
    根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道,以使所述计算设备通过所述数据传输通道,发送所述电子设备的软件升级文件到所述存储介质,所述软件升级文件包括对软件进行升级的配置文件;
    接收所述计算设备发送的第二指令;
    根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道,以使所述电子设备通过所述USB传输通道,利用所述软件升级文件进行软件升级。
  15. 根据权利要求14所述的方法,其中,所述根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道的步骤之后,还包括:
    在所述计算设备检测到所述电子设备未完成整个升级过程时,返回执行接收所述计算设备发送的第一指令的步骤。
  16. 一种通道控制设备,所述通道控制设备分别与计算设备和存储介质通信连接,所述通道控制还通过USB接口与待软件升级的电子设备通信连接,所述通道控制设备包括:
    第一接收模块,设置为接收所述计算设备发送的第一指令;
    第一通道建立模块,设置为根据所述第一指令建立所述计算设备与所述存储介质之间的数据传输通道,以使所述计算设备通过所述数据传输通道,发送所述电子设备的软件升级文件到所述存储介质,所述软件升级文件包括对软件进行升级的配置文件;
    第二接收模块,设置为接收所述计算设备发送的第二指令;
    第二通道建立模块,设置为根据所述第二指令建立所述电子设备与所述存储介质之间的USB传输通道,以使所述电子设备通过所述USB传输通道,利用 所述软件升级文件进行软件升级。
  17. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-10和14-15中任一项所述的方法。
PCT/CN2017/102510 2016-10-24 2017-09-20 软件升级方法、计算设备及通道控制设备 WO2018076969A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610932314.4A CN106502741A (zh) 2016-10-24 2016-10-24 一种usb升级的实现方法及系统
CN201610932314.4 2016-10-24

Publications (1)

Publication Number Publication Date
WO2018076969A1 true WO2018076969A1 (zh) 2018-05-03

Family

ID=58318897

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/102510 WO2018076969A1 (zh) 2016-10-24 2017-09-20 软件升级方法、计算设备及通道控制设备

Country Status (2)

Country Link
CN (1) CN106502741A (zh)
WO (1) WO2018076969A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625255A (zh) * 2020-05-11 2020-09-04 北京中睿昊天信息科技有限公司 一种基于ymodem协议的批量脱机下载器及升级方法
CN111885564A (zh) * 2020-07-03 2020-11-03 海尔优家智能科技(北京)有限公司 数据传输方法、设备升级方法、计算机可读的存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502741A (zh) * 2016-10-24 2017-03-15 深圳创维数字技术有限公司 一种usb升级的实现方法及系统
CN108415720A (zh) * 2018-03-07 2018-08-17 四川长虹电器股份有限公司 通过远程控制usb升级来实现软件升级的系统及方法
CN109558155A (zh) * 2018-12-04 2019-04-02 郑州云海信息技术有限公司 一种nvram卡的固件和驱动的升级方法及相关装置
CN115328521B (zh) * 2022-10-10 2023-05-16 广州鲁邦通物联网科技股份有限公司 一种基于嵌入式设备usb自动化升级方法和系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030146A (zh) * 2007-04-10 2007-09-05 北京中星微电子有限公司 一种实现固件更新的方法和系统
CN101030145A (zh) * 2007-04-10 2007-09-05 北京中星微电子有限公司 一种实现软件更新的方法及装置
CN101521730A (zh) * 2009-03-30 2009-09-02 四川长虹电器股份有限公司 一种电视自动升级方法、系统及电视机
CN103019797A (zh) * 2012-12-29 2013-04-03 福建三元达通讯股份有限公司 一种通过usb接口升级广告机终端固件的方法
CN103559059A (zh) * 2013-11-05 2014-02-05 广东新支点技术服务有限公司 一种快速的免介质Linux系统升级方法
CN106502741A (zh) * 2016-10-24 2017-03-15 深圳创维数字技术有限公司 一种usb升级的实现方法及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890636A (zh) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 安卓系统下的固件升级方法及系统
CN105898578A (zh) * 2016-04-06 2016-08-24 乐视控股(北京)有限公司 一种遥控器的升级方法、装置及系统
CN105975303A (zh) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 升级控制方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030146A (zh) * 2007-04-10 2007-09-05 北京中星微电子有限公司 一种实现固件更新的方法和系统
CN101030145A (zh) * 2007-04-10 2007-09-05 北京中星微电子有限公司 一种实现软件更新的方法及装置
CN101521730A (zh) * 2009-03-30 2009-09-02 四川长虹电器股份有限公司 一种电视自动升级方法、系统及电视机
CN103019797A (zh) * 2012-12-29 2013-04-03 福建三元达通讯股份有限公司 一种通过usb接口升级广告机终端固件的方法
CN103559059A (zh) * 2013-11-05 2014-02-05 广东新支点技术服务有限公司 一种快速的免介质Linux系统升级方法
CN106502741A (zh) * 2016-10-24 2017-03-15 深圳创维数字技术有限公司 一种usb升级的实现方法及系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625255A (zh) * 2020-05-11 2020-09-04 北京中睿昊天信息科技有限公司 一种基于ymodem协议的批量脱机下载器及升级方法
CN111885564A (zh) * 2020-07-03 2020-11-03 海尔优家智能科技(北京)有限公司 数据传输方法、设备升级方法、计算机可读的存储介质
CN111885564B (zh) * 2020-07-03 2024-03-22 海尔优家智能科技(北京)有限公司 数据传输方法、设备升级方法、计算机可读的存储介质

Also Published As

Publication number Publication date
CN106502741A (zh) 2017-03-15

Similar Documents

Publication Publication Date Title
WO2018076969A1 (zh) 软件升级方法、计算设备及通道控制设备
WO2017067441A1 (zh) 一种应用的测试方法、装置、系统以及非暂时性机器可读存储介质
US9983790B2 (en) System management controller and method of configuration file backup and recovery
WO2019140656A1 (zh) 一种固件升级方法、装置、电子设备及控制设备
US20220052866A1 (en) Smart home system control method and apparatus, electronic device
CN108769175B (zh) 远程真机访问控制方法、装置、存储介质及电子设备
CN104866418A (zh) 自动化测试方法和系统
WO2017028574A1 (zh) 一种路由器测试方法和测试装置
WO2019110002A1 (zh) 一种控制sim卡功能菜单显示的方法及存储装置
CN102073524B (zh) 一种无线通讯终端及其自启动的方法
CN108733403B (zh) 一种bios设置方法和装置
CN109857434A (zh) 基于usb的软件升级方法
CN110519736B (zh) 蓝牙设备的换机连接方法及装置、计算机可读存储介质
CN113407469B (zh) 一种参数配置方法及装置、存储介质及电子装置
WO2018166322A1 (zh) 系统分区的修复方法及装置
EP2386959A1 (en) Communication device based on usb interface and method for implementing service configuration
CN117407065A (zh) 网卡预启动控制方法、装置、设备、系统及存储介质
CN110162389B (zh) 应用程序的启动方法、装置和智能交互设备
CN109189629B (zh) 基于usb设备实现终端远程控制的方法、存储介质
CN109871288B (zh) 执行Android系统命令的方法、装置、设备及介质
CN113821264B (zh) 操作系统安装控制方法、安装控制系统及计算设备
CN107193728A (zh) 移动终端自动化测试方法及装置
WO2017096889A1 (zh) 系统升降级的方法和装置
CN105426304A (zh) 一种重启测试的控制方法及装置
CN115469964A (zh) 块设备与虚拟机盘符之间映射关系的确定方法和装置

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: 17865958

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: 17865958

Country of ref document: EP

Kind code of ref document: A1