spycatcher2k:
So you give neither a wiring diagram or code & expect an answer!
With the information you have supplied so far, I expect the answer to be : Green Smurf
I'm sorry I'm uploading the schematic but it's just an ethernet module and basic arduino circuit. Atmega328p, 16 Mhz crystal, 2 22pF capacitor. First, I tried powering the circuit from 5v Dc adaptor. I used LM1117 3.3v transistor for ethernet. Then I tried to eliminate the current and voltage problem using an arduino. Powered the circuit from arduino's 5v output and ı supplied ethernet module from arduino's 3.3v output.
I'm uploading the code as well. I can ping when ı connect arduino and ethernet module, so ethernet module works but on standalone arduino, I can't ping it.
#include <UIPEthernet.h>
#include <UIPServer.h>
#include <UIPClient.h>
#include <EEPROM.h>
EthernetServer server = EthernetServer(1010);
EthernetServer serverokunan=EthernetServer(2020);
EthernetServer serverokunan2=EthernetServer(2030);
EthernetServer clientipconfiguration=EthernetServer(3030);
EthernetClient client;
EthernetClient okunanclient;
EthernetClient okunanclient2;
EthernetClient clientconfiguration;
//IPAddress dnsServer(192,168,2,1);
//IPAddress gateway(192,168,1,1);
//IPAddress dns(192,168,001,001);
//IPAddress subnet(255,255,255,0);
// Ethernet.begin(mac,myIP,gateway,subnet);
void setup()
{
uint8_t mac[6] = {0x00,0x01,0x02,0x03,0x04,0x05};
IPAddress myIP(192,168,1,188);
Ethernet.begin(mac,myIP);
server.begin();
}
void loop()
{
size_t size;
if ( client = server.available())
{
if (client)
{
while((size = client.available()) > 0)
{
uint8_t* msg = (uint8_t*)malloc(size);
size = client.read(msg,size);
}
}
}
}