完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想合作2个PSoC4LE设备。一个放在脚上(步计数器),第二个放在胸部(心跳传感器)。
我可以通过智能手机连接到主机和读取两个传感器。 欢迎任何帮助或例子。 以上来自于百度翻译 以下为原文 I want to make cooperation of 2 PSOC4 BLE devices. one placed on foot ( step counter) , second placed on chest ( Heart_Rate_Sensor). Master on chest and slave on foot .I can connect by smartphone to master and read both sensors. Any help or examples are welcome. |
|
相关推荐
4个回答
|
|
无线连接的控制是:
中心:启动连接,可以读/写/断开 外围设备:广告,直到连接,并可以通知/读取/断开 听起来,你会希望胸部传感器被设置为外设,以便电话可以连接到它,或者作为中央/外围设备,在两个操作之间切换以获得脚传感器数据,并准备好电话连接并请求数据。 由于BLE芯片只支持PSOC 4的一个同时连接(PSoC 6支持高达4),所以您需要在电话上读取来自一个设备上的缓冲器的传感器值和从第二DE读取传感器数据的设备之间的交替时间。并将其缓存到自己的手机上使用。 最简单/最快的方法可能是让电话接通和读取这两个传感器一个接一个。 否则,如果您真的希望传感器数据合并到同一个无线接入点,那么您将需要具有与电话连接的设备: 1)通过从电话断开、读取数据、重新连接到电话,或者只接受在电话连接时脚传感器上的数据不会更新,周期性地读取脚上的第二传感器数据。 2)让电话和脚传感器连接和读/写数据,然后很快地断开连接,以允许另一个设备(电话,脚传感器)连接和读/写数据。 本质上,用于BLE芯片的无线连接点像单个停车点一样,每次只能停放一辆车(其他设备)(与读/写能力连接)。或者你需要让“汽车”轮流停车,或者让停车点“变成”一辆车,停在另一个停车位(脚传感器)。 以上来自于百度翻译 以下为原文 The wireless connections are controlled by: Central: Initiates connections and can read/write/disconnect Peripheral: Advertises until connected with, and can notify/get read/disconnect It sounds like you will want the chest sensor to be set as either a peripheral so that the phone can connect to it, or as a central/peripheral device which switches between the two operations to get the foot sensor data and be ready for the phone to connect and request the data. Since the BLE chips only support one simultaneous connection at a time for the PSoC 4 (PSoC 6 supports up to 4), you will need to have some timing to alternate between the phone reading the sensor values from a buffer on one of the devices, and that device reading the sensor data from the second device and buffering it to itself for the phone to use later. The easiest/fastest approach might be to have the phone connect to and read the two sensors separately one after the other. Otherwise, if you really want the sensor data consolidated to the same wireless access point, then you will need to have the device that connects with the phone either: 1) Read the second sensor on the foot for data periodically by disconnecting from phone, reading data, reconnecting to phone, or just accept that the data won't update on the foot sensor while the phone is connected. 2) Have the phone and foot sensor connect and read/write data, then disconnect fairly quickly to allow the other device (phone, foot sensor) to connect and read/write data next. Essentially, the wireless connection point for the BLE chips behaves like a single parking spot that only one car (other device) at a time can be parked in (connected with for read/write capability). Either you need to have the "cars" take turns parking, or have the parking spot "turn into" a car and park at the alternative parking spot (foot sensor) |
|
|
|
谢谢。 以上来自于百度翻译 以下为原文 thanks. |
|
|
|
“PSoC 6支持高达4” PSoC 6有网格支撑? 以上来自于百度翻译 以下为原文 "PSoC 6 supports up to 4" PSOC 6 have mesh support ? |
|
|
|
要么不,要么很快,或者是。这个信息有几个月,但有帮助:PSoC6无网格支持 这个信息似乎更为流行:PSoC 6支持网状网络吗? 由于网格设置主要是固件,所以我怀疑一些聪明的编程会使它像现在这样工作。 以上来自于百度翻译 以下为原文 Either no but soon, or yes. This information is months old, but helpful: PSoC6 BLE Mesh Support This information seems more current:Does PSOC 6 support MESH network? Since the mesh setup is mostly firmware, I would suspect that some clever programming would make it work as it is now |
|
|
|
只有小组成员才能发言,加入小组>>
716个成员聚集在这个小组
加入小组1901 浏览 1 评论
1652 浏览 1 评论
3405 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1568 浏览 6 评论
1380 浏览 1 评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
186浏览 2评论
183浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
321浏览 2评论
348浏览 1评论
62浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-24 05:45 , Processed in 0.644949 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号