Comunicación mediante Bluetooth de baja energía
Bluetooth de bajo consumo (anteriormente conocido como Bluetooth Smart) es un protocolo de comunicación inalámbrica que utiliza Bluetooth con dispositivos periféricos de bajo consumo. Estos dispositivos periféricos incluyen pulseras de actividad, monitores de salud y dispositivos electrónicos personales, como relojes inteligentes o auriculares inalámbricos. El soporte de la comunicación Bluetooth de bajo consumo es diferente a la interfaz Comunicación Bluetooth de MATLAB®.
La interfaz de Bluetooth de bajo consumo es compatible con estas plataformas:
macOS 10.13 High Sierra o posterior
Windows® 10, versión 1709 o posterior
Para conectarse a dispositivos periféricos compatibles con Bluetooth de bajo consumo, su ordenador necesita tener un adaptador de Bluetooth 4.0 integrado o externo. Después de conectarse a un dispositivo, utilice MATLAB para leer o escribir datos en él. Puede trabajar con descriptores, características y servicios personalizados o estándar.
Para obtener más información sobre las normas y las especificaciones de la comunicación con Bluetooth de bajo consumo, consulte Bluetooth SIG.
Para simular, analizar y probar sistemas de comunicación por Bluetooth, consulte Bluetooth Toolbox.
Funciones
blelist | Scan nearby Bluetooth Low Energy peripheral devices (desde R2019b) |
ble | Connect to Bluetooth Low Energy peripheral device (desde R2019b) |
characteristic | Access a characteristic on Bluetooth Low Energy peripheral device (desde R2019b) |
descriptor | Access a descriptor on Bluetooth Low Energy peripheral device (desde R2019b) |
read | Read characteristic or descriptor data on a Bluetooth Low Energy peripheral device (desde R2019b) |
write | Write data to a characteristic or descriptor on a Bluetooth Low Energy peripheral device (desde R2019b) |
subscribe | Subscribe to characteristic notification or indication (desde R2019b) |
unsubscribe | Unsubscribe from characteristic notification and indication (desde R2019b) |
Temas
- Bluetooth Low Energy Communication Overview
Learn about the basic concepts and terminology for working with the Bluetooth Low Energy protocol.
- Find Your Bluetooth Low Energy Peripheral Devices
Scan for and connect to a Bluetooth Low Energy peripheral device. You can view the advertising data of each device to determine the device type and whether it is connectable before creating a connection.
- Work with Device Characteristics and Descriptors
Control Bluetooth Low Energy peripheral devices by reading or writing characteristics and descriptors. You can work with both standard and custom characteristics and descriptors.
Solución de problemas
Troubleshooting Bluetooth Low Energy
Troubleshoot the Bluetooth Low Energy interface.