Modifications

Sauter à la navigation Sauter à la recherche
Ligne 60 : Ligne 60 :     
== AT+BLEUARTRX ==
 
== AT+BLEUARTRX ==
This command will dump the UART service's RX buffer to the display if any data has been received from from the UART service while running in Command Mode. The data will be removed from the buffer once it is displayed using this command.
+
This command will dump the [https://learn.adafruit.com/introducing-adafruit-ble-bluetooth-low-energy-friend/uart-service UART service]'s RX buffer to the display if any data has been received from from the UART service while running in Command Mode. The data will be removed from the buffer once it is displayed using this command.
    
Any characters left in the buffer when switching back to Data Mode will cause the buffered characters to be displayed as soon as the mode switch is complete (within the limits of available buffer space, which is 1024 bytes on current black 32KB SRAM devices, or 160 bytes for the blue first generation BLEFriend board based on 16KB SRAM parts).
 
Any characters left in the buffer when switching back to Data Mode will cause the buffered characters to be displayed as soon as the mode switch is complete (within the limits of available buffer space, which is 1024 bytes on current black 32KB SRAM devices, or 160 bytes for the blue first generation BLEFriend board based on 16KB SRAM parts).
Ligne 79 : Ligne 79 :  
OK
 
OK
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
== AT+BLEUARTFIFO ==
 +
This command will return the free space available in the BLE UART TX and RX FIFOs.  If you are transmitting large chunks of data, you may want to check if you have enough free space in the TX FIFO before sending, keeping in mind that individual GATT packets can contain up to 20 user bytes each.
 +
 +
* Codebase Revision: 0.6.7
 +
* Parameters: Running this command with no parameters will return two comma-separated values indicating the free space in the TX buffer, following by the RX buffer.  To request a specific buffer, you can execute the command with either a "TX" or "RX" value (For example: "AT+BLEUARTFIFO=TX").
 +
* Output: The free space remaining in the TX and RX FIFO buffer if no parameter is present, otherwise the free space remaining in the specified FIFO buffer.
 +
 +
<syntaxhighlight lang="python">
 +
AT+BLEUARTFIFO
 +
1024,1024
 +
OK
 +
 +
AT+BLEUARTFIFO=TX
 +
1024
 +
OK
 +
 +
AT+BLEUARTFIFO=RX
 +
1024
 +
OK
 +
</syntaxhighlight>
 +
    
{{Bluefruit-LE-Shield-TRAILER}}
 
{{Bluefruit-LE-Shield-TRAILER}}
29 917

modifications

Menu de navigation