Location:
Search - uart_can
Search list
Description: 自己编写的串口-CAN口的转换程序,已经测试过没有问题!
一.传输数据协议:
1.初始化
初始化波特率(CAN):$BAUD($:起始符;BAUD:波特率标识符;
相应编码:0x24 0x42 0x41 0x55 0x44)
传输ID号设置:$IDERSTD(相应编码:0x24 0x49 0x44 0x45 0x52 0x53 0x54 0x44)
$IDEREXT(相应编码:0x24 0x49 0x44 0x45 0x52 0x45 0x58 0x54)
($:起始符;IDER:ID标识符;STD:标准帧;EXT:扩展帧)
2.数据发送
发送数据 :$DATA($:起始符;DATA:数据标识符
相应编码:0x24 0x44 0x41 0x54 0x41)
Platform: |
Size: 5184 |
Author: wfew |
Hits:
Description: 自己编写的串口-CAN口的转换程序,已经测试过没有问题!
一.传输数据协议:
1.初始化
初始化波特率(CAN):$BAUD($:起始符;BAUD:波特率标识符;
相应编码:0x24 0x42 0x41 0x55 0x44)
传输ID号设置:$IDERSTD(相应编码:0x24 0x49 0x44 0x45 0x52 0x53 0x54 0x44)
$IDEREXT(相应编码:0x24 0x49 0x44 0x45 0x52 0x45 0x58 0x54)
($:起始符;IDER:ID标识符;STD:标准帧;EXT:扩展帧)
2.数据发送
发送数据 :$DATA($:起始符;DATA:数据标识符
相应编码:0x24 0x44 0x41 0x54 0x41)-I have written serial-CAN the mouth of the conversion process has been tested there is no problem! 1. Transmission data protocol: 1. Initialization initialize baud rate (CAN): $ BAUD ($: starting at BAUD: Baud rate identifier corresponding code: 0x24 0x42 0x41 0x55 0x44) transmission ID No. Set: $ IDERSTD (corresponding code: 0x24 0x49 0x44 0x45 0x52 0x53 0x54 0x44) $ IDEREXT (corresponding code: 0x24 0x49 0x44 0x45 0x52 0x45 0x58 0x54) ($: starting at IDER: ID identifier STD: standard frame EXT: extended frame) 2. data sent sending data: $ DATA ($: starting at DATA: identifier corresponding encoded data: 0x24 0x44 0x41 0x54 0x41)
Platform: |
Size: 5120 |
Author: wfew |
Hits:
Description: 基于C80F51单片机USB转can的驱动程序(C80F51 microcontroller based on USB to can driver)
Platform: |
Size: 5120 |
Author: lzq2017
|
Hits: