project:scd_scriptingcommanddispatcher:scd-scriptingcommanddispatcher
Differences
This shows you the differences between two versions of the page.
project:scd_scriptingcommanddispatcher:scd-scriptingcommanddispatcher [2022/01/23 20:38] – [220123 : Esp32 - MicroPython in TinyVersion] omdevelop | project:scd_scriptingcommanddispatcher:scd-scriptingcommanddispatcher [2022/09/13 11:58] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 47: | Line 47: | ||
+ | ===== Übersicht ===== | ||
+ | ===== zukünftige Aufgaben ===== | ||
+ | [[: | ||
+ | ==== ScriptingCommandDispatcher: | ||
+ | [[: | ||
- | ===== Entwicklungsschritte: FutureDo ===== | + | ==== SCD-ScriptingCommandDispatcher: Finale Version |
+ | [[: | ||
- | ==== 2201xx : IT01-Bricks ==== | ||
- | * Aufbau eines Modells des IT01 mit Bricks | ||
- | * Hardware des IT01: | ||
- | * PressureSensor | ||
- | * DosingValve(DCMotor, | ||
- | * Acht OnOffValves | ||
- | * Display(4x20) | ||
- | * Keyboard(4x4) | ||
- | * Drucker(Uart, | ||
- | * Software IT01Manager: | ||
- | * Tiny: VSCode, | ||
- | * Pro: VSCode,C++ für Esp32(Interfaces UartPC/ | ||
- | * VSCode,C++ für Stm32F103(UartUC) | ||
- | * Windows Python-GUI mit UCUart über USB-Uart-Converter(UartUC) | ||
- | ==== 2201xx : ChildProcessor ==== | ||
- | * VSCode mit C++ | ||
- | * CommandDispatcher (vormals: @LSO, @LSF) für \$LSO, \$LSF, also mit Header \$ ! | ||
- | * daher Dispatcher.ExecuteCommand: | ||
- | * VSCode mit Stm32F103C8T6-Module programmieren | ||
- | ==== 2201xx : BIN-Files ==== | ||
- | * C++-Files compiled into MicroPython.bin | ||
- | * {{https:// | ||
- | |||
- | |||
- | ==== 2201xx : Vermutlich Ziellösung ==== | ||
- | * Esp32(C++, VSCode) mit UartPC, UartUC(Chain), | ||
- | * entweder: RPiPico(MicroPython, | ||
- | * oder: Esp32(MiniModule, | ||
- | * Stm32xxx(C++, | ||
- | |||
- | {{: | ||
- | |||
- | \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ \\ | ||
- | \\ \\ | ||
- | |||
- | ==== 220119 : Kompromiss-Erweiterung ==== | ||
- | * **OOO** Hardware: weiterer Stm32F103-Controller | ||
- | * Verkettung Stm32F103-TxD-/ | ||
- | |||
- | ===== Unbedingt noch erledigen ===== | ||
- | * **OOO** DokuWiki: | ||
- | * **OOO** Esp32ExecuteFile: | ||
- | |||
- | |||
- | ===== Entwicklungsschritte: | ||
- | ==== 220123 : Esp32 - MicroPython in TinyVersion ==== | ||
- | * Aktuelle Esp32-ScriptingCommandDispatcher-Version: | ||
- | * {{: | ||
- | * Aktuelle Pc-ScriptingCommandDispatcher-Version: | ||
- | * {{: | ||
- | * SDCard aus Esp32SCD löschen! | ||
- | * XPS-ExecutePythonScript auf MFS-MemoryFileSystem einschränken | ||
- | * Dispatcher.ResetProgram als Command integrieren | ||
- | * BasisVersion mit Macke: kein MultiExecute über PC-Python-WlanUdp! | ||
- | * BasisVersion Esp32: {{: | ||
- | * BasisVersion PC: {{: | ||
- | ==== 220123 : Esp32 - KEINE SDCard / KEIN Lan in MicroPython ==== | ||
- | * später (ProVersion): | ||
- | * später (ProVersion): | ||
- | * weitermachen mit TinyVersion: | ||
- | * daher: löschen der SDCard.py-Datei | ||
- | |||
- | * Ergebnis: | ||
- | * keine bidirektionale Umschaltung zwischen MemoryFileSystem und CardFileSystem möglich 👎👎👎 | ||
- | * -> keine SDCard unter MicroPython, | ||
- | * keine Lan-W5500-Möglichkeit unter Esp32-MicroPython -> kein W5500-Lan | ||
- | |||
- | * ABER: | ||
- | * nach Fertigstellung des SCDtiny kommt SCDpro: | ||
- | * Esp32 in C++ mit Uart& | ||
- | * Esp32 in C++ mit Spi-SDCard | ||
- | * Separater MicroPython-Processor | ||
- | * intern: Esp32/ | ||
- | * extern: RPi3B/ | ||
- | ==== 220122 : Einschub: EspSDCard CFS <-> MFS ==== | ||
- | * Sequentieller Zugriff auf beide FileSystems: | ||
- | * MFS : MemeoryFileSystem(default) | ||
- | * CFS : CardFileSystem | ||
- | * Basis: {{: | ||
- | * --- gilt nur für ESP32(MicroPython, | ||
- | * Ergebnis: SDCard unter MicroPython nur sehr eingeschränkt nutzbar! | ||
- | * Nur einmal Wechsel von MFS -> CFS möglich! | ||
- | * Kein Wechsel von CFS -> MFS möglich! | ||
- | * notwendiger SoftSystemReset am Program-Ende! | ||
- | * default: MFS mounted | ||
- | * kein umount von MFS möglich | ||
- | * alle Missergebnisse unter **Esp32SDCard** | ||
- | * damit: ESP32(MicroPython, | ||
- | * KEIN LAN möglich | ||
- | * KEIN Wechsel MFS< | ||
- | * -> Esp32 nur als Tiny(Ohne SDCard, Lan) in MicroPython einsetzbar... | ||
- | |||
- | ==== 220122 : Kompromiss-Erweiterung: | ||
- | * Fehler im FileSystem??? | ||
- | * exec(open(' | ||
- | * ' | ||
- | * weiter mit blinky, wird jetzt ausgeführt: | ||
- | * secure Esp32: {{: | ||
- | * secure PC: {{: | ||
- | * ganz sicher: exec(exec(open(< | ||
- | * wenn SDCard noch geöffnet ist !!!! | ||
- | * so, ENDLICH Fehler gefunden: | ||
- | * Wird eine SDCard aktiv an Esp32 angeschlossen UND bleibt(!) eine Protocol-Datei geöffnet, greift | ||
- | * > exec(open(' | ||
- | * NICHT auf das LFS-LocalFileSystem zu, sondern auf die Files der SDCard! | ||
- | * -> IMMER nach SD-Access File.open() auch wieder schliessen : File.close() !!! | ||
- | * {{: | ||
- | * {{: | ||
- | * **OOO** die letzten beiden Esp32/ | ||
- | |||
- | ==== 220122 : Kompromiss-Erweiterung: | ||
- | * (deutliche) Übergabe von globalen und lokalen Übergabeparametern: | ||
- | * (deutliche) Übergabe von globalen und lokalen Übergabeparametern: | ||
- | * {{: | ||
- | |||
- | === Ausgabe 2201221134_Esp32ExecuteFile_01V03 : Locals & Globals === | ||
- | <code text> | ||
- | >>> | ||
- | *** Esp32ExecuteFile: | ||
- | ######################################## | ||
- | --- Locals ------------------------------- | ||
- | {' | ||
- | --- Globals ------------------------------ | ||
- | {' | ||
- | ------------------------------------------ | ||
- | --- Begin -------------------------------- | ||
- | GInteger[13000] | ||
- | GCalculator[321] | ||
- | --- Main -------------------------------- | ||
- | GInteger[13000] | ||
- | GCalculator[321] | ||
- | Execute: | ||
- | --- blinky: | ||
- | --- blinky: LLL[13000] | ||
- | --- blinky: Calculator[321] | ||
- | --- blinky: [13001] | ||
- | --- blinky: Calculator[10321] | ||
- | --- blinky:end | ||
- | Execute:end | ||
- | GInteger[13001] | ||
- | GCalculator[10321] | ||
- | --- End -------------------------------- | ||
- | GInteger[13001] | ||
- | GCalculator[10321] | ||
- | ######################################## | ||
- | --- Locals ------------------------------- | ||
- | {' | ||
- | --- Globals ------------------------------ | ||
- | {' | ||
- | ------------------------------------------ | ||
- | Handler[4321] | ||
- | --- Handler -------------------------------- | ||
- | Handler[4321] | ||
- | Handler-Execute: | ||
- | --- blinky: | ||
- | --- blinky: LLL[13001] | ||
- | --- blinky: Calculator[10321] | ||
- | --- blinky: [13002] | ||
- | --- blinky: Calculator[20321] | ||
- | --- blinky:end | ||
- | Handler-Execute: | ||
- | Handler[8642] | ||
- | --- Handler -------------------------------- | ||
- | Handler[8642] | ||
- | Handler-Execute: | ||
- | --- blinky: | ||
- | --- blinky: LLL[13002] | ||
- | --- blinky: Calculator[20321] | ||
- | --- blinky: [13003] | ||
- | --- blinky: Calculator[30321] | ||
- | --- blinky:end | ||
- | Handler-Execute: | ||
- | Handler[17284] | ||
- | --- Handler -------------------------------- | ||
- | Handler[17284] | ||
- | Handler-Execute: | ||
- | --- blinky: | ||
- | --- blinky: LLL[13003] | ||
- | --- blinky: Calculator[30321] | ||
- | --- blinky: [13004] | ||
- | --- blinky: Calculator[40321] | ||
- | --- blinky:end | ||
- | Handler-Execute: | ||
- | Handler[34568] | ||
- | --- End -------------------------------- | ||
- | GInteger[13004] | ||
- | GCalculator[40321] | ||
- | Handler[34568] | ||
- | ######################################## | ||
- | *** Esp32ExecuteFile: | ||
- | ♦♦> | ||
- | </ | ||
- | |||
- | |||
- | ==== 220122 : Kompromiss-Erweiterung: | ||
- | * Basis MicroPython: | ||
- | * (deutliche) Übergabe von globalen Übergabeparametern: | ||
- | * (deutliche) Übergabe von globalen Übergabeparametern: | ||
- | * {{: | ||
- | * {{: | ||
- | |||
- | \\ \\ \\ \\ \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ \\ \\ \\ \\ | ||
- | |||
- | |||
- | ==== 220121 : Kompromiss-Erweiterung: | ||
- | * (von unten:) Ausbau des Dispatchers mit neuen Commands: | ||
- | * **???!!!** Problem: Übergabe von globalen SystemVariablen an Scripts !!!??? | ||
- | * Übergabe globals() und locals() gelöst Python auf dem PC | ||
- | * DokuWiki: **!!! OOO !!!** noch pages: | ||
- | * Parameter-Übergabe in Python: {{: | ||
- | * Parameter-Übergabe in MicroPython (als Basis für XPS...-Commands): | ||
- | * {{: | ||
- | * ÜbergabeParameter Local: {{: | ||
- | |||
- | === Ausgabe von 2201211901_Esp32ExecuteFile_01V02 === | ||
- | {{: | ||
- | |||
- | |||
- | === MicroPython-Main-Program: | ||
- | <code python> | ||
- | # | ||
- | class CCalculator(): | ||
- | def __init__(self): | ||
- | self.Result = 123 | ||
- | return | ||
- | def Add(self, a, b): | ||
- | self.Result = a + b | ||
- | return self.Result | ||
- | # | ||
- | def Execute(): | ||
- | print(' | ||
- | L = 4321 | ||
- | exec(open(' | ||
- | print(' | ||
- | return | ||
- | # | ||
- | print(' | ||
- | print(' | ||
- | print(locals()) | ||
- | print(' | ||
- | print(globals()) | ||
- | print(' | ||
- | C = CCalculator() | ||
- | print(C.Result) | ||
- | C.Add(3, 4) | ||
- | print(C.Result) | ||
- | L = 4321 | ||
- | Execute() | ||
- | print(C.Result) | ||
- | # | ||
- | print(' | ||
- | </ | ||
- | |||
- | === MicroPython-Execute-Program: | ||
- | <code python> | ||
- | import time as TIM | ||
- | # | ||
- | print(' | ||
- | # NC !!! global C | ||
- | print(' | ||
- | # | ||
- | for I in range(10, 13): | ||
- | # | ||
- | C.Add(1, I) | ||
- | print(' | ||
- | TIM.sleep(0.5) | ||
- | print(' | ||
- | </ | ||
- | |||
- | === Program-Output: | ||
- | {{: | ||
- | \\ \\ \\ \\ \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ \\ \\ \\ \\ \\ | ||
- | |||
- | * UPS - Upload Python-Script < | ||
- | * DPS - Download Python-Script < | ||
- | * mit Scripting - daher auch SCD-ScriptingCommandDispatcher | ||
- | * MultiTasking Verarbeitung von uP-Scripts (execute filename.py): | ||
- | * XPS - Execute Python-Script < | ||
- | * APS - Abort (all) Python-Script(s) < | ||
- | |||
- | |||
- | ==== 220120 : Kompromiss-Erweiterung RPi ==== | ||
- | * **OOO** RPiZW mit Netzteil von WBoogaerts ausprobieren!!! | ||
- | * Wunsch: RPiZW mit Python und Uart(-UartUC!) | ||
- | * ------------------------------------ | ||
- | * ZielA: RPiZW für PSR-PythonScriptRemoting über UartUC | ||
- | * ZielB: RPi3/4 GuiTerminal mit PSR über UartUC | ||
- | * ZielC: RPiP(ico) mit PSR über UartUC | ||
- | * ------------------------------------ | ||
- | * hat überhaupt nicht funktioniert, | ||
- | * Austausch von RPiZW mit RPi3B | ||
- | * Anschluss von 20pin-RPi-Steckerleiste: | ||
- | * Python-Library: | ||
- | * Installation: | ||
- | * Top-Erklärung {{https:// | ||
- | * GESCHAFFT: Uart0 auf RaspberryPi-Stecker(rechts RPi-Remote-Desktop) | ||
- | * kommuniziert mit 115200baud -> FTDI-Uart-USB -> mit PC-USB und Terminal(links) | ||
- | {{: | ||
- | {{: | ||
- | \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ | ||
- | |||
- | |||
- | ==== 220119 : Kompromiss-Erweiterung ==== | ||
- | * um AdressCharacter (0..9, A..Z) erweiterte Syntax: < | ||
- | * bisher Commands: | ||
- | * X LSO - LedSystemOn | ||
- | * X LSF - LedSystemOff | ||
- | * X Ausbau des Dispatchers mit neuen Keyboard-Commands: | ||
- | * X EKB - EnableKeyboard | ||
- | * X DKB - DisableKeyboard | ||
- | * X APR - AbortProgramReset (Dispatcher.AbortProgramReset()) | ||
- | * {{: | ||
- | * X Ausbau des Dispatchers mit neuen LCDisplay-Commands: | ||
- | * X CLD - Clear Display | ||
- | * X WDT <r> <c> <t> - WriteDisplayText Row Column Text | ||
- | * X SDO - SetDisplayOn | ||
- | * X SDF - SetDisplayOff | ||
- | * X SBO - SetBacklightOn | ||
- | * X SBF - SetBacklightOff | ||
- | * {{: | ||
- | |||
- | * Ausbau des Dispatchers mit neuen Commands: | ||
- | * **???!!!** Problem: Übergabe von globalen SystemVariablen an Scripts !!!??? | ||
- | * UPS - Upload Python-Script < | ||
- | * DPS - Download Python-Script < | ||
- | * mit Scripting - daher auch SCD-ScriptingCommandDispatcher | ||
- | * MultiTasking Verarbeitung von uP-Scripts (execute filename.py): | ||
- | * XPS - Execute Python-Script < | ||
- | * APS - Abort (all) Python-Script(s) < | ||
- | | ||
- | |||
- | ==== 220119 : Kompromiss ==== | ||
- | * / (nicht) alle Hardware Threads umwandeln in Execute-Methoden | ||
- | * X Nur noch 3 Threads: | ||
- | * X ThreadMain : existiert per Definition, Main-Loop | ||
- | * / ThreadInterface : | ||
- | * ALLE sleep()s eleminieren! | ||
- | * / KEIN UartPC.Execute, | ||
- | * / KEIN UartUC.Execute, | ||
- | * X BtUartAD.Execute | ||
- | * X WlanUdpPC.Execute | ||
- | * X ThreadController : | ||
- | * ALLE sleep()s eleminieren! | ||
- | * X Keyboard4x4.Execute | ||
- | * X LCDisplayI2C.Execute | ||
- | * X SDCard.Execute | ||
- | * Ausgangsversion: | ||
- | * {{: | ||
- | * Reduktion auf drei Threads: | ||
- | * {{: | ||
- | * mit DEBUG- und ACTIVITY-Constants: | ||
- | * {{: | ||
- | | ||
- | ==== 220118 : Esp32ThreadCountMaximum ==== | ||
- | * MinimalProgram zum Test der Maxizahl von parallelen Threads | ||
- | * MinimalProgram : die Anzahl der parallelen Threads in MicroPython auf 16 begrenzt! | ||
- | * " | ||
- | * falsch: gc.collect / gc.free_ram Ausgabe zeigt, dass genügend RAM während der parallelen 16-fach Thread-Verarbeitung (100kB !!!) vorhanden ist! | ||
- | * ABER: am RAM kann es nicht liegen: in den aufeinander folgenden Thread-States(start/ | ||
- | * Ungelöstes Problem: ??? Welcher Mechanismus verhindert den Start von mehr als 16 Threads bei Minimal-Programm ??? | ||
- | |||
- | {{: | ||
- | |||
- | {{: | ||
- | |||
- | {{: | ||
- | |||
- | \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ | ||
- | \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ | ||
- | \\ | ||
- | |||
- | ==== 220118 : MPY-Files ==== | ||
- | * precompiled Python-Files | ||
- | * {{https:// | ||
- | * am 220118 versucht: | ||
- | * Modul: / | ||
- | * !!! noch Module-DokuWiki erzeugen !!! | ||
- | * precompile: **python -m mpy-cross Esp32MpyFile.py** | ||
- | * erzeugt: **Esp32MpyFile.mpy** | ||
- | * aber: ~dieser *.mpy-File nur auf PC lauffähig, nicht auf MicroController! | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ==== 220113 : System-Time ==== | ||
- | * Events werden immer in Row3 (unterste Zeile) des Displays ausgegeben | ||
- | * LedSystem mit OnEvent ausstatten | ||
- | * Erzeugung eines Sekunden-Events mit **!EST < | ||
- | * Vollversion: | ||
- | * Vollversion: | ||
- | ==== 220113 : Autostart ==== | ||
- | * Keine Änderung **boot.py** | ||
- | * Erzeugung/ | ||
- | |||
- | |||
- | ==== 220113 : Reaktivierung Commands ==== | ||
- | * Dispatcher.Commands (entsprechend Dispatcher.Events) | ||
- | * volle kreuz/ | ||
- | * Generierung KeyCode-Events mit Tastatur4x4 | ||
- | * Ansteuerung LCDisplayI2C | ||
- | * {{project: | ||
- | * {{project: | ||
- | |||
- | ==== 220113 : Zeit-Prozess-Optimierung ==== | ||
- | * Versuch: CB Keyboard4x4_OnKeyEvent pushed nur noch Event -> EventLines(Dispatcher) | ||
- | * Main: Dispatcher.Execute -> BtUartAD- / WlanUdpPC- / UartUC- / UartPC.TxLine(event) | ||
- | * {{project: | ||
- | ==== 220112 : Hardware/ | ||
- | * Zusatz-Hardware: | ||
- | * Version mit LCDisplay: {{project: | ||
- | * jetzt auch mit UartUC (bisher CreateThread-Exceeption) : | ||
- | * {{project: | ||
- | * ab und zu: Problem bei Bt-Connection mit AndroidDevice (Connection failed gatt status 133) | ||
- | * Lösung: noch einmal verbinden!!!! | ||
- | * {{project: | ||
- | |||
- | * Zusatz-Hardware: | ||
- | * Keyboard-Tastendruck sendet Event zu allen (Uart/ | ||
- | * {{project: | ||
- | |||
- | |||
- | |||
- | |||
- | ==== 220112 : geplante(!) Software-Erweiterung ==== | ||
- | * mit Scripting - daher auch SCD-ScriptingCommandDispatcher | ||
- | * MultiTasking Verarbeitung von uP-Scripts (execute file.py) | ||
- | * Ausbau des Dispatchers mit neuen Commands: | ||
- | * UPS - Upload Python-Script < | ||
- | * DPS - Download Python-Script < | ||
- | * XPS - Execute Python-Script < | ||
- | * APS - Abort (all) Python-Script(s) < | ||
- | * Ausbau des Dispatchers mit neuen LCDisplay-Commands: | ||
- | * WTD <r> <c> <t> - WriteTextDisplay Row Column Text | ||
- | * CLD - Clear Display | ||
- | * Ausbau des Dispatchers mit neuen Keyboard-Commands: | ||
- | * EKB - EnableKeyboard | ||
- | * DKB - DisableKeyboard | ||
- | | ||
- | |||
- | |||
- | |||
- | ===== Entwicklungsschritte: | ||
- | |||
- | |||
- | ==== Erweiterung ==== | ||
- | * **!!! OOO !!!** Schaltplan SCD | ||
- | * SDCard(Spi-Interface) an Esp32/ | ||
- | * MicroController UC als ChildProcessor an Uart (< | ||
- | |||
- | ==== 220101 : Zusammenführung ==== | ||
- | * PC(!): CommandDispatcher | ||
- | * Gui Tkinter mit Listbox, Terminal, CommandButtons | ||
- | * Command-Fifo | ||
- | * Definition Command-Software-Handshake | ||
- | * Test mit Esp32 : Esp32UdpClientServer02V01 | ||
- | |||
- | ==== 2112XX - Esp32UnoBoard MicroPython : InterfaceCommandDispatcher ==== | ||
- | * CommandLineDispatcher für Uart, Bt, Wlan | ||
- | |||
- | ==== 211215 - Esp32UnoBoard MicroPython : CommandLineDispatcher ==== | ||
- | * X Neues Modul: CommandLineDispatcher | ||
- | * X CCommand, CDispatcher | ||
- | * **O** Analyse Command from received line | ||
- | * **O** Execute Command | ||
- | * **O** MultiLine-Fifo-Support (mit List []) | ||
- | |||
- | |||
- | ==== 211214 - MultiProcessExecution ==== | ||
- | * **X** Esp32-Plattform mit MicroPython | ||
- | * **X** Parallelisierung von MicroPython-Process-Scripten | ||
- | * **--** Esp32 mit MicroPython-CommandLine-Interfaces: | ||
- | * **O** MiroPython-Scripts: | ||
- | * **O** Erweiterung mit RealTime-Prozessoren (Stm32F407) unter Arduino-C++ | ||
- | * **O** Stm32: eine Uart zur bidirektionalen Kommunikation mit Esp32 (Uart2/3) | ||
- | * **O** eventuell zweiter Stm32 ebenfalls mit bidirektionaler Kommunikation mit Esp32 (Uart3/2) | ||
- | * **O** Esp32 -> Stm32: Durchreichen der Esp32-detektierten Commands (Uart, Wlan, Bt) zum Stm32 | ||
- | * **O** Rückmeldung / SystemEvents Stm32 -> Esp32 -> Uart, Wlan, Bt | ||
- | |||
- | ==== Esp32: lokale Datenerfassung ==== | ||
- | * Kapselung aller System-Variablen (CpuTemperature, | ||
- | * Collector für Commands/ | ||
- | * LedSystem | ||
- | * LedQuad(Uart1, | ||
- | * DHT22: Temperature/ | ||
- | |||
- | ===== Entwicklungsschritte: | ||
- | |||
- | ==== 220112 : Dispatcher ==== | ||
- | * Basis: 2201112144_Esp32ScriptingCommandDispatcher_00V02 | ||
- | * Dispatcher soll CBfunction erhalten | ||
- | * If-Verteiler zur Ausführung von Commands | ||
- | * {{: | ||
- | |||
- | ==== 220111 : Zusammenführung Uart/ | ||
- | * Neues Projekt: ScriptingCommandDispytcher | ||
- | * Kopie aller letzten Uart/ | ||
- | * Zusätze: Thread.py/ | ||
- | * Version: {{: | ||
- | * Version mit Bt-Klassenaufspaltung: | ||
- | * Uart-/ | ||
- | |||
- | |||
- | |||
- | ==== 220111 : Bluetooth-Version ==== | ||
- | * Optimierung des SourceCodes: | ||
- | * Optimierung des SourceCodes: | ||
- | * mit Open/ | ||
- | * Version OOP aufgeräumt: | ||
- | * funktioniert wiederholbar auf Android-Devices unter BT-Terminal | ||
- | |||
- | |||
- | ==== 220110 : Bluetooth-Version ==== | ||
- | * C++ BtSerial funktioniert mit Android- & Windows-Terminal | ||
- | * uP dagegen nur mit Android-Terminal | ||
- | * Suche nach Bt bzw. BtBle-Uart-Terminal-Example erfolglos: | ||
- | * aktuell nur BtUart über Android- (und nicht Win-/ | ||
- | * keine Change, wenn mit BtDeviceNames oder UUIDs gespielt wird - | ||
- | * Reste lassen sich nur teilweise mit DeviceManager ShowHidden beseitigen! | ||
- | |||
- | ==== 220109 : Optimierte Einzelversionen ==== | ||
- | * neuer Projektname: | ||
- | * CUart: Thread: Open start / Close abort, lokale Thread-CB, external: OnTxLine, OnRxLine | ||
- | * CUart: Callback: OnTxLine, OnRxLine | ||
- | * CUart: Constructor: | ||
- | * CUart: Handler: Open, Close | ||
- | * CUart: Thread-Busy: | ||
- | * 0: RxData - convert/ | ||
- | * 1: first: RxData - callback | ||
- | * 2: second: TxData - send / callback | ||
- | * CUart: RxLine: | ||
- | * erste Möglichkeit: | ||
- | * zweite Möglickeit: | ||
- | * CUart: TxLine: Senden von TxLines mit Uart.TxLine(txline) | ||
- | * {{: | ||
- | * {{: | ||
- | * {{: | ||
- | ==== 220106 : BT-Dongle LogiLink und TP-Link | ||
- | * **XXX** Neue BT-Dongle LogiLink und TP-Link ausprobieren!!! | ||
- | * keine Änderung, ebenso kann Esp32BtUart nicht mit PC über UsbUart kommunizieren | ||
- | |||
- | ==== bis 220108 : Einstiegsversuche ==== | ||
- | * Versuch, alle lokalen Ressourcen einzubinden | ||
- | * 2112161443_Esp32LCDisplayI2C_01V01 | ||
- | * 2112251413_Esp32DisplayKey_01V03 | ||
- | * LedSystem | ||
- | * noch nicht verwendet: 2112312248_PcWlanUdpThread_01V01 | ||
- | * Versuch, alle Interfaces einzubinden | ||
- | * 2112261253_Esp32UartThread_01V01 | ||
- | * 2112271828_Esp32BtThread_01V04_onlyPhoneTablet | ||
- | * 2112312248_Esp32WlanUdpThread_01V01 | ||
- | * erkannte Notwendigkeit: | ||
- | * daher Uart/ | ||
- | |||
- | ==== 220101 : SCD - ScriptingCommandDispatcher ==== | ||
- | * Esp32ScriptingCommandDispatcher | ||
- | * Übernahme Module 2112312248_Esp32WlanUdpThread_01V01 | ||
- | * Umbenennen SCD | ||
- | * | ||
- | * Zwei neue Modul-Verzeichnisse (in Downloads/ | ||
- | * PcScriptingCommandDispatcher | ||
- | * Esp32ScriptingCommandDispatcher | ||
- | ==== 220101 : Zusammenführung ==== | ||
- | * der bisherigen Ergebnisse (PC:Python - ESP32: | ||
- | * Pc/ | ||
- | * PC-Terminal: | ||
- | * {{: | ||
- | * Pc/ | ||
- | * {{: | ||
- | * {{: | ||
- | * AndroidTablet/ | ||
- | * {{https:// | ||
- | * {{: | ||
- | |||
- | ==== 211231 : PC/ | ||
- | * [[: | ||
- | * [[: | ||
- | |||
- | ==== 211228 : Heute ausschliesslich: | ||
- | * Wiederherstellung der Projekte | ||
- | * Esp32, MicroPython: | ||
- | * PC, Python: | ||
- | * Zusammenführung in Esp32WlanThread | ||
- | |||
- | ==== 211228 : Idee: zuerst mit neuen TPLink und LogiLink-BT-USB-Dongles Terminal-Communication ==== | ||
- | * zwischen PC und PC - Problem | ||
- | * zwischen PC und Phone/ | ||
- | * zwischen ESP32 und Phone/ | ||
- | * zwischen ESP32 und PC aufbauen - nicht reproduzierbare Probleme, abhängig vom Dongle-Typ | ||
- | |||
- | ==== 211227 : Bt-Dongles ==== | ||
- | * Auf allen möglichen Linux/ | ||
- | * mal werden die ESP32-BT-Devices erkannt , mal nicht, der allergrösste SCHEISS 👎👎 | ||
- | * Letzter Versuch: Kauf eines ORIGINAL Win10/ | ||
- | |||
- | |||
- | ==== 211227 : GANZ WICHTIG: MicroPython-Example entsprechend C++ Esp32BluetoothSerial finden !!! ==== | ||
- | |||
- | |||
- | ==== 211227 : Esp32BtThread ==== | ||
- | * bisher ein völlig hoffnungsloser Kampf: | ||
- | * mit Handy / Tablet sieht die Et-Connection mittlerweise erfolgreich aus | ||
- | * mit PC überhaupt nicht👎👎👎 | ||
- | * C++-Version Esp32BluetoothSerial funktioniert dagegen mit PC-Terminal - warum auch immer??!! | ||
- | * vermutlich Pairing in der MicroPython-Version anders als in C++-Library? | ||
- | * Jetzt noch letzter Versuch, Esp32WlanThread entsprechend Esp32BtThread und Esp32UartThread zu programmieren... | ||
- | |||
- | * 211225: jetzt wieder Minimal-Multithreading mit Esp32-Uart-Wlan-Bt | ||
- | * parallele Command/ | ||
- | * Basis-Minimal-Projekt: | ||
- | |||
- | ==== 211225 - Esp32DisplayKey ==== | ||
- | * Dual-Threading Display / Keyboard Application zur parallelen Verarbeitung von Esp32-IO | ||
- | * [[: | ||
- | |||
- | ==== 211214 - Esp32: Module: MultiProcessExecution ==== | ||
- | * gleichzeitig: | ||
- | * und parallel: Thread2: execfile(' | ||
- | * und Hauptprogramm ausführen lassen. | ||
- | * Ziel: CommandDispatcher (mit Threads Uart, Bt, Wlan, Lan) und | ||
- | * parallel execfile(commandscript.py) ausführen | ||
- | * [[: | ||
- | |||
- | ==== 211213 - Test PC <-> (Udp) <-> Esp32 ==== | ||
- | * Reduktion unnötiger Callback-Funktionen | ||
- | * PC: [[: | ||
- | * Esp32: [[: | ||
- | |||
- | ==== 211212 - Esp32: Senden und Empfangen von UDP-Datenpaketen ==== | ||
- | * [[: | ||
- | * [[: | ||
- | * Esp32UnoBoard/ | ||
- | * Transmit/ | ||
- | |||
- | ==== 211210 - PC: ESP32 ==== | ||
- | *[[: | ||
- | * Transmit/ | ||
- | * [[: | ||
- | * [[: | ||
- | |||
- | * Esp32 : Basis-Module | ||
- | * [[: | ||
- | * [[: | ||
- | * [[: | ||
- | * Esp32UnoBoard mit MicroPython | ||
----- | ----- |
project/scd_scriptingcommanddispatcher/scd-scriptingcommanddispatcher.1642966710.txt.gz · Last modified: 2022/01/23 21:38 (external edit)