app_easy_timer() issue...

16个帖子/ 0新
Last post
prasanth.velliy ...
Offline
Last seen:1 year 10 months ago
加入:2016-02-18 12:18
app_easy_timer() issue...

嗨对话框

我们正在使用DSPS主机项目,定制板DA14580,

只要从站连接到主机,我们就会从Slave发送数据。在数据接收后,我们正在断开从主机与机器的连接并将设备睡眠睡眠。主站继续扫描,当设备唤醒时,它再次连接,此过程仍在继续。

它在一段时间后工作正常,我们面临着一个问题(Q1)。

Q1。我们在连接和数据接收之间面临问题。DSP主机,在连接和数据接收之间采取更多时间(例如5到10分钟),此后我们能够看到user_on_disconnect()回调,没有任何数据接收。在此期间,在此期间,所述间隔(3或4分钟)主机继续运行,我们可以看到user_on_system_powered()继续运行....,可能是问题???

Q2. To resolve the above said issue ,in user_on_connection() we were starting periodical_timer_handler() . If connection, data reception and disconnection is not happening at the expected interval, the timer expires and we are calling user_scan_start(), else if connection happened and data received we are disconnecting the device and in user_on_disconnection() callback, we will cancel the timer. We were not able to see the function registered(myfunc) with the timer getting called when the timer expires. What might be the issue?.

peridical_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);
}

Thank you

设备:
lc_dialog.
Offline
Last seen:1周5天前
Staff
加入:2016-09-19 23:20
Hello Prasath,

Hello Prasath,

我调查解决你的问题。我have a few questions regarding this.

1.您使用的是哪个版本的DSP?
2. In Q1 scenarios, does the host and the device connect or is there a drop in connections as well?
3. Are you using any sleep mode in the host?

关于您的Q2,我在提供的代码示例中看到了错误。Arguments 1000和MyFunc应由逗号(,)而不是句点分隔。请检查一下。

Best,

LC

prasanth.velliy ...
Offline
Last seen:1 year 10 months ago
加入:2016-02-18 12:18
Hi Dialog

Hi Dialog

感谢你的回复。

1.DA1458x_DSPS_V_5.150.2我正在使用的版本。

2.是,user_on_connection()user_on_connection()拍摄3或4 min接收数据,然后没有收到的数据最终删除发生(user_on_disconnection()被调用。)(在DSP设备侧睡眠中,但主机永远不会进入休眠状态。(如果在B / W主机和设备范围约为25英尺处,我们面临的这个问题),如果附近没有问题

3.关于您的Q2,我在提供的代码示例中看到错误。Arguments 1000和MyFunc应由逗号(,)而不是句点分隔。请检查一下。
这是一个打字错误=> wrbl_env.read_time2 = app_easy_timer(1000,myfunc)

Thank you.

prasanth.velliy ...
Offline
Last seen:1 year 10 months ago
加入:2016-02-18 12:18
Hi Dialog,

Hi Dialog,

这是一个温柔的提醒,前面的邮件,

We are using DSPS host and slave. Our code flow in host is like , user_scan_start -> advertisement report-> connection-> Data reception -> disconnection(In the slave side on disconnection callback we are putting the slave to sleep for 3 minutes)->user_scan_start( In disconnection callback of the host side we are starting scan again to scan for the next device).

当主机和奴隶之间的范围较少说(<20英尺)时,一切都正常工作。当范围更加说(> 20英尺)时,我们能够看到user_on_connection()回调
but no data reception. After some time say (5 minutes) we are able to see the disconnection callback from the host. It seems like host is trying to connect but not able to connect.

Q1。Why the slave is able to advertise but not able to connect beyond certain range ?

Q2. Even if the host is not able to connect to the slave why am i not able to see the disconnection callback immediately? Why it is taking some time(say 5 minutes) for disconnection?

Q3. Is there any way to overcome this issue?

我n order to resolve this issue we had started one timer in user_on_connection() with some 10 seconds(usually connection, data reception and disconnection happens less than 10 seconds), and we are cancelling the timer in user_on_disconnection(). If user_on_disconnection callback has not been called in 10 seconds after user_on_connection(), we are calling user_scan_start() on the expiration of the timer.

Q4. Why am i not able to see the function user_scan_start getting called after expiration of the timer?

Thank you

lc_dialog.
Offline
Last seen:1周5天前
Staff
加入:2016-09-19 23:20
你好普拉斯ant,

你好普拉斯ant,

Are you using the Dialog's DevKits for the applications or is it some custom desinged boards? There might be a range related issue based on the Antenna design.

根据您的描述,我觉得您尝试每次都尝试使用一个不同的设备。是对的吗?

是否可以向我们发送您的项目,以便我可以在此处尝试并重现此问题,并查看系统出现问题。此外,如果您有来自嗅探器的空中痕迹,可以帮助很多。我并不肯定为什么在已经注册的时候延迟回调以及达到该调用时的回调。我会在找到可能的原因时更新您。但是在平均项目或嗅探日志中将更好地调试。如果您可以发送这些,请告诉我。

Best,

LC

prasanth.velliy ...
Offline
Last seen:1 year 10 months ago
加入:2016-02-18 12:18
Hi Dialog

Hi Dialog

感谢你的回复。
我们使用定制板DA14580作为DSPS设备,DA14583作为DSPS主机。

是的,我们正在连接到多个设备,一次一个,将DSP设备睡眠放置,连接到下一个设备。

关于发送我们的代码,请发送您的邮件ID。

lc_dialog.
Offline
Last seen:1周5天前
Staff
加入:2016-09-19 23:20
你好普拉斯ant,

你好普拉斯ant,

1. As I said, the Antenna design can have effect on the range. For better RF results, please use the App Notes "AN-B-027" for reference. Also, we offer some Antenna designs to our customers to offload the RF design timeline. Let us know if you are looking for any of these.

2.晶体修剪还可以对无线电定时产生更大的影响。那么,你在测试期间修剪你的水晶吗?如果没有,请参阅“AN-B-020”第7节用于执行晶体修剪。我们还有一些推荐的水晶在那里列出。

3.关于项目,您可以提供您的电子邮件地址。我会向您提供的ID发送电子邮件。

Best,

LC

prasanth.velliy ...
Offline
Last seen:1 year 10 months ago
加入:2016-02-18 12:18
Hi Dialog

Hi Dialog

kousik.k@tcs.com

Thank you.

lc_dialog.
Offline
Last seen:1周5天前
Staff
加入:2016-09-19 23:20
你好普拉斯ant,

你好普拉斯ant,

我已经向您发送了一个安全的服务器链接以上传您的项目。请按照链接上传文件。

Best,
LC

lc_dialog.
Offline
Last seen:1周5天前
Staff
加入:2016-09-19 23:20
你好普拉斯ant,

你好普拉斯ant,

请您可以确认是否/在上传项目时。

谢谢,
LC

prasanth.velliy ...
Offline
Last seen:1 year 10 months ago
加入:2016-02-18 12:18
Hi Dialog,

Hi Dialog,

我已使用解决此问题的文本文件上传了主机和设备项目。

Thank you.

lc_dialog.
Offline
Last seen:1周5天前
Staff
加入:2016-09-19 23:20
你好普拉斯ant,

你好普拉斯ant,

我see the files. I will keep you posted on the issue.

Best,
LC

lc_dialog.
Offline
Last seen:1周5天前
Staff
加入:2016-09-19 23:20
你好普拉斯ant,

你好普拉斯ant,

As you mentioned about the RSSI 20. Can you confirm what is the hardware you have tested this upon. If this is your custom board, then did you use some other projects for testing and do they have this issue?

您是否是从中央设备控制/接收到PC的数据?

Regarding your projects, there are host and device projects in both Master and Slave folder. The directions in the readme.txt file were a little confusing as it mentioned only host and slave. I beleive that you are referring to host project in Master for central (host) implementation and device project in Slave for peripheral implementation. Can you please confirm this.

我wasn't able reproduce the issue here. Can you let me know if there is any specific scenario this issue would be noticed in.

谢谢,
LC

prasanth.velliy ...
Offline
Last seen:1 year 10 months ago
加入:2016-02-18 12:18
Hi Dialog,

Hi Dialog,

* We are using our custom board DA14583 as master and DA14580 as salve. No we have not tested any other projects .

* Yes we are sending data, not exactly to pc but to a WiFi chip interfaced with our master through UART.

*是的,我们在Slave中引用主机和设备项目的主机项目。

*When the range is less(say <20 feet), every thing is working good. When we increase the range we are facing this issue and we suppose no specific scenario other than this.

There is a delay between the connection and data reception event and after some time (5 minutes or more) we are able to see the disconnection callback being called on the host side. If the host is not able to connect, why we are not able to see the disconnection callback immediately.

Thank you

lc_dialog.
Offline
Last seen:1周5天前
Staff
加入:2016-09-19 23:20
你好Prashanth,

你好Prashanth,

由于我没有手段重现它,我正在审查代码以了解问题。

但是,我希望您考虑测试范围测试的其他项目。这样您可以确认问题是否与应用程序或硬件相关。如果你还没有这样做,请做到。

也可以在对话框devkit上测试范围,也可以排除任何硬件问题。由于您无法作为您的CLIAM获取回调,因此应用程序中应该出现问题。我会查看它,让你知道问题是什么。

Best,

LC

prasanth.velliy ...
Offline
Last seen:1 year 10 months ago
加入:2016-02-18 12:18
Hi Dialog,

Hi Dialog,

We will test with the devkit and let you know the result.

Thank you