yabo国际娱乐对话半导体客户支持- RTS https://support.dialog-semiconductor.com/resource-keywords/rts 自定义DSPS应用程序没有接收所有字节 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/custom-dsps-application-not-receiving < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >嗨对话框中,< / p > < p >我目前开发固件使用dsp应用与DA14580芯片在一个自定义板。在这个项目中,我使用GPIO引脚来打开和关闭外部微控制器,以便在微控制器不使用时节省电力。当我需要使用单片机,我发送一个简短的命令DA14580使用移动电话,然后DA14850醒来外部微控制器GPIO销,树立UART,发送简短的命令,然后等待接收数据发送到手机。

不需要打开/关闭外部微控制器,我就能成功地在微控制器和手机之间来回发送数据。然而,我认为当我在运行时重新配置引脚时,它会导致数据在接收时丢失,有时会导致DA14580在某处挂起。发生看门狗复位(如果启用了监管机构,和手机与蓝牙设备不再禁用广告如果监管机构)< / p > < p >启动,在“set_pads_function”别针将GPIO输出低电压的别针,以防止任何外部微控制器。

当我用手机连接设备时,我禁用了睡眠模式。

在函数“user_sps_server_data_rx_ind_handler”中,我启动一个定时器来处理我的应用程序进程。

The first time the timer callback occurs, I configure the pins to turn on my external microcontroller and set up my UART pins. TX, RX, CTS, and RTS. (I have HW flow control defined)

After a couple seconds, for testing purposes, I disable the timer in case it is causing any problems. Then, I send the outgoing command to the external microcontroller. I can see that the external microcontroller has received and processed the command correctly.

The external microcontroller then sends 3000+ bytes to the DA14580 in 240 byte chunks.

At this point, I can see that all of the bytes have been sent over UART on a scope. The DA14580 will respond either one of two ways:
1. The device is disconnected from the DSPS mobile app and is stuck in some state.
2. If the device doesn't get stuck. I can look at the amount of bytes received from the DSPS mobile app, there will be ~1940 bytes in the last receive file.

If I initially set up the pins as UART and have the microcontroller "on", the DA14580 is able to handle the 240 byte chunks without HW flow control enabled. The DA14580 is also able to handle the 240 byte chunks with flow control enabled without setting the RTS pin during a transmission.

There are a couple things I suspect could be causing the problem:
Is there anything I need to do when I reconfigure the pins from GPIO to UART during runtime?
Is there anything I need to do with the SPS scheduler when I am reconfiguring the pins that could be causing me to not be able to process all 3000+ bytes?

Anything helps, thank you for your time

Keywords: 
Device: 
星期一,2019年2月11日22:13:26 +0000 ao 284054年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/custom-dsps-application-not-receiving#comments
UART RTS CTS硬件流控制和唤醒 https://support.dialog-semiconductor.com/uart-rts-cts-hardware-flow-control-and-wakeup < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >嗨< / p > < p >我想实现硬件流控制UART。我注意到CTS和RTS引脚低电平活跃。
是否有用于硬件流控制的初始化UART的代码样本可用?我已经完成了GPIO的配置,还有什么需要做的吗?我不知道如何启用硬件流控制,以及它会产生什么影响。在an - b -026中,在“使用UART CTS信号唤醒DA14580”一节中,我注意到CTS默认是低电平,然后切换为高电平和低电平。这是否意味着,如果我想用它来提神的话,它是活性高的?如果它是活跃的高为了被用来作为唤醒,我如何配置它以保持接收数据与硬件流控制, which needs CTS to be active low

Keywords: 
Device: 
星期一,2016年5月30日10:25:42 +0000 ankitdaf 3482年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/uart-rts-cts-hardware-flow-control-and-wakeup#comments
AN-B-026:外部处理器唤醒机制 https://support.dialog-semiconductor.com/resource/b-026-external-processor-wake-mechanisms < div class = "字段field-name-field-version-date field-type-date field-label-inline clearfix”> < div class = "字段标签" >版本日期:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> <跨类=“date-display-single”属性=“dc:日期”数据类型=“xsd: dateTime”内容=“2014 - 08 - 22 - t00:00:00 + 01:00”> 22/08/2014跨度< / > < / div > < / div > < / div > < divclass =”字段field-name-field-version-number field-type-text field-label-inline clearfix”> < div class = "字段标签" >版本号:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> 1.0 < / div > < / div > < / div > < div class =”字段field-name-field-keywords field-type-taxonomy-term-reference field-label-inline clearfix”> < div类= "字段标签" >关键字:< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / cs”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > c < / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords / cts”“=“skos:概念”属性=“rdfs: label skos: prefLabel”CTS数据类型= " " > < / > < / div > < div class =”field-item甚至“> < a href = " / resource-keywords /味噌”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >味噌< / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords /莫西人”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >莫西人< / > < / div > < div class = " field-item甚至“> < a href = " / resource-keywords / rts”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > rts < / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords /后”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >后< / > < / div > < div class =”field-item甚至“> < a href = " / resource-keywords /外部”typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">external . 2014年8月22日星期五16:31:33 +0000 JE_Dialog 603年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/resource/b-026-external-processor-wake-mechanisms#comments