Page 5 of 18

Re: About the CAN controller.

Posted: Thu Mar 09, 2017 1:02 pm
by pmlody
Are you using extended or basic frames?

Re: About the CAN controller.

Posted: Thu Mar 09, 2017 6:35 pm
by rockyo
Standard id's.

Re: About the CAN controller.

Posted: Fri Mar 10, 2017 5:24 am
by pmlody
Are you using WROVER or WROOM/DEV KITC?
WROVER have most of pins pulled up, it doesn't work then.

Re: About the CAN controller.

Posted: Sat Mar 18, 2017 12:20 am
by rudi ;-)
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 ;-)

Re: About the CAN controller.

Posted: Sun Mar 19, 2017 9:26 pm
by rudi ;-)
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 13042 times
best wishes
rudi ;-)

Re: About the CAN controller.

Posted: Mon Mar 20, 2017 10:28 am
by rudi ;-)
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 13027 times
best wishes
rudi ;-)

Re: About the CAN controller.

Posted: Tue Mar 21, 2017 6:57 pm
by rudi ;-)
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 ;-)

Re: About the CAN controller.

Posted: Tue Mar 21, 2017 8:32 pm
by Hans Dorn
Looking good.

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

Cheers

Re: About the CAN controller.

Posted: Tue Mar 21, 2017 10:15 pm
by rudi ;-)
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 ;-)

Re: About the CAN controller.

Posted: Tue Mar 21, 2017 11:36 pm
by Hans Dorn
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