完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
是否有一个简单的示例项目,我可以给我们的应用程序开发人员以SPP模式传输数据与实际的EZ串行软件到和从智能手机与IOS和/或Android?我寻找了这样一个例子,因为在我看来,处理各种应用的蓝牙传输最灵活的方式,但找不到一个,而我发现了许多专门的配置文件或信标的例子。可用的专业蓝牙配置文件不适合我们的应用程序,所以我们决定使用SPP作为一个非常灵活的解决方案。此外,这允许使用预编程的应用软件的蓝牙模块(在我们的情况下,CYBLY-022001)。
理想情况下,这只是一个非常简单的代码示例,将一些文本发送到模块并接收答案(例如,在屏幕上显示),以显示iOS/Android上使用的库函数。唯一的特殊要求是,代码应该优先处理超过20个字节的消息(在几个蓝牙消息中进行分割),以避免关于分割的任何缺陷。 谢谢你的帮助, 赫尔曼 以上来自于百度翻译 以下为原文 Is there a simple example project I can give to our app developers to transfer data in SPP mode with the actual EZ-serial software to and from a smartphone with iOS and / or Android? I looked for such an example, as it seems to me the most flexible way to handle Bluetooth transfer for a wide variety of applications, but could not find one, instead I found lots of examples for specialized profiles or beacons. The available specialized Bluetooth-profiles don´t fit to our application, so we decided to use SPP as an extremely flexible solution. Moreover this allowes to use the Bluetooth modules (in our case CYBLE-022001) with the pre-programmed application software. Ideally it would be just an extremely simple code example to send some text to the module and to receive the answer (and show it on the screen for example), just to show what library functions on iOS / Android to use. The only special requirement is, the code should preferrably handle messages that are longer than 20 bytes automatically (segmentation in several Bluetooth-messages) to avoid any pitfalls regarding segmentation. Thanks for your help, Hermann |
|
相关推荐
5个回答
|
|
你的意思是一个简单的串口到蓝牙的例子:项目020:UART到BLE桥?赛普拉斯半导体公司?
如果它不能正常工作,那么修改它很容易遵循你的标准。 以上来自于百度翻译 以下为原文 You mean a simple serial to Bluetooth example like this: Project #020: UART to BLE Bridge | Cypress Semiconductor ? It should be easy to modify it to follow your criteria if it doesn't work out of the box. |
|
|
|
你好, 谢谢你的快速回复,但是这个例子并不是我们需要的:我们使用 EZ串行固件在CYBLY-022001模块,所以我们不需要任何 固件应用的模块,如建议PSOC Creator 项目。这已经被柏树和EZ系列解决了。 固件,我们不想改变任何东西在这一端 交流。 相反,我们需要智能手机上的对等者:一个应用程序。 在iOS和/或Android下接收/发送消息的例子 CYBLY-022001模块及其EZ串行固件。我们可以建立 与CySAMP应用程序通信,如在示例中可以看到的 被攻击的唯一缺少的只是实际的一些功能。 通过SPP将字符串从智能手机传输到CYBLY-022001模块 另一个用于接收响应。这是缺失的环节 我们的应用程序和Cyle模块。 如果你回复这封邮件,请包括我的同事在CC。 谢谢你的支持, 赫尔曼拉姆绍尔 启动Android APP171227.PNG 169.1 K CyStaskServices 171727.PNG 115.2 K 以上来自于百度翻译 以下为原文 Hello, thanks for the fast reply, but the example is not what we need: We use EZ-Serial firmware on the CYBLE-022001 module, so we don´t need any firmware application for the module like the suggested PSOC-Creator project. This has already been solved by Cypress with the EZ-serial firmware and we don´t want to change anything at this end of the communication. Instead we need the counterpart on the smartphone: An application example under iOS and / or Android to receive / send messages from / to the CYBLE-022001 module with its EZ-Serial firmware. We can build up the communication with the CySmart app, as can be seen on the example attatched. The only thing that still lacks is some function for actually transferring a string via SPP from smartphone to CYBLE-022001 module and another one for receiving the response. This is the missing link between our app and the CYBLE module. If you answer to this mail, please include my colleagues in CC. Thanks for your support, Hermann Ramsauer
|
|
|
|
如果我能正确地理解你,那应该是比较简单的: 当从SPP接收指示消息时,将其传递给应用程序。 当从应用程序发送字符串时,使用指示将其写入SPP。 或者使用确认写作为替代。 不幸的是,我没有工作经验与Android / iOS应用的手机,并不能给你一个例子或帮助在这方面。然而,您所描述的应该是使用SPP接口与CyBLY-022001—00模块在电话上的应用程序来发送和接收消息。 代码流的一些伪代码: 设置系统设置SPP SPP CYBLY-022001—00模块,使用SPPSENT/Engulink数据通过SPP发送/接收数据,当SPP关闭SPP时,在SPP上关闭蓝牙 以上来自于百度翻译 以下为原文 That should be relatively simple if I am understanding you correctly: When receiving an indicate message from the SPP, pass it to the app. When sending a string from the app, write it to the SPP using an indicate. Or use confirmed write as an alternative as well. Unfortunately, I have no experience working with android/iOS applications for phones and wouldn't be able to give you an example or help in that regard. However, what you are describing should be achievable using the SPP interface with the CYBLE-022001-00 module from the app on the phone to send and receive messages. Some pseudo code for the code flow:
|
|
|
|
我也有同样的问题,当我试图从我的Android / iOS应用程序中获取数据时,它给了我同样的数据,显示的是截图。我调试了来自CyPress的示例应用程序提供的代码,但没有一个显示任何方法来给我回数据。
因此,我没有办法从服务器读取所需的数据,就像它在设备/电路文档中所写的那样,通过字符串来获得相关的DAT,但是除了第一个连接之外,我无法获得任何数据。 所以,如果有人能提供一些SDK或第三方库的信息来检索数据……基本上任何帮助都是有用的。 以上来自于百度翻译 以下为原文 I do have the same kind of problem, that when I am trying to get the data from the circuit in my Android/iOS apps its giving me the same kind of data which is shown is screenshot. I debug the code given by sample apps from Cypress, but none of them shows any ways to give me back the data. So I am not getting any way to read the required data from the server like its written in the device/circuit documentation to pass strings to get the relevant dat, but apart from the first connection...I am no way getting any data. So if anyone could provide me some information about SDK or 3rd party libraries to retrieve the data....basically any help would be helpful. |
|
|
|
你我然后 发表于 2018-11-19 14:55 这里有一些与EZ系列的通信/串行交互的例子: EZ-BLE系列:EZ-BLE模块固件平台赛普拉斯半导体 第一次下载(用户指南)有你问的信息,我相信。它具有外围和中央示例用法。 HTTP://www. CyPress .COM/FIL/3545 21/下载 第57页有GattC例子的开头。 第144/145页具有读取/写入远程服务器属性/特性的正确命令: GATCKRead句柄(/RRH,ID=6/4) 二进制标题:类型长度组ID注释CMD C0 03 06无04。RSP C0 02 06无04。文本信息:文本名称响应长度类别Notes /RRH 0x000 0A Actudio无。命令参数:用于读取操作的数据类型名称文本描述UIT8 CONNION句柄C连接句柄(在当前版本中忽略,由于内部LLE堆栈功能,设置为0)Unt16的TracePr句柄H*句柄读取远程属性 以上来自于百度翻译 以下为原文 There are some examples of communication/serial interaction with the EZ-Serial here: EZ-SERIAL™: EZ-BLE MODULE FIRMWARE PLATFORM | Cypress Semiconductor The first download (User Guide) has the information you are asking about I believe. It has both peripheral and central example usage. http://www.cypress.com/file/384521/download Page 57 has the beginning of the GattC examples. Page 144/145 has the exact command for reading/writing a remote server attribute/characteristic: gattc_read_handle (/RRH, ID=6/4) Binary Header: Type Length Group ID Notes CMD C0 03 06 04 None. RSP C0 02 06 04 None. Text Info: Text Name Response Length Category Notes /RRH 0x000A ACTION None. Command Arguments: Data Type Name Text Description uint8 conn_handle C Connection handle to use for read operation (Ignored in current release due to internal BLE stack functionality, set to 0) uint16 attr_handle H* Handle of remote attribute to read |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2069 浏览 1 评论
1824 浏览 1 评论
3633 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1509 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
507浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
357浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
854浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 06:29 , Processed in 0.889073 second(s), Total 53, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号