METHOD OF CONFIGURING A WIRELESS DEVICE, CORRESPONDING WIRELESS DEVICE AND BASE STATION
20230027724 · 2023-01-26
Assignee
Inventors
Cpc classification
H04W4/80
ELECTRICITY
H02J2207/50
ELECTRICITY
International classification
Abstract
A wireless device includes an energy harvester and an energy storage that operate in a sequence of energy harvesting cycles to alternately harvest energy and release energy for supplying the wireless device. The wireless device also includes a processing circuit and a wireless communication circuit. A configuration method for the wireless device includes first step where a base station receives a signal from the wireless device indicating wireless communication circuit entry into a receiving operation mode. In a second step, the base station transmits configuration data to the wireless device. The received configuration data is temporarily stored in a memory area of the wireless communication circuit. In a third step, the temporarily stored configuration data is transmitted from the wireless communication circuit to the processing circuit for storage in a memory area. The second and third steps are carried out during distinct energy harvesting cycles of the wireless device.
Claims
1. A method of configuring a wireless device, wherein the wireless device includes: an energy harvester and an energy storage element coupled to the energy harvester, the energy harvester and the energy storage element being configured to alternately harvest energy from a surrounding environment and release energy for supplying the wireless device in a sequence of energy harvesting cycles; a processing circuit; and a wireless communication circuit; the method comprising: i) receiving at a base station, from the wireless device, a signal indicative of said wireless communication circuit entering a receiving operation mode; ii) in response to the signal indicative of said wireless communication circuit entering a receiving operation mode, transmitting configuration data from the base station to the wireless device and temporarily storing the received configuration data in a memory area of said wireless communication circuit of the wireless device; and iii) transmitting from the wireless communication circuit to the processing circuit said temporarily stored configuration data, and storing the received configuration data in a memory area of said processing circuit of the wireless device; wherein steps ii) and iii) are carried out during distinct energy harvesting cycles of the wireless device.
2. The method of claim 1, further comprising the step of iv) erasing said configuration data temporarily stored in said memory area of said wireless communication circuit, wherein step iv) is carried out during a distinct energy harvesting cycle of the wireless device with respect to the energy harvesting cycles during which are carried out steps ii) and iii).
3. The method of claim 2, wherein steps ii) and iii) are carried out during subsequent energy harvesting cycles of the wireless device.
4. The method of claim 2, wherein steps ii), iii) and iv) are carried out during subsequent energy harvesting cycles of the wireless device.
5. The method of claim 1, further comprising checking whether the data stored in said memory area of said wireless communication circuit is different from a reference value, and performing step iii) in response to said data stored in said memory area of said wireless communication circuit being different from the reference value.
6. The method of claim 1, further comprising: transmitting as comparison data, from the wireless device to the base station, the configuration data stored in said memory area of said processing circuit; comparing, at the base station, said comparison data with the configuration data previously transmitted from the base station to the wireless device; and terminating transmission of said configuration data by the base station in response to said comparison data being equal to the configuration data previously transmitted from the base station to the wireless device.
7. The method of claim 1, further comprising periodically receiving , at the base station information data from the wireless device indicative of the amount of energy stored in said energy storage element of the wireless device.
8. The method of claim 7, wherein steps ii), iii) and iv) are carried out in response to the amount of energy stored in said energy storage element being higher than a certain threshold.
9. The method of claim 7, wherein steps ii) and iii) are carried out in response to the amount of energy stored in said energy storage element being higher than a certain threshold.
10. The method of claim 1, wherein transmitting said temporarily stored configuration data from the wireless communication circuit to the processing circuit comprises transmitting the temporarily stored configuration data via one of: a UART communication interface, a low-power UART communication interface, an SPI communication interface or an I2C communication interface.
11. A wireless device for use in a wireless sensor network, comprising: an energy harvester; an energy storage element coupled to the energy harvester; wherein the energy harvester and the energy storage element are configured to alternately harvest energy from a surrounding environment and release energy for supplying the wireless device in a sequence of energy harvesting cycles; a processing circuit; and a wireless communication circuit configured to: i) transmit towards a base station a signal indicative of said wireless communication circuit entering a receiving operation mode; ii) in response to said wireless communication circuit entering a receiving operation mode, receive configuration data from the base station and temporarily store the received configuration data in a memory area of said wireless communication circuit; and iii) transmit to the processing circuit said temporarily stored configuration data; wherein the processing circuit is configured to store the configuration data in a memory area; wherein steps ii) and iii) are carried out during distinct energy harvesting cycles of the wireless device.
12. The wireless device of claim 11, wherein the wireless communication circuit is configured to periodically switch between a transmitting operation mode and said receiving operation mode.
13. The wireless device of claim 11, wherein the wireless communication circuit comprises a Bluetooth-based radio.
14. The wireless device of claim 11, wherein the processing circuit and the wireless communication circuit are configured to exchange signals therebetween in half-duplex mode.
15. The wireless device of claim 11, wherein a communications interface between the processing circuit and the wireless communication circuit comprises one of: a UART communication interface, a low-power UART communication interface, an SPI communication interface or an I2C communication interface.
16. A base station for use in a wireless sensor network, the base station including a respective wireless communication circuit configured to: i) receive from a wireless device a signal indicative of a wireless communication circuit of the wireless device entering a receiving operation mode; and ii) in response to said wireless communication circuit of the wireless device entering the receiving operation mode, transmit configuration data to the wireless device.
17. The base station of claim 16, wherein the wireless communication circuit of the base station comprises a Bluetooth-based radio.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0026] One or more embodiments will now be described, by way of example only, with reference to the annexed figures, wherein:
[0027]
[0028]
[0029]
[0030]
DETAILED DESCRIPTION
[0031] In the ensuing description, one or more specific details are illustrated, aimed at providing an in-depth understanding of examples of embodiments of this description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials, etc. In other cases, known structures, materials, or operations are not illustrated or described in detail so that certain aspects of embodiments will not be obscured.
[0032] Reference to “an embodiment” or “one embodiment” in the framework of the present description is intended to indicate that a particular configuration, structure, or characteristic described in relation to the embodiment is comprised in at least one embodiment. Hence, phrases such as “in an embodiment” or “in one embodiment” that may be present in one or more points of the present description do not necessarily refer to one and the same embodiment. Moreover, particular configurations, structures, or characteristics may be combined in any adequate way in one or more embodiments.
[0033] The headings/references used herein are provided merely for convenience and hence do not define the extent of protection or the scope of the embodiments.
[0034] Throughout the figures annexed herein, unless the context indicates otherwise, like parts or elements are indicated with like references/numerals and a corresponding description will not be repeated for the sake of brevity.
[0035] By way of introduction to the detailed description of exemplary embodiments, reference may first be made to
[0036] A wireless sensor network 10 according to one or more embodiments may comprise a base station 101 and at least one wireless device 102 (e.g., an energy-autonomous, battery-free wireless sensor node—EABFWSN). The wireless device 102 may be provided with energy harvesting circuitry known per se configured to harvest energy from the environment where the device 102 is placed (e.g., solar energy, thermal energy, electromagnetic energy, and the like). The harvested energy may be stored in an energy storage element of the wireless device 102, e.g., a capacitor. The base station 101 may comprise a wireless communication apparatus or radio 1010, e.g., a Bluetooth radio, such as a Bluetooth Low-Energy (BLE) radio. The wireless device 102 may comprise a wireless communication apparatus or radio 1020, e.g., a Bluetooth radio, such as a Bluetooth Low-Energy (BLE) radio. The radio communication apparatuses 1010 and/or 1020 may be included in respective system-on-chips providing also other functions. For instance, the devices available with companies of the STMicroelectronics group under the trade designation “BlueNRG-2 BLE Wireless System-on-Chip”, as disclosed by document “BlueNRG-2 Bluetooth® Low Energy wireless system-on-chip”, DS12166—Rev 7—December 2020 (incorporated by reference), available online at st.com, are exemplary of such system-on-chips suitable for use in one or more embodiments.
[0037] The base station 101 and the wireless device 102 may thus exchange data wirelessly. The base station 101 may receive, collect and process the data BCNS (e.g., sensor data) transmitted (e.g., by use of radio beacons) by the wireless device 102. The wireless device 102 may receive, collect and process the data OTAP (e.g., configuration data) transmitted by the base station 101.
[0038] The wireless device 102 may additionally comprise a processing unit (Pros.) 1021 (e.g., a low-power or ultra-low-power microcontroller unit) operatively coupled to the radio communication apparatus 1020 to exchange data therewith. For instance, the microcontrollers available with companies of the STMicroelectronics group under the trade designations STM32L052x6 and STM32L052x8, as disclosed by document “STM32L052x6 STM32L052x8—Ultra-low-power 32-bit MCU Arm®-based Cortex®-MO+, up to 64 KB Flash memory, 8 KB SRAM, 2 KB EEPROM, USB, ADC, DAC”, DS10182 Rev 10—February 2021 (incorporated by reference), available online at st.com, are exemplary of such microcontrollers suitable for use in one or more embodiments. Therefore, data OTAP received from the base station 101 may be transmitted to the processing unit 1021, e.g., to carry out a configuration, reconfiguration and/or firmware update of the processing unit 1021.
[0039] As exemplified in
[0040]
[0041] Additionally, the wireless device 102 may comprise an energy harvester 1022 known per se (e.g., a photovoltaic cell, a thermoelectric generator, an inductive generator, and the like) configured to produce an output voltage V.sub.stor between a positive supply voltage node 1023 and a reference supply voltage node 1024. Energy harvested by the energy harvester 1022 may be stored in a capacitor C.sub.stor arranged between nodes 1023 and 1024. The energy stored in the capacitor C.sub.stor may be released to supply the electronic circuits included in the wireless device 102. For instance, the microcontroller 1021 may be configured to receive the supply voltage V.sub.stor from node 1023, and/or a further supply voltage V.sub.mid produced at an intermediate node 1025 of a voltage divider circuit. The voltage divider circuit may comprise a first resistor R.sub.up and a second resistor R.sub.down arranged in series between nodes 1023 and 1024, with node 1025 arranged between the two resistors R.sub.up and R.sub.down. Therefore, the further supply voltage V.sub.mid may be lower than the supply voltage V.sub.stor, which in turn may be equal to or lower than 3.3 V.
[0042] In a wireless sensor network 10, the wireless device 102 may operate as exemplified in
[0043] It is noted that operation of the base station 101 may not be subject to power consumption constraints, insofar as power may be easily available to the base station (e.g., by use of mains electricity). Therefore, the base station 101 can carry out complex and power-demanding tasks. The OTA configuration of the wireless device 102 may regard, for instance, various parameters such as the level of power transmitted during the TX phase, the duration T.sub.idle of the RX phase, the number NTB of beacons transmitted during the TX phase, and the like. In order to configure the wireless device 102 over the air, a reliable and stable connection has to be provided between the configuring device (e.g., the base station 101) and the wireless device 102 for a time sufficiently long to complete the configuration procedure. Therefore, the base station 101 may conveniently collect information about the amount of energy available to the wireless device (e.g., the state of charge of the capacitor C.sub.stor) on a regular basis (e.g., periodically).
[0044] As anticipated with reference to
[0045] A first communication interface may be provided between the user device 103 and the base station 101. The user device 103 (possibly operated by a user) can send the configuration data for the wireless device 102 to the base station 101, e.g., via an application (software) installed on the user device 103 (e.g., a smart phone). Since both the user device 103 and the base station 101 may be easily supplied with power, the user can conveniently send, through the user device 103, the desired amount of data to the base station without time and/or power constraints.
[0046] A second communication interface may be provided between the base station 101 and the wireless device 102. The base station 101 may be informed about the status of the wireless device 102 (e.g., about its charge status), e.g., at all times, via the second communication interface. For instance, the base station 101 may be informed when the wireless device 102 has terminated the TX phase and enters the RX phase. Based on this, the wireless device 102 may operate in observation mode during the RX phase. The base station 101 may transmit the configuration parameters to the wireless device 102 after the transmission phase (e.g., immediately after the end of the TX phase). The base station 101 is aware that, by transmitting the configuration data right after the end of the TX phase of the wireless device 102, it will find the wireless device 102 in the RX mode.
[0047] The above-discussed system architecture may be advantageous insofar as the observation (RX) phase can last several seconds and, during this time, depending on the available environmental energy, the wireless device 102 will perform several cycles in observation mode. Therefore, the base station 101 may rely on the availability of a certain number of energy cycles to carry out an over-the-air configuration (OTAC) procedure.
[0048] In one or more embodiments, the communication between the radio 1020 (e.g., a radio integrated circuit) and the microcontroller 1021 (e.g., a microcontroller integrated circuit) may be of the half-duplex type. Data may be sent only from the radio 1020 to the microcontroller 1021. Communication between the circuits 1020 and 1021 may rely on breaking up the communication content into small pieces (e.g., blocks) of information, with each piece transmitted in a different energy harvesting cycle of the wireless device 102. Therefore, the base station 101 being informed about the current status of the wireless device 102 facilitates synchronizing the communication operations and therefore improves the management of data communication.
[0049] Once the configuration parameters are received by the radio 1020, they are to be transferred to the microcontroller 1021 while monitoring the energy available for completing the transfer process, so that the wireless device 102 does not run out of power during transfer of the configuration data towards the microcontroller 1021.
[0050] Therefore, one or more embodiments may rely on reducing (e.g., minimizing) as much as possible the energy spent by the data transfer between the radio 1020 and the microcontroller 1021. In order to do so, an appropriate serial interface between the radio 1020 and the microcontroller 1021 may be used, such as a UART interface, an SPI interface, or an Inter-Integrated Circuit (I2C) interface. For instance, the reference Mikhaylov, K., et al., “Evaluation of Power Efficiency for Digital Serial Interfaces of Microcontrollers,” 2012 5th International Conference on New Technologies, Mobility and Security (NTMS), pages 1-5, 2012 (incorporated by reference) discloses that an SPI interface has a typical energy consumption of 2.5 μJ per byte, and a UART interface has a typical energy consumption of 7.3 μJ per byte.
[0051] In one or more embodiments, the microcontroller 1021 may include a low-power UART (LPUART) interface that may consume about 50% more power than an SPI interface for each transmitted byte (e.g., about 5 μJ per byte). However, a LPUART interface may provide an advantageous trade-off between power consumption and the number of GPIOs required.
[0052] Therefore, in order to perform an OTA configuration procedure, the communication between the base station 101 and the radio 1020, as well as the communication between the radio 1020 and the microcontroller 1021, may be managed taking into account an energy-efficient approach. That communication may consume an amount of energy E.sub.OTAC computed according to equation 1 reproduced below:
E.sub.OTAC=E.sub.BLE_RX+E.sub.MCU+E.sub.UART+E.sub.M (1)
[0053] In detail, E.sub.BLE_RX is the energy consumed by the radio 1020 while operating in scanning mode (RX phase). For instance, E.sub.BLE_RX may be about 42 μJ provided that the radio 1020 operates with a scanning window of 10 ms (minimum value) and a scanning interval (T.sub.idle) of 100 ms.
[0054] In detail, E.sub.MCU is the energy consumed by the microcontroller 1021 during the communication procedure. For instance, E.sub.MCU may be about 4 μJ provided that the microcontroller 1021 operates in run mode with a CPU clock frequency of 131 kHz and an internal voltage regulator configured to provide an output voltage of 1.8 V.
[0055] In detail, E.sub.UART is the energy consumed by the UART communication interface between the radio 1020 and the microcontroller 1021. The energy E.sub.UART may be computed as the sum of a contribution E.sub.UART_BLE and a contribution E.sub.LPUART_MCU. The contribution E.sub.UART_BLE is the energy consumed by the UART interface of the radio 1020 to transmit 2 bytes (e.g., 1 byte for T.sub.idle and 1 byte for N.sub.TB) to the microcontroller 1021, which may be about 10 μJ. The contribution E.sub.LPUART_MCU is the energy consumed by the UART interface of the microcontroller 1021 to receive 2 bytes (e.g., 1 byte for T.sub.idle and 1 byte for N.sub.TB) from the radio 1020, which may be about 10 tμJ. Therefore, the energy E.sub.UART may be about 20 μJ.
[0056] In detail, E.sub.M is the energy consumed to program the memories (e.g., EEPROMs) of both the radio 1020 and the microcontroller 1021. The energy E.sub.M may be computed as the sum of a contribution E.sub.M_MCU, a contribution E.sub.M_BLE_PE, and a contribution E.sub.M_BLE_WR. The contribution E.sub.M_MCU is the energy consumed to store 2 bytes of data into the memory of the microcontroller 1021; during this operation the microcontroller 1021 may consume on average about 500 μA of current for a programming time of about 4 ms, so that the energy E.sub.M_MCU may be about 2.6 μJ=12 μJ. The contribution E.sub.M_BLE_PE is the energy consumed by the radio 1020 to erase an entire page of the radio memory (e.g., EEPROM memory); during this operation the radio 1020 may consume on average about 500 μA of current for a time of about 21.5 ms, so that the energy E.sub.M_BLE_PE may be about 32 μJ. The contribution E.sub.M_BLE_WR is the energy consumed to store 2 bytes of data into the memory of the radio 1020; during this operation the radio 1020 may consume on average about 500 μA of current for a programming time of about 44 μs, so that the energy E.sub.M_BLE_WR may be about 130 nJ. Therefore, the energy E.sub.M may be about 44 μJ.
[0057] Considering the exemplary amounts of energy discussed above, equation 1 indicates that the energy E.sub.OTAC consumed to perform the OTA configuration procedure may be in the order of 110 μJ, which is about 40% higher than the typical energy harvested during a single energy harvesting cycle by the wireless device 102 in many application cases (E.sub.harvested≈80 μJ). It will be appreciated that an OTA configuration procedure may require exchange of two bytes of data, as exemplified herein, but in general there is no theoretical limit to the amount of data that can be exchanged during a configuration procedure.
[0058] Therefore, one or more embodiments may rely on partitioning the OTA configuration procedure into a number of distinct (e.g., separated in time) phases, each of which consumes an amount of energy equal to or lower than the energy accumulated in the storage capacitor C.sub.stor during a single energy harvesting cycle.
[0059] Purely by way of example, the OTA configuration procedure may be partitioned into three different phases. In the first configuration phase, data sent by the base station 101 may be received by the radio 1020 of the wireless device 102 and stored into the local memory (e.g., flash or EEPROM) of the radio 1020. The amount of energy E.sub.1 consumed for these operations may be calculated according to equation 2 reproduced below:
E.sub.1=E.sub.BLE_RX+E.sub.M_BLE_WR≈42 μJ (2)
[0060] In the second configuration phase, the radio 1020 may transmit the data previously stored into the respective local memory, via a low-power UART interface, to the microcontroller 1021 that stores such data into the local memory (e.g., EEPROM) of the microcontroller 1021. Substantially, once powered the radio 1020 asserts the signal BLE_WFE to indicate to the microcontroller 1021 that new data have been stored in the memory of the radio 1020 that the microcontroller 1021 can fetch. Therefore, the microcontroller 1021 proceeds to fetch the data and subsequently stores such data in its internal memory and notifies the radio 1020 that the read operation is successfully terminated. The amount of energy E.sub.2 consumed for these operations may be calculated according to equation 3 reproduced below:
E.sub.2=E.sub.MCU+E.sub.UART+E.sub.M_MCU≈36 82 J (3)
[0061] In the third configuration phase, the memory of the radio 1020 may be reinitialized. Substantially, the radio 1020 clears the data from its internal (e.g., flash) memory and is ready again in the next cycle to receive new data if available. The amount of energy E.sub.3 consumed for this operation may be calculated according to equation 4 reproduced below:
E.sub.3=E.sub.M_BLE_PE≈32 μJ (4)
[0062] Operation of one or more embodiments may be further understood with reference to
[0063] According to exemplary equations 2, 3 and 4, as a result of partitioning the OTA configuration procedure in smaller “tasks”, the energy consumed to accomplish each of the tasks is lower than the typical energy harvested during a single energy harvesting cycle by the wireless device 102. One or more embodiments may thus provide a higher degree of freedom as to the number of data bytes exchanged, and may result in some extra energy margin that can be used to implement a wider scanning interval and/or to improve the efficiency of the radio communication between the wireless device 102 and the base station 101.
[0064] In one or more embodiments, the radio 1020 may be configured to store the received data and the current data in different reserved memory allocations so as to allow the operations previously discussed with reference to the “second” and “third” configuration phases. For instance, the radio 1020 may be configured to check (e.g., every time that the radio 1020 turns on) whether data was received and stored in the (e.g., flash) memory during the previous communication cycle. If the check reveals that new data are stored in the memory, the radio 1020 may immediately start a communication process with the microcontroller 1021. Otherwise, the radio 1020 may continue to operate as a radio beacon or data receiver. The check may be carried out comparing the received data value with a default initialization value. In case the value read from the local memory after the power-on of the radio 1020 is different from the initialization value, the radio 1020 may start a communication process with the microcontroller 1021 by asserting (e.g., setting to a high logic value) the signal BLE WFE as exemplified by step 402 in
[0065] The radio 1020, after the data transmission, may write a specific word in a selected area of the respective memory that is checked after each power-up. This action results in the radio 1020 reinitializing the respective memory during the third configuration phase, as exemplified by step 416 (“Flash initialization”) in
[0066]
[0067] In one or more embodiments, an acknowledgment procedure may be implemented to signal successful data transmission. The configuration parameters T.sub.idle and N.sub.TB may be part of the BLE advertising data package so that, once the wireless device 102 has been re-configured and starts transmitting again, the base station 101 may be able to receive the configuration parameters of the wireless device 102 and compare them with those previously transmitted. If the comparison returns a positive outcome (i.e., in case the parameters previously transmitted by the base station 101 and those subsequently received from the wireless device 102 are the same), the base station 101 may stop sending the configuration data packets OTAP to the wireless device 102 and the configuration process is completed. Additionally, the wireless device 102 transmitting the configuration parameters may facilitate inspecting the configuration of the wireless device 102 via a Bluetooth sniffer or a smart phone app.
[0068] One or more embodiments may thus provide one or more of the following advantages: [0069] improved use flexibility of the wireless devices by use of easier configuration, reconfiguration and/or firmware update; [0070] possibility to introduce options and functional features with a low cost architecture; [0071] reduced maintenance cost; and [0072] possibility to easily configure a wireless device (e.g., an energy-autonomous, battery-free wireless sensor node) in a variety of different environments, e.g., also in harsh environments.
[0073] Without prejudice to the underlying principles, the details and embodiments may vary, even significantly, with respect to what has been described by way of example only, without departing from the extent of protection.
[0074] The claims are an integral part of the technical teaching provided herein in respect of the embodiments.
[0075] The extent of protection is determined by the annexed claims.