Page 2 of 2

Re: receivetest not working on Android 4.2.2

Posted: Wed 29. Oct 2014, 10:44
by M.Maidhof
I'm trying to attach the makefile to this post, but it looks like neither "makefile" nor "makefile.txt" are allowed for uploading. Which file endings can I use to upload files?
Hi,

please use *.txt for the upload, we have changed the upload possibilities for those files now. You could also send those files by email to our linux email address.

regards

Michael

Re: receivetest not working on Android 4.2.2

Posted: Fri 31. Oct 2014, 10:44
by HSBO_BenjaminB
Hello,

unfortunately, there are still problems with the kernel sources. For now, I can only provide the makefile I used to cross-compile the driver (see attachment).

Thank you again for your help and have a great weekend.
Benjamin

Re: receivetest not working on Android 4.2.2

Posted: Mon 3. Nov 2014, 14:38
by HSBO_BenjaminB
Okay, things are rolling again. I redownloaded the kernel sources for the 335x evm board. Here's exactly what I did:

1.) I downloaded the sources-file from http://downloads.ti.com/sitara_android/ ... x_FDS.html

2.) I extracted the files

3.) I used the following commands (as described under http://processors.wiki.ti.com/index.php ... nux_Kernel) to configure and build the kernel;

Code: Select all

$ cd <android source path>/kernel
$ make ARCH=arm CROSS_COMPILE=arm-eabi- distclean
$ make ARCH=arm CROSS_COMPILE=arm-eabi- am335x_evm_android_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-eabi- uImage
I'll attach the defconfig to this post.

4.) I copied the resulting uImage to the sd card

5.) I configured the makefile for the pcan driver as described in the file "howto-pcan_for_Android.pdf" (See attachment of my last post) with debug switched on (You can find the complete output in the attachment "pdriver-debug.txt")

6.) The result is still the same. Transmitest works perfectly, while receivetest does not show any received messages at all.

Kind regards
Benjamin

Re: receivetest not working on Android 4.2.2

Posted: Tue 4. Nov 2014, 13:23
by S.Grosjean
Hi Benjamin,

When you're running the debug version of the pcan driver, could you please also attach to your reply the ouput of the debug logs, when you try to receive ?

That is, attach the file "dmesg.txt" once you've run "receivetest" and launched the below command:

Code: Select all

$ dmesg > dmesg.txt
Thnaks and regards,

Stéphane

Re: receivetest not working on Android 4.2.2

Posted: Wed 5. Nov 2014, 12:59
by HSBO_BenjaminB
Hi Stéphane,

here's the file you requested.

Regards,
Benjamin

Re: receivetest not working on Android 4.2.2

Posted: Wed 5. Nov 2014, 15:30
by S.Grosjean
Hi Benjamin,

Well, your dmesg.txt shows that the "pcan" driver is correctly notified from packets received from the USB-core of the Kernel, but these packets have a length set to 0! This is the reason why your application doesn't receive anything!

Could you please plug your PCAN-USB to a Windows PC running PCAN-View, for example, to check whether the PCAN-USB works as it should?

Anyway, I don't currently know why the USB-core acts like that. It's hard to imagine that it's an Android new way of configuring the Kernel!

Please tell us how the PCAN-USB works with Windows first.

Regards,

Stéphane

Re: receivetest not working on Android 4.2.2

Posted: Wed 5. Nov 2014, 17:08
by S.Grosjean
Hi again Benjamin,

Could you tell me what kind of frames are you waiting for the CAN bus?
I mean, are you sure that there are frames to be read on the CAN bus?
During the time of the dmesg.txt file you sent to me, should you receive any CAN frame? How many?

Regards,

Stéphane

Re: receivetest not working on Android 4.2.2

Posted: Thu 6. Nov 2014, 20:19
by HSBO_BenjaminB
Hi Stéphane,

I'm currently sick, so I'll probably be able to check the connection between two Windows computers on Monday.

As for the frames: I hope I did everything as expected. I loaded the PCAN driver and started receivetest. I've then sent about 4 or 5 frames (with two different IDs), closed receivetest and made the dmesg.txt file. The messages I've sent looked like this:

IDs 001h and 002h
DLC set to 8
Message is "01 02 03 04 05 06 07 08"
... using PCAN-View, of course

Regdards,
Benjamin

Re: receivetest not working on Android 4.2.2

Posted: Fri 7. Nov 2014, 11:23
by S.Grosjean
Hi Benjamin,

Ok, so after you have cared, could you please continue this thread but with the following e-mail address:

support@peak-system.com

Thanks in advance.

Stéphane