OpenXC : Any updates on plans for IOS?
OpenXC : Any updates on plans for IOS?
Hi Thomas,
We're actively investigating this as we'd love to able to support all platforms,
but I can't say for sure what will be possible or when yet.
Actually, this would be a great place for some help and advice from the community.
Are there any iOS experts in the group?
What do you think would need to happen to make the OpenXC vehicle interface compatible with iOS?
Namely, these are the problems and questions we have:
Bluetooth and USB I/O (besides the A/V protocol stuff)
requires support for the iPod Accessory Protocol (iAP),
and that requires an Apple authentication chip on the vehicle interface.
It's currently difficult to impossible to do this even for hobbyist-oriented parts
without an expensive and proprietary license agreement with Apple (the MFi program).
Bluetooth low energy doesn't require iAP,
but it would require a completely different Bluetooth module on the vehicle interface
(from either SparkFun's BlueSMIRF RN-42 based board that we recommend right now
for the chipKIT vehicle interface, or the RN-41 that we're using in the prototype
of a streamlined kit that we just unveiled).
There are very few (or no?) Android devices that support Bluetooth 4.0 or BLE right now, too,
so it would effectively mean the vehicle interface would fork to support iOS.
Lastly, the max throughput over BLE is much less than Bluetooth or USB,
so we would have to add throttling to the data stream to intelligently decide
which data elements should be allowed through.
A vehicle that implements every OpenXC data point at the frequencies specified
on the OpenXC site right now runs at ~38KB/s.
Granted, some of the frequencies could be decreased without too much practical effect
on applications (torque at 60Hz is likely more than most applications need),
but restricting data is counter to our goals of opening up as much as possible.
We are trying to add more signals all of the time, and if we're fighting a ~35KB/s max throughput
on BLE it would be unfortunate (but not a dealbreaker).
If we were somehow able to get the data into iOS (e.g. over wifi, since the chipKIT-translator does
have an Ethernet port and could be hooked up to wifi router),
it's not clear what is the best way to keep the data stream alive and present the data to applications.
The Android library for OpenXC depends quite a bit on Android's freedom and flexibility
with background services.
We have one background service running in a remote process to manage the connection to the vehicle,
and the data stream is multiplex to any and all OpenXC-enabled apps running on the device.
With iOS the focus on foreground app performance means that background apps are significantly
restricted and killed off after a relatively short time.
From our own iOS experience and from our consultations with a few other experts,
the best suggestion seems to be that each OpenXC application in iOS would need
to manage its own connection to the vehicle interface,
and no more than 1 could be running at any time.
As soon as you switch away from an OpenXC data logging application,
for example to check an e-mail or switch music tracks, the data stream would stop.
That's a significant blocker for many applications.
That said, we have been focused almost exclusively on Android for the last year,
and there seem to be some applications out there that manage
to keep a data stream going in the background - if anyone has ideas on that, please speak up!
Chris
Thanks for clarifying the challenges in bringing OpenXC to the iOS platform.
I think you're okay with iOS background processes (there are a few ways
to bypass the 10-minute limit on running in the background)
so perhaps a possible way to work it would be the Ethernet/Wifi method,
but I agree that's a kludge at best.
As for the iPod Accessory Protocol (iAP), I don't think the license agreement
is expensive as you think, especially for an OpenSource project.
And even so... aren't you partially funded by Ford Motor Company?!? :)
There's a team of students at Carnegie Mellon University's Silicon Valley campus
who are working on an iOS port at the moment (hi Mari and Albert!)
and they recently hit a stumbling block - it seems that
even if you have iAP enabled Bluetooth hardware, there is no facility to use
the Serial Port Profile (SPP) from iOS!
That's what the current VI uses and without some sort of workaround,
it seems like Bluetooth 3.0 on iOS is a dead end.
Anyone have any insight?
Can we jam data through the HID profile at a reasonable data rate?
Chris
In terms of iOS, the best method would be Bluetooth low energy,
as this doesn't require the hardware to have an apple auth chip.
Data rates aren't great but you probably don't need much.
Thanks.
Do "Wireless interface" of BT and BLE support SPP?
Would you explain how to inquiry OBDII status by bluetooth protocol?
If we can achieve this by sending JSON format diagnostic request?
BLE does not support SPP as a standard. SPP is BT classic.
We use SPP on BT Classic. We use a generic GATT on BLE.
Both use the openxc-message-format to send/receive commands/data.
OpenXC : Any updates on plans for IOS?的更多相关文章
- App Store审核被拒的23个理由
原文地址 iOS 应用提交审核要持续一周或者更久,在提交之前,我们一定要进行「自我审查」,避免被拒.ASO100 为大家收集整理了2015年 App Store 审核被拒的23个理由,并且附上官方拒绝 ...
- AppStore审核
应用被拒分为两种:Binary Rejected 和 Metadata Rejected.前者需要重新上传应用并且重新排队,后者只需要修改信息,不需要重新上传应用. 1.应用内包含检查更新功能 iOS ...
- 提交AppStore被拒原因总结
(1)Information Needed We began the review of your app but aren’t able to continue because we need ad ...
- 苹果拒绝App内部使用版本检测功能
10.6 - Apple and our customers place a high value on simple, refined, creative, well thought through ...
- Expo大作战(四)--快速用expo构建一个app,expo中的关键术语
简要:本系列文章讲会对expo进行全面的介绍,本人从2017年6月份接触expo以来,对expo的研究断断续续,一路走来将近10个月,废话不多说,接下来你看到内容,讲全部来与官网 我猜去全部机翻+个人 ...
- 新提交审核app保留检查更新入口将被拒绝
3月起要求关闭所有App内的检查更新功能,苹果App Store将向用户自动提示更新,新提交审核版本如果保留检查更新入口审核时将被拒绝,请各产品团队重点关注. 10.6 - Apple and our ...
- 关于iOS后台问题( 一 )(ios后台刷新,后台定位,后台下载,真后台)
关于iOS的后台,以下引用一些文段进行一下脑补,请同学们大致看一下,有个基础,原文出处 -------------------------------------------------------- ...
- iOS开发之表视图爱上CoreData
在接触到CoreData时,感觉就是苹果封装的一个ORM.CoreData负责在Model的实体和sqllite建立关联,数据模型的实体类就相当于Java中的JavaBean, 而CoreData的功 ...
- 那些年一起用过的iOS开发利器之Parse
阅读此文章需要对Objective-C和iOS有一定的了解,完全没有基础的朋友请先阅读<让不懂编程的人爱上iPhone开发>系列教程. 什么是后台服务(back-end service)? ...
随机推荐
- noip宝藏
题解: 我觉得状压比搜索不知道简单到哪里去了.. 为了练习搜索...想了一下这题的搜索.. 然后会发现想想就很容易想到dp.. 最后的搜索大概是这样的 我们会发现有一类搜索都是这样 你会重复(可能是指 ...
- C# 之 日常问题积累(一)
1.响应在此上下文中不可用(Response). 异常:响应在此上下文中不可用 产生异常的过程:在asp.net程序中添加了一个 类.cs ,其中有一段代码如下 : Response.ClearCon ...
- 【Android】修改Android 模拟器IMEI
修改Android 模拟器IMEI 在.....\android_sdk\tools文件下找到emulator-arm.exe,使用UltraEdit文本编辑器打开,搜索CGSN关键字,把000000 ...
- 修改element ui 默认样式最好的解释
KedAyAyA 17年10月 https://forum.vuejs.org/t/elementui/19171/5 首先添加了scoped的style标签会在vue-loader里进行处理 所谓的 ...
- Oracle impdp的ignore及 fromuser / touser 功能
作者:eygle |English [转载时请标明出处和作者信息]|[恩墨学院 OCM培训传DBA成功之道]链接:http://www.eygle.com/archives/2009/09/oracl ...
- ui-router实现返回上一页功能
angular.module('ConsoleUIApp', ['ui.router','ui.bootstrap']) .config(function ($stateProvider, $urlR ...
- pip安装其他包报错
pip安装时报错 Unknown or unsupported command 'install 一.是否配置了路径 配置了看下面的方法. 二.有多个pip系统不知道调用哪个. 1.where pi ...
- js写三级联动
<!DOCTYPE HTML> <html> <head> <title>联动菜单</title> <meta charset=&qu ...
- AtCoder Grand Contest 006 (AGC006) C - Rabbit Exercise 概率期望
原文链接https://www.cnblogs.com/zhouzhendong/p/AGC006C.html 题目传送门 - AGC006C 题意 有 $n$ 个兔子,从 $1$ 到 $n$ 编号, ...
- POJ 3104 Drying (经典)【二分答案】
<题目链接> 题目大意: 有一些衣服,每件衣服有一定水量,有一个烘干机,每次可以烘一件衣服,每分钟可以烘掉k滴水.每件衣服没分钟可以自动蒸发掉一滴水,用烘干机烘衣服时不蒸发.问最少需要多少 ...