Machine Code UDP Send Message

Does anyone know where @BrianTee sends the message to the machine board in the AOG solution file. I would like to copy this message and send it to a UDP socket on another machine so I can connect the AOG autosteer monitor to another monitor for an implement. I would be sending speed, workswitch. Speed is speed but the second variable would stop the seed from planting when I reach my boundary and I would make a loud audible signaling to manually lift the 3 pt arms.

Im sure thats claear as mud.

did you check arduino code of machine module?
you can get info from here and hope to you to use as you want ?

I might be wrong, but isn’t it broadcasting to the entire subnet already? I thought I saw something saying that was already happening. A quick look with Wireshark will confirm.

I did check this code. I was specifically looking for the code inside the VB application.

check the code

you can find value

for example at the end they add explantaion for GPS speed

This is the wrong direction. I want aog to broadcast.

Cory Raisbeck
Whispering Hill Farms

Look for pgn_233 in visual studio. Udp designer and position designer. Not behind pc so i think i forget some.

I thought AoG was already broadcasting

AOG uses PGN codes to transfer information.

The IP address of the device allows it to join the same network,

Each device then either sends data, or listens for data at pre determined PORT numbers. Any device listening to these ports on the network can read the data being sent. then dependant on the programming of the device it can choose what to do with the Data.

The actual data streaming from the PORT, is the PGN. The PGN is a message of encoded data that is broadcast to any device listening at the PORT where it is created.

Moving Data is much like moving water,
IP address = The water well, tank or trough location, all water devices need to be on the (sameFarm#.sameWell#.samePump#.differentdevice#)
Port Number = The water tap description
PGN = The type of water
LAN Cable / Wifi = The hose
Network Switch / Router = Flow Splitter

1 Like

I don’t think it does a true broadcast . I’ll confirm tommorrow when I am in front of visual studio. I think it sends a message to a specific board over uDp. I’m assuming that’s we the MAC addresses are in the arduino code.

Someone that suggested doing a search for the pgn number. I think that will get me to the proper place. I’ll follow up with more info once I learn more.

It uses the broadcast IP of x.x.x.255 but you have to listen on the correct UDP port according to the PGN you want.

Exactly this :arrow_up: :arrow_up: :arrow_up:

This is how we are pulling off 64 sections, 4 cards with different Ip’s all staring at the same PORT to receive the same PGN at the same time. Then the individual module knows what 16 sections it is responsible for out of the 64 in the PGN message.

If you are connected by udp you can just put a print statement in the ino plug in your usb cable and see what info is being sent. Just found this out and it is handy!

1 Like

With alot of help from commonRail i have used pgn_233 to create a XTE string. Added code in the .ino and send to serial5 and use ttl to rs232 to send out the XTE string.

Works great.


Do you want steer control on your trailer?

I got this to work. The real trick is parsing the hex array from aog to a readable format. By default the uDp socket is expecting a string or “bag of bits” but once I got it to remain native I now can get and send messages.

Now aog can trigger the work switch and my planter monitor turns the planter in and off accordingly plus I can do rate control by speed.

Im working on the pcb now but will share once completed