06.11.2014 Views

CAN 2.0A/B ↔ RS232/RS485 Converter

CAN 2.0A/B ↔ RS232/RS485 Converter

CAN 2.0A/B ↔ RS232/RS485 Converter

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.2 Receiving Data<br />

What data received by the converter and at <strong>RS232</strong>/<strong>RS485</strong> side are output for further processing<br />

depends on the configuration of the <strong>CAN</strong> identifier, the CAM-Acceptance-Code and the <strong>CAN</strong>-<br />

Acceptance-Mask. A detailed description of these parameters can be found with examples in<br />

chapter "3.1 <strong>CAN</strong> ID Filter Setup".<br />

Accepted <strong>CAN</strong> messages will be output in ASCII format as followed:<br />

ID space Data space Length CR<br />

space = $20 (Space "_") CR = $ 0D (Enter "")<br />

With the converter setting:<br />

<strong>CAN</strong>-Identifier = 1F000000 (29 Bit <strong>CAN</strong>-Identifier)<br />

<strong>CAN</strong>-Acceptance-Code = 00000000 (0 receives all <strong>CAN</strong>-Frames)<br />

<strong>CAN</strong>-Acceptance-Mask = FFFFFFFF (F receives all <strong>CAN</strong>-Frames)<br />

the following data is output on the USB side: (11 and 29 bit message)<br />

PC Output<br />

Meaning<br />

7E8_0001020304_05 <strong>CAN</strong> ID 7E8 Data 00 01 02 03 04 Data Length 5<br />

7E8_0 <strong>CAN</strong> ID 7E8 no Data Data Length 0<br />

7E8_01_01 <strong>CAN</strong> ID 7E8 Data 01 Data Length 1<br />

1FFFFFFF_010203_03 <strong>CAN</strong> ID 1FFFFFFF Data 0102030 Data Length 3<br />

10001234_0102_02 <strong>CAN</strong> ID 10001234 Data 01020 Data Length 2<br />

With the setting:<br />

<strong>CAN</strong>-Identifier = 1FF (11 Bit <strong>CAN</strong>-Identifier)<br />

<strong>CAN</strong>-Acceptance-Code = 00000000 (0 receives all <strong>CAN</strong>-Frames)<br />

<strong>CAN</strong>-Acceptance-Mask = FFFFFFFF (F receives all <strong>CAN</strong>-Frames)<br />

the following data is output: (only 11 bit <strong>CAN</strong> messages)<br />

PC Output<br />

Meaning<br />

7E8_0001020304_05 <strong>CAN</strong> ID 7E8 Data 00 01 02 03 04 Data Length 5<br />

7E8_0 <strong>CAN</strong> ID 7E8 no Data Data Length 0<br />

7E8_01_01 <strong>CAN</strong> ID 7E8 Data 01 Data Length 1<br />

5.2.1 Receive Error<br />

Error LED (Buffer Overflow LED) lights up, if data is sent to fast from the PC to the converter.<br />

Buffer Overflow can be recognized by "E" (Enter "E" Enter).<br />

"E" is send from converter to PC.<br />

At full <strong>CAN</strong> bus utilization can rarely cause errors (at 1 Mbps 100% bus utilization).<br />

To recognize this is the fact that the messages are not received in full.<br />

z.B.<br />

7E8_000102 <strong>CAN</strong> ID 7E8 Data 00 01 02 ? Data Length?<br />

7E8_01 <strong>CAN</strong> ID 7E8 Data 01 ? Data Length?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!