Programming crbasic dataloggers to use the sdm-can, Using the rs232 serial diagnostics port, Attributions – Campbell Scientific SDM-CAN Datalogger to CANbus Interface User Manual

Page 6: Appendices a

Advertising
background image

Table of Contents

3.3.10

Multiplier (Parameter 13:).......................................................... 25

3.3.11

Offset (Parameter 14:)................................................................ 25

3.4

Advanced Programming Techniques................................................. 25

3.4.1

Interrupts Using the I/O Connection .......................................... 25

3.4.2

Group Trigger............................................................................. 27

3.4.3

Frame buffers with filtering and triggering ................................ 27

3.4.3.1

Setup of Mask and Filter / trigger.................................... 28

3.4.3.2

Reading / Polling Buffer.................................................. 28

3.4.3.3

Basic Sequence of Buffer Usage: .................................... 29

3.5

Program Examples............................................................................. 29

3.5.1

Reading CAN Data..................................................................... 29

3.5.2

Simple CAN Data Transmission ................................................ 30

3.5.3

Building and Sending Data Frames............................................ 32

3.5.4

Using the Interrupt Function ...................................................... 32

3.5.5

Using the Group Trigger ............................................................ 34

4.

Programming CRBasic Dataloggers to use the

SDM-CAN.................................................................35

4.1

General Principles ............................................................................. 35

4.1.1

High Speed Block Mode ............................................................ 36

4.2

Datalogger Instruction ....................................................................... 36

4.2.1

Reading CAN Data..................................................................... 37

4.2.2

Simple CAN Data Transmission ................................................ 38

4.2.3

Digital I/O Triggered CANbus Measurements........................... 39

4.2.4

SlowSequence Instruction .......................................................... 40

5.

Using the RS232 Serial Diagnostics Port ...............40

5.1

Connecting to the RS232 User Port................................................... 40

5.2

Diagnostic Commands....................................................................... 41

5.3

Loading a New Operating System into the SDM-CAN Interface ..... 43

6.

Attributions................................................................44

Appendices

A.

Principles of Operation...........................................A-1

A.1

Data Collection................................................................................ A-1

A.2

Frame Transmission ........................................................................ A-2

B.

A Summary of Data Types......................................B-1

C.

Application of the SDM-CAN on Networks

Complying with the J1939 SAE Standards.........C-1

C.1

J1939 29-Bit Identifier Format ........................................................ C-1

C.2

J1939 11-Bit Identifier Format ........................................................ C-1

C.3

J1939 Data Frame Format ............................................................... C-2

ii

Advertising