Bluetooth Low Energy Series Part 2

게시자

In this series, Nick Powers will take you through the basics of Bluetooth Low Energy (BLE) and some of the solutions offered in the space. Here is the first part of the series.

8. Attribute

In bluetooth low energy, the data is stored in a database or matrix and each line of the database is an attribute. So the attribute is the basic element to store information. It is composed of three values: the attribute handle, that is like the line of the matrix, the attribute type and the attribute value. The attribute handle is 2 bytes, the attribute type is 2 or 16 bytes and the attribute value is between 0 and 512 bytes. The attribute length can be must longer than a data packet, that's why segmentation was introduced in the L2CAP layer. The attribute type specifies what the attribute represents and is designed by a UUID (Universally Unique IDentifier) and must be 128 bits long. but in BLE, the UUID can be defined as a 2-byte or a 16-byte UUID.

 

9. Attribute Protocol

The attribute protocol has a default maximum transmission unit (MTU) of 23 bytes. Indeed, when we explained the constraints of the oscillator on the physical layer, the maximum number of bytes was 47 bytes. Removing overhead due to preamble, data access address, header, length and CRC, 37 bytes are left for the payload. During advertising, in the payload, 6 bytes are mandatory for the advertising device address. For simplification, and hence power saving, it was decided to have the same useful payload in advertising and data packet that is 37 minus 6 equal 31 bytes. But during encryption, 4 bytes are necessary for an MIC. these left 27 bytes. As the L2CAP layer has an overhead of 4 bytes, 23 bytes are left for the attribute protocol. On the version 4.2, the MTU is must larger as the PDU of a link layer packet may be up to 257 bytes versus 39 bytes for the version 4.1. By default, the MTU is 23 bytes and must be supported by all the devices and all the version, but if an higher MTU is desired, it must be negotiated between all the devices and the lowest supported value must be used.

  

10. GATT

In this video, we present the GATT (Generic Attribute Profile) stack of Bluetooth Low Energy. The GATT define standard ways that services, characteristic and their descriptors can be discovered and then used. The service, as the name implies, performs a service to client, will be useful information for the client. For instance, a battery service will give the energy level of a battery. A temperature service will give the temperature of the application. You can define your own service if not already defines by the SIG. On the bluetooth web site, the list of adopted services is published...battery service, blood pressure, cycling power, indoor positioning, transmission power are examples of services that are adopted. An attribute has 3 elements: the handle value, the type of attribute and the value of the attribute. For a primary service, the type of attribute is equal to the UUID 0x2800. So when a client discover the available services, he needs to check which lines of the matrix have the type of attribute equal to 0x2800. Then the value explains what kind of attribute it is. For instance, for a battery service, the assigned number is 0x180F. In bluetooth specifications, GATT and GAP layers must have their own service. The GAP service is equal to 0x1800 and the GATT service is equal to 0x1801. As you can see, on the handle value 0x0001, the GATT service is declared and on the handle 0x0005, the GAP service is declared.

11. Generic Access Profile

The final layer of BLE is the GAP layer that stands for Generic Access Profile. It defines how devices can discover and connect with one another and how they bond. if not connected, they define how to be a broadcaster or an observer. It also defines the different types of addresses can be used to allow private and resolvable addresses. In the video about the link layer, we explain packet structure of the BLE and how information and data are communicated.

 

12. Security

Security is a very large topic that would require hours to cover. In this video, we give a simple overview of security management in bluetooth low energy.

 

Featured Products

관련 상품 참조

NRF52832-QFAA-R7

Nordic Semiconductor Bluetooth 보기

관련 상품 참조

BLUENRG-MSQTR

STMicroelectronics Bluetooth 보기

관련 상품 참조

BLE112-A-V1

Silicon Labs Bluetooth 보기


Look for more videos from this Bluetooth Low Energy (BLE) series. If you want to learn more, subscribe to our newsletter to get the latest news.

Subscribe

 

최신 뉴스

Sorry, your filter selection returned no results.

개인정보 보호정책이 업데이트되었습니다. 잠시 시간을 내어 변경사항을 검토하시기 바랍니다. 동의를 클릭하면 Arrow Electronics 개인정보 보호정책 및 이용 조건에 동의하는 것입니다.

당사의 웹사이트에서는 사용자의 경험 향상과 사이트 개선을 위해 사용자의 기기에 쿠키를 저장합니다. 당사에서 사용하는 쿠키 및 쿠키 비활성화 방법에 대해 자세히 알아보십시오. 쿠키와 추적 기술은 마케팅 목적으로 사용될 수 있습니다. '동의'를 클릭하면 기기에 쿠키를 배치하고 추적 기술을 사용하는 데 동의하는 것입니다. 쿠키 및 추적 기술을 해제하는 방법에 대한 자세한 내용과 지침을 알아보려면 아래의 '자세히 알아보기'를 클릭하십시오. 쿠키 및 추적 기술 수락은 사용자의 자발적 선택이지만, 웹사이트가 제대로 작동하지 않을 수 있으며 사용자와 관련이 적은 광고가 표시될 수 있습니다. Arrow는 사용자의 개인정보를 존중합니다. 여기에서 당사의 개인정보 보호정책을 읽을 수 있습니다.