完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想使用API CAPENSESEJSETBASELLIEDATA改变基线值,但是,在CAPSENSEFILTSESRunAdvAccess低通之后,我注意到基线被改变为RAWDATA值。
有人能给出方向吗? 以上来自于百度翻译 以下为原文 I would like to change the baseline value using the API CapSense_SetBaselineData, but, after the CapSenseFilters_RunAdvancedLowPass I noticed that the baseline is changed to the Rawdata value. Can someone give a direction for that? |
|
相关推荐
2个回答
|
|
你使用的是CasFoSE V2.40和ALP过滤器吗?
当您第一次调用CAPSENSEFILTRESYRunAdvAccess低通时,ALP过滤器将基线初始化为中值+平均过滤值。中值+平均滤波数据将与第一原始计数样本相同。 此后,ALP滤波器永远不会更新基线。它只更新原始计数数据。 你看到基线初始化有什么问题吗?你能告诉我们你期望什么样的行为吗? 以上来自于百度翻译 以下为原文 Are you using CapSense v2.40 and ALP filter? When you call the CapSenseFilters_RunAdvancedLowPass for the first time, the ALP filter initializes the baseline to Median+Average filtered value. The median+Average filtered data will be same as the first raw count sample. After this, the ALP filter never updates the baseline. It only updates the raw count data. Are you seeing any issues with the baseline initialization? Could you please let us know what behavior your are expecting? |
|
|
|
小蜜蜂12346 发表于 2018-12-3 08:14 你使用CAPSENSE V2.40和ALP过滤器吗? 我使用的是CasFoSE V2.60+ALP过滤器。 感谢您对过滤器和基线行为的解释。 你看到基线初始化有什么问题吗? 不。 你能告诉我们你在期待什么样的行为吗? 我在一个应用中工作,我有两个传感器:一个电容传感器和另一个,光学,与I2C通信。该设备是USB供电,并有一个硬币电池保持PSoC供电的情况下,USB断开。 我试图解决的问题是USB电缆监控。如果USB电缆断开,PSoC必须进入休眠模式,并且应该通过WDT事件唤醒,并且如果USB电缆被连接,PSoC保持处于活动模式。 这很好用。问题是,当USB电缆被移除时,与光学传感器的通信丢失。在连接之后,I2C函数X2CYVL6180II2CMASTYSTATE永远不会返回,并且我的应用程序永远不会返回操作。我发现解决这个问题的唯一形式是重新启动PSoC。这个解决方案给了我另一个问题:我不能在复位后重新加载基线值。我希望基线仍然是重置前的值。 为了解决这个问题,我做了如下: -当USB电缆被移除时,我将基线值保存到闪存中; -在检测到USB电缆重新连接后,从内存中获取值并将该值分配到基线。 之后,过滤器的作用和我失去了基线值… 好。我从CyPress使用CopSoad的一些例子开始了这一发展。我已经在考虑删除过滤器和执行一些测试。或者…基于您对ALP过滤器的行为的描述,我认为在第一次执行CAPENSEFILTESSIN ReaveAdvestDebug API之后,我可以更新基线值。 多谢, 最好的问候! 拉斐尔·迪亚斯 以上来自于百度翻译 以下为原文 > Are you using CapSense v2.40 and ALP filter? I'm using the CapSense v2.60 + ALP filter. Thank you for the explanation about the behavior of the filter and baseline. > Are you seeing any issues with the baseline initialization? No. > Could you please let us know what behavior your are expecting? I'm working in a application where I have two sensors: a capacitive sensor and another, optical, with I2C communication. The equipment is USB powered and have a coin cell to remain the PSoC powered in case of a USB disconnection. The problem that I'm trying to solve is the USB cable monitoring. If the USB cable is disconnected, the PSoC have to enter in sleep mode and should to wake-up by WDT event and, if the USB cable is connected, the PSoC remains in active mode. This is working very well. The problem is that the communication with the optical sensor is lost when the USB cable is removed. After the connection, the I2C function xI2C_VL6180_I2CMasterStatus never returns and my application never return to the operation. The unique form that I found to solve this problem is restarting the PSoC. This solution give me another problem: I can't that the baseline value is reloaded after the reset. I want that the baseline remains the value that it has before the reset. To try to solve this, I did the follow: - when the USB cable was removed, I save the baseline value into the flash memory; - after the USB cable reconnection is detected, I get the value from memory and assign this value to baseline. After that, the filter acts and I lost the baseline value... Well. I started this development from some examples of using the Capsense from Cypress. I already thinking in remove the filters and perform some tests. Or... Based on your description of the behavior of the ALP filters, I think that I can update the baseline value after the first execution of the CapSenseFilters_RunAdvancedLowPass API. many thanks, best regards! Rafael Dias |
|
|
|
只有小组成员才能发言,加入小组>>
740个成员聚集在这个小组
加入小组1980 浏览 1 评论
1737 浏览 1 评论
3514 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1670 浏览 6 评论
1448 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
221浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
128浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
325浏览 2评论
272浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
456浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-22 08:22 , Processed in 0.656113 second(s), Total 50, Slave 44 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191