完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
夏威夷群岛
我是一个学习PSoC和应用程序清单的学生。 我正试图通过APP发明家2的软件来控制一个LED通过Android设备。LED是PSoC 4微控制器的一部分,我将使用PSoC Crave4的软件,当我必须用UUID连接PSoC4服务和特性时,如何使它工作?我会请求你的帮助。我有一个易于理解的附件。 2.JPG 59.2 K 1.JPG 143.5 K 以上来自于百度翻译 以下为原文 HI I am a student studying psoc and app inventory. I am attempting to control an LED through an Android device by the software of App Inventor 2. The LED is part of the PSoC 4 micro-controller, which I will use the software of PSoC Creator 4 How do I make it work when I have to concatenate the psoc4 service and characteristics with the UUID? I will ask for your help. I have included an easy-to-understand attachment. |
|
相关推荐
2个回答
|
|
我没有见过App发明…看起来很酷。
从屏幕上我可以看出。 当您按下按钮6或按钮7时,它将写入某个服务/特性UUID。 为了做到这一点,您需要在P4BLE中创建一个与AppOntor中的UUID相匹配的自定义服务和特性。 你可以在HTTP://wwwyCyp.com /VIETO教程中观看视频。 以上来自于百度翻译 以下为原文 I had not seen AppInventor... that looks pretty cool. From what I can tell from the screens. When you press button 6 or button 7 it will write to some service/characteristic UUID In order to do this you will need to create a custom service and characteristic in the P4BLE that matches the UUIDs in the app inventor. You can watch videos on doing that in the http://www.cypress.com/video-tutorials |
|
|
|
此示例项目不正是你想做的事:http://www.cypress.com/blog/problem-solver/project-034-rgb-led-control-over-bluetooth-low-energy
试着解剖上的具体实施细节,您需要的信息。 关于你的PSoC main()代码,你将需要有一个回调函数来处理的事件,cybleprocessevents()称一贯主回路,和一个标志被设置/清除显示LED基于事件的回调函数设置。BLE的事件是非常复杂的,但如果你右击选择“打开数据表的组成和”或“开放的API文档”,然后你就可以看看哪些职能/可称为。 以上来自于百度翻译 以下为原文 This example project does exactly what you are looking to do: http://www.cypress.com/blog/problem-solver/project-034-rgb-led-control-over-bluetooth-low-energy Try dissecting it for information on the specific details on implementation that you need. Referring to your PSoC 4 main() code, you will need to have a callback function to handle BLE events, CyBleProcessEvents() called consistently in main loop, and a flag that gets set/cleared to indicated the LED setting in the callback handler based on the events. The BLE events are very involved, but if you right-click the BLE component and select "Open Datasheet" or "Open API Documentation", then you will be able to look at what functions do/can be called. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2070 浏览 1 评论
1826 浏览 1 评论
3639 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1761 浏览 6 评论
1512 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
508浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
358浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
855浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 15:27 , Processed in 1.011323 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号