E emexes Expert Licensed User Longtime User May 17, 2019 #1 Einstein here just bought a variety of Bluetooth relay boards to test for a customer project, which I am pretty sure use Bluetooth SPP and not BLE, then remembered something about B4i/iOS not supporting SPP. Did forum search, can't find any mention of definite progress in this area, but I did find these posts which gave me some hope. Firstly is this post and the following: mrossen said: What I use ín Xcode is a framework called : ExternalAccessoryFramework I think it use/simulate? the SSP profile. The device I communicate with is the same as I use when I communicate with Android and the serial library Click to expand... Erel said: It should be possible to wrap this framework in the future. Click to expand... Secondly is this post regarding a query to Apple about using Bluetooth: Filippo said: I have today received this e-mail Click to expand... in which Apple's reply to Filippo says: If you are planning to use only standard Bluetooth profiles supported by iOS or Bluetooth Low Energy (BTLE), please note that these are not part of the MFi Program and therfore don't requiere a license. Click to expand... which suggests that iOS supports (some?) standard Bluetooth profiles. Thirdly is this post about using AsyncStreams: Erel said: Create a method that returns NSOutputStream* and return session.outputstream. It will be converted to B4i OutputStream object which you can use with AsyncStreams (start in non-prefix mode). Click to expand... where the following post has some sample inline Objective C (? I think) but the surrounding discussion suggests incomplete success. Has anybody successfully used B4i to communicate with Bluetooth SPP devices, eg, relay boards or ELM327? And if so, how?
Einstein here just bought a variety of Bluetooth relay boards to test for a customer project, which I am pretty sure use Bluetooth SPP and not BLE, then remembered something about B4i/iOS not supporting SPP. Did forum search, can't find any mention of definite progress in this area, but I did find these posts which gave me some hope. Firstly is this post and the following: mrossen said: What I use ín Xcode is a framework called : ExternalAccessoryFramework I think it use/simulate? the SSP profile. The device I communicate with is the same as I use when I communicate with Android and the serial library Click to expand... Erel said: It should be possible to wrap this framework in the future. Click to expand... Secondly is this post regarding a query to Apple about using Bluetooth: Filippo said: I have today received this e-mail Click to expand... in which Apple's reply to Filippo says: If you are planning to use only standard Bluetooth profiles supported by iOS or Bluetooth Low Energy (BTLE), please note that these are not part of the MFi Program and therfore don't requiere a license. Click to expand... which suggests that iOS supports (some?) standard Bluetooth profiles. Thirdly is this post about using AsyncStreams: Erel said: Create a method that returns NSOutputStream* and return session.outputstream. It will be converted to B4i OutputStream object which you can use with AsyncStreams (start in non-prefix mode). Click to expand... where the following post has some sample inline Objective C (? I think) but the surrounding discussion suggests incomplete success. Has anybody successfully used B4i to communicate with Bluetooth SPP devices, eg, relay boards or ELM327? And if so, how?
D Deleted member 103 Guest May 18, 2019 #2 Hi @emexes , I only use BLE since then, it is much easier and for me it is quite enough. I also recently used BLE for Android, and now I can use my Bluetooth device for Android and iOS. Upvote 0
Hi @emexes , I only use BLE since then, it is much easier and for me it is quite enough. I also recently used BLE for Android, and now I can use my Bluetooth device for Android and iOS.
Erel B4X founder Staff member Licensed User Longtime User May 19, 2019 #3 You can only use SPP with devices that are part of the MFi: https://developer.apple.com/programs/mfi/ Check this library: https://www.b4x.com/android/forum/t...ize-way-to-connect-mfi-devices.69535/#content Upvote 0
You can only use SPP with devices that are part of the MFi: https://developer.apple.com/programs/mfi/ Check this library: https://www.b4x.com/android/forum/t...ize-way-to-connect-mfi-devices.69535/#content