Generic Mode Network and Device Communication
33 (62)
C CAN_INIT_CUSTOM
Initializes the CAN controller with custom baud rate. Parameters bt0 and bt1 correspond to the
bus timing register of Phillips SJA 1000 CAN controller with a clock frequency of 16 MHz.
Bit 7 of parameter bt1 is ignored, because the CANblue II CAN controller does not support
different sample rates.
C CAN_INIT_CUSTOM <bt0><bt1><buscop><name>
Parameter
Parameter
Description
bt0
SJA1000, bit timing register 0, possible values: 0–FF hexadecimal
bt1
SJA1000, bit timing register 1, possible values: 0–FF hexadecimal
buscop
Mode of bus coupling, exclusively HIGH is supported, possible entry: HIGH
name
String enclosed in “”, max. 30 characters. Name of bus timing configuration that is used
for command
C CONFIG SHOW
. If no name is specified, the baud rate is used as name.
Example
C CAN_INIT_CUSTOM 0 1C HIGH 1000KBAUD CUSTOM
Possible Return Values
Return Value
Description
I OK: CAN_INIT_CUSTOM
Function succeeded
E 31 Error while initializing CAN
Internal error while initializing the CAN controller. CAN
controller not initialized. Try to initialize again.
E 4 Unsupported parameter
Bus coupling LOW is not supported. Use bus coupling
HIGH.
11.2.3
Configuring the Filter
C FILTER_ADD
Adds a filter entry to the filter list. The filter works as a positive filter. Received messages which
are in the list are forwarded. Messages received via the Bluetooth connection are not filtered.
For information about space and used memory see
.
C FILTER_ADD <msg_typ><id><rtr>
Parameter
Parameter
Description
msg_typ
Message type of filter entry (Standard or Extended), possible values: STD/EXT
id
CAN ID of filter entry, possible values: 0-7FF (Standard), 0-1FFFFFFF (Extended)
rtr
Data or remote frame, possible entries: DATA/RTR (optional, default: DATA)
Example
C FILTER_ADD STD 3A RTR
Possible Return Values
Return Value
Description
I OK: FILTER_ADD
Function succeeded
E 41 Error adding ID to filter
Out of memory for extended filter elements.
CANblue II User Manual
4.01.0126.20000 EN 3.2