5 posts / 0 new
Last post
RandyYu
Offline
Last seen:2 years 9 months ago
加入:2015-01-28 08:49
question about master

My project is modified from DSPS host.I have meet some question ,hope to get your help

when master connected to my slave,it must send command to slave,then slave send data to master.

Q1:I know when after connected,master should send a write request to slave,I want to ask how to do it,and which is best
postion to execute the function .
Q2.where is gattc_cmp_evt_handler called?
Q3.in the function gattc_cmp_evt_handler ,param->status = ATT_ERR_ATTRIBUTE_NOT_FOUND?does it correct?
if not how can change it?
第四季度:sps_client_task.c
line 266, status = prf_check_svc_char_validity_128(SPS_CHAR_MAX,spsc_env->sps.chars,spsc_sps_char)
status = PRF_ERR_STOP_DISC_WRONG_CHAR_PROP
how to slove this
My question is a little strange,but I hope you can give me a help ,thank you very much

Device:
MT_dialog
Offline
Last seen:2 months 1 day ago
工作人员
加入:2015-06-08 11:34
Hi RandyYu,

Hi RandyYu,

Q1: You can try performing the write request right after the master accepts the updating parameters of the slave in the gapc_param_update_req_ind_handler() where the confirmation message is sent from the masters side, also you can try to do this via a kernel timer, just trigger a timer after the connected callback in order to give some time to the devices to complete the service discovery, exchange MTU and execute the parameter update and when the kernel timer elapses you can trigger the write request.

Q2: The gattc_cmp_evt_handler() callback is executed in all GATT related events to indicate the completetion of the event and initiate the next procedure.

Q3: The attribute not found isn't necessary a wrong indication but part of the discovery procedure, after the host discovered the first service and there aren't any services to report the device will reply that there are no related attributes to that request.

Q4: The function that you mention checks if the characteristics of the service that was just discovered are the one that should be and have the specific properties that are declared in the array spsc_sps_char.

Thanks MT_dialog

chenpenglai
Offline
Last seen:1 month 1 day ago
加入:2018-12-24 02:24
could you tell me that how do

could you tell me that how do I solve Q4?

CYibin
Offline
Last seen:6 months 2 days ago
工作人员
加入:2017-12-14 02:48
Hi Chenpenglai,

Hi Chenpenglai,

Do you speak Chinese?

For better local support, pls move you questions to CN forum then we can talk in Chinese:

https://support.dialog-semiconductor.com/forums/dialog-smartbond-bluetooth-low-energy-–-software-dialog-“smartbond”系列低功耗蓝牙—软件

Br

CYibin

chenpenglai
Offline
Last seen:1 month 1 day ago
加入:2018-12-24 02:24
Yes I can

Yes I can