完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好!
我有关于柏树半导体的技术问题。我希望我能弄清楚。 我有一个定制的设备支持蓝牙4标准BLE。该设备有CyPress BLE半导体内置,我们有一个CyPress USB加密狗访问和连接它,这一个: HTTP://www. CyPress .COM/DICONtiON/Debug -KITSBBOARDS/CY5670CYSMART-UB-GELE 连接和通信是用蓝牙4建立起来的。 该装置是在中央模式程序和适配器配置外围模式。处理器和BLE模块之间的连接是一种普遍的“穿越”类型的链接(RS232)。 我要建立一个移动应用(Android &;iOS)可编程外围复制加密狗的行动。我的问题是什么是一些需要通过我的外围广告的最低要求?连接将如何进行。我已经开发和广告一个应用程序,但我不知道什么广告数据需要被发现的半导体装置。 我的USB加密狗程序在配置文件中设置一些截图和差距。我也有PSoC程序员和cysmart随着实际适配器安装。我试图复制相同的设置在我的手机应用,但我不能告诉如果设备发现。下面是我通过广告的数据: { 服务:“CDD0”, 姓名:“BLYSY系列”, 特点: { UCDID:“CDD1”, 权限:{ 阅读:真的, 写:真的, //Read加密要求: //WrreEnguliTrimeReald:Trime: } 属性:{ 阅读:真的, 写无反应:真的, 写:真的, 通知:真的, / /表示: //认证的SigndWrrest: //NOTIFY加密要求: //指示加密要求: } } { UCDID:“CDD2”, 权限:{ 阅读:真的, 写:真的, //Read加密要求: //WrreEnguliTrimeReald:Trime: } 属性:{ 阅读:真的, 写无反应:真的, 写:真的, 通知:真的, / /表示: //认证的SigndWrrest: //NOTIFY加密要求: //指示加密要求: } } ] } 总的来说,这是努力切实可行的或是有半导体,将防止这种工作的局限性?以前有过类似的事情吗?任何人都可以提供的任何信息将不胜感激。我觉得这是可能的但我也不想让我的车轮旋转。 先谢谢大家。 罗恩 以上来自于百度翻译 以下为原文 Hello all- I have technial question regarding Cypress semiconductors. That I hope I can get some clarity on. I was given a custom made device supporting Bluetooth 4 standard BLE. The device has the Cypress BLE semiconductor built in and we are have a Cypress USB dongle for accessing and connecting to it, this one: http://www.cypress.com/documentation/development-kit***oards/cy5670-cysmart-u***-dongle The connection and communcation is setup up with Bluetooth 4.0. The device is programmed in central mode and the dongle is configured in peripheral mode. The connection between the processor and BLE module is a universal "pass-through" type of link (RS232). I have been asked to build a mobile application (Android & iOS) that can be programmed as a peripheral to replicate the actions of the dongle. My question is what are some of the minimal requirements needed to pass with my peripheral advertisments? And how will the connection will be made. I have an app developed and advertising but I am not sure what advertising data needs to be discovered by the device for the semiconductor. I have some screenshots of the Profile and GAP settings that the USB dongle was programmed in. I also have PSOC programmer and CySmart installed along with the actual dongle. I am trying to replicate the same settings within my mobile application but I cannot tell if the device is discovering it. Here is a look at the data I passing for Advertisement: { service: "CDD0", name: "BLE_Serial", characteristics: [ { uuid: "CDD1", permissions: { read: true, write: true, //readEncryptionRequired: true, //writeEncryptionRequired: true, }, properties : { read: true, writeWithoutResponse: true, write: true, notify: true, //indicate: true, //authenticatedSignedWrites: true, //notifyEncryptionRequired: true, //indicateEncryptionRequired: true, } }, { uuid: "CDD2", permissions: { read: true, write: true, //readEncryptionRequired: true, //writeEncryptionRequired: true, }, properties : { read: true, writeWithoutResponse: true, write: true, notify: true, //indicate: true, //authenticatedSignedWrites: true, //notifyEncryptionRequired: true, //indicateEncryptionRequired: true, } } ] } Overall, is this effort actually feasible or is there limitations with the semiconductor that would prevent this from working? And have anything similar to this been done before? Any information anyone can provide would be greatly appreciated. I feel this is possible but I also dont want to keep spinning my wheels. Thanks all in advance. Ron |
|
相关推荐
8个回答
|
|
你要做的事情应该简单易行。
自定义设备/ CyPress应用程序将决定是否连接,以及使用什么服务/数据来进行决策;这意味着应用程序可以对广告中的标志做出决定,在连接上发现服务的决定,或其他什么。 如果你可以发布应用程序,我们可以查看它并告诉你它是如何交互的,但是如果没有中央设备的代码,它将使用试验和错误来查看它的工作原理。 本质上,你需要用电话模拟软件狗的属性、服务和广告,并使数据具有相同的格式。 如果没有棘手的行为(比如在写入另一个属性之前需要读取某个属性),那么它应该是简单的模仿在扫描和连接/读取外围设备时可以看到的东西。 以上来自于百度翻译 以下为原文 What you are trying to do should work easily and simply. The custom device/cypress application will be deciding whether to connect, and what services/data to use for making decisions; this means that the application could be making decisions on a flag in the advertisements, a decision on discovering services upon connection, or something else. If you can post the application, we could look through it and tell you exactly how it interacts, but without the central-device's code, it would be seeing what it works with using trial and error. Essentially, you will need to mimic the attributes, services, and advertisements of the dongle with the phone, and have the data be in the same formats. If there are no tricky behaviors (like requiring a read to a certain attribute before a write to another attribute works, etc.), then it should be straightforward of mimicking what you can see when scanning and connecting/reading the peripheral(s). |
|
|
|
yuhe82 发表于 2018-10-17 17:17 谢谢你的回复。这也正是我的初步思路和方法。不幸的是,我没有为自定义设备编写的源代码。但是,在移动设备上编写的源代码正在生成标准的BLE广告包(使用Java)。我想你是当场的事实,我需要模拟属性,服务,特色,等加密狗,这一直是我的方式。 我将继续采取试验/错误的方法直到我达到我期望的结果。我将把这个问题公开现在更新与进步的人。我甚至可能后的代码可能在未来的其他项目是有用的。我希望类似的东西已经存在,但我无法找到任何东西。 以上来自于百度翻译 以下为原文 Thank you for your response. And it confirms precisely my intial thoughts and approach to this. Unfortunately I do not have the source code written for the custom device. But the source code written on the mobile device is producing standard BLE advertising packets (using Java). I think you are spot on with the fact that I need to mimick the attributes, services, characteristic, etc of the dongle and this has been my approach. I will continue to take the trial/error approach until I achieve the results I am expecting. I will keep this question open for now and update everyone with the progress. I might even post the code as it may be useful for other projects in the future. As I was hoping something similar already existed but am unable to find anything. |
|
|
|
霍威电源 发表于 2018-10-17 17:33 : 如果您使用像CyScript这样的定制中心设备连接到广告软件狗,您可以读取/发现设备上的服务和属性/值,以查看该结构是如何至少开始安装的。这将移除所有服务所存在的猜测,而只需更改如何与自定义代码的后端交互服务/属性。 有一个类似于CY5670的USB软件包,它允许您手动控制中央BLE设备,并将数据读写到另一个BLE设备,而不需要通过命令行运行。CY5670: CyScript USB软件包 以上来自于百度翻译 以下为原文 :/ If you use a custom central device like cysmart to connect to the advertising dongle, you can read/discover the services on the device and the attributes/values to see how the structure is at least setup to begin with. This would remove all of the guessing for which services are present, and merely change to how to interact with the services/attributes from the backend of the custom code. There is a USB dongle like the CY5670 that allows you to manually control a central BLE device and read/write data to another BLE device without needing to run it through a command-line. CY5670: CySmart USB Dongle |
|
|
|
yuhe82 发表于 2018-10-17 17:53 这里有一个更新… 不幸的是,这个难题仍然存在。但取得了进展。我能够在我的Android手机上创建一个外围GATT服务器,它可以很好地复制从GELE发布的相同属性。但是,即使Java代码编译并显示服务已被添加,我也无法看到我的自定义服务。虽然我相信这只是我的发展限制,但我仍然不确定我的设备与赛普拉斯半导体将实际查看手机应用程序以同样的方式,它查看软件狗。 下面是一些截图,比较异同比较: 加密狗广告手机广告适配器连接手机连接 发现我失踪的“未知的服务”这是唯一的服务我真的试图连接到从设备。 仅供参考-我用北欧NRF连接应用程序检查所有服务的属性和特征。 以上来自于百度翻译 以下为原文 Here is an update... Still stuck with this puzzle unfortunately. But progress has been made. I was able to create a Peripheral Gatt server on my Android phone that closely replicates the same properties being advertised from the Dongle. However, I am unable to see my custom service eventhough the Java code compiles and shows that the service has been added. While I believe this is just a development limitation on my part, I am still not certain that my device with the Cypress Semiconductor will actually view the phone app in the same way it views the dongle. Below are some comparison screenshots that compare the similarities:
Notice that I am missing the "Unknown Service" which is the only service I am actually trying to connect to from the device. FYI - I am using the Nordic NRF Connect App to inspect all the services attributes and characteristics. |
|
|
|
霍威电源 发表于 2018-10-17 18:00 是的,未知的服务将您所需要的模拟电话。的BR / EDR电话标志应该罚款BTW(他们只是信号的不同蓝牙模式/版本的兼容性。LLE的两个都启用了,并且应该工作。 你要想模仿的服务属性(变量基本),以及他们如何读/写/互动。同时,使UUID一样可能是确保中央/柏设备获取一个积极的比赛时比较重要。 以上来自于百度翻译 以下为原文 Yeah, the unknown service would be what you need to mimic on the phone. The BR/EDR flags for the phone should be fine btw (They just signal compatibility for the different bluetooth modes/versions. And the LE ones are enabled on both and should work.) You are going to want to mimic the services attributes (variables basically) available, and how they read/write/interact. Also, making the UUID EXACTLY the same is probably important to make sure the central/cypress device gets a positive match when comparing. |
|
|
|
yuhe82 发表于 2018-10-17 18:19 好消息!我现在可以看到我的服务了。显然,这个功能并没有在我的三星S7上被调用,但是它确实对我女儿的LG VS501起作用。不知道为什么,因为这两款手机都是Android 7 W/API 24。现在是我测试设备连通性的时候了。 现在我可以看到我的定制服务: 以上来自于百度翻译 以下为原文 Good news! I am now able to see my service. Apparently that function doesnt get called on my Samsung S7 but it does work on my daughter's LG VS501. No idea why because both phones are Android 7.0 w/ API 24. Now its time for me to test out the device connectivity. Now I can see my custom service: |
|
|
|
霍威电源 发表于 2018-10-17 18:29 只是想关闭这个…我能够成功地连接到我的移动设备。一切都在按预期进行。谢谢您! 以上来自于百度翻译 以下为原文 Just want to close this out... I am able to make a successful connection to my mobile device. Everything is working as expected now. Thank you! |
|
|
|
干得好!祝贺你! 以上来自于百度翻译 以下为原文 Nice job! Congratulations! |
|
|
|
只有小组成员才能发言,加入小组>>
750个成员聚集在这个小组
加入小组2060 浏览 1 评论
1817 浏览 1 评论
3627 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1756 浏览 6 评论
1503 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
491浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
347浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
407浏览 2评论
352浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
843浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-13 18:23 , Processed in 0.857552 second(s), Total 61, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号