You are reading a single comment by @possmann and its replies. Click here to read the full conversation.
  • Ok, i tried everything again. At first i flash the espruino with this the newest version

    http://www.espruino.com/binaries/espruino_1v69_espruino_1r3_wiznet.bin
    

    For information: my home network setup works with 192.168.1.x range. My Synology has normally the ip address 192.168.1.2, but i read your advice with the default chip address and change it to 192.168.1.5. I guess now, there are no collisions anymore.

    Well, first step: this is the output for getIP()

    eth.getIP();
    ={
          "ip":"0.0.0.0",
          "subnet":"0.0.0.0",
          "gateway":"0.0.127.0",
          "dns":"0.0.0.0",
          "mac":"0008dc1d4f18"
        }
    

    so, i tried to connect the DHCP with eth.setIP(); after 5 minutes no response in the WEBIDE, just a blinking cursor after.

    Next step: reset the espruino board and try to set a fix IP (192.168.1.2):

    eth.setIP({
      "ip":"192.168.1.2",
      "subnet":"255.255.255.0",
      "gateway":"192.168.1.1",
      "dns":"8.8.8.8",
      "mac":"0008dc1d4f18"
    });
    

    This works, eth.getIP() returns a good looking json object. Now, it's possible to ping the ip from my terminal:

    64 bytes from 192.168.1.2: icmp_seq=723 ttl=128 time=4.091 ms
    64 bytes from 192.168.1.2: icmp_seq=724 ttl=128 time=3.910 ms
    64 bytes from 192.168.1.2: icmp_seq=725 ttl=128 time=4.205 ms
    64 bytes from 192.168.1.2: icmp_seq=726 ttl=128 time=4.107 ms
    

    Fine, now a http.get(); request to my local webserver with default port 80

    >require("http").get("http://192.168.1.51", function(res) {
    :    res.on('data', function(data) { console.log(data);    });
    :  });
    

    Again no response after this comment. Just a blinking cursor on my WEBIDE.

    Also to set the ip to 10.0.0.2 and eth.setIP(); doesn't work.

    I'm out of idea's :-(

    ps: i add also my wire configuration. the picture is little taken from the side, so it looks shifted, but the cables are set by B2-B5 on the espruino board.


    1 Attachment

    • espruino-wiznet.jpg
About

Avatar for possmann @possmann started