Forum Discussion
Hello Anil,
Many thanx for your reply.
I have downloaded the material you have pointed out (hwlib_api - 500 MiB), and gone (yet another time) through the RocketBoard hardwarw library site. I heve managed to find a place where CAN bus example is promised, but no sign of the example itself. In addition I have found (again) a version of the source of the alt_can.h, alt_can.c and some related stuff. As I could not find a sign of any documentation I'm looking for, nor any actual example for CAN bus, could you please point out the exact location of the CAN bus documentation / example either in the tar.gz you have mentioned or in any other site?
Thanx in advance,
Amit
Anil, Hi Again,
Maybe I can focus more sharply what I'm looking for:
I need to operate the CAN bus basing on a polling scheme, utilizing
a 1 millisec timer interrupt I already have in the system.
The high level protocol I need to implement is quite simple (though not so efficient):
Only two nodes are participating - the master, and the slave.
The master sends a request CAN message, then the slave sends a reply CAN message.
These pairs of request and reply continue throughout the communication.
What I need is a short explanation of:
1. Which functions in alt_can perform the entire simplest, initialization sequence, and at what order should they be called (especially for setting the baudrate, the node(s) id, timing periods if needed, and similar)
2. Which functions to use for writing a CAN message to the device for transmission.
3. Which functions to use for polling, and then reading a pending message from the device into the application memory.
if possible I will be much obliged for an example that contains those 3 issues.
Again, Thanx in advance,
Amit