app_easy_timer()问题...

16 posts / 0 new
最后一篇
prasanth.velliy...
离线
最后一次露面:1年11个月前
加入:2016-02-18 12:18
app_easy_timer()问题...

Hi dialog

we are using DSPS Host project , with custom Board Da14580 ,

As soon as the slave get connected to the host, we are sending data from the slave.And after reception of data we are disconnecting the slave from the master and putting the device to sleep. Master keeps on scanning and when the device wakes up it get connected again and this procedure continues.

It is working fine for some time and after some time, we were facing a issue(Q1).

Q1。We were facing issue in between connection and data reception. DSPS host , taking more time (say 5 to 10 minutes) between connection and data reception, after this time we are able to see user_on_disconnect() callback, without any data reception. During this above said interval(3 or 4 min) host keeps on running ,we can see user_on_system_powered() keep on running ....,what could be the issue ???

Q2。要解决上述问题,请在user_on_connection()中,我们正在开始循环_timer_handler()。如果在预期的间隔内未发生数据接收和断开,则计时器到期,我们正在调用user_scan_start(),否则如果发生连接,如果发生连接并且我们接收的数据正在断开设备和user_on_disconnection()回调,我们将取消计时器。当计时器到期时,我们无法看到注册(MyFunc)的函数。问题可能是什么?

eridical_timer_handler()
{
wrbl_env.read_time2 = app_easy_timer(1000 . myfunc)
}

myfunc(void)
{
user_scan_start();
}
user_on_disconnection()
{
app_easy_timer_cancel(wrbl_env.read_time2);
}

谢谢

Device:
LC._Dialog
离线
最后一次露面:3周5天前
职员
加入:2016-09-19 23:20
普拉萨斯你好,

普拉萨斯你好,

我正在研究解决你的问题。我对此有一些问题。

1. Which version of the DSPS are you using?
2.在Q1方案中,主机和设备是否连接或在连接中删除?
3.您是否在主机中使用任何睡眠模式?

Regarding your Q2, I see an error in code sample provided. The arguments 1000 and myfunc should be separated by a comma (,) instead of a period. Please check it out.

最好的,

LC.

prasanth.velliy...
离线
最后一次露面:1年11个月前
加入:2016-02-18 12:18
嗨对话框

嗨对话框

谢谢for your reply.

1.DA1458x_DSPS_v_5.150.2 version i am using.

2.是的,user_on_connection后()3或4 min to receive data , then no data received finally drop in connection happening (user_on_disconnection() get called. ) (In DSPS device side sleep is there , but host never enters sleep). (This issue we were facing when range b/w Host and device is around 25ft) , if the range is nearby no issues

3. Regarding your Q2, I see an error in code sample provided. The arguments 1000 and myfunc should be separated by a comma (,) instead of a period. Please check it out.
it was a typing mistake => wrbl_env.read_time2 = app_easy_timer(1000 , myfunc)

谢谢你。

prasanth.velliy...
离线
最后一次露面:1年11个月前
加入:2016-02-18 12:18
嗨对话框,

嗨对话框,

This is a gentle reminder regarding the previous mail,

我们正在使用DSP主机和奴隶。我们的代码流在主机中,user_scan_start - >广告报告 - >连接 - >数据接收 - >断开连接(在断开连接上的从属侧,我们将从属睡眠睡3分钟) - > user_scan_start(在断开连接中主机侧我们正在再次开始扫描以扫描下一个设备)。

When the range between the host and slave is less say(<20 feet), everything is working fine. When the range is more say(>20 feet), we were able to see user_on_connection() callback
但没有数据接收。经过一段时间(5分钟),我们能够看到来自主机的断开回调。似乎主机正在尝试连接但无法连接。

Q1。为什么从奴隶能够宣传但无法超越某些范围?

Q2。即使主机无法连接到奴隶为什么我无法立即看到断开回调?为什么它需要一些时间(比如5分钟)进行断开连接?

Q3。有没有办法克服这个问题?

为了解决此问题,我们在user_on_connection()中启动了一个计时器,大约10秒(通常是连接,数据接收和断开,少于10秒),我们正在取消user_on_disconnection()中的计时器。如果user_on_disconnection回调user_on_connection()之后未在10秒内调用,则我们正在调用计时器到期的user_scan_start()。

Q4。为什么我无法在计时器到期后看到函数user_scan_start在呼气后调用?

谢谢

LC._Dialog
离线
最后一次露面:3周5天前
职员
加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

您是否使用对话框的应用程序,或者是某些定制Disinged板吗?亚博国际官网平台网址基于天线设计可能存在一个范围相关问题。

From your description, I felt you trying to connet to different devices with one at each time. Is that right?

