Machine Control Board - USB

No real answer to that. There is a Section control code for ESP32. It is very universal, so you can do

  • section control only
    or
  • documentation of your work only
    or any combination of it.

you need all .ino files, and you must change the settings at the beginning of the code.
Most depends on your hardware.

You find it on Github MTZ8302

PS: with the comming V4.6 final, or V5 the code needs to be updated. Maybe I’ll get the stuff V5 ready, but I’m running out of time…

Matthias, does your ESP32 Section Control Code works with the latest v5.6.2 AOG version?
Thx

Yes, the communication hasn’t changed. I’m using it with WiFi UDP, but other communication should work too.

Greetings

Unfortunetely it is’nt working. I’m using it with AP SectionControlNet, so it gets an IP on both sides. It looks as it working well, but I don’t receive any commands from AOG, that means no relays are switched. The opposite direction is working well, all sectional switches will be indicated correctly. But as I wrote above only this way is working. I drove in the real field, started spraying nothing works. :joy:

Did you set the corrct ip in AgIO?
Check with ipconfig and maybe the 3rd number is wrong. Change in AgIO udp setting and press send.
Maybe helps
Greetings

You can check the incoming bytes in the webinterface or with the serial monitor.
Use 192.168.1.1 or 192.168.1.77 to get it. Activate the debugmode, connect the esp with usb to see the debuginfo

I’m using it with AP SectionControlNet, so it creates 192.168.1.1 for ESP and 192.168.1.2 for AGIO:

See the following response, from serial monitor and debuginfos. I was able to use the webinterface via 192.168.1.1 to activate debugging and saving it.

In Simulator mode I get all switches in Manuall, but in automatic it’s seems all running but no data will receive from AOG.

Aog Version is 5.6.2 - My setup was working well in previous version V5.2.

There is something wrong with AGO or AgIO: it doesn’t send the needed info. You may check this with wireshark. AgIO should send to 192.168.1.255.
Try another AOG version, please.

I found the bug: in AP mode the UPD boolean was not set true. Updated the network.ino on Github.

GPIO config in ESP32 version 2.0.3 and above is buggy, use 2.0.2

2 Likes

Perfect! Thx

Hi Matthias,

which board do you use for the ESP32 section control?
Ali Express has a 8 Channel ESP32 WIFI Bluetooth BLE Relay Module. Would that work with your code? What is the maximum amount of sections you board supports?

Regards,

Johannes

https://www.aliexpress.com/item/1005006011363533.html?spm=a2g0o.productlist.main.7.6a1a10532YXFg2&algo_pvid=91610b56-5795-4aa1-9b9f-26787ebdb22f&aem_p4p_detail=202401050905564348111449132100001841878&algo_exp_id=91610b56-5795-4aa1-9b9f-26787ebdb22f-3&pdp_npi=4%40dis!CAD!16.71!16.71!!!87.71!!%402101ef8717044743563576927e80c5!12000035311654033!sea!CA!179255046!&curPageLogUid=mvjZSK2BAEyE&utparam-url=scene%3Asearch|query_from%3A&search_p4p_id=202401050905564348111449132100001841878_4