CAN BUS RS232 Line CAN H/W FIFO RS232 FIFO CAN S/W FIFO TERMINAL Emulator COMMAND Interpreter PROTOCOL Converter CAN2RS232 Converter Block Diagram
<< CAN2RS232 CONVERTER Terminal >> +- syntax -+ function ----------------+ INI CAN controller initialize EID Set 11/29 bit ID mode SID [hex8] Set CAN ID (Hexa Code) CBR Set CAN baud rate SCP Set CAN parameters RBR Set RS232 baud rate RCV Start receiving message SND Send message STS Request status CLR Clear error EXT Exit terminal mode +----------+--------------------------+
00000000000 11111111111 xxxxxxxxxxx 11111111111
11111110000 00010000000 0001000xxxx 11111111111
1) boolean Initialize (short port, long brate)
port brate 2) void SetCanBaudRate (short baudrate) baudrate 3) boolean SetRs232BaudRate (long baudrate) 4) boolean SetCanID (boolean extmode, long canid) extmode canid 5) void SetBitTiming (short BRGCON1, short BRGCON2, short BRGCON3) BRGCON1 BRGCON2 BRGCON3 6) void SetAcceptacneFilter(long mask1, long mask2, long filter1, long filter2, long filter3, long filter4, long filter5, long filter6) 7) void ReqCanStatus()
8) void Close() 8)boolean SendMessage (long canid, short len, short data0, short data1, short data2, short data3, short data4, short data5, short data6, short data7) canid len data0~7 1) void PacketReceived(long canid, short length, short data0, short data1, short data2, short data3, short data4, short data5, short data6, short data7) canid length data0~7 2) void ProtocolAcknowlegde (boolean iserror, short ErrCode) iserror ErrCode 3) void RspCanStauts(short status, long canid, short BRGCON1, short BRGCON2, short BRGCON3)
status canid BRGCON1 BRGCON2 BRGCON3