레이블이 OBD인 게시물을 표시합니다. 모든 게시물 표시
레이블이 OBD인 게시물을 표시합니다. 모든 게시물 표시

2010년 3월 8일 월요일

DIAMEX DXM - OBD모듈




그 동안 가장 일반적으로 사용되던 OBD-II 모듈은 대부분 ELM-3xx 칩 기반으로 만들어졌다. 하지만 좀 더 좋은 모듈이 나왔다. 독일에서 만든 DIAMEX DXM 모듈로 매우 작은 크기(21mm*36mm)지만 ARM CORTEX 코어를 사용해 매우 빠르고 보호용 다이오드, 콘덴서 하나만 있으면 OBD포트에 바로 연결해 간단하게 사용할 수 있다. PWM(SAE J1850), VPWM(SAE J1850), CAN(ISO15765-4), KWP2000(ISO14230-4), ISO9141-2를 모두 지원하고 자동으로 사용되는 통신방식을 선택해 준다.
또한 AT 명령어 셋을 사용하기 때문에 이미 나와있는 대다수의 OBD-II 소프트웨어와 호환이 된다. 명령어 셋은 여기에서 확인할 수 있다.


위의 회로도는 컴퓨터의 RS-232 포트에 연결하는 경우의 회로이다. 마이크로 프로세서의 시리얼 포트에 연결할 때는 MAX3232부분도 필요없이 프로세서의 Rx, Tx에 직접 연결해주면 된다.

모듈의 pinout은 다음과 같다.
 






위의 사진에서 보듯이 이미 이 모듈을 사용한 시리얼, USB, Bluetooth로 연결할 수 있는 제품들도 나와있다.

2010년 3월 7일 일요일

DIAMEX DXM 명령어 목록

DIAMEX DXM module은 시리얼 포트를 통해 PC와 통신을 하고 AT명령어 셋을 사용하기 때문에 이미 나와있는 대다수의 OBD-II 소프트웨어와 호환된다. 지원하는 AT명령어 목록은 다음과 같다.
--

DIAMEX DXM command list

COMMAND

Explanation

ATZ

Reboot the controller

ATWS

Same as ATZ but faster

ATI

Identification text is reported

ATD

All parameters are stored in the ground state as after a cold or warm state

ATE0/1

Toggle the serial echo on/off

ATL0/1

Toggle the transmission of the linefeed(L/F)

ATM0/1

Toggle the memory function of the final protocol

ATH0/1

Toggle if the OBD2 header answers and checksum byte shall be displayed

ATBD

Causes the display of the OBD2 receive buffer

ATB

Display of the OBD2 reception buffer

ATSRxx

Input of the RX ECU OBD2 filter address for OBD2 responses

ATN

Display of the current protocol used as HEX value F0..F9

  • F0 – no active protocol  

  • F1 – PWM protocl 

  • F2 – VPWM protocol 

  • F3 – ISO9141 protocol 

  • F4 – KWP2000 protocol 

  • F5 – KWP2000 protocol 

  • F6 – CAN 11-bit ID, 500 kBaud 

  • F7 – CAN 29-bit ID, 500 kBaud 

  • F8 – CAN 11-bit ID, 250 kBaud 

  • F9 – CAN 29-bit ID, 250 kBaud 

ATDP

Display of the currently used protocol in plaintext

  • NOT CONNECTED 

  • SAE J1850/PWM 

  • SAE J1850/VPWM 

  • ISO9141-2 

  • ISO14230-4, KWP2000 (5 BAUD Init) 

  • ISO14230-4, KWP2000 (Fast Init) 

  • ISO15765-4, CAN(11/500) 

  • ISO15765-4, CAN(29/500) 

  • ISO15765-4, CAN(11/250) 

  • ISO15765-4, CAN(29/250) 

ATK

Display the current keywords on ISO9141 and KWP2000

ATKW0/1,

For a slow, init keywords are distinguished between protocol 3 (ISO9141) and protocol 4 (KWP2000). This automatic detection can be disabled with ATKW0

ATP[A]x

Manual setting of the current protocol or the automatic protocol search

  • ATP1 – PWM 

  • ATP2 – VPWM 

  • APT3 – ISO9141-2 

  • ATP4 – KWP2000 5 BAUD Init 

  • ATP5 – KWP2000 Fast Init 

  • ATP6 – CAN 11/500 

  • ATP7 – CAN 29/500 

  • ATP8 – CAN 11/250 

  • ATP9 – CAN 29/250 

ATV

Overview of all the modifiable parameters of the DXM1 are displayed

ATSBx

Set baud rate of serial interface

  • ATSB0 – 9600 Baud (Standard) 

  • ATSB1 – 19200 Baud 

  • ATSB2 – 38400 Baud 

  • ATSB3 – 57600 Baud 

  • ATSB4 – 115200 Baud 

  • ATSB5 – 125000 Baud 

  • ATSB6 – 250000 Baud 

ATSHxxyyzz

Manual setting of the header bytes for ISO9141, KWP2000, PWM and VPWM protocol

  • xx = priority/type-byte 

  • yy = target-address 

  • zz = source-address 

ATWMxxyyzzaa[bb][cc]

Manual setting of the wakeup message bytes for ISO9141 and KWP2000

  • xx = priority/type-byte (with length indication in KWP) 

  • yy = target-address 

  • zz = source-address 

  • aa, bb, cc = command bytes 1~3 

ATSWxx

The length of time between automatic wakeup commands in existing ISO9141 and KWP2000 can be set

ATCA0/1

The automatic formatting of the transmitted and received CAN data can be switched on/off

ATCC0/1

Multi-frame answers have to be sent flow control messages from the tester, which indicate the controller, that following packages have to be accepted

ATCDxx

Flow control data packages which has to be sent in multi frame responses, contain beside the status byte (FS), a block size byte (BS) and also a byte for the duration (ST), which have to be added between the following response packages

ATCIxxx/xxxxxxxx

CAN-ID which has to be sent, is set with this command

  • 11-bit ID – 7DF (default) 

  • 29-bit ID – 18 DD 33 F1 (default) 

ATCFxxx/xxxxxxxx

Set CAN RX-filter

  • 11-bit ID – 7E8 (default) 

  • 29-bit ID – 18 DA F1 00 (default) 

ATCMxxx/xxxxxxxx

Set CAN RX-mask

  • 11-bit ID – 7F8 (default) 

  • 29-bit ID – 1F FF FF 00 (default) 

AT!00

Output of the serial number of the DXM controller

AT!01

Output of the controller type and the BIOS version number

AT!10

Mesaurement of 12-volt vehicle power