Peter, Thanks for your socketcan driver!!! please, would be great to have the CAN controller documentation, so everybody can help to improve your work.
There is an Android image for other processor (I.mx6) that has CANBUS (using socketcan) and other I/O support, with some small application examples: Android Jellybean 4.2.2 for EDM1-CF-IMX6 *(Now with .apk utilities for GPIO/CANbus/Serial)* http://www.technexion.com/index.php/support/download-center/edm/edm-modules/edm1-cf-imx6 Regards, Leandro El miércoles, 18 de diciembre de 2013 08:26:42 UTC-3, Peter Chen escribió: > > 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]> 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.
