DA14580 As a center role

13 posts / 0 new
Last post
Stone_wang
Offline
Last seen:1 year 2 days ago
加入:2015-10-23 03:55
DA14580 As a center role

SDK:3.0.6
Hi,Dialog
The Da14580 can connect more than one device (max is 6 )
see at
http://support.dialog-semiconductor.com/da14580%E5%8F%AF%E4%BB%A5%E6%94%...
,
Is there any demo that can connected to more than one device ?

Thanks .

Device:
MT_dialog
Offline
Last seen:2 months 1 day ago
Staff
加入:2015-06-08 11:34
Hi Stone_Wang,

Hi Stone_Wang,

Yes the 580 when operating as central has the ability to connect with more that 1 peripherals (up to 6 for the 580 and a couple more for 581). The only available example for this kind of configuration is the external proximity_monitor example located in the SDK.

Thanks MT_dialog

Stone_wang
Offline
Last seen:1 year 2 days ago
加入:2015-10-23 03:55
Hi,Dialog , Is the : ..

Hi,Dialog , Is the : ..\DA1458x_SDK_3.0.6\dk_apps\keil_projects\proximity\monitor_fe\fe_proxm_sdk.uvproj ? I had saw this example ,kind of difficulty. Does the example have more document ?
Is SDK5.0 has the master example ?

MT_dialog
Offline
Last seen:2 months 1 day ago
Staff
加入:2015-06-08 11:34
Hi Stone_wang,

Hi Stone_wang,

The proximity monitor has examples in all the SDK's, the example is the in the SDK3 is the prox_monitor_ext_usb or the prox_monitor_ext project, in the SDK5 is the prox_monitor_ext project. Since are fully embedded projects they require an external processor to operate check the projects/host_apps/windows directory in the SDK. You can have a look at the UM-B-010 User manual for more info about the proximity example.

Thanks MT_dialog

Stone_wang
Offline
Last seen:1 year 2 days ago
加入:2015-10-23 03:55
Hi, Dialog:

Hi, Dialog:
I don't have a USB-dongle , (can I use another DA14580 borad connect with a usb-serial module(FTDI ) to instead the USB-dongle ?)
Please see the attached, Can it work ? or I need another Board ?

Attachment:
MT_dialog
Offline
Last seen:2 months 1 day ago
Staff
加入:2015-06-08 11:34
Hi Stone_wang,

Hi Stone_wang,

你的意思是使用另一个开发工具而不是电子狗in order to use the proximity monitor ? Yes, you can use either the pro or the basic kit just make sure that in the fw you are going to download you set the HW_CONFIG in the user_periph_setup.h to the appropriate dev kit. Also make sure that the P04 and P05 are connected with the UART input of the JTAG on the basic kit and the FTDI in case of the pro dev kit.

Thanks MT_dialog

Stone_wang
Offline
Last seen:1 year 2 days ago
加入:2015-10-23 03:55
Hi,Dialog:

Hi,Dialog:
Yes ,I want to use another DA14580 board .
But It can't work . (FW direction: keil_projects\proximity\monitor_fe_usb\...) I find it use UART -P04,P05 .
#define UART1_TX_GPIO_PORT GPIO_PORT_0
#define UART1_TX_GPIO_PIN GPIO_PIN_4
So I connected the FTDI board to P04,P05(The hardware connection is ok,I had tested it ).
And I open pc tool (direction:\host_apps\windows\proximity\monitor\Debug\host_proxm_sdk.exe)
it shows :
####################################################
# DA1458x Proximity Monitor demo application #
####################################################

No command line arguments.
Enter COM port number (values: 1-65535, blank to exit):
// -------------------------------------------------------------------------------------------------------
I enter the COM port 10, COM 10 is connected to the DA14580 by FTDI board .
Then the console Display message :

Connecting to COM10
COM10 succesfully opened, baud rate 115200
Waiting for DA1458x Device
// But I wait a long time , nothing changed .(seems like the picture in attachment I uploaded before )。

I want to know why ,and solved it . Thanks a lot .

MT_dialog
Offline
Last seen:2 months 1 day ago
Staff
加入:2015-06-08 11:34
Hi Stone_Wang,

Hi Stone_Wang,

If you want to use a 580 dev kit but you dont want to use the RTS/CTS pins then you should set the fw in the dongle option which doesn't use those RTS/CTS. If you ve set the fw with dev kit configuration and didnt connect the RTS/CTS pins the device its not going to start scanning. Please give it a try with the prox_monitor_ext on the SDK5, just tested with a basic kit and an external FTDI without RTS/CTS. In order for the console to start operating the windows program sends an GAPM_RESET operation in order to reset the stack of the 580, then the 580 should respond with a GAPM_CMP_EVT so that the windows application can start setting the device, start scanning etc. Are you able to set a break point and catch those events (in the HandleBleMsg are you able to catch the GAPM_CMP_EVENT after the reset command is send) ? Also what is the board that you are using in order to do this (a pro or a basic kit or custom)?

Thanks MT_dialog

Stone_wang
Offline
Last seen:1 year 2 days ago
加入:2015-10-23 03:55
I will test the SDK5 next

I will test the SDK5 next week.
I use custom board , The board only have a DA14580 chip .( I want to know , Can my custom board run the prox_monitor_ext , and work well ?

MSun
Offline
Last seen:8 months 1 week ago
加入:2015-11-30 22:40
From comments, sounds like

From comments, sounds like there is a "SDK5" compatible version.
Presumably the sample application could be modified to run on a standalone DA14580 chip ... with some re-coding efforts.

MSun
Offline
Last seen:8 months 1 week ago
加入:2015-11-30 22:40
In looking at UM-B-010 [User

In looking at UM-B-010 [User Manual : Proximity Example in Integrated and External Processor Solution] ... it seems to only refer to SDK 3.08

Does anyone know if this application has been updated to SDK 5 ?

MT_dialog
Offline
Last seen:2 months 1 day ago
Staff
加入:2015-06-08 11:34
Hi MSun, Stone_Wang

Hi MSun, Stone_Wang

The prox_monitor_ext is the proximity monitor application on the SDK5. In the user_periph_setup.h you can conifgure your application to run on the dialog's dk's (with RTS/CTS) or on the dongle(without flow control). All the implementations of the proximity examples are ported on the SDK 5. As MSun answered you should be able to run the proximity monitor external implementation on a custom board and the modifications should only concern the UART ports that you are using.

Thanks MT_dialog

Stone_wang
Offline
Last seen:1 year 2 days ago
加入:2015-10-23 03:55
Hi,Dialog,

Hi,Dialog,
I had test the prox_monitor_ext on the SDK5.0 ,SDK3.0.10,SDK3.0.6,but it didn't work .
when I enter com10 in the console , I fount it will send GAPM_RESET command on the USART, But The USART do not respond any things(I open a Bus Hound to catch data ,see attachment),And I also set a break point on gapm_cmp_evt_handler but it is not work .
Seems the DA14580 do not give an "answer " on the USART ,right ?
And I use the project :
...\DA14580_581_583_SDK_3.0.10.1\dk_apps\keil_projects\proximity\prox_monitor_ext_usb\Keil_5\prox_monitor_ext_usb.uvprojx ,
Peripheral Init like this(I change nothing ) :(p04,p05)
void set_pad_functions(void) // set gpio port function mode
{
GPIO_ConfigurePin( UART1_TX_GPIO_PORT, UART1_TX_GPIO_PIN, OUTPUT, PID_UART1_TX, false );
GPIO_ConfigurePin( UART1_RX_GPIO_PORT, UART1_RX_GPIO_PIN, INPUT, PID_UART1_RX, false );
}
When I debug (use jlink - swd ),and run .
and open project use vs2010 :
...\DA14580_581_583_SDK_3.0.10.1\host_apps\windows\proximity\monitor\host_proxm.sln
Build ,and run .
enter 10 in the console .But it is not work ..(please see the attatchment temp.pdf.)
How to solved this problem ? Thanks a lot .
Thanks.

Attachment: