文件名称:uart_can
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 5kb
- 下载次数:
- 0次
- 提 供 者:
- w***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
自己编写的串口-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 fr a me EXT: extended fr a me) 2. data sent sending data: $ DATA ($: starting at DATA: identifier corresponding encoded data: 0x24 0x44 0x41 0x54 0x41)
一.传输数据协议:
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 fr a me EXT: extended fr a me) 2. data sent sending data: $ DATA ($: starting at DATA: identifier corresponding encoded data: 0x24 0x44 0x41 0x54 0x41)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
uart_can.c