Software Archive
Read-only legacy content
17061 Discussions

Intel Galileo Gen2 & static TCP/IP

Kurt_H_
Beginner
1,260 Views

Hello,

We're developing an application that needs a static TCP/IP network configuration.

The application is developed in the Intel Arduino IDE and is running on an SD-card (1.0.4-firmware).

The problem now is that we're not able to configure the static IP on boot !

So far we're able to configure the static IP, but changing the default gateway simply doesn't work from within the sketch.

Can anyone help me out here ?

My code :

  // Ethernet.begin(mac,ip,gateway,subnet); does not work at al
  system("ifconfig eth0 192.168.102.85 netmask 255.255.0.0 up");
  system("route add -net 192.168.102.1 netmask 255.255.255.0 gw 192.168.102.1 dev eth0"); does not work
  system("sudo /etc/init.d/networking restart");

Regards

 

0 Kudos
8 Replies
Matthias_H_Intel
Employee
1,260 Views

which SD card image do you use?

0 Kudos
Kurt_H_
Beginner
1,260 Views

SD card image : http://downloadmirror.intel.com/24355/eng/SDCard.1.0.4.tar.bz2

Application developed  with : Arduino Software 1.5.3 - Intel 1.0.4

 

0 Kudos
Matthias_H_Intel
Employee
1,260 Views

ok - not obvious from it's name but still: in this IDZ forum the focus is mostly on the Intel(R) IoT developer kit which comes with a different image. So I'd suggest posting your question at https://communities.intel.com/community/makers 

0 Kudos
Kurt_H_
Beginner
1,260 Views

OK, I'll try this but I cannot login to https://communities.intel.com/community/makers 

Error :

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

0 Kudos
Matthias_H_Intel
Employee
1,260 Views

could this be a proxy / network issue on your side?

0 Kudos
Kurt_H_
Beginner
1,260 Views

No, it's not a network-issue.

When I upload the sketch everything works fine but after a couple of minutes network is lost.

Also the same after a reboot.

0 Kudos
Matthias_H_Intel
Employee
1,260 Views

I was referring to:

OK, I'll try this but I cannot login to https://communities.intel.com/community/makers 

Error :

500 - Internal server error.

0 Kudos
Kurt_H_
Beginner
1,260 Views

I upgraded the firmware to the IoT-version and now it works !

I changed the ip with connmanctl and it stays fixed, even after powerloss.

0 Kudos
Reply