PC Interface Driver Network and Device Communication
28 (62)
10
PC Interface Driver Network and Device
Communication
For information about network and device communication with the VCI driver see Software
Design Guides (.NET, C, C++) of the VCI.
11
Generic Mode Network and Device
Communication
To configure and transmit CAN messages via Bluetooth wireless technology an ASCII protocol
is defined. To permit a better data rate a binary format is also available for the transmission of
the messages. To transmit messages between themselves CANblue II devices use the binary
format.
11.1
ASCII Protocol
Structure of ASCII commands:
Message type
Command
Parameter 1
...
Parameter n
LF or CR-LF
Basic rules of the ASCII protocol:
•
Individual fields are separated by blanks.
•
Multiple sequential blanks are considered as single blank.
•
No distinction between capital and lower-case letters
•
Messages are terminated with ASCII linefeed control code (
LF
or
\n
) or with carriage
return and linefeed (
CR LF
or
\r\n
).
•
ASCII messages that are transmitted by the device are terminated with the same ASCII
control codes as ASCII messages that are transmitted by the user. If no ASCII message is
transmitted by the user, the device uses
CR LF
as terminator.
The following message types (type defined by first byte) are supported:
•
CAN commands (C)
•
Device commands (D)
•
CAN messages in ASCII format (M)
•
CAN messages in binary format (X)
•
Info messages (I)
•
Error messages (E)
Examples
ASCII command
Response from the device
C CAN_INIT 250
I OK: CAN_INIT
C CAN_START
I OK: CAN_START
C FILTER_ADD EXT 7FA1 RTR
I OK: FILTER_ADD
C SETTINGS_DEFAULT
I OK: SETTINGS_DEFAULT
CANblue II User Manual
4.01.0126.20000 EN 3.2