Mein Projekt CaSSAndRA zur Steuerung des Ardumowers

In ESP32 stellst du einmal prefix ein und einmal Name, das trägst du mit Schrägstrich getrennt bei mower name in Cassandra ein. Schaue dir auch log Ausgabe von Cassandra an, dort stehen auch nützliche Informationen (z.B. ob die Verbindung zu Mosquito Server klappt)

Vielleicht liegts daran - im ESP32 steht bei Client_ID "Name" und weiter unten


#define MQTT_PREFIX "/ardumower/"
#define MQTT_CLIENT_ID NAME

und in Cassandra settings
Client-ID NAME
mower name with prefix
ardumower/NAME

Wo finde ich die Cassandra logs ? unter /var/log habe ich zumindest nichts gesehen?
 
Das ist die Log Ausgabe from var/log/syslog - (cassandra log habe ich nicht gefunden).
Zumindest hier scheint es so als ob die MQTT Verbindung auf der Client seite steht, aber nichts ankommt...


2023-07-30 10:04:57 INFO Backend: Writing new connection data to the file
Jul 30 10:04:57 raspberrypi python3.10[634]: 2023-07-30 10:04:57 DEBUG Path to commcfg.json: /src/data/user/commcfg.json
Jul 30 10:04:57 raspberrypi python3.10[634]: 2023-07-30 10:04:57 DEBUG New connect data: {'USE': 'MQTT', 'MQTT': [{'CLIENT_ID': 'NAME'}, {'USERNAME': 'tttt'}, {'PASSWORD': 'tttt'}, {'MQTT_SERVER': '192.168.0.raspi'}, {'PORT': 1883}, {'MOWER_NAME': '/ardumower/NAME'}], 'HTTP': [{'IP': 'http://192.168.0.rover'}, {'PASSWORD': 'tttt'}], 'UART': [{'SERPORT': '/dev/ttyACM0'}, {'BAUDRATE': 115200}]}
Jul 30 10:04:57 raspberrypi python3.10[634]: 2023-07-30 10:04:57 INFO Backend: Connection data are successfully stored in commcfg.json
Jul 30 10:04:57 raspberrypi python3.10[634]: 2023-07-30 10:04:57 INFO Backend: Save and reboot
Jul 30 10:04:57 raspberrypi python3.10[634]: 2023-07-30 10:04:57 INFO Backend: Server thread is stopped
Jul 30 10:05:02 raspberrypi python3.10[634]: 2023-07-30 10:05:02 INFO Backend: Starting backend server
Jul 30 10:05:02 raspberrypi python3.10[634]: 2023-07-30 10:05:02 DEBUG absolute_path: /home/gg/Ardu/src/backend
Jul 30 10:05:02 raspberrypi python3.10[634]: 2023-07-30 10:05:02 INFO Backend: Read communication config file
Jul 30 10:05:02 raspberrypi python3.10[634]: 2023-07-30 10:05:02 DEBUG Opening commcfg.json
Jul 30 10:05:02 raspberrypi python3.10[634]: 2023-07-30 10:05:02 DEBUG Path to commcfg.json: /src/data/user/commcfg.json
Jul 30 10:05:02 raspberrypi python3.10[634]: 2023-07-30 10:05:02 DEBUG commcfg.json content: {'USE': 'MQTT', 'MQTT': [{'CLIENT_ID': 'NAME'}, {'USERNAME': 'zzzzz'}, {'PASSWORD': 'ttttt'}, {'MQTT_SERVER': '192.168.raspimqtt'}, {'PORT': 1883}, {'MOWER_NAME': '/ardumower/NAME'}], 'HTTP': [{'IP': 'http://192.168.rover'}, {'PASSWORD': 'rrrrr'}], 'UART': [{'SERPORT': '/dev/ttyACM0'}, {'BAUDRATE': 115200}]}
Jul 30 10:05:02 raspberrypi python3.10[634]: 2023-07-30 10:05:02 INFO Backend: Used connection: MQTT
Jul 30 10:05:02 raspberrypi python3.10[634]: 2023-07-30 10:05:02 DEBUG Checking connection data
Jul 30 10:05:02 raspberrypi python3.10[634]: 2023-07-30 10:05:02 DEBUG Connection data are valid
Jul 30 10:05:02 raspberrypi python3.10[634]: 2023-07-30 10:05:02 INFO Backend: Read saved data
Jul 30 10:05:03 raspberrypi python3.10[634]: 2023-07-30 10:05:03 INFO Backend: State data are loaded successfully
Jul 30 10:05:03 raspberrypi python3.10[634]: 2023-07-30 10:05:03 INFO Backend: Statistics data are loaded successfully
Jul 30 10:05:03 raspberrypi python3.10[634]: 2023-07-30 10:05:03 INFO Backend: Calced data from state are loaded successfully
Jul 30 10:05:03 raspberrypi python3.10[634]: 2023-07-30 10:05:03 INFO Backend: Calced data from stats are loaded successfully
Jul 30 10:05:03 raspberrypi python3.10[634]: 2023-07-30 10:05:03 INFO Backend: Read map data file
Jul 30 10:05:03 raspberrypi python3.10[634]: 2023-07-30 10:05:03 INFO Backend: Saved perimeters are loaded successfully
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Create networkx edges for perimeter (A* pathfinder)
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 DEBUG NetworkX perimeter edges: 134
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Create networkx edges for exclusions (A* pathfinder)
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 DEBUG NetworkX perimeter + exlusion edges: 134
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Create networkx edges between exclusions and perimeter (A* pathfinder)
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 DEBUG NetworkX perimeter + exclusion + perimeter/exclusion edges: 134
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Perimeter name is successfully saved in tmp.json
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Selected perimeter: Garten
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Read tasks data file
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Failed to load saved tasks from file
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 DEBUG list index out of range
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Establishing MQTT connection to the MQTT-Server
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Connection to the MQTT-Server succsessfull
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Starting server thread
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 DEBUG Backend: Starting MQTT client loop
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Backend is successfully started
Jul 30 10:05:08 raspberrypi python3.10[634]: 2023-07-30 10:05:08 INFO Backend: Subscriptions to the rover MQTT topics succsessfull
 
Das ist das Log von Cassandra journalctl... - sieht für mich OK aus - trotzdem kommt im Interface nichts an...

Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 DEBUG absolute_path: /home/gg/Ardu/src/backend
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 INFO Backend: Read communication config file
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 DEBUG Opening commcfg.json
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 DEBUG Path to commcfg.json: /src/data/user/commcfg.json
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 DEBUG commcfg.json content: {'USE': 'MQTT', 'MQTT': [{'CLIENT_ID': '>
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 INFO Backend: Used connection: MQTT
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 DEBUG Checking connection data
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 DEBUG Connection data are valid
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 INFO Backend: Read saved data
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 INFO Backend: State data are loaded successfully
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 INFO Backend: Statistics data are loaded successfully
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 INFO Backend: Calced data from state are loaded successfully
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 INFO Backend: Calced data from stats are loaded successfully
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 INFO Backend: Read map data file
Jul 30 10:26:25 raspberrypi python3.10[634]: 2023-07-30 10:26:25 INFO Backend: Saved perimeters are loaded successfully
Jul 30 10:26:29 raspberrypi python3.10[634]: 2023-07-30 10:26:29 INFO Backend: Create networkx edges for perimeter (A* pathfinder)
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 DEBUG NetworkX perimeter edges: 134
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Create networkx edges for exclusions (A* pathfinder)
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 DEBUG NetworkX perimeter + exlusion edges: 134
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Create networkx edges between exclusions and perimeter>
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 DEBUG NetworkX perimeter + exclusion + perimeter/exclusion edges: 134
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Perimeter name is successfully saved in tmp.json
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Selected perimeter: Garten
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Read tasks data file
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Failed to load saved tasks from file
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 DEBUG list index out of range
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Establishing MQTT connection to the MQTT-Server
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Connection to the MQTT-Server succsessfull
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Starting server thread
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 DEBUG Backend: Starting MQTT client loop
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Backend is successfully started
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Subscriptions to the rover MQTT topics succsessfull

und var/log/syslog
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Create networkx edges between exclusions and perimeter (A* pathfinder)
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 DEBUG NetworkX perimeter + exclusion + perimeter/exclusion edges: 134
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Perimeter name is successfully saved in tmp.json
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Selected perimeter: Garten
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Read tasks data file
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Failed to load saved tasks from file
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 DEBUG list index out of range
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Establishing MQTT connection to the MQTT-Server
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Connection to the MQTT-Server succsessfull
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Starting server thread
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 DEBUG Backend: Starting MQTT client loop
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Backend is successfully started
Jul 30 10:26:30 raspberrypi python3.10[634]: 2023-07-30 10:26:30 INFO Backend: Subscriptions to the rover MQTT topics succsessfull
 
Kann es daran liegen das bei mir in der ESP32 config.h

#define MQTT_CLIENT_ID NAME

der "Name" als NAME gross geschrieben ist?
...oder sollte dort stehen MQTT_CLIENT_ID Ardumower? - vielleicht kommt deshalb nichts an...
 
Kann es vielleicht daran liegen das bei mir in der ESP32 config.h als Client_ID NAME steht, also wörtlich "NAME"

in der commcfg.json steht
"CLIENT_ID": "Name"
"MOWER_NAME": "ardumower/Ardumower"
-> damit steht die Verbindung und windwos empfängt

Macht es Sinn den ESP32 mit der Clint_ID Ardumower neu zu flashen?, oder hat es damit nichts zu tun?
 
Danke für dieses Projekt! Bin noch beim Inbetriebnehmen, aber schon überzeugt.
Ardumower, DUE, Stromversorgung vom Akku runtergeregelt an Raspi3, UART. Volle Schreibrechte an Cassandra und Unterverzeichnisse und läuft.
(Mitfahrende Cassandra scheint mir die sinnvollste Lösung wegen Reaktionsgeschwindigkeit, aber auch wegen später parallelem Update ArduinoIDE/Sunray)
2 Fragen:
- Zentraler Druck auf Remote Steuerung springt in allen PC-Browsern und Android Handy nach links und Motoren reagieren auch so. Nullpunktjustierung?
- MowSettings Angle dreht mir die Mähfläche um den Nullpunkt raus aus dem Perimeter. Ich hatte die Definition der Richtung von Lines erwartet.
 
Zentraler Druck auf Remote Steuerung springt in allen PC-Browsern und Android Handy nach links und Motoren reagieren auch so. Nullpunktjustierung?
Du musst nach der Installationsanleitung vorgehen und dash_daq.min.js im entsprechenden Verzeichnis ersetzen


MowSettings Angle dreht mir die Mähfläche um den Nullpunkt raus aus dem Perimeter. Ich hatte die Definition der Richtung von Lines erwartet.
Dann hast du den gleichen Fehler wie @EastSoft, ich kann ihn nicht nachstellen. Kannst du dein perimeter.JSON mir zur Verfügung stellen, gerne auch per PN
 
Moin,
wird es in Zukunft die Möglichkeit geben einzelne Perimeterpunkte wie im "EVO Viever" nachträglich zu verschieben?
 
Oben