receivetest not working on Android 4.2.2
Posted: Thu 23. Oct 2014, 12:16
Hello everybody,
my name is Benjamin and I'm currently working on my Bachelor thesis using your Peak PCAN-USB Interface. The bus is connected to my Windows 7 (64Bit) PC and a Texas Instruments AM335x Evaluation Module running Android version 4.2.2 (Kernel version 3.2.0). I have downloaded the SDK for the board from the TI-website and used the document "howto-pcan_for_Android.pdf", which can be found here in the forum, to cross-compile your driver and test programs.
I am using HTerm as the terminal on the Evaluation Module and PCAN-View on my Windows PC to send and receive messages. Both are connecting with 500kBit. While using "transmitest", everything works like a charm. I can also use echo to send messages without any problem at all. Every message can be seen in PCAN-View. My huge problem is the other way around. When sending messages using PCAN-View, "receivetest" does not show any data at all. I've already searched for a solution in the forum but was unable to find one, so I'd like to provide some data which is almost always asked for when problems occur. I hope that helps.
Product: 2x PEAK Pcan USB
Connected to: Windows 7 (64Bit) PC, Texas Instruments AM335X Evaluation Module running Android 4.2.2
Tools Used: HTerm, PCAN-View, transmitest, receivetest
PCAN driver version: 7.12
Loading the driver:
cat /proc/pcan
./receivetest -f=/dev/pcanusb0 (BEFORE sending CAN data from the PC)
./receivetest -f=/dev/pcanusb0 (AFTER sending CAN data from the PC)
ls -l /dev/ |grep pcan
Since we use Linux rarely over here and because this is my first contact with the CAN-bus, I don't know what to look for anymore. Any help would be greatly appreciated.
Kind regards,
Benjamin
my name is Benjamin and I'm currently working on my Bachelor thesis using your Peak PCAN-USB Interface. The bus is connected to my Windows 7 (64Bit) PC and a Texas Instruments AM335x Evaluation Module running Android version 4.2.2 (Kernel version 3.2.0). I have downloaded the SDK for the board from the TI-website and used the document "howto-pcan_for_Android.pdf", which can be found here in the forum, to cross-compile your driver and test programs.
I am using HTerm as the terminal on the Evaluation Module and PCAN-View on my Windows PC to send and receive messages. Both are connecting with 500kBit. While using "transmitest", everything works like a charm. I can also use echo to send messages without any problem at all. Every message can be seen in PCAN-View. My huge problem is the other way around. When sending messages using PCAN-View, "receivetest" does not show any data at all. I've already searched for a solution in the forum but was unable to find one, so I'd like to provide some data which is almost always asked for when problems occur. I hope that helps.
Product: 2x PEAK Pcan USB
Connected to: Windows 7 (64Bit) PC, Texas Instruments AM335X Evaluation Module running Android 4.2.2
Tools Used: HTerm, PCAN-View, transmitest, receivetest
PCAN driver version: 7.12
Loading the driver:
Code: Select all
insmod /data/media/0/Download/pcan.ko
pcan: Release_20140723_n (le)
pcan: driver config [mod] [usb]
pcan: new usb adapter with 1 CAN controller(s) detected
pcan: usb hardware revision = 28
pcan: usb device minor 32 found
usbcore: registered new interface driver pcan
pcan: major 247.
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20140723_n (7.12.0) Oct 13 2014 13:06:16 --------------
*------------------------------- [mod] [usb] --------------------------------
*--------------------- 1 interfaces @ major 247 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- ffffffff 255 0x001c 00000000 00000000 00000000 00000000 0x0000
Code: Select all
receivetest: device node="/dev/pcanusb0"
Only standard frames are accepted, init with 500 kbit/sec.
receivetest: driver version = Release_20140723_n
^C
receivetest: type = usb
Serial Number = 0xffffffff
Device Number = 255
count of reads = 0
count of writes = 0
count of errors = 0
count of irqs = 0
last CAN status = 0x0020
last error = 0
open paths = 1
driver version = Release_20140723_n
receivetest: finished (0).
Code: Select all
receivetest: device node="/dev/pcanusb0"
Only standard frames are accepted, init with 500 kbit/sec.
receivetest: driver version = Release_20140723_n
^C
receivetest: type = usb
Serial Number = 0xffffffff
Device Number = 255
count of reads = 0
count of writes = 0
count of errors = 0
count of irqs = 0
last CAN status = 0x0020
last error = 0
open paths = 1
driver version = Release_20140723_n
receivetest: finished (0).
Code: Select all
crwxrwxrwx root root 180, 32 2000-01-01 00:03 pcanusb0
Kind regards,
Benjamin