Using the Peak CAN-Bus Adapter

A CAN-Bus adapter enables the reading and writing of messages from/to a CAN-Bus device. With the new Peak Can-Bus adapter, you can use all Peak USB CAN-Bus devices with impulse to trace and inject messages.

Screen Cast: Using the Peak
CAN-Bus Adapter

 

Configuration

  • Channel: Select a CAN-BUS channel from the list. You may press the "Identify" button to find the right device (Windows only).
  • Rate: Select the required data rate.

Filters

You may configure up to 4 filters:
  • Id from/to: Select the id range you want to receive.
  • Disabled/Standard/Extended: Select the filter mode.

Symbols

You may define/import a hierarchy of CAN symbols with optional multiplexers and variables. Each variable creates exactly one signal.
CAN Messages that comply with the configured hierarchy of symbols and multiplexers, trigger the containing variables to update their value (and create a new sample for their signal).

CAN Symbol

  • Id from/to: Define the id range for the symbol. In most cases just  "Id from" is used.
  • Type: Select either Standard or Extended type messages.
  • Packet length: Select either the required packet length or "Any".
  • Direction: Select the message direction "Receive", "Send" or "Both".
If a CAN Message is received or send and complies with the symbol information above, all child multiplexer and variables are triggered.

CAN Multiplexer

A multiplexer can be seen as a filter. Only CAN message with the correct data bits at a given position trigger its child variables to update.  
  • Endianess: Select the byte order mode Little (Intel) or Big (Motorola)
  • Value: Type in the multiplexer value (an unsigned integer).
  • Bit pos: Select the start position of the multiplexer value.
  • Length: Type in the length of the multiplexer value.
  • Packet length: Select either the required packet length or "Any".

CAN Variable

A variable is updates with the data of a CAN message if its parent multiplexer and symbol comply with the message.
  • Type: Select the variable/signal type (Binary, Logic, Event(Enums), Text,  Integer, Float).
  • Endianess: Select the byte order mode Little (Intel) or Big (Motorola). This has no effect for text and binary data type.
  • Bit pos: Select the start position of the message value.
  • Length: Type in the length of the message value.
  • Enums: If Event is selected as data type, define here the enumeration values.
  • Min/Max: Optionally select a min/max range. If the actual value exceed the given range, the conflict flag is set to true (will paint samples with red color). 

Stimulation

If you need to inject messages, check the flag "Enable Stimulation" and modify the example script below.
// can: Can bus adapter
//   can.send(id,MESSAGE_STANDARD,data,..);
//   with MESSAGE_STANDARD,Can.MESSAGE_EXTENDED or MESSAGE_RTR
// console: console output of type MessageConsoleStream

for (n=0;n<100;n++){
    can.send(12,MESSAGE_STANDARD,0,1,2,3);
    can.send(24,MESSAGE_EXTENDED,0,1,2,3,4,5,6,7);
    java.lang.Thread.sleep(100);
}

Synchronization

Using a multi port adapter, you can combine an unlimited number of different input ports. The synchronization section of the adapters allows you to synchronize inputs with different domain bases (e.g. each input has its own time base). See 11 Synchronisation.

Print

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive