background image

CANwireless

CR3133

13

8.3.3 Filtering CAN messages

You can configure in the device which CAN messages are forwarded from the CAN interface to the
radio interface. The bus load of the CAN and radio interfaces is reduced if no more data than
necessary is allowed.

A filter and a mask for the CAN ID decide whether a message is forwarded to the radio interface. Up
to eight filters can be configured. If there are less than eight messages, a separate filter can be used
for each message. Use mask 0x7FF for an 11-bit CAN ID and mask 0x1FFFFFFF for a 29-bit CAN ID.

The device uses the following variables to calculate whether to allow or block a CAN message:

Variable name

Description

RxCANid

CAN ID of the received CAN message

FilterValue

Filter with which a CAN ID is identified as authorised

MaskValue

Mask with which a CAN ID is identified as authorised

The verification mechanism works as follows:

RxCANid XOR FilterValue = checkedCANid
checkedCANid AND MaskValue = RESULT
If RESULT = 0, the message is authorised.

Example 1:

RxCANid: 0x123
FilterValue: 0x421
MaskValue: 0xF8

Description

Hex

Binary

Received CAN message

0x123

0b001.0010.0011

FilterValue

0x421

0b100.0010.0001

XOR

checkedCANid

0x502

0b101.0000.0010

MaskValue

0x0F8

0b000.1111.1000

AND

RESULT

0x000

0b000.0000.0000

→ With these settings, the CAN ID 0x123 is authorised; messages with this ID are forwarded.

Example 2:

RxCANid: 0x123
FilterValue: 0x431
MaskValue: 0xF8

Description

Hex

Binary

Received CAN message

0x123

0b001.0010.0011

FilterValue

0x431

0b100.0011.0001

XOR

checkedCANid

0x512

0b101.0001.0010

MaskValue

0x0F8

0b000.1111.1000

AND

RESULT

0x010

0b000.0001.0000

→ With these settings, the CAN ID 0x123 is rejected; messages with this ID will not be forwarded.

Summary of Contents for CR3133

Page 1: ...Operating instructions CANwireless CR3133 11515548 00 04 2023 GB...

Page 2: ...nna terminal 8 7 Light indicators 9 7 1 ON LED 9 7 2 STATUS LED 9 8 Set up 11 8 1 Necessary components 11 8 2 Connecting the device 11 8 3 Configuration 11 8 3 1 CANopen 11 8 3 2 Factory reset 12 8 3...

Page 3: ...tructions Reaction result Designation of keys buttons or indications Cross reference Important note Non compliance may result in malfunction or interference Information Supplementary note 1 2 Warnings...

Page 4: ...g instructions or the technical data are not adhered to personal injury and or damage to property may occur The manufacturer assumes no liability or warranty for any consequences caused by tampering w...

Page 5: ...of CAN data of a vehicle or machine via a WLAN or a Bluetooth interface to another CANwireless device or to any Bluetooth device Available modes are a CAN bridge to another machine or a direct wireles...

Page 6: ...on to other Bluetooth devices such as smartphones tablets or laptops The CAN data is transferred to the connected device and can be stored and evaluated there The CAN data is formatted with the Byte C...

Page 7: ...chnical data and safety will be impaired 54 Fig 1 Holes for mounting u Use 2 M6x30 cylinder head bolts to fix the device on an even surface Tightening torque 3 4 Nm 10 5 1 Mounting the antennas u When...

Page 8: ...g 1 input 3 GND terminal 31 supply 4 analogue input 1 5 analogue input 2 6 not used 7 digital output 8 digital input terminal 15 input ignition signal 9 factory setting 2 input 10 GND terminal 31 supp...

Page 9: ...ermissible range Orange On The device is reset to factory settings The ON and STATUS LEDs are lit simultaneously Turquoise On The radio module is being updated via HTTP server The ON and STATUS LEDs a...

Page 10: ...LEDs flash simultaneously Blue Flashing Data is being transferred Blue On Wireless connection error Orange Single flashing light The device has received a CANopen SDO request Orange On Error CAN1 Red...

Page 11: ...erminating resistors u Connect the CAN PC interface with the CAN adapter cable to the device and connect it to the PC u Connect the ground terminal of the power supply to CAN1 GND u Apply the supply v...

Page 12: ...AN2 3 250 kbit s Heartbeat CAN1 0 no heartbeat Heartbeat CAN2 0 no heartbeat NMT startup CAN1 0 automatically set to operational Reset parameters defined by the manufacturer to factory settings 0x1011...

Page 13: ...N ID is identified as authorised MaskValue Mask with which a CAN ID is identified as authorised The verification mechanism works as follows RxCANid XOR FilterValue checkedCANid checkedCANid AND MaskVa...

Page 14: ...FilterValue Description Hex Binary Received CAN message 1 0x123 0b001 0010 0011 Received CAN message 2 0x124 0b001 0010 0100 Received CAN message 3 0x125 0b001 0010 0101 OR Required value for FilterVa...

Page 15: ...4 and 0x627 0x628 0x629 Two filters and masks should be used here for the 0x1 IDs and the 0x62 IDs respectively Description Hex Binary 0x10 0b001 0000 0x11 0b001 0001 0x12 0b001 0010 0x13 0b001 0011 0...

Page 16: ...bject in which the FilterValue for the eight filters is configured This setting is taken over directly from the filter and can be ad justed dynamically The filter is only active when the radio interfa...

Page 17: ...dex Data type Configuration WLAN Enable 0x3008 0x02 Unsigned 8 0 switch off Bluetooth Enable 0x3008 0x03 Unsigned 8 1 switch on Bluetooth Devicename 0x3002 0x05 Visible_string Enter a unique name Blue...

Page 18: ...CAN bridge via WLAN Mini Access Point MiniAP mode In this mode a wireless connection CAN bridge is established between two CANwireless devices via WLAN The devices need to be configured as follows Ob...

Page 19: ...ure 8 3 10 CAN Mobile device PC interface P2P WLAN Mini Access Point In this mode a wireless connection is established between a CANwireless device and any other WLAN enabled device via WLAN The CANwi...

Page 20: ...1 0x3010 0x01 Unsigned 8 2 connect with static address Client Enable 0x3010 0x15 Unsigned 8 3 turn on client Server Type 0x3010 0x16 Unsigned 8 1 socket TCP UDP Server Type 0x3010 0x18 Unsigned 16 30...

Page 21: ...ep mode are met it will be enforced when this time has elapsed This ensures switchover to sleep mode even if the regular activation of this mode should fail Default 60000 PMM Sleep on no CAN time non...

Page 22: ...in case of malfunction u Do not open the housing as the unit does not contain any components which can be maintained by the user The unit must only be repaired by the manufacturer u Clean the device...

Reviews: