PCAN-Ethernet Gateway under linux

CAN to LAN gateway in DIN rail plastic casing
Post Reply
heliman51
Posts: 2
Joined: Mon 23. Apr 2018, 12:43

PCAN-Ethernet Gateway under linux

Post by heliman51 » Mon 23. Apr 2018, 12:53

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

G.Lang
Support
Support
Posts: 169
Joined: Wed 22. Sep 2010, 14:58

Re: PCAN-Ethernet Gateway under linux

Post by G.Lang » Mon 23. Apr 2018, 15:47

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

heliman51
Posts: 2
Joined: Mon 23. Apr 2018, 12:43

Re: PCAN-Ethernet Gateway under linux

Post by heliman51 » Mon 23. Apr 2018, 18:00

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

G.Lang
Support
Support
Posts: 169
Joined: Wed 22. Sep 2010, 14:58

Re: PCAN-Ethernet Gateway under linux

Post by G.Lang » Tue 24. Apr 2018, 08:19

Hi,

yes, this is possible.

best regards
Gunther

olivier_subatech
Posts: 4
Joined: Tue 14. Nov 2023, 11:59

Re: PCAN-Ethernet Gateway under linux

Post by olivier_subatech » Wed 22. Nov 2023, 10:50

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

S.Michaelsen
Hardware Development
Hardware Development
Posts: 87
Joined: Fri 10. Sep 2010, 13:11

Re: PCAN-Ethernet Gateway under linux

Post by S.Michaelsen » Thu 23. Nov 2023, 07:32

Hi,

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

BR,
Stephan

Post Reply