Questions tagged [ethernet]

Ethernet can be used for cabled communication between an Arduino and a computer, server, or website. For question concerning the Arduino Ethernet board, use the tag "arduino-ethernet" instead.

Filter by
Sorted by
Tagged with
2 votes
1 answer
20 views

The gateway is not working in Arduino EthernetENC

I am using ENC28J60 and EthernetENC library to connect an Arduino UNO with ATmega328 to the network. Everything works fine within the local network, but outside of it, I cannot ping the device. What ...
1 vote
1 answer
73 views

UDPSendReceiveString example using Arduino Due with ENC28J60 Ethernet Module

I was trying to learn how to use UDP protocol to use in my automation project to send commands to an Arduino Due on ethernet with an ENC28J60 breakout board which I have connected to the Due from SPI ...
1 vote
2 answers
115 views

Arduino does not connect to MQTT local broker

I have an Arduino Mega with Ethernet connected to a router by cable. Also I have a PC connected to the router (by Wifi) where also the local MQTT broker is installed (mosquitto). Althought the Arduino ...
  • 141
0 votes
1 answer
46 views

How to control PWM and digital pins at the same time over ethernet in arduino

I am using Controllino Maxi. It has an Arduino Uno inside it. I am trying to control the PWM pin D0 and digital pin R0 via python code. Below is the code I have upload on arduino: Arduino Code: #...
  • 151
0 votes
0 answers
166 views

How to do MQTT with TLS to IoT Hub over Ethernet (Not WiFi)

Context I'd like to do D2C publishing to Microsoft Azure IoT Hub using MQTT thru Ethernet (and not thru WiFi). The firmware runs on my ESP32-based custom PCB to which an Ethernet module (aka Wiz5500) ...
-2 votes
1 answer
29 views

Is it possible to connect 2 PLC which have Ethernet interfaces using Ethernet shield, arduino Nano and SX1278?

I need to connect 2 PLC which have Ethernet interfaces over 1 km and i was thinking of connecting via SPI an ethernet shield and an SX1278 module to a arduino nano (UNO) board. Do i need logical ...
2 votes
1 answer
144 views

Arduino shield stacking issue

I'm having issues stacking shields on my Arduino Mega 2560. I would like to add to the mega a ethernet shield (https://store.arduino.cc/products/arduino-ethernet-shield-2) and on top of that the ...
  • 21
1 vote
0 answers
34 views

How to change the default SPI pin used in SPI and Ethernet library [duplicate]

Hello i have a custom board of the RP2040 and would like to use the ethernet library. But the ethernet example webClient uses the default SPI pins of whatever board it is being used, but what if im ...
  • 211
1 vote
0 answers
86 views

Arduino mega ethernet Udp client randomly failing

I have a keyestudio board identical to the arduino mega 2560. I use the matching keyestudio ks0156 W5100 ethernet shield. My code uses the following library for ethernet paulstoffregen/Ethernet@0.0.0-...
1 vote
0 answers
128 views

UDP packet loss and very high ping time

Scenario I'm writing a code for Nucleo-144 F429ZI. It receives UDP packets (actually OSC bundles) and send back an answer when the command is completed. Issues It work fine most of the time. But there ...
  • 293
1 vote
0 answers
503 views

Bluetooth module with lowest latency to communicate with PC

I am making a haptic feedback glove using Arduino and HC-05 bluetooth module to communicate with PC. There are rotary encoders on the finger which send value to PC through Arduino mega. The PC returns ...
  • 11
1 vote
1 answer
345 views

Simple GET request is failing silently

I'm trying to make a simple GET request to a server (which has a static IP but does not have a name). I'm using EtherCard library and a cheap ENC28J60 Ethernet Module. The basic configurations are OK (...
1 vote
0 answers
258 views

ARDUİNO MODBUS TCP CONNECTİON

I am trying to communicate with PC by using modbus TCP communicate. When I use this code I can't communicate. Dou you know guys what is the problem? My ethernet Module is working I know that because I ...
2 votes
0 answers
179 views

Writing file from SD card to ethernet client stops sending after about 2980 characters, STM32f7 board

I am attempting to write a file found on an SD card to a connected Ethernet client. The file opens fine, and we have no problems writing to the client. For testing purposes I also write the lines read ...
1 vote
0 answers
146 views

Arduino web server-how to get values form URL

I’ve already searched through the internet but cannot find satisfactory answer. Is there an easy way to get value of variable passed through an URL? What I mean is I want to start a web server on my ...
1 vote
1 answer
466 views

communication between two arduinos using ENC28J60?

How can i connect and send data between two arduinos using a ENC28J60 ethernet adapters on both of them. Is there any guides or example codes for me to take a look from or any library which i can use ...
1 vote
1 answer
99 views

Ethernet Shield not connecting

I've mounted an Ethernet Shield on top of an Arduino UNO. The Arduino is connected via usb to my pc and to the network via ethernet through a switch. I'm running a simplified verison of the WebServer ...
  • 11
0 votes
1 answer
1k views

How to make an arduino webserver over USB? without ethernet shield nor wifi chip

I would like to begin to understand ethernet handshakes by integrating an Ethernet over USB protocol within an arduino mega or nano. Is there something about the ethernet protocol that requires more ...
1 vote
1 answer
61 views

SD seems too slow for SMTP

I have asked this question on the arduino forum as well. I have used SMTP before using client.print (and client.println) but I am now trying to move as much text as I can from RAM to SD (and so I need ...
  • 11
1 vote
0 answers
40 views

3 pin ethernet module?

So basically I'm working on a project that uses an Atmega328 like on the Arduino Uno. I need to receive both DMX (with max485) and E131 (Not both at the same time, I'll decide which with a boolean in ...
2 votes
1 answer
53 views

Leading Zeroes on Arduino Ethernet MAC Address

How can I pass the MAC address to Ethernet shield with leading zeroes? I change the default MAC address from DEADBEEFFEED to something like DEADBEEFFE01. So I only change the last number from 0xED to ...
  • 115
2 votes
0 answers
324 views

Teensy 4.1 Ethernet Throughput

Using a socket server on a Teensy 4.1, I am sending and receiving data in a loop from a Windows socket client (WinForms C#.NET). I am sending or receiving 530 bytes of data. In each direction, it ...
  • 51
-1 votes
1 answer
222 views

Modbus TCP together with MQTT over same ethernet

I'm currently in a planning phase for a project. I want to read some sensor data over Modbus TCP, do some simple calculations on the Arduino and publish the results over MQTT. Which means I have 2 RJ-...
  • 99
3 votes
0 answers
1k views

Modbus TCP/IP using Arduino uno and ENC28J60 module

I have this project where I need a modbus tcp server that will host a series of sensor data for other modbus client devices to read. I use this Library by Andresoarmento This is the code i am using ...
1 vote
0 answers
45 views

Ethernet Shield doesn't work at all

I connected corresponding pins of Arduino Nano and the Ethernet Shield, connected my computer to a router (the light indicated the connection) and Ethernet Shield to the same router. Nevertheless, ...
1 vote
0 answers
82 views

Arduino blocks when serving web pages

I have an Arduino sketch that serves an HTML web page using the standard Ethernet library (https://github.com/arduino-libraries/Ethernet) and the Ethernet Web Server library (https://github.com/khoih-...
  • 11
2 votes
2 answers
188 views

Arduino Yun receives UDP packets but prints them with gibberish

Arduino Yun is set to receive UDP packets. It receives those data with some gibberish. How is all set up: Arduino Yun (acts as a server) is connected through Ethernet to a PC which is (through WiFi) ...
0 votes
1 answer
1k views

2 SPI devices conflict

I want to connect a W5500 ethernet Module and an SD card module to arduino Uno using SPI (with different CS pins of course). When connected separately they work fine but when connected in the same ...
  • 183
0 votes
2 answers
567 views

Ethernet Shield Not Working With TFT Screen

I'm trying to stack up Arduino UNO, Ethernet Shield and Waveshare 2.8" TFT Shield. Since I'm new to this I'm mostly doing basic stuff. I successfully manage to get ethernet shield and TFT shield to ...
0 votes
1 answer
150 views

Arduino Ethernet shield frequently drops its IP address

Im working on a sketch that needs to display some internal variable values and analogue reads in a simple webpage. The only catch is that it needs to be as reliable as possible. Im getting some odd ...
1 vote
0 answers
66 views

STM32Ethernet UDP misses some packets

Using STM32Duino on Nucleo F429ZI: #include <LwIP.h> #include <STM32Ethernet.h> #define UDP_TX_PACKET_MAX_SIZE 512 #include <EthernetUdp.h> IPAddress remoteIP; unsigned int ...
  • 293
0 votes
1 answer
1k views

HTTP parsing with authentication in Arduino + ethernet shield

i am trying to parse a page from the route by using Arduino + Ethernet shield. before Arduino testing. I tested my code via python as it shows below. from this code i can get the data as i wish where ...
  • 103
0 votes
1 answer
385 views

Ethernet shield connected to local network, not to internet

Using the WebServer example file I have been able to confirm that my arduino is connected to my local network and I can open the page in my browser. However any attempt at contacting addresses outside ...
0 votes
2 answers
2k views

When connecting, client.connect() returns 0

I'm using an arduino UNO with ethernet shield. When following a few guides online for a school project I came across this issue. First code sample: #include <SPI.h> #include <...
1 vote
1 answer
2k views

Is there an Arduino library that uses ARP to get list of connected devices on network?

I have been looking for a library that can execute an ARP (Address Resolution Protocol) command to return a list of connected devices on the network. The idea is that it would send the request to the ...
  • 113
0 votes
1 answer
141 views

Refreshing a web-page hangs after few times

I'm using a Nucleo F429ZI board and I wrote a sketch that enables a simple web-server: #include <LwIP.h> #include <STM32Ethernet.h> const int WEB_PORT = 80; EthernetServer server(...
  • 293
0 votes
1 answer
165 views

EthernetClient not initializing properly

I am trying to make a connection with the EthernetClient, but it always fails with code 0. I decided to write a small code just to test if the client ever becomes ready, and as I suspected it does not....
0 votes
1 answer
925 views

MQTT on nano with Ethernet shield not working

I'm using an arduino nano with an ethernet shield (ENC28J60), and ethernet eem to be working (I can create a webserver with Ethercard library).However, i'm stuck when i try to connect to a MQTT ...
  • 143
-1 votes
1 answer
39 views

command keeps echoing because web page tries refreshing

I want to execute a action only once when I press web page button but as the page tries refreshing the action gets executed in a loop. I am using the wifimanualwebserver example for esp8266. Please ...
  • 1
1 vote
0 answers
160 views

Ethernet.h Ethernet.Begin(mac) only connects if i have a LiquidCrystal object from LiquidCrystal.H

I have the following code; #include <Ethernet.h> #include <SPI.h> #include <LiquidCrystal.h> LiquidCrystal lcd(31, 30, 29, 28, 27, 26, 25, 24, 23, 22); byte mac[] = { 0xDE, 0xAD, ...
1 vote
0 answers
245 views

Arduino Mega failing to connect to XAMPP database/php server to send HTTP requests

I have developed an application with a SunFounder Mega2560 with a W5100 Ethernet shield that acts as a server and successfully parses TCP message packets from a client sending in updates. I am now ...
1 vote
0 answers
39 views

Remote Arduinos polling a master Ardrino over ethernet/wifi

I'm setting up a "Panic Button" for our Front Office. The concept is to have a master Arduino with the button and 4 other Arduinos with Strobes and/or alarms to alert the rest of the staff. The bells ...
1 vote
1 answer
323 views

Arduino HTTP Request Fails Slow Cellular Connection

Setup: Arduino Mega 2560 w/ Wiznet W5500 Ethernet Sheild Using TP-Link TL-MR6400 LTE router to connect to internet over cellular connection in Uganda. Using an HTTP Post with the following, ...
  • 68
2 votes
0 answers
2k views

Ethernet Shield Issue

I just bought a Ethernet Shield for my Arduino UNO. I connected it to my arduino and flashed the Example code for Ethernet Shield, but the code didn't work. The COLL LED on ethernet shield is glowing ...
0 votes
1 answer
341 views

one Arduino with RS485 and Ethernet shields: does this work?

I'm planning to wire a few Arduinos together via RS485, and have one of them act as a hub that collects information from the others and presents it via http on an Ethernet connection. For instance ...
  • 146
0 votes
1 answer
816 views

Public IP for Arduino with Ethernet shield and Arduino Uno

I'm new Arduino and I would like you to help me. I would like to have a public IP so that anyone can get access to it, not only from domestic domain. What could I do?. I'm using Arduino Uno, Arduino ...
0 votes
1 answer
39 views

My webswerver works fine when there is only 1 servo used/defined in my code

I am trying to make a webserver which controls my 3 servos for a robotic arm. When I define and use 1 servo it is nice and quick, but whereas if I use more than 1 the webserver is very slow and barely ...
0 votes
1 answer
2k views

How to create a Arduino socket server to receive messages

From linux I can send a socket message using netcat echo "Hello" | nc 88.109.110.161 100 But I don't know how to setup the socket server for listening incoming messages using the ethernet shield. ...
2 votes
0 answers
254 views

UDP behavior different for STM32

I'm facing a weird situation, where the UDP behavior seems different in STM32 porting (stm32duino). Short question Besides port and address, what are the other parameters that characterize the UDP ...
  • 293
1 vote
0 answers
127 views

Arduino with Ethernet Shield with PC to upload data to Microsoft Azure

i am a student doing a project related to datalogging. My project is a rehabilitation device that uses 2 rotary encoders to record data for rotation and linear movement of a human arm. The data ...

1
2 3 4 5
7