完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我试图用ADC读取2个模拟传感器,并通过BLE发送信息。检测到BLE,但无法连接。有趣的是,当我从设计中去掉ADC组件时,BLE就成功连接了。我尝试了2个独立的模块。我怀疑我的计划中有些东西不太正确,所以我需要帮助。 附件是这个项目。 我已经尝试了CyPress CyScript应用程序连接到它-没有连接。我已经下载了心率示例代码并编译了它,运行并尝试与CySMAR-NO连接。在这两种情况下,CySCAR确实检测到BLE模块。我已经尝试过SAMSun平板电脑和手机(CySapp应用程序和我的应用程序),还有iPhone和CyScript应用程序。 任何帮助将不胜感激! 谢谢, 斯托扬 SD-20180108RAR 203.3 K 以上来自于百度翻译 以下为原文 Hello, I am trying to read 2 analog sensors with ADC and send the information out via BLE. The BLE is detected, but cannot connect. Interesting enough, the moment I remove the ADC component from the design, the BLE is connected successfully. I have tried with 2 separate modules. I suspect that something in my project is not quite right, so I need help. Attached is the project. I have tried the Cypress CySmart app to connect to it - no connection. I have downloaded the heart rate example code and compiled it, run and try to connect with CySmart - no connection. In both cases the CySmart does detect the BLE module. I have tried Samsun tablet and phone (with CySmart app and my app), and Iphone with the CySmart app. Any help will be much appreciated! Thanks, Stoyan
|
|
相关推荐
7个回答
|
|
你有没有把ALE设置为更高优先级(0是最高)?
鲍勃 以上来自于百度翻译 以下为原文 Did you alrady try to set the BLE to a higher priority (0 is highest) Bob |
|
|
|
嗨,鲍伯, 谢谢你的及时答复。 我已经提高到0级了。我是从设计范围资源的中断选项卡上做的。但没有变化。仍然无法连接到平板电脑。 谢谢, 斯托扬 以上来自于百度翻译 以下为原文 Hi Bob, Thanks for the prompt answer. I have increased to level 0. I did it from the Interrupt tab of Design Wide Resources. Yet no change. Still can not connect to the tablet. Thanks, Stoyan |
|
|
|
查看您的项目,您没有正确设置ADC的中断例程: 尝试将它与ADCSTART()修改为以下内容: 空格ADCSTART() { ADC*STATE();/*初始化ADC*/ //ADCYRQQEnEnable();/*启用ADC中断*/ AdcIrqQListTo();/或这个或AcdIrggSARTTEX(& LT;回调函数gt;)将工作 ADCyStistCurror();/*开始ADC转换*/ } 当你调用AdcIrqQueNable()时,它只允许中断为ADC组件开火,但不完全设置回调向量、优先级和处理。 ADCI IrqQSTART()是我认为你正在寻找的。 以上来自于百度翻译 以下为原文 Looking at your project, you are not setting the interrupt routine of the ADC correctly: Try it with AdcStart() modified to the following: void AdcStart() { ADC_Start(); /* Initialize ADC */ //ADC_IRQ_Enable(); /* Enable ADC interrupts */ ADC_IRQ_Start();//Either this or ADC_IRG_StartEx( ADC_StartConvert(); /* Start ADC conversions */ } When you are calling ADC_IRQ_Enable(), that only allows the interrupt to fire for the ADC component, but doesn't setup the callback vector, priority, and handling fully. ADC_IRQ_Start() is what I believe you were looking for. |
|
|
|
谢谢你的小费!不幸的是,在我的情况下没有解决问题。 所以我试过了-没有连接。我已经删除了ADC和时钟,并留下了2个传感器引脚。评论线: ADCYSTART(); AdcIrqQuxSt(); ADCL启动转换(); 并进一步评论了: AdcS-停止转换(); ADCYSTOP(); 干净、编译、程序和连接是成功的。 然后,我添加了ADC组件,连接到引脚。我没有从上面的行中获得评论,也就是说,开始ADC的上述行仍然没有执行。 不能建立干净、编译、程序和连接。 有什么想法吗? 同时,我会尝试不同的组件在设计上,试图找出一个模式… 谢谢! 以上来自于百度翻译 以下为原文 Thanks for the tip! Unfortunately not a fix in my case. So I have tried it - no connection. I have deleted the ADC and the clock and left the 2 sensor pins. Commented the lines: ADC_Start (); ADC_IRQ_Start (); ADC_StartConvert (); and further commented the lines: ADC_StopConvert (); ADC_Stop (); Clean, Compile, Program -> the connection is successful. Then I have added the ADC component, connected to the pins. I did NOT take the comments off the above lines, i.e. the above lines that start the ADC are still not executed. Clean, Compile, Program -> the connection cannot be established. Any ideas? Meanwhile I will try with different components on the design, to try to figure out a pattern... Thanks! |
|
|
|
更新:
我让它起作用了。唯一的问题是我不知道怎么做。我所做的是试验: -把ADC连接出去,好吗? -放置IDAC -连接OK。 -把IDAC连接到OK -以默认设置放置ADC -连接OK -启动ADC连接OK。 然后,Windows在生成过程中崩溃,并损坏了项目。我加载了原来的版本,没有沟通了。改变了ADCyIrq函数启动,仍然没有通信。 结论:不知何故,ADC上的设置是导致通信缺乏的原因。 我将继续试演。有效果时我会更新。 干杯, 斯托扬 以上来自于百度翻译 以下为原文 Update: I made it work. The only problem is that I have no idea how. What I did is experimenting: - taking the ADC out - connecting OK - placing an IDAC - Connecting OK. - taking IDAC out - connecting OK - placing ADC with default settings - Connecting OK - starting ADC - connecting OK. Then windows crashed during build, and corrupted the project. I loaded the original version and NO communication again. Changed the ADC_IRQ function to Start, still no communication. Conclusion: somehow the settings on the ADC are responsible for the lack of communication. I will continue with the tryouts. I will update when having result. Cheers, Stoyan |
|
|
|
尝试设置你的时钟是内部的,时钟频率为1100千赫。 另外,看看在ADC和你的传感器左/右之间放一些电阻有帮助。 以上来自于百度翻译 以下为原文 Try setting your clock to be internal, and the clock frequency to be 1100.000 kHz. Also, see if putting some resistance between the ADC and your sensor left/right helps out. |
|
|
|
*下面是一个猜想* *
我最近在PSoC5(是的,我知道这是PSoC4)上发现,当在高频率上有数字信号时,相邻的*模拟*引脚有问题。这导致一些模拟和数字功能不能正常工作。解决方法是在高频信号中放置慢移动信号,如果它们还占用模拟引脚。 检查你的部分,看看你的蓝牙无线电信号旁边是否有高频数字信号。如果是这样,移动他们一两针,看看是否修复任何东西。 此外,我发现在系统中添加组件的顺序可能会导致数字路由的问题。(比赛条件)。 以上来自于百度翻译 以下为原文 *The following is a *guess* * I recently found out on the PSOC5 (Yes, I know this is PSOC4) that adjacent *analog* pins have issues when there are digital signals on them at a high frequency. This caused some analog and digital features to not work properly. The fix was to put slow moving signals between the high frequency signals if they also occupied analog pins. Check your part to see if you have high frequency digital signals next to your Bluetooth radio signals. If so, move them a pin or two away and see if that fixes anything. Also, I found the order in which I added components to the system could cause an issue with digital routing. (Race conditions). |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2106 浏览 1 评论
1853 浏览 1 评论
3672 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1788 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
575浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
428浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
439浏览 2评论
389浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
921浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 16:16 , Processed in 1.126840 second(s), Total 59, Slave 53 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号