2

Is it possible to use the galileo's ethernet port through arduino IDE? Or should I buy an arduino ethernet shield? Will I be able to use galileo as a server to which arduino board can send data to?

asked Dec 5, 2014 at 15:23
2
  • 1
    Welcome to Arduino SE! Do you mean sending traffic through the USB port to the computer to use the computer's internet connection? Commented Dec 5, 2014 at 22:46
  • Considering that the Galileo is basically a small embedded linux system, you could also evaluate the option of using it as such, meaning using your programming language of choice directly inside linux. Commented Apr 23, 2016 at 21:44

3 Answers 3

2

I suppose you mean the "Galileo integrated Ethernet port" (the on-board RJ45). Then the answer is "no, not directly". The whole code provided by Intel in Arduino 1.6 IDE applies to the W5100 based shield, not the integrated Ethernet interface (which is a bit stupid, imho...)

Technically, however, this is possible, but you will need to create a library in C/C++, which interfaces with the system lib (the Linux one). You can then access the wonderful world of BSD sockets (much more powerful than the sockets within the W5100).

Note however that the configuration of the integrated Ethernet board is not very easy with the Galileo, because the default Yocto image does not allow you to change default IP parameters (the Yocto image uses DHCP by default). So technically, you need then to deal with a startup script that changes the IP parameters at startup, but it's pretty heavy to do.

Rohit Gupta
6122 gold badges5 silver badges18 bronze badges
answered Oct 26, 2015 at 16:17
0

The Galileo board is Arduino compatible; meaning that you can run Arduino sketches on it, and use its I/O pins the same way you would with, say, Arduino Uno.

Therefor you can communicate between Galileo and Arduino the same way you would with two Arduino devices. This can be done using your favorite communication channel - Serial, I2C, OneWire, RF or even Infrared - it all depends what exactly are your needs, knowledge and timing requirements. Of course, doing it this way, would require you to have code running on both the Galileo and the Arduino, in charge of the inter-communication.

By doing so, you could utilize the Galileo as a 'server' as you say, that will receive commands from the Arduino, send them over the network and reply to the Arduino with the response.

answered Dec 9, 2014 at 19:04
-1

Yup - the Galileo Ethernet port works the same way as any other Arduino. For some sketch examples have a look at

File> Examples> Ethernet

zx485
2564 silver badges15 bronze badges
answered Dec 10, 2014 at 15:44
1
  • Wrong, the Ethernet library is for use with W5100 Ethernet controller, as used on the Arduino Ethernet shield, not the Galileo's onboard Ethernet. Commented Dec 20, 2016 at 22:47

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.