Sorry for my poor english.I mean I want to write an APP to send/receive CAN 
message.Since I use socketcan, so I wonder how to write the APP in a proper 
way.Do I need to write the HAL, JNI and service?Or I can just use the 
network programming way.

And for the source code, I put it on my github. Anyone interested can visit 
via:https://github.com/ryangithub/sunxi-can-driver

在 2013年12月18日星期三UTC+8下午5时27分59秒,Carlo Caione写道:
>
> On Wed, Dec 18, 2013 at 10:16 AM, Peter Chen 
> <[email protected]<javascript:>> 
> wrote: 
> > hey, guys. 
> > I'v finished sunxi CAN drive in the socketcan mode.And I write a C 
> program 
> > proved it works.I can send and receive packet correctlly. 
>
> Glad you were able to get the documentation for CAN 
>
> > Since I'm not an android app developer, I wonder how can I write a demo 
> app 
> > by using the socketcan method.Can anyone give me some suggestions.Thaks. 
>
> I'm not sure I understood what you mean (if you tested the driver 
> probably you have already written a demo :) 
> With socketcan you see the CAN bus as a network interface (canX), so 
> you can use the socket interface. The fact that you are working with 
> the CAN bus is totally transparent. 
> (https://www.kernel.org/doc/Documentation/networking/can.txt) 
>
> BTW, if willing, please post the source code for review :) 
>
> -- 
> Carlo Caione 
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to