4. Application examples
4.1 Equipment wiring
GCAN-203 uses 9-30V DC power supply. Connect CAN_H to CAN-Bus CAN_H, CAN_L to CAN-Bus CAN_L. A High-speed CAN bus must be terminated on both ends with 120 Ohms. Otherwise disturbances may arise.
As shown in figure 4.1, the left side of the equipment is USBCAN-II Pro. Wiring and termination resistance must be confirmed correctly. Open USBCAN-II Pro equipment with ECANtools software, then select the baud rate to 250K.
4.2 Bluetooth connection
Install “CANBlue.RSO.apk” APP to a mobile phone with android which is in the ” ③ 安卓系统串口助手安装包” document. Search for Bluetooth equipment, then enter the connection password.
4.3 Bluetooth serial assistant use
4.3.1 Connect to GCAN-203
Open the software, the interface is shown in figure 4.2.
The function of the four buttons will be shown here:
蓝牙开关——Turn on Bluetooth or turn off Bluetooth.
搜索设备——Click “搜索设备” .You can find all the converters that opened
Bluetooth, only the converter name turn blue can be connected. (GCAN-203’s default
name is SN number, password is 1234)
版本升级——Not open yet.
侦听连接——Not open yet.
Enter the receive / send data interface, as shown in figure 4.3.
4.3.2 Send and receive data for example
The following is a brief introduction to the received / sent data format. Please refer to the appendix for detailed data format.
The CAN frame Information(FF, RTR) represents the frame format and frame type of the CAN frame. The specific values are shown in the following table; the CAN frame Information (DLC) represents the byte length of the CAN frame data. According to the actual needs , it fills 0 to 8.
Example of special data transmission: table 4.1.
1.The mobile equipment sends data to the CAN terminal, DLC is 2 bytes less than 8 bytes of data(11 22 33 44 55 66 77 88), CAN receives 2 bytes of data (11 22).
2.The mobile equipment sends data to the CAN terminal, DLC is 8 bytes more than 4 bytes of data(11 22 33 44), CAN receives 8 bytes of data (11 22 33 44 XX XX XX XX)(XX is used for the filling, which is meaningless).
3.CAN sends data to the mobile equipment, and CAN terminal sends 4 bytes of standard data frame (11 22 33 44). The mobile equipment receives 8 bytes of frame data (11 22 33 44 XX XX XX XX)(XX is used for the filling, which is meaningless).