Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Firmware/simulator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ One row per day, in short; the details are in the sections of this file (the lin

| Date | What changed |
|---|---|
| 9 Nov 2026 | **Set up AgOpenWeb from your measures** 1.3: the turn clears the front corner, the drawbar meets the tyre, turns listed by headland, reasons behind arrows ([the page](#set-up-agopenweb-from-your-measures)). The seed drill page shows its 19 sections before the program talks. |
| 9 Nov 2026 | **Set up AgOpenWeb from your measures** 1.3: the turn clears the front corner, the drawbar meets the tyre, turns by headland, reasons ([the page](#set-up-agopenweb-from-your-measures)). Seed drill page: 19 sections before the program talks. Shorter start page and strip notes. |
| 8 Nov 2026 | **Set up AgOpenWeb from your measures**: a calculator that turns the tractor and implement measures into the U-turn, headland and tramline settings, with the reasons, a drawing, examples and drawbars kept off the rear tyres ([the page](#set-up-agopenweb-from-your-measures)). |
| 7 Nov 2026 | The seed drill page's four tabs and Firmware tab checked, with a made-up newer `.bin` "on GitHub"; `firmware.json` lists the seed drill `.bin` once it is on `main`; the modules' names on the network ([How it is built](#how-it-is-built)). |
| 4 Nov 2026 | The Teensy's clock and temperature, the receivers' and the TM171's temperatures and the XIAO's in the pretend modules' answers. |
Expand Down
23 changes: 11 additions & 12 deletions Firmware/simulator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- index.html - the start page of the web page simulator (build.py fills in the {{...}}).
Part of AiO_WEB, Teensy 4.1 firmware for the AiO v4.5 boards (Firmware/simulator, see README.md there).
Written 2026 by Claude (Anthropic) for renatorgr.
2026-10-27 (Claude): the seed drill module's page (Seeder_ESP32) next to the sprayer module's.
The history of changes is in the README changelog and in the git log.
Licence: GNU General Public License v3 or later (Firmware/v4.5_AiO_WEB/COPYING), WITHOUT ANY WARRANTY.
SPDX-License-Identifier: GPL-3.0-or-later -->
<html lang="en">
Expand Down Expand Up @@ -37,36 +37,35 @@
<body>
<main>
<h1>AiO v4.5 web page simulator</h1>
<p class="lead">Try the web pages of the AiO v4.5 autosteer module, its XIAO and the ESP32 seed drill and sprayer modules without a board. These are the real pages from the firmware, rebuilt from the code on every change. The values behind them are made up: a tractor drives up and down a field with autosteer on, sowing with a 19-section no-till seed drill (or spraying, when the sprayer is chosen in the strip).</p>
<p class="lead">The real web pages of the AiO v4.5 module, its XIAO and the seed drill and sprayer modules, with a pretend tractor behind them: it drives up and down a field with autosteer on, sowing with the 19-section seed drill. No board needed. Rebuilt from the firmware on every change.</p>
<div class="grid">
<div class="card"><h2>Teensy module page</h2>
<p>What the module shows at <code>http://192.168.5.126/</code> on the tractor's network: GNSS, IMU, steering, messages, settings, the GPS receiver, the machine module (every section, with a link to the module's own page) and the firmware update.</p>
<p>The AiO v4.5 page on the tractor network: GNSS, IMU, steering, machine module, settings and update.</p>
<a class="go" href="teensy/">Open</a></div>
<div class="card"><h2>XIAO Wi-Fi page</h2>
<p>What the XIAO ESP32 on the GPS2 port shows on its own Wi-Fi network, at <code>http://192.168.4.1/</code>, made for a phone. Its password here is <code>agopengps</code>.</p>
<p>The page of the XIAO on the GPS2 port, on its own Wi-Fi network, made for a phone.</p>
<a class="go" href="xiao/">Open</a></div>
<div class="card"><h2>Seed drill module page</h2>
<p>What the seed drill's Relay24_ESP32 board (Seeder_ESP32) shows on its own Wi-Fi network (<code>Seeder-xxxx</code>, at <code>http://192.168.4.1/</code>) or on the tractor network at <code>http://192.168.5.123/</code>: the 19 sections asked for and open, the 24 relays, the network cable, the settings and the program update. Its password here is <code>agopengps</code>.</p>
<p>The Seeder_ESP32 page: 19 sections, 24 relays, network cable, settings and update.</p>
<a class="go" href="seeder/">Open</a></div>
<div class="card"><h2>Sprayer module page</h2>
<p>What the ESP32 sprayer module (Sprayer_ESP32 on the ESP32_Relay_X8 board) shows on its own Wi-Fi network (<code>Sprayer-xxxx</code>, at <code>http://192.168.4.1/</code>) or on the tractor network at <code>http://192.168.5.123/</code>: pressure, flow and litres, the sections asked for and open, the relays, the Wi-Fi settings, the calibration and the program update. Its password here is <code>agopengps</code>.</p>
<p>The Sprayer_ESP32 page: sections, pressure, flow and litres, relays, Wi-Fi, calibration and update.</p>
<a class="go" href="sprayer/">Open</a></div>
<div class="card"><h2>Set up AgOpenWeb from your measures</h2>
<p>Type the tractor and implement measures and get the U-turn radius, turn style and skip rows, distance from boundary, headland width, extension and tramline settings to put in AgOpenWeb's Vehicle &amp; Tool page, each with its reason behind an arrow, every turn AgOpenWeb can make listed by the headland it needs, and a drawing of the turn. Not a module page and not part of AgOpenWeb: a calculator with AgOpenWeb's own U-turn rules.</p>
<p>Type the tractor and implement measures and get AgOpenWeb's U-turn, headland and tramline settings, with the reasons.</p>
<a class="go" href="aow-settings/">Open</a></div>
</div>
<p class="note">The password on the module pages is <code>agopengps</code>. The strip at the top of each page changes the receiver, the IMU, the steering, the program, the implement or the network, and parks the tractor to try what the module refuses while autosteer is on.</p>
<h3>Some set-ups to start from</h3>
<ul>
<li><a href="teensy/">UM982 with two antennas, TM171, Cytron valve, AgOpenWeb</a></li>
<li><a href="teensy/?gps=f9p&amp;imu=bno&amp;motor=keya&amp;prog=aog">F9P, BNO085, Keya motor, AgOpenGPS</a></li>
<li><a href="teensy/?gps=dualf9p&amp;imu=rvc&amp;motor=ibt2&amp;prog=aog">Dual F9P, BNO085 in RVC mode, IBT2 motor, AgOpenGPS</a></li>
<li><a href="teensy/?gps=x20p&amp;xiao=0&amp;mach=0&amp;park=1">X20P and TM171, no XIAO, no machine module, tractor parked</a></li>
<li><a href="teensy/?mach=aog">UM982 and TM171 with the official AgOpenGPS machine module (Machine_UDP_v5)</a></li>
<li><a href="teensy/?impl=sprayer">UM982 and TM171 with the 8 m sprayer: 8 sections, pressure, flow and litres on the Machine tab</a></li>
<li><a href="sprayer/">Sprayer module page with the 8 m sprayer on the ESP32_Relay_X8 board: 8 relays, the boom's readings</a></li>
<li><a href="seeder/?wifi=lost">Seed drill module with the network cable unplugged: rows closed, the program's request outlined</a></li>
<li><a href="teensy/?mach=aog">The official AgOpenGPS machine module (Machine_UDP_v5)</a></li>
<li><a href="teensy/?impl=sprayer">The 8 m sprayer on the Machine tab</a></li>
<li><a href="seeder/?wifi=lost">Seed drill module with the network cable unplugged</a></li>
</ul>
<p class="note">Change the receiver, the IMU, the steering, the program, the XIAO, the machine module and the implement (the no-till seed drill with 19 sections, or the 8 m sprayer with 5 sections) in the strip at the top of each page. With the tractor parked you can try what the module refuses while autosteer is on: the firmware update, the TM171 calibrations, writing the receiver settings.</p>
<footer>Pages of firmware {{FOLDER}} (version {{VERSION}}), Seeder_ESP32 (version {{SEEDER_VERSION}}) and Sprayer_ESP32 (version {{SPRAYER_VERSION}}), built on {{BUILT}} from commit <a href="{{COMMIT_URL}}">{{COMMIT}}</a>. Source and documentation: <a href="https://github.com/renatorgr/Boards/tree/main/Firmware">github.com/renatorgr/Boards</a>. GPL v3.</footer>
</main>
</body>
Expand Down
4 changes: 2 additions & 2 deletions Firmware/simulator/sim-seeder.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const NET = S.opt.wifi, LOST_AT = 24;
const X = S.load(KEY, () => ({t0: Date.now() - S.RUNNING * 1000, ap: AP, pass: "agopengps", staOn: false, sta: "", staPassSet: false,
host: "seeder", subnet: "192.168.5", ipLast: 123, first: 1, secs: IMPL.sections, secTop: 0, ev: [], evAt: -1}));
const T = () => (Date.now() - X.t0) / 1000;
S.bar("No board behind this page: the values are made up. The own-network password is agopengps. Park the tractor to see the sections closed." +
" The Relay24_ESP32 board is on the network cable: \"tractor network lost\" = the cable unplugged.",
S.bar("Made-up values, no board behind this page. Password agopengps. Park the tractor to close the sections." +
" \"Tractor network lost\" = the network cable unplugged.",
["wifi", "park"], [KEY, MKEY]);

// on the tractor network from 2.5 s on the cable (3.2 s on the tractor's Wi-Fi, when chosen on the page instead);
Expand Down
2 changes: 1 addition & 1 deletion Firmware/simulator/sim-sprayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (X.sensors === undefined) X.sensors = 3; // kept from
if (X.ipLast === undefined) Object.assign(X, {ipLast: 123, secTop: 0}); // and before v0.8
if (X.rate === undefined) Object.assign(X, SPRAY); // and before v0.10
const T = () => (Date.now() - X.t0) / 1000;
S.bar("No board behind this page: the values are made up. The own-network password is agopengps. Park the tractor to see the sections closed.",
S.bar("Made-up values, no board behind this page. Password agopengps. Park the tractor to close the sections.",
["wifi", "park"], [KEY, MKEY]);

// on the tractor's Wi-Fi from 3.2 s; the program talks (PGN 239 ten times a second) from 5.5 s
Expand Down
2 changes: 1 addition & 1 deletion Firmware/simulator/sim-teensy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"use strict";
(function () {
const S = window.AioSim, KEY = "aiosim.teensy", M = S.Module(KEY);
S.bar("No module behind this page: the values are made up. Park the tractor to try the update and the calibrations.",
S.bar("Made-up values, no module behind this page. Park the tractor to try the update and the calibrations.",
["gps", "imu", "motor", "prog", "xiao", "mach", "impl", "park"], [KEY]);
// Our machine modules have a page of their own (the seed drill's, the sprayer's): a link to the one of the chosen
// implement at the end of the Machine tab's card, the way its IP on the Machine tab would open it on the tractor.
Expand Down
2 changes: 1 addition & 1 deletion Firmware/simulator/sim-xiao.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const BIN = (S.BUILD.xiaoBin || {})[C3 ? "c3" : "s3"] || (C3 ? 1102560 : 990640)
const X = S.load(KEY, () => ({t0: Date.now() - S.RUNNING * 1000, reset: "power on", ap: "XIAO-3F2A", pass: "agopengps", staOn: true, sta: "Farm WiFi", staPassSet: true,
host: "xiao", ev: [], evNext: 1, evAt: -1, scanAt: -1}));
const T = () => (Date.now() - X.t0) / 1000;
S.bar("No XIAO and no module behind this page: the values are made up. The XIAO password is agopengps.",
S.bar("Made-up values, no XIAO behind this page. Password agopengps.",
["gps", "imu", "motor", "prog", "chip", "park"], [KEY, MKEY], {gps: ["dualf9p"]});

function event(x, t) {
Expand Down
Loading