⚠️ Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
Could you please clarify which feature and APIs you are interested in? Regarding the “BLE 5 documentation”, I am not able to understand what you refer to. Do you mean the BLE 5 specifications or SDK 5 documentation? In case you mean SDK5 documentation, I strongly suggest you to read the following user manuals from our support page:
I was referring to the Bluetooth 5 spec supporting features. The DA 1485 has Bluetooth 5 hardware support right, and the 6.0.4 SDK also is Bluetooth 5 compatible. So, I wanted to see how we can implement the features of Bluetooth 5 in our products with this hardware and SDK version. Mainly the APIs to be called, and their description.
We don’t any document relative to Bluetooth 5 specifications that includes all the SDK features of the BLE 5. Be aware that the DA14585 does not support all the new features yet. If you want to add a feature, please clarify which feature you want to implement and then we let you know if it is supported or not.
Thanks for your prompt reply. I would like to use the increased payload feature. In my application, I would like to send 256 bytes of data. So for that, what is the API to be called and how? Should the application fragment the 256 bytes into smaller packets, or will the stack automatically do so? Please suggest the steps required for the same. Also, is the increased data rate feature supported ? Also, I am operating the devices over a custom BLE mesh. So, I would like to know the reliability of ble 5 communication over the mesh. Are any ble 5 related sample codes available in the forum ?
It is strongly recommended to use SDK6.0.8. This feature is called Data Length Extension (DLE) where you are able to add up to 251 bytes of user data. Please take a look into CFG_MAX_RX_PACKET_LENGTH and CFG_MAX_TX_PACKET_LENGTH definitions of da1458x_config_advanced.h header file. This is also supported in SDK6.0.4 but we highly recommend to use SDK6.0.8. Regarding the Mesh, this feature is BLE 5 compliant, but the source code will be published very soon.
The GAPC_SET_LE_PKT_SIZE is the operation that will be sent therefore you are correct and the app_easy_gap_set_data_packet_length() API will send and set the data length on runtime. Please make sure that the CFG_MAX_TX_PACKET_LENGTH and CFG_MAX_RX_PACKET_LENGTH definitions are set with proper DLE (Data Length Extension packet size as well). The CFG_MAX_TX_PACKET_LENGTH is the Maximum supported TX data packet length and the CFG_MAX_TX_PACKET_LENGTH is the Maximum supported RX data packet length according to BLE 4.2 Specifications
Thanks for your prompt reply. Do we have any example to demonstrate the usage of this API? Also, when we have to send the 256 bytes of data, do we have to fragment the data, or will the API take care of this? Also, is the increased data rate feature supported in the SDK 6.0.4?
We do not have any example to demonstrate the usage of this API and the API will take care of this. Yes, the increased data rate feature is supported in the SDK 6.0.4 but we highly recommend you to use SDK6.0.8
你应该配置CFG_MAX_RX_PACKET_LENGTHand CFG_MAX_TX_PACKET_LENGTH definitions of da1458x_config_advanced.h header file with the correct DLE packet. Then you should modify the .max_txoctets and the .max_txtime of the user_gapm_conf structure of the user_config.h header file. Also, you should use the MTU size .max_mtu = 247. Please check the attached example code of the user_gapm_conf structure. If you want to transfer 256 bytes, you need to transfer 2 DLE packets. The first packet will contain 247 + 3 byte hearder and the second the rest of the data. According to the BLE specifications, you are able to send 251 bytes max in one packet. Be aware that the maximum size of the packet is related to SIG specifications and power consumption. Also, I highly suggest you the DSPS application for the DA14585 SoC. This application uses the data length extension. Please search the USE_DLE hash definition.
Hi wisilica,
Could you please clarify which feature and APIs you are interested in? Regarding the “BLE 5 documentation”, I am not able to understand what you refer to. Do you mean the BLE 5 specifications or SDK 5 documentation? In case you mean SDK5 documentation, I strongly suggest you to read the following user manuals from our support page:
https://support.dialog-semiconductor.com/system/files/restricted/UM-B-050_DA1458x_Software_Developer%27s_Guide_1v1.pdf
https://support.dialog-semiconductor.com/system/files/restricted/UM-B-051_DA1458x_Software_Platform_Reference_1v2.pdf
Thanks, PM_Dialog
Hi,
I was referring to the Bluetooth 5 spec supporting features. The DA 1485 has Bluetooth 5 hardware support right, and the 6.0.4 SDK also is Bluetooth 5 compatible. So, I wanted to see how we can implement the features of Bluetooth 5 in our products with this hardware and SDK version. Mainly the APIs to be called, and their description.
Thanks
Wisilica
Hi wisilica,
We don’t any document relative to Bluetooth 5 specifications that includes all the SDK features of the BLE 5. Be aware that the DA14585 does not support all the new features yet. If you want to add a feature, please clarify which feature you want to implement and then we let you know if it is supported or not.
Thanks, PM_Dialog
Hi,
Thanks for your prompt reply. I would like to use the increased payload feature. In my application, I would like to send 256 bytes of data. So for that, what is the API to be called and how? Should the application fragment the 256 bytes into smaller packets, or will the stack automatically do so? Please suggest the steps required for the same.
Also, is the increased data rate feature supported ?
Also, I am operating the devices over a custom BLE mesh. So, I would like to know the reliability of ble 5 communication over the mesh.
Are any ble 5 related sample codes available in the forum ?
SDK - 6.0.4
HW - DA 14585
Hi wisilica,
It is strongly recommended to use SDK6.0.8. This feature is called Data Length Extension (DLE) where you are able to add up to 251 bytes of user data. Please take a look into CFG_MAX_RX_PACKET_LENGTH and CFG_MAX_TX_PACKET_LENGTH definitions of da1458x_config_advanced.h header file. This is also supported in SDK6.0.4 but we highly recommend to use SDK6.0.8. Regarding the Mesh, this feature is BLE 5 compliant, but the source code will be published very soon.
Thanks, PM_Dialog
Hi,
Thanks for your reply. But please explain the usage of this length, and the API s to be used for the advertisement of this extended payload.
Thanks
Hi wisilica,
The GAPC_SET_LE_PKT_SIZE is the operation that will be sent therefore you are correct and the app_easy_gap_set_data_packet_length() API will send and set the data length on runtime. Please make sure that the CFG_MAX_TX_PACKET_LENGTH and CFG_MAX_RX_PACKET_LENGTH definitions are set with proper DLE (Data Length Extension packet size as well). The CFG_MAX_TX_PACKET_LENGTH is the Maximum supported TX data packet length and the CFG_MAX_TX_PACKET_LENGTH is the Maximum supported RX data packet length according to BLE 4.2 Specifications
Thanks, PM_Dialog
Hi,
Thanks for your prompt reply. Do we have any example to demonstrate the usage of this API? Also, when we have to send the 256 bytes of data, do we have to fragment the data, or will the API take care of this?
Also, is the increased data rate feature supported in the SDK 6.0.4?
Thanks
Hi wisilica,
We do not have any example to demonstrate the usage of this API and the API will take care of this. Yes, the increased data rate feature is supported in the SDK 6.0.4 but we highly recommend you to use SDK6.0.8
Thanks, PM_Dialog
Hi,
所以你能请解释数据速率的增加feature can be implemented?
Hi wisilica,
你应该配置CFG_MAX_RX_PACKET_LENGTHand CFG_MAX_TX_PACKET_LENGTH definitions of da1458x_config_advanced.h header file with the correct DLE packet. Then you should modify the .max_txoctets and the .max_txtime of the user_gapm_conf structure of the user_config.h header file. Also, you should use the MTU size .max_mtu = 247. Please check the attached example code of the user_gapm_conf structure. If you want to transfer 256 bytes, you need to transfer 2 DLE packets. The first packet will contain 247 + 3 byte hearder and the second the rest of the data. According to the BLE specifications, you are able to send 251 bytes max in one packet. Be aware that the maximum size of the packet is related to SIG specifications and power consumption. Also, I highly suggest you the DSPS application for the DA14585 SoC. This application uses the data length extension. Please search the USE_DLE hash definition.
Thanks, PM_Dialog
Hi,
Thanks for your reply, but I am not able to find any example code attached.
Thanks
Hi,
"Please check the attached example code of the user_gapm_conf structure."
I am not able to find the attached sample code. Please provide the same.
Thanks
Wisilica
Hi wisilica,
Probably the example code did not uploaded correctly, but contains what I have mentioned in my previous post. Please, find it attached.
Thanks, PM_Dialog