Search found 5 matches

by aml5600
Thu 19. May 2016, 12:26
Forum: Linux
Topic: Fixed /dev identifier to physical USB port
Replies: 5
Views: 9449

Re: Fixed /dev identifier to physical USB port

I went at the problem from another direction and it is working well now...

Rather than query each device for its number, I make a system call to read the /proc/pcan file and parse it from there. Specifically, 'cat /proc/pcan | grep 0x001c' since it is the same for all USB devices.

From here I can ...
by aml5600
Wed 18. May 2016, 23:36
Forum: Linux
Topic: Fixed /dev identifier to physical USB port
Replies: 5
Views: 9449

Re: Fixed /dev identifier to physical USB port

Hi,

Using a Windows machine I gave my two devices unique device IDs.

As far as the devices go, I was working on a workaround before your response. To check which physical adapter is at each channel I:
- Loop through each channel and check its channel status.
- If it is available I initialize it ...
by aml5600
Wed 18. May 2016, 09:43
Forum: Linux
Topic: Fixed /dev identifier to physical USB port
Replies: 5
Views: 9449

Re: Fixed /dev identifier to physical USB port

Hi,

I had found that guide but it is for Windows. I am working in a Linux environment.
by aml5600
Tue 17. May 2016, 15:17
Forum: Linux
Topic: Fixed /dev identifier to physical USB port
Replies: 5
Views: 9449

Fixed /dev identifier to physical USB port

Hi all,

At the moment I have an application utilizing two PCAN-USB adapters. Is it possible to create an environment where rather than the the first device to be plugged in is identified by channel 0x51, the second by 0x52, etc., the channels are linked to the physical ports?

So if the device is ...
by aml5600
Mon 29. Feb 2016, 19:22
Forum: Linux
Topic: Loopback on PCAN-USB for debugging
Replies: 1
Views: 5074

Loopback on PCAN-USB for debugging

Hi,

I am looking to put my PCAN-USB device into loopback mode for debugging purposes. In a post written in 2014 ( http://www.peak-system.com/forum/viewtopic.php?f=59&t=1144&p=3082&hilit=loopback#p3082 ) it is stated that this functionality is not available on USB devices. Is this still the case?

I ...