简体   繁体   English

iOS Core蓝牙串行端口

[英]iOS Core Bluetooth Serial Port

Given I have a bluetooth device which returns some serial data - how do I read it using CoreBluetooth? 给定我有一个返回一些串行数据的蓝牙设备-如何使用CoreBluetooth读取它?

There is no Characteristics or Services. 没有特性或服务。 Just some binary data in known (actually obd ii) format. 只是一些已知(实际上是obd ii)格式的二进制数据。

I think iOS blocks the access to the serial port over bluetooth. 我认为iOS会阻止通过蓝牙访问串行端口。

You might need to buy extra hardware, use WiFi, or jailbreak it. 您可能需要购买额外的硬件,使用WiFi或越狱。

RS232 for iOS device 适用于iOS设备的RS232

Try using roqyOBD if you manage to jailbreak your iPhone. 如果您要越狱iPhone,请尝试使用roqyOBD I believe that it creates a TCP server that you can use FuzzyLuke's OBD2Kit and thus read the PID's that are sent from the OBD-II interface to the iPhone. 我相信它会创建一个TCP服务器,您可以使用FuzzyLuke的OBD2Kit来读取从OBD-II接口发送到iPhone的PID。

Let me know how it goes! 让我知道事情的后续! I myself am tinkering OBD-II with iPhone and am learning just like you. 我本人正在用iPhone修改OBD-II,并且像您一样学习。

You probably have a Bluetooth 2.0 or 3.0 device which is not BTLE compliant. 您可能拥有不兼容BTLE的Bluetooth 2.0或3.0设备。 CoreBluetooth is an implementation of BTLE, hence you can't use said device on (non-jailbroken) iOS. CoreBluetooth是BTLE的实现,因此您不能在(非越狱)iOS上使用该设备。 There are a lot of BTLE compliant devices these days, so better get one of those, if you want to interface with iOS. 如今,有很多符合BTLE的设备,因此,如果要与iOS交互,最好选择其中一种。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM