Skip to main content

Advertising data on DA14531 tiny module

2 months ago

Advertising data on DA14531 tiny module

Posted byLudovicA20 points 5 replies
0 upvotes

Hi,

How to changed the advertising data with the DA14431 Tiny Module used as companion chip?

I need to share in live the value of a sensor, each 500ms.

On thisdoc, I found the AT+ADVDATA command , but with two weakness:

I need to stop advertising, change data and restart advertising at each changed of the sensor value,

The doc said : " Please note that commands AT+ADVDATA and AT+ADVRESP are not available in DA14531 due to memory constraints." is it true with the module?

Thank you.

2 months ago

PM_Dialog

Hi LudovicA,

Thanks for your question online and for your interest in our TINY module solution.

Please try to define the ADVDATA/ADVRESP commands in user_at_commands.h file as follow :

//#define nUSE_AT_ADVDATA //#define nUSE_AT_ADVRESP #define USE_AT_ADVDATA #define USE_AT_ADVRESP

Re-build the project and program the TINY module.

Open a Serial terminal and execute the following AT commands :

AT+ADVSTOP AT+ADVDATA=04:09:43:41:54 AT+ADVSTART

I have tested this with codeless_531_datapump project and CodeLess v6.380.12.6.

Please let us know if this is working.

Thanks, PM_Dialog

2 months ago

LudovicA 20 points

Hi,

I do not have yet the board, but interrested by the faisability.

I understand that the module support the AT+ADVDATA command.

The next question is: what is the maximum rate to exectute the following commands?

AT+ADVSTOP

AT+ADVDATA=sensor value

AT+ADVSTART

If i do this every 100ms, that is the maximum rate of the advertisment, will it work?

Thanks

1 month ago

PM_Dialog

Hi LudovicA,

According to the user guide (section 9), the min advertising interval can be set is 100ms. Please check AT+ADVSTART

Additionally, if you probe the UART lines, you will see that the latency when the codeless responds OK is about 0.32ms. This value can be measured by sending and receiving the "AT" command and getting the time via the logic analyzer.

I believe 100ms might be too fast. There isn’t any maximum rate, so this is something that you should test when you have the DK and you can run the CodeLess.

Thanks, PM_Dialog

1 month ago

LudovicA 20 points

Hi,

May be the Dialog External Processor interface is faster than the ASCII protocol?

I found the GAPM_START_ADVERTISE_CMD command in :

//www.xmece.com/sites/default/files/2020-12/UM-B-1…

Thank you.

1 month ago

PM_Dialog

Hi LudovicA,

This is a completely different concept from the CodeLess. This document provides all necessary information to create GTL based applications. It is for external processor applications. Please see section 1.4.2. External Processor in the following document :

http://lpccs-docs.dialog-semiconductor.com/UM-B-119_DA14585-DA14531_SW_Platform_Reference/Introduction/Introduction.html?highlight=external

The SDk6 includes the prox_monitor_ext project for External Processor application.

My recommendation would be to use the CodeLess and test this when you have the DK on your hands!

Thanks, PM_Dialog