About the CAN controller.

pmlody
Posts: 3
Joined: Sat Jan 28, 2017 5:02 pm

Re: About the CAN controller.

Postby pmlody » Thu Mar 09, 2017 1:02 pm

Are you using extended or basic frames?

rockyo
Posts: 2
Joined: Sat Feb 18, 2017 6:29 pm

Re: About the CAN controller.

Postby rockyo » Thu Mar 09, 2017 6:35 pm

Standard id's.

pmlody
Posts: 3
Joined: Sat Jan 28, 2017 5:02 pm

Re: About the CAN controller.

Postby pmlody » Fri Mar 10, 2017 5:24 am

Are you using WROVER or WROOM/DEV KITC?
WROVER have most of pins pulled up, it doesn't work then.

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: About the CAN controller.

Postby rudi ;-) » Sat Mar 18, 2017 12:20 am

ThomasB wrote:I also use the MCP2551.
An example is planned but currently im drowning in work...
thomas,
have tested it just in time here with MCP2551 too ( before with TJA1051 )
works like a charme too.

now we go next steps..
..But nothing is betrayed or chattered -
The esp guys betray or whisper us also nothing to the sound (i2s)..

:mrgreen:

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: About the CAN controller.

Postby rudi ;-) » Sun Mar 19, 2017 9:26 pm

jaegertuning wrote:
ThomasB wrote:I also use the MCP2551.
An example is planned but currently im drowning in work...
No problem! I was able to get this working :D The code provided was perfect - I just needed to wire up my MCP2551 correctly.
fast test,
perhabs this helps:

https://twitter.com/eMbeddedHome/status ... 2771785728
esp32_can_test_100m_cable.jpg
esp32_can_test_100m_cable.jpg (334.44 KiB) Viewed 14597 times
best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: About the CAN controller.

Postby rudi ;-) » Mon Mar 20, 2017 10:28 am

hi
ESPCan driver as component and menuconfig ready for PullRequest to ESP-IDF components
comes asap
esp32_can_driver_setup.gif
esp32_can_driver_setup.gif (1.32 MiB) Viewed 14582 times
best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: About the CAN controller.

Postby rudi ;-) » Tue Mar 21, 2017 6:57 pm

ESP_Sprite wrote:Nice! Thank you very much. I'll see if we can integrate it into esp-idf.
hi jeroen

CAN Driver base ready
CAN Driver menuconfig ready

do you have start integrate work?
if not we do this PR to github or Third party IDF components list
what is the best`?

please do not underestimate the subject "CAN"
it is a very popular subject at a distance

thank you
best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Hans Dorn
Posts: 62
Joined: Tue Feb 21, 2017 2:21 am

Re: About the CAN controller.

Postby Hans Dorn » Tue Mar 21, 2017 8:32 pm

Looking good.

How many CAN messages are you able to send or receive per second?

Cheers

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: About the CAN controller.

Postby rudi ;-) » Tue Mar 21, 2017 10:15 pm

Hans Dorn wrote:Looking good.

How many CAN messages are you able to send or receive per second?

Cheers
hi

here in a 125kbit test with allways 8 byte difference data
i use standard msg and is
1+11+1+1+1+4+64+15+1+1+1+7 = 108 bit long

interframe spacing perhabs 3 do 6
so
+ six bits interframe spacing

caculation of this i think would be:
125000 / ( 108 + 6 ) = 1096 frames ( CAN messages ) per second.

this is theoretically,
practial in code there are small delays between the messages ( 20-50ms ) ,
CAN uses NRZ coding, and in this example i not calculated ACK and other few things ,
perhabs 900 frames/sec i think are possible, perhabs will check this by time in a test dialog later for using with higher rate too


check this answere here too


best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Hans Dorn
Posts: 62
Joined: Tue Feb 21, 2017 2:21 am

Re: About the CAN controller.

Postby Hans Dorn » Tue Mar 21, 2017 11:36 pm

I know the theoretical throughput ;)

At 1MBit you should be able to push out a little less than 8000 frames per second.

Did you really see 20 - 50 ms between frames, or are these µs?

Still a lot, considering a fast frame is only a bit more than 100µs...


Cheers
Hans

Who is online

Users browsing this forum: No registered users and 96 guests