Intelligent door lock firmware package upgrading method and device

By switching transmission paths and working modes in the smart door lock, using the high baud rate transmission and signature verification of the video master chip, the problems of low transmission efficiency and integrity verification in the existing technology are solved, and efficient firmware package upgrade is achieved.

CN120447938APending Publication Date: 2025-08-08CHONGQING LUXIANGJIA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510299566.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-13
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

In the prior art, the smart door lock firmware packet upgrade method is subject to the control link being too long and the main control chip resource limitation, resulting in low OTA transmission efficiency and inability to effectively verify the integrity of OTA data packets.

Method used

The serial port switch is closed by the single-chip chip, the firmware packet transmission path is switched and the big data interaction mode is switched. The video master chip transmits the firmware packet to the algorithm module at a high baud rate, reduces link redirection, and uses the video master chip resources for signature verification.

Benefits of technology

Improves data transmission efficiency, shortens firmware upgrade time, and ensures the legality and integrity of OTA packets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120447938A_ABST
    Figure CN120447938A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent door lock firmware package upgrading method and device, electronic equipment, a storage medium and an intelligent door, and relates to the technical field of firmware package upgrading. The method comprises the steps that in response to an upgrading instruction, a serial port switch is controlled to be closed through a single-chip microcomputer chip, a firmware package transmission path is determined, a working mode switching notice corresponding to the firmware package transmission path is sent to a video main control chip, and the video main control chip and the serial port switch are both connected with the single-chip microcomputer chip; switching a normal working mode to a big data interaction mode through the video main control chip based on the working mode switching notification; the firmware package is transmitted to the algorithm module through the video main control chip according to the firmware package transmission path and the big data interaction mode, and the algorithm module is connected with the video main control chip through the serial port switch. According to the method, link transfer during big data interaction is reduced by switching different firmware packet transmission paths and working modes, the method is not limited by resources of a main control chip of a single-chip microcomputer, and the data transmission efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of firmware package upgrades, and in particular to a method, device, electronic device, storage medium, and smart door for upgrading a smart door lock firmware package. Background Art

[0002] In the rapidly changing and developing IoT market, new product demands are constantly emerging. IoT platforms support device firmware upgrades via Over-the-Air (OTA) technology, which is a means for smart devices to repair system vulnerabilities and implement system upgrades. More and more devices require OTA upgrades to optimize firmware, so the demand for updates for smart hardware devices has become unprecedentedly high.

[0003] However, the smart door lock firmware package upgrade method in the existing technology is affected by factors such as the control link being too long and requiring multiple main control chips to transfer, which greatly reduces the OTA transmission efficiency. Summary of the Invention

[0004] The present disclosure provides a method, device, electronic device, storage medium and smart door for upgrading a smart door lock firmware package.

[0005] According to a first aspect of the present disclosure, a method for upgrading a smart door lock firmware package is provided, the method comprising: in response to an upgrade instruction, controlling the closure of a serial port switch through a single-chip microcomputer chip, determining a firmware package transmission path, and sending a working mode switching notification corresponding to the firmware package transmission path to a video main control chip, wherein both the video main control chip and the serial port switch are connected to the single-chip microcomputer chip; switching a normal working mode to a big data interaction mode based on the working mode switching notification through the video main control chip, wherein the normal working mode refers to data transmission through a low baud rate by the video main control chip, and the big data interaction module refers to data transmission through a high baud rate by the video main control chip; transmitting the firmware package to an algorithm module through the video main control chip according to the firmware package transmission path and the big data interaction mode, and the algorithm module is connected to the video main chip through the serial port switch.

[0006] In some embodiments, in response to an upgrade instruction, the serial port switch is controlled to close by the single-chip microcomputer chip, the firmware package transmission path is determined, and the working mode switching notification corresponding to the firmware package transmission path is sent to the video main control chip. Before that, the method also includes: in response to the upgrade instruction, the baud rate mode adjustment notification is sent to the algorithm module through the single-chip microcomputer chip, and the single-chip microcomputer chip is connected to the algorithm module through the serial port switch; based on the baud rate mode adjustment notification, the algorithm module adjusts the low baud rate mode to the high baud rate mode, so as to receive the firmware package transmitted by the video main control chip through the algorithm module according to the high baud rate mode.

