Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
ENERGY EFFICIENT BLE MESH INITIALISATION AND OPERATION
Document Type and Number:
WIPO Patent Application WO/2016/137377
Kind Code:
A1
Abstract:
A first Bluetooth device and a method performed thereby for operating in a network of Bluetooth devices, the first Bluetooth device being capable of operating according to at least two different configurations, wherein a first configuration is of lower functionality than a second configuration. The method comprises, when the Bluetooth device is being switched on: associating (110) with other Bluetooth devices by (i) when the first Bluetooth device is operating according to the any configuration not being the highest functionality, transmitting a request, REQ, message in order to discover Bluetooth devices operating according to the configuration having the highest functionality; and (ii) when the first Bluetooth device is operating according to the configuration having the highest functionality, periodically and/or upon reception of the REQ, transmitting an announcement, ANN, message; determining (111) which configuration to operate according to, based at least partly on the association with the other Bluetooth devices; and operating (112) according to the determined configuration.

Inventors:
DI MARCO PIERGIUSEPPE (SE)
SHEN WEI (SE)
CHIRIKOV ROMAN (SE)
Application Number:
PCT/SE2015/051371
Publication Date:
September 01, 2016
Filing Date:
December 18, 2015
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ERICSSON TELEFON AB L M (PUBL) (SE)
International Classes:
H04W84/18; H04W40/24; H04W4/80
Foreign References:
GB2512733A2014-10-08
GB2512733A2014-10-08
Other References:
MIKHAYLOV K; ET AL.: "Multihop data transfer service for Bluetooth Low Energy", 2013 13TH INTERNATIONAL CONFERENCE ON ITS TELECOMMUNICATIONS (ITST);, 5 November 2013 (2013-11-05), pages 319 - 324, XP032532101
BRONZI WALTER ET AL.: "Bluetooth low energy for inter-vehicular communications'';", 2014 IEEE VEHICULAR NETWORKING CONFERENCE (VNC);, 3 December 2014 (2014-12-03), pages 215 - 221, XP032723535
MIKHAYLOV K; ET AL.: "Multihop data transfer service for Bluetooth Low Energy", 2013 13TH INTERNATIONAL CONFERENCE ON ITS TELECOMMUNICATIONS (ITST);, 5 November 2013 (2013-11-05), pages 319 - 324, XP032532101
BRONZI WALTER ET AL.: "Bluetooth low energy for inter-vehicular communications'';", 2014 IEEE VEHICULAR NETWORKING CONFERENCE (VNC);, 3 December 2014 (2014-12-03), pages 215 - 221, XP032723535
See also references of EP 3262893A4
Attorney, Agent or Firm:
AYOUB, Nabil (Patent Unit Kista RAN2, Stockholm, SE)
Download PDF:
Claims:
CLAIMS

1 . A method (100) performed by a first Bluetooth device for operating in a network of Bluetooth devices, the first Bluetooth device being capable of operating according to at least two different configurations, wherein a first configuration is of lower functionality than a second configuration, the method comprising when the Bluetooth device is being switched on:

- associating (1 10) with other Bluetooth devices by (i) when the first

Bluetooth device is operating according to the any configuration not being the highest functionality, transmitting a request, REQ, message in order to discover Bluetooth devices operating according to the configuration having the highest functionality; and (ii) when the first Bluetooth device is operating according to the configuration having the highest functionality, periodically and/or upon reception of the REQ, transmitting an announcement, ANN, message,

- determining (1 1 1 ) which configuration to operate according to, based at least partly on the association with the other Bluetooth devices, and

- operating (1 12) according to the determined configuration.

2. A method according to claim 1 , wherein determining (1 1 1 ) which configuration to operate according to comprises at least one of (a) receiving an instruction or request from a user of the Bluetooth device or from another device, (b) determining to operate according to the first configuration having the lowest functionality, (c) determining to operate according to the configuration having the highest functionality if the device is powered by an external power source, and (d) determining to operate according to an intermediate configuration if more than two.

3. A method according to claim 1 or 2, further comprising: (i) when the Bluetooth device is operating according to the any configuration not being the highest functionality, receiving (120(i)) the ANN and storing (121 (i)) address information of the Bluetooth device that transmitted the ANN; and (ii) when the Bluetooth device is operating according to the configuration having the highest functionality, receiving (120(ii)) the REQ and storing (121 (ii)) address information of the Bluetooth device that transmitted the REQ, and/or receiving the ANN and storing address information of the Bluetooth device that transmitted the ANN.

4. A method according to claim 3, wherein the number of configurations is at least three, wherein the first configuration, R1 D, mainly comprises generating information, the second configuration, R2D, mainly comprises receiving

information, and the third configuration, R3D, comprises generating, relaying and receiving information.

5. A method according to claim 4, wherein when the Bluetooth device is operating according to R1 D being powered by a battery, the method comprises changing to operating according to R3D when being connected to an external power source.

6. A method according to claim 4 or 5, wherein when the Bluetooth device is operating according to R1 D, the method comprises changing (132) to operating according to R2D when receiving (131 ) a request or instruction from a user of the Bluetooth device or from another device.

7. A method according to any of claims 4-6, wherein when the Bluetooth device is operating according to R1 D, the method comprises transmitting (133) the REQ, receiving (134) the ANN and going (135) to a sleep mode until a message is ready to be transmitted, transmitting (136) the message when it is ready to be sent, receiving (137) an Acknowledgement, ACK or ACK through Forwarding, ACKF, and going (138) to the sleep mode until a further message is ready to be transmitted.

8. A method according to claim 8 any of claims 4-6, wherein when the Bluetooth device is operating according to R1 D, the method comprises

transmitting (133) the REQ, and to generate (139) a signal failure if no ANN is received within a predefined time period.

9. A method according to any of claims 4-6, wherein when the Bluetooth device is operating according to R1 D, the method comprises transmitting (140) the REQ, receiving (134) the ANN and going (135) to a sleep mode until a message is ready to be transmitted, transmitting (136) the message when it is ready to be sent, and transmitting (140) the REQ anew if no Acknowledgement, ACK or ACKF is received.

10. A method according to claim 9, further comprising transmitting (136) the message anew if the ANN is received in response to the anew transmitted REQ.

1 1 . A method according to claim 4, wherein when the Bluetooth device is operating according to R2D, the method comprises transmitting (141 ) the REQ, and if no ANN is received within a predefined time period: generating (139) a signal failure.

12. A method according to claim 1 1 , wherein if the ANN is received (142) within the predetermined time period, the method comprises going (143) to a sleep mode until a sleeping timer has expired, wherein when the sleeping timer expires, the method comprises starting (144) a wakeup timer, wherein if a message is received (145) before the wakeup timer expires the method comprises when the received message is a REQ, listening for the ANN and if the ANN is not received, the method comprises changing (146) to operating according to R3D.

13. A method according to claim 12, further comprising starting (147) a configuration timer when changing to operating according to R3D and if the timer lapses before receiving a further message the method comprises changing back (148) to operating according to R2D.

14. A method according to claim 12, wherein if an ANN is received (149) , the method comprises listening for a further message until the wakeup timer expires.

15. A method according to claim 1 1 -14, wherein if the received message is not a REQ, the method comprises transmitting (150) an acknowledgement to the sender of the message if the received message is addressed to the Bluetooth device.

16. A method according to claim 4, wherein when the Bluetooth device is operating according to R3D, the method comprises transmitting (160) the ANN to announce the presence of the Bluetooth device.

17. A method according to claim 16, wherein when the Bluetooth device is operating according to R3D, the method comprises receiving (161 ) a message from another Bluetooth device, and if the received message is a REQ, the method comprises transmitting (162) the ANN anew.

18. A method according to claim 16 or 17, wherein when the Bluetooth device is operating according to R3D, the method comprises, if the received message is not a REQ and addressed to the Bluetooth device, transmitting (163) an ACK to the sender of the received message.

19. A method according to any of claims 16-18, wherein when the Bluetooth device is operating according to R3D, the method further comprises transmitting the REQ, and if no ANN is received within a predefined time period: generating a signal failure.

20. A method according to any of claims 16-19, wherein if the received message is not a REQ and not addressed to the Bluetooth device, the method comprises forwarding (164) the received message to the addressee of the received message, and (i) if an ACK or ACKF is received (165(i)), the method comprises listening (166) for and receiving a further message from another Bluetooth device, or (ii) if no ACK or ACKF is received, the method comprises transmitting (167(ii)) a REQ, and if the ANN is received in response thereto the method comprises forwarding (168) the received message anew to the Bluetooth device being the addressee of the received message.

21 . A method according to claim 20, further comprising if the ANN is not received, the method comprises generating (169) a signal failure.

