Ethernet
Ethernet Network Module
- Overview
- Commands
- Samples
- On-Module Code
An Ethernet network module with a complete TCP/IP stack — TCP and UDP at 10/100 BASE-T over a standard RJ45 LAN connector. The module handles the network stack internally, so your host code opens sockets, reads, and writes with simple text commands over any supported interface.
Common uses: local-network IoT projects, building automation on a wired LAN, controlled-intranet dashboards, classroom networking labs, and bridging DUELink modules into existing wired infrastructure.
This module does not support secure (encrypted) connections. It works well on trusted local networks and controlled intranets but will not reach modern HTTPS APIs or cloud services like AWS, GCP, or Azure that require TLS.
Key features • Complete TCP/IP stack | Resources 📄 Schematics PID: 0x030003 |
Modules ship without cables to reduce waste. Some specialty boards include a USB cable; for the rest, see Cables to add cables to your order.
Commands this module accepts. See Samples for runnable code in popular host languages.
| Function | Description |
|---|---|
Init(b4,b5,b6) | Network configuration b4:IP, b5:GW, b6:Subnet. |
Connect(s,l,b6,p) | Connect to socket s, l:local port, b6:ip address, p:port. |
Close(s) | Close socket s. |
Listen(s,p) | Listen socket s, p:port. |
Accept(s) | Accept socket s. |
Avail(s) | Returns available size on socket s. |
Send(s,b6) | Write to socket s, b6: data. |
Recv(s,b6) | Read data from socket s to b6. |
DVer() | Returns driver version. |
Peek under the hood
The script below is this module's driver — it teaches the hardware how to respond to the commands listed above. It ships pre-loaded from the factory; most users never need to open it.
loading...
Example code that calls this module's commands from popular host languages.
New here? See Get Started to connect a module and send your first command.
- Python
- MicroPython
- JavaScript
- .NET
- Arduino
loading...
loading...
loading...
loading...
loading...
Code that runs directly on this module's MCU. See how On-Module Code allows modules to run standalone.
- Script
- Arduino IDE
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the module's driver to be loaded first, see the Commands Tab.
loading...
See Arduino IDE page for more info.
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink Ethernet | GDL-CMETHERNET-C | $24.95 |