What BLE characteristic should I use in a BLE IOS device for OBDII

冷暖自知 提交于 2020-05-30 17:15:34

问题


Hello I am wondering what write and notify characteristic I should use from this OBDII BLE device/Dongle?: I want to create a program for IOS in Flutter. There are quite a few

 : Device name: VEEPEAK Device id: 34E2B2AF-60F4-9362-DBF6-AD750321AABA
Number of discovered Services: 3
Service Service: UUID: 0000180a-0000-1000-8000-00805f9b34fb
  Charac.: UUID: 00002a29-0000-1000-8000-00805f9b34fb
     Can read: true Can write: false  Can notify: false
  Charac.: UUID: 00002a24-0000-1000-8000-00805f9b34fb
    Can read: true Can write: false  Can notify: false
 Charac.: UUID: 00002a25-0000-1000-8000-00805f9b34fb
   Can read: true Can write: false  Can notify: false
 Charac.: UUID: 00002a27-0000-1000-8000-00805f9b34fb
    Can read: true Can write: false  Can notify: false
 Charac.: UUID: 00002a26-0000-1000-8000-00805f9b34fb
    Can read: true Can write: false  Can notify: false
 Charac.: UUID: 00002a28-0000-1000-8000-00805f9b34fb
   Can read: true Can write: false  Can notify: false
 Charac.: UUID: 00002a23-0000-1000-8000-00805f9b34fb
   Can read: true Can write: false  Can notify: false
 Charac.: UUID: 00002a2a-0000-1000-8000-00805f9b34fb
   Can read: true Can write: false  Can notify: false

Service Service: UUID: 49535343-fe7d-4ae5-8fa9-9fafd205e455
  Charac.: UUID: 49535343-6daa-4d02-abf6-19569aca69fe
    Can read: true Can write: true  Can notify: false
  Charac.: UUID: 49535343-aca3-481c-91ec-d85e28a60318
    Can read: false Can write: true  Can notify: true

Service Service: UUID: 0000fff0-0000-1000-8000-00805f9b34fb
  Charac.: UUID: 0000fff1-0000-1000-8000-00805f9b34fb
    Can read: false Can write: false  Can notify: true
  Charac.: UUID: 0000fff2-0000-1000-8000-00805f9b34fb
    Can read: false Can write: true  Can notify: false

回答1:


The characteristic, in this case, are those for a UART communication:

Service Service: UUID: 0000fff0-0000-1000-8000-00805f9b34fb

use the notify of this one...
  Charac.: UUID: 0000fff1-0000-1000-8000-00805f9b34fb
    Can read: false Can write: false  Can notify: true
  Charac.: UUID: 0000fff2-0000-1000-8000-00805f9b34fb

use the write of this one...
    Can read: false Can write: true  Can notify: false

There is not really a rule to it but u can use a tool on Android or IOS called nRF Connect and you can send and receive from characteristics to try them out. The OBD dongles are quite similar. In fact, many Chinese dongles use exactly the same characteristics (same firmware?). I can confirm that for Carista and VeePeak.



来源:https://stackoverflow.com/questions/61090365/what-ble-characteristic-should-i-use-in-a-ble-ios-device-for-obdii

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!