Data transmission NOT to PCAN-Ethernet Gateway DR

CAN to LAN gateway in DIN rail plastic casing
Post Reply
User avatar
ThuyNg
Posts: 3
Joined: Wed 6. Dec 2023, 20:42

Data transmission NOT to PCAN-Ethernet Gateway DR

Post by ThuyNg » Thu 7. Dec 2023, 00:04

Hi,

I have used a simple C# library that allows for easy communication with a PCAN-Ethernet Gateway DR over IP networks from github (hxxx://github.com/Mmagnuson/CAN_Ethernet_Gateway) and the data does not come to the device. I have attached the configuration from PCAN-Ethernet Gateway DR and Virtual PCAN Gateway. Am I missing anything here? Please help!
Thank you very much.

(link changed from ADMIN)
Attachments
RoutesConfiguration.vpoi.txt
(2.14 KiB) Downloaded 2510 times
poi_config.ini
(3.73 KiB) Downloaded 2455 times

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Data transmission NOT to PCAN-Ethernet Gateway DR

Post by PEAK-Support » Thu 7. Dec 2023, 13:01

Sorry - but this is no Forum question. No one could solve your implementation problem.
1. we do not now the GitHub code - so how should we support it ?!? Contact the maintainer (we also will remove the link - please read the forum RULES)
2. We also do not know how your network (CAN and ETH) is setup.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

User avatar
ThuyNg
Posts: 3
Joined: Wed 6. Dec 2023, 20:42

Re: Data transmission NOT to PCAN-Ethernet Gateway DR

Post by ThuyNg » Thu 7. Dec 2023, 22:04

Hi,
My apology if I may have not explained clearly. I do not know looking for the code questions but I'm asking to see if my setting is correct. The IP address of PCAN-Ethernet Gateway DR is 1962.168.1.10:35000 and the IP address of the PC where the application resides is 192.168.1.100 :25000. The C# application is able to send the data to 192.168.1.10. How do I find out if the data is received by PCAN-Ethernet Gateway DR.
Thank you very much.

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

Re: Data transmission NOT to PCAN-Ethernet Gateway DR

Post by G.Lang » Fri 8. Dec 2023, 10:31

Hi,

the PCAN-Ethernet Gateways config looks valid. But note the gateways receive port is 25000 and the PCs (IP = 192.168.1.100) receive port is 35000. Please check this inside your application.

The Virtual Gateway config is senseless because you have disabled the modules handshake mechanism and therefore the Virtual gateway service is not used (and also not necessary if you work with socket based applications)

User avatar
ThuyNg
Posts: 3
Joined: Wed 6. Dec 2023, 20:42

Re: Data transmission NOT to PCAN-Ethernet Gateway DR

Post by ThuyNg » Fri 8. Dec 2023, 20:41

Hi,
Thank you for pointing out the port numbers. I have attached the snapshot where the highlight indicated CAN packet is 1. Does it mean that the application has successfully sent to the PCAN-Ethernet Gateway.
Attachments
PEAK_PCAN-EthernetGateDR.PNG
PEAK_PCAN-EthernetGateDR.PNG (29.16 KiB) Viewed 10230 times

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Data transmission NOT to PCAN-Ethernet Gateway DR

Post by PEAK-Support » Sun 10. Dec 2023, 12:15

Info what the values mean are part of the online help and the manual.
But it is a clear information - 1 Package was received as IP/UDP, including 1 CAN Data Package.
When you try to develop your own application (OK - you use a already developed open source code ), using IP Sockets,
why not use WireShark and other common development tools?
You also need to understand what the code is doing - simply copy / paste and hope all runs, in the wrong way.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply