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.
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.
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.
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.
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 ?
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.
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.
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.
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.
Hello Sabasit,
the only one we have is DSPS right now (that is mature). BR JE_Dialog
Dear JE_Dialog,
Hi. Could you please send me DSPS application? My email isyazdani67@ut.ac.ir.
Thank you
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
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
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
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
嗨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
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
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
Hello,
Can explain the functionality of ke_msg_send, atts_write_rsp_send and co_write16p function ?
Thanks,
Sandip
Hi sandip ukani,
Thanks MT_dialog
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.
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
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.
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