Bluefruit-LE-Shield-GeneralPurpose

De MCHobby - Wiki
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.

Commandes générales

Cette section du document décrit les commandes d'usage "généralisé" disponible sur tous les modules Bluefruit LE:

AT+FACTORYRESET

Efface les données de configuration de la mémoire non-volatile et effectue une réinitialisation d'usine avant de réinitialiser le module Bluefruit.

  • Codebase Revision: 0.3.0
  • Paramètres: Aucun
  • Sortie: Aucun
AT+FACTORYRESET
OK

AT+DFU

Force le module à passer en mode DFU (Device Firmware Update), permettant de faire une mise-à-jour du firmware via les airs (connexion sans fil) en utilisant l'application mise-à-jour de firmware dédicacée disponible pour iOS et pour Android.

  • Codebase Revision: 0.3.0
  • Paramètres: Aucun
  • Sortie: Aucun
AT+DFU
OK

AT+HELP

Displays a comma-separated list of all AT parser commands available on the system.

  • Codebase Version: 0.3.0
  • Paramètres: Aucun
  • Sortie: A comma-separated list of all AT parser commands available on the system.
AT+HELP
AT+FACTORYRESET,AT+DFU,ATZ,ATI,ATE,AT+DBGMEMRD,AT+DBGNVMRD,AT+HWLEDPOLARITY,AT+HWLED,AT+HWGETDIETEMP,AT+HWMODEPINPOLARITY,AT+HWMODEPIN,AT+HWGPIOMODE,AT+HWGPIO,AT+HWI2CSCAN,AT+HWADC,AT+HWVBAT,AT+HWPWM,AT+HWPWRDN,AT+BLEPOWERLEVEL,AT+BLEGETADDRTYPE,AT+BLEGETADDR,AT+BLEBEACON,AT+BLEGETRSSI,AT+GAPGETCONN,AT+GAPDISCONNECT,AT+GAPDEVNAME,AT+GAPDELBONDS,AT+GAPINTERVALS,AT+GAPSTARTADV,AT+GAPSTOPADV,AT+GAPAUTOADV,AT+GAPSETADVDATA,AT+BLEUARTTX,AT+BLEUARTRX,AT+GATTADDSERVICE,AT+GATTADDCHAR,AT+GATTCHAR,AT+GATTLIST,AT+GATTCLEAR,AT+HELP
OK

AT+NVMWRITE

Writes data to the 256 byte user non-volatile memory (NVM) region.

  • Codebase Version: 0.7.0
  • Paramètres:
    • offset: The numeric offset for the first byte from the starting position in the user NVM
    • datatype: Which can be one of STRING (1), BYTEARRAY (2) or INTEGER (3)
    • data: The data to write to NVM memory (the exact payload format will change based on the specified datatype).
  • Sortie: Nothing
# Write 32768 as an integer starting at byte 16 in user NVM
AT+NVMWRITE=16,INTEGER,32768
OK

AT+NVMREAD

Reads data from the 256 byte user non-volatile memory (NVM) region.

  • Codebase Version: 0.7.0
  • Paramètres:
    • offset: The numeric offset for the first byte from the starting position in the user NVM
    • size: The number of bytes to read
    • datatype: The type used for the data being read, which is required to properly parse the data and display it as a response. The value can be one of STRING (1), BYTEARRAY (2) or INTEGER (3)
  • Sortie: The data read back, formatted based on the datatype argument.
# Read an integer back from position 16 in user NVM
AT+NVMREAD=16, 4, INTEGER
32768
OK

AT+MODESWITCHEN

Enables or disables mode switches via the '+++' command on the BLE peripheral of BLE UART side of the connection.

  • Codebase Version: 0.7.1
  • Paramètres:
    • location: This can be a string, either 'local' or 'ble' indicating which side should have the '+++' command enabled or disabled, 'local' being the Bluefruit peripheral and 'ble' being the phone or tablet.
    • state: '0' to disable '+++' mode switches, '1' to enable them.
    • Sortie: Aucun
# Disable reomte '+++' mode switches
AT+MODESWITCHEN=ble,0
OK

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