Proximity Application sample not working

17 posts / 0 new
Last post
aritec
Offline
Last seen:11 months 3 weeks ago
加入:2014-01-29 06:09
Proximity Application sample not working

Following the documents I start the full hosted reporter on the evaluation board. If I don't disconnect the watchdog will call the NMI interrupt and everythings stops. So I start the reporter and disconnect with ctrl+F5, hopefully the program will run.

Now I start the full embedded monitor on the USB stick. Also disconnect and start the host monitor application, but it seems can't communicate to the USB stick.

####################################################
# DA14580 Proximity Monitor demo application #
####################################################
No cmdline arguments.
Enter COM port number (values: 1-65535, blank to exit): 30
Connecting to COM30
COM30 succesfully opened, baud rate 115200
Waiting for DA14580 Device

Any ideas what I am missing?

Using:
DA14580 SDK v2.0.4.1
uVision4
Windows 7 Professional

JE_Dialog
Offline
Last seen:1 hour 28 min ago
Staff
加入:2013-12-05 14:02
Hello Aritec, in the next

Hello Aritec, in the next couple of days we are releasing a new SDK which has an improved proximity applciation included. This will be available from the resources section of the support site. The SDK will itself be a lot cleaner and more user friendly. This new SDK supports a new ROM revision of the DA14580 which we have released. I would suggest that for any future develoment, migrate to the new ROM revision and use the new SDK. (You can use the same motherboard, we just need to swap out your daughter board - I will contact you to arrange that). Best Regards, JE_Dialog

xumiao
Offline
Last seen:6 years 9 months ago
加入:2014-06-19 01:49
Dear all,

Dear all,

I am playing with full hosted proximity reporter on the evaluation board. However, I found something really strange.
In da14580_config.h, there are four lines:
#define CFG_PRF_BASS 1
#define CFG_PRF_DISS 1
#define CFG_PRF_PXPR 1
#define CFG_PRF_FMPL 1

I assume they are switches used to create profile database on evaluation board. But when I was going to disable any of them using #undef, I noticed that Android APPs always found these seven services there:
GENERIC ACCESS SERVICE
GENERIC ATTRIBUTE SERVICE
DEVICE INFORMATION
LINK LOSS
IMMEDIATE ALERT
TX POWER
BATTERY SERVICE

Do you know what's the reason? Thanks!

xumiao
Offline
Last seen:6 years 9 months ago
加入:2014-06-19 01:49
Let me reshape my question:

Let me reshape my question: in the proximity reporter application, if I modify
#define CFG_PRF_DISS 1
to this:
#undef CFG_PRF_DISS,

will DEVICE INFORMATION be created in database? If I am using an Android APP to list all BLE services running on evaluation board, will the APP see that Device Information Service?

MHv_Dialog
Offline
Last seen:2 months 3 weeks ago
Staff
加入:2013-12-06 15:10
Hi,

Hi,

This is a known issue with Android devices in general. When Android connects to a device that is already known to it, the service discovery step is skipped. To force a service deiscovery (in order to reflect the changes to the services) you need to disable and re-enable Bluetooth on your Android Device.

MHv_Dialog
Offline
Last seen:2 months 3 weeks ago
Staff
加入:2013-12-06 15:10
Hi,

Hi,

The issue you are having has to do with the fact that the DA14580 shuts off the M0 microcontroller as it enters sleep mode. This causes the J-Link to halt execution of the application. The debugger cannot be used while sleep mode is enabled. There is a configuration file for each project named da14580_config.h in which you can change the sleep mode behavior. Originally it is set like this:

/*Sleep modes*/
#define CFG_EXT_SLEEP
#undef CFG_DEEP_SLEEP
You need to change both these to 'undef' in order to disable sleep mode and use the debugger.
Software3
Offline
Last seen:6 years 8 months ago
加入:2014-08-01十二
Hello all,

Hello all,
I would like to known what happend with reporter_fe application in my DA14580 board. I have loaded the application in board ( Debug + Run + Debug to start) but when I search the device with the monitor application in USB-Dongle, it founds anything. This need a different configuration of Jumpers? How can I see if the reporter is correctly running?
Thanks you very much, I hope your answers.

Best regards,
JV

RvA
Offline
Last seen:1 month 6 days ago
Staff
加入:2014-02-07 14:10
Hi Software3,

Hi Software3,
For the application board to run as a fully hosted reporter device you need to load
dk_apps\keil_projects\proximity\reporter_fh\fh_proxr_sdk.uvproj

I noticed you mentioned " reporter_fe application"

Could this be the issue?

Best regards,

RvA_Dialog

xup14936
Offline
Last seen:2 years 7 months ago
加入:2014-12-12 07:47
Hi JE_Dialog,

Hi JE_Dialog,
I tried the Proximity example in the new SDK 3.0.6, but the problem wsa still there.
Do you have any idea what was happened?

Beast regards,

JE_Dialog
Offline
Last seen:1 hour 28 min ago
Staff
加入:2013-12-05 14:02
Hello xup, can you state the

Hello xup, can you state the problem you are having with details ? There are several different points on this thread.

Thanks & BR JE_Dialog

xup14936
Offline
Last seen:2 years 7 months ago
加入:2014-12-12 07:47
I tried new SDK 3.0.6, but

I tried new SDK 3.0.6, but got the same messages on the windows terminal.
Here was the same message:

####################################################
# DA14580 Proximity Monitor demo application #
####################################################
No cmdline arguments.
Enter COM port number (values: 1-65535, blank to exit): 30
Connecting to COM30
COM30 succesfully opened, baud rate 115200
Waiting for DA14580 Device

...

MHv_Dialog
Offline
Last seen:2 months 3 weeks ago
Staff
加入:2013-12-06 15:10
Hi Xup,

Hi Xup,

Let's isolate the two issues for a bit.If you load the reporter_fh onto the devkit, (build/start debug/run/stop debug), can you see the device advertising using a smart phone? For iOS use the LightBlue app, for Android (4.3 or above) use BlueLoupe. Both tools should show you a device named DA1458x.

If you can see the device advertising, disconnect the debugger from the devkit and then build/debug/run the monitor_fe_usb on the USB stick. If you diconnect and reconnect the USB stick with the Windows Device Manager open, you can see which serial port to use - just to make sure.

xup14936
Offline
Last seen:2 years 7 months ago
加入:2014-12-12 07:47
是的,我跟着the

是的,我跟着the procedures of the document "UM-B-010 - Proximity application.pdf" just like you said, but still cannot get it work.
I found there are some posts about this issue in the forum. Here are the lists:
http://support.dialog-semiconductor.com/proximity-application-not-workin...
http://support.dialog-semiconductor.com/proximity-reporter-not-working-help

Any further suggestion?

MHv_Dialog
Offline
Last seen:2 months 3 weeks ago
Staff
加入:2013-12-06 15:10
Hi Xup,

Hi Xup,

I need to know at what step you are stuck. Did you, or did you not, see the proximity reporter_fh advertising using your smart phone?

xup14936
Offline
Last seen:2 years 7 months ago
加入:2014-12-12 07:47
Hi MHv_Dialog,

Hi MHv_Dialog,
I did every steps you mentioned, and I can see proximity reporter_fh advertising using your smart phone.
I also disconnected the debugger from the devkit and then build/debug/run the monitor_fe_usb on the USB stick. I diconnected and reconnected the USB stick with the Windows Device Manager open, and I can see serial port.
I entered the port number in the host application, but got nothing.

Here is the example of host application message:
####################################################
# DA14580 Proximity Monitor demo application #
####################################################
No cmdline arguments.
Enter COM port number (values: 1-65535, blank to exit): 30
Connecting to COM30
COM30 succesfully opened, baud rate 115200
Waiting for DA14580 Device

SeunDae Kim
Offline
Last seen:1 year 4 months ago
加入:2016-05-27 06:13
SDK 5.0.4\DA1458x_SDK_5.0.4

SDK 5.0.4\DA1458x_SDK_5.0.4\DA1458x_SDK\5.0.4\projects\target_apps\ble_examples\prox_monitor_ext

I'm test Demo Kit Basic .
It was working in the Kit with Keil ( Start / Stop Debug Session).
J5 Jump : 25-26 , 27-28 , P0_4,P0_5,P0_6,P0_7
Keil-Flash-Options for Target->Debug->"J-Link/T-TRACE Cortex" (SW)
PC: host_proxm_sdk.exe <----->"S" keyinput ===> " Display All Device Information"

*------------------------------------------------------------------------------------------------------*
J5 Jump : P0_4,P0_5,P0_6,P0_7
Next : Smartsnippets > Firmware > with J-TAG Mode -> SPI Writing
PC: host_proxm_sdk.exe <----->"S" keyinput ===> " Don't Display Anything"
Why It is ?
What the problem? Can you tell me How to do?

#define HW_CONFIG (2) : GPIO Setting Above----

#define UART1_TX_GPIO_PORT GPIO_PORT_0
#define UART1_TX_GPIO_PIN GPIO_PIN_4

#define UART1_RX_GPIO_PORT GPIO_PORT_0
#define UART1_RX_GPIO_PIN GPIO_PIN_5

#define UART1_RTSN_GPIO_PORT GPIO_PORT_0
#define UART1_RTSN_GPIO_PIN GPIO_PIN_6

#define UART1_CTSN_GPIO_PORT GPIO_PORT_0
#define UART1_CTSN_GPIO_PIN GPIO_PIN_7

MT_dialog
Offline
Last seen:3 months 3 days ago
Staff
加入:2015-06-08 11:34
Hi SeunDae Kim,

Hi SeunDae Kim,

I am not sure i get the problem, the basic kit was working when you downloaded the fw via keil, and then you ve tried with Smart Snippets to do what ?

You ve written the SPI on the basic kit with the monitor fw and the device doens't respond to the terminal commands ?

To start with, if i get this right, you won't be able to write the SPI with a UART configuration on the basic kit, in order to write the SPI via smart snippets you will have to connect the MISO/MOSI/CS/SPI_SUP to the corresponding pins indicated by the small schematic right beside the J4 header. So after you apply that jumper configuration you will be able to burn your SPI. After completing the procedure and your fw resides in flash, you will have to apply UART and SPI configuration on the jumpers, in order to be able to boot via SPI and also have UART communication, also dont forget to burn the fw as bootable when Smart Snippets prompts you.

Thanks MT_dialog