BTLE 4.0 - ConnectBlue低能量串行端口服务 [英] BTLE 4.0 - ConnectBlue Low Energy Serial Port Service
问题描述
我正在寻找一种通过串口(RS232)将数据从嵌入式设备加载到iPhone的方法。该应用程序需要在AppStore上,而我们的公司不属于MFI计划。
I am looking for a way to load data from an embedded device via a serial port (RS232) to an iPhone. The app needs to be on the AppStore and our company is not part of the MFI program.
在你说之前,它无法完成,我们正在研究蓝牙低能耗4.0作为一种可能的解决方案。我们可以创建一个可以将ConnectBlue的OBS421模块转换为串口适配器的设备(具有速度突发限制)。为此,connectBlue提供了自己的协议称为串行端口服务,但仅在非常高的级别上记录。
Before you say, it can't be done, we are looking into Bluetooth Low Energy 4.0 as a possible solution. We can create a device that can turn ConnectBlue's OBS421 module into a serial port adapter (with the speed bursts limitation). To that effect, connectBlue provides their own protocol called Serial Port Service, but it is documented only on a very high level.
- 有没有人有使用此协议的经验?如果是这样,你能提供一个以这种方式建立通信的示例(目标C)代码吗?
- 有没有人向Apple提交了这样的应用程序而没有因侵犯MFI规则而被拒绝?
还有一个问题..我尝试连接的设备仅支持EZII Escape计算机命令集标准中的串行命令(PROG ID为EZ2 2.0及更高版本)。它们看起来与常见的ATT命令不同。示例:< ESC> Gc100< EOT>
。
我是否可以通过ConnectBlue的LE-SPS发送此类命令?
One more question.. The device I am trying to connect only supports serial commands in the EZII Escape Computer Command Set standard (PROG ID of "EZ2 2.0" and higher). They look different than the common ATT-Commands. Example: <ESC>Gc100<EOT>
.
Any idea if I can send such commands via ConnectBlue's LE-SPS?
非常感谢您的帮助。
谢谢!
Your help is much appreciated. Thank you!
推荐答案
我没有使用过这个协议,但是从文档中看起来很简单。您应该能够采用任何核心蓝牙示例并相当快地进行调整。
I haven't used this protocol but from the documentation it seems quite straight-forward. You should be able to take any of the core-bluetooth examples and adapt it fairly quickly.
您需要寻找提供服务的外围设备 0x2456e1b926e28f83e744f34f01e9d701
You need to look for a peripheral that is offering service 0x2456e1b926e28f83e744f34f01e9d701
此服务公开两个特征 -
This service exposes two characteristics -
-
0x2456e1b926e28f83e744f34f01e9d703
阅读和放大;写入串口 -
0x2456e1b926e28f83e744f34f01e9d704
如果需要流量控制,则为credit。基本上似乎这个值表示你可以发送到设备的字节数,你可以写一个值来表示你准备从设备接收的字节数
0x2456e1b926e28f83e744f34f01e9d703
to read & write to the serial port0x2456e1b926e28f83e744f34f01e9d704
for "credits" if you need flow control. Essentially it seems that this value indicates the number of bytes you can send to the device and you can write a value to indicate the number of bytes you are prepared to receive from the device
设备应支持完整的8位数据路径,因此我不明白为什么在发送串行命令时会出现问题。
The device should support a full 8-bit data path, so I don't see why you would have a problem sending the serial commands.
Bluetooth Low Energy从MFI计划中明确排除,所以你不会在此基础上被拒绝 -
Bluetooth Low Energy is specifically excluded from the MFI program, so you won't get rejected on that basis -
我想开发一个与Apple设备通信的配件
仅使用蓝牙低功耗。我是否需要加入MFi计划?
否。仅使用蓝牙连接到Apple设备的附件
低功耗/ BTLE /蓝牙4.0或iOS支持的
标准蓝牙配置文件不属于MFi计划。
No. Accessories which connect to an Apple device using only Bluetooth Low Energy/BTLE/Bluetooth 4.0 or standard Bluetooth profiles supported by iOS are not part of the MFi Program.
这篇关于BTLE 4.0 - ConnectBlue低能量串行端口服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!