WO2021212778A1 - 防盗器软件更新方法、防盗器、自刷新设备 - Google Patents

防盗器软件更新方法、防盗器、自刷新设备 Download PDF

Info

Publication number
WO2021212778A1
WO2021212778A1 PCT/CN2020/121877 CN2020121877W WO2021212778A1 WO 2021212778 A1 WO2021212778 A1 WO 2021212778A1 CN 2020121877 W CN2020121877 W CN 2020121877W WO 2021212778 A1 WO2021212778 A1 WO 2021212778A1
Authority
WO
WIPO (PCT)
Prior art keywords
self
theft device
refresh
firmware program
program data
Prior art date
Application number
PCT/CN2020/121877
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 WO2021212778A1 publication Critical patent/WO2021212778A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Definitions

  • the invention belongs to the technical field of software update, and specifically relates to an anti-theft device software update method, an anti-theft device, and a self-refreshing device.
  • the purpose of the present invention is to provide a method for updating the anti-theft device software to solve the problem in the prior art that the anti-theft device housing needs to be removed to update the anti-theft device software.
  • the present application provides a method for updating anti-theft device software, the method including:
  • the anti-theft device After receiving the request signal sent by the self-refresh device, the anti-theft device sends a response signal to the self-refresh device;
  • the anti-theft device After receiving the start signal sent by the self-refresh device, the anti-theft device erases the firmware program in the main control chip and sends the start address of the burning program to the self-refresh device;
  • the method further includes:
  • the present application provides a method for updating anti-theft device software, the method including:
  • the self-refresh device After receiving the response signal from the anti-theft device, the self-refresh device sends a start signal to the anti-theft device;
  • a communication protocol is sent to the anti-theft device after a first set time period; wherein, the communication protocol specifies the signal transmission rules between the self-refresh device and the anti-theft device;
  • the self-refresh device After receiving the starting address of the anti-theft device burning program, the self-refresh device sends a firmware program data packet to the anti-theft device.
  • the method further includes:
  • a new burning address sent by the anti-theft device is received, a new firmware program data packet is sent to the anti-theft device; and/or if an end command sent by the anti-theft device is received, the sending of the firmware program is ended data pack.
  • the method further includes:
  • the communication ends; wherein, the return instruction of the anti-theft device includes end Command and new programming address.
  • the method further includes:
  • the communication ends.
  • the method further includes:
  • the communication ends.
  • the present application provides an anti-theft device, the anti-theft device includes:
  • the sending module is used to send a response signal to the self-refresh device after receiving the request signal sent by the self-refresh device; to erase the firmware in the main control chip after receiving the start signal sent by the self-refresh device Program and send the starting address of the burning program to the self-refresh device; used to send an end command to the self-refresh device after the burning is completed and/or send a new message to the self-refresh device when the burning is not completed Burning address;
  • the receiving module is used to receive the communication protocol sent by the self-refresh device; wherein the communication protocol specifies the signal transmission rules between the self-refresh device and the anti-theft device; and is used to receive the communication protocol sent by the self-refresh device Firmware program data package;
  • the burning module is used for burning a program based on the firmware program data package.
  • the present application provides a self-refresh device, and the self-refresh device includes:
  • the sending module is used to send the initial signal to the anti-theft device after receiving the response signal of the anti-theft device;
  • the receiving module is used to receive the end command and/or the new burning address sent by the anti-theft device.
  • the self-refresh device further includes:
  • the monitoring module is configured to control the end of communication when the time between the end of the self-refreshing device sending the firmware program data and the receipt of the return instruction of the anti-theft device is greater than a second set time period; wherein, the anti-theft device
  • the return command of includes the end command and the new programming address; and/or,
  • the present invention makes the anti-theft device universal, and burns a self-refresh program in the program storage area of the main control chip of the anti-theft device.
  • the anti-theft device updates the program, it can be connected to the self-refresh device through the communication interface.
  • the anti-theft device after receiving the request signal sent by the self-refresh device, the anti-theft device sends a response signal to the self-refresh device; after receiving the start signal sent by the self-refresh device, the anti-theft device erases the master Control the firmware program in the chip and send the start address of the burning program to the self-refresh device; receive the communication protocol sent by the self-refresh device; receive the firmware program data package sent by the self-refresh device, and based on the The firmware program data package burning program. Therefore, it is possible to update the software of the anti-theft device without opening the casing of the anti-theft device.
  • FIG. 1 is a schematic diagram of one of the steps of an anti-theft device software update method in an embodiment of the present application
  • FIG. 2 is the second schematic diagram of the method for updating the anti-theft device software in an embodiment of the present application
  • FIG. 3 is a schematic diagram of the structure of an anti-theft device in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of the structure of a self-refresh device in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an anti-theft device software update scenario in an embodiment of the present application.
  • Fig. 6 is a schematic diagram of the flow of anti-theft device software in an embodiment of the present application.
  • the anti-theft device software update method may include the following steps:
  • the anti-theft device After receiving the request signal sent by the self-refresh device, the anti-theft device sends a response signal to the self-refresh device.
  • the self-refresh device will send a request signal to the anti-theft device. After receiving the request signal, the anti-theft device will send a response signal to the self-refresh device to indicate that the anti-theft device can start transmission after receiving the request signal. data.
  • the anti-theft device After receiving the start signal sent by the self-refresh device, the anti-theft device erases the firmware program in the main control chip and sends the start address of the burning program to the self-refresh device.
  • the anti-theft device erases the firmware program in the main control chip. It should be understood that the anti-theft device receiving the start signal sent by the self-refresh device indicates that the data transmission has started. Therefore, the anti-theft device needs to erase the application space currently in use to prepare for the burning of the new application.
  • the firmware program space is part of the program space of the main control chip of the anti-theft device.
  • the anti-theft device sends the starting address of the burning program to the self-refreshing device, so that the program sent by the self-refreshing device starts burning based on the starting address.
  • S103 Receive a communication protocol sent by the self-refresh device; wherein the communication protocol specifies a signal transmission rule between the self-refresh device and the anti-theft device.
  • the self-refresh device sends a communication protocol to the anti-theft device to be refreshed and stipulates the signal transmission rules between the self-refresh device and the anti-theft device. Both the anti-theft device and the self-refresh device can accurately identify the content of the data sent by the other party.
  • S104 Receive a firmware program data package sent by the self-refresh device, and burn a program based on the firmware program data package.
  • the self-refreshing device sends a firmware program data packet to the anti-theft device.
  • the firmware program data package is a refresh program.
  • the refresh program may include multiple firmware program data packages, namely, a first firmware program data package, a second firmware program data package, a third firmware program data package, and so on.
  • the self-refresh device can send multiple firmware program data packets to the anti-theft device in sequence, and the anti-theft device sequentially burns and writes the firmware program data packets sent by the self-refresh device.
  • the programming is not completed, send a new programming address to the self-refresh device; and/or, if the programming is completed, send an end command to the self-refresh device.
  • the present invention makes the anti-theft device universal, burns a self-refresh program in the program storage area of the main control chip of the anti-theft device.
  • the anti-theft device updates the program, it can be connected to the self-refresh device through the communication interface and updated by the following method : After receiving the request signal sent by the self-refresh device, the anti-theft device sends a response signal to the self-refresh device; after receiving the start signal sent by the self-refresh device, the anti-theft device erases the firmware program in the main control chip and Send the starting address of the burning program to the self-refresh device; receive the communication protocol sent by the self-refresh device; receive the firmware program data package sent by the self-refresh device, and burn the program based on the firmware program data package . Therefore, it is possible to update the software of the anti-theft device without opening the casing of the anti-theft device.
  • the anti-theft device software update method may include the following steps:
  • the self-refresh device After receiving the response signal of the anti-theft device, the self-refresh device sends an initiation signal to the anti-theft device.
  • the self-refresh device receives the response signal from the anti-theft device, indicating that there is no fault in the data transmission path, and therefore sends a start signal to the anti-theft device to inform the anti-theft device that data transmission is about to start.
  • S202 Send a communication protocol to the anti-theft device after a first set time period has elapsed after sending the start signal; wherein, the communication protocol specifies a signal transmission rule between the self-refresh device and the anti-theft device.
  • the self-refresh device sends a communication to the anti-theft device after the first set time period after sending the start signal protocol.
  • the first setting duration can be set according to different anti-theft devices, which is not limited here.
  • the self-refresh device After receiving the starting address of the anti-theft device burning program, the self-refresh device sends a firmware program data package to the anti-theft device.
  • the self-refresh device receives the starting address of the anti-theft device burning program, it indicates that the firmware program in the main control chip of the anti-theft device has been erased, and the new program can be started. Therefore, the self-refresh device sends the anti-theft device to the anti-theft device. Send firmware program data package.
  • the new program firmware can be obtained through multiple channels, such as online download, remote transmission, etc., and the new program firmware can be saved in the self-refreshing device in advance.
  • the method further includes: if a new burning address sent by the anti-theft device is received, sending a new firmware program data package to the anti-theft device; and/or if the anti-theft device is received Send the end command to end sending the firmware program data package.
  • the method further includes: if the time period between the end of the self-refresh device sending the firmware program data and the receipt of the return instruction from the anti-theft device is greater than a second set time period, The communication ends; wherein, the return instruction of the anti-theft device includes an end command and a new programming address.
  • the second set time period is determined according to the speed of the anti-theft device burning program. If the time period for the anti-theft device to burn a firmware program data package is longer than the second set time period, the self-refresh device self-sending the firmware program data package ends. The time period between receiving the return instruction of the anti-theft device is greater than the second set time period, it indicates that the programming procedure has an error, and the communication ends.
  • the method further includes: if the time period between the end of the self-refreshing device sending the first package of firmware program data and the receipt of the end command of the anti-theft device is greater than a third set time period, then the communication ends.
  • the third set duration is determined according to the total time of the anti-theft device burning program, that is, the time between the end of the first packet of firmware program data sent by the self-refresh device and the receipt of the end command of the anti-theft device. 3. If the time is set, it means that the refresh fails and the communication ends.
  • the method further includes: if the time period from when the self-refresh device starts to send the firmware program data package to the end of the firmware program data package transmission is greater than a fourth set time period, the communication ends.
  • the fourth set duration is determined according to the duration of data sent by the self-refresh device. If the duration of data sent by the self-refresh device, that is, the time between the self-refresh device sending the firmware program data packet and the end of the firmware program data packet sending is greater than The fourth setting duration means that the self-refresh device fails to send data and the communication ends.
  • the present invention makes the anti-theft device universal, burns a self-refresh program in the program storage area of the main control chip of the anti-theft device.
  • the anti-theft device updates the program, it can be connected to the self-refresh device through the communication interface and updated by the following method : After receiving the request signal sent by the self-refresh device, the anti-theft device sends a response signal to the self-refresh device; after receiving the start signal sent by the self-refresh device, the anti-theft device erases the firmware program in the main control chip and Send the starting address of the burning program to the self-refresh device; receive the communication protocol sent by the self-refresh device; receive the firmware program data package sent by the self-refresh device, and burn the program based on the firmware program data package . Therefore, it is possible to update the software of the anti-theft device without opening the casing of the anti-theft device.
  • the anti-theft device may include the following modules:
  • the sending module 301 is used to send a response signal to the self-refresh device after receiving the request signal sent by the self-refresh device; to erase the control chip in the main control chip after receiving the start signal sent by the self-refresh device Firmware program and send the start address of the burning program to the self-refresh device; used to send an end command to the self-refresh device after the burning is completed and/or send to the self-refresh device when the burning is not completed New burning address;
  • the receiving module 302 is configured to receive a communication protocol sent by the self-refresh device; wherein the communication protocol specifies a signal transmission rule between the self-refresh device and the anti-theft device; and is used to receive the self-refresh device The sent firmware program data package;
  • the burning module 303 is used for burning a program based on the firmware program data package.
  • the present invention makes the anti-theft device universal, burns a self-refresh program in the program storage area of the main control chip of the anti-theft device.
  • the anti-theft device updates the program, it can be connected to the self-refresh device through the communication interface and updated by the following method : After receiving the request signal sent by the self-refresh device, the anti-theft device sends a response signal to the self-refresh device; after receiving the start signal sent by the self-refresh device, the anti-theft device erases the firmware program in the main control chip and Send the starting address of the burning program to the self-refresh device; receive the communication protocol sent by the self-refresh device; receive the firmware program data package sent by the self-refresh device, and burn the program based on the firmware program data package . Therefore, it is possible to update the software of the anti-theft device without opening the casing of the anti-theft device.
  • the self-refresh device may include the following modules:
  • the sending module 401 is used to send an initial signal to the anti-theft device after receiving the response signal of the anti-theft device;
  • the receiving module 402 is configured to receive the end command and/or the new burning address sent by the anti-theft device.
  • the self-refresh device further includes:
  • the monitoring module 403 is used to control the end of communication when the time between the end of the self-refreshing device sending the firmware program data and the receipt of the return instruction of the anti-theft device is greater than a second set time; wherein, the anti-theft The return command of the device includes the end command and the new programming address; and/or,
  • the present invention makes the anti-theft device universal, burns a self-refresh program in the program storage area of the main control chip of the anti-theft device.
  • the anti-theft device updates the program, it can be connected to the self-refresh device through the communication interface and updated by the following method : After receiving the request signal sent by the self-refresh device, the anti-theft device sends a response signal to the self-refresh device; after receiving the start signal sent by the self-refresh device, the anti-theft device erases the firmware program in the main control chip and Send the starting address of the burning program to the self-refresh device; receive the communication protocol sent by the self-refresh device; receive the firmware program data package sent by the self-refresh device, and burn the program based on the firmware program data package . Therefore, it is possible to update the software of the anti-theft device without opening the casing of the anti-theft device.
  • the connection mode of the anti-theft device, the self-refresh device and the vehicle is shown in FIG. 5.
  • the self-refresh device includes a communication interface and a power interface. Before the anti-theft device is installed in the vehicle, the power interface can be connected to a 48V power supply to supply power to the self-refresh device. If the anti-theft device has been installed on the vehicle, the power interface can be connected to the vehicle, and the vehicle can be powered.
  • the vehicle can be an electric tricycle, an electric bicycle, an electric motorcycle, etc., which are not limited here.
  • the self-refresh device supplies power to the anti-theft device through the power line and the ground wire.
  • the anti-theft device sends data to the self-refresh device through the lock motor line, and receives the data sent by the self-refresh device through the switch line and the new national standard line.
  • the phase line receives the data sent by the self-refresh device, and it is also possible to use the new national standard line or the phase line to receive the data sent by the self-refresh device without using the switch line.
  • the present invention makes the anti-theft device universal, burns a self-refresh program in the program storage area of the main control chip of the anti-theft device.
  • the anti-theft device updates the program, it can be connected to the self-refresh device through the communication interface and updated by the following method : After receiving the request signal sent by the self-refresh device, the anti-theft device sends a response signal to the self-refresh device; after receiving the start signal sent by the self-refresh device, the anti-theft device erases the firmware program in the main control chip and Send the starting address of the burning program to the self-refresh device; receive the communication protocol sent by the self-refresh device; receive the firmware program data package sent by the self-refresh device, and burn the program based on the firmware program data package . Therefore, it is possible to update the software of the anti-theft device without opening the casing of the anti-theft device.

Landscapes

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

Abstract

本发明揭示了一种防盗器软件更新方法及其装置,所述方法包括:在接收自刷新设备发送的请求信号后,防盗器向所述自刷新设备发送应答信号;在接收所述自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;接收所述自刷新设备发送的通讯协议;其中,所述通讯协议规定了所述自刷新设备与所述防盗器之间的信号传输规则;接收所述自刷新设备发送的固件程序数据包,并基于所述固件程序数据包烧录程序。本发明的优点包括能够实现在不打开防盗器外壳的情况下对防盗器进行软件更新。

Description

防盗器软件更新方法、防盗器、自刷新设备 技术领域
本发明属于软件更新技术领域,具体涉及一种防盗器软件更新方法、防盗器、自刷新设备。
背景技术
随着交通工具的日渐普及以及更新换代,对于安装在交通工具上的防盗器也提出了更高的要求。现有技术中,一方面,由于市场对防盗器的功能有不同的需求,如果保证每款防盗器的生产数量都达到安全库存,会增大厂家的备货压力;另一方面,防盗器的更新速度快,容易滞销,而减少备货库存,又会导致供货不及时。如果要对成品防盗器进行软件升级,必须要将外壳拆除后重新烧录,导致防盗器外壳报废,如此,不仅增加工序还提高了成本。
因此,针对上述技术问题,有必要提供一种防盗器软件更新方法,该方法能够在不拆除防盗器外壳的情况下对防盗器的软件进行更新。
发明内容
本发明的目的在于提供一种防盗器软件更新方法,以解决现有技术中需要拆除防盗器外壳才能对防盗器的软件进行更新的问题。
为了实现上述目的,本发明一实施例提供的技术方案如下:
一实施例中,本申请提供一种防盗器软件更新方法,所述方法包括:
在接收自刷新设备发送的请求信号后,防盗器向所述自刷新设备发送应答信号;
在接收所述自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;
接收所述自刷新设备发送的通讯协议;其中,所述通讯协议规定了所述自刷新设备与所述防盗器之间的信号传输规则;
接收所述自刷新设备发送的固件程序数据包,并基于所述固件程序数据包烧录程序。
可选的,所述方法还包括:
如果未烧录完成则向所述自刷新设备发送新的烧录地址;和/或,如果烧录完成则向所述自刷新设备发送结束命令。
一实施例中,本申请提供一种防盗器软件更新方法,所述方法包括:
在接收防盗器的应答信号后,自刷新设备向防盗器发送起始信号;
自发送起始信号后经过第一设定时长,向所述防盗器发送通讯协议;其中,所述通讯协议规定了所述自刷新设备与所述防盗器之间的信号传输规则;
在接收所述防盗器烧录程序的起始地址后,所述自刷新设备向所述防盗器发送固件程序数据包。
可选的,所述方法还包括:
如果收到所述防盗器发送的新的烧录地址,则向所述防盗器发送新的固件程序数据包;和/或,如果收到所述防盗器发送的结束命令,则结束发送固件程序数据包。
可选的,所述方法还包括:
如果所述自刷新设备自发送固件程序数据结束与收到所述防盗器的回传指令之间的时长大于第二设定时长,则通讯结束;其中,所述防盗器的回传指令包括结束命令和新的烧录地址。
可选的,所述方法还包括:
如果所述自刷新设备自发送第一包固件程序数据结束与收到所述防盗器的结束命令之间的时长大于第三设定时长,则通讯结束。
可选的,所述方法还包括:
如果所述自刷新设备自开始发送固件程序数据包至所述固件程序数据包发送结束之间的时长大于第四设定时长,则通讯结束。
一实施例中,本申请提供一种防盗器,所述防盗器包括:
发送模块,用于在接收自刷新设备发送的请求信号后,向所述自刷新设备发送应答信号;用于在接收所述自刷新设备发送的起始信号后,擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;用于在烧录完成后向所述自刷新设备发送结束命令和/或在烧录未完成时向所述自刷新设备发送新的烧录地址;
接收模块,用于接收所述自刷新设备发送的通讯协议;其中,所述通讯协议规定了所述自刷新设备与所述防盗器之间的信号传输规则;用于接收所述自刷新设备发送的固件程序数据包;
烧录模块,用于基于所述固件程序数据包烧录程序。
一实施例中,本申请提供一种自刷新设备,所述自刷新设备包括:
发送模块,用于在接收防盗器的应答信号后,向防盗器发送起始信号;
用于自发送起始信号后经过第一设定时长,向所述防盗器发送通讯协议;
用于在接收所述防盗器烧录程序的起始地址后,向所述防盗器发送固件程序数据包;
接收模块,用于接收所述防盗器发送的结束命令和/或新的烧录地址。
可选的,所述自刷新设备还包括:
监控模块,用于在所述自刷新设备自发送固件程序数据结束与收到所述防盗器的回传指令之间的时长大于第二设定时长时,控制通讯结束;其中,所述防盗器的回传指令包括结束命令和新的烧录地址;和/或,
用于在所述自刷新设备自发送第一包固件程序数据结束与收到所述防盗器的结束命令之间的时长大于第三设定时长时,控制通讯结束;和/或,
用于在所述自刷新设备自开始发送固件程序数据包至所述固件程序数据包发送结束之间的时长大于第四设定时长时,控制通讯结束。
与现有技术相比,本发明通过将防盗器做成通用型,在防盗器主控芯片的程序存储区中烧录一个自刷新程序,防盗器更新程序时可以通过通讯接口与自刷新设备连接并通过下述方法进行更新:在接收自刷新设备发送的请求信号后,防盗器向所述自刷新设备发送应答信号;在接收所述自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;接收所述自刷新设备发送的通讯协议;接收所述自刷新设备发送的固件程序数据包,并基于所述固件程序数据包烧录程序。从而,能够实现在不打开防盗器外壳的情况下对防盗器进行软件更新。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一实施方式中防盗器软件更新方法步骤示意图之一;
图2是本申请一实施方式中防盗器软件更新方法步骤示意图之二;
图3是本申请一实施方式中防盗器结构示意图;
图4是本申请一实施方式中自刷新设备结构示意图;
图5是本申请一实施方式中防盗器软件更新场景示意图;
图6是本申请一实施方式中防盗器软件流程示意图。
具体实施方式
以下将结合附图所示的各实施方式对本发明进行详细描述。但该等实施方式并不限制本发明,本领域的普通技术人员根据该等实施方式所做出的结构、方法、或功能上的变换均包含在本发明的保护范围内。
以下结合附图,详细说明本申请各实施例提供的技术方案。
参照图1所示,为本说明书实施例提供的一种防盗器软件更新方法步骤示意图,以防盗器侧作为执行主体,所述防盗器软件更新方法可以包括以下步骤:
S101:在接收自刷新设备发送的请求信号后,防盗器向所述自刷新设备发送应答信号。
由S101可知,在开始进行数据传输之前,自刷新设备会给防盗器发送一个请求信号,防盗器接收到请求信号后向自刷新设备发送应答信号,以表示防盗器收到请求信号,可以开始传输数据。
S102:在接收所述自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址。
由S102可知,在接收到自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序。应理解,防盗器接收到自刷新设备发送的起始信号表示数据传输已经开始,因此防盗器需要擦除目前正在使用的应用程序空间,为新应用程序的烧录做准备。一实施例中,固件程序空间为防盗器主控芯片部分程序空 间。同时,防盗器向自刷新设备发送烧录程序的起始地址,以使得自刷新设备发送的程序基于该起始地址开始烧录。
S103:接收所述自刷新设备发送的通讯协议;其中,所述通讯协议规定了所述自刷新设备与所述防盗器之间的信号传输规则。
应理解,由于防盗器种类繁多,因此无法事先确定一套固定的通讯协议。为了避免数据传输出现错误,在针对一个特定的防盗器进行刷新时,自刷新设备发送一个通讯协议给待刷新防盗器并以此规定此次自刷新设备与防盗器之间的信号传输规则,以使得防盗器与自刷新设备均能够准确识别对方所发送的数据的内容。
S104:接收所述自刷新设备发送的固件程序数据包,并基于所述固件程序数据包烧录程序。
由S104可知,在防盗器与自刷新设备双方规定了通讯协议之后,自刷新设备向防盗器发送固件程序数据包。应理解,固件程序数据包为刷新程序,一般情况下,刷新程序可包括多个固件程序数据包,即第一固件程序数据包、第二固件程序数据包、第三固件程序数据包等。自刷新设备可将多个固件程序数据包按顺序依次发送给防盗器,防盗器依据自刷新设备发送的固件程序数据包依次进行烧写。
可选地,如果未烧录完成则向所述自刷新设备发送新的烧录地址;和/或,如果烧录完成则向所述自刷新设备发送结束命令。
本发明通过将防盗器做成通用型,在防盗器主控芯片的程序存储区中烧录一个自刷新程序,防盗器更新程序时可以通过通讯接口与自刷新设备连接并通过下述方法进行更新:在接收自刷新设备发送的请求信号后,防盗器向所述自刷新设备发送应答信号;在接收所述自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;接收所述自刷新设备发送的通讯协议;接收所述自刷新设备发送的固件程序数据包,并基于所述固件程序数据包烧录程序。从而,能够实现在不打开防盗器外壳的情况下对防盗器进行软件更新。
参照图2所示,为本说明书实施例提供的一种防盗器软件更新方法步骤示意图,以自刷新设备侧作为执行主体,所述防盗器软件更新方法可以包括以下步骤:
S201:在接收防盗器的应答信号后,自刷新设备向防盗器发送起始信号。
应理解,自刷新设备收到防盗器的应答信号,说明数据传输通路没有故障,因此向防盗器发送起始信号,以告知防盗器数据传输即将开始。
S202:自发送起始信号后经过第一设定时长,向所述防盗器发送通讯协议;其中,所述通讯协议规定了所述自刷新设备与所述防盗器之间的信号传输规则。
应理解,由于防盗器收到起始信号后,需要对主控芯片中的固件程序进行擦除,因此自刷新设备自发送起始信号后经过第一设定时长,向所述防盗器发送通讯协议。其中,由于不同防盗器的擦除速度不同,第一设定时长可依据不同的防盗器进行设定,在此不作限定。
S203:在接收所述防盗器烧录程序的起始地址后,所述自刷新设备向所述 防盗器发送固件程序数据包。
应理解,当自刷新设备收到防盗器烧录程序的起始地址,说明防盗器主控芯片中的固件程序擦除完成,可以开始烧录新的程序,因此自刷新设备向所述防盗器发送固件程序数据包。新程序固件可以通过多个渠道获得,例如网上下载、远程传输等方式获得,可以将新程序固件提前保存在自刷新设备中。
可选的,所述方法还包括:如果收到所述防盗器发送的新的烧录地址,则向所述防盗器发送新的固件程序数据包;和/或,如果收到所述防盗器发送的结束命令,则结束发送固件程序数据包。
可选的,参照图6所示,所述方法还包括:如果所述自刷新设备自发送固件程序数据结束与收到所述防盗器的回传指令之间的时长大于第二设定时长,则通讯结束;其中,所述防盗器的回传指令包括结束命令和新的烧录地址。
应理解,第二设定时长依据防盗器烧写程序的速度而确定,如果防盗器烧写一份固件程序数据包的时长大于第二设定时长,即自刷新设备自发送固件程序数据包结束与收到所述防盗器的回传指令之间的时长大于第二设定时长,则说明烧写程序出错,通讯结束。
可选的,所述方法还包括:如果所述自刷新设备自发送第一包固件程序数据结束与收到所述防盗器的结束命令之间的时长大于第三设定时长,则通讯结束。
应理解,第三设定时长依据防盗器烧写程序的总时间确定,即自刷新设备自发送第一包固件程序数据结束与收到防盗器的结束命令之间的时长,如果该时长大于第三设定时长,则说明刷新失败,通讯结束。
可选的,所述方法还包括:如果所述自刷新设备自开始发送固件程序数据包至所述固件程序数据包发送结束之间的时长大于第四设定时长,则通讯结束。
应理解,第四设定时长依据自刷新设备发送数据的时长确定,如果自刷新设备发送数据的时长,即自刷新设备自开始发送固件程序数据包至固件程序数据包发送结束之间的时长大于第四设定时长,则说明自刷新设备发送数据失败,通讯结束。
本发明通过将防盗器做成通用型,在防盗器主控芯片的程序存储区中烧录一个自刷新程序,防盗器更新程序时可以通过通讯接口与自刷新设备连接并通过下述方法进行更新:在接收自刷新设备发送的请求信号后,防盗器向所述自刷新设备发送应答信号;在接收所述自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;接收所述自刷新设备发送的通讯协议;接收所述自刷新设备发送的固件程序数据包,并基于所述固件程序数据包烧录程序。从而,能够实现在不打开防盗器外壳的情况下对防盗器进行软件更新。
参照图3所示,为本说明书实施例提供的一种防盗器结构示意图,所述防盗器可以包括以下模块:
发送模块301,用于在接收自刷新设备发送的请求信号后,向所述自刷新设备发送应答信号;用于在接收所述自刷新设备发送的起始信号后,擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;用于在烧录完 成后向所述自刷新设备发送结束命令和/或在烧录未完成时向所述自刷新设备发送新的烧录地址;
接收模块302,用于接收所述自刷新设备发送的通讯协议;其中,所述通讯协议规定了所述自刷新设备与所述防盗器之间的信号传输规则;用于接收所述自刷新设备发送的固件程序数据包;
烧录模块303,用于基于所述固件程序数据包烧录程序。
本发明通过将防盗器做成通用型,在防盗器主控芯片的程序存储区中烧录一个自刷新程序,防盗器更新程序时可以通过通讯接口与自刷新设备连接并通过下述方法进行更新:在接收自刷新设备发送的请求信号后,防盗器向所述自刷新设备发送应答信号;在接收所述自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;接收所述自刷新设备发送的通讯协议;接收所述自刷新设备发送的固件程序数据包,并基于所述固件程序数据包烧录程序。从而,能够实现在不打开防盗器外壳的情况下对防盗器进行软件更新。
参照图4所示,为本说明书实施例提供的一种自刷新设备结构示意图,所述自刷新设备可以包括以下模块:
发送模块401,用于在接收防盗器的应答信号后,向防盗器发送起始信号;
用于自发送起始信号后经过第一设定时长,向所述防盗器发送通讯协议;
用于在接收所述防盗器烧录程序的起始地址后,向所述防盗器发送固件程序数据包;
接收模块402,用于接收所述防盗器发送的结束命令和/或新的烧录地址。
进一步,所述自刷新设备还包括:
监控模块403,用于在所述自刷新设备自发送固件程序数据结束与收到所述防盗器的回传指令之间的时长大于第二设定时长时,控制通讯结束;其中,所述防盗器的回传指令包括结束命令和新的烧录地址;和/或,
用于在所述自刷新设备自发送第一包固件程序数据结束与收到所述防盗器的结束命令之间的时长大于第三设定时长时,控制通讯结束;和/或,
用于在所述自刷新设备自开始发送固件程序数据包至所述固件程序数据包发送结束之间的时长大于第四设定时长时,控制通讯结束。
本发明通过将防盗器做成通用型,在防盗器主控芯片的程序存储区中烧录一个自刷新程序,防盗器更新程序时可以通过通讯接口与自刷新设备连接并通过下述方法进行更新:在接收自刷新设备发送的请求信号后,防盗器向所述自刷新设备发送应答信号;在接收所述自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;接收所述自刷新设备发送的通讯协议;接收所述自刷新设备发送的固件程序数据包,并基于所述固件程序数据包烧录程序。从而,能够实现在不打开防盗器外壳的情况下对防盗器进行软件更新。
一实施例中,防盗器与自刷新设备以及交通工具的连接方式参照图5所示。自刷新设备包括通讯接口以及电源接口,在防盗器安装到交通工具之前,电源接口可以连接48V电源,用于对自刷新设备进行供电。如果防盗器已经安装到 交通工具上,电源接口可以与交通工具连接,通过交通工具供电。该交通工具可以是电动三轮车、电动自行车、电动摩托车等,在此不作限定。自刷新设备通过电源线和地线给防盗器供电,防盗器通过锁电机线给自刷新设备发送数据,通过电门线和新国标线接收自刷新设备发送的数据,也可以通过电门线和相位线接收自刷新设备发送的数据,还可以不使用电门线,只使用新国标线或者相位线接收自刷新设备发送的数据。
本发明通过将防盗器做成通用型,在防盗器主控芯片的程序存储区中烧录一个自刷新程序,防盗器更新程序时可以通过通讯接口与自刷新设备连接并通过下述方法进行更新:在接收自刷新设备发送的请求信号后,防盗器向所述自刷新设备发送应答信号;在接收所述自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;接收所述自刷新设备发送的通讯协议;接收所述自刷新设备发送的固件程序数据包,并基于所述固件程序数据包烧录程序。从而,能够实现在不打开防盗器外壳的情况下对防盗器进行软件更新。
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。
此外,应当理解,虽然本说明书按照实施例加以描述,但并非每个实施例仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。

Claims (10)

  1. 一种防盗器软件更新方法,其特征在于,所述方法包括:
    在接收自刷新设备发送的请求信号后,防盗器向所述自刷新设备发送应答信号;
    在接收所述自刷新设备发送的起始信号后,防盗器擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;
    接收所述自刷新设备发送的通讯协议;其中,所述通讯协议规定了所述自刷新设备与所述防盗器之间的信号传输规则;
    接收所述自刷新设备发送的固件程序数据包,并基于所述固件程序数据包烧录程序。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    如果未烧录完成则向所述自刷新设备发送新的烧录地址;和/或,如果烧录完成则向所述自刷新设备发送结束命令。
  3. 一种防盗器软件更新方法,其特征在于,所述方法包括:
    在接收防盗器的应答信号后,自刷新设备向防盗器发送起始信号;
    自发送起始信号后经过第一设定时长,向所述防盗器发送通讯协议;其中,所述通讯协议规定了所述自刷新设备与所述防盗器之间的信号传输规则;
    在接收所述防盗器烧录程序的起始地址后,所述自刷新设备向所述防盗器发送固件程序数据包。
  4. 如权利要求3所述的方法,其特征在于,所述方法还包括:
    如果收到所述防盗器发送的新的烧录地址,则向所述防盗器发送新的固件程序数据包;和/或,如果收到所述防盗器发送的结束命令,则结束发送固件程序数据包。
  5. 如权利要求3所述的方法,其特征在于,所述方法还包括:
    如果所述自刷新设备自发送固件程序数据结束与收到所述防盗器的回传指令之间的时长大于第二设定时长,则通讯结束;其中,所述防盗器的回传指令包括结束命令和新的烧录地址。
  6. 如权利要求3所述的方法,其特征在于,所述方法还包括:
    如果所述自刷新设备自发送第一包固件程序数据结束与收到所述防盗器的结束命令之间的时长大于第三设定时长,则通讯结束。
  7. 如权利要求3所述的方法,其特征在于,所述方法还包括:
    如果所述自刷新设备自开始发送固件程序数据包至所述固件程序数据包发送结束之间的时长大于第四设定时长,则通讯结束。
  8. 一种防盗器,其特征在于,所述防盗器包括:
    发送模块,用于在接收自刷新设备发送的请求信号后,向所述自刷新设备发送应答信号;用于在接收所述自刷新设备发送的起始信号后,擦除主控芯片中的固件程序并向所述自刷新设备发送烧录程序的起始地址;用于在烧录完成 后向所述自刷新设备发送结束命令和/或在烧录未完成时向所述自刷新设备发送新的烧录地址;
    接收模块,用于接收所述自刷新设备发送的通讯协议;其中,所述通讯协议规定了所述自刷新设备与所述防盗器之间的信号传输规则;用于接收所述自刷新设备发送的固件程序数据包;
    烧录模块,用于基于所述固件程序数据包烧录程序。
  9. 一种自刷新设备,其特征在于,所述自刷新设备包括:
    发送模块,用于在接收防盗器的应答信号后,向防盗器发送起始信号;
    用于自发送起始信号后经过第一设定时长,向所述防盗器发送通讯协议;
    用于在接收所述防盗器烧录程序的起始地址后,向所述防盗器发送固件程序数据包;
    接收模块,用于接收所述防盗器发送的结束命令和/或新的烧录地址。
  10. 如权利要求9所述的自刷新设备,其特征在于,所述自刷新设备还包括:
    监控模块,用于在所述自刷新设备自发送固件程序数据结束与收到所述防盗器的回传指令之间的时长大于第二设定时长时,控制通讯结束;其中,所述防盗器的回传指令包括结束命令和新的烧录地址;和/或,
    用于在所述自刷新设备自发送第一包固件程序数据结束与收到所述防盗器的结束命令之间的时长大于第三设定时长时,控制通讯结束;和/或,
    用于在所述自刷新设备自开始发送固件程序数据包至所述固件程序数据包发送结束之间的时长大于第四设定时长时,控制通讯结束。
