6694 views|14 replies

388

Posts

0

Resources
The OP

CAN communication based on MINI STM32 board [Copy link]

Board A communicates with board B. Press the buttons on board A respectively. After board B receives the data through CAN communication, the corresponding LED lights on board B will be turned on.
发送.zip (345.75 KB, downloads: 276)

接收.zip (371.52 KB, downloads: 284)

This post is from stm32/stm8

Latest reply

There is a virus after downloading  Details Published on 2018-1-4 11:58
Personal signatureSTM32 开发板  带CAN  RS485 接口
http://shop66177872.taobao.com

388

Posts

0

Resources
2

CAN环回测试.zip (375.36 KB, downloads: 114)

This example uses the MINI STM32 board to show how to use the BxCAN module of STM32 to send and receive data. In this example, the BxCAN module works in loopback mode, that is, the receiving end receives the data sent from the transmitting section,
realizing self-transmission and self-reception. After running the program, first, the module will transmit a frame of standard data at a baud rate of 100Kbit/s. After waiting for the transmission to be completed,
the receiving section receives and verifies the frame of data, and judges whether the transmission is correct or not according to the result and lights up the corresponding LED. LED1 lights up to indicate success, and LED2 lights up to indicate failure.
Subsequently, the module will transmit a frame of extended data at a baud rate of 500Kbit/s. This time, the receiving end will generate an interrupt after receiving the receipt, and check the frame of data in the interrupt.
It also judges whether the transmission is correct or not according to the result and lights up the corresponding LED. LED3 lights up to indicate success, and LED2 lights up to indicate failure.
Running the program, it is found that LED1 and LED3 on the board light up, which indicates that both transmissions are successful.

This post is from stm32/stm8
Personal signatureSTM32 开发板  带CAN  RS485 接口
http://shop66177872.taobao.com

388

Posts

0

Resources
3
No one has pushed it up, push it up yourself
This post is from stm32/stm8
Personal signatureSTM32 开发板  带CAN  RS485 接口
http://shop66177872.taobao.com

4002

Posts

0

Resources
4
?Doesn't canbus have two wires? Why does yours have four wires?
This post is from stm32/stm8

Comments

Two of the wires are power lines. When the bus is communicating, there must be power lines to supply power to each CAN module.  Details Published on 2013-6-6 08:01

388

Posts

0

Resources
5
Two of the wires are power lines. When the bus is communicating, there must be power lines to supply power to each CAN module.
This post is from stm32/stm8
Personal signatureSTM32 开发板  带CAN  RS485 接口
http://shop66177872.taobao.com

388

Posts

0

Resources
6
:loveliness:                                               
This post is from stm32/stm8
Personal signatureSTM32 开发板  带CAN  RS485 接口
http://shop66177872.taobao.com

19

Posts

1

Resources
7
can, a must-have in the automotive industry.
This post is from stm32/stm8

3218

Posts

5

Resources
8
I would like to ask if you have done any experiment to allow CAN to accept more than 8 bytes at a time?
This post is from stm32/stm8

Comments

If there are more than 8 pieces of data, they need to be processed programmatically.  Details Published on 2014-9-16 09:44
Personal signature淘宝:https://viiot.taobao.com/Q群243090717
多年专业物联网行业经验,个人承接各类物联网外包项目

388

Posts

0

Resources
9
wateras1 posted on 2014-9-1 14:43 May I ask if the OP has ever done an experiment on how to accept more than 8 bytes at a time?
If there are more than 8 data, the program needs to process them.
This post is from stm32/stm8

Comments

This issue has been resolved  Details Published on 2014-9-16 17:10
Personal signatureSTM32 开发板  带CAN  RS485 接口
http://shop66177872.taobao.com

3218

Posts

5

Resources
10
jiaxinhui2011 posted on 2014-9-16 09:44 If there are more than 8 data, the program needs to handle it.
This problem has been solved:)
This post is from stm32/stm8
Personal signature淘宝:https://viiot.taobao.com/Q群243090717
多年专业物联网行业经验,个人承接各类物联网外包项目

388

Posts

0

Resources
11
Congratulations upstairs.
This post is from stm32/stm8
Personal signatureSTM32 开发板  带CAN  RS485 接口
http://shop66177872.taobao.com

514

Posts

0

Resources
12
CAN communication based on MINI STM32 board
This post is from stm32/stm8

388

Posts

0

Resources
13
:)            
This post is from stm32/stm8
Personal signatureSTM32 开发板  带CAN  RS485 接口
http://shop66177872.taobao.com

2

Posts

0

Resources
14
Thank you for sharing
This post is from stm32/stm8

2

Posts

0

Resources
15
There is a virus after downloading
This post is from stm32/stm8

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list