Page 1 of 1

Failing to get PCAN to transmit on CAN

Posted: Thu 10. Dec 2020, 00:53
by RalphLoader
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.

Re: Failing to get PCAN to transmit on CAN

Posted: Thu 10. Dec 2020, 08:03
by S.Michaelsen
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

Re: Failing to get PCAN to transmit on CAN

Posted: Thu 10. Dec 2020, 08:34
by RalphLoader
Thanks for the prompt answer. I'll try that as soon as I get a chance.