CN111954207A - System and method for realizing OTA (on-the-fly) upgrade of self-timer based on BNEP (Bluetooth technology attachment) Bluetooth - Google Patents

System and method for realizing OTA (on-the-fly) upgrade of self-timer based on BNEP (Bluetooth technology attachment) Bluetooth Download PDF

Info

Publication number
CN111954207A
CN111954207A CN202010691800.8A CN202010691800A CN111954207A CN 111954207 A CN111954207 A CN 111954207A CN 202010691800 A CN202010691800 A CN 202010691800A CN 111954207 A CN111954207 A CN 111954207A
Authority
CN
China
Prior art keywords
self
bluetooth
timer
module
ota
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.)
Granted
Application number
CN202010691800.8A
Other languages
Chinese (zh)
Other versions
CN111954207B (en
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.)
Yizhao Micro Electronics Hangzhou Co Ltd
Original Assignee
Yizhao Micro Electronics Hangzhou 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 Yizhao Micro Electronics Hangzhou Co Ltd filed Critical Yizhao Micro Electronics Hangzhou Co Ltd
Priority to CN202010691800.8A priority Critical patent/CN111954207B/en
Publication of CN111954207A publication Critical patent/CN111954207A/en
Application granted granted Critical
Publication of CN111954207B publication Critical patent/CN111954207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A system and a method for realizing OTA (on-the-fly) upgrade of a self-timer based on BNEP (Bluetooth technology) belong to the technical field of communication. The self-timer device is connected with the mobile device end in a pairing mode through the Bluetooth, data exchange is achieved between the self-timer device and the built background server through the BNEP, and remote OTA upgrading is achieved. According to the system and the method for realizing OTA (over the air) upgrade of the self-timer based on BNEP (Bluetooth), through the BNEP method, the connection between the background server and the self-timer can be realized only by connecting a network under the condition that a user hand-held device is not required to download apps, the remote OTA upgrade is realized, the operation convenience of the user is greatly improved, and the resources of the user are saved.

Description

System and method for realizing OTA (on-the-fly) upgrade of self-timer based on BNEP (Bluetooth technology attachment) Bluetooth
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a system and a method for realizing OTA (on-the-fly) upgrade of a self-timer based on BNEP (Bluetooth technology attachment).
Background
The prior art is as follows: by installing the APP on the mobile phone, the APP acquires the firmware needing the OTA on the server. The APP calls different protocol interfaces of the SPP/GATT to issue to the Bluetooth of the equipment according to a data transmission mode required by a corresponding protocol, and the Bluetooth of the equipment receives the data and then forwards the received OTA data to the MCU of the equipment through the Uart to finish the OTA firmware upgrade of the equipment; the self-timer terminal is connected with the Bluetooth of the mobile phone through the Bluetooth module, and OTA upgrading is achieved. The defects of the prior art are as follows: different devices adopt different Bluetooth schemes to cause OTA to have compatibility difference, and the mobile phone can realize upgrading function only by downloading the APP, occupies user mobile phone resources, has the problem of compatibility adaptability of the APP on different mobile phones, and has low transmission speed.
Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to design and provide a technical scheme for realizing the self-timer OTA upgrading system and the upgrading method thereof based on BNEP Bluetooth.
The system for realizing OTA (on-the-fly) upgrading of the self-timer based on BNEP (Bluetooth technology attachment) Bluetooth is characterized by comprising self-timer equipment, a mobile equipment end and a background server, wherein the self-timer equipment comprises a hardware module, a self-timer Bluetooth module and a low-power-consumption module, the mobile equipment end comprises a mobile end Bluetooth module and a mobile end network module, and the background server comprises a data processing module and a server network module;
the hardware module comprises a key and an LED lamp; the self-timer Bluetooth module is used for establishing connection, Bluetooth pairing, over-distance disconnection and back connection; the low-power module comprises lpm low-power and hibernate shutdown;
the mobile terminal Bluetooth module is used for being connected with self-timer equipment and carrying out data transmission through BNEP, and the mobile terminal network module is connected with 3G, 4G, 5G, WIFI or a wired network;
the data processing module is responsible for processing the received data information and sending data to the mobile equipment end through the server network module according to requirements; the server network module is mainly used for connecting a network, receiving data transmitted by the mobile equipment end through the network and transmitting the data to the mobile equipment end through the network.
The system for realizing OTA (on-the-fly) upgrade of the self-timer based on BNEP (Bluetooth technology attachment) Bluetooth is characterized in that the mobile equipment end is a mobile phone, a computer or a tablet, and the connection network between the mobile equipment end and the background server is 3G, 4G, 5G, WIFI or a wired network.
The upgrading method for realizing the self-timer OTA upgrading system based on BNEP Bluetooth is characterized by comprising the following steps:
s1, the self-timer device completes pairing connection with the mobile device end through Bluetooth, and the self-timer device realizes data exchange with the built background server through BNEP;
s2, the self-timer device actively initiates the request of OTA upgrade, acquires OTA upgrade information, or the self-timer manufacturer background server initiates OTA upgrade;
s3, after OTA upgrade is started, the background server issues OTA firmware through the network, and the mobile device side directly transmits the firmware to the self-timer device through BNEP;
s4, the self-timer device receives the OTA firmware sent by the background server and can check, the check data abnormity can request to send the OTA firmware again, and if the check is correct, the self-timer device stores the received OTA firmware program into the local memory;
s5, after the self-timer device finishes the firmware storage, the firmware can be updated locally, and OTA upgrade is realized.
The upgrading method for realizing the self-timer OTA upgrading system based on BNEP Bluetooth is characterized in that self-timer equipment is a slave machine, and mobile equipment end Bluetooth is a host machine;
the slave computer end is started and starts broadcasting, the host computer end scans the Bluetooth equipment after the Bluetooth is opened, and the slave computer is scanned to reply to the host computer;
the host end point is connected in a clicking mode, the slave end receives the connection requirement of the host end and then sends a security request back to require the host end to carry out pairing, and the host end receives the broadcast packet which the slave end requires to be paired and then sends a pairing request;
after receiving the pairing request of the host, the slave replies that the host agrees to pairing; the host and the slave can transmit information and generate a pairing secret key;
and after the secret key is generated, the host and the slave store the pairing information and complete the pairing.
The upgrading method for realizing the self-timer OTA upgrading system based on BNEP Bluetooth is characterized in that in the process of over-distance disconnection and reconnection of a Bluetooth module of a self-timer, when the Bluetooth exceeds the receiving range of an RF signal, the process of the reconnection is carried out, and the specific realization method comprises the following steps:
s1, host sends an HCI _ Create _ Connection command to the Controller, and the Controller sends the saved Bluetooth address by using the baseband processor;
s2, link management optional switching feature;
s3, the link management of master side will request LMP _ Host _ connection _ req PDU, the link management of slave side will confirm the connection of the other side, if it is the saved address, the connection will be made.
The upgrading method for realizing the OTA upgrading system of the self-timer based on BNEP Bluetooth is characterized in that a low-power module comprises an LPM power domain in the internal level of a chip, the LPM power domain is an independent power domain and can control the chip to enter a special mode-LPM mode, in the mode, other power domains are all turned off, the first part is an LPM module and comprises an rc oscillator, a low-power oscillator lpo for driving the module, important registers are also contained in the LPM module, and an XTAL crystal oscillation starting circuit is also in the power domain; the power domain also comprises four memories, each memory can be independently turned off and on, the power consumption is microampere level, the memory which starts from a 4k address on software is used at most, and for the purpose of independently switching on and off to save power in certain applications, the memory is divided into two 2k addresses, namely a low address and a high address, and although the 4k memories are actually used together on software, the 4k memories are independent on hardware; the third block is a 8k sized patch; and a further block is 16k 51 codeam; the memory is placed under the LPM power domain to keep various states in the LPM mode, because other power domains are turned off in the low power consumption mode, and can be quickly awakened when the memory is recovered from the LPM mode, including patch and 51code, and the memory does not need to be loaded from the outside again; a module independently provides an accurate Bluetooth clock for awakening the low power consumption mode;
when the product is not operated for a long time, whether the product enters a sleep state or not is judged, and the sleep state needs to be awakened by configuring a specific gpio; each product needs to be turned on and off; by configuring a specific gpio pin in the power-on initialization of the main program, equipment in a sleep state can detect the specific gpio, and once the equipment is pressed down, the equipment can be immediately recovered from the state, which is equivalent to soft reset; the soft reset uses a POR circuit, POR refers to power-on automatic reset, and a normal POR circuit has a voltage threshold value detection in the process that VIN rises to 3V, and is always in a reset state, cannot be overturned and cannot be released when the VIN is below the threshold value; when the threshold value is reached, the retet is released, the system is initialized, and the system works normally; and (3) power-on reset POR, wherein the POR is used for outputting two modules of VIN-LDO and VIN-LPM-LDO, the two outputs can be changed into 1.2V when the VIN voltage reaches 3V, and the POR is triggered at the moment.
According to the system and the method for realizing OTA (on-the-fly) upgrade of the self-timer based on BNEP (Bluetooth technology attachment), the process of upgrading the self-timer equipment is simplified through the BNEP method, application software does not need to be downloaded by user equipment such as a mobile phone, a tablet personal computer, a notebook computer and a desktop computer, and the memory space of client equipment is not occupied; the method realizes silent updating of the OTA firmware of the user, and the user can realize updating of the self-timer equipment without operation; the data transmission efficiency is higher.
Drawings
FIG. 1 is a block diagram of the system architecture of the present invention;
FIG. 2 is a schematic diagram of the system of the present invention;
FIG. 3 is a flow chart of an implementation of the present invention;
FIG. 4 is a schematic representation of the gpio construction of the present invention;
FIG. 5 is a diagram illustrating a Bluetooth connection setup in accordance with the present invention;
FIG. 6 is a diagram illustrating Bluetooth pairing according to the present invention;
FIG. 7 is a schematic diagram of the LPM power domain of the low power module of the present invention;
in the figure: 1-self-timer device, 2-mobile device terminal, 3-background server, 101-hardware module, 102-self-timer Bluetooth module, 103-low power module, 201-mobile terminal Bluetooth module, 202-mobile terminal network module, 301-data processing module, 302-server network module.
Detailed Description
The present invention will be further described with reference to the accompanying drawings, which are simplified schematic drawings illustrating only the basic mechanism of the present invention and thus show only the structure related to the present invention.
BNEP is called Bluetooth Network Encapsulation Protocol (Network Encapsulation Protocol, hereinafter referred to as BNEP). BNEP is designed for PAN applications and provides an application model for constructing bluetooth wireless lan, and BNEP can perform mapping network protocol hierarchy from IP layer to L2CAP layer. The bluetooth personal area Network provides networking capability for bluetooth devices by using BNEP, so that two or more bluetooth devices form a temporary Ad-hoc Network (GN), or Access a remote Network through a Network Access Point (NAP). BNEP provides translation of the bluetooth protocol stack and the TCP/IP protocol stack, and IEEE802.3 ethernet encapsulation supports the same upper layer network protocols. The MTU of the BNEP payload area locates 1691 bytes, which can ensure one-time transmission of Ethernet layer packets sent downwards by the network layer. In terms of data transfer, BNEP directly receives the ethernet packet sent down by the IP layer, and directly copies the ethernet payload area to the BNEP payload area, and sends the resulting area to the L2CAP layer after adding the BNEP header.
This realize auto heterodyne ware OTA upgrade system based on BNEP bluetooth, include auto heterodyne ware equipment 1, mobile device end 2, backend server 3, auto heterodyne ware equipment 1 includes hardware module 101, auto heterodyne ware bluetooth module 102, low-power module 103, mobile device end 2 includes mobile end bluetooth module 201, removes end network module 202, backend server 3 includes data processing module 301, server network module 302. The hardware module 101 comprises keys and LED lamps; the self-timer Bluetooth module 102 is used for establishing connection, Bluetooth pairing, over-distance disconnection and back connection; the low power module 103 includes lpm low power and hibernate shutdown.
The key of the hardware module 101 uses less IO ports due to the principle of the self-timer is simple compared with other products, and a key scanning module of the IO ports does not need to be specially written; the degree of detecting the key can be achieved only by setting the up-down pulling of the gpio in the hardware register, as in the structure of the gpio in fig. 4, the left side is the up-down pulling, and the right side is the push-pull structure; when the program is initialized, the corresponding register is configured to realize the function. The LED lamp of the hardware module 101 has different lamp effects corresponding to different application scenes; for example, using different rates of flashing light frequency on a broadcast or a return connection, using a key press to take the effect of normally on after a connection is made, or a low power light effect after a connection is made.
The connection establishment of the self-timer Bluetooth module 102: after starting up each time, sending broadcast data to the outside in an unconnected state, wherein the name and address information of the self-timer are attached to a broadcast packet; the Bluetooth is turned on at the mobile phone end, the corresponding self-timer device 1 can be found by searching nearby devices, in the searching process, the mobile phone sends a scanning request to the self-timer device 1, and the self-timer device 1 replies specific information; when the mobile phone end clicks the connection equipment, a connection request is sent, and then the master equipment and the slave equipment establish connection.
Bluetooth pairing of the self-timer bluetooth module 102: pairing is a unique and important process in Bluetooth, data can be encrypted, and quick connection is facilitated; pairing original names, wherein the definition in the protocol is the process of exchanging secret keys; pairing is a very complex process, information exchanged by two parties comprises equipment addresses, masks, IRKs and the like, and through a complex algorithm, a key generated finally is called LTK (Long term key); the two-side equipment finally stores the common LTK of the two sides and the address information of the other side, and some special addresses also need to store IRKs; the information can be stored in NV _ ram, eeprom exists in the equipment, power-off cannot be lost, and reconnection after next startup is facilitated; the main function of pairing is encryption, and once pairing takes effect, all information is processed by a special algorithm; thus, the information security of the equipment is greatly improved; BLE pairing is a three-phase process, the first two phases always being used, possibly followed by an optional phase of transmission-specific key allocation; stage 1, pairing feature exchange; stage 2, generating a short-term secret key (STK); stage 3, transmission specific key distribution.
The over-distance disconnection and reconnection of the self-timer bluetooth module 102: the process of going back to connect when the Bluetooth exceeds the receiving range of the RF signal is realized by the following steps:
s1, host sends an HCI _ Create _ Connection command to the Controller, and the Controller sends the saved Bluetooth address by using the baseband processor;
s2, link management optional switching feature;
s3, the link management of master side will request LMP _ Host _ connection _ req PDU, the link management of slave side will confirm the connection of the other side, if it is the saved address, the connection will be made.
The mobile terminal bluetooth module 201 is configured to connect with a self-timer device 1 and perform data transmission through BNEP, and the mobile terminal network module 202 is connected to 3G, 4G, 5G, WIFI or a wired network;
the data processing module 301 is responsible for processing the received data information and sending data to the mobile device 2 through the server network module 302 as required; the server network module 302 is mainly connected to a network, and receives data transmitted by the mobile device 2 through the network and transmits the data to the mobile device 2 through the network.
The mobile device end 2 is a mobile phone, a computer or a tablet, and the connection network between the mobile device end 2 and the background server 3 is 3G, 4G, 5G, WIFI or a wired network.
An upgrading method for realizing a self-timer OTA upgrading system based on BNEP Bluetooth comprises the following steps:
s1, the self-timer device 1 completes pairing connection with the mobile device terminal 2 through Bluetooth, and the self-timer device 1 realizes data exchange with the built background server 3 through BNEP;
s2, the self-timer device 1 actively initiates the request of OTA upgrade, acquires OTA upgrade information, or the self-timer manufacturer background server 3 initiates OTA upgrade;
s3, after the OTA upgrade is started, the background server 3 issues the OTA firmware through the network, and the mobile device end 2 directly transmits the firmware to the self-timer device 1 through BNEP;
s4, the self-timer device 1 receives the OTA firmware sent by the background server 3 and can check, if the check data is abnormal, the self-timer device can request to send the OTA firmware again, and if the check data is correct, the self-timer device stores the received OTA firmware program into the local memory;
s5, after the self-timer device 1 finishes the firmware storage, the firmware can be updated locally, and the OTA upgrade is realized.
Further, the self-timer device 1 is a slave, and the mobile device end 2 is a master through Bluetooth;
the slave computer end is started and starts broadcasting, the host computer end scans the Bluetooth equipment after the Bluetooth is opened, and the slave computer is scanned to reply to the host computer;
the host end point is connected in a clicking mode, the slave end receives the connection requirement of the host end and then sends a security request back to require the host end to carry out pairing, and the host end receives the broadcast packet which the slave end requires to be paired and then sends a pairing request;
after receiving the pairing request of the host, the slave replies that the host agrees to pairing; the host and the slave can transmit information and generate a pairing secret key;
and after the secret key is generated, the host and the slave store the pairing information and complete the pairing.
The low power module 103 includes an LPM power domain at an internal level of the chip, where the LPM power domain is a separate power domain and can control the chip to enter a special mode, i.e., a low power mode (LPM mode), where other power domains are all turned off. The first part is an lpm module, which includes an rc oscillator (oscillator), a low power consumption oscillator lpo, for driving the module, and also contains some important registers, including wake-up function, and the module consumes about 0.7 microampere. The XTAL crystal oscillator oscillation starting circuit is also in the power domain, because only the power domain works after entering the LPM mode, and when the crystal oscillator recovers from the LPM mode, the crystal oscillator needs to be started up in advance for a certain time, so the crystal oscillator needs to work first. The power domain also has four memories, each of which can be individually turned off and on, the power consumption is microampere level, the memory starting from 4k address on software is used at most, and for some applications, the memory is divided into two 2k addresses, namely low address and high address, for the purpose of individually switching to save power, and although the 4k memories are actually used together on software, the 4k memories are independent on hardware. The third block is a patch of size 8 k. And a further block is 16k 51 codeam. These memories are placed in the LPM power domain to maintain various states in the LPM mode, since other power domains are turned off in the low power mode and can be quickly woken up when recovering from the LPM mode, including patch and 51code, without being reloaded from the outside. After all four memories are started, the whole current consumption is 3-4 microamperes, the actual consumption is related to the temperature, and the consumption of temperature rise is increased. Furthermore, the bluetooth slot refers to a 625 microsecond long time slice in the physical link for transmitting information. There are various clocks at the chip level, and a module provides an accurate bluetooth clock for wake-up in the low power mode alone. Therefore, in the connection and interaction process, a plurality of empty packets sent by the host can be ignored without responding, the current is saved, and the chip is kept at extremely low power consumption. When receiving the data packet, the Bluetooth can not be disconnected and can normally process information because the clock is kept.
The low power module 103 includes hibernate shutdown, and determines whether to enter a sleep state when the product is not operated for a long time. The sleep state requires a specific gpio to be configured to wake up. Every product requires an on-off operation. The off state is also virtually current-sensing, otherwise it cannot be recovered from the off state button. In other words, the hibernate state is an extension of the sleep state. By configuring a specific gpio pin during power-on initialization of a main program, a device in a sleep state can detect a specific gpio. Once pressed, it can immediately recover from the state, corresponding to a soft reset. The soft reset uses a por circuit. POR refers to power-on auto-reset. In the normal POR circuit, a voltage threshold value is detected in the process that VIN rises to 3V, and when the VIN is below the threshold value, the POR circuit is always in a reset state, cannot be overturned and cannot be released; when the threshold value is reached, the reset is released, the system is initialized, and the system works normally. And (3) power-on reset POR, wherein the POR is used for outputting two modules of VIN-LDO and VIN-LPM-LDO, the two outputs can be changed into 1.2V when the VIN voltage reaches 3V, and the POR is triggered at the moment.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that these are by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (6)

