Failing to get PCAN to transmit on CAN

CAN to LAN Gateway in DIN Rail Plastic Casing
Post Reply
RalphLoader
Posts: 2
Joined: Thu 10. Dec 2020, 00:46

Failing to get PCAN to transmit on CAN

Post by RalphLoader » Thu 10. Dec 2020, 00:53

Hi,

Any help welcome!

I'm attempting to get a PCAN ethernet-CAN gateway going. The CAN->UDP direction is working, but not the UDP->CAN direction. I've tried using the "host_tx" utility I found on this site. tcpdump indicates the UDP packet going to the correct destination & correctly formatted as far as I can tell from the documentation (and comparing with traffic in the other direction).

Listen-only is off.

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on neta, link-type EN10MB (Ethernet), capture size 262144 bytes
23:50:57.602108 IP 192.168.0.1.36626 > 192.168.0.4.3240: UDP, length 36
0x0000: f073 ae00 4032 3cec ef44 b61b 0800 4500
0x0010: 0040 69d8 4000 4011 4f7f c0a8 0001 c0a8
0x0020: 0004 8f12 0ca8 002c 8193 0024 0080 0000
0x0030: 0000 0000 0000 0000 0000 0000 0000 0008
0x0040: 0000 0000 0604 4000 3004 0000 0000

But there appears to be no activity on the CAN bus.

Any ideas?

Attaching my device configuration.
Attachments
poi_config.ini
Device config.
(6.31 KiB) Downloaded 13 times

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

Re: Failing to get PCAN to transmit on CAN

Post by S.Michaelsen » Thu 10. Dec 2020, 08:03

Hi,

you have to switch off handshaking for the LAN->CAN route if you want to communicate with you own application (see chapter 1.3 ff in developer documentation.


BR,
Stephan

RalphLoader
Posts: 2
Joined: Thu 10. Dec 2020, 00:46

Re: Failing to get PCAN to transmit on CAN

Post by RalphLoader » Thu 10. Dec 2020, 08:34

Thanks for the prompt answer. I'll try that as soon as I get a chance.

Post Reply