Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tcpip]

This should be used when referring to the transmission protocol TCP/IP.

1
vote
1answer
34 views

Using c_str() on String for IPAddress with NTPClient provides wrong values

Libraries NTPClient Board Olimex ESP32-POE board Behaviour I have written a code that connects the board to a local NTP Server (which is an embedded board). I tried assigning the IP Address of ...
0
votes
0answers
72 views

ESP8266 stops working after 5 requests

I am trying to implement a TCP server on an ESP8266. My code looks like this: void http_recvcb(void *arg, char *data, unsigned short int length) { Serial.println("Received data"); ...
0
votes
1answer
64 views

How to configure TinySine 3G module (SIM5320E) for HTTP GET request

I recently bought a 'TinySine 3G shield (SIM5320E) 900/2100Mhz' based on Adafruit_FONA libraries to use with Arduino Mega 2560 R3. It successfully registered with Vodafone AU. Other functionality ...
1
vote
0answers
213 views

Arduino/ESP8266 - TCP server, connect to AP, receive connections/data

We're trying to use an ESP8266/Arduino Uno as a TCP server, which connects to a wireless AP and then receives commands from other devices on the same network. Currently we got the "connect to AP" part ...
0
votes
0answers
38 views

Sufficiency of Arduino UNO to receive sound via Internet

I'm really beginner for arduino. To learn, I've taken my first project using it. In my project, I will connect to a online radio station with IP:port. Then, I will send the received data(music) to the ...
0
votes
0answers
326 views

ENC28J60 + Modbus master - proven library needed

I'm trying to connect my Arduino Uno to the PLC (Fatek) through an ENC28J60 module. Arduino must be a Master (Client). PLC is the Server (Slave). ENC module is connected to the ICSP port and the CS is ...
0
votes
1answer
36 views

servers , free domains with ESP [closed]

Lets Say That I Have a routine like: I have written PHP codes for the free domain that will: Wait for request like url/control?ToDo="someMethod",parm=Something (posting some password for ...
-1
votes
1answer
106 views

Multiple #ifndef vs. single one #endif

My question is connected with the issue as linked: Is there any good working MODBUS TCP master library available for Arduino? An example of Modbus TCP master library as suggested in the post above. A ...
0
votes
1answer
331 views

ESP8266 check if TCP client disconnected…informally

Hi with ESP8266WiFi library, I usually check for connection of a TCP client with client.connected(). But it seems to still return true if my TCP client in an unexpected way (like disconnect to WiFi/ ...
2
votes
0answers
694 views

How to listen to multiple server ports with ESP8266?

I'm using WeMos D1 R2. I'm trying to listen to both ports 1992 and 1993. This is my current code: #include <ESP8266WiFi.h> WiFiServer server_1992(1992); WiFiServer server_1993(1993); void ...
0
votes
1answer
246 views

ESP8266 cannot create TCP connections to this particular server

EDIT: I have created an issue about this here: https://github.com/esp8266/Arduino/issues/4593 I have this server: 185.205.210.197 (Check that it works: http://185.205.210.197/) And I have this code ...
0
votes
0answers
977 views

ESP8266 - Sending RFID data using NodeMCU (TCP server) problem!

I am trying to send RFID data to an Android app using NodeMCU (ESP8266). Android app is a TCP client socket tester app (Simple TCP Socket Tester) below is the code: #include < ESP8266WiFi.h > #...
0
votes
1answer
433 views

How to send MFRC522 data to a C# app using a NodeMCU TCP server?

I am trying to send MFRC522 data to a C# application through a NodeMCU acting as an access point for the C# app. I have modified the code I got from this site. #include ESP8266WiFi.h> #include SPI....
0
votes
2answers
307 views

Communication with socketserver fails after specific number of packets

I'm trying to implement a full-duplex communication between my ESP8266 and a socketserver running on my laptop. In concrete I need each of the devices to initiate communication whenever it needs to. ...
0
votes
0answers
93 views

Arduino Ethernet: 20hz datastream over TCP?

I have a computer sending OSC data (udp) to 5 Arduinos with Ethernet shields (libraries: OSC, Ethernet2). Data packages are ~6 integers long and get sent every ~50ms. The ethernet cables are 150feet/...
0
votes
1answer
280 views

ERROR on SIM900AT comand HTTPDATA (POST method)

Good day community, I have a project which is VEHICLE GPS Tracker and I'm using Arduino Mega, NEO GPS6MV2 and SIM900. I'm using SIM900 to send the GPS coordinates on a web server. I'm using the POST ...
0
votes
1answer
3k views

ESP8266 send TCP HEX packet with 4 chars

I'm building a remote for my WiFi-RGB Lights. I have an ESP8266, which should send one TCP packet with 4 chars. My code: #include <ESP8266WiFi.h> const char* ssid = "Wifi"; const char* ...
-1
votes
1answer
638 views

How to get the server response when I post to a web api [closed]

I have an arduino which is using a TCPClient to post JSON messages to a web api. First, I have pasted the code below to see if people have general comments about the method I am using to do so. I am ...
1
vote
1answer
107 views

Sending JSON message to web api via post. Why does HTTP 1.0 versus 1.1 make a difference?

I am sending a message to a web api call every xx seconds. I could not get it to work at all until I changed the header from HTTP 1.1 which is what I was using to HTTP 1.0. Then, it started working. ...
0
votes
0answers
133 views

Troubleshoot establish network connection; WireShark

I have an Arduino UNO with the WIZ5100 EthernetShield. I have uploaded the example script DhcpAddressPrinter, after another sketch using the EthernetShield did not connect to the network as expected, ...
1
vote
1answer
141 views

ESP8266 problem with recieved data trasmission via TCP

I am having small project where I want to read couple of analog inputs from Arduino UNO, send it via software serial to ESP8266-01 and from that to python server using TCP. Data is sent to ESP using ...
3
votes
1answer
1k views

Data transmission Serial to TCP

I am trying to send numeric data using ESP8266 to local network python server. Before that I am collecting data from sensors using Arduino UNO and then send it to ESP using hardware serial. ESP8266 ...
1
vote
1answer
4k views

ESP8266 TCP connection WiFiClient issue

I am using ESP8266 01 board to send some data via TCP to server on local network. My code is: #include <ESP8266WiFi.h> const char* ssid = "ssid"; const char* password = "pas"; const char* ...
0
votes
0answers
284 views

How do I send HTTP request using ESP8266 to other port than 80?

I currently have a working connection to my ESP8266 module. However, I can only connect to a server using the port 80, is it possible to choose a different port? I can connect using AT+CIPSTART="TCP"...
2
votes
1answer
6k views

Is there any good working MODBUS TCP master library available for Arduino?

I would like to connect with Fronius solar inverter through MODBUS TCP with Arduino to READ and WRITE register values only. I want to set the Arduino as master and the Inverter as slave. I want to use ...
4
votes
1answer
5k views

How to run TCP socket server on Arduino Uno WiFi?

2017-03-23 update I still don't know why it works so well on Yún. Maybe it has a better antenna? Anyway, I've returned Uno WiFi and got a SparkFun ESP32 Thing. Unfortunately, it has the same problem ...
0
votes
2answers
3k views

How to create TCP server on Arduino UNO WiFi?

I'm currently trying to make my Arduino UNO WiFi work as a TCP host, so I can send him a TCP message and it sends a response. I had no problem doing this on the Arduino Galileo Gen 2 using the ...
0
votes
1answer
446 views

ESP8266 ASyncTCP class example

I am new to ESP programming on Arduino, as before I was developing on eLua. There were some memory problems in Lua, so I decided to move to Arduino. After looking at some examples, I found a library ...
4
votes
4answers
4k views

Scan IP address of ESP8266

I am working on a project in which, the mobile app/browser sends HTTP command to ESP8266 in AP mode. The default IP address of ESP is 192.168.4.1. Therefore in order to connect the ESP to WiFi, the ...
1
vote
1answer
8k views

Multiple client server over wifi

Trying to setup a server on Arduino to support multiple clients, I am able to support one but I don't want to flush that client to make another connection. #include <ESP8266WiFi.h> const char* ...
1
vote
1answer
493 views

Is it possible to print client IP or MAC address from Arduino WiFi web server?

For a school project I want to make a little project with the Arduino Uno. I want to make a project that does something when a client connects to the WiFi shield. My first thought was to print out ...
0
votes
3answers
598 views

How avoid TCP packet fragmentation?

I'm using an Arduino Uno with an Ethernet Shield and the arduino.cc Ethernet library for a custom TCP-based message-exchanging chat-like protocol. Specifically I'm using the Client class with its ...
1
vote
1answer
1k 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
1answer
561 views

SIM900 TCP Connection issue

I am having a strange issue where if I try and create a TCP connection to my service, it doesn't work. But any other website, such as google, works fine. The serial monitor output is also slightly ...
0
votes
1answer
3k views

Modbus RTU over TCPip

I have developed my arduino code using below library. I tested code working fine over modbus RTU slave. Now i am planning to use RS485 to wifi instead of wire connection. In order to get data over web ...
1
vote
1answer
592 views

ESP2866 and java ServerSocket

So I have an application that runs on the Arduino that passes info over serial. I'm using a ESP2866 to make it wireless. Arduino->Serial->Esp2866->SocketConn->JavaSocket->Console I ...
0
votes
2answers
723 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, ...
1
vote
0answers
97 views

Resend data traffic from an Arduino

I have an Arduino with an Ethernet shield and I want to capture all Ethernet data traffic that connects to the Arduino via [as?] a router. This is because I want to use the Arduino like a honeypot and ...
1
vote
1answer
526 views

TCP or HTTP connection between web server and arduino

If arduino works as a client and tries to connect to web server (the server is mine), should I connect to it via TCP or HTTP connection? Data will be simple strings (20 chars at max) so TCP connection ...
0
votes
1answer
3k views

Sending data over TCP connection in one piece

I'm trying to send short strings via Java client to Arduino server and vice versa. Sending data to client goes fine, but when I try to send data to arduino it cuts the string into bytes and then sends ...
0
votes
1answer
315 views

Wi-Fi Module communication?

I bought a Arduino Wi-Fi Module it does not have any manual or catalog my project is to turn on/off a motor wireless it is working grate for the serial/usb cable but i couldn't make it work for ...
-1
votes
1answer
3k views

Arduino TCP communication with Android phone

I am trying to communicate Arduino Uno with an android phone. What I trying to is: Android device post a string to Arduino Arduino post a integer to Android So far I can post message from Android, ...
0
votes
1answer
152 views

How to return a message when calling by a TCP connection?

I am working on a communication between Android and Arduino board. The Android makes a TCP connection with the board and successfully sends some strings to the board. The problem is, there is an ...
1
vote
0answers
369 views

How can I use the SerialIP library on my Arduino through a Mac?

I am looking into using the SerialIP library to connect my Arduino to the internet through it's USB connection to my computer. However, I cannot figure out how to establish the SLIP connection to the ...
8
votes
4answers
902 views

Which shield to use for GPRS?

I'm planning to build a device that would read some sensor data and send it via GPRS, eg. once per day. (Not that original, yeah.) But my problem is choosing a GSM/GPRS shield. The official ...
2
votes
3answers
25k views

TCP communication between Arduino client and server

I'm currently trying to build an Arduino robot controlled via a wifi connection. I have an Arduino Mega running as a client and it successfully connects to the server on LAN via the Adafruit cc3000 ...
5
votes
2answers
2k views

Ethernet shield and IPv6 support

Have you heard about support for IPv6 protocol for any Ethernet shield? As far as I know only IPv4 is supported. Maybe some one would like to write library?
11
votes
1answer
1k views

Internet connectivity for the Arduino Due using AtmelStudio?

What hardware and software solutions work and what are the tradeoffs for connecting an Arduino Due to the internet? I gather the ethernet hardware is much cheaper than WiFi hardware (€29 versus €69). ...