[0007] In some embodiments, the firmware package is transmitted to the algorithm module through the video main control chip according to the firmware package transmission path and the big data interaction mode. Afterwards, the method includes: sending a baud rate mode adjustment notification to the algorithm module and sending a serial port switch start notification to the single-chip microcomputer chip through the video main control chip, so that the algorithm module converts the high baud rate mode to the low baud rate mode and the single-chip microcomputer chip controls the serial port switch to turn on.

[0008] In some embodiments, in response to an upgrade instruction, the serial port switch is controlled to close through the single-chip microcomputer chip, the firmware package transmission path is determined, and the working mode switching notification corresponding to the firmware package transmission path is sent to the video main control chip, including: the working status of the video main control chip and the door lock sensor are respectively determined through the single-chip microcomputer chip, and the door lock sensor is connected to the single-chip microcomputer chip; if the single-chip microcomputer chip determines that the working status of the video main control chip and the door lock sensor are both idle, then the serial port switch is controlled to close, the firmware package transmission path is determined, and the working mode switching notification is sent to the video main control chip; if the single-chip microcomputer chip determines that the working status of the video main control chip is busy and / or the working status of the door lock sensor is busy, then after a preset period of time, the serial port switch is controlled to close, the firmware package transmission path is determined, and the working mode switching notification is sent to the video main control chip.

[0009] In some embodiments, in response to an upgrade instruction, the serial port switch is controlled to be closed by the single-chip microcomputer chip, the firmware package transmission path is determined, and the working mode switching notification corresponding to the firmware package transmission path is sent to the video main control chip, including: receiving preset idle period information; based on the preset idle period information, within the preset idle period, in response to the upgrade instruction, the serial port switch is controlled to be closed by the single-chip microcomputer chip, the firmware package transmission path is obtained, and the working mode switching notification is sent to the video main control chip.

[0010] In some embodiments, transmitting the firmware package to the algorithm module through the video main control chip according to the firmware package transmission path and the big data interaction mode includes: receiving the firmware package transmitted by the remote server through wireless communication through the video main control chip, and performing signature verification on the firmware package to determine whether the firmware package is complete; if the firmware package is determined to be complete through the video main control chip, the firmware package is transmitted to the algorithm module according to the big data interaction mode and the firmware package transmission path.

[0011] According to a second aspect of the present disclosure, a device for upgrading a smart door lock firmware package is provided, the device comprising:

[0012] A control unit, configured to respond to an upgrade instruction, control the closing of a serial port switch through the single-chip microcomputer chip, determine a firmware package transmission path, and send a working mode switching notification corresponding to the firmware package transmission path to the video main control chip, wherein the video main control chip and the serial port switch are both connected to the single-chip microcomputer chip;

[0013] A switching unit is used to switch the normal working mode to the big data interaction mode based on the working mode switching notification of the video main control chip. The normal working mode means that the video main control chip transmits data at a low baud rate, and the big data interaction module means that the video main control chip transmits data at a high baud rate;

[0014] The transmission unit is used to transmit the firmware package to the algorithm module through the video main control chip according to the firmware package transmission path and big data interaction mode. The algorithm module is connected to the video main control chip through a serial port switch.

[0015] According to a third aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the smart door lock firmware package upgrade method of the first aspect described above.

[0016] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to enable a computer to execute the smart door lock firmware package upgrade method of the first aspect.

[0017] According to a fifth aspect of the present disclosure, a smart door is provided, comprising the smart door lock firmware package upgrading device as described in the second aspect above or the electronic device as described in the third aspect above.

[0018] According to the embodiment of the present disclosure, by responding to the upgrade instruction, the serial port switch is controlled to be closed through the single-chip microcomputer chip, the firmware package transmission path is determined, and the working mode switching notification corresponding to the firmware package transmission path is sent to the video main control chip, and the video main chip and the serial port switch are both connected to the single-chip microcomputer chip; based on the working mode switching notification, the video main chip switches the normal working mode to the big data interaction mode, the normal working mode means that the video main control chip transmits data at a low baud rate, and the big data interaction module means that the video main chip transmits data at a high baud rate; the video main chip transmits the firmware package to the algorithm module according to the firmware package transmission path and the big data interaction mode, and the algorithm module is connected to the video main chip through the serial port switch, so as to achieve the reduction of link transit during big data interaction by switching different firmware package transmission paths and working modes, and at the same time is not limited by the resources of the single-chip microcomputer main control chip, thereby improving data transmission efficiency.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present disclosure.

[0021] Figure 1 A flowchart of a method for upgrading a smart door lock firmware package provided by an embodiment of the present disclosure;

[0022] Figure 2 A flowchart of a method for upgrading a smart door lock firmware package provided by an embodiment of the present disclosure;

[0023] Figure 3 A schematic block diagram of a smart door lock firmware package upgrade system provided by an embodiment of the present disclosure;

[0024] Figure 4 A schematic block diagram of a specific smart door lock firmware package upgrade system provided by an embodiment of the present disclosure;

[0025] Figure 5 A schematic diagram of the structure of a smart door lock firmware package upgrade device provided by an embodiment of the present disclosure;

[0026] Figure 6 A schematic block diagram of an exemplary electronic device 600 is provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0028] The following describes a smart door lock firmware package upgrade method, device, electronic device, storage medium and smart door according to embodiments of the present disclosure with reference to the accompanying drawings.

[0029] In the rapidly changing and developing IoT market, new product demands are constantly emerging. IoT platforms support device firmware upgrades via Over-the-Air (OTA) technology, which is a means for smart devices to repair system vulnerabilities and implement system upgrades. More and more devices require OTA upgrades to optimize firmware, so the demand for updates for smart hardware devices has become unprecedentedly high.

[0030] Over-the-Air Technology (OTA) allows users to program parts of the User Flash memory while the user is running. This allows users to easily update the firmware of a product through a reserved communication port after the product is released.

[0031] Specifically, existing solutions for modules with algorithm models are generally large (over 10MB after compression). For example, the upgrade package for a 3D face recognition module can exceed 10MB. The algorithm module is typically powered by dry-cell batteries, while the video recording module is typically powered by a lithium battery, both of which are managed by independent battery management systems. The algorithm module is connected to the microcontroller's main control chip via a serial port; OTA data packets are transmitted through the serial port to upgrade the module.

[0032] However, the smart door lock firmware package upgrade method in the existing technology is affected by factors such as the control link being too long and requiring multiple main control chips to transfer, which greatly reduces the OTA transmission efficiency.

[0033] In addition, due to the resource limitations of the microcontroller main control chip, the entire OTA data packet of the algorithm module cannot be cached, so the integrity of the OTA data packet cannot be verified.

[0034] To this end, in response to the above-mentioned problems of the prior art, the present invention proposes a method for upgrading the firmware package of a smart door lock, which controls the closure of the serial port switch through the single-chip microcomputer chip, responds to the upgrade instruction and switches the firmware package transmission path and working mode to the big data interaction mode, and uses the video main control chip to transmit the firmware package to the algorithm module at a high baud rate, reducing link transit, improving data transmission efficiency, and not being limited by the resources of the single-chip microcomputer.

[0035] The smart door lock firmware package upgrade method proposed in the present disclosure can be applied to video solutions (such as video door locks, doorbells, cat-eye devices, etc.), and the application scenarios are not limited in the embodiments of the present disclosure.

[0036] The following describes in detail with reference to the accompanying drawings a method, device, electronic device, storage medium, smart door, and program product for upgrading the smart door lock firmware package proposed in the present disclosure.

[0037] Figure 1 This is a flow chart of a method for upgrading the firmware package of a smart door lock provided by an embodiment of the present disclosure. Figure 1 As shown, the method comprises the following steps:

[0038] Step 101, in response to the upgrade instruction, the serial port switch is closed by the single-chip microcomputer chip, the firmware package transmission path is determined, and the working mode switching notification corresponding to the firmware package transmission path is sent to the video main control chip. The video main control chip and the serial port switch are both connected to the single-chip microcomputer chip.

[0039] In one implementation of the present disclosure, an upgrade instruction refers to transmitting a data set for data update. The upgrade instruction can be issued from the cloud, in other words, issued by a user via a mobile terminal app, or directly issued by a user via voice control, all of which are not limited in the present disclosure. Furthermore, the upgrade instruction can be a fixed signal set by the device at the factory. When the device recognizes the upgrade signal, it can automatically upgrade the smart door lock firmware package.

[0040] The present disclosure can control the closing of the serial port switch through the single-chip microcomputer chip, adjust the data transmission path, determine the current data transmission path as the firmware package transmission path, and realize the transmission of the firmware package. Specifically, the firmware package transmission path in the present disclosure needs to pass through the video main control chip, the switch and the algorithm module.

[0041] It is understandable that when no upgrade command is issued from the cloud, the MCU chip in the present disclosure controls the serial port switch to be turned on, and the data transmission path is the normal transmission path. This normal transmission path needs to pass through the video main control chip, MCU chip, switch and algorithm module.

[0042] Among them, in order to further improve the transmission efficiency of the firmware package in the present disclosure, the present disclosure can use the single-chip microcomputer chip to control the closing of the serial port switch, and at the same time, send a working mode switching notification corresponding to the firmware package transmission path to the video main control chip to instruct the video main control chip to switch the working mode to a working mode suitable for firmware package transmission.

[0043] Step 102: Based on the working mode switching notification, the video master chip switches the normal working mode to the big data interaction mode. The normal working mode means that the video master chip transmits data at a low baud rate, and the big data interaction module means that the video master chip transmits data at a high baud rate.

[0044] In one embodiment of the present disclosure, the video master control chip can switch from a normal low-baud-rate data transmission mode to a high-baud-rate large-data interaction mode based on a working mode switch notification, thereby achieving more efficient data transmission. This improves the transmission speed of large data such as firmware packages and optimizes system performance.

[0045] Step 103: The video main control chip transmits the firmware package to the algorithm module according to the firmware package transmission path and the big data interaction mode. The algorithm module is connected to the video main control chip through the serial port switch.

[0046] In one embodiment of the present disclosure, data transmission is performed through the video main control chip according to the adjusted data transmission path (ie, the firmware package transmission path) and the switched working mode (ie, the big data interaction mode).

[0047] It can be understood that when the working mode is the big data interaction mode, the video master chip can quickly transmit the firmware package to the algorithm module through the switch at a high baud rate; when the working mode is the normal working mode, the video master chip first transmits the data to the microcontroller chip at a low baud rate, and the microcontroller chip then transmits the data to the algorithm module through the switch to achieve the need to reduce power consumption.

[0048] Therefore, according to the embodiment of the present disclosure, by responding to the upgrade instruction, the serial port switch is controlled to be closed through the single-chip microcomputer chip, the firmware package transmission path is determined, and the working mode switching notification corresponding to the firmware package transmission path is sent to the video main control chip, and the video main control chip and the serial port switch are both connected to the single-chip microcomputer chip; based on the working mode switching notification, the video main control chip switches the normal working mode to the big data interaction mode, the normal working mode means that the video main control chip transmits data at a low baud rate, and the big data interaction module means that the video main control chip transmits data at a high baud rate; the video main chip transmits the firmware package to the algorithm module according to the firmware package transmission path and the big data interaction mode, and the algorithm module is connected to the video main control chip through the serial port switch, so that when the upgrade instruction is received, the firmware package transmission path and the working mode are switched to reduce the link transit during big data interaction, and at the same time, it is not limited by the resources of the single-chip microcomputer main control chip, thereby improving the data transmission efficiency.

[0049] Figure 2 A flowchart of a smart door lock firmware package upgrade method provided in an embodiment of the present disclosure. Figure 2 based on Figure 1 In the embodiment shown, step 101 and step 103 are further defined. Figure 2 In the embodiment shown, step 101 includes steps 201 and 202, and step 103 includes step 206. Figure 2 As shown, the method includes the following steps:

[0050] Step 201 , in response to an upgrade instruction, a baud rate mode adjustment notification is sent to an algorithm module via a single-chip microcomputer chip, and the single-chip microcomputer chip is connected to the algorithm module via a serial port switch.

[0051] In step 202 , the algorithm module adjusts the low baud rate mode to the high baud rate mode based on the baud rate mode adjustment notification, so as to receive the firmware package transmitted by the video main control chip through the algorithm module according to the high baud rate mode.

[0052] In one embodiment of the present disclosure, the present disclosure can respond to an upgrade instruction and send a baud rate mode adjustment notification to the algorithm module through the single-chip microcontroller chip. After receiving the baud rate mode adjustment notification, the algorithm module can adjust the low baud rate mode to the high baud rate mode. The baud rates of the high baud rate mode and the low baud rate mode in the present disclosure are pre-set when the device leaves the factory and are not limited in the embodiments of the present disclosure. The baud rate corresponding to the low baud rate mode in the present disclosure can be 115200bps, etc., and the baud rate corresponding to the high baud rate mode can be 1.5Mbps, 3Mbps, or even higher.

[0053] Step 203: The single-chip microcomputer chip controls the serial port switch to be closed, determines the firmware package transmission path, and sends a working mode switching notification corresponding to the firmware package transmission path to the video main control chip.

[0054] In one embodiment of the present disclosure, a serial port switch is added to the hardware architecture to determine the firmware package transmission path. The serial port switch can be a UART switch, which is not limited in this disclosure. UART stands for Universal Asynchronous Receiver / Transmitter, an asynchronous receiver / transmitter that is part of computer hardware and converts data to be transmitted between serial and parallel communication.

[0055] After the baud rate mode is adjusted to the high baud rate mode through the algorithm module, the present invention can control the serial port switch (UART switch) to be closed through the single-chip microcomputer chip, thereby obtaining the firmware package transmission path, and at the same time, the working mode switching notification corresponding to the firmware package transmission path can be sent to the video main control chip through the single-chip microcomputer chip.

[0056] That is, when the UART switch is turned on, the algorithm module is directly connected to the MCU main control chip; when the UART switch is turned off, the algorithm module is directly connected to the video main control chip, and the video main control directly sends the firmware package to the algorithm module to complete the firmware transmission, thereby improving OTA transmission efficiency.

[0057] In addition, in an embodiment of the present disclosure, the present disclosure can also determine the working status of the video main control chip and the door lock sensor respectively through the single-chip microcomputer chip, and the door lock sensor is connected to the single-chip microcomputer chip; if the single-chip microcomputer chip determines that the working status of the video main control chip and the door lock sensor are both idle, the serial port switch is controlled to close, the firmware package transmission path is determined, and the working mode switching notification is sent to the video main control chip; if the single-chip microcomputer chip determines that the working status of the video main chip is busy and / or the working status of the door lock sensor is busy, then after a preset period of time, the serial port switch is controlled to close, the firmware package transmission path is determined, and the working mode switching notification is sent to the video main control chip.

[0058] At the same time, the present invention can also receive preset idle period information; based on the preset idle period information, within the preset idle period, in response to the upgrade instruction, the serial port switch is closed through the single-chip microcomputer chip to obtain the firmware package transmission path, and the working mode switching notification is sent to the video main control chip.

[0059] Step 204: Based on the working mode switching notification, the video main control chip switches the normal working mode to the big data interaction mode.

[0060] In one embodiment of the present disclosure, when the video main control chip receives a working mode switching notification, it can switch the current normal working mode to the big data interaction mode.

[0061] Step 205: The video main control chip transmits the firmware package to the algorithm module according to the firmware package transmission path and the big data interaction mode.

[0062] In one embodiment of the present disclosure, the present disclosure may utilize a video master control chip to transmit the firmware package to an algorithm module based on the aforementioned determined firmware package transmission path and big data interaction mode.

[0063] In addition, in the embodiments of the present disclosure, the abundant resources of the video master can also be utilized. The video master chip can be connected to the server via WiFi or a wired network to ensure that the video is uploaded to the cloud service. The video master can also cache the algorithm module OTA firmware package via WiFi or a wired network and perform signature verification on it. That is, the video master chip receives the firmware package transmitted by the remote server via wireless communication, and performs signature verification on the firmware package to determine whether the firmware package is complete. If the video master chip determines that the firmware package is complete, the firmware package is transmitted to the algorithm module according to the big data interaction mode and the firmware package transmission path.

[0064] Step 206 : Send a baud rate mode adjustment notification to the algorithm module and a serial port switch opening notification to the single-chip microcomputer chip via the video main control chip, so that the algorithm module converts the high baud rate mode to the low baud rate mode and the single-chip microcomputer chip controls the serial port switch to open.

[0065] In one embodiment of the present disclosure, when the big data interaction ends, the present disclosure can use the video main control chip to notify the algorithm module to switch back to the normal working mode, and at the same time notify the low-power microcontroller to turn on the serial port switch.

[0066] To sum up, according to the embodiments of the present disclosure, it is possible to reduce link transit during big data interaction by switching between different working modes, without being restricted by the resources of the single-chip microcontroller main control chip, thereby improving data transmission efficiency. At the same time, by utilizing the rich resources of the video main control, the video main control can cache the algorithm module OTA firmware package and perform signature verification and other tasks on it to ensure the legitimacy of the OTA data packet.

[0067] based on Figure 1 、 Figure 2 In the embodiment shown, the present disclosure provides a smart door lock firmware package upgrade system, such as Figure 3 The figure shows a framework diagram of a smart door lock firmware package upgrade system provided by an embodiment of the present disclosure. Figure 4 As shown, the present disclosure also provides a framework diagram of a specific smart door lock firmware package upgrade system.

[0068] In some embodiments of the present disclosure, the system includes: an algorithm module, a video main control chip, a single-chip microcomputer chip, a serial port switch, a communication module and a cloud server; the single-chip microcomputer chip is connected to the video main control chip, and the single-chip microcomputer chip and the video main control chip are connected to the algorithm module; the serial port switch is connected to the single-chip microcomputer chip, the video main control chip and the algorithm module, and the single-chip microcomputer chip controls the closing and opening of the serial port switch; the video main control chip and the cloud server are connected through a communication module, and the communication module is used to realize remote communication between the main control module and the remote server.

[0069] Specifically, refer to Figure 4 As shown in the figure, a serial port switch (UART switch) is added to the hardware architecture to switch the UART path of the algorithm module: when the video main control chip is in normal working mode, the UART switch is turned on, and the algorithm module is directly connected to the MCU main control chip to complete the specific algorithm recognition function, namely the D->F path (UART); when executing the algorithm firmware upgrade, the UART switch is closed. At this time, the algorithm module is directly connected to the video main control chip. The video main control directly sends the firmware package to the algorithm module to complete the firmware transmission, thereby improving OTA efficiency. In other words, when the working mode is normal working mode, the downlink data flow is: A->B->C->D->F; when the working mode is big data interaction mode (algorithm module OTA upgrade), the downlink data flow is: A->B->E->F.

[0070] In summary, compared with the prior art, in the embodiments disclosed herein, the firmware upgrade time is reduced from 1 hour to less than 10 minutes. By switching different UART channels, the link transit during big data interaction is reduced, and it is not limited by the resources of the single-chip microcontroller main control chip, thereby improving data transmission efficiency. At the same time, by utilizing the rich resources of the video main control, the video main control can cache the algorithm module OTA firmware package and perform signature verification and other tasks on it to ensure the legitimacy of the OTA data packet.

[0071] Corresponding to the above-mentioned smart door lock firmware package upgrade method, the present disclosure also proposes a smart door lock firmware package upgrade device. Figure 5 Schematic diagram of the structure of a smart door lock firmware package upgrade device 500 provided in an embodiment of the present disclosure. Figure 5 As shown, the device includes:

[0072] The control unit 510 is configured to respond to the upgrade instruction, control the serial port switch to close via the single-chip microcontroller chip, determine the firmware package transmission path, and send a working mode switching notification corresponding to the firmware package transmission path to the video main control chip. The video main control chip and the serial port switch are both connected to the single-chip microcontroller chip.

[0073] A switching unit 520 is configured to switch the normal working mode to the big data interaction mode based on the working mode switching notification of the video main control chip. The normal working mode means that the video main control chip transmits data at a low baud rate, and the big data interaction mode means that the video main control chip transmits data at a high baud rate.

[0074] The transmission unit 530 is used to transmit the firmware package to the algorithm module through the video main control chip according to the firmware package transmission path and big data interaction mode. The algorithm module is connected to the video main control chip through a serial port switch.

[0075] In some embodiments, the control unit 510 is also used to control the closure of the serial port switch through the single-chip microcomputer chip in response to an upgrade instruction, determine the firmware package transmission path, and send the working mode switching notification corresponding to the firmware package transmission path to the video main control chip. Previously, in response to the upgrade instruction, a baud rate mode adjustment notification is sent to the algorithm module through the single-chip microcomputer chip, and the single-chip microcomputer chip is connected to the algorithm module through the serial port switch; based on the baud rate mode adjustment notification, the algorithm module adjusts the low baud rate mode to the high baud rate mode, so that the firmware package transmitted by the video main control chip is received by the algorithm module according to the high baud rate mode.

[0076] In some embodiments, the control unit 510 is also used to transmit the firmware package to the algorithm module through the video main control chip according to the firmware package transmission path and the big data interaction mode, and then send a baud rate mode adjustment notification to the algorithm module through the video main control chip and a serial port switch start notification to the microcontroller chip, so that the algorithm module converts the high baud rate mode to the low baud rate mode and the microcontroller chip controls the serial port switch to turn on.

[0077] In some embodiments, the control unit 510 is used to: determine the working status of the video main control chip and the door lock sensor respectively through the single-chip microcomputer chip, and the door lock sensor is connected to the single-chip microcomputer chip; if the working status of the video main control chip and the door lock sensor are both determined to be idle through the single-chip microcomputer chip, then control the serial port switch to close, determine the firmware package transmission path, and send the working mode switching notification to the video main control chip; if the working status of the video main chip is determined to be busy and / or the working status of the door lock sensor is busy through the single-chip microcomputer chip, then after a preset period of time, control the serial port switch to close, determine the firmware package transmission path, and send the working mode switching notification to the video main control chip.

[0078] In some embodiments, the control unit 510 is used to: receive preset idle period information; based on the preset idle period information, within the preset idle period, in response to the upgrade instruction, control the serial port switch to close through the single-chip microcomputer chip, obtain the firmware package transmission path, and send the working mode switching notification to the video main control chip.

[0079] In some embodiments, the transmission unit 530 is used to: receive the firmware package transmitted by the remote server through wireless communication through the video main control chip, and perform signature verification on the firmware package to determine whether the firmware package is complete; if the firmware package is determined to be complete through the video main control chip, the firmware package is transmitted to the algorithm module according to the big data interaction mode and the firmware package transmission path.

[0080] According to an embodiment of the present disclosure, through the smart door lock firmware package upgrade device, in response to the upgrade instruction, the serial port switch is controlled to be closed through the single-chip microcomputer chip, the firmware package transmission path is determined, and the working mode switching notification corresponding to the firmware package transmission path is sent to the video main control chip, and the video main chip and the serial port switch are both connected to the single-chip microcomputer chip; based on the working mode switching notification, the video main chip switches the normal working mode to the big data interaction mode, the normal working mode means that the video main control chip transmits data at a low baud rate, and the big data interaction module means that the video main chip transmits data at a high baud rate; the video main chip transmits the firmware package to the algorithm module according to the firmware package transmission path and the big data interaction mode, and the algorithm module is connected to the video main chip through the serial port switch, so as to achieve the reduction of link transit during big data interaction by switching different firmware package transmission paths and working modes, and at the same time is not limited by the resources of the single-chip microcomputer main control chip, thereby improving data transmission efficiency.

[0081] It should be noted that since the device embodiment of the present disclosure corresponds to the above-mentioned method embodiment, the above-mentioned explanation of the method embodiment is also applicable to the device of this embodiment, and the principles are the same. For details not disclosed in the device embodiment, reference can be made to the above-mentioned method embodiment, and they will not be repeated in this disclosure.

[0082] According to an embodiment of the present disclosure, the present disclosure also provides a smart door, including the smart door lock firmware package upgrading device as described above or the electronic device as described below.

[0083] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0084] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are provided as examples only and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0085] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 into a RAM (Random Access Memory) 603. Various programs and data required for the operation of the device 600 can also be stored in the RAM 603. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An I / O (Input / Output) interface 605 is also connected to the bus 604.

[0086] Various components in device 600 are connected to I / O interface 605, including an input unit 606, such as a keyboard, mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a magnetic disk, optical disk, etc.; and a communication unit 609, such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows device 600 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0087] The computing unit 601 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Unit), various specialized AI (Artificial Intelligence) computing chips, various computing units that run machine learning model algorithms, a DSP (Digital Signal Processor), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as the method for upgrading the smart door lock firmware package. For example, in some embodiments, the method for upgrading the smart door lock firmware package can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method described above can be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the aforementioned method for upgrading the smart door lock firmware package in any other appropriate manner (for example, by means of firmware).

[0088] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application-Specific Standard Products), SOCs (System on Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0089] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0090] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0091] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0092] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0093] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. This client-server relationship is established by computer programs running on the respective computers, establishing a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and VPS services ("Virtual Private Servers" or simply "VPS"). The server may also be a server in a distributed system or a server integrated with blockchain.

[0094] It's important to note that artificial intelligence (AI) is the study of how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, and planning). This encompasses both hardware and software technologies. AI hardware technologies generally include sensors, specialized AI chips, cloud computing, distributed storage, and big data processing. AI software technologies primarily encompass computer vision, speech recognition, natural language processing, machine learning / deep learning, big data processing, and knowledge graphs.

[0095] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not a limitation herein.

[0096] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.

Claims

1. A method for upgrading a smart door lock firmware package, characterized in that: The method comprises: In response to the upgrade instruction, the single-chip microcomputer chip controls the serial port switch to close, determines the firmware package transmission path, and sends a working mode switching notification corresponding to the firmware package transmission path to the video main control chip, wherein the video main control chip and the serial port switch are both connected to the single-chip microcomputer chip; The video main control chip switches the normal working mode to the big data interaction mode based on the working mode switching notification, wherein the normal working mode refers to that the video main control chip performs data transmission at a low baud rate, and the big data interaction module refers to that the video main control chip performs data transmission at a high baud rate; The firmware package is transmitted to the algorithm module through the video main control chip according to the firmware package transmission path and the big data interaction mode, and the algorithm module is connected to the video main control chip through the serial port switch.

2. The method according to claim 1, characterized in that In response to the upgrade instruction, the method further includes: controlling the serial port switch to be closed by the single-chip microcomputer chip, determining the firmware package transmission path, and sending a working mode switching notification corresponding to the firmware package transmission path to the video main control chip. In response to the upgrade instruction, a baud rate mode adjustment notification is sent to the algorithm module via the single-chip microcomputer chip, and the single-chip microcomputer chip is connected to the algorithm module via the serial port switch; The algorithm module adjusts the low baud rate mode to the high baud rate mode based on the baud rate mode adjustment notification, so as to receive the firmware package transmitted by the video main control chip through the algorithm module according to the high baud rate mode.

3. The method according to claim 1, characterized in that The method includes: transmitting the firmware package to the algorithm module through the video main control chip according to the firmware package transmission path and the big data interaction mode; The video main control chip sends a baud rate mode adjustment notification to the algorithm module and a serial port switch opening notification to the single-chip microcomputer chip, so that the algorithm module converts the high baud rate mode to the low baud rate mode and the single-chip microcomputer chip controls the serial port switch to be turned on.

4. The method according to claim 1, wherein The step of responding to the upgrade instruction, controlling the serial port switch to close by the single-chip microcomputer chip, determining the firmware package transmission path, and sending the working mode switching notification corresponding to the firmware package transmission path to the video main control chip includes: Determining the working status of the video main control chip and the door lock sensor respectively through the single-chip microcomputer chip, and the door lock sensor is connected to the single-chip microcomputer chip; If it is determined through the single-chip microcomputer chip that the working states of the video main control chip and the door lock sensor are both in an idle state, the serial port switch is controlled to be closed, the firmware package transmission path is determined, and the working mode switching notification is sent to the video main control chip; If the single-chip microcomputer chip determines that the working state of the video main control chip is busy and / or the working state of the door lock sensor is busy, then after a preset period of time, the serial port switch is controlled to close, the firmware package transmission path is determined, and the working mode switching notification is sent to the video main control chip.

5. The method according to claim 1, wherein The step of responding to the upgrade instruction, controlling the serial port switch to close by the single-chip microcomputer chip, determining the firmware package transmission path, and sending the working mode switching notification corresponding to the firmware package transmission path to the video main control chip includes: Receiving preset idle time period information; Based on the preset idle period information, within the preset idle period, in response to the upgrade instruction, the serial port switch is controlled to close through the single-chip microcomputer chip, the firmware package transmission path is obtained, and the working mode switching notification is sent to the video main control chip.

6. The method according to claim 1, characterized in that The transmitting the firmware package to the algorithm module through the video main control chip according to the firmware package transmission path and the big data interaction mode includes: Receiving a firmware package transmitted by a remote server via wireless communication through the video main control chip, and performing a signature verification on the firmware package to determine whether the firmware package is complete; If the video main control chip determines that the firmware package is complete, the firmware package is transmitted to the algorithm module according to the big data interaction mode and the firmware package transmission path.

7. A smart door lock firmware package upgrade device, characterized in that: The device comprises: a control unit, configured to respond to an upgrade instruction, control the closing of a serial port switch via the single-chip microcomputer chip, determine a firmware package transmission path, and send a working mode switching notification corresponding to the firmware package transmission path to a video main control chip, wherein both the video main control chip and the serial port switch are connected to the single-chip microcomputer chip; a switching unit, configured to switch the normal working mode to the big data interaction mode based on the working mode switching notification via the video main control chip, wherein the normal working mode refers to the video main control chip performing data transmission at a low baud rate, and the big data interaction mode refers to the video main control chip performing data transmission at a high baud rate; A transmission unit is used to transmit the firmware package to the algorithm module through the video main control chip according to the firmware package transmission path and the big data interaction mode, and the algorithm module is connected to the video main control chip through the serial port switch.

8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.

10. A smart door, characterized in that: It includes the smart door lock firmware package upgrading device as described in claim 7 or the electronic device as described in claim 8.