简体   繁体   中英

iOS Core Bluetooth Serial Port

Given I have a bluetooth device which returns some serial data - how do I read it using CoreBluetooth?

There is no Characteristics or Services. Just some binary data in known (actually obd ii) format.

I think iOS blocks the access to the serial port over bluetooth.

You might need to buy extra hardware, use WiFi, or jailbreak it.

RS232 for iOS device

Try using roqyOBD if you manage to jailbreak your iPhone. 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.

Let me know how it goes! I myself am tinkering OBD-II with iPhone and am learning just like you.

You probably have a Bluetooth 2.0 or 3.0 device which is not BTLE compliant. CoreBluetooth is an implementation of BTLE, hence you can't use said device on (non-jailbroken) iOS. There are a lot of BTLE compliant devices these days, so better get one of those, if you want to interface with iOS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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