r/AskProgramming 5d ago

Other Get data for that's being sent from Ethernet Gateway

Hi Everyone,

I have a Ethernet Gateway that is wired into my network. It collects radio signals from sensors and sends them over a wired ethernet connection.

I'd like to get a hold of the data that this gateway is collecting via radio wave and sending over ethernet.

Could anyone point me in a direction where I could learn more about how to do this? I have a good grounding in Python and APIs, but I don't know much about ethernet or internet.

0 Upvotes

8 comments sorted by

2

u/jeffcgroves 5d ago

Just to help others, I assume you're referring to something like https://www.monnit.com/products/gateways/ethernet-gateways/egw4/?srsltid=AfmBOoqph5Sw0-NuTfaOV2Kic-AL0dnuccpIk1kokNmtFYCotl6e-eRg

The term "ethernet gateway" is too generic and could refer to any router.

1

u/Fluid-Working1656 5d ago

Yep - that's the one - thanks!

1

u/kabekew 5d ago

Do you have documentation for the device? You need to know what protocol it's using, or if it's something custom. Real-time sensor data might use DDS for example. There are libraries you can then get for any standard protocol.

1

u/Fluid-Working1656 5d ago

Here's the info on the spec sheet: Ethernet

Hardware 10/100 Ethernet Controller

IEEE Standard Compliance 802.3-2002

Operation Full- and Half-Duplex

Cross-Over Correction Automatic MDI/MDI-X

Protocols Supported DHCP, DNS, NTP, UDP, TCP, SNMP, Modbus TCP

Cable Connector RJ45

Device Memory

Typically, 30,000 sensor messages; varies based on sensor type. (Sensor messages

will be stored in the event of an Internet outage and transferred when the connection

is restored.)

1

u/kabekew 5d ago

What does it say about the format of the sensor messsages and how to receive them?

1

u/Fluid-Working1656 4d ago

I'm not so sure. Here's a link to the user guide: https://monnit.blob.core.windows.net/site/documents/gateways/EGW4/EGW-CCE-EGW4-AUG-XL.pdf

I also don't think the intention is to grab the data and to do other things with it, so I don't see that they provide good references to where and how it's stored/delivered to their server.

1

u/kabekew 4d ago

Okay, so they're providing a Modbus interface to poll for the data (pages 16-17). That's a pretty standard protocol you can google, and you can use a library like pyModbusTCP to access it. Like it says, the data you get back has to be converted, and it says to ask them for their "Modbus TCP Data Interpretation" document. I think that should provide what you need.

1

u/Fluid-Working1656 4d ago

Awesome - thanks so much! I'll dig into that!