Hey.
Forgot to tell that i use Pcan-USB IPEH-002021.
Well.
I have tried doing following:
sudo apt uninstall gcc -y
sudo apt autoremove -y
sudo apt install gcc-12 -y
Restart.
Now gcc is missing. Fail.
sudo apt install gcc -y
Restart and compile. Result is the same.
I'm about to do a reinstall ...
Search found 18 matches
- Fri 12. Jan 2024, 14:48
- Forum: Linux
- Topic: Cant compile the Peak Linux Drivers
- Replies: 3
- Views: 7500
- Fri 12. Jan 2024, 14:31
- Forum: Linux
- Topic: Cant compile the Peak Linux Drivers
- Replies: 3
- Views: 7500
Cant compile the Peak Linux Drivers
Hey.
I have been using Peak Linux Drivers and PcanBasic for about 3 years now.
I'm using partly Raspberry Pi with Raspbian, And mostly Ubuntu.
In this case I have compiling problems under Ubuntu 22.12.3.
Kernel linux-headers-6.5.0-14-generic.
Peak Drivers 8.16.0.
I have been working on my computer ...
I have been using Peak Linux Drivers and PcanBasic for about 3 years now.
I'm using partly Raspberry Pi with Raspbian, And mostly Ubuntu.
In this case I have compiling problems under Ubuntu 22.12.3.
Kernel linux-headers-6.5.0-14-generic.
Peak Drivers 8.16.0.
I have been working on my computer ...
- Tue 5. Jan 2021, 19:32
- Forum: Linux
- Topic: ReadWriteEvent example
- Replies: 6
- Views: 6602
Re: ReadWriteEvent example
Hi Heidemann.
More tests are done.
I got the interrupt working. But I have not done any long tests and timing checking yet.
But I do still have an issue.
I'm not familiar with using sigaction. I need to figure out how to send in a pointer (* user_data) so I can avoid using global variables.
Do you ...
More tests are done.
I got the interrupt working. But I have not done any long tests and timing checking yet.
But I do still have an issue.
I'm not familiar with using sigaction. I need to figure out how to send in a pointer (* user_data) so I can avoid using global variables.
Do you ...
- Sun 3. Jan 2021, 12:56
- Forum: Linux
- Topic: ReadWriteEvent example
- Replies: 6
- Views: 6602
Re: ReadWriteEvent example
Hi again.
Just want to add in that I have tested a lot and can't et an reliabile 100mS(+/-5mS) message.
The solution in the code works well for a few hours. Then I start to gett Status 0x80 TxQueueFull ??
The receiving computer is holding the queues empty, and also measure the time between every ...
Just want to add in that I have tested a lot and can't et an reliabile 100mS(+/-5mS) message.
The solution in the code works well for a few hours. Then I start to gett Status 0x80 TxQueueFull ??
The receiving computer is holding the queues empty, and also measure the time between every ...
- Thu 31. Dec 2020, 15:47
- Forum: Linux
- Topic: ReadWriteEvent example
- Replies: 6
- Views: 6602
Re: ReadWriteEvent example
Thank you for your advice.
I have now made an example of EventRead & Write to CAN.
The code is hopefully easy to follow.
I did not use a interrupt. I think it is good enough just to loop with a 100mS delay. I think the tolerance will be +/- 1% of the delay.
I also used fork instead of threads and a ...
I have now made an example of EventRead & Write to CAN.
The code is hopefully easy to follow.
I did not use a interrupt. I think it is good enough just to loop with a 100mS delay. I think the tolerance will be +/- 1% of the delay.
I also used fork instead of threads and a ...
- Wed 30. Dec 2020, 21:15
- Forum: Linux
- Topic: ReadWriteEvent example
- Replies: 6
- Views: 6602
ReadWriteEvent example
Hi.
There are a few code examples for C in the pcanbasic api package.
ReadEvent, WriteEvent. But I'm missing the ReadWriteEvent example.
I patched the examples together. The added code is not tested. But I have tested a similar code earlier with none working result.
The question is,, Is this the ...
There are a few code examples for C in the pcanbasic api package.
ReadEvent, WriteEvent. But I'm missing the ReadWriteEvent example.
I patched the examples together. The added code is not tested. But I have tested a similar code earlier with none working result.
The question is,, Is this the ...
- Wed 28. Oct 2020, 11:40
- Forum: PCAN-Basic
- Topic: Multi-CAN interface
- Replies: 4
- Views: 4464
Re: Multi-CAN interface
Hi.
Thanks for a quick answer.
I based my code on your program example pcan event read.
Anyways I tested threads. One thread-process for each can-interface.
Every thread would occupy one core to almost 100% cpu.
I don't think select and treads works together well.
Anyways, I have now changed the ...
Thanks for a quick answer.
I based my code on your program example pcan event read.
Anyways I tested threads. One thread-process for each can-interface.
Every thread would occupy one core to almost 100% cpu.
I don't think select and treads works together well.
Anyways, I have now changed the ...
- Wed 28. Oct 2020, 06:44
- Forum: PCAN-Basic
- Topic: Multi-CAN interface
- Replies: 4
- Views: 4464
Re: Multi-CAN interface
Linux can driver 8.10.2 64-Bit.
PEAK Basic API 4.4.0 .
Ubuntu 20.04.1 LTS 64-Bit
The computer is an Intel i5. with 6 cores.
8MB of memory. 480GB MM2 drive.
Two PCAN-USB x 6 IPEH-004064.
Is there any input cache in the PCAN-USBx6 Device?
Does the drivers have any cache? or queue?
/Terje.
PEAK Basic API 4.4.0 .
Ubuntu 20.04.1 LTS 64-Bit
The computer is an Intel i5. with 6 cores.
8MB of memory. 480GB MM2 drive.
Two PCAN-USB x 6 IPEH-004064.
Is there any input cache in the PCAN-USBx6 Device?
Does the drivers have any cache? or queue?
/Terje.
- Mon 26. Oct 2020, 16:15
- Forum: PCAN-Basic
- Topic: Multi-CAN interface
- Replies: 4
- Views: 4464
Multi-CAN interface
Hi.
I'm wondering if you have any good advice to me.
I'm writing a program for a Linux-computer which should read data from 12 USB-CAN channels (2x PCAN-USB FDx6).
I'm ready with my code and it works perfect.
BUT,, I have coded using threads in C .
That has resulted in 100% loaded CPU-cores (all ...
I'm wondering if you have any good advice to me.
I'm writing a program for a Linux-computer which should read data from 12 USB-CAN channels (2x PCAN-USB FDx6).
I'm ready with my code and it works perfect.
BUT,, I have coded using threads in C .
That has resulted in 100% loaded CPU-cores (all ...
- Mon 26. Oct 2020, 15:58
- Forum: Linux
- Topic: Pcan drivers gone
- Replies: 5
- Views: 5318
Re: Pcan drivers gone
It solved the issue.
Thanks.
Thanks.