gpt4 book ai didi

iphone - 汽车 OBDII WLAN 协议(protocol)

转载 作者:行者123 更新时间:2023-12-03 18:53:09 27 4
gpt4 key购买 nike

我目前正在搜索 WLAN 协议(protocol)的规范以获取 OBDII 数据。市场上有一些类似 ELM327 的适配器,可以让 iPhone 通过 WLAN 连接到 OBDII 接口(interface)。这是因为蓝牙串口由于配件接口(interface)而被扰乱。其他程序(例如 Android 版 Torque)也可以使用此通信协议(protocol)。但是我没有找到创建网络客户端的规范。

欢迎任何帮助,

谢谢

最佳答案

好吧,经过更多研究,我找到了两个来源:

  1. Michael Gile有一个 open source library for iOS devices ,用于与 OBDII WiFi 以及蓝牙设备进行通信。
  2. PLX 设备(KiWi 的创建者)有 description如何与 KiWi 进行通信。 description太大了,无法包含在这里,但可以归结为:
    • 使用 WiFi( socket )连接
    • 等待设备返回>
    • 发出命令并等待响应

Requesting information can be done by sending a command in this format (ASCII characters):

MM PP\r

where MM is the test mode, PP is the PID, and \r is a carriage return (hex: 0x0d). All whitespace characters are ignored by the Kiwi. *Test modes 03 and 04 do not require a PID value.

所说的“测试模式”是 SAE J1979 中定义的十种诊断模式。标准:

Test mode   Description
01 Show current data
02 Show freeze frame data
03 Show diagnostic trouble codes
04 Clear trouble codes and stored values
05 Test results, oxygen sensors
06 Test results, non-continuously monitored
07 Show 'pending' trouble codes
08 Special control mode
09 Request vehicle information
0A Request permanent trouble codes

PID值是车内传感器的代码。 A(非详尽)list of possible PID values is on Wikipedia .

关于iphone - 汽车 OBDII WLAN 协议(protocol),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10498747/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com