Page 1 of 3

PCAN on Android

Posted: Wed 6. Aug 2014, 11:24
by mo_oin
Hi,
i tried to follow the provided Steps on your Tutorial here:
http://www.peak-system.com/forum/viewto ... 363&p=1122
But i stuck after compling the module and load it via the command "insmod" into the kernel.
I dont know why but insmod works fine but modprobe doesn't find the file.
In the Tutorial u use mknod to create a node, but on my phone its already there.
since i can't communicate via echo with /dev/pcanusb0, i guess i do/did something wrong
I added a picture with the /proc/pcan and the other steps:
Image

thanks in advance

raimund

Re: PCAN on Android

Posted: Wed 6. Aug 2014, 11:26
by mo_oin

Re: PCAN on Android

Posted: Wed 6. Aug 2014, 12:08
by M.Maidhof
Hi,

please send us the output of ls -l /dev/ |grep pcan

regards

Michael

Re: PCAN on Android

Posted: Wed 6. Aug 2014, 12:22
by mo_oin
output: -rw------- root root 12 2014-08-06 10:43 pcanusb0

Re: PCAN on Android

Posted: Wed 6. Aug 2014, 13:03
by M.Maidhof
Hi,

normally it should look like this:

crw-rw-rw- 1 root root 180, 0 Aug 6 12:00 pcanusb0

please generate a new node again with:

mknod /dev/pcan0 c 180 0
chmod 666 /dev/pcan0

and test with pcan0

Re: PCAN on Android

Posted: Wed 6. Aug 2014, 13:34
by mo_oin
generating a new node worked. But changing rights didnt worked.

output: Unable to open /dev/pcan0: No such device

I dont really get it ... its even in the ls -la list:

crw------- root root 180, 0, 2014-08-06 13:26 pcan0

Re: PCAN on Android

Posted: Wed 6. Aug 2014, 13:53
by M.Maidhof
Hi,

so you are able to generate the device, but you are not able to change it. Looks like a permission problem. Sure you have full root access in your Android system?

can you please post the output of dmesg |grep pcan

regards

Michael

Re: PCAN on Android

Posted: Wed 6. Aug 2014, 14:27
by mo_oin
eeerrmmm stupid question: is there a another root than root? my handy has a normal user "u0_a65" and with the command su it gets to root. seems normal to me i guess.
also it says it doesnt find the file and not denied access.

but de dmesg output was a plain 1.

Re: PCAN on Android

Posted: Wed 6. Aug 2014, 14:30
by M.Maidhof
Hi,

we don“t know your Android system, and how you have rooted it.....

Re: PCAN on Android

Posted: Wed 6. Aug 2014, 14:43
by mo_oin
i use a lg optimus 4x hd aka p880. its a while since i rooted my phone but if i remember right i copied a su file in system/bin/. up to this day it worked perfect.
atm i use the iodak v10 kernel to get usb-otg support for my phone.

i hope this information helps