Is it possible to send us your project, so that I can try and reproduce this issue here and see what's going wrong with the system. Also, if you have any air traces from a sniffer can help a lot. I am not really sure about why the callbacks are being delayed after that has been registered and when that call is reached. I will update you as I find about the possible causes. But in the mean time the project or the sniff log will make the debugging better. Please let me know if you can send those.

最好的,

LC.

prasanth.velliy...
离线
最后一次露面:1年11个月前
加入:2016-02-18 12:18
嗨对话框

嗨对话框

谢谢for your reply.
We were using custom Board DA14580 as DSPS device , DA14583 as DSPS Host.

Yes, we were connecting to multiple devices , one at a time , put DSPS DEVICE sleep , connect to next device.

Regarding sending our code please send your mail id.

LC._Dialog
离线
最后一次露面:3周5天前
职员
加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

如我所说,天线设计可以对该范围产生影响。对于更好的RF结果,请使用“App Notes”AN-B-027“以供参考。此外,我们为客户提供一些天线设计,以卸载RF设计时间表。如果您正在寻找其中任何一个,请告诉我们。

2.The Crystal Trimming can also have a bigger impact on the radio timing. So, are you trimming your crystal during your testing? If not, please refer to "AN-B-020" Section 7 for performing crystal trimming. We also have a few recommended Crystals listed in there.

3. Regarding the project, can you provide your email address. I will send an email to that ID you provide.

最好的,

LC.

prasanth.velliy...
离线
最后一次露面:1年11个月前
加入:2016-02-18 12:18
嗨对话框

嗨对话框

kousik.k@tcs.com.

谢谢你。

LC._Dialog
离线
最后一次露面:3周5天前
职员
加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

I have sent you a secure server link to upload your project. Please follow the link to upload the files.

最好的,
LC.

LC._Dialog
离线
最后一次露面:3周5天前
职员
加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

Can you please confirm if/ when you have uploaded the project.

Thanks,
LC.

prasanth.velliy...
离线
最后一次露面:1年11个月前
加入:2016-02-18 12:18
嗨对话框,

嗨对话框,

I have uploaded both the host and device project with a text file addressing the issue.

谢谢你。

LC._Dialog
离线
最后一次露面:3周5天前
职员
加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

我看到文件。我会告诉你问题。

最好的,
LC.

LC._Dialog
离线
最后一次露面:3周5天前
职员
加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

正如您关于RSSI 20的提到的那样。您能否证实您在此测试中的硬件是什么。如果这是您的定制板,那么您是否使用了其他一些项目进行测试,并且他们有这个问题吗?

Are you controlling/ receiving data to PC from your central device?

关于您的项目,主设备和从属文件夹中有主机和设备项目。只要它只提到主机和从站,Readme.txt文件中的方向有点令人困惑。我相信您在Slave的中央(主机)实现和设备项目中的主机项目中是指主机项目,用于外设实现。你能否确认这一点。

我在这里无法重现这个问题。如果有任何特定的场景,您能告诉我这个问题是否会被注意到。

Thanks,
LC.

prasanth.velliy...
离线
最后一次露面:1年11个月前
加入:2016-02-18 12:18
嗨对话框,

嗨对话框,

*我们正在使用我们的定制板DA14583作为Master和DA14580作为PASVE。不,我们没有测试任何其他项目。

*是的,我们正在发送数据,而不完全是PC,而是通过UART与我们的主人联系到WiFi芯片。

*Yes, we are referring to host project in Master for central and device project in slave for peripheral.

*当范围少(例如<20英尺)时,每件事都在运作良好。当我们增加我们面临此问题的范围时,我们假设除此之外没有特定的场景。

连接和数据接收事件之间存在延迟,经过一段时间(5分钟或更长时间),我们能够看到主机侧调用断开的回调。如果主机无法连接,为什么我们无法立即查看断开回调。

谢谢

LC._Dialog
离线
最后一次露面:3周5天前
职员
加入:2016-09-19 23:20
Hello Prashanth,

Hello Prashanth,

Since I have no means to reproduce it here, I am reviewing the code to see for the issue.

However, I would like you to consider testing other projects for the range testing. This way you can confirm if the issue is related to the application or hardware. If you haven't done it yet, please do it.

The range can also be tested on a dialog devkit that can also rule out any hardware issues. Since you are unable to get the callbacks as you cliam, there should be something going wrong in the application. I will check it out and let you know what the issue is.

最好的,

LC.

prasanth.velliy...
离线
最后一次露面:1年11个月前
加入:2016-02-18 12:18
嗨对话框,

嗨对话框,

我们将与Devkit进行测试,并让您知道结果。

谢谢