PCT/CN2020/121877 2020-04-24 2020-10-19 防盗器软件更新方法、防盗器、自刷新设备 WO2021212778A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010330441.3 2020-04-24
CN202010330441.3A CN111552493A (zh) 2020-04-24 2020-04-24 防盗器软件更新方法、防盗器、自刷新设备

Publications (1)

Publication Number Publication Date
WO2021212778A1 true WO2021212778A1 (zh) 2021-10-28

Family

ID=72002506

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/121877 WO2021212778A1 (zh) 2020-04-24 2020-10-19 防盗器软件更新方法、防盗器、自刷新设备

Country Status (2)

Country Link
CN (1) CN111552493A (zh)
WO (1) WO2021212778A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594642A (zh) * 2023-05-04 2023-08-15 安徽曦合微电子有限公司 烧录过程的安全通讯方法、计算设备及可读存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552493A (zh) * 2020-04-24 2020-08-18 苏州华芯微电子股份有限公司 防盗器软件更新方法、防盗器、自刷新设备
EP4249329A1 (en) * 2022-03-22 2023-09-27 Andre Figueiredo Miura Road vehicles anti-theft security device based on automotive embedded systems software

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075564A (zh) * 2010-12-23 2011-05-25 李华嵩 一种远程软件升级技术方法
CN103336701A (zh) * 2013-06-20 2013-10-02 深圳麦克维尔空调有限公司 智能型引导升级方法
CN107608692A (zh) * 2017-09-01 2018-01-19 江苏钜芯集成电路技术股份有限公司 无线烧录装置
CN108536452A (zh) * 2017-02-28 2018-09-14 深圳市帝迈生物技术有限公司 一种嵌入式设备及其***软件升级方法、***和终端
US20190187975A1 (en) * 2016-08-22 2019-06-20 Intraway R&D S.A. System and Method for Providing Automatic Firmware Update Management
CN111552493A (zh) * 2020-04-24 2020-08-18 苏州华芯微电子股份有限公司 防盗器软件更新方法、防盗器、自刷新设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407881A (zh) * 2014-10-28 2015-03-11 成都阿艾夫通信有限公司 有源rfid固件远程升级方法
CN105045626A (zh) * 2015-07-21 2015-11-11 珠海格力电器股份有限公司 程序的烧录方法、烧录设备和控制器
CN106371859B (zh) * 2015-07-23 2019-08-13 比亚迪股份有限公司 汽车电子设备的软件更新方法和装置
CN108664256A (zh) * 2017-03-28 2018-10-16 宁德时代新能源科技股份有限公司 ***的固件更新方法、装置和电池管理***
CN109522035A (zh) * 2018-09-29 2019-03-26 珠海格力电器股份有限公司 一种程序升级方法、装置、调试设备及用电设备
CN110109693A (zh) * 2019-04-22 2019-08-09 南京理工大学 嵌入式设备远程固件升级方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075564A (zh) * 2010-12-23 2011-05-25 李华嵩 一种远程软件升级技术方法
CN103336701A (zh) * 2013-06-20 2013-10-02 深圳麦克维尔空调有限公司 智能型引导升级方法
US20190187975A1 (en) * 2016-08-22 2019-06-20 Intraway R&D S.A. System and Method for Providing Automatic Firmware Update Management
CN108536452A (zh) * 2017-02-28 2018-09-14 深圳市帝迈生物技术有限公司 一种嵌入式设备及其***软件升级方法、***和终端
CN107608692A (zh) * 2017-09-01 2018-01-19 江苏钜芯集成电路技术股份有限公司 无线烧录装置
CN111552493A (zh) * 2020-04-24 2020-08-18 苏州华芯微电子股份有限公司 防盗器软件更新方法、防盗器、自刷新设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594642A (zh) * 2023-05-04 2023-08-15 安徽曦合微电子有限公司 烧录过程的安全通讯方法、计算设备及可读存储介质
CN116594642B (zh) * 2023-05-04 2024-01-30 安徽曦合微电子有限公司 烧录过程的安全通讯方法、计算设备及可读存储介质

Also Published As

Publication number Publication date
CN111552493A (zh) 2020-08-18

Similar Documents

Publication Publication Date Title
WO2021212778A1 (zh) 防盗器软件更新方法、防盗器、自刷新设备
JP6500147B2 (ja) 車載プログラム書込み装置
CN111343064A (zh) 汽车控制***软件升级***及方法
CN105808285B (zh) 车辆控制更新的方法和***
US9450911B2 (en) System and method for managing ethernet communication network for use in vehicle
US8655541B2 (en) Vehicle upgrade system and method thereof
JP6525109B2 (ja) 制御装置、転送方法、およびコンピュータプログラム
US11433718B2 (en) Upgrading method and apparatus for tire pressure monitoring module and tire pressure sensor
CN109857437A (zh) 一种蓝牙设备的升级方法及***
WO2015051647A1 (zh) 一种固件的升级方法和***、上位机和光模块
CN108664256A (zh) ***的固件更新方法、装置和电池管理***
CN103581882A (zh) 一种数据卡apn锁定状态的控制方法及装置、数据卡
JP2018063711A (ja) 車両のプログラム更新方法及びそのシステム
WO2011130974A1 (zh) 文件下载方法及***
CN105703945B (zh) 一种onu升级的方法
WO2023241458A1 (zh) 车载控制器的软件升级方法、装置、设备和存储介质
CN109002312A (zh) 软件升级方法、装置及升级服务器和设备
WO2012155412A1 (zh) 安卓***下的固件升级方法及***
JP4945788B2 (ja) 通信アダプタ
CN101662838A (zh) 一种实现免驱上网的装置、方法及usb数据卡
WO2012100515A1 (zh) 一种无线通讯终端的启用方法及装置
WO2024032785A1 (zh) 无线传输方法、计算机设备和存储介质
CN111615030A (zh) 一种新型tws耳机的升级方法、装置及介质
TWI392638B (zh) 加油機之整合控制器及其使用之通訊協定更新方法
US11928458B2 (en) Method for updating a digital system

Legal Events

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

Ref document number: 20932358

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

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20932358

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 170523)

122 Ep: pct application non-entry in european phase

Ref document number: 20932358

Country of ref document: EP

Kind code of ref document: A1