Hello!
I got an application that uses dialog14580. It uses a firmware image (a large array named sps_device_580_bin[]) to flash the dialog14580 through SPI. How do I determine which part of this array configures the connection parameters and the advertising parameters?
Device:
Hi jrfajutagana,
Could you please describe what you want to accomplish? As I am able to understand from your description, you have the binary image of the sps host, you converted into an array, and you want to change the connection and advertising parameters from the array? And after that, you want to download the updated array from an external processor to your DA14580 using GTL commands? Did I am understand correctly?
Thanks, PM_Dialog
Hello PM_Dialog!
Yes you're right. However, I'm not the one who made the image and I don't know how it is done. My current situation is that I have a device that uses dialog14580 that is currently working. The device was sending data to the central every ~10 seconds. In the current configuration, the connection was maintained. I needed to change the ble's behavior to disconnect the current connection, sleep(optional), wakeup(optional), advertise, then connect again when data is about to be sent. However, I don't know how will I do it. The only code in the firmware with regards to the dialog14580 is the firmware image that is sent through SPI and the sending of data through UART. There's no other code that pertains to connect, advertise, etc. So I thought that knowing which is which in the firmware image would help me solve my problem. Right now, I'm trying to learn how to use the mid layer API that is included in the SDK. Am I in the right track or is there a better way?
Hi jrfajutagana,
There isn’t any way to change the connection and advertising parameters from the array that is generated from the binary image. You are able to change the connection and advertising parameters from the source code of DSPS and then download the updated binary image to the DA14580.
Thanks, PM_Dialog
Hello PM_Dialog,
So to be able to connect, disconnect, advertise, then connect again, I need to modify the DSPS source code? Then convert it to bin using smart snippets? Is that right?
Hi jrfajutagana,
You should download the DSPS reference application code, modify the connection and advertising parameters, then build the project, and finally use SmartSnippets to download the binary image. If you are not aware how you can do any of the above procedures please let me know to provide you some extra steps.
Thanks, PM_Dialog
Hi PM_Dialog,
I have downloaded the DSPS source code. After I have changed the code according to my needs, how will I convert the hex file into an array?
And also, what if I only wanted to terminate the connection? What I mean is after booting the dialog14580 using the old image, and there is an active connection, is it possible to terminate the connection through spi or uart(by sending a command buffer or something like that) in the application? That way I won't need to update the old firmware image.
By the way, thank you for being patient with me. I'm really new to this. :)
Hi jrfajutagana,
We don’t provide any application that converts the hex files into an array. By the way, you could find some online applications that can do this kind of conversion. Regarding your second question, I am not able to completely catch what you mean, but the DSPS application does not support this kind application. The DSPS reference design project demonstrates specific applications, so please read the DSPS user manual from our support page. Could you please explain a bit more what you want to implement?
Thanks, PM_Dialog