Central Mode Example of DA14580

16个职位/ 0 new
Last post
sabasit
Offline
Last seen:1 year 3 weeks ago
Expert
加入:2014-10-14 14:20
Central Mode Example of DA14580

Hi Dialog team,

Is there any full hosted (_fh) example of DA14580 in central mode?

thanks,
sabasit

Device:
JE_Dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2013-12-05 14:02
Hello Sabasit,

Hello Sabasit,

the only one we have is DSPS right now (that is mature). BR JE_Dialog

reza.yazdani67 (not verified)
Dear JE_Dialog,

Dear JE_Dialog,

Hi. Could you please send me DSPS application? My email isyazdani67@ut.ac.ir.

Thank you

JE_Dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2013-12-05 14:02
Hi There, you can download

Hi There, you can download this from the support site (under the referecne desgin section). We refer to it as the 'host' in the DK_Apps. BR JE_Dialog

sandip ukani
Offline
Last seen:3 years 10 months ago
加入:2016-11-07 06:25
Hello,

Hello,

I want to write client server program means scan BLE device, connect and send/receive data from other BLE device.

寻找:

1. DA14580 in client mode scan BLE device and list out.
2. DA14580 in server mode connect any requested device.
3. After successfully connection data communication process should be work.
4. Scan response data I can see through UART, like how many device is available then I can connect any one device.

If any application available in SDK 5.0.3 for above requirement then suggest otherwise suggest API that I can use and develop the application.

If I get any help in this direction is very appreciable !

I get stuck because I didn't get any API so can start my work, as well as no any documents for it's.

Thanks,
sandip

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi sandip,

Hi sandip,

Currently there are a couple of examples that demonstrate this kind of functionallity, the DSPS example that implements the central and the device in a fully hosted project (the application runs in the 580) and there is also the proximity project. The central for the proximity project runs on a fully embedded design, that means that the application runs on an external MCU and communicates with the 580 over UART via a propriety protocol called GTL but the logic behind a fully embedded and fully hosted design are quite similar. So you should start from those projects.

You can find the DSPS and the documentation on the reference design section and the proximity reporter is located in the SDK.

Thanks MT_dialog

sandip ukani
Offline
Last seen:3 years 10 months ago
加入:2016-11-07 06:25
Hi Dialog Team

Hi Dialog Team

I have started from prox_reporter application but when I am requesting for pairing/connect from other central mobile device, it's pairing.
Latter on, From central device I want to sending and receiving the data, for that perpose I have downloaded Buetooth terminal application but it is not connection after long time process. That functionality is not there ? or I need to add any code.

Thanks,
Sandip

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
嗨sandip unkani,

嗨sandip unkani,

I dont quite understand what kind of bluetooth terminal application you mean ? Have you tried the proximity monitor that i ve indicated above ? Also please check the UM-B-010 User Manual : Proximity Example in integrated and external processor solution in order to setup the example.

Thanks MT_dialog

sandip ukani
Offline
Last seen:3 years 10 months ago
加入:2016-11-07 06:25
BLE read/write functionality

Hello,

I am unable locate read/write API in app_reporter application (SDK 5.0.3).

I want to send/receive data through bluetooth retminal application(anroid phone application), you can find google play store. That application is use for Tx/Rx hex or ascii data.

Connection and bonding is also successfully done later I want data communication. Is there profile miss match issue ?

Can you suggest BLE profile things ?

Thanks
Sandip

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi sandip ukani,

Hi sandip ukani,

Regarding the read/write API that you mention, writes/reads can only be initiated by a master, slaves can only notify as long as a master has written their client configuration characteristic so by updating a characteritsic from your slave this will be automatically be sent to your master. To initiate those kind of procedures profile defined messages are used.

By using a generic android application like BLE scanner you should be able to read and write the characteristics of the proximity reporter. Those generic scanners will list on the phone all the available services and characteristics and then you should be able to read, write and notify them. Not all them have the same properties but the application on your phone should indicate which characteristic has read/write/notify property.

Thanks MT_dialog

sandip ukani
Offline
Last seen:3 years 10 months ago
加入:2016-11-07 06:25
Hello,

Hello,

Can explain the functionality of ke_msg_send, atts_write_rsp_send and co_write16p function ?

Thanks,
Sandip

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi sandip ukani,

Hi sandip ukani,

  • ke_msg_send() is used in order to send the allocated command to the BLE stack.
  • atts_write_rsp_send instructs the stack to send a response to BLE write request from a central, if you check the SDK, this command is only invoked when the gattc_write_cmd_ind_handler() is triggered which means that a central wants to write to any of the devices characteristics.
  • co_write16p function assigns the 16bit value parameter to a pointer as two seperate bytes.

Thanks MT_dialog

hantig
Offline
Last seen:3 years 5 months ago
加入:2017-07-03 17:01
Thank you, very much!

Thank you, very much!
I am going to develop a pair proximity tag use with two da14580s. Thus, peripheral and observer.
Peripheral device easily made by sdk example. But observer device was difficult, because there is no sample code in sdk.
I changed as below.
In app_configuration_func() of DSPS, cmd->role = GAP_OBSERVER_SCA
In app_scanning, msg->mode = GAP_OBSERVER_MODE and msg->filter_duplic = SCAN_FILT_DUPLIC_DIS

By the way, by contrast as usb dongle, gapm_adv_report_ind_handler() is less called than dongle.
usb的例子dongle broadcast packets show every 0.5s, but in DSPS observer program broadcast packets(gapm_adv_report_ind_handler called times) show every 2~3s .
Inorder to act my program as usb dongle, how to have to do? How have to change scan interval of observer device ?
Execuse me, would you give me source code? If you will be difficult, I want to help me in detail.

Dear MT_dialog, Execuse me, would you help me? I had ever used nrf51822, but da14580 superior more than nrf51822. I am more interest da14580 and i have already developed several bluetooth devices using da14580.
But da14580 source code which acts as observer certainly is needed to us.Help me! Thanks in advance.

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi hantig,

Hi hantig,

Please dont re-post the same question in multiple threads, i 've answered your question in your original post, herehttps://support.dialog-semiconductor.com/gap-role-combinations.

Thanks MT_dialog

hantig
Offline
Last seen:3 years 5 months ago
加入:2017-07-03 17:01
Thank you very much! Dear, MT

Thank you very much! Dear, MT_dialog.
First i send you images which indicate current situation.
I have done as method which you had told me, but it is same.
Thus, if i set breakpoint in app_on_adv_report_ind() and i compare with dongle packet sniffer, when dongle packet has shown 5~6 times, app_on_adv_report_ind() has called barely 1 times.
Execuse me, Would you please send me observer souce code? My address isskyclean906@gmail.com.

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

Hi hantig,

Please dont re-post the same question in multiple threads, i 've answered your question in your original post, herehttps://support.dialog-semiconductor.com/gap-role-combinations. Lets keep your question in one thread.

Thanks MT_dialog