CN111258603A - Intelligent door lock firmware upgrading method and intelligent door lock - Google Patents

Intelligent door lock firmware upgrading method and intelligent door lock Download PDF

Info

Publication number
CN111258603A
CN111258603A CN202010027580.9A CN202010027580A CN111258603A CN 111258603 A CN111258603 A CN 111258603A CN 202010027580 A CN202010027580 A CN 202010027580A CN 111258603 A CN111258603 A CN 111258603A
Authority
CN
China
Prior art keywords
firmware
door lock
intelligent door
upgrading
camera module
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010027580.9A
Other languages
Chinese (zh)
Inventor
刘波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Smart Home Systems Co ltd
Hisense Group Co Ltd
Hisense Co Ltd
Original Assignee
Qingdao Hisense Smart Home Systems Co ltd
Hisense Co Ltd
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 Qingdao Hisense Smart Home Systems Co ltd, Hisense Co Ltd filed Critical Qingdao Hisense Smart Home Systems Co ltd
Priority to CN202010027580.9A priority Critical patent/CN111258603A/en
Publication of CN111258603A publication Critical patent/CN111258603A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The invention discloses an intelligent door lock firmware upgrading method and an intelligent door lock, wherein the method comprises the steps that a main control chip of the intelligent door lock acquires firmware upgrading information sent by a camera module of the intelligent door lock, the firmware upgrading information comprises a firmware data packet and a data check code, the firmware upgrading information is downloaded from a cloud end by the camera module through a WiFi module after a user issues a firmware upgrading instruction to the camera module through a client APP when confirming that a new version of firmware is available at present, the firmware data packet is verified according to the data check code, and the firmware data packet which passes the verification is burnt to Flash after the verification is confirmed to pass. The WiFi module downloads the firmware from the cloud end in the camera module of the intelligent door lock and carries out firmware upgrading, so that the safety and the upgrading efficiency of firmware upgrading can be improved, the firmware upgrading cost is reduced, the on-site upgrading of workers is not needed, and the user experience is improved.

Description

Intelligent door lock firmware upgrading method and intelligent door lock
Technical Field
The embodiment of the invention relates to the technical field of intelligent home furnishing, in particular to an intelligent door lock firmware upgrading method and an intelligent door lock.
Background
At present, the intelligent door lock generally adopts a low-power-consumption zigbee scheme based on the consideration of low power consumption, low cost, low time delay, system integration, battery endurance and the like, which also causes the zigbee protocol to become the main design scheme of the intelligent door lock. However, due to these characteristics of the Zigbee protocol, the Zigbee protocol has short communication distance, low speed, and high susceptibility to interference, which causes limitations in application.
Most of intelligent door locks based on the Zigbee protocol are not designed with functions of firmware upgrading and the like, and the main reasons are that packet loss and low efficiency can occur during large-capacity data transmission due to short transmission distance, environmental interference and low speed of the Zigbee protocol, and the like, and the firmware version can not be completely downloaded after repeated retransmission attempts, so that the upgrading time is long, the experience is poor, and the upgrading risk is high. When the firmware of the existing intelligent door lock is upgraded, the firmware of the existing intelligent door lock is upgraded by a worker on site in a USB mode, so that the user experience is low.
Disclosure of Invention
The embodiment of the invention provides an intelligent door lock firmware upgrading method and an intelligent door lock, which are used for solving the problem of low efficiency caused by manual door-entry upgrading required in the existing door lock firmware upgrading, improving the intelligent door lock firmware upgrading efficiency and improving the user experience.
In a first aspect, an embodiment of the present invention provides a method for upgrading a firmware of an intelligent door lock, including:
the method comprises the steps that a main control chip of the intelligent door lock obtains firmware upgrading information sent by a camera module of the intelligent door lock, wherein the firmware upgrading information comprises a firmware data packet and a data check code; the firmware upgrading information is downloaded from a cloud end by the camera module through a WiFi module after a user issues a firmware upgrading instruction to the camera module through a client APP when confirming that a new version of firmware is available currently;
the main control chip of the intelligent door lock checks the firmware data packet according to the data check code;
and after the main control chip of the intelligent door lock confirms that the verification is passed, burning the firmware data packet passed by the verification to Flash.
Among the above-mentioned technical scheme, the wiFi module carries out firmware upgrading from high in the clouds downloading in the camera module through intelligent lock, can improve the security and the upgrading efficiency of firmware upgrading, reduces firmware upgrading cost, need not staff's field upgrade of going to the door, promotes user experience.
Optionally, before burning the firmware data packet passing the verification to Flash, the method further includes:
the method comprises the steps that a main control chip of the intelligent door lock judges whether the current electric quantity is larger than a first threshold value, if yes, firmware upgrading is carried out, and firmware prompt information is displayed to a user through a display screen of the intelligent door lock, otherwise, firmware upgrading is suspended, and warning information that the current electric quantity is insufficient is displayed to the user through the display screen of the intelligent door lock.
Optionally, after the firmware data packet passing the verification is burned into Flash, the method further includes:
the main control chip of the intelligent door lock displays prompt information of firmware upgrading completion to a user through the display screen of the intelligent door lock, and controls the camera module and the display screen to enter a standby state after preset time.
Optionally, the method further includes:
and if the main control chip of the intelligent door lock determines that the firmware data packet cannot be verified, feeding back the firmware data packet to the camera module and requesting retransmission.
In a second aspect, an embodiment of the present invention provides a method for upgrading firmware of an intelligent door lock, including:
after a camera module of the intelligent door lock acquires a firmware upgrading instruction issued by a client APP, downloading firmware upgrading information of a new version from a cloud end through a WiFi module, wherein the firmware upgrading information comprises a firmware data packet and a data check code; the firmware upgrading instruction is issued by the client APP through the cloud when the user confirms that the firmware of the new version is available currently;
and after the camera module of the intelligent door lock verifies the firmware data packet according to the data verification code, the camera module sends the firmware upgrading information to a main control chip of the intelligent door lock so as to enable the main control chip to carry out firmware upgrading operation.
Optionally, before acquiring the firmware upgrading instruction issued by the client APP, the camera module of the intelligent door lock further includes:
the camera module of intelligence lock is opened after receiving the instruction of awakening up to client APP sends the information of awakening up successfully.
Optionally, the method further includes:
if the firmware data packet is not verified through the camera module of the intelligent door lock according to the data verification code, sending a downloading failure message to the cloud end and requesting retransmission;
and after the camera module of the intelligent door lock determines that the retransmission times are larger than a second threshold value, the failure of firmware upgrading is confirmed, and an upgrading failure message is fed back to the client APP through the cloud.
In a third aspect, an embodiment of the present invention provides an apparatus for upgrading firmware of an intelligent door lock, including:
the acquisition unit is used for acquiring firmware upgrading information sent by a camera module of the intelligent door lock, and the firmware upgrading information comprises a firmware data packet and a data check code; the firmware upgrading information is downloaded from a cloud end by the camera module through a WiFi module after a user issues a firmware upgrading instruction to the camera module through a client APP when confirming that a new version of firmware is available currently;
the processing unit is used for verifying the firmware data packet according to the data verification code; and after the verification is confirmed to pass, burning the firmware data packet passing the verification to Flash.
Optionally, the processing unit is further configured to:
and before the firmware data packet passing the verification is burnt to Flash, judging whether the current electric quantity is greater than a first threshold value, if so, upgrading the firmware and displaying firmware prompt information to a user through a display screen of the intelligent door lock, and otherwise, suspending the upgrading of the firmware and displaying warning information that the current electric quantity is insufficient to the user through the display screen of the intelligent door lock.
Optionally, the processing unit is further configured to:
after the firmware data packet passing the verification is burnt to Flash, prompt information of firmware upgrading completion is displayed to a user through a display screen of the intelligent door lock, and the camera module and the display screen are controlled to enter a standby state after preset time.
Optionally, the processing unit is further configured to:
and if the firmware data packet is determined not to pass the verification, feeding back the camera module and requesting retransmission.
In a fourth aspect, an embodiment of the present invention provides an apparatus for upgrading a firmware of an intelligent door lock, including:
the detection unit is used for downloading firmware upgrading information of a new version from a cloud end through a WiFi module after a firmware upgrading instruction issued by a client APP is acquired, wherein the firmware upgrading information comprises a firmware data packet and a data check code; the firmware upgrading instruction is issued by the client APP through the cloud when the user confirms that the firmware of the new version is available currently;
and the processing unit is used for sending the firmware upgrading information to a main control chip of the intelligent door lock after the firmware data packet is verified according to the data verification code so as to enable the main control chip to carry out firmware upgrading operation.
Optionally, the processing unit is further configured to:
before a firmware upgrading instruction issued by a client APP is acquired, the client APP is started after a wake-up instruction is received, and information of successful wake-up is sent to the client APP.
Optionally, the processing unit is further configured to:
if the firmware data packet is not verified according to the data verification code, sending a download failure message to the cloud end and requesting retransmission;
and after the retransmission times are determined to be larger than a second threshold value, confirming that the firmware upgrading fails, and feeding back an upgrading failure message to the client APP through the cloud.
In a fifth aspect, an embodiment of the present invention provides an intelligent door lock, including: the camera module and the main control chip are arranged on the main control chip;
the camera module is used for downloading firmware upgrading information of a new version from a cloud end through a WiFi module after a firmware upgrading instruction issued by a client APP is acquired, wherein the firmware upgrading information comprises a firmware data packet and a data check code; the firmware upgrading instruction is issued by the client APP through the cloud when the user confirms that the firmware of the new version is available currently; after the firmware data packet is verified according to the data verification code, sending the firmware upgrading information to the main control chip;
the main control chip is used for verifying the firmware data packet according to the data verification code; and after the verification is confirmed to pass, burning the firmware data packet passing the verification to Flash.
In a sixth aspect, an embodiment of the present invention further provides an intelligent door lock, including:
a memory for storing program instructions;
and the processor is used for calling the program instruction stored in the memory and executing the method for upgrading the intelligent door lock firmware according to the obtained program.
In a seventh aspect, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is caused to execute the method for upgrading the firmware of the intelligent door lock.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for upgrading firmware of an intelligent door lock according to an embodiment of the present invention;
fig. 3 is a schematic diagram of information displayed by an intelligent door lock according to an embodiment of the present invention;
fig. 4 is a schematic diagram of information displayed by an intelligent door lock according to an embodiment of the present invention;
fig. 5 is a schematic diagram of information displayed by an intelligent door lock according to an embodiment of the present invention;
fig. 6 is a schematic diagram of information displayed by an intelligent door lock according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for upgrading firmware of an intelligent door lock according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for upgrading firmware of an intelligent door lock according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an intelligent door lock according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 exemplarily shows a system architecture to which an embodiment of the present invention is applicable, where the system architecture may be an intelligent door lock control system, and the system may include a client APP100, a cloud 200, a network device 300, and an intelligent door lock 400.
The client APP100 may be installed on a terminal device, such as a mobile phone, a tablet computer, and the like. The client APP100 is provided with a firmware upgrading module, and can actively detect whether a new version is available at a server, when the new version is available, prompt a user that a new firmware version exists, and simultaneously show the version number and new functions of the current firmware to the user, where the new functions may include the problem of introduction and modification of the upgraded function, for example, the new functions are the newly added remote unlocking function and the operation bug solution. The user may issue a firmware upgrade instruction through the client APP 100.
The cloud 200 is provided with a video server, a door lock service server, a firmware file and upgrade server, and is used for providing video service, door lock service and releasing firmware upgrade information of a new version. The maintenance and storage of information such as firmware version numbers, newly added functions, problem solving lists and the like on the cloud 200 are realized. Each firmware data packet will have a corresponding data check code operated based on MD5 hash algorithm for performing integrity check during downloading. The cloud 200 may also issue a door lock instruction, for example, an instruction for controlling the door lock to be opened or closed, or receive status information of the intelligent door lock 400 managed and controlled by the cloud, which is reported by the wireless/wired gateway in the network device 300.
The network device 300 may include a wireless/wired gateway and a router/switch, where the wireless/wired gateway may communicate with the router/switch in a WiFi or wired manner, establish a ZigBee network, issue a lock instruction to a ZigBee module of the smart lock 400 through the ZigBee network, or receive status information reported by the smart lock 400, and transmit the status information to the cloud 200.
The intelligent door lock 400 can comprise a ZigBee module, a door lock main board and a camera module, the ZigBee module, the door lock main board and the camera module are communicated through a uart serial port, the ZigBee module is used for communicating with the network equipment 300, a door lock instruction issued by the network equipment 300 is obtained, the door lock instruction is sent to the door lock main board through the uart serial port, state information of the door lock main board or the camera module is received through the uart serial port, and the state information is reported to a wireless/wired gateway in the network equipment 300. If the door lock instruction controls the camera module, the door lock mainboard sends the door lock instruction to the camera module through the uart serial port. The camera module is used for downloading firmware upgrading information from a cloud through a WiFi network, sending the firmware upgrading information to the door lock mainboard through a uart serial port, and transmitting the state information of the camera module to the door lock mainboard through the uart serial port so that the door lock mainboard sends the state information to the ZigBee module through the uart serial port. The door lock mainboard is used for executing a door lock instruction and providing various functions of the door lock, sending state information to the ZigBee module through the uart serial port, and carrying out firmware upgrading operation after receiving firmware upgrading information through the uart serial port. The door lock mainboard is provided with a main control chip, a key module, a fingerprint module, a display screen, a Flash, a memory, an erasing service, a data verification module and a firmware receiving module. The camera module comprises a WiFi module, a camera module, an infrared detection module and an upgrading service module. The WiFi module may communicate with the cloud 200 through a WiFi network, and download the firmware upgrade information from the cloud 200. The firmware upgrading information comprises a firmware data packet and a data check code, and the upgrading service module can send the downloaded firmware upgrading information to a firmware receiving module of the mainboard through a uart serial port after the firmware data packet is checked according to the data check code.
It should be noted that the structure shown in fig. 1 is only an example, and the embodiment of the present invention is not limited thereto.
Based on the above description, fig. 2 shows in detail the flow of the method for upgrading the firmware of the intelligent door lock according to the embodiment of the present invention, where the flow may be executed by an apparatus for upgrading the firmware of the intelligent door lock. The firmware upgrading process will be described in the following by means of interaction between the main control chip and the camera module.
As shown in fig. 2, the process specifically includes:
in step 201, after acquiring a firmware upgrading instruction issued by a client APP, a camera module downloads new firmware upgrading information from a cloud through a WiFi module.
In an embodiment of the present invention, the firmware upgrade information may include a firmware data packet and a data check code. The firmware upgrading instruction is issued by a client APP through a cloud when a user confirms that a new version of firmware is available at present, and before the instruction is received, the camera module is started after the instruction is received and sends information of successful awakening to the client APP. Firstly, a client APP sends a wake-up instruction to a camera module, the camera module is in a working state after receiving the wake-up instruction, response information of successful wake-up is sent to the client APP, and after receiving the response information of successful wake-up, the client APP sends a firmware upgrading instruction to the camera module through a cloud.
A user detects whether the cloud currently has a new version of firmware through the client APP, and if yes, a firmware upgrading instruction can be issued. Because the consumption reason, the camera module is in standby state, need at first awaken the camera module up, and the camera module will awaken up the success state and return to customer end APP, and customer end APP sends down firmware upgrading instruction for the camera module according to awakening the success state.
And after the camera module receives a firmware upgrading instruction issued by the client APP, the upgrading service module is started, and cloud service connection and the downloading work of the firmware upgrading information of the new version are started. The cloud service connection refers to connection of a firmware file and an upgrade server in a cloud end.
Because camera module itself just can carry out network access through the wiFi module in order to realize sending the camera video stream for customer end APP through the high in the clouds, so the operation such as the server connection, authentication, inquiry, download that the service module of upgrading can be very convenient multiplex wiFi module and interface, carries out the high in the clouds, and wherein, the server connection of high in the clouds indicates the firmware file and the upgrade server of connecting the high in the clouds. Meanwhile, based on the WiFi communication protocol, the transmission rate is high, a retransmission and verification mechanism is provided, the transmission of firmware upgrading information can be efficiently and safely realized, and the problem of short board transmission of the ZigBee protocol to large data volume is well solved.
Due to the fact that the downloading of the firmware upgrading information is achieved through the multiplexing WiFi module, in the downloading process of the firmware upgrading information, the video stream collected by the camera module cannot be sent to the cloud end through the WiFi module, and the video stream can be sent only after the downloading of the firmware upgrading information is completed.
Step 202, after the camera module verifies the firmware data packet according to the data verification code, sending the firmware upgrading information to a main control chip.
Optionally, if the firmware data packet is not checked according to the data check code, the camera module sends a download failure message to the cloud and requests retransmission, confirms that the firmware is failed to be upgraded after determining that the retransmission times are greater than the second threshold, and feeds back the upgrade failure message to the client APP through the cloud. The second threshold may be set empirically.
When the downloading of the firmware upgrading information is finished, firstly, the integrity of a firmware data packet in the firmware upgrading information is checked by using a data check code based on an MD5 hash algorithm, the subsequent firmware upgrading operation can be continued only after the verification is successful, otherwise, a downloading failure message is reported, the retransmission is requested, the number of times is set, when the retransmission exceeds the set number of times, the upgrading failure is determined, and the upgrading failure message is fed back to the client side APP through the cloud.
When the firmware data packet is successfully verified, the upgrading service module transmits firmware upgrading information to a firmware receiving module of the door lock mainboard through the uart serial port, and the firmware receiving module receives the firmware upgrading information and stores the firmware upgrading information in the memory so that the firmware upgrading information is read from the memory for burning in the firmware upgrading operation process.
And 203, the main control chip checks the firmware data packet according to the data check code.
The main control chip acquires firmware upgrading information sent by the camera module. A firmware packet integrity check may be performed from the MD5 check using a data check code. And if the firmware data packet is determined not to pass the verification, feeding back the firmware data packet to the camera module and requesting retransmission.
It should be noted that, after detecting an interrupt message that the uart serial port has data, the firmware receiving module of the main control chip receives the firmware upgrade information in an agreed baud rate and parity check manner, and since a large amount of data transmission has an influence on the operating mode of the main control chip, in the firmware upgrade information receiving process, the main control chip actively performs prompt information display of a display screen, "please perform a door lock operation … later in the downloading upgrade of the door lock firmware", as shown in fig. 3.
After the firmware receiving module of the main control chip finishes receiving the firmware upgrading information, firstly, data integrity check is carried out on a firmware data packet by using a data check code according to MD5, and if the data integrity check fails, message feedback is carried out and retransmission is requested; and when the verification is successful, continuing to perform subsequent upgrading operation.
And step 204, after the main control chip confirms that the verification is passed, burning the firmware data packet passed by the verification to Flash.
Before burning the verified firmware data packet into Flash, the main control chip needs to judge whether the current electric quantity is greater than a first threshold, if so, the firmware is upgraded and the prompt information of the firmware is displayed to a user through a display screen, otherwise, the firmware upgrade is suspended and the warning information of the current insufficient electric quantity is displayed to the user through the display screen, as shown in fig. 4. The first threshold may be set empirically, for example the first threshold may be 10%. The main control chip carries out firmware upgrading, namely, the firmware data packet is burnt into Flash.
The erasing service of the main control chip reads the firmware data packet which passes the verification from the memory, and then the firmware data packet which passes the verification is burnt into Flash, and the process is realized only through erasing, namely, the original firmware data packet in Flash is erased, and then the firmware data packet of a new version is written into the Flash. Because the safety requirement of the process is high, the system electric quantity required by the upgrade needs to be ensured, so that whether the current electric quantity meets the upgrade requirement needs to be judged, and after the upgrade requirement is determined to be met, a user is prompted to avoid powering off and do other operations through a screen, as shown in fig. 5.
In addition, after the verified firmware data packet is burnt into Flash, the main control chip displays prompt information of firmware upgrading completion to a user through the display screen, and controls the camera module and the display screen to enter a standby state after preset time. The preset time may be set empirically. In order to realize low power consumption, the camera module and the display screen need to be controlled to enter a standby state.
That is, after the firmware upgrade is completed, the main control chip displays "firmware upgrade is completed, version number 2020.01.01" through the display screen, as shown in fig. 6. And after the specified time delay of the standby state, actively closing the camera module and the display screen, and enabling the camera module and the display screen to enter the standby state with low power consumption.
The embodiment shows that the main control chip of the intelligent door lock acquires firmware upgrading information sent by a camera module of the intelligent door lock, the firmware upgrading information comprises a firmware data packet and a data check code, the firmware upgrading information is downloaded from the cloud end by the camera module through a WiFi module after a user issues a firmware upgrading instruction to the camera module through a client APP when confirming that a new version of firmware is available at present, the firmware data packet is verified according to the data check code, and the firmware data packet which passes the verification is burnt to Flash after the verification is confirmed. The WiFi module downloads the firmware from the cloud end in the camera module of the intelligent door lock and carries out firmware upgrading, so that the safety and the upgrading efficiency of firmware upgrading can be improved, the firmware upgrading cost is reduced, the on-site upgrading of workers is not needed, and the user experience is improved.
Based on the same technical concept, fig. 7 exemplarily shows the structure of an apparatus for upgrading the firmware of the intelligent door lock, which can perform the process of upgrading the firmware of the intelligent door lock according to an embodiment of the present invention.
As shown in fig. 7, the apparatus specifically includes:
the acquiring unit 701 is configured to acquire firmware upgrade information sent by a camera module of the intelligent door lock, where the firmware upgrade information includes a firmware data packet and a data check code; the firmware upgrading information is downloaded from a cloud end by the camera module through a WiFi module after a user issues a firmware upgrading instruction to the camera module through a client APP when confirming that a new version of firmware is available currently;
a processing unit 702, configured to verify the firmware data packet according to the data verification code; and after the verification is confirmed to pass, burning the firmware data packet passing the verification to Flash.
Optionally, the processing unit 702 is further configured to:
and before the firmware data packet passing the verification is burnt to Flash, judging whether the current electric quantity is greater than a first threshold value, if so, upgrading the firmware and displaying firmware prompt information to a user through a display screen of the intelligent door lock, and otherwise, suspending the upgrading of the firmware and displaying warning information that the current electric quantity is insufficient to the user through the display screen of the intelligent door lock.
Optionally, the processing unit 702 is further configured to:
after the firmware data packet passing the verification is burnt to Flash, prompt information of firmware upgrading completion is displayed to a user through a display screen of the intelligent door lock, and the camera module and the display screen are controlled to enter a standby state after preset time.
Optionally, the processing unit 702 is further configured to:
and if the firmware data packet is determined not to pass the verification, feeding back the camera module and requesting retransmission.
Based on the same technical concept, fig. 8 exemplarily shows the structure of an apparatus for upgrading the firmware of the intelligent door lock, which can execute the process of upgrading the firmware of the intelligent door lock according to an embodiment of the present invention.
As shown in fig. 8, the apparatus includes:
the detection unit 801 is configured to download new firmware upgrade information from a cloud through a WiFi module after acquiring a firmware upgrade instruction issued by a client APP, where the firmware upgrade information includes a firmware data packet and a data check code; the firmware upgrading instruction is issued by the client APP through the cloud when the user confirms that the firmware of the new version is available currently;
and the processing unit 802 is configured to send the firmware upgrading information to a main control chip of the intelligent door lock after the firmware data packet is verified according to the data verification code, so that the main control chip performs firmware upgrading operation.
Optionally, the processing unit 802 is further configured to:
before a firmware upgrading instruction issued by a client APP is acquired, the client APP is started after a wake-up instruction is received, and information of successful wake-up is sent to the client APP.
Optionally, the processing unit 602 is further configured to:
if the firmware data packet is not verified according to the data verification code, sending a download failure message to the cloud end and requesting retransmission;
and after the retransmission times are determined to be larger than a second threshold value, confirming that the firmware upgrading fails, and feeding back an upgrading failure message to the client APP through the cloud.
Based on the same technical concept, an embodiment of the present invention further provides an intelligent door lock, as shown in fig. 9, the intelligent door lock includes: a camera module 901 and a main control chip 902;
the camera module 901 is configured to download new firmware upgrade information from a cloud through a WiFi module after acquiring a firmware upgrade instruction issued by a client APP, where the firmware upgrade information includes a firmware data packet and a data check code; the firmware upgrading instruction is issued by the client APP through the cloud when the user confirms that the firmware of the new version is available currently; after the firmware data packet is verified according to the data verification code, sending the firmware upgrading information to the main control chip 902;
the main control chip 902 is configured to verify the firmware data packet according to the data verification code; and after the verification is confirmed to pass, burning the firmware data packet passing the verification to Flash.
Based on the same technical concept, the embodiment of the invention also provides an intelligent door lock, which comprises:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method for upgrading the intelligent door lock firmware according to the obtained program.
Based on the same technical concept, the embodiment of the invention also provides a computer-readable non-volatile storage medium, which comprises computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is enabled to execute the method for upgrading the firmware of the intelligent door lock.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for upgrading firmware of an intelligent door lock is characterized by comprising the following steps:
the method comprises the steps that a main control chip of the intelligent door lock obtains firmware upgrading information sent by a camera module of the intelligent door lock, wherein the firmware upgrading information comprises a firmware data packet and a data check code; the firmware upgrading information is downloaded from a cloud end by the camera module through a WiFi module after a user issues a firmware upgrading instruction to the camera module through a client APP when confirming that a new version of firmware is available currently;
the main control chip of the intelligent door lock checks the firmware data packet according to the data check code;
and after the main control chip of the intelligent door lock confirms that the verification is passed, burning the firmware data packet passed by the verification to Flash.
2. The method of claim 1, wherein before burning the verified firmware data packet into Flash, the method further comprises:
the method comprises the steps that a main control chip of the intelligent door lock judges whether the current electric quantity is larger than a first threshold value, if yes, firmware upgrading is carried out, and firmware prompt information is displayed to a user through a display screen of the intelligent door lock, otherwise, firmware upgrading is suspended, and warning information that the current electric quantity is insufficient is displayed to the user through the display screen of the intelligent door lock.
3. The method of claim 1, wherein burning the verified firmware data packet into Flash further comprises:
the main control chip of the intelligent door lock displays prompt information of firmware upgrading completion to a user through the display screen of the intelligent door lock, and controls the camera module and the display screen to enter a standby state after preset time.
4. The method of any of claims 1 to 3, further comprising:
and if the main control chip of the intelligent door lock determines that the firmware data packet cannot be verified, feeding back the firmware data packet to the camera module and requesting retransmission.
5. A method for upgrading firmware of an intelligent door lock is characterized by comprising the following steps:
after a camera module of the intelligent door lock acquires a firmware upgrading instruction issued by a client APP, downloading firmware upgrading information of a new version from a cloud end through a WiFi module, wherein the firmware upgrading information comprises a firmware data packet and a data check code; the firmware upgrading instruction is issued by the client APP through the cloud when the user confirms that the firmware of the new version is available currently;
and after the camera module of the intelligent door lock verifies the firmware data packet according to the data verification code, the camera module sends the firmware upgrading information to a main control chip of the intelligent door lock so as to enable the main control chip to carry out firmware upgrading operation.
6. The method of claim 5, wherein before the camera module of the intelligent door lock acquires the firmware upgrading instruction issued by the client APP, the method further comprises:
the camera module of intelligence lock is opened after receiving the instruction of awakening up to client APP sends the information of awakening up successfully.
7. The method of claim 5 or 6, further comprising:
if the firmware data packet is not verified through the camera module of the intelligent door lock according to the data verification code, sending a downloading failure message to the cloud end and requesting retransmission;
and after the camera module of the intelligent door lock determines that the retransmission times are larger than a second threshold value, the failure of firmware upgrading is confirmed, and an upgrading failure message is fed back to the client APP through the cloud.
8. An intelligent door lock, comprising: the camera module and the main control chip are arranged on the main control chip;
the camera module is used for downloading firmware upgrading information of a new version from a cloud end through a WiFi module after a firmware upgrading instruction issued by a client APP is acquired, wherein the firmware upgrading information comprises a firmware data packet and a data check code; the firmware upgrading instruction is issued by the client APP through the cloud when the user confirms that the firmware of the new version is available currently; after the firmware data packet is verified according to the data verification code, sending the firmware upgrading information to the main control chip;
the main control chip is used for verifying the firmware data packet according to the data verification code; and after the verification is confirmed to pass, burning the firmware data packet passing the verification to Flash.
9. An intelligent door lock, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to perform the method of any of claims 1 to 7 in accordance with the obtained program.
10. A computer-readable non-transitory storage medium including computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1 to 7.
CN202010027580.9A 2020-01-10 2020-01-10 Intelligent door lock firmware upgrading method and intelligent door lock Pending CN111258603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010027580.9A CN111258603A (en) 2020-01-10 2020-01-10 Intelligent door lock firmware upgrading method and intelligent door lock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010027580.9A CN111258603A (en) 2020-01-10 2020-01-10 Intelligent door lock firmware upgrading method and intelligent door lock

Publications (1)

Publication Number Publication Date
CN111258603A true CN111258603A (en) 2020-06-09

Family

ID=70950364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010027580.9A Pending CN111258603A (en) 2020-01-10 2020-01-10 Intelligent door lock firmware upgrading method and intelligent door lock

Country Status (1)

Country Link
CN (1) CN111258603A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015103A (en) * 2020-08-14 2020-12-01 深圳市欧瑞博科技股份有限公司 Upgrading method and device of intelligent control switch, intelligent control switch and storage medium
CN112416404A (en) * 2020-11-24 2021-02-26 东莞埃科思科技有限公司 3D module system upgrading method and device, electronic equipment and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105321240A (en) * 2015-11-04 2016-02-10 张泽 Control method and device of intelligent door lock and intelligent door control system
US20160291966A1 (en) * 2013-03-15 2016-10-06 August Home Inc. Intelligent door lock system with firmware updates
CN107247589A (en) * 2017-06-02 2017-10-13 广东汇泰龙科技有限公司 A kind of door lock firmware upgrade method based on OTA
CN107832064A (en) * 2017-10-13 2018-03-23 东峡大通(北京)管理咨询有限公司 Smart lock and its firmware upgrade method, device, system and upgrading part
CN108021410A (en) * 2017-12-06 2018-05-11 九阳股份有限公司 A kind of firmware upgrade method and system of intelligent appliance equipment
US20180260208A1 (en) * 2017-03-08 2018-09-13 Jao Ching Lin System of an Electronic Lock for Updating a Firmware of the Electronic Lock
CN109246205A (en) * 2018-08-27 2019-01-18 武汉市国扬科技集团有限公司 A kind of smart lock upgrade method and device based on mobile Internet and bluetooth
CN109982308A (en) * 2019-03-07 2019-07-05 广东汇泰龙科技有限公司 It is a kind of to communicate the method and its system for carrying out door lock firmware upgrade by NFC
CN110535954A (en) * 2019-09-02 2019-12-03 北京百佑科技有限公司 Upgrade method, upgrade-system, intelligent gateway and the storage medium of door lock firmware

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160291966A1 (en) * 2013-03-15 2016-10-06 August Home Inc. Intelligent door lock system with firmware updates
CN105321240A (en) * 2015-11-04 2016-02-10 张泽 Control method and device of intelligent door lock and intelligent door control system
US20180260208A1 (en) * 2017-03-08 2018-09-13 Jao Ching Lin System of an Electronic Lock for Updating a Firmware of the Electronic Lock
CN107247589A (en) * 2017-06-02 2017-10-13 广东汇泰龙科技有限公司 A kind of door lock firmware upgrade method based on OTA
CN107832064A (en) * 2017-10-13 2018-03-23 东峡大通(北京)管理咨询有限公司 Smart lock and its firmware upgrade method, device, system and upgrading part
CN108021410A (en) * 2017-12-06 2018-05-11 九阳股份有限公司 A kind of firmware upgrade method and system of intelligent appliance equipment
CN109246205A (en) * 2018-08-27 2019-01-18 武汉市国扬科技集团有限公司 A kind of smart lock upgrade method and device based on mobile Internet and bluetooth
CN109982308A (en) * 2019-03-07 2019-07-05 广东汇泰龙科技有限公司 It is a kind of to communicate the method and its system for carrying out door lock firmware upgrade by NFC
CN110535954A (en) * 2019-09-02 2019-12-03 北京百佑科技有限公司 Upgrade method, upgrade-system, intelligent gateway and the storage medium of door lock firmware

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘梦君等: "窄带物联网下的安全门锁密钥可靠更新方案", 《计算机科学》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015103A (en) * 2020-08-14 2020-12-01 深圳市欧瑞博科技股份有限公司 Upgrading method and device of intelligent control switch, intelligent control switch and storage medium
CN112416404A (en) * 2020-11-24 2021-02-26 东莞埃科思科技有限公司 3D module system upgrading method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN109582340A (en) A kind of method and system of electric car remote upgrade
US9557981B2 (en) Method and apparatus for automatic module upgrade
CN103207791B (en) Remote upgrade method, system and data terminal
CN103414741B (en) A kind of method and system of remote upgrade PLC
CN103677946B (en) Method and system for updating elevator device control programs
CN109474977A (en) A kind of monitoring method of equipment, apparatus and system
CN110032382A (en) A kind of vehicle electronic control unit upgrade method, system and terminal device
CN108255124B (en) Method, device and system for transferring program and parameter of PLC
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN109121136A (en) Network insertion, terminal connection and verification method and terminal, gateway and system
CN104915237A (en) Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
CN103019788A (en) Remote online upgrading method based on CAN (Controller Area Network) bus
CN109474692A (en) A kind of intelligent household appliance remote control method, apparatus and system
CN107832065A (en) Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN107040590A (en) A kind of remote upgrade method of New-type charge stake
CN110011885B (en) Control authority binding method and device of electric appliance, storage medium and electric appliance
CN111258603A (en) Intelligent door lock firmware upgrading method and intelligent door lock
CN108547514B (en) Unlocking method and device of intelligent door lock
CN107367946B (en) Method and device for controlling equipment
CN106375567A (en) Plug-in release method and system, client and server
CN110413487A (en) A kind of indicator light management method, system and the baseboard management controller of server
CN106339236A (en) Software upgrading method, client, interphone and soft upgrading system
CN112860290A (en) Vehicle upgrading method, device and system, terminal equipment and storage medium
CN105608354A (en) Authentication method and system, terminal and server
CN107707405A (en) The method and its remote control that intelligent closestool firmware remotely updates are realized by remote control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200609