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.
313 questions
0
votes
1
answer
98
views
How to timeout hung incoming connections to the Ethernet port?
If I telnet to an Ethernet capable Arduino (e.g. shield, Leonardo, Leonardo Eth) with something like telnet [ip] [port] and then do nothing, the connection hangs. Seemingly for ever, or at least ...
1
vote
1
answer
245
views
Can one re-program a Leonardo Eth via its Ethernet port only?
Let's assume we have an Arduino Leonardo Eth running some sort of networking application, perhaps a very simple web server. Importantly the server is read only and static HTML. There is no ability to ...
1
vote
0
answers
97
views
Strange UDP problems
I am making a simulator box that pretends to be an industrial pump. We make equipment that interfaces with the pump and don't always have a pump available to test the connection. I used and arduino ...
0
votes
1
answer
82
views
How to make MQTT and ArduinoModbus libraries working on the same Ethernet port?
I have a SAMD51P20 based Arduino PLC with WIZnet W5500 based Ethernet shield. I'm using these libraries:
#include <Ethernet.h>
#include <MQTT.h>
#include <ArduinoModbus.h>
MQTT and ...
0
votes
0
answers
142
views
Configure CA to connect to server with Ethernet
I'm using Ethernet module ENC28J60 with ESP32 on Arduino IDE.
I could establish a secure connection using WifiClientSecure.h
here code
#include <Arduino.h>
#include <WiFi.h>
#include <...
2
votes
1
answer
272
views
Limit of EthernetClient connections
I'm working on a project on which I need to have multiple EthernetClient connections to different servers. All of these connections must be kept alive simultaneously and by this I mean I cannot stop ...
1
vote
0
answers
480
views
Arduino (Mega 2560) Ethernet Shield 2 (W5500) - Can't connect
I'm having issues connecting to my arduino mega via ethernet. Its a very basic start to the code just to get the network side up and running, them im going to add in what I actually want it to do. For ...
1
vote
0
answers
622
views
What can be the reason for a Stack canary watchpoint triggered (loopTask) on a https get() command?
I have a program that only do get and post to a controller via an ethernet port. My problem is that after a certain amount of loop in the program, i got this error:
Guru Meditation Error: Core 1 ...
2
votes
0
answers
346
views
Ability to connect 2 or more w5500 Modules and deal with them as objects
I wish to create a rudimentary ethernet in/out - switch/hub where I can (sort of) daisy chain my boards. (I don't wish to use a ethernet switch/router/hub)
One port would be acting as server
The ...
1
vote
0
answers
86
views
Arduino MEGA crashes with Ethernet shield to connect to two TCP servers
I have Arduino MEGA with Ethernet Shield and a SD card connected to a RUT950 GSM router. Then, I also have two sensors connected to the router and they run a TCP server that sends measurements ...
2
votes
0
answers
85
views
How to connect Arduino to a switch that doesn't accept 10M?
I've been playing around with several Arduino ethernet modules based on the ENC28J60 and the W5500 chipset. All modules are advertised as 10/100M, but in reality only work when the port of a switch is ...
0
votes
1
answer
931
views
Incorrect IP address when using Ethernet library with Arduino Uno and WizNet 5500 ethernet module
I'm trying to get an ethernet module with the W5500 chipset to connect to my network on an Arduino Uno, but whatever I do, I always get an incorrect IP address.
The module is connected as default SPI, ...
-1
votes
1
answer
352
views
UDP Packet Loss
I have an application on a PC that sends 10 UDP packets to an Arduino Portenta board. When sending packets with no delay, half of them are lost. Wireshark shows the packets are correctly sent by the ...
3
votes
1
answer
369
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
1k
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
1k
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 ...
0
votes
1
answer
226
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:
#...
-2
votes
1
answer
89
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
0
answers
3k
views
ESP32 access point with an ENC28J60 ethernet module
Does anyone know if the following is possible? Any advice would be much appreciated.
I am programming an Ethernet connected Arduino to be a webserver. What would be ideal is a small portable "...
2
votes
1
answer
236
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 ...
1
vote
0
answers
134
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 ...
1
vote
0
answers
181
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/[email protected]...
2
votes
0
answers
247
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 ...
1
vote
0
answers
1k
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 ...
1
vote
1
answer
591
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
718
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
231
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
303
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 ...
3
votes
1
answer
1k
views
Communication between two Arduinos using ENC28J60?
How can I connect and send data between two Arduinos using ENC28J60 ethernet adapters on both of them? Is there any guide or example code for me to take a look from or any library I can use to achieve ...
1
vote
1
answer
382
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 ...
1
vote
2
answers
3k
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
97
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 ...
1
vote
0
answers
79
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
119
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 ...
2
votes
0
answers
607
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 ...
-1
votes
1
answer
478
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-...
5
votes
0
answers
2k
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
81
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
115
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-...
2
votes
2
answers
326
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
2k
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 ...
0
votes
2
answers
854
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
363
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
126
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 ...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
714
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
3k
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 <...
2
votes
2
answers
4k
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 ...
0
votes
1
answer
319
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(...
0
votes
1
answer
303
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....