Setting up canutils:
http://forum.43oh.com/topic/8772-setting-up-canutils-on-linux/
code examples: http://forum.43oh.com/topic/8541-socketcan-help-needed/

The code examples are more or less code "ramblings" as I was learning the
socketCAN framework, while reverse engineering a custom J1939 CAN protocol.

On Sun, Jul 31, 2016 at 9:37 AM, TJF <[email protected]> wrote:

> Hi Dror!
>
> Am Sonntag, 31. Juli 2016 13:17:41 UTC+2 schrieb Dror Lugasi:
>>
>> hey guys,
>> i am new to BBB and i need to use it for serial communication: reading
>> data from IMU and controlling motor drivers according to the readings.
>>
>> what is the best (easiest and fastest) way to do this?
>>
>> the beagle is running as a stand alone PC with screen and a keyboard and
>> mouse.
>> i haven't got any experience with coding serial communication, i just
>> know the basics, so i am also looking for a good source to read about it.
>> is the Cloud9 that comes with it good for this application? and in what
>> language is it best? python? js? or maybe c++?
>> a reference with explanation on how to receive and send data via the UART
>> and CAN ports is the best solution that i am after.
>>
>> the UART1,2,4 are already configured in ttyO1/2/4. but i wasn't able to
>> initialize the CAN ports.
>>
>
> Serial communication is no issue. Just load the overlay to configure the
> pins. Then configure the port, open the port, and read or write data.
>
> The point is "controlling motor drivers". What kind of control do you need
> (just on/off, or complex power control, may be in closed loop control at
> high frequency with QEP sensor).
>
> For a closed loop controller I wouldn't use interpreter languages (Phyton,
> JS). The interpreter may do a garbage collection in that moment when you
> need low latency. Prefer compiler languages, and use the one you're most
> comfortable with.
>
> BR
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/b22c1df1-fedb-47b6-aa11-13e70e545775%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/b22c1df1-fedb-47b6-aa11-13e70e545775%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CALHSORpZrs_Rc6aqgPJh_%3Dako%3DOcyPfBgC9H1fCb2FcnbgwMSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to