完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好PSoC社区,
首先,感谢社会各界所能提供的任何帮助。 我们正在寻找建立一个基本的无线倾斜传感器系统。本质上,我们有一个探测器单元和一个指示器单元。探测器单元由一个cyble-012011-00,上/下倾斜传感器,和纽扣电池。本单元检测一个GPIO传感器倾斜的位置指示器。指示装置是由一个cyble-202007,LED,和一个硬连线的电源。本单元从检测器接收倾斜信息和打开LED对应的倾斜位置。 我们开发的应用程序的核心,即机组自动开机,建立通信,传输/指示位置。然而我们很难降低功率使用,特别是对探测器单元。我以我们大多数应用在柏100个项目在100天内,具体项目# 47。这个项目会自动连接两模块通过基本的数据切换时的一个模块进入低功耗模式。我们被剥夺了ADC部分,只是用一个GPIO。这个项目的代码具有数据传输设置在一个非常高的速度,在以毫秒。 我有困难,但是努力节约能源,减缓两设备之间发送的数据量。我们的探测器的代码使用相同的电源方案在“加速度”代码上市项目# 47。它看起来像他们有积蓄力量的设置,但我似乎无法弄清楚如何节省更多的功率。基于代码我发现,模块应该去睡觉,醒来的ble_bless_isr,这是支配我想连接的时间间隔。我想如果我可以降低连接的间隔(或类似的定时参数)然后我可以保持睡眠时间模块。我试着请求连接参数从挡板使用代码在积蓄力量的文档说明,但是似乎中央/出租车会忽略这。在所有的例子,我发现中央管理这个连接间隔但需要说柏适配器或iPhone口授的位置 我在想,如果有人能提供一些方向?我是在正确的轨道上省电吗?如果是这样的话,我怎么能降低连接的间隔?我似乎无法找到特定的代码或正确的搜索词找到这个。 谢谢你的帮助, 亚历克斯 以上来自于百度翻译 以下为原文 Hello PSoC Community, First off, thank you for any help the community is able to provide. We're looking to create a basic wireless tilt sensor system. Essentially we have a detector unit and an indicator unit. The detector unit is composed of a CYBLE-012011-00, on/off tilt sensor, and coin cell battery. This unit detects a tilt on a GPIO sensor and transmits the position to the indicator. The indicator unit is composed of a CYBLE-202007, an LED, and a hardwired power supply. This unit receives tilt information from the detector and turns on an LED corresponding to the tilt position. We've developed the core of the application, that is to say the units automatically boot, establish communication, and transmit/indicate position. However we are having trouble decreasing the power usage, in particular on the detector unit. I’ve based most of our application on the Cypress 100 Projects in 100 Days, specifically project #47. This project automatically connects two modules and passes basic data along while switching one of the modules into low power mode. We’ve stripped out the ADC portion and are just using a GPIO. The code for this project has the data transmission set at a very high speed, on the order of milliseconds. I am having trouble however trying to save power and slow down the amount of data sent between the two devices. The code for our the detector uses the same power scheme as listed in the ‘accelerometer’ code from project #47. It looks like they have the power savings setup, but I can’t seem to figure out how to save more power. Based on the code I’ve found, the module should go to sleep and wake from the BLE_bless_isr, which is governed I think by the connection interval. I’m assuming if I can slow down the connection interval (or similar timing parameter) then I can have the module remain in sleep longer. I’ve tried requesting connection parameters from the tailgate using the code illustrated in the power savings documentation, however it seems the central/cab is going to ignore this. In all the examples I've found the central manages this connection interval but requires input from say the Cypress Dongle or the iPhone dictates the position I was wondering if anyone would be able to provide some direction? Am I on the right track with the power savings? And if so, how can I slow down the connection interval? I can’t seem to find specific code or the right search terms to find this. Thank you for your help, Alex |
|
相关推荐
3个回答
|
|
嗨,亚历克斯,
请参阅下面的应用说明,并给出低层设计的建议。 HTTP://www. CyPress .COM/DICONTION/APPLION-NOTES/AN92584设计:低功耗和可估计的电池寿命 谢谢, 兰吉特 以上来自于百度翻译 以下为原文 Hi Alex, Please refer to the below application note which gives suggestions of designing with BLE for low lower. http://www.cypress.com/documentation/application-notes/an92584-designing-low-power-and-estimating-battery-life-ble Thanks, Ranjith |
|
|
|
sdfjaslkdjf1 发表于 2018-9-29 17:34 嗨,Ranjith, 谢谢你回到我身边。我已经看过这个文档几次了,它对于外围设备的节电确实是非常有帮助的。我在这里似乎找不到任何东西来配置中央设备来控制连接间隔,我错过了什么吗? 谢谢! 亚历克斯 以上来自于百度翻译 以下为原文 Hi Ranjith, Thanks for getting back to me. I've been through this document a few times and it is definitely very helpful on the topic of power savings for a peripheral device. I can't seem to find anything in here on how to configure a central device to control connection intervals, am I missing something? Thanks! Alex |
|
|
|
kallon7250 发表于 2018-9-29 17:44 嗨,亚历克斯, BLE规范定义了在连接建立期间主从双方接受的连接间隔。这个间隔(总是)首先由主机设置,并且可以在完成初始连接之后请求由奴隶来更新。 因此,作为被接受的间隔的一部分,因为主从双方都使用高精度时钟,所以知道它们应该启动数据传输(或空包)的时间来维持连接。所有其他时间,主从双方都关闭他们的收音机,并把CPU放在低功耗模式。这样就可以实现低功耗。因此,根据您希望在中央和外围之间进行通信的频率,可以设置连接间隔。 谢谢, 兰吉特 以上来自于百度翻译 以下为原文 Hi Alex, BLE specification, defines a connection interval which both the master and slave accepts during the connection setup. This interval is (always) first set by master and may be requested to be updated by slave after the initial connection has been made. So as part of the accepted interval and because both master and slave use high accuracy clock, know the time at which both of them should initiate a data transfer (or empty packet) to maintain the connection. All other times, both master and slave shutdown their radio and put CPU to low power mode. This way they achieve the low power consumption. Therefore based on how frequently you want the communication to be between central and peripheral you can set the connection interval. Thanks, Ranjith |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2101 浏览 1 评论
1848 浏览 1 评论
3666 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1783 浏览 6 评论
1533 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
564浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
418浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
434浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
909浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 17:50 , Processed in 0.999627 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号