Search found 7 matches

by mcabon
Thu 19. Sep 2019, 14:03
Forum: PCAN-Basic
Topic: convert PCANBasic.c_ubyte_Array_8 in string
Replies: 2
Views: 7341

Re: convert PCANBasic.c_ubyte_Array_8 in string

thanks so mush for your help and sorry for the wrong place to published my question.

Have a good day :)
by mcabon
Thu 19. Sep 2019, 13:31
Forum: PCAN-Basic
Topic: convert PCANBasic.c_ubyte_Array_8 in string
Replies: 2
Views: 7341

convert PCANBasic.c_ubyte_Array_8 in string

Hi Everyone,

I tried to converte my ('DATA', <class 'PCANBasic.c_ubyte_Array_8'>) in string for reading.

in fact i have a PCAN-USB connected on my CAN.
I have a programs in python for reading messages.
I tried :
bytes(DATA).decode('ascii') -> but this don't works because TypeError: cannot ...
by mcabon
Tue 10. Sep 2019, 10:14
Forum: Linux
Topic: Drivers compilation failure in RedHat7
Replies: 7
Views: 12793

Re: Drivers compilation failure in RedHat7

hooo, okay :)

Thanks for your explication ! :)
by mcabon
Tue 10. Sep 2019, 09:00
Forum: Linux
Topic: Drivers compilation failure in RedHat7
Replies: 7
Views: 12793

Re: Drivers compilation failure in RedHat7

hi everyone,

i tried this :
- modinfo pcan.ko | grep -e "^depends:"
[root@localhost driver]# modinfo pcan.ko | grep -e "^depends:"
depends: i2c-core,parport,i2c-algo-bit
[root@localhost driver]# sudo modprobe i2c-core parport i2c-algo-bit
[root@localhost driver]# sudo insmod pcan.ko
[root ...
by mcabon
Mon 9. Sep 2019, 17:36
Forum: Linux
Topic: Drivers compilation failure in RedHat7
Replies: 7
Views: 12793

Re: Drivers compilation failure in RedHat7

i build with
make PCC=NO
[root@localhost driver]# make PCC=NO
***
*** Making pcan driver in chardev mode
***
*** Host machine kernel version=3.10.0-862.el7.x86_64
*** Driver kernel version=3.10.0-862.el7.x86_64 (3.10.0)
*** Path to kernel sources=/lib/modules/3.10.0-862.el7.x86_64/build
*** use ...
by mcabon
Mon 9. Sep 2019, 17:10
Forum: Linux
Topic: Drivers compilation failure in RedHat7
Replies: 7
Views: 12793

Re: Drivers compilation failure in RedHat7

hi,
thanks you for your answer ! :)
so I expanded the size of my VM.
but I still have a mistake. I make the make clean/ make install ok but the pcan modprob makes me a mistake...

-make [root@localhost driver]# make
***
*** Making pcan driver in chardev mode
***
*** Host machine kernel version=3 ...
by mcabon
Mon 9. Sep 2019, 15:49
Forum: Linux
Topic: Drivers compilation failure in RedHat7
Replies: 7
Views: 12793

Drivers compilation failure in RedHat7

Hey everyone.

In first time, thanks for your help.
I have a PCAN-USB that I would like to communicate with a VM in Red Hat7.
I downloaded the drivers: peak-linux-driver-8.9.0.

I did this:
- make clean:
[root@localhost driver]# make clean
rm -f src/*o src/*~ src/.*cmd *o *ko *~ .*cmd pcan.mod.c ...