1. A self-timer OTA upgrading system based on BNEP Bluetooth is characterized by comprising a self-timer device (1), a mobile device terminal (2) and a background server (3), wherein the self-timer device (1) comprises a hardware module (101), a self-timer Bluetooth module (102) and a low-power consumption module (103), the mobile device terminal (2) comprises a mobile terminal Bluetooth module (201) and a mobile terminal network module (202), and the background server (3) comprises a data processing module (301) and a server network module (302);
the hardware module (101) comprises a key and an LED lamp; the self-timer Bluetooth module (102) is used for establishing connection, Bluetooth pairing, over-distance disconnection and back connection; the low power module (103) comprises lpm low power and hibernate shutdown;
the mobile terminal Bluetooth module (201) is used for being connected with a self-timer device (1) and carrying out data transmission through BNEP, and the mobile terminal network module (202) is connected with 3G, 4G, 5G, WIFI or a wired network;
the data processing module (301) is responsible for processing the received data information and sending data to the mobile equipment terminal (2) through the server network module (302) according to requirements; the server network module (302) is mainly connected with a network, receives data transmitted by the mobile equipment terminal (2) through the network and transmits the data to the mobile equipment terminal (2) through the network.
2. The BNEP Bluetooth based self-timer OTA upgrade system according to claim 1, wherein the mobile device end (2) is a mobile phone, a computer or a tablet, and the connection network between the mobile device end (2) and the background server (3) is 3G, 4G, 5G, WIFI or a wired network.
3. The method of claim 1, wherein the BNEP bluetooth-based method for implementing the OTA upgrade of the self-timer system comprises the following steps:
s1, the self-timer device (1) completes pairing connection with the mobile device end (2) through Bluetooth, and the self-timer device (1) realizes data exchange with the built background server (3) through BNEP;
s2, the self-timer device (1) initiatively initiates OTA upgrade request, acquires OTA upgrade information, or the self-timer manufacturer background server (3) initiates OTA upgrade;
s3, after OTA upgrade is started, the background server (3) issues OTA firmware through the network, and the mobile equipment terminal (2) directly transmits the firmware to the self-timer equipment (1) through BNEP;
s4, the self-timer device (1) receives the OTA firmware sent by the background server (3) and can check, the check data abnormity can request to resend the OTA firmware, and if the check is correct, the received OTA firmware program is stored in the local memory;
s5, after the self-timer device (1) finishes the firmware storage, the firmware can be locally updated, and OTA upgrade is realized.
4. The upgrading method of realizing the OTA upgrading system of the self-timer based on BNEP Bluetooth is characterized in that the self-timer device (1) is a slave, the Bluetooth of the mobile device end (2) is a master;
the slave computer end is started and starts broadcasting, the host computer end scans the Bluetooth equipment after the Bluetooth is opened, and the slave computer is scanned to reply to the host computer;
the host end point is connected in a clicking mode, the slave end receives the connection requirement of the host end and then sends a security request back to require the host end to carry out pairing, and the host end receives the broadcast packet which the slave end requires to be paired and then sends a pairing request;
after receiving the pairing request of the host, the slave replies that the host agrees to pairing; the host and the slave can transmit information and generate a pairing secret key;
and after the secret key is generated, the host and the slave store the pairing information and complete the pairing.
5. The upgrading method of claim 3 for realizing OTA upgrading system of self-timer based on BNEP Bluetooth, wherein during the over-distance disconnection and loop connection of the Bluetooth module (102) of self-timer, when Bluetooth exceeds the receiving range of RF signal, the loop connection process will be followed:
s1, host sends an HCI _ Create _ Connection command to the Controller, and the Controller sends the saved Bluetooth address by using the baseband processor;
s2, link management optional switching feature;
s3, the link management of master side will request LMP _ Host _ connection _ req PDU, the link management of slave side will confirm the connection of the other side, if it is the saved address, the connection will be made.
6. A method as claimed in claim 3, which is based on BNEP bluetooth to realize the upgrading of OTA system of self-timer, characterized in that the low power module (103) includes LPM power domain of chip internal level, the LPM power domain is a separate power domain, which can control the chip to enter into special mode-LPM mode, in which other power domains are all turned off, the first part is an LPM module, which includes an rc oscillator, a low power oscillator lpo to drive the module, and also contains some important registers, and XTAL crystal oscillator start circuit is also in the power domain; the power domain also comprises four memories, each memory can be independently turned off and on, the power consumption is microampere level, the memory which starts from a 4k address on software is used at most, and for the purpose of independently switching on and off to save power in certain applications, the memory is divided into two 2k addresses, namely a low address and a high address, and although the 4k memories are actually used together on software, the 4k memories are independent on hardware; the third block is a 8k sized patch; and a further block is 16k 51 codeam; the memory is placed under the LPM power domain to keep various states in the LPM mode, because other power domains are turned off in the low power consumption mode, and can be quickly awakened when the memory is recovered from the LPM mode, including patch and 51code, and the memory does not need to be loaded from the outside again; a module independently provides an accurate Bluetooth clock for awakening the low power consumption mode;
when the product is not operated for a long time, whether the product enters a sleep state or not is judged, and the sleep state needs to be awakened by configuring a specific gpio; each product needs to be turned on and off; by configuring a specific gpio pin in the power-on initialization of the main program, equipment in a sleep state can detect the specific gpio, and once the equipment is pressed down, the equipment can be immediately recovered from the state, which is equivalent to soft reset; the soft reset uses a POR circuit, POR refers to power-on automatic reset, and a normal POR circuit has a voltage threshold value detection in the process that VIN rises to 3V, and is always in a reset state, cannot be overturned and cannot be released when the VIN is below the threshold value; when the threshold value is reached, the retet is released, the system is initialized, and the system works normally; and (3) power-on reset POR, wherein the POR is used for outputting two modules of VIN-LDO and VIN-LPM-LDO, the two outputs can be changed into 1.2V when the VIN voltage reaches 3V, and the POR is triggered at the moment.
CN202010691800.8A 2020-07-17 2020-07-17 BNEP Bluetooth-based OTA upgrading system and upgrading method thereof Active CN111954207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010691800.8A CN111954207B (en) 2020-07-17 2020-07-17 BNEP Bluetooth-based OTA upgrading system and upgrading method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010691800.8A CN111954207B (en) 2020-07-17 2020-07-17 BNEP Bluetooth-based OTA upgrading system and upgrading method thereof

Publications (2)

Publication Number Publication Date
CN111954207A true CN111954207A (en) 2020-11-17
CN111954207B CN111954207B (en) 2023-05-05

Family

ID=73340155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010691800.8A Active CN111954207B (en) 2020-07-17 2020-07-17 BNEP Bluetooth-based OTA upgrading system and upgrading method thereof

Country Status (1)

Country Link
CN (1) CN111954207B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141814A (en) * 2015-08-18 2015-12-09 苏世鹏 Bluetooth wireless self-timer
CN109982294A (en) * 2019-03-08 2019-07-05 四川爱联科技有限公司 The method that NBIot module is upgraded using bluetooth equipment
CN110621011A (en) * 2019-09-12 2019-12-27 北京方研矩行科技有限公司 OTA firmware upgrading method and system based on Bluetooth device end
CN110855462A (en) * 2018-08-21 2020-02-28 深圳瑞利声学技术股份有限公司 Bluetooth OTA firmware upgrading device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141814A (en) * 2015-08-18 2015-12-09 苏世鹏 Bluetooth wireless self-timer
CN110855462A (en) * 2018-08-21 2020-02-28 深圳瑞利声学技术股份有限公司 Bluetooth OTA firmware upgrading device
CN109982294A (en) * 2019-03-08 2019-07-05 四川爱联科技有限公司 The method that NBIot module is upgraded using bluetooth equipment
CN110621011A (en) * 2019-09-12 2019-12-27 北京方研矩行科技有限公司 OTA firmware upgrading method and system based on Bluetooth device end

Also Published As

Publication number Publication date
CN111954207B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
US10506504B2 (en) Discovery method and an electronic device thereof
WO2018000134A1 (en) Bluetooth connection method and terminal
FI127389B (en) Method and technical apparatus for short - distance communication
US11895364B2 (en) Bluetooth connection method and television
US20200007674A1 (en) Communication apparatus
EP4135469A1 (en) Method and device for device connection on basis of neighborhood aware network
CN113765948B (en) Long connection device and network system
CN109429211B (en) Communication apparatus, control method, and medium
US20120045992A1 (en) Apparatus and method for sharing data in portable terminal
KR20190065101A (en) An electronic device for transmitting and receiving data in a wireless communication system and a method thereof
WO2023221948A1 (en) Information processing method, and device, storage medium and program product
KR20160123149A (en) Electronic apparatus, wake-up apparatus for turning on the electronic apparatus, wake-up system and control method thereof
JP2022113889A (en) Communication device, control method of the same, and program
JP2017212501A (en) Communication device, control method, and program
US20140029495A1 (en) Communication terminal and communication method
CN111954207B (en) BNEP Bluetooth-based OTA upgrading system and upgrading method thereof
CN112261630B (en) System and method for realizing OTA (over the air) upgrading of keyboard based on BNEP (Bluetooth technology attachment)
CN112230951B (en) System and method for realizing mouse OTA upgrading based on BNEP Bluetooth
KR20210080937A (en) Electronic device and method for controlling NAN based communication thereof
TW201929488A (en) Terminal and operating method of the terminal
TW201446042A (en) Using application feedback to optimize PLMN search
CN116846681B (en) Device connection method, electronic device, and computer-readable storage medium
JP7303913B2 (en) Communication device, control method, and program
WO2023185593A1 (en) Device login method, electronic device and system
CN117499922A (en) Method, device, system and storage medium for accessing wireless local area network

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
GR01 Patent grant
GR01 Patent grant