应用程序\u easy\u timer()问题。。。

16 posts / 0 new
最后一篇文章
prasanth.velliy...
离线
最后一次见到:11个月前的1年
已加入:2016-02-18 12:18
应用程序\u easy\u 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 ???

问题2。为了解决上述问题,在用户_uonConnection()中,我们正在启动周期性的\u timer\u处理程序()。如果连接、数据接收和断开在预期的间隔内未发生,计时器将过期,我们正在调用用户\u scan\u start(),否则如果连接发生,并且接收到的数据正在断开设备,在用户_Uunconnection()回调中,我们将取消计时器。我们无法看到计时器过期时调用计时器时注册的函数(myfunc)。可能是什么问题?。

周向(Perdical)计时器(U处理程序()
{
wrbl_env.read_time2 = app_easy_timer(1000 . myfunc)
}

myfunc(无效)
{
user_scan_start();
}
用户_Uon_UDisconnection()
{
应用程序轻松U计时器取消(wrbl\u env.read_UTIME2);
}

谢谢你

Device:
信用证_Dialog
离线
最后一次见到:11小时前1个月
工作人员
已加入: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.

最好的,

信用证

prasanth.velliy...
离线
最后一次见到:11个月前的1年
已加入:2016-02-18 12:18
Hi对话框

Hi对话框

谢谢你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...
离线
最后一次见到:11个月前的1年
已加入:2016-02-18 12:18
嗨,对话,

嗨,对话,

This is a gentle reminder regarding the previous mail,

我们使用的是DSPS主机和从属服务器。我们的代码流在主机上类似,用户扫描\u start->advant report->connection->Data receignation->disconnection(在断开回调的从端,我们将从机休眠3分钟)->user_scan\u 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分钟)我们可以看到从主机断开回调。主机似乎正在尝试连接,但无法连接。

问题1。为什么从服务器能够发布广告,但无法连接到超出特定范围?

问题2。即使主机无法连接到从属服务器,为什么我不能立即看到断开回调?为什么要花些时间(比如5分钟)才能断开连接?

问题3。有什么办法克服这个问题吗?

为了解决这个问题,我们在用户_uconnection()中启动了一个计时器,时间大约为10秒(通常连接、数据接收和断开发生在10秒以内),我们正在取消用户_uon_udisconnection()中的计时器。如果在用户_UonConnection()后10秒内没有调用用户_Uon断开回调,则我们将在计时器到期时调用user_uscan\u start()。

第四季度。为什么我无法看到功能用户扫描开始调用计时器?

谢谢你

信用证_Dialog
离线
最后一次见到:11小时前1个月
工作人员
已加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

您是在为应用程序使用对话框的DevKits,还是一些自定义的设计板?可能会有一个基于天亚博国际官网平台网址线设计的范围相关问题。

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.

最好的,

信用证

prasanth.velliy...
离线
最后一次见到:11个月前的1年
已加入:2016-02-18 12:18
Hi对话框

Hi对话框

谢谢你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.

信用证_Dialog
离线
最后一次见到:11小时前1个月
工作人员
已加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

1.正如我所说,天线设计可以影响范围。如需获得更好的射频效果,请使用应用说明“AN-B-027”作为参考。此外,我们还为客户提供一些天线设计,以卸载射频设计时间表。如果你想找这些,就告诉我们。

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.

最好的,

信用证

prasanth.velliy...
离线
最后一次见到:11个月前的1年
已加入:2016-02-18 12:18
Hi对话框

Hi对话框

库西克。k@tcs.com

非常感谢。

信用证_Dialog
离线
最后一次见到:11小时前1个月
工作人员
已加入: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.

最好的,
信用证

信用证_Dialog
离线
最后一次见到:11小时前1个月
工作人员
已加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

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

Thanks,
信用证

prasanth.velliy...
离线
最后一次见到:11个月前的1年
已加入:2016-02-18 12:18
嗨,对话,

嗨,对话,

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

非常感谢。

信用证_Dialog
离线
最后一次见到:11小时前1个月
工作人员
已加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

我看到文件了。我会一直把这个问题告诉你。

最好的,
信用证

信用证_Dialog
离线
最后一次见到:11小时前1个月
工作人员
已加入:2016-09-19 23:20
Hello Prasanth,

Hello Prasanth,

正如您提到的RSSI 20。您能确认您在上面测试过的硬件是什么吗。如果这是您的自定义板,那么您是否使用其他项目进行测试,并且它们是否存在此问题?

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

关于项目,主文件夹和从属文件夹中都有主机和设备项目。readme.txt文件中的说明有点混乱,因为它只提到主机和从属文件。我想您是指主机项目的主机项目,用于中央(主机)实现和设备项目在从属中,以实现外围设备。请你确认一下。

我不能在这里重现这个问题。你能告诉我是否有任何具体的情况,这个问题会被注意到。

Thanks,
信用证

prasanth.velliy...
离线
最后一次见到:11个月前的1年
已加入:2016-02-18 12:18
嗨,对话,

嗨,对话,

*我们使用我们的定制板DA14583作为主控,DA14580作为SAVE。不,我们还没有测试任何其他项目。

*是的,我们发送的数据,不是完全到pc,而是通过UART与我们的主设备接口的WiFi芯片。

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

*当距离小于(比如<20英尺)时,每件事都很好。当我们增加这个问题的范围时,我们假设除了这个之外没有其他具体的场景。

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

谢谢你

信用证_Dialog
离线
最后一次见到:11小时前1个月
工作人员
已加入: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.

最好的,

信用证

prasanth.velliy...
离线
最后一次见到:11个月前的1年
已加入:2016-02-18 12:18
嗨,对话,

嗨,对话,

我们将使用devkit测试并让您知道结果。

谢谢你