TeensyMowerWebControl for esp32

Yes yesterday i have made a small Test, but have reconnect Problems and I was only shown the Commands page.
Navigating was not possible. I kept losing the connection. However, the Wifi connection via WebControl is stable.
 
I upload code on my teensy git .
It's the version from 02/05/2022 with :
RFID OK
MQTT OK
PFOD over Wifi OK.
SERVER WEB Work but setting/raspberry menu missing and RFID detail menu not OK.

Speed betwwen ESP32 and teensy reduce to 19200 for PFOD issue.
 
I upload code on my teensy git .
It's the version from 02/05/2022 with :
RFID OK
MQTT OK
PFOD over Wifi OK.
SERVER WEB Work but setting/raspberry menu missing and RFID detail menu not OK.

Speed betwwen ESP32 and teensy reduce to 19200 for PFOD issue.
so can you give me a hint how the menu for raspberry should be
 
Actualy i have not yet integrate the universal PFOD and test with the code on Git.
Also I can adjust some part of my AZURITBER code to your dev (like PerimeterLeftMag instead of PerimeterMag etc .... to normalise again)

You can't use Pfod and webserver at same time (Into server page Connection change to PFOD if pfod is connected.)
But everything work very well with mower near Acces point ,need a full week test to see the stability when ESP32 lost the acces point.


With PFOD:


Capture d’écran 2022-05-07 153409.jpg


Without Pfod


Capture d’écran 2022-05-07 153436.jpg


Loops per sec is 385000 using Oled screen and nothing connected
Loops per sec change between 200000 and 345000 using Oled screen and Pfod connected into setting motor menu
Loops per sec is 200000 stable using Oled screen and Serveur web connected into setting motor menu

@Sascha I first prefer to test step by step and validate each functionality but many thanks for OTA and i hope ESP32 can manage all with 80% of prog memory use.

@Fürst Ruprecht : i have some small trouble with the SD card : The SPI interface is already in use with RFID reader !!!!
On PFOD there is a save option on the Console page , maybe it's possible to do the same with Html console page and back to the simple line send into console instead of html_line and only store everything in the PC if needed , To debug simply connect the PC for long duration and for standard run use the Teensy SD Card storage ,but maybe more complex for transfer later to one history html page ???
Also a string of 1000 char is not something very good for Teensy or Due .
We need a bigger reflection on this topic to see the best solution.

Here the simple raspberry / mqtt page:
raspberry.jpg
 
You can't use Pfod and webserver at same time
then there must be errors in the code (maybe i can simulate android and the V3 app on the PC ???)
(Into server page Connection change to PFOD if pfod is connected.)
I don't understand. Where is that?
Also I can adjust some part of my AZURITBER code to your dev (like PerimeterLeftMag instead of PerimeterMag etc .... to normalise again)
Well that would be very nice of you
need a full week test to see the stability when ESP32 lost the acces point.
At the moment I can't see any reason why the mower should react to a loss of connection. If there is no connection, then no html command can be sent to the mower.
SD card :
- for debugging, a second esp can be connected to the bus in parallel for reading/storing only
- html_line: Idea-1 : after each transmission by pfod.cpp, html_line is deleted. This way everything is transferred (nothing is lost) and html_line is as short as possible.
- html_line: Idea-2 : the esp32 stores x-lines so that you have more information available on the web page.
- Saving on the Teensy could be time-critical

Sascha: now I would also like to be able to save to the SD card via OTA !?.
 
I don't understand. Where is that?
Sorry i forget annotate:
vu1.jpgvu2.jpg





At the moment I can't see any reason why the mower should react to a loss of connection. If there is no connection, then no html command can be sent to the mower.
me too but it's not our programming code but the ESP32 WIFI library itself . I already explain this in the ardumower forum and only a ESP.restart can restore connection.
I see the trouble on WIFI Sender and on my original code .Work perfect some week and fail to reconnect to acces point only the BT work at reduce speed ,so certainly something run in infinite loop inside ESP32 ???
It's Better to test to be sure.

html_line: Idea-2 : the esp32 stores x-lines so that you have more information available on the web page.
Yes for Teensy i think no problem with big char array instead of string , but on the DUE side it's more limited.

Saving on the Teensy could be time-critical
Do you have test the teensy SD reader speed ??
I never work on it .

The goal is to do same as on the raspberry and write on sd card only when mower is stop ( at perimeter trigger for example ) and again when error or something like that.
And a history menu can transfert data from teensy SD to HTML page over ESP32 using the webserver.
Again need time to dev !!!!!!
 
Teensymower connected to pfod-app: This is the current status of the connection - connected to android-app (?). Below that is the html page of the web server. I do not know whether both connections can work in parallel. Or I misunderstood something. When is "connected to pfod-app" coming?
 
Teensy SDcard data logger is on my git (see history to view the change)
All showmessage are now into SD card
 
Teensymower connected to pfod-app: This is the current status of the connection - connected to android-app (?). Below that is the html page of the web server. I do not know whether both connections can work in parallel. Or I misunderstood something. When is "connected to pfod-app" coming?
Each time you connect the pfod app the webserver is stop, message appear and everything work perfectly .

Do you think you can take a look at your webserver to see if it's possible to create a history menu to see the content of the teensy SD Card ? (certainly a little complex task ?)
 
Is it possible to have a live video streaming object into one html page .
Video coming from one ESP32 CAM
 
Back
Top