background image

CR3132

CANwireless

14

8.3.4 Filter functionality

The filter set in the device consists of two components: the filter (FilterValue) and the mask
(MaskValue). With these two components, the device calculates which CAN IDs are permitted and will
only forward these CAN messages to the radio interface.

You can determine the correct FilterValue by ORing all desired CAN IDs.

You can determine the correct MaskValue by XNORing all desired CAN IDs.

The bigger the MaskValue, the stricter the filter works.
Zeros in the MaskValue have no influence on the result.

Example: MaskValue = 0x0F8 → 0b000.1111.1000 → 0bxxx.1111.1xxx
Only bit 3, bit 4, bit 5, bit 6 and bit 7 have an influence on the filter.

Example 1:

Only messages with CAN IDs 0x123, 0x124 and 0x125 are to be forwarded.

u

Determine the 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 FilterValue

0x127

0b001.0010.0111

u

Determine the MaskValue:

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

XNOR

Required value for MaskValue

0xFF8

1b111.1111.1000

u

Test with CAN message 3:

Description

Hex

Binary

Received CAN message 3

0x125

0b001.0010.0101

FilterValue

0x127

0b001.0010.0111

XOR

checkedCANid

0x002

0b000.0000.0010

MaskValue

0xFF8

1b111.1111.1000

AND

RESULT

0x000

0b000.0000.0000

→ CAN ID 0x125 is authorised; messages with this ID are forwarded.

Example 2:

Only messages with the CAN ID 0x123 are to be forwarded.

Description

Hex

Binary

Received CAN message

0x123

0b001.0010.0011

FilterValue

0x123

0b001.0010.0011

XOR

checkedCANid

0x000

0b000.0000.0000

Summary of Contents for CR3132

Page 1: ...Operating instructions CANwireless CR3132 11515547 00 04 2023 GB...

Page 2: ...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 3 Filtering C...

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: ...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 Command Protocol and t...

Page 7: ...damaged units otherwise the technical 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...

Page 8: ...in 1 VCC terminal 30 supply 2 factory setting 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 fac...

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: ...N 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 voltage The following table provides a...

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: