Bluefruit-LE-Shield-Beacon

De MCHobby - Wiki
Révision datée du 3 juin 2017 à 15:11 par Admin (discussion | contributions) (Page créée avec « {{Bluefruit-LE-Shield-NAV}} == Beacon == Adafruit's Bluefruit LE modules currently support the following 'Beacon' technologies: * Beacon (Apple) via AT+BLEBEACON * UriBea... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Sauter à la navigation Sauter à la recherche


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Beacon

Adafruit's Bluefruit LE modules currently support the following 'Beacon' technologies:

  • Beacon (Apple) via AT+BLEBEACON
  • UriBeacon (Google) via AT+BLEURIBEACON (deprecated)
  • Eddystone (Google) via AT+EDDYSTONE*

Modules can be configured to act as 'Beacons' using the following commands:

AT+BLEBEACON

  • Codebase Revision: 0.3.0
  • Parameters: The following comma-separated parameters are required to enable beacon mode:
    • Bluetooth Manufacturer ID (uint16_t)
    • 128-bit UUID
    • Major Value (uint16_t)
    • Minor Value (uint16_t)
    • RSSI @ 1m (int8_t)
  • Output: None
# Enable Apple iBeacon emulation
# Manufacturer ID = 0x004C
AT+BLEBEACON=0x004C,01-12-23-34-45-56-67-78-89-9A-AB-BC-CD-DE-EF-F0,0x0000,0x0000,-59
OK
# Reset to change the advertising data
ATZ
OK
  
# Enable Nordic Beacon emulation
# Manufacturer ID = 0x0059
AT+BLEBEACON=0x0059,01-12-23-34-45-56-67-78-89-9A-AB-BC-CD-DE-EF-F0,0x0000,0x0000,-59
OK
# Reset to change the advertising data
ATZ
OK

Entering Nordic Beacon emulation using the sample code above, you can see the simulated beacon in Nordic's 'Beacon Config' tool below:

Modèle:ADF-Image

AT+BLEURIBEACON

Converts the specified URI into a UriBeacon advertising packet, and configures the module to advertise as a UriBeacon (part of Google's Physical Web project).

To view the UriBeacon URIs you can use one of the following mobile applications:

  • Android 4.3+: Physical Web on the Google Play Store
  • iOS: Physical Web in Apple's App Store


  • Codebase Revision: 0.4.7
  • Parameters: The URI to encode (ex. http://www.adafruit.com/blog)
  • Output: None of a valid URI was entered (length is acceptable, etc.).
AT+BLEURIBEACON=http://www.adafruit.com/blog
OK

# Reset to change the advertising data
ATZ
OK

If the supplied URI is too long you will get the following output:

AT+BLEURIBEACON=http://www.adafruit.com/this/uri/is/too/long
URL is too long
ERROR

Basé sur "Bluefruit LE Shield" d'Adafruit Industries, écrit par Kevin Townsend - Traduit en Français par shop.mchobby.be CC-BY-SA pour la traduction
Toute copie doit contenir ce crédit, lien vers cette page et la section "crédit de traduction".

Based on "Bluefruit LE Shield" from Adafruit Industries, written by Kevin Townsend - Translated to French by shop.mchobby.be CC-BY-SA for the translation
Copies must includes this credit, link to this page and the section "crédit de traduction" (translation credit).

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com