Agrirouter gps-info app

Picture of Frank Wiebeler

Frank Wiebeler

Founder dev4agriculture

Flottenmanagement mit agrirouter und der GPS Info App

Einleitung – Was sind Hackketten?

Erntezeit – das „Einkaufen“ der Landwirtschaft

Man kann nie sicher sein, wer das liest, daher zunächst ein kurzer Exkurs für unsere Nicht-Ag-Leser: Wenn Sie jemals zweimal in ein Geschäft gegangen sind – einmal tagsüber und einmal kurz vor Ladenschluss – kennen Sie diesen Vorfall: Während des Tagsüber ist der Laden nicht wirklich überfüllt, die Kassierer haben manchmal viel Zeit. Kurz bevor die Türen geschlossen werden, ist das Spiel völlig anders. Plötzlich sieht es so aus, als würden alle verhungern, wenn sie *JETZT* nicht an Brot, Milch und Chips kommen könnten. Lange Schlangen und die Kassierer müssen abkassieren, als wäre es die Olympiade der Lebensmittelgeschäfte.

Im Vergleich dazu ist die Hacksaison das „Einkaufen“ der Landwirtschaft. Ein Häcksler schneidet Mais (die ganze Pflanze) und „wirft“ ihn einem Wagen, der hinter oder neben ihm fährt; Meistens von einem Traktor gezogen. Sobald der Waggon vollständig beladen ist, begibt sich das Transportfahrzeug zum Entladen zum Lagerplatz. An der Entladestelle steht ein Traktor, der den Stapel verdichtet. Sobald das Transportfahrzeug entladen ist, muss der „Kompressionstraktor“ den Mais den Stapel hinaufschieben. Chopper haben (die meisten) keinen Bunker, also verwechseln Sie das nicht:

Keine Kasse => kein Einkaufen

Kein Transport => kein Zerkleinern

Keine Kette – kein Gewinn

Für einen konstanten und reibungslosen Ernteprozess sind mehrere Transportfahrzeuge erforderlich. Je länger die Entfernung zwischen Lager und Feld ist, desto mehr Fahrzeuge werden benötigt. Bei Langstrecken über 20 km wird der Transport mit LKW abgewickelt, ansonsten meist mit Traktoren und gezogenen Waggons. Damit der Häcksler nicht warten muss, muss diese Häckselkette möglichst reibungslos laufen. Die Gründe, warum diese Kette nicht reibungslos funktionieren könnte, sind sehr vielfältig:

Staus

Abhängig von der Verkehrssituation ist der Häckslerfahrer vielleicht ein paar Minuten ganz alleine und dann stehen plötzlich drei Traktoren, die alle an dieser einen Ampel warten, bei der es sich anfühlt, als würde es länger dauern, als der Mais grün wird.

Fehlende Feldänderungen

Sobald ein Feld vollständig bearbeitet ist, geht der Häckslerfahrer möglicherweise zum nächsten Feld und wundert sich, warum niemand dorthin kommt, während alle Traktoren zum alten Feld navigieren.

Dies führt zu den 2 Situationen, dass zuerst der Häcksler auf die Transportfahrzeuge warten muss und später die Transportfahrzeuge auf den Häcksler warten müssen.

An app a day keeps the boredom away

I’ve seen both of these incidents back when I worked for a machine manufacturer. Sometimes it took like 20 minutes to say “Hi” to a chopper driver because he had to organize everything by phone or radio.

Over the last 10 years there has been good progress and chopping chains organize themselves with fleet management. That can either be a professional software or – hands-on but less comfortable – just sharing their GPS positions via a messenger such as WhatsApp.

Experimentierfeld Nordwest – Testing fleet management with agrirouter

Agrirouter goes fleet management

One important thing upfront:

Please note, that in general, agrirouter is *not* a fleet management system. It’s a data exchange platform to connect farming software such as fleet management systems with communication units.

With a little trick however we accomplished the most basic requirements of a fleet management system:

  • Spread incoming position of communication units
  • “Organize” fleets => decide who should see whom

Agrirouter – the basics

If you already know agrirouter, you know that you can do a couple of things there:

  • Connect your farming software
  • Connect communication units
  • Connect communication units
  • Create Groups in agrirouter
  • Set routings between endpoints and groups

Anmerkung:

You can think about routings like doors in a wall. By default, no data can be exchanged between endpoints. But by setting a routing, you add a door into your wall, so that data can pass in one or both directions.

Chain management with agrirouter groups

To handle different chains, agrirouter groups can be used. Groups are a possibility to handle multiple endpoints in agrirouter the same way. If you set a routing for the group, all members in the group will have such routing.

Our smartphone app is a communication unit, one endpoint for each Smartphone is created in a central account. (Remark: it would also work if each user had its own account and those accounts were connected).

First, we create 2 groups for our chopping chains, called Chopper1 and Chopper2. For each of these groups, we create exactly one Routing: “Exchange gps:info with yourself”.

This leads to a situation where all apps within one group can only communicate with such applications that are also in this group.

Side note:

Be aware that with more routings and with one app being in multiple groups, this rule could be overwritten.

Now, we onboard our apps. The software is provided to the testers via TestFlight (iOS) and the App Store Beta program
(Android). Each user needs a registration code to agrirouter.

After all apps are  onboarded, they can be distributed between the two chains where one chain could use user names, the other could use machine names.

The name of the endpoint can be edited in the agrirouter UI so that a common naming convention can be used.
Now, agrirouter is setup and the data exchange can start.

The app

Heard of the app is a full screen map view that shows all other chain participants and means to start/stop the sending of GPS positions. The background layer can be changed on the fly, a zoom to a specific endpoint or a zoom out to the whole fleet is possible.

The app runs on Android and iOS, on smartphones and tablets.

Now, the chains can be maintained by adding or removing endpoints to one of the groups.

For the techies

Now, after all the process stuff, let’s dive a bit into the technolog

Ein bisschen hintergrund

It’s – of course – open source

As part of the “Experimentierfeld NordWest”-Project the source code was published in the DKE Data Repository DKE-Data/agrirouter-gps-info-app (github.com) . Feel free to take a look. 😊

Technology

The app was built using the Xamarin Framework of Microsoft to ensure compatibility with the 2 operating systems. It uses the agrirouter SDK and the GPS:Info Data Format which is a protobuf message. The GPS:Info message is quite close but not equal to agrirouter-EFDI messages for 2 reasons:

  1. Agrirouter-EFDI provides more information such as machine data while GPS:Info only provides position and Timestamps
  2. Agrirouter-EFDI belongs to a machine while GPS:Info belongs to a communication unit. This is important to understand as we would have to generate a pseudo-Machine to send agrirouter-efdi.

GPS:Info Analysing

The format GPS:Info is a binary, protobuf based format. You can find the specification in the agrirouter Repositories here: DKE-Data/agrirouter-tmt-protobuf-definitions: Protobuf definitions of additional technical message types (github.com)

Analysis as developer can be done using the IO-Tool (https://io.my-agrirouter.com).

We’ve also build a command line converter that can read GPS:Info and transfer it to CSV. Of course it’s open source as well; find it here: dev4Agriculture/ar_telemetry_converter: A tool to convert agrirouter gps:info efdi:timelog messages to other formats (github.com)

Was kommt als nächstes?

There are several ideas of what to do with the app:

  • Take pictures. Simple but powerful: Document your farmwork independent of the FMIS
  • Document simple machines: Select machines and document working progress for non-digital machines such as plows

Interested in developments for the app? Feel free to contact us 😊