22. A method according to any of claims 1 -21 , wherein a header of the REQ and the ANN messages comprises at least (1 ) a type indication indicating if the message is a REQ or an ANN, (2) a role indication indicating the role/configuration of the device that is sending the message, and (3) device address indicating the source address of the device that is sending the message.

23. A Bluetooth device (600, 700) for operating in a network of Bluetooth devices, the first Bluetooth device being capable of operating according to at least two different configurations, wherein a first configuration is of lower functionality than a second configuration, the Bluetooth device being configured for, when it is being switched on:

- associating with other Bluetooth devices by (i) when the first Bluetooth

device is operating according to the any configuration not being the highest functionality, transmitting a request, REQ, message in order to discover Bluetooth devices operating according to the configuration having the highest functionality; and (ii) when the first Bluetooth device is operating according to the configuration having the highest functionality, periodically and/or upon reception of the REQ, transmitting an announcement, ANN, message,

- determining which configuration to operate according to, based at least partly on the association with the other Bluetooth devices, and

- operating according to the determined configuration.

24. The Bluetooth device (600, 700) according to claim 23, wherein the Bluetooth device is configuring for determining which configuration to operate according to by at least one of (a) receiving an instruction or request from a user of the Bluetooth device or from another device, (b) determining to operate according to the first configuration having the lowest functionality, (c) determining to operate according to the configuration having the highest functionality if the device is powered by an external power source, and (d) determining to operate according to an intermediate configuration if more than two.

25. The Bluetooth device (600, 700) according to claim 23 or 24, further being configured for: (i) when the Bluetooth device is operating according to the any configuration not being the highest functionality, receiving the ANN and storing address information of the Bluetooth device that transmitted the ANN; and (ii) when the Bluetooth device is operating according to the configuration having the highest functionality, receiving the REQ and storing address information of the Bluetooth device that transmitted the REQ, and/or receiving the ANN and storing address information of the Bluetooth device that transmitted the ANN.

26. The Bluetooth device (600, 700) according to claim 25, wherein the number of configurations is at least three, wherein the first configuration, R1 D, mainly comprises generating information, the second configuration, R2D, mainly comprises receiving information, and the third configuration, R3D, comprises generating, relaying and receiving information.

27. The Bluetooth device (600, 700) according to claim 26, wherein when the Bluetooth device is operating according to R1 D being powered by a battery, the Bluetooth device is configured for changing to operating according to R3D when being connected to an external power source.

28. The Bluetooth device (600, 700) according to claim 26 or 27, wherein when the Bluetooth device is operating according to R1 D, the Bluetooth device is configured for changing to operating according to R2D when receiving a request or instruction from a user of the Bluetooth device or from another device.

29. The Bluetooth device (600, 700) according to any of claims 26-28, wherein when the Bluetooth device is operating according to R1 D, the Bluetooth device is configured for transmitting the REQ, receiving the ANN and going to a sleep mode until a message is ready to be transmitted, transmitting the message when it is ready to be sent, receiving an Acknowledgement, ACK or ACK through Forwarding, ACKF, and going to the sleep mode until a further message is ready to be transmitted.

30. The Bluetooth device (600, 700) according to any of claims 26-28, wherein when the Bluetooth device is operating according to R1 D, the Bluetooth device is configured for transmitting the REQ, and to generate a signal failure if no ANN is received within a predefined time period.

31 . The Bluetooth device (600, 700) according to any of claims 26-28, wherein when the Bluetooth device is operating according to R1 D, the Bluetooth device is configured for transmitting the REQ, receiving the ANN and going to a sleep mode until a message is ready to be transmitted, transmitting the message when it is ready to be sent, and transmitting the REQ anew if no

Acknowledgement, ACK or ACKF is received.

32. The Bluetooth device (600, 700) according to claim 31 , further being configured for transmitting the message anew if the ANN is received in response to the anew transmitted REQ.

33. The Bluetooth device (600, 700) according to claim 26, wherein when the Bluetooth device is operating according to R2D, the Bluetooth device is configured for transmitting the REQ, and if no ANN is received within a predefined time period: generating a signal failure.

34. The Bluetooth device (600, 700) according to claim 33, wherein if the ANN is received within the predetermined time period, the Bluetooth device is configured for going to a sleep mode until a sleeping timer has expired, wherein when the sleeping timer expires, the Bluetooth device is configured for starting a wakeup timer, wherein if a message is received before the wakeup timer expires the Bluetooth device is configured for when the received message is a REQ, listening for the ANN and if the ANN is not received, the Bluetooth device is configured for changing to operating according to R3D.

35. The Bluetooth device (600, 700) according to claim 34, further being configured for starting a configuration timer when changing to operating according to R3D and if the timer lapses before receiving a further message the Bluetooth device is configured for changing back to operating according to R2D.

36. The Bluetooth device (600, 700) according to claim 34, wherein if an ANN is received, the Bluetooth device is configured for listening for a further message until the wakeup timer expires.

37. The Bluetooth device (600, 700) according to claim 33-36, wherein if the received message is not a REQ, the Bluetooth device is configured for transmitting an acknowledgement to the sender of the message if the received message is addressed to the Bluetooth device.

38. The Bluetooth device (600, 700) according to claim 26, wherein when the Bluetooth device is operating according to R3D, the Bluetooth device is configured for transmitting the ANN to announce the presence of the Bluetooth device.

39. The Bluetooth device (600, 700) according to claim 38, wherein when the Bluetooth device is operating according to R3D, the Bluetooth device is configured for receiving a message from another Bluetooth device, and if the received message is a REQ, the Bluetooth device is configured for transmitting the ANN anew.

40. The Bluetooth device (600, 700) according to claim 38 or 39, wherein when the Bluetooth device is operating according to R3D, the Bluetooth device is configured for, if the received message is not a REQ and addressed to the

Bluetooth device, transmitting an ACK to the sender of the received message.

41 . The Bluetooth device (600, 700) according to any of claims 38-40, wherein when the Bluetooth device is operating according to R3D, the Bluetooth device is configured for transmitting the REQ, and if no ANN is received within a predefined time period: generating a signal failure.

42. The Bluetooth device (600, 700) according to any of claims 38-41 , wherein if the received message is not a REQ and not addressed to the Bluetooth device, the Bluetooth device is configured for forwarding the received message to the addressee of the received message, and (i) if an ACK or ACKF is received, the Bluetooth device is configured for listening for and receiving a further message from another Bluetooth device, or (ii) if no ACK or ACKF is received, the Bluetooth device is configured for transmitting a REQ, and if the ANN is received in response thereto the Bluetooth device is configured for forwarding the received message anew to the Bluetooth device being the addressee of the received message.

43. The Bluetooth device (600, 700) according to claim 42, further being configured for, if the ANN is not received, generating a signal failure.

44. The Bluetooth device (600, 700) according to any of claims 23-43, wherein a header of the REQ and the ANN messages comprises at least (1 ) a type indication indicating if the message is a REQ or an ANN, (2) a role indication indicating the role/configuration of the device that is sending the message, and (3) device address indicating the source address of the device that is sending the message.

45. A wireless communication network comprising at least two Bluetooth devices according to any of claims 23-44.

46. A Computer program (810), comprising computer readable code means, which when run in a processing unit (806) comprised in an arrangement (800) in a Bluetooth device (700) according to claims 23-44 causes the Bluetooth device (700) to perform the corresponding method according to any of claims 1 -22.

47. A Computer program product (808) comprising the computer program (810) according to claim 46.

Description:
ENERGY EFFICIENT BLE MESH INITIALISATION AND OPERATION

Technical field

[0001 ] The present disclosure relates to wireless communication and in particular to wireless communication by means of Bluetooth.

Background

[0002] Different wireless technologies exist being adapted for different kind of wireless communication. For short range wireless communication, Bluetooth technology is an example of a suitable technology to use.

[0003] There are different types of Bluetooth, so-called "classic" Bluetooth and Bluetooth Low Energy, BLE. BLE is a wireless personal area network technology based on single-hop client/server type of connections. Compared to Classic Bluetooth, BLE is intended to provide considerably reduced power consumption while maintaining a similar communication range. The Bluetooth Special Interest Group, SIG, identifies a number of markets for BLE technology, particularly in the smart home, health and fitness sectors.

[0004] The technology has a great potential as an enabling technology for the Internet of Things. However, BLE technology is very limited in terms of the coverage, transmission range and peer-to-peer type of communications.

Summary

[0005] The object is to obviate at least some of the problems outlined above. In particular, it is an object to provide a Bluetooth device capable of operating according to at least two configurations and a method performed by the Bluetooth device. The method may be performed e.g. for operating the Bluetooth device. These objects and others may be obtained by providing a Bluetooth device and a method performed by a Bluetooth device according to the independent claims attached below.

[0006] According to an aspect, a method performed by a first Bluetooth device for operating in a network of Bluetooth devices is provided. The first Bluetooth device is capable of operating according to at least two different configurations, wherein a first configuration is of lower functionality than a second configuration. The method comprises, when the Bluetooth device is being switched on:

associating with other Bluetooth devices by (i) when the first Bluetooth device is operating according to the any configuration not being the highest functionality, transmitting a request, REQ, message in order to discover Bluetooth devices operating according to the configuration having the highest functionality; and (ii) when the first Bluetooth device is operating according to the configuration having the highest functionality, periodically and/or upon reception of the REQ,

transmitting an announcement, ANN, message. The method further comprises determining which configuration to operate according to, based at least partly on the association with the other Bluetooth devices; and operating according to the determined configuration.

[0007] According to an aspect, a first Bluetooth device for operating in a network of Bluetooth devices is provided. The first Bluetooth device is capable of operating according to at least two different configurations, wherein a first configuration is of lower functionality than a second configuration. The first Bluetooth device is configured for, when the Bluetooth device is being switched on: associating with other Bluetooth devices by (i) when the first Bluetooth device is operating according to the any configuration not being the highest functionality, transmitting a request, REQ, message in order to discover Bluetooth devices operating according to the configuration having the highest functionality; and (ii) when the first Bluetooth device is operating according to the configuration having the highest functionality, periodically and/or upon reception of the REQ, transmitting an announcement, ANN, message. The first Bluetooth device is further configured for determining which configuration to operate according to, based at least partly on the association with the other Bluetooth devices; and operating according to the determined configuration.

[0008] The first Bluetooth device and the method performed thereby may have several possible advantages. One possible advantage is that the overall power consumption of the Bluetooth device may be reduced leading to the total power consumption of a network comprising Bluetooth devices according to the solution may be reduced. The solution is flexible and the network and devices configure themselves.

Brief description of drawings

[0009] Embodiments will now be described in more detail in relation to the accompanying drawings, in which:

[00010] Figure 1 a is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[0001 1 ] Figure 1 b is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00012] Figure 1 c is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00013] Figure 1 d is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00014] Figure 1 e is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00015] Figure 1f is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00016] Figure 1 g is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment. [00017] Figure 1 h is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00018] Figure 1 i is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00019] Figure 1j is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00020] Figure 1 k is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00021 ] Figure 11 is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00022] Figure 1 m is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00023] Figure 1 n is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00024] Figure 1 o is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00025] Figure 1 p is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment. [00026] Figure 1 q is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00027] Figure 1 r is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

[00028] Figure 2 is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment, wherein the Bluetooth device is operating according to a configuration having the lowest level functionality (e.g. R1 D) of the possible configurations.

[00029] Figure 3 is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment, wherein the Bluetooth device is operating according to a configuration having an intermediate level of functionality (e.g. R2D) of the possible configurations.

[00030] Figure 4 is a flowchart of a method performed by a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment, wherein the Bluetooth device is operating according to a configuration having the highest level functionality (e.g. R3D) of the possible configurations.

[00031 ] Figure 5 is an illustration of a mesh network architecture comprising Bluetooth devices capable of operating according to at least two configurations, in this specific examples the number of configurations are three.

[00032] Figure 6 is a block diagram of a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment. [00033] Figure 7 is a block diagram of a Bluetooth device capable of operating according to at least two configurations according to another exemplifying embodiment.

[00034] Figure 8 is a block diagram of an arrangement in a Bluetooth device capable of operating according to at least two configurations according to an exemplifying embodiment.

Detailed description

[00035] Mesh networking may have a great potential to increase the range of applications for BLE technology.

[00036] There are two types of channels in BLE: advertisement channels and data channels. While advertisement channels may be used in a contention-based fashion, in order to leverage data channels, each link should have procedures including advertisement scanning, connection creation and establishment. Using data channels for mesh may significantly increase maintenance cost and latency. Isochronous channel may be considered a viable alternative for mesh

networking. Most of proprietary solutions for mesh networking over BLE may realise mesh communication by flooding packets through advertisement channels and/or isochronous channels.

[00037] BLE may not inherently support multi-hop communication. Therefore, classic mesh solutions cannot be implemented directly on top of the BLE protocol stack without defining opportune rules to enable reception and forwarding of messages along multiple BLE devices.

[00038] In some technologies, mesh solutions may be built by assigning equal roles and responsibilities to all devices. This is a simple approach but it implies that all devices in the network are awake and listen to the channel for incoming transmissions. This come of a cost of very high energy consumption that does not consider the possibility of having battery powered devices that should last for long time such as several years. [00039] By statically distinguishing different types of devices (i.e. reduced function devices vs. full function devices), some devices may save a lot of energy by sleeping most of the time and all the networking capabilities are demanded to few powerful devices. This solution may be efficient in terms of consumption only for some of the devices. The configuration cannot be changed and therefore the design and the deployment of the network need to be done in consideration of the available type of device, with no flexibility.

[00040] Furthermore, many standardised solutions focus on one-to-many or many-to-one type of traffic. However, this design approach may be inefficient when the network is equally divided by sources of information and destinations of information, with some of those nodes with also relay capabilities.

[00041 ] Figure 1 a illustrates an example of a method 100 performed by a

Bluetooth device capable of operating according to at least two different configurations, wherein a first configuration is of lower functionality than a second configuration, the method comprising when the Bluetooth device is being switched on: associating 1 10 with other Bluetooth devices by (i) when the first Bluetooth device is operating according to the any configuration not being the highest functionality, transmitting a request, REQ, message in order to discover Bluetooth devices operating according to the configuration having the highest functionality; and (ii) when the first Bluetooth device is operating according to the configuration having the highest functionality, periodically and/or upon reception of the REQ, transmitting an announcement, ANN, message. The method further comprises determining 1 12 which configuration to operate according to, based at least partly on the association with the other Bluetooth devices; and operating 1 13 according to the determined configuration.

[00042] The Bluetooth device is capable of operating according to at least two different configurations, wherein a first configuration is of lower functionality than a second configuration. By higher and lower functionality means that the

configurations may have more or less functionality, may have a higher or lower duty cycle, and/or may consume more or less power, and/or may have higher or lower authority.. By being capable of operating according to at least two different configurations also entails the capability of dynamically switching between different configurations during operation of the Bluetooth device.

[00043] Thus when the Bluetooth device is switched on and it does not have any established connections to other Bluetooth devices, the Bluetooth device starts associating itself with other Bluetooth devices that may be within radio reach of the Bluetooth device.

[00044] During the association with other Bluetooth device, the Bluetooth device may discover other Bluetooth devices by transmitting the REQ if the Bluetooth device does not initially operate according to the configuration having the highest functionality. However, if the Bluetooth device is operating according to the configuration having the highest functionality, the Bluetooth device may

periodically transmit an ANN, or the Bluetooth device may transmit an ANN upon reception of the REQ. The REQ and the ANN are generally broadcasted so that a plurality of other devices may be enabled to receive the REQ and the ANN respectively.

[00045] Thus, the Bluetooth device may initially operate according to a "default" configuration when switched on and during association with other devices, and may then during, or after the association with the other devices determine which configuration to operate according to. However, it shall be pointed out that once the configuration has been determined after, or during, the association, the

Bluetooth device may dynamically change configuration according to which it operates according to.

[00046] The Bluetooth device also determines which configuration to operate according to, and this is based at least partly on the association with the other Bluetooth devices. For example, a network may require that every Bluetooth device that is a part of the network must be connected to at least one device operating according to the highest functionality level, consequently, the

determination of which configuration to operate according to is dependent upon the devices to which the Bluetooth device is associated with, i.e. connected to. [00047] Once the Bluetooth device is associated with other devices and has determined which configuration to operate according to, when operating together with the devices to which it is associated, the Bluetooth device may start to operate according to the determined configuration.

[00048] The method performed by the first Bluetooth device may have several possible advantages. One possible advantage is that the overall power

consumption of the Bluetooth device may be reduced leading to the total power consumption of a network comprising Bluetooth devices according to the solution may be reduced. The solution is flexible and the network and devices configure themselves.

[00049] According to an example, determining which configuration to operate according to comprises at least one of (a) receiving an instruction or request from a user of the Bluetooth device or from another device, (b) determining to operate according to the first configuration having the lowest functionality, and (c) determining to operate according to the configuration having the highest

functionality if the device is powered by an external power source, and (d) determining to operate according to an intermediate configuration if more than two.

[00050] In addition to determining 1 12 which configuration to operate according to, based at least partly on the association with the other Bluetooth devices, the decision may also be based on other factors, (a) The Bluetooth device may receive an instruction or request from a user of the Bluetooth device or from another device. Merely as an example, assume that the Bluetooth device is switched on and gets associated with a couple of other Bluetooth devices which already are part of an existing network. Then at least one of the devices to which the Bluetooth device gets associated with requests or instructs the Bluetooth device to operate according to a specific configuration.

[00051 ] Another option (b) is to always start operating at the first configuration having the lowest functionality since this is likely to be the least power consuming configuration and wherein the Bluetooth device may change to another

configuration if so required, either during start-up after being switched on or later on during operation if the operating conditions require or allow change of configuration.

[00052] Still an option (c) is to determine to operate according to the highest functionality if the device is powered by an external power source. If the Bluetooth device is powered by an external power source and not by an internal battery, power consumption of the Bluetooth device may not be an issue and then the Bluetooth device may start operating according to the configuration having highest functionality.

[00053] Yet a further option (d) is to determine to operate according to an intermediate configuration if more than two configurations. Any intermediate configuration between the one having the lowest functionality, and probably the smallest power consumption, and the one having the highest functionality, and probably the highest power consumption, may be suitable to start with and then if required or allowed, the Bluetooth device may change configuration to a higher or a lower functionality configuration.

[00054] According to still an example, the method further comprises: (i) when the Bluetooth device is operating according to any configuration not having the highest functionality, receiving 120i the ANN and storing 21 i address information of the Bluetooth device that transmitted the ANN; and (ii) when the Bluetooth device is operating according to the configuration having the highest functionality, receiving 120N the REQ and storing 121 ii address information of the Bluetooth device that transmitted the REQ, and/or receiving 120N the ANN and storing 121 ii address information of the Bluetooth device that transmitted the ANN.

[00055] In this example, (i) when the Bluetooth device is operating according to any configuration not having the highest functionality, the Bluetooth device receives an ANN message. The ANN message comprises at least address information of the Bluetooth device that transmitted the ANN. The Bluetooth device thus reads the information and then stores the address information of the

Bluetooth device that transmitted the ANN. [00056] Also, (ii) when the Bluetooth device is operating according to the configuration having the highest functionality, the Bluetooth device receives a REQ and/or an ANN message, which both may comprise at least address information of the Bluetooth device that transmitted the REQ and/or an ANN message. Thus the Bluetooth device thus reads the information and then stores the address

information of the Bluetooth device that transmitted the REQ and/or an ANN message.

[00057] However, it shall be pointed out that a low functionality device may optionally store address information of the device that transmitted a REQ, just to allow future extensions of the mechanism.

[00058] In a further example, wherein the number of configurations is at least three, wherein the first configuration, R1 D, mainly comprises generating

information, the second configuration, R2D, mainly comprises receiving

information, and the third configuration, R3D, comprises generating, relaying and receiving information.

[00059] As briefly described above, the difference configurations may have different levels of functionality, length of respective duty cycle and/or different level of power consumption, and/or different authority. Examples of different levels of functionality are generating information, receiving information and relaying information. Consequently, when the Bluetooth device is operating according to R1 D (Role 1 Device) configuration, the Bluetooth device may only generate information and send the information. Correspondingly, when the Bluetooth device is operating according to R2D (Role 2 Device) configuration, the Bluetooth device may receive information and when the Bluetooth device is operating according to R3D (Role 3 Device) configuration, the Bluetooth device may generate, relay and receive information.

[00060] In another example, when the Bluetooth device is operating according to R1 D being powered by a battery, the method comprises changing to operating according to R3D when being connected to an external power source. [00061 ] The Bluetooth device may comprise a battery as well as being connectable to an external power source. For example, if the Bluetooth device is operating according to R1 D in order to consume less power since it is being powered by a battery, the Bluetooth device may at some point be connected to an external power source. When connected to the external power source, the need to consume as little energy as possible may not be as important and the Bluetooth device may switch configurations and start operating according to the R3D configuration, i.e. the configuration having the highest level of functionality.

[00062] According to an example, when the Bluetooth device is operating according to R1 D, the method comprises changing 132 to operating according to R2D when receiving 131 a request or instruction from a user of the Bluetooth device or from another device, having higher authority or functionality.

[00063] As described above, the Bluetooth device may at any time during operation switch between configurations. The trigger to do so may be receiving an instruction or request from another device or from a user of the Bluetooth device. Alternatively, the trigger may be a change in operating condition, e.g. change or power supply, or that a Bluetooth device previously operating according to the R3D configuration suddenly becomes disconnected requiring the Bluetooth device to switch configuration and start operating according to the R3D configuration.

[00064] According to yet an example, when the Bluetooth device is operating according to R1 D, the method comprises transmitting 133 the REQ, receiving 134 the ANN and going 135 to a sleep mode until a message is ready to be

transmitted, transmitting 136 the message when it is ready to be sent, receiving

137 an Acknowledgement, ACK or ACK through Forwarding, ACKF, and going

138 to the sleep mode until a further message is ready to be transmitted. ACKF means that the Bluetooth device may implicitly assume that a packet is

acknowledged when the Bluetooth device can hear the same packet being forwarded.

[00065] As described above, the Bluetooth device may take different actions depending on the configuration it is operating according to. When the Bluetooth device is operating according to R1 D, the method comprises transmitting a REQ message, which is so-to-say broadcasted so that it may be received by more than one other Bluetooth device. The Bluetooth device then waits and listens for an ANN message. Once the ANN message has been received, the Bluetooth device may go to sleep until a message, or packet, is ready to be transmitted. Once the message, or packet, is ready to be transmitted, the Bluetooth device may wake up from its sleep and transmit the message, or packet. The message, or packet, may be broadcasted or may be intended for a specific Bluetooth device as recipient, or addressee, of the message, or packet. If the message, or packet, is intended for a specific Bluetooth device as recipient, or addressee, of the message, or packet, the address of that specific Bluetooth device is comprised in the message, or packet.

[00066] The Bluetooth device then waits and listens for an ACK or an ACK through Forwarding, ACKF. Once the Bluetooth device receives the ACK or the ACKF, the Bluetooth device may go to the sleep mode until a further message is ready to be transmitted. Thus, the Bluetooth device may not receive an explicit ACK in response to the transmitted message, or packet, but by receiving the ACKF instead, the Bluetooth device can be said to overhear that its message, or packet, is being forwarded.

[00067] According to still an example, when the Bluetooth device is operating according to R1 D, the method comprises transmitting 133 the REQ, and to generate 139 a signal failure if no ANN is received within a predefined time period.

[00068] When the Bluetooth device is operating according to R1 D, the Bluetooth device may start by sending a REQ just after being switched on in order to discover other Bluetooth device to associate itself with. The Bluetooth device may expect to receive an ANN message in response to its transmitted REQ message within a predefined time period. If no ANN is received within the predefined time period, the Bluetooth device may re-send the REQ message and again wait for an ANN message. The Bluetooth device may re-send the REQ message a

predetermined number of times without receiving an ANN message, but once the Bluetooth device has re-sent the REQ message the predetermined number of times and no ANN is received within the predefined time period, the Bluetooth device may signal "failure".

[00069] Whenever the first Bluetooth device generates a signal failure due to not receiving e.g. an ANN, ACK or ACKF in response to a transmitted message of any kind, the signal failure may trigger a backup procedure to regain connectivity or a retransmission by the first Bluetooth device of the appropriate message by a device receiving the signal failure.

[00070] According to another example, when the Bluetooth device is operating according to R1 D, the method comprises transmitting 140 the REQ, receiving 134 the ANN and going 135 to a sleep mode until a message, or packet, is ready to be transmitted, transmitting 136 the message when it is ready to be sent, and transmitting 140 the REQ anew if no Acknowledgement, ACK or ACKF is received.

[00071 ] In this example, when the Bluetooth device is operating according to R1 D, the Bluetooth device transmits the REQ, receives the ANN, goes to sleep mode until the message, or packet, is ready to be transmitted. Once the message, or packet, is ready to be transmitted, the Bluetooth device wakes up from its sleep mode and transmits the message, or packet. The Bluetooth device then waits for another predefined period of time for an ACK or an ACKF. If the Bluetooth device does not receive an ACK or ACKF within the predefined period of time, the

Bluetooth device transmits a REQ message. The Bluetooth device may then wait for receiving an ANN message in response to the transmitted REQ message.

[00072] In an example, when the Bluetooth device is operating according to

R1 D,the method further comprises transmitting 136 the message, or packet, anew if the ANN is received in response to the anew transmitted REQ.

[00073] If the Bluetooth device does receive the ANN message in response to the transmitted REQ message, the Bluetooth device re-transmits the message, or packet, hoping it will be received by its intended recipient. The Bluetooth device again waits for the ACK or ACKF during a predefined period of time. However, if the Bluetooth device does not receive an ANN message in response to the transmitted REQ message, the Bluetooth device may generate a signal failure.

[00074] In a further example, when the Bluetooth device is operating according to R2D, the method comprises transmitting 141 the REQ, and if no ANN is received within a predefined time period: generating 139 a signal failure.

[00075] As described above, when the Bluetooth device is operating according to the R2D configuration, the Bluetooth device may start by sending a REQ just after being switched on in order to discover other Bluetooth device to associate itself with. The Bluetooth device may expect to receive an ANN message in response to its transmitted REQ message within a predefined time period. If no ANN is received within the predefined time period, the Bluetooth device may re-send the REQ message and again wait for an ANN message. The Bluetooth device may re- send the REQ message a predetermined number of times without receiving an ANN message, but once the Bluetooth device has re-sent the REQ message the predetermined number of times and no ANN is received within the predefined time period, the Bluetooth device may signal "failure".

[00076] In an example, when the Bluetooth device is operating according to R2D, wherein if the ANN is received 142 within the predefined time period, the method comprises going 143 to a sleeping mode until a sleeping timer has expired, wherein when the sleeping timer expires, the method comprises starting 144 a wakeup timer, wherein if a message is received 145 before the wakeup timer expires the comprises when the received message is a REQ, listening for the ANN and if the ANN is not received, the method comprises changing 146 to operating according to R3D.

[00077] If the ANN message is received within the predefined time period, when the Bluetooth device is operating according to R2D configuration, the Bluetooth device may go to sleep mode until a sleeping timer has expired. By going to sleeping mode, the duty cycle of the Bluetooth device is made longer and the power consumption is reduced. When the sleeping timer expires, the method comprises starting a wakeup timer, which will control the length of the time period the Bluetooth device is "awake" and not in the sleeping mode. Once "awake" the Bluetooth device may listen for messages and if a message is received before the wakeup timer expires, the Bluetooth device may take different actions depending on the type of the received message. If the received message is a REQ message, the Bluetooth device may wait and listen for an ANN message. If no ANN message is received within a predefined time period, the Bluetooth device may change configuration and start operating according to the R3D configuration.

[00078] In still another example, when the Bluetooth device is operating according to R2D, the method further comprises starting 147 a configuration timer when changing to operating according to R3D and if the configuration timer lapses before receiving a further message, the method comprises changing back 148 to operating according to R2D.

[00079] Since the R3D configuration has the highest level of functionality and is probably the most power consuming, the Bluetooth device may not wish to operate according to the R3D configuration longer than needed, especially if the Bluetooth device is powered by an internal battery. Consequently, the Bluetooth device starts the configuration timer when changing to operating according to R3D. The Bluetooth device may also keep track of whether it receives any further messages before the configuration timer expires. If no further message is received before the configuration timer expires, the Bluetooth device may change back to operate according to the R2D configuration.

[00080] According to an example, when the Bluetooth device is operating according to R2D, if the ANN is received 149, the method comprises listening for a further message until the wakeup timer expires.

[00081 ] When the Bluetooth device is operating according to R2D and it has received a REQ message, the Bluetooth device waits the predefined time period to receive, or overhear, an ANN message. If the ANN message is received within the predefined time period, the Bluetooth device may continue to listen for a further message as long as the wakeup timer has not yet expired. Once the wakeup timer expires, the Bluetooth device enters the sleeping mode again, starts the sleeping timer, and stays in the sleeping mode until the sleeping timer expires.

[00082] According to yet an example, when the Bluetooth device is operating according to R2D, wherein if the received message is not a REQ, the method comprises transmitting 150 an ACK to the sender of the message if the received message is addressed to the Bluetooth device.

[00083] In this example, the Bluetooth device is operating according to R2D configuration and has received a message when being "awake", but the received message is not a REQ message as in the above examples. The Bluetooth device may check if the received message, or packet, is intended for the Bluetooth device, e.g. if the address of the Bluetooth device is comprised in the received message, or packet. If the message, or packet, is addressed for the Bluetooth device, the Bluetooth device may send an ACK to the sender of the message, or packet, in order to inform the sender that the packet has been received by its intended recipient.

[00084] However, if the received message, or packet, is not addressed for the Bluetooth device, the Bluetooth device may discard the message, or packet, and continue listening for a further message for as long as the wakeup timer has not yet expired.

[00085] In another example, when the Bluetooth device is operating according to R3D, the method comprises transmitting 160 the ANN to announce the presence of the Bluetooth device.

[00086] In the R3D configuration, the Bluetooth device is operating according to the configuration having the highest level of functionality. Thus, the Bluetooth device may act as relay, receiver and transmitter. The Bluetooth device, when operating in the R3D configuration, may periodically transmit the ANN message in order to announce its presence to other Bluetooth devices.

[00087] In still an example, when the Bluetooth device is operating according to R3D, the method comprises receiving 161 a message from another Bluetooth device, and if the received message is a REQ, the method comprises transmitting 162 the ANN anew.

[00088] Operating according to the R3D configuration, the Bluetooth device may be responsible for transmitting an ANN message in response to a received REQ message.

[00089] In yet an example, when the Bluetooth device is operating according to R3D, the method comprises, if the received message is not a REQ and addressed to the Bluetooth device, transmitting 163 an ACK to the sender of the received message.

[00090] The Bluetooth device may receive different types of messages, REQ, ANN and messages/packets comprising information generated e.g. by another Bluetooth device. In this example, the Bluetooth device is operating according to R3D and receives a message, or packet, which is not a REQ message. The Bluetooth device may then check if the message, or packet, is addressed to itself, i.e. if the Bluetooth is the intended recipient of the message, or packet. If the Bluetooth device is the intended recipient of the message, the Bluetooth device transmits an ACK in order to acknowledge to the sender of the received message, or packet, that it has been successfully received by the Bluetooth device.

[00091 ] According to an example, when the Bluetooth device is operating according to R3D, the method further comprises transmitting the REQ, and if no ANN is received within a predefined time period: generating a signal failure.

[00092] In correspondence with the examples described above, also when the Bluetooth device is operating according to R3D, the Bluetooth device may send REQ messages and expect to receive an ANN message in response. As described above, the Bluetooth device may re-send a REQ message more than once without receiving an ANN message in return. However, after a predefined number of re-transmissions of the REQ message without receiving an ANN response, the Bluetooth device may generate a failure signal. [00093] For example, in case the Bluetooth device has received the message, or packet, not being a REQ message, not being addressed to the Bluetooth device, the Bluetooth device forwards the received message or packet and waits to receive an ACK or ACKF. If the Bluetooth device does not receive an ACK or an ACKF, the Bluetooth device may send a REQ message and expect to receive an ANN message in response.

[00094] In still an example, when the Bluetooth device is operating according to R3D, if the received message is not a REQ nor an ANN and not addressed to the Bluetooth device, the method comprises forwarding 164 the received message to the addressee of the received message, and (i) if an ACK or ACKF is received 165(i), the method comprises listening 166 for and receiving a further message from another Bluetooth device, or (ii) if no ACK or ACKF is received, the method comprises transmitting 167(ii) a REQ, and if the ANN is received in response thereto the method comprises forwarding 168 the received message anew to the Bluetooth device being the addressee of the received message.

[00095] In case the Bluetooth device has received the message, or packet, not being a REQ nor an ANN message, not being addressed to the Bluetooth device (thus the received the message, or packet, comprises data addressed to another device), the Bluetooth device forwards the received message or packet and waits to receive an ACK or ACKF. If the Bluetooth device (i) receives an ACK the Bluetooth device may conclude that the recipient of the message, or packet, has successfully received the message, or packet; or alternatively the Bluetooth device may overhear (by receiving ACKF) that the message, or packet, has been forwarded. The Bluetooth device may the start listening for another message.

[00096] It may be the case that (ii) the Bluetooth device does not receive an ACK or an ACKF. If so, the Bluetooth device transmits a REQ message and waits to receive an ANN message in response thereto. The Bluetooth device may wait for a predefined period of time for the ANN message. If an ANN message is received within the predefined time period, the Bluetooth device may re-forward the message, or packet, anew and again wait for an ACK or ACKF. [00097] In still a further example, when the Bluetooth device is operating according to R3D, further comprising if the ANN is not received, the method comprises generating 169 a signal failure.

[00098] It may be the case that (ii) the Bluetooth device does not receive an ACK or an ACKF. If so, the Bluetooth device transmits a REQ message and waits to receive an ANN message . The Bluetooth device may wait for a predefined period of time for the ANN message. If no ANN message if received within the predefined time period, the Bluetooth device may generate a failure signal. As for the above examples, the Bluetooth device may re-transmit a REQ message more than once without receiving an ANN message in return. However, after a predefined number of re-transmissions of the REQ message without receiving an ANN response, the Bluetooth device may generate the failure signal.

[00099] According to yet an example, a header of the REQ and the ANN messages comprises at least (1 ) a type indication indicating if the message is a REQ or an ANN, (2) a role indication indicating the role/configuration of the device that is sending the message, and (3) device address indicating the source address of the device that is sending the message.

[000100] In order to differentiate the message between being a REQ or an ANN message, the message type indication may be used. It may also be important to indicate to the recipient which configuration that the sender of the REQ and/or ANN message is operating according to. Further, it may be important to include to source address of the device that is sending the message.

[000101 ] The REQ and ANN messages may optionally also comprise additional information. For example, when the Bluetooth device is operating according to a configuration of a lower functionality, e.g. R1 D, the REQ message may comprise destination device address or group destination addresses. This may inform Bluetooth devices operating according to a configuration of a higher functionality, e.g. R3D, about preferred destination of upcoming messages following the REQ message(s). [000102] Also, when the Bluetooth device is operating according to a configuration having an intermediate level of functionality, e.g. R2D, may insert source device address or group source address to inform Bluetooth devices operating according to a configuration of a higher functionality, e.g. R3D, about preferred source for expected messages.

[000103] The solution may have several possible advantages. One possible advantage is that the overall power consumption of the device may be reduced leading to the total power consumption of a network comprising Bluetooth devices according to the solution may be reduced. The solution is flexible and the network and devices configure themselves.

[000104] Thus the proposed solution above comprises a hybrid mesh network architecture for BLE technology in which devices follow different initialisation procedures and state transitions according to at least two possible roles in the mesh network, wherein three possible role is used as an exemplifying

embodiment to illustrate the solution.

[000105] Devices may be configured as Role 1 Devices (R1 D), Role 2 Devices (R2D), and Role 3 Devices (R3D), according to the responsibility to generate information in the network, to process received information, or to distribute information in the network, respectively. The solution associates different duty cycles and association procedures to devices depending on the role, in order to reduce the energy consumption, while guaranteeing network connectivity.

[000106] A request/announcement type of signalling may be implemented to build and maintain the BLE network topology. The solution allows devices to switch roles, i.e. configurations, e.g. due to changes in power resources and/or network demands to guarantee flexibility and adaptability to different scenarios.

[000107] The roles are not statically assigned. A user may decide to configure each device in the BLE mesh network to be low duty cycle devices, so either R1 D or R2D device. The switching policy lets devices configure themselves as R3D devices when necessary. [000108] The proposed solution is designed to be implemented on top of existing BLE protocol stack, without requiring changes onto the Core v4.0 specifications. A role in the mesh architecture may be associated into one or more roles in the existing Generic Access Profile, GAP, so fitting the asymmetric design of legacy BLE networks (master/slave server/client approach).

[000109] The solution allows devices to implement different message forwarding algorithms according to their roles and support further enhancement of energy efficiency.

[0001 10] The solution aims at extending the advantages of low power

communication design of BLE into a networked architecture that enables multi-hop communications.

[0001 1 1 ] The deployment of a mesh BLE network involves devices with different capabilities and different configurations. For example, only a few devices may be based on robust, powered and secure platforms, while most of the other devices may be cheaper battery powered devices with little computational capabilities.

[0001 12] Moreover, devices may have different functionalities and typically are not required to implement them simultaneously. As an example a light switch, a heartbeat sensor, an intrusion detection sensor are mainly demanded to produce data in the network (e.g. switch command, sensing measurement, event detected), but rarely need to receive and process information, except for some form of network signalling. It is often desired that these devices consume as little energy as possible. On the other side, light bulbs, displays, alarms, are mainly destination of data from the network. These devices may be used to relay information, however, when devices are battery-powered, it is also desirable to avoid unnecessary wakeup and forwarding. Some of the devices may act simultaneously as a source and/or a destination of information. They may cooperate with each other to distribute and relay information in the network. A control unit, a smart-phone or a personal computer typically implement such functionalities in the network. [0001 13] In other technologies, distinct roles may be associated statically to the type of device (i.e. reduced function devices vs. full function devices). The present solution exploits the possibility of BLE devices to associate roles to specific functionalities (e.g. observer/broadcaster, central/peripheral) and extend it to mesh architecture. The proposed solution associates pre-defined roles to the devices in a BLE mesh network that may be dynamically changed depending on the application functionalities and network demands.

[0001 14] The exemplifying embodiment of the solution proposes a classification of three possible roles in the mesh network.

• R1 Ds are generally very low duty cycle devices. R1 Ds may wake up to send messages and periodically to synchronise with R3Ds. The role may be associated to devices that mainly generate information in the network. For example, a remote sensor or a portable light switch in a home automation scenario may be configured as R1 Ds.

• R2Ds are also low duty cycle devices, but with higher duty cycle with

respect to R1 D. This role may be associated to devices that act as destination of information in the network. For example, an actuator or a battery-powered led in a home automation scenario may be configured as R2Ds.

• R3Ds are high duty cycle devices that can act as source, relay and

destination of the information. A smartphone, a powered light bulb may be configured as R3D.

[0001 15] A device may initially be configured in one of the role depending on the functionality implemented. In one example of the solution, all the devices that will be used only as source of information are initially configured as R1 D. All the other devices are configured as R2D. This approach may be preferred for minimal energy consumption point of view. In another example of the solution, powered devices may all be configured as R3D. Battery-powered devices may be initialised according to the rule in the previous example. [0001 16] After the initial configuration of devices, an association phase may be initiated. R1 Ds and R2Ds may send a message of type request, REQ, in order to discovery R3Ds in the neighbouring area.

[0001 17] R3Ds may send a message of type announcement, ANN, periodically and upon reception of a REQ message.

[0001 18] R1 Ds may store address information of at least one R3D from received ANN messages, which can be used to forward messages through multi-hop communications.

[0001 19] R3Ds may store address information of R2Ds and R3Ds from received REQ and ANN messages, for possible use in the routing.

[000120] In one example of the solution, the absence of ANN response upon multiple REQ messages is interpreted as an isolated device condition, to which the device react by physically signalling a failure (e.g. through lighting or alarm).

[000121 ] To avoid the determination of isolated device condition in the presence of R1 D and R2D in the neighbourhood, opportune role switching policies are implemented in this solution.

[000122] The network operation state machine may be different for the different roles.

[000123] R1 Ds may sleep for most of the time and wake up to send messages to R2Ds or R3Ds. During the wakeup period, R1 D might listen to incoming control messages from R3Ds and REQ messages from R2D devices that may be direct destination for its messages. If messages are not acknowledged by the next hop destination, R1 Ds may issue a new REQ message. The absence of ANN response upon multiple REQ messages may be interpreted as an isolated device condition, to which the device may react by physically signalling a failure.

[000124] R2Ds may implement an equal or higher duty cycle than R1 Ds. R2Ds may listen to incoming data messages. However, if the device is not the final destination, it may discard the content. Moreover, R2Ds may listen for incoming REQ and ANN messages. If a REQ is received and it is not followed by an ANN from a R3D, the R2D may promote itself to a R3D and consent continuation of network operation.

[000125] R3Ds may implement an equal or higher duty cycle than R2Ds. R3Ds may listen for incoming data messages and forward messages to other R3Ds and R2Ds.

[000126] In one example of the solution, a device may consider a data message acknowledged if it receives the same message forwarded by a R3D. This is illustrated as a forwarding acknowledgement (ACKF).

[000127] As described above, a device that is initially configured as a R2D may switch to R3D upon receiving a REQ message that is not followed by a ANN message by another device. However, in one example of the solution, the new R3D may switch back to R2D if a timeout expires without receiving messages. Other switching of roles/configurations are also possible as will be explained in more detail below.

[000128] In one embodiment of the solution, a device that is initially configured as a R1 D may switch its role from R1 D to R3D when the device is plugged into power outlet. Vice versa, when the device gets unplugged from a power outlet, the device may switch autonomously back to R1 D immediately or upon a low battery signal. This particular implementation allows more reliable networking without affecting the battery consumption of devices.

[000129] In one embodiment of the solution, a device may switch from R1 D to R2D or R3D roles/configurations and vice versa upon specific request from the user of the device, through direct BLE connection. This may be particularly useful after the initial configuration has been done and the resulting number of R2Ds and R3Ds is not sufficient to guarantee network connectivity.

[000130] The following fields may be comprised in the header of a REQ/ANN type of message:

• Type: indicates if the message is a REQ or an ANN. • Role: declares the role R1 D, R2D, or R3D in the mesh.

• Device Address: source address of the device sending the REQ/ANN.

[000131 ] In one embodiment of the solution, R1 D may insert destination device address or group destination addresses into the REQ message to inform R3Ds about preferred destination of the upcoming messages following the REQ.

Similarly, R2D may insert source device address or group source address to inform R3Ds about preferred source for expected messages.

