# Ethernet Setup Help

**URL:** <https://discourse.agopengps.com/t/ethernet-setup-help/585>\
**Category:** Hardware\
**Created:** [17 December 2019 04:47 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585 "2019-12-17T04:47:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![max2019](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@max2019](https://discourse.agopengps.com/u/max2019)\
**Post date:** [17 December 2019 04:47 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/1 "2019-12-17T04:47:28Z")

</div>

Hi  
I have the PCB system working quite well and wanted to move to a system connected by ethernet.rather than USB connected.  
I have read the wiki and seen one video on the subject however it is not clear how to get it all working.  
If someone can point me in the correct direction to get some step by step instruction I would be grateful. Regards  
Max

---

<div class="post-metadata">

**Author:** ![max2019](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@max2019](https://discourse.agopengps.com/u/max2019)\
**Post date:** [18 December 2019 03:28 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/2 "2019-12-18T03:28:21Z")

</div>

On the wiki it has this ![image](https://discourse.agopengps.com/images/transparent.png)

whilst in the latest version of the code for UDP st up it has This computer and Moduule ports only ie no Autosteer and no rate control

I still have a lot of blanks to set up the ethernet part of this. ie what arduino code do I use.  
Max

---

<div class="post-metadata">

**Author:** ![wwfarm](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/w/bc79bd/32.png) [@wwfarm](https://discourse.agopengps.com/u/wwfarm)\
**Post date:** [18 December 2019 14:53 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/3 "2019-12-18T14:53:52Z")

</div>

I’m not sure where to point you as i’m not sure there are any clear instructions. I used ethernet version in tractor for seeding. First you need to setup a router with right ip address. and hook up arduino to router and router to computer. Arduino code should be modified to use as ethernet.

#define EtherNet 1 // 0 = Serial/USB communcation with AOG  
// 1 = Ethernet comunication with AOG (using a ENC28J60 chip)

And need to load ethercardaog.zip into library and then include in arduino code

#include \<enc28j60.h\>  
#include \<EtherCard.h\>  
#include \<net.h\>

Someone correct me if i’m wrong. been awhile since i worked with this.

---

<div class="post-metadata">

**Author:** ![max2019](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@max2019](https://discourse.agopengps.com/u/max2019)\
**Post date:** [19 December 2019 04:29 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/4 "2019-12-19T04:29:53Z")

</div>

Thanks wwfarm for the help. I assume we are talking about the Arduino code AutosterPCBv4 Y/N  
If so I can alter the code to select ethernet  
Not sure to where to find ethercardaog.zip  
If you look in the wiki at the ethernet edition then the computer could connect to the router and the router then connects to Autosteer, the GPS roof, AG-rate and Autodrive+tune  
is there arduino code for all of these arduino controlled units because I can not find it. I have found the [relays.io](http://relays.io) presumably for the AB-rate  
The new screen format only have configuration space for THIS COMPUTER and MODULE PORT. what id the module port?  
Do I just go with the IP address as assigned by the router.  
Any further help will be greatly appreciated  
Max

---

<div class="post-metadata">

**Author:** ![wwfarm](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/w/bc79bd/32.png) [@wwfarm](https://discourse.agopengps.com/u/wwfarm)\
**Post date:** [19 December 2019 15:28 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/5 "2019-12-19T15:28:20Z")

</div>

autosteerpcbv2 arduino code. I havnt seen v4  
ethercardaog.zip is on github. I think if you download latest release it installs a support folder on your desktop. in the autosteerpcbv2 folder you will find it.  
I don’t think you need to change anything on ethernet configuration, but just make sure udp is on.  
And give your router static ip address of 192.168.1.1  
If I remember right this is how i did it. Maybe something has changed though since then.

---

<div class="post-metadata">

**Author:** ![max2019](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@max2019](https://discourse.agopengps.com/u/max2019)\
**Post date:** [19 December 2019 15:41 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/6 "2019-12-19T15:41:34Z")

</div>

Sorry I am confusing things I meant v2  
I am working on a few parts of the problem. Hopefully over the weekend I can get this going. Once again I appreciate your help on this matter  
Max

---

<div class="post-metadata">

**Author:** ![max2019](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@max2019](https://discourse.agopengps.com/u/max2019)\
**Post date:** [20 December 2019 04:51 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/7 "2019-12-20T04:51:35Z")

</div>

Still confused  
I have my equipment inside my house until I get it all sorted. In the house I also have a satellite router and its IP is 192.168.1.1 I do not want to mess with this router as this is the main internet link for the whole house.

For this project I have the use of 2 other wifi routers. I have been playing with both and neither of them see the auto steer board when hardwired to the router. As per the instructions I have the board and then into that I have plugged a ethernet port using the chip ENC28J60 and into that is my nano. My system work well on USB. Both the Autosteer board and my PC running AgopenGPS are connected to this router. The router is not connected to the internet. Its IPaddress is also 192.168.1.1  
I have change the parameter for ethernet from 0 to 1 in the AutosteerPCBv2 code  
I am not sure what I need to do in the UDP settings of the AOG code.  
The current setup is certainly not like the diagram in the wiki for the ethernet upgrade.  
Any assistance will be appreciated  
Max

---

<div class="post-metadata">

**Author:** ![wwfarm](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/w/bc79bd/32.png) [@wwfarm](https://discourse.agopengps.com/u/wwfarm)\
**Post date:** [20 December 2019 05:46 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/8 "2019-12-20T05:46:49Z")

</div>

I had to disable virus protection on mine before it would work. So could try that.

---

<div class="post-metadata">

**Author:** ![Larsvest](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/l/50afbb/32.png) [@Larsvest](https://discourse.agopengps.com/u/Larsvest)\
**Post date:** [20 December 2019 09:17 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/9 "2019-12-20T09:17:40Z")

</div>

The numbers in this part of Brian´s ino (pasted below) have not changed the last 12 months, so I dont think they need to be altered.  
Do you allow all the needed ports to be open in router setup?  
Or is it a Windows 10 issue like mentioned in [Bug in UDP communikation](https://discourse.agopengps.com/t/bug-in-udp-communikation/589)  
// ethernet interface ip address  
static byte myip[] = { 192,168,1,77 };  
// gateway ip address  
static byte gwip[] = { 192,168,1,1 };  
//DNS- you just need one anyway  
static byte myDNS[] = { 8,8,8,8 };  
//mask  
static byte mask[] = { 255,255,255,0 };  
//this is port of this autosteer module  
unsigned int portMy = 5577;

```
//sending back to where and which port
static byte ipDestination[] = {192, 168, 1, 255};
unsigned int portDestination = 9999; //AOG port that listens

// ethernet mac address - must be unique on your network
static byte mymac[] = { 0x70,0x69,0x69,0x2D,0x30,0x31 };

```

---

<div class="post-metadata">

**Author:** ![Larsvest](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/l/50afbb/32.png) [@Larsvest](https://discourse.agopengps.com/u/Larsvest)\
**Post date:** [20 December 2019 09:58 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/10 "2019-12-20T09:58:58Z")

</div>

I used the auto windows download some days ago. Then i unzipped All files, which includes unzipping ethercardaog.zip. Now after opening autosteerpcbv2.ino, all the needed files are shown to the right of autosteerpcbv2 , I think all the necessary files are in the correct folder by default.  
 ![image](https://discourse.agopengps.com/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![MylArti](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/mylarti/32/11096_2.png) [@MylArti](https://discourse.agopengps.com/u/MylArti)\
**Post date:** [20 December 2019 21:39 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/14 "2019-12-20T21:39:50Z")

</div>

All that is unnecessary. Librarys are all ready in the folder. ![Kuva](https://discourse.agopengps.com/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Larsvest](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/l/50afbb/32.png) [@Larsvest](https://discourse.agopengps.com/u/Larsvest)\
**Post date:** [20 December 2019 21:47 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/15 "2019-12-20T21:47:10Z")

</div>

I installed arduino 1.8.10 on a computer never used for arduino. Would not start at first, but after right click on arduino.exe, and accept run as administrator it fired up.  
Then downloaded the Agopengps.msi, did what needed. I got agopengps v309.  
After that clicked open file in arduino, navigated to autosteerpcbv2. Ino in the support folder. All the necessary files were there by default. 🙂

---

<div class="post-metadata">

**Author:** ![max2019](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@max2019](https://discourse.agopengps.com/u/max2019)\
**Post date:** [20 December 2019 22:20 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/16 "2019-12-20T22:20:29Z")

</div>

Very helpful information. Thanks for your efforts. Finally I got ethernet working. To be helpful to others I have the following settings  
IP router 192.168.1.1  
IP of Laptop running AOG software 192.168.1.3  
IP of Autosteer board 192.168.1.77  
IP address of relay arduino does not currently show up in router

UDP settings in AOG  
This computer 192.168.1.3  
Module Port 192.168.1.77 (ie auto steer board)

If I can get some further help I would be grateful. I am trying to get a 2 relay board also connected by ethernet  
If someone can point me in the correct direction for the settings I would be grateful  
I have loaded the relays.ino on a separate arduino nano equipped with a ethernet port. Ports 5 and 6 are connected to the relays.  
Do I need to do any configuring of AOG to get the relays to switch on and off when the screen section switch on and off.

regards

max

---

<div class="post-metadata">

**Author:** ![max2019](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@max2019](https://discourse.agopengps.com/u/max2019)\
**Post date:** [20 December 2019 22:28 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/17 "2019-12-20T22:28:47Z")

</div>

One other question is there any code that can be loaded on an arduino that will allow the GPS and dog2 to connect by ethernet

---

<div class="post-metadata">

**Author:** ![BrianTee\_Admin](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/briantee_admin/32/7_2.png) [@BrianTee\_Admin](https://discourse.agopengps.com/u/BrianTee_Admin)\
**Post date:** [20 December 2019 22:54 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/18 "2019-12-20T22:54:50Z")

</div>

I’m glad you have persisted struggling thru the udp setup. I know that seems like a terrible thing to say - but just think how well you understand it now.

One thing i did notice is what version of AOG are you using? There no longer is a rate control port etc. Can you use a more recent version or is there something specific about the version you are using.

documentation is woefully inadequate. We need to get that fixed up as well. So much work to that, but so important as well.

Since the dog2 is connected to the autosteer board it will just show up as tilt from that board. As far as GPS via udp, yes it is seamless. Just connect an rs232 to udp convertor and plug it in. Set the convertor to send to broadcast or just your ip for AOG runs on and port 9999. Works great.

---

<div class="post-metadata">

**Author:** ![max2019](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@max2019](https://discourse.agopengps.com/u/max2019)\
**Post date:** [20 December 2019 23:09 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/19 "2019-12-20T23:09:56Z")

</div>

Hi Brian  
I agree a struggle does pay dividends.  
I am using the latest version of AOG and yes I have been looking for a phantom rate control port. So I now get it that is does not exist. So what do I do to get my arduino/ relay board to connect via ethernet and to be controlled by the AOG turning on and off the sections. Do I need to enable a switch? currently my router does not see the ethernet arduino relay combo.

Regarding documentation (just a suggestion) if some of these threads can be selected as stickies then after some editing the thread can do most of the documentation. ie user generated problem solving threads

I sort of did one on screens. With a little editing from an expert it can be of more use.

Equipment selection for the Autosteer board could be another area.

just suggestions…

max

regards

max

---

<div class="post-metadata">

**Author:** ![BrianTee\_Admin](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/briantee_admin/32/7_2.png) [@BrianTee\_Admin](https://discourse.agopengps.com/u/BrianTee_Admin)\
**Post date:** [20 December 2019 23:15 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/20 "2019-12-20T23:15:09Z")

</div>

There is no udp relay code yet.

What we need is a 400 page list of all the details that need to be completed

---

<div class="post-metadata">

**Author:** ![max2019](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@max2019](https://discourse.agopengps.com/u/max2019)\
**Post date:** [21 December 2019 00:57 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/21 "2019-12-21T00:57:01Z")

</div>

Can I use the section relays with USB instead of UDP?

Can you suggest a RS232/ttl to UDP converter as there seem to be a whole bunch on the market and some are quite pricey

---

<div class="post-metadata">

**Author:** ![BrianTee\_Admin](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/briantee_admin/32/7_2.png) [@BrianTee\_Admin](https://discourse.agopengps.com/u/BrianTee_Admin)\
**Post date:** [21 December 2019 01:31 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/22 "2019-12-21T01:31:53Z")

</div>

I’ve used this one, works well. [https://www.gridconnect.com/products/serial-ethernet-converter-atc-1000-low-cost-rs232-422-485-to-ethernet](https://www.gridconnect.com/products/serial-ethernet-converter-atc-1000-low-cost-rs232-422-485-to-ethernet)

---

<div class="post-metadata">

**Author:** ![ropecope](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/ropecope/32/28_2.png) [@ropecope](https://discourse.agopengps.com/u/ropecope)\
**Post date:** [21 December 2019 19:01 UTC](https://discourse.agopengps.com/t/ethernet-setup-help/585/23 "2019-12-21T19:01:25Z")

</div>

I use this and it is very easy to set up and much cheaper  
[https://www.usriot.com/products/serial-ttl-to-ethernet-module.html](https://www.usriot.com/products/serial-ttl-to-ethernet-module.html)  
and dual variant [https://www.usriot.com/products/dual-ttl-uart-to-ethernet-module.html](https://www.usriot.com/products/dual-ttl-uart-to-ethernet-module.html)  
but I failed to get arduino to work with it. We could also have GPS and AutoSteer on one Ethernet port

[Next page](https://discourse.agopengps.com/t/ethernet-setup-help/585.md?page=2)
