I am looking to use ethernet to connect my APM2.0 to the ground station running Mission Planner. I see that Mission Planner has options to accept TCP and UDP connections, so I'm guessing this is possible. I am using an SPI to ethernet converter for a wired connection from the APM2.0 to a wifi router. My questions are as follows:
1) Which SPI port do I connect the ethernet converter to: the AT2560 or the ATxU2?
2) What is the pin layout for the SPI ports?
3) What changes do I need to make to the ArduPilot software?
4) What settings to I need to make to Mission Planner?
I appreciate any help with this. I will share this project with the community once I get the major kinks worked out!
Replies
I think I've worked out the answers, but I'd be grateful if someone with some understanding could verify this:
1) The SPI/Ethernet converter connects to the AT2560 SPI port (the one adjacent to the analog pins).
2) With the square solder tab in the upper left:
[MISO] [Vcc]
[SCK] [MOSI]
[CS/Reset] [Gnd]
3) Initialize Ethernet in the same sketch/library as Serial. Since the connector where the XBee typically attaches is serial 3, find in the code where the call to "Serial3.write()" occurs and replace it with something like "Udp.sendpacket()". I'm still not sure where all this actually happens in the code...
4) With the AMP2.0 initialized and sending data, select "UDP" in the upper right of the screen in Mission Planner, click connect, and enter the correct Port number.
Does anyone at all have any experience sending control/telemetry via wifi? Any help would be appreciated!