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
1answer
67 views

How can I make this code read a page every 10 seconds?

I got problems with the code and I have used most of today, trying to find a solution and it's starting to drive my crazy. I hope one of you guys will be able to help me out. I need the code to check ...
0
votes
1answer
7k views

Arduino Ethernet Shield on Arduino Mega Pin Usage!

I currently have an Arduino Ethernet Shield which is Mega Compatible. I've found on the Arduino Ethernet Library https://www.arduino.cc/en/Reference/Ethernet that the Shield uses different Pins on the ...
0
votes
1answer
665 views

Arduino Mega web server always returning JSON data even if JSON is not passed in URL

I am trying to return JSON data if JSON is found in the HTTP header, and if not I am trying to display a normal page. But instead it always displays the JSON text, even if I do not pass the JSON in ...
1
vote
1answer
505 views

How to send information from a web-site to the arduino?

I currently have an Arduino Mega + an Arduino Ethernet shield, I would like to know if it's possible to send data to the arduino from a web-site hosted on the shield itself. So that when someone press ...
0
votes
2answers
3k views

Couldn't connect to local server using Ethernet Shield and Arduino Mega 2560

I'm trying to connect the arduino mega and ethernet shield and try to send some data to a php script. I have connect the ethernet shield to the laptop. Lap is connected to router through wi-fi. Any ...
1
vote
1answer
2k views

Why doesn't the Ethernet W5100 shield work on Gigabit switch?

I have an Arduino Uno with an Ethernet Shield based on the Wiznet W5100 chipset : It worked like a charm until I had to move it to another location and plugged it to a Gigabit switch. I had no link, ...
0
votes
1answer
24 views

Arduino Disconnects after router password changes

I am working with arduino Uno R3 connected with EPS8266(http://www.amazon.in/ESP8266-Serial-Wireless-Transceiver-Module/dp/B00O34AGSU?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=...
0
votes
2answers
3k views

Reading values from SQL Arduino ethernet

I'm about to do this project where I will make some lights flash up depending on some values that are in an SQL database on a server. I have already bought my Arduino and waiting for it to arrive. But ...
0
votes
1answer
669 views

Why do I get access denied when I do have mysql root user added to grant all privileges?

I am using the below mysql example sketch to upload data directly to mysql db. #include "SPI.h" #include "Ethernet.h" #include "sha1.h" #include "mysql.h" /* Setup for Ethernet Library */ byte ...
0
votes
2answers
488 views

Cannot run arduino as web client

I have ethernet shield mounted on arduino mega, I am able to run it as server but when i try to run it as client it doesnt work , most of the time it assigns itself 255.255.255.255 ip address which i ...
-1
votes
2answers
3k views

Arduino using Ethernet shield WebClient example code is not working

I'm using an Arduino Uno and Ethernet shield with the WIZnet chip W5100. The WebServer code example is working. DHCP is working, the Ethernet shield is receiving an IP address from the Linksys modem "...
0
votes
1answer
588 views

Code won't read the first line from SD

The general idea I would like to target a link with certain parameters, which would trigger a force download of a txt file, to an SD card. Next, I'd like to loop through that file, and read one line ...
1
vote
0answers
198 views

Web Page doesn't load when data is being received from Xbee

I have an Arduino Mega I am using as a simple web server. Right now the web page is two simple lines of text. There is an XBee radio attached to the unit to receive data from another unit. However, ...
-1
votes
1answer
3k views

arduino web client uploading data to mysql database

I have got this quick sketch that post data to mysql db using php add.php module. #include <SFE_BMP180.h> #include <SPI.h> #include <Ethernet.h> #include<dht.h> dht DHT; // ...
1
vote
2answers
77 views

The easiest and most time efficent way to connect to the internet regardless of the cost

I am working on my graduation Project. I want to use the cayenne (mydevices) platform to control my Arduino. Mainly I want to be able to control a servo Motor through the Cayenne app and I want to use ...
1
vote
0answers
45 views

Getting data from web form [duplicate]

I am using an EthernetServer and EthernetClient with Arduino in order to make a simple webpage. I have a web form for a user to enter various codes that can reset data stored on the back end. However, ...
1
vote
1answer
4k views

Arduino Web Server: Receiving response from web form

I am using an Arduino Mega and I have a basic webpage built using EthernetServer for the connection and EthernetClient to write the HTML to the client. I have a simple web form: client.println("<...
2
votes
0answers
496 views

Slow response from ENC28J60

I am making a circuit which turns a LED on and off through internet. I am connecting an Arduino to a LED and to an Ethernet controller(ENC28J60), but when I make a GET request to the device, it takes ...
1
vote
0answers
331 views

which Arduino UNO ethernet shield supports power over ethernet?

I ordered for this ethernet shield for my UNO as shown on the amazon website listing I was thinking to add power over ethernet module to take advantage of shield that supports adding POE module. . ...
0
votes
2answers
2k views

Ethernet shield not working

I have an ethernet shield on an Arduino Mega 2560. I am running the code below. This is a slightly modified version of the DHCP ip printer example, namely I am setting a static IP instead of DHCP. I ...
1
vote
0answers
261 views

Ethernet module ENC28C60 doesn't connect to internet when DHCP on router is disabled.

Update: Examples from library are working if DHCP is enabled! Using this library I try to connect with static IP but it always say DNS failed. Ethernet module is blinking that means is good ...
0
votes
1answer
353 views

Getting an error while uploading a code to the Arduino when ethernet shield is attached

I bought ethernet Shield today and connected it to Arduino Uno, now when I try to upldoad I get the following error, however if I remove the shield from the UNO it works fine. Sketch uses 10,486 ...
0
votes
2answers
2k views

W5100 Ethernet Shield to Custom Board Problem

I've been using an Arduino Ethernet shield and an Arduino Mega in my project, but now I'm trying to migrate all the components onto my own PCB. My board uses a W5100 same as the Arduino, but nothing ...
1
vote
0answers
160 views

EthernetClient: HTML table isn't being fully populated

I have the following code below for an EthernetClient named client. It is supposed to print a 2 row, 9 column table. The headers are ID and Name and are the first cell in each row. The other columns ...
-2
votes
2answers
810 views

Arduino uno - Ethernet Shield enc28j60 hangs after some time

I am using Ethernet Shield enc28j60 for retrieve data from web server, but Ethernet Shield enc28j60 hangs after some time and it only works after restarting power supply (router usb port). My sketch :...
2
votes
1answer
1k views

Control Arduino through ethernet. How to contact from outside network and securely

I'm new to Arduino so please bear with me if my question is too simple or broad (I did try and research it) or guide me if it belongs elsewhere (networking forum?) I would like to be able to control ...
2
votes
1answer
763 views

How to correctly serve a webpage from an SD card

It's been days that I'm trying to figure it out how to edit this perfectly working code in order to load load a webpage from the sd card. #include <SPI.h> #include <Ethernet2.h> byte mac[]...
2
votes
2answers
451 views

Trouble reading LM35 with long (?) Ethernet connection

I have a quick question to ask. I have an Arduino Uno reading 4 temperature sensors (LM35) in 4 different rooms. What happens is that the two nearest rooms give stable values, while the two further ...
1
vote
1answer
2k views

Can't connect to my Arduino via W5100 Ethernet shield

I recently bought a W5100 Ethernet shield and I'm trying to run this simple example, which is a little improvement of the basic WebServer sketch provided by Arduino.cc #include <SPI.h> #include ...
0
votes
2answers
2k views

dns lookup only works with DHCP and not with static setup (EtherCard library)

When I use DHCP with ether.dhcpSetup() the DNS lookup for NTP ether.dnsLookup("0.pool.ntp.org") works fine, but when I use a static setup (because my Android app needs to know the IP address) with ...
2
votes
4answers
353 views

Arduino Accessing a web page

Folks, I want to use my arduino with ethernet shield to access the following webpage "http://www.met.ie/forecasts/sea-area.asp" and take some information. On the website it has a line "Small Craft ...
0
votes
1answer
254 views

What if I just connect 5V DC to my UTP?

Here is the image of Ethernet shield near RJ45 socket: These small boxes are probably SMD capacitors which may mean, that internal board is glavanically disconnected from the UTP line. Is this true? ...
0
votes
2answers
975 views

EthernetUdp2 does not name a type

I'm using arduino Ethernet shield 2 form arduino.org and the arduino IDE 1.7.10 also from arduino.org the code is : #include <Dhcp.h> #include <Dns.h> #include <Ethernet2.h> #...
1
vote
1answer
574 views

MySQL Connector/Arduino insert data from row into an array

I'm new here. These days I have been working with the MySQL Connector/ Arduino library. So, my problem is how can i retrieve a rows data so as to enable an output. I have written some code, which was ...
5
votes
3answers
3k views

WizNet W5100 not connecting to modern switches and routers

I have an Arduino data collector with a W5100 module (see bottom of picture). Simple fixed IP connection: byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; byte ip[] = { 192, 168, 1, 242 }; ...
2
votes
1answer
619 views

HTTP Post not working

I am wanting to POST some data from Arduino to WebService (written in .NET), intending to save some temperature data to MS SQL Server. My code in arduino is: void PostarDados(String dados, String ...
1
vote
1answer
992 views

Webserver on Arduino: How to 307 temporary redirect

I originally asked this question. Regarding a webserver Refresh issue on arduino. I am totally new to web development and ethernet. The answer from @Majenko is correct, but I do not understand how ...
1
vote
1answer
2k views

Webserver on Arduino: Refresh issues

I am using W5100 Ethernet Shield Network Module with arduino Uno as a webserver to trigger four relays connected to it. The relays may be toggled through the four buttons attached to it physically, ...
0
votes
1answer
561 views

Using Arduino Yún to send data through Ethernet

I'm still new to Arduino Yún and I can't find any tutorials or examples on making the Yún send data through Ethernet, which will then be showed on a web server. I've seen other tutorials but they use ...
0
votes
2answers
140 views

Arduino-like ethernet only board?

I don't think USB chip is more expensive than Ethernet chip. So, I expect there should exist a board like Arduino, but where USB is removed in favour of Ethernet. Are there such boards?
0
votes
0answers
1k views

Udp.remoteIP() and Udp.remotePort() calls not working

I'm trying to conect an Intel Galileo over ethernet. I'm using the code located in Examples/Ethernet/UDPSendReceiveString. Everything works fine except for the response. Udp.remoteIP() always return ...
0
votes
2answers
542 views

arduino ethernet run php from sd card

I am just interested, but I would like to run a webpage with php on my arduino ethernet. I would like to be able to store my webpage on the sd card as well. does anyone know of a library that would ...
2
votes
1answer
73 views

Informations lost in a string

At first, I sorry if I make some English faults but I'm French. So, I'm making a connection between a client and an Arduino Uno. I receive all data that I need but when I send a response to my ...
0
votes
1answer
263 views

Ethernet Controlled Arduino Arm

Good day, I am currently attempting to write code that will allow a user to connect to an Arduino Mega via IP address and control a robotic arm on the X and Y axis as well as open and close the claw. ...
3
votes
2answers
2k views

Wired IoT sensor network with PoE?

Objective: Maybe I'm a bad Googler, but I am finding very little on wired Internet of Things sensor networks using Arduino. Project Goals: Arduino based sensor nodes that connect to the local ...
1
vote
1answer
1k views

Arduino mega 2560 Stacked with Ethernet/SD card Shield Heat up

Stacked mega and ethernet/sd shield: When I do this stacking, it heats up. I tried connecting the SPI via ports 13-10 (no stacking), it doesn't work. Also tried connecting the ICSP (red circled mark) ...
0
votes
1answer
1k views

BMP280 sensor not initializing

I am successfully using a BMP280 sensor via SPI connection with an Arduino Uno R3 board. I'm trying to run the same code with the same setup on an Arduino Ethernet. However the sensor is not ...
0
votes
1answer
3k views

Ethernet Shield: Failed to configure Ethernet using DHCP

I am currently making a design that uses the Arduino's Ethernet shield. I am using the PushingBox API for Arduino, and have tried it with my Arduino Mega (2560) with the ethernet shield attached to ...
2
votes
3answers
1k views

Ethernet shield/WebServer problem: 'server is at 0.0.0.0'. Any suggestions how to debug it?

Ethernet shield problem. When running the WebServer example sketch, the Serial Monitor shows that server is at 0.0.0.0. Any suggestions how to debug it?
0
votes
2answers
1k views

Cannot directly connect Arduino Ethernet to PC

I have been following various tutorials (especially: this) to connect an Arduino Ethernet board to my Ubuntu PC via Ethernet directly. The IP address of the computer was found to be 10.100.31.128, ...