receivetest not working on Android 4.2.2

This forum covers PCAN-Linux and Linux development issues concerning our products
M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: receivetest not working on Android 4.2.2

Post by M.Maidhof » Wed 29. Oct 2014, 10:44

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

HSBO_BenjaminB
Posts: 10
Joined: Fri 17. Oct 2014, 13:29

Re: receivetest not working on Android 4.2.2

Post by HSBO_BenjaminB » Fri 31. Oct 2014, 10:44

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
Attachments
Makefile driver 7_13.txt
My makefile for driver version 7.13
(17.72 KiB) Downloaded 954 times

HSBO_BenjaminB
Posts: 10
Joined: Fri 17. Oct 2014, 13:29

Re: receivetest not working on Android 4.2.2

Post by HSBO_BenjaminB » Mon 3. Nov 2014, 14:38

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
Attachments
pdriver-debug.txt
Output when compiling the pcan driver with debug switched on
(25.57 KiB) Downloaded 921 times
am335x_evm_android_defconfig.txt
defconfig-file by TI
(81.61 KiB) Downloaded 975 times

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: receivetest not working on Android 4.2.2

Post by S.Grosjean » Tue 4. Nov 2014, 13:23

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
— Stéphane

HSBO_BenjaminB
Posts: 10
Joined: Fri 17. Oct 2014, 13:29

Re: receivetest not working on Android 4.2.2

Post by HSBO_BenjaminB » Wed 5. Nov 2014, 12:59

Hi Stéphane,

here's the file you requested.

Regards,
Benjamin
Attachments
dmesg.txt
Logfile, 7.13 Debug Mode
(28.45 KiB) Downloaded 951 times

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: receivetest not working on Android 4.2.2

Post by S.Grosjean » Wed 5. Nov 2014, 15:30

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
— Stéphane

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: receivetest not working on Android 4.2.2

Post by S.Grosjean » Wed 5. Nov 2014, 17:08

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
— Stéphane

HSBO_BenjaminB
Posts: 10
Joined: Fri 17. Oct 2014, 13:29

Re: receivetest not working on Android 4.2.2

Post by HSBO_BenjaminB » Thu 6. Nov 2014, 20:19

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

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: receivetest not working on Android 4.2.2

Post by S.Grosjean » Fri 7. Nov 2014, 11:23

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
— Stéphane

Post Reply