Ligne 2 : |
Ligne 2 : |
| | | |
| == Services BLE == | | == Services BLE == |
− | {{traduction}}
| |
| Les commandes suivantes vous permettent d'interagir avec les différents services GATT présent sur les modules Bluefruit LE lorsque celui-ci fonctionne en mode commande. | | Les commandes suivantes vous permettent d'interagir avec les différents services GATT présent sur les modules Bluefruit LE lorsque celui-ci fonctionne en mode commande. |
| | | |
Ligne 349 : |
Ligne 348 : |
| | | |
| == AT+BLEMIDIEN == | | == AT+BLEMIDIEN == |
− | Enables or disables the BLE MIDI service.
| + | Active ou désactive le service MIDI ble. |
| * Codebase Revision: 0.7.0 | | * Codebase Revision: 0.7.0 |
− | * Parameters: State, which can be one of: | + | * Paramètre: Activer / Désactiver le service MIDI BLE avec les valeurs suivante: |
− | ** '''1''' ou '''on''' | + | ** '''1''' ou '''on''' - pour activer |
− | ** '''0''' ou '''off''' | + | ** '''0''' ou '''off''' - pour désactiver |
− | * Output: If executed with no parameters, it will return the current state of the MIDI service as an integer indicating if it is enabled (1) or disabled (0). | + | * Sortie: Lorsqu'elle est exécutée sans paramètre, l'interpréteur de commande retourne une valeur numérique correspondant à l'état d'activation du service MIDI BLE. 1 = activé ou 0 = désactivé. |
− | {{ambox|text=Note: This command will require a reset to take effect.}} | + | {{ambox|text=Note: cette commande nécessitera une réinitialisation (ATZ) pour que la modification soit prise en compte.}} |
| | | |
− | <nowiki># Check the current state of the MIDI service | + | <nowiki># Vérifier l'état actuel du service MIDI |
| AT+BLEMIDIEN | | AT+BLEMIDIEN |
| 1 | | 1 |
| OK | | OK |
| | | |
− | # Enable the MIDI Service | + | # Activer le service MIDI |
| AT+BLEMIDIEN=1 | | AT+BLEMIDIEN=1 |
| OK</nowiki> | | OK</nowiki> |
| | | |
| == AT+BLEMIDIRX == | | == AT+BLEMIDIRX == |
− | Reads an incoming MIDI character array from the buffer.
| + | Lit la mémoire tampon et retourne le tableau de caractère MIDI entrant. |
| * Codebase Revision: 0.7.0 | | * Codebase Revision: 0.7.0 |
− | * Parameters: None | + | * Paramètre: Aucun |
− | * Output: The midi event in byte array format | + | * Sortie: l'événement midi retourné sous forme de tableau d'octet |
| | | |
| <nowiki>AT+BLEMIDIRX | | <nowiki>AT+BLEMIDIRX |
Ligne 377 : |
Ligne 376 : |
| | | |
| == AT+BLEMIDITX == | | == AT+BLEMIDITX == |
− | Sends a MIDI event to host.
| + | Envoyer un événement MIDI vers l'hôte. |
| * Codebase Revision: 0.7.0 | | * Codebase Revision: 0.7.0 |
− | * Parameters: The MIDI event in hex array format, which can be either: | + | * Paramètre: l'événement MIDI sous forme d'un tableau hexadécimal, qui peut être soit: |
− | ** A series of full MIDI events (up to 4 events) | + | ** Une série d'événement MIDI complet (jusqu'à 4 événements) |
− | ** Exactly 1 full MIDI event + several running events without status (up to 7) | + | ** 1 événement MIDI complet (exactement) + plusieurs événements '''running events''' sans statut (''several running events without status'') (jusqu'à 7) |
− | * Output: None | + | * Sortie: Aucune |
| | | |
− | <nowiki># Send 1 event (middle C with max velocity) | + | <nowiki># Envoi de un événement (middle C/DO grave avec la vélocité maximale) |
| AT+BLEMIDITX=90-3C-7F | | AT+BLEMIDITX=90-3C-7F |
| OK | | OK |
| | | |
− | # Send 2 events | + | # Envoi de 2 événements |
| AT+BLEMIDITX=90-3C-7F-A0-3C-7F | | AT+BLEMIDITX=90-3C-7F-A0-3C-7F |
| OK | | OK |
| | | |
− | # Send 1 full event + running event | + | # Envoi d'un événement complet + "running event" |
| AT+BLEMIDITX=90-3C-7F-3C-7F | | AT+BLEMIDITX=90-3C-7F-3C-7F |
| OK</nowiki> | | OK</nowiki> |
| | | |
| == AT+BLEBATTEN == | | == AT+BLEBATTEN == |
− | Enables the Battery Service following the definition from the Bluetooth SIG.
| + | Active le service Battery en suivant la définition de "Bluetooth SIG". |
| + | |
| + | Le [https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.battery_service.xml Service Battery] permet d'exposer l'état de la batterie au périphérique appairé. |
| | | |
| * Codebase Revision: 0.7.0 | | * Codebase Revision: 0.7.0 |
− | * Parameters: Whether the battery service should be enabled, via on of the following values: | + | * Paramètre: Indique si le service Battery doit être activé ou désactivé: |
− | ** '''1''' ou '''on''' | + | ** '''1''' ou '''on''' - activer le service |
− | ** '''0''' ou '''off''' | + | ** '''0''' ou '''off''' - désactiver le service |
− | * Output: If executed with no parameters, a numeric value will be returned indicating whether the battery service is enabled (1) or disabled (0). | + | * Sortie: Si la commande est exécutée sans paramètre alors l'interpréteur de commande retourne une valeur numérique indiquant l'état d'activation du service. Activer = 1, Désactiver = 0. |
− | {{ambox|text=This command requires a system reset to take effect.}} | + | |
| + | {{ambox|text=Nécessite une réinitialisation système (ATZ) pour que la modification soit prise en compte.}} |
| | | |
| == AT+BLEBATTVAL == | | == AT+BLEBATTVAL == |
− | Sets the current battery level in percentage (0..100) for the Battery Service (if enabled).
| + | Permet au module d'envoyer le niveau de sa batterie au périphérique central (votre smartphone). |
| + | |
| * Codebase Revision: 0.7.0 | | * Codebase Revision: 0.7.0 |
− | * Parameters: The percentage for the battery in the range of 0..100. | + | * Paramètre: Le pourcentage (0..100) de la batterie à communiquer. |
− | * Output: If executed with no parameters, the current battery level stored in the characteristic. | + | * Sortie: Si la commande est exécutée sans paramètre, l'interpréteur de commande retourne le niveau de batterie actuel tel qu'il à été stocké dans les caractéristiques. |
| | | |
− | <nowiki># Set the battery level to 72% | + | <nowiki># Fixer le niveau de la batterie à 72% |
| AT+BLEBATTVAL=72 | | AT+BLEBATTVAL=72 |
| OK</nowiki> | | OK</nowiki> |
| | | |
| {{Bluefruit-LE-Shield-TRAILER}} | | {{Bluefruit-LE-Shield-TRAILER}} |