Page 1 of 1

PCAN-Ethernet Gateway under linux

Posted: Mon 23. Apr 2018, 12:53
by heliman51
Hello,

I have to use some PCAN-Ethernet Gateway DR to get can message under linux. I see there is the software Virtual PCAN-Gateway to access this kind of gateway from windows, but sorry I didn't find how to do the same under linux.

From linux in the past I was able to access PCAN usb device by compiling and using the linux driver and do an insmod.
I was also able to access some PCAN pciexpress card (the card are like a network interface vcan that I was able to use).

But I have not idea how to create and configure a virtual Lan or usb card under linux to access it.
Maybe the information is availaible somewhere, but I didn't find it.

Best Regards and Thank you

Re: PCAN-Ethernet Gateway under linux

Posted: Mon 23. Apr 2018, 15:47
by G.Lang
Hi,

the Virtual PCAN-Gateway is just available for Windows opertings systems. If you want to operate via Linux with the PCAN-Ethernet-Gateway then it´s recommended to use ports.

Please take a look inside the PCAN-Gateways-Developer-Documentation -> chapter 1.3 Communication between Gateway and PC via Sockets

Link: http://www.peak-system.com/produktcd/Pd ... on_eng.pdf

best regards
Gunther

Re: PCAN-Ethernet Gateway under linux

Posted: Mon 23. Apr 2018, 18:00
by heliman51
Hi,

Thank you for your quick reply, so I have to develop my own software to decode the udp message with the help of the sample code provided.
In my application the PCAN-ethernet will be accesed from both linux and windows in the same time, so I imagine I can let the windows doing the hanshake by using PCAN-GATEWAY and in the same time I will read under linux the CAN message using an udp socket.

Best Regards

Re: PCAN-Ethernet Gateway under linux

Posted: Tue 24. Apr 2018, 08:19
by G.Lang
Hi,

yes, this is possible.

best regards
Gunther

Re: PCAN-Ethernet Gateway under linux

Posted: Wed 22. Nov 2023, 10:50
by olivier_subatech
Hi there,
I understand that the virtual pcan-gateway is, sadly, only available under windows... Though, is there a way to get the same relevant information and then write myself the software to monitor the can trafic ?
Thank yo for your time and consideration
regards,
Olivier

Re: PCAN-Ethernet Gateway under linux

Posted: Thu 23. Nov 2023, 07:32
by S.Michaelsen
Hi,

it is possible to request many infomration using the JSON interface (see Developer Documentation chapter 3).

BR,
Stephan