[000132] Figure 2 is a flowchart of a method performed by a Bluetooth device after having been switched on being in the first configuration or role, i.e. R1 D. The R1 D may broadcast a REQ message and wait for an ANN in reply. If no ANN is received then the device may signal failure and fall asleep. If an ANN is received, R1 D may go into sleeping mode until some message is ready to be sent. The message is transmitted and device may go to sleep upon reception of ACK or ACKF. If no acknowledgement is received then the R1 D may assume that the destination was unavailable and may request for a R3D again, i.e. sending a REQ to the R3D. If R3D responses with an ANN, the message is sent again. Otherwise a failure signal may be generated.

[000133] Figure 3 is a flowchart of a method performed by a Bluetooth device after having been switched on being in the second configuration or role, i.e. R2D. The R2D may send a REQ and wait for an ANN. If no ANN is received upon a maximum number of REQ, then the Bluetooth device may signal a failure. If an ANN is received, the R2D may go to sleep. After a period of time specified by the sleep timer the Bluetooth device may turn on its receiver and listen for

packets/messages. If during time interval allowed for listening, no message/packet was received, the device may turn into sleeping mode. If a message was received the device may check the mesh header. If the type of message is REQ and no other Bluetooth device send an ANN after that, then the device switches role into R3D. If the type of message was REQ and some other device sent ANN then the device may continue listening. If the received message was a data packet addressed to this Bluetooth device then an ACK may be sent back. Otherwise the message may be ignored.

[000134] Figure 4 is a flowchart of a method performed by a Bluetooth device after having been switched on being in the third configuration or role, i.e. R3D. The R3D may announce its presence with an ANN message and start to listen for incoming messages. When a REQ is received, R3D may reply with an ANN. When a regular message is received that is addressed to this R3D, it may get ACKed by the R3D. Otherwise it may be forwarded. If the forwarded message is followed by an ACK or ACKF, the R3D may continue to listen for messages. Otherwise, the R3D may start discovery of other R3Ds by sending a REQ. In case of successful discovery the message may be transmitted again. Otherwise failure may be signalled.

[000135] Figure 5 is an illustration of an exemplifying mesh network architecture for R1 D (1 ), R2D (2), and R3D (3). In figure 5, a plurality of Bluetooth devices are operating according to the method performed by the first Bluetooth device as described in figures 1 a-1 r. Thus figure 5 illustrates a wireless communication network comprising at least two Bluetooth devices operating according to the method described above.

[000136] Thus, the solution herein discloses a hybrid network architecture in which the user of Bluetooth devices may configure preferred roles to devices, according to the implemented functionality and the energy constraints. Devices may automatically switch roles according to network demands and power state. Autonomous network initialisation and operation with reduced number of relays are also enabled.

[000137] Embodiments herein also relate to a Bluetooth device for operating in a network of Bluetooth devices is provided. The first Bluetooth device is capable of operating according to at least two different configurations, wherein a first configuration is of lower functionality than a second configuration. [000138] The first Bluetooth device will only be described in brief in order to avoid unnecessary repetition.

[000139] Two different exemplifying implementations of such a Bluetooth device are illustrated in figures 6 and 7. Figures 6 and 7 illustrate the first Bluetooth device being configured for, when the Bluetooth device is being switched on:

associating with other Bluetooth devices by (i) when the first Bluetooth device is operating according to the any configuration not being the highest functionality, transmitting a request, REQ, message in order to discover Bluetooth devices operating according to the configuration having the highest functionality; and (ii) when the first Bluetooth device is operating according to the configuration having the highest functionality, periodically and/or upon reception of the REQ, transmitting an announcement, ANN, message. The first Bluetooth device is further configured for determining which configuration to operate according to, based at least partly on the association with the other Bluetooth devices; and operating according to the determined configuration.

[000140] A first example of a realisation or implementation of the first Bluetooth device is illustrated in Figure 6. Figure 6 illustrates the Bluetooth device 600 comprising a processor 621 and memory 622, the memory comprising

instructions, e.g. by means of a computer program 623, which when executed by the processor 621 causes the Bluetooth device 600 to, when the Bluetooth device is being switched on: associate with other Bluetooth devices by (i) when the first Bluetooth device is operating according to the any configuration not being the highest functionality, transmitting a request, REQ, message in order to discover Bluetooth devices operating according to the configuration having the highest functionality; and (ii) when the first Bluetooth device is operating according to the configuration having the highest functionality, periodically and/or upon reception of the REQ, transmitting an announcement, ANN, message. The memory further comprises instructions, e.g. by means of a computer program 623, which when executed by the processor 621 causes the Bluetooth device 600 to determine which configuration to operate according to, based at least partly on the association with the other Bluetooth devices; and to operate according to the determined configuration.

[000141 ] Figure 6 also illustrates the Bluetooth device 600 comprising a memory 610. It shall be pointed out that figure 6 is merely an exemplifying illustration and memory 610 may be optional, be a part of the memory 622 or be a further memory of the Bluetooth device 600. The memory may for example comprise information relating to the Bluetooth device 600, to statistics of operation of the Bluetooth device 600, just to give a couple of illustrating examples. Figure 6 further illustrates the Bluetooth device 600 comprising processing means 620, which comprises the memory 622 and the processor 621 . Still further, figure 6 illustrates the Bluetooth device 600 comprising a communication unit 630. The communication unit 630 may comprise an interface through which the network node 600 communicates with other nodes or entities and devices of the communication network. Figure 6 also illustrates the Bluetooth device 600 optionally comprising further functionality 640. The further functionality 640 may comprise hardware of software necessary for the Bluetooth device 600 to perform different tasks that are not disclosed herein.

[000142] A second example of a realisation or implementation of the first Bluetooth device is illustrated in Figure 7. Figure 7 illustrates the first Bluetooth device 700 comprising an associating unit 703 for, when the Bluetooth device is being switched on: associating the Bluetooth device with other Bluetooth devices by (i) when the first Bluetooth device is operating according to the any configuration not being the highest functionality, transmitting a request, REQ, message in order to discover Bluetooth devices operating according to the configuration having the highest functionality; and (ii) when the first Bluetooth device is operating according to the configuration having the highest functionality, periodically and/or upon reception of the REQ, transmitting an announcement, ANN, message.

[000143] Figure 7 also illustrates the first Bluetooth device 700 comprising a determining unit 704 for determining which configuration to operate according to, based at least partly on the association with the other Bluetooth devices; and an operating unit 705 for operating according to the determined configuration. [000144] Figure 7 further illustrates the first Bluetooth device 700 comprising a receiving unit 706 for receiving messages from other devices and a transmitting unit 707 for transmitting messages to other devices.

[000145] In figure 7, the Bluetooth device 700 is also illustrated comprising a communication unit 701 . Through this unit, the Bluetooth device 700 is adapted to communicate with other devices and/or entities in the wireless communication network. The communication unit 701 may comprise more than one receiving arrangement. For example, the communication unit 701 may be connected to both a wire and an antenna, by means of which the Bluetooth device 700 is enabled to communicate with other devices and/or entities in the wireless communication network. Similarly, the communication unit 701 may comprise more than one transmitting arrangement, which in turn is connected to both a wire and an antenna, by means of which the Bluetooth device 700 is enabled to communicate with other nodes and/or entities in the wireless communication network. The Bluetooth device 700 further comprises a memory 702 for storing data. Further, the Bluetooth device 700 may comprise a control or processing unit (not shown) which in turn is connected to the different units 703-706. It shall be pointed out that this is merely an illustrative example and the Bluetooth device 700 may comprise more, less or other units or modules which execute the functions of the Bluetooth device 700 in the same manner as the units illustrated in figure 7.

[000146] It should be noted that figure 7 merely illustrates various functional units in the Bluetooth device 700 in a logical sense. The functions in practice may be implemented using any suitable software and hardware means/circuits etc. Thus, the embodiments are generally not limited to the shown structures of the Bluetooth device 700 and the functional units. Hence, the previously described exemplary embodiments may be realised in many ways. For example, one embodiment includes a computer-readable medium having instructions stored thereon that are executable by the control or processing unit for executing the method steps in the Bluetooth device 700. The instructions executable by the computing system and stored on the computer-readable medium perform the method steps of the

Bluetooth device 700 as set forth in this disclosure. [000147] The first Bluetooth device has the same possible advantages as the method performed by the first Bluetooth device. One possible advantage is that the overall power consumption of the Bluetooth device may be reduced leading to the total power consumption of a network comprising Bluetooth devices according to the solution may be reduced. The solution is flexible and the network and devices configure themselves.

[000148] According to an embodiment, the Bluetooth device is configuring for determining which configuration to operate according to by at least one of (a) receiving an instruction or request from a user of the Bluetooth device or from another device, (b) determining to operate according to the first configuration having the lowest functionality, (c) determining to operate according to the configuration having the highest functionality if the device is powered by an external power source, and (d) determining to operate according to an

intermediate configuration if more than two.

