⚠️
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.
8 posts / 0 new
Last post
jrfajutagana
Offline
Last seen:1 year 7 months ago
加入:2018-08-03 01:34
Firmware Image

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:
PM_Dialog
Offline
Last seen:23 hours 8 min ago
工作人员
加入:2018-02-08 11:03
Hi jrfajutagana,

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

jrfajutagana
Offline
Last seen:1 year 7 months ago
加入:2018-08-03 01:34
Hello 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?

PM_Dialog
Offline
Last seen:23 hours 8 min ago
工作人员
加入:2018-02-08 11:03
Hi jrfajutagana,

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

jrfajutagana
Offline
Last seen:1 year 7 months ago
加入:2018-08-03 01:34
Hello 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?

PM_Dialog
Offline
Last seen:23 hours 8 min ago
工作人员
加入:2018-02-08 11:03
Hi jrfajutagana,

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

jrfajutagana
Offline
Last seen:1 year 7 months ago
加入:2018-08-03 01:34
Hi 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. :)

PM_Dialog
Offline
Last seen:23 hours 8 min ago
工作人员
加入:2018-02-08 11:03
Hi jrfajutagana,

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