[000149] According to yet an embodiment, the first Bluetooth device is further configured for: (i) when the Bluetooth device is operating according to the any configuration not being the highest functionality, receiving the ANN and storing address information of the Bluetooth device that transmitted the ANN; and (ii) when the Bluetooth device is operating according to the configuration having the highest functionality, receiving the REQ and storing address information of the Bluetooth device that transmitted the REQ, and/or receiving the ANN and storing address information of the Bluetooth device that transmitted the ANN.

[000150] According to still an embodiment, wherein the number of configurations is at least three, wherein the first configuration, R1 D, mainly comprises generating information, the second configuration, R2D, mainly comprises receiving

information, and the third configuration, R3D, comprises generating, relaying and receiving information.

[000151 ] According to a further embodiment, wherein when the Bluetooth device is operating according to R1 D being powered by a battery, the Bluetooth device is configured for changing to operating according to R3D when being connected to an external power source.

[000152] According to yet an embodiment, wherein when the Bluetooth device is operating according to R1 D, the Bluetooth device is configured for changing to operating according to R2D when receiving a request or instruction from a user of the Bluetooth device or from another device.

[000153] According to still an embodiment, wherein when the Bluetooth device is operating according to R1 D, the Bluetooth device is configured for transmitting the REQ, receiving the ANN and going to a sleep mode until a message is ready to be transmitted, transmitting the message when it is ready to be sent, receiving an ACK or ACKF, and going to the sleep mode until a further message is ready to be transmitted.

[000154] According to another embodiment, wherein when the Bluetooth device is operating according to R1 D, the Bluetooth device is configured for transmitting the REQ, and to generate a signal failure if no ANN is received within a predefined time period.

[000155] According to a further embodiment, wherein when the Bluetooth device is operating according to R1 D, the Bluetooth device is configured for transmitting the REQ, receiving the ANN and going to a sleep mode until a message is ready to be transmitted, transmitting the message when it is ready to be sent, and transmitting the REQ anew if no ACK or ACKF is received.

[000156] According to yet an embodiment, the first Bluetooth device is further configured for transmitting the message anew if the ANN is received in response to the anew transmitted REQ.

[000157] According to still an embodiment, wherein when the Bluetooth device is operating according to R2D, the Bluetooth device is configured for transmitting the REQ, and if no ANN is received within a predefined time period: generating a signal failure. [000158] According to an embodiment, wherein if the ANN is received within the predetermined time period, the Bluetooth device is configured for going to a sleep mode until a sleeping timer has expired, wherein when the sleeping timer expires, the Bluetooth device is configured for starting a wakeup timer, wherein if a message is received before the wakeup timer expires the Bluetooth device is configured for when the received message is a REQ, listening for the ANN and if the ANN is not received, the Bluetooth device is configured for changing to operating according to R3D.

[000159] According to yet an embodiment, the first Bluetooth device is further configured for starting a configuration timer when changing to operating according to R3D and if the timer lapses before receiving a further message, the Bluetooth device is configured for changing back to operating according to R2D.

[000160] According to still an embodiment, wherein if an ANN is received, the Bluetooth device is configured for listening for a further message until the wakeup timer expires.

[000161 ] According to a further embodiment, wherein if the received message is not a REQ, the Bluetooth device is configured for transmitting an

acknowledgement to the sender of the message if the received message is addressed to the Bluetooth device.

[000162] According to another embodiment, wherein when the Bluetooth device is operating according to R3D, the Bluetooth device is configured for transmitting the ANN to announce the presence of the Bluetooth device.

[000163] According to yet an embodiment, wherein when the Bluetooth device is operating according to R3D, the Bluetooth device is configured for receiving a message from another Bluetooth device, and if the received message is a REQ, the Bluetooth device is configured for transmitting the ANN anew.

[000164] According to an embodiment, wherein when the Bluetooth device is operating according to R3D, the Bluetooth device is configured for, if the received message is not a REQ and addressed to the Bluetooth device, transmitting an ACK to the sender of the received message.

[000165] According to a further embodiment, wherein when the Bluetooth device is operating according to R3D, the Bluetooth device is configured for transmitting the REQ, and if no ANN is received within a predefined time period: generating a signal failure.

[000166] According to another embodiment, wherein if the received message is not a REQ and not addressed to the Bluetooth device, the Bluetooth device is configured for forwarding the received message to the addressee of the received message, and (i) if an ACK or ACKF is received, the Bluetooth device is

configured for listening for and receiving a further message from another Bluetooth device, or (ii) if no ACK or ACKF is received, the Bluetooth device is configured for transmitting a REQ, and if the ANN is received in response thereto the Bluetooth device is configured for forwarding the received message anew to the Bluetooth device being the addressee of the received message.

[000167] According to yet an embodiment, the first Bluetooth device is further configured for, if the ANN is not received, generating a signal failure.

[000168] According to an embodiment, wherein a header of the REQ and the ANN messages comprises at least (1 ) a type indication indicating if the message is a REQ or an ANN, (2) a role indication indicating the role/configuration of the device that is sending the message, and (3) device address indicating the source address of the device that is sending the message.

[000169] Figure 8 schematically shows an embodiment of an arrangement 800 in a Bluetooth device 700. Comprised in the arrangement 800 in the Bluetooth device 700 are here a processing unit 806, e.g. with a Digital Signal Processor, DSP. The processing unit 806 may be a single unit or a plurality of units to perform different actions of procedures described herein. The arrangement 800 of the Bluetooth device 700 may also comprise an input unit 802 for receiving signals from other entities, and an output unit 804 for providing signal(s) to other entities. The input unit and the output unit may be arranged as an integrated entity or as illustrated in the example of figure 7, as one or more interfaces 701 .

[000170] Furthermore, the arrangement 800 in the Bluetooth device 700 comprises at least one computer program product 808 in the form of a non-volatile memory, e.g. an Electrically Erasable Programmable Read-Only Memory,

EEPROM, a flash memory and a hard drive. The computer program product 808 comprises a computer program 810, which comprises code means, which when executed in the processing unit 806 in the arrangement 800 in the Bluetooth device 700 causes the Bluetooth device 700 to perform the actions e.g. of the procedure described earlier in conjunction with figures 1 a-1 r.

[000171 ] The computer program 810 may be configured as a computer program code structured in computer program modules 810a-810e. Hence, in an

exemplifying embodiment, the code means in the computer program of the

Bluetooth device 700 comprises an associating unit, or module, for associating the Bluetooth device with other Bluetooth devices by (i) when the first Bluetooth device is operating according to the any configuration not being the highest functionality, transmitting a request, REQ, message in order to discover Bluetooth devices operating according to the configuration having the highest functionality; and (ii) when the first Bluetooth device is operating according to the configuration having the highest functionality, periodically and/or upon reception of the REQ, transmitting an announcement, ANN, message. The computer program further comprises a determining unit, or module, for determining which configuration to operate according to, based at least partly on the association with the other Bluetooth devices. The computer program further comprises a receiving unit, or module, for receiving messages from other devices and a transmitting unit, or module, for transmitting message to other devices.

[000172] The computer program modules could essentially perform the actions of the flow illustrated in figures 1 a-1 r, to emulate the Bluetooth device 700. In other words, when the different computer program modules are executed in the processing unit 806, they may correspond to the units 703-706 of figure 7. [000173] Although the code means in the embodiments and examples disclosed above in conjunction with figure 7 are implemented as computer program modules which when executed in the processing unit causes the Bluetooth device to perform the actions described above in the conjunction with figures mentioned above, at least one of the code means may in alternative embodiments be implemented at least partly as hardware circuits.

[000174] The processor may be a single Central Processing Unit, CPU, but could also comprise two or more processing units. For example, the processor may include general purpose microprocessors; instruction set processors and/or related chips sets and/or special purpose microprocessors such as Application Specific Integrated Circuits, ASICs. The processor may also comprise board memory for caching purposes. The computer program may be carried by a computer program product connected to the processor. The computer program product may comprise a computer readable medium on which the computer program is stored. For example, the computer program product may be a flash memory, a Random-Access Memory RAM, Read-Only Memory, ROM, or an EEPROM, and the computer program modules described above could in alternative embodiments be distributed on different computer program products in the form of memories within the Bluetooth device.

[000175] It is to be understood that the choice of interacting units, as well as the naming of the units within this disclosure are only for exemplifying purpose, and nodes suitable to execute any of the methods described above may be configured in a plurality of alternative ways in order to be able to execute the suggested procedure actions.

[000176] It should also be noted that the units described in this disclosure are to be regarded as logical entities and not with necessity as separate physical entities.

[000177] While the embodiments have been described in terms of several embodiments, it is contemplated that alternatives, modifications, permutations and equivalents thereof will become apparent upon reading of the specifications and study of the drawings. It is therefore intended that the following appended claims include such alternatives, modifications, permutations and equivalents as fall within the scope of the embodiments and defined by the pending claims.