====== CommandLineDispatcher ====== [[http://www.openhardsoftware.de/ | Open Hard- & Software]] [ [[http://www.openhardsoftware.de/dokuwiki | DokuWiki]] [[http://www.openhardsoftware.de/websites | WebSites]] [[http://www.openhardsoftware.de/mediawiki | MediaWiki]] [[http://www.openhardsoftware.de/nextcloud | NextCloud]] ] ===== Übersicht ===== * Modul CommandLineDispatcher Bestandteil von MultiInterfaceDispatcher ==== Hardware ==== * Esp32(UnoBoard): Uart, Bt, Wlan * Stm32(F103C8T6): Uart, Spi, I2c, IOPin * Erweiterung (Esp32-Uart) mit Stm32F407 oder zweitem Stm32(F103C8T6) oder ... * Kommunikation Esp32-Stm32 über Uart ==== Software Esp32 (VSCode, MicroPython) ==== * CCommand: Command-Basisklasse ==== Software Stm32 (VSCode, ArduinoC++) ==== * gesamtes MicroControlling der Hardware mit Stm32 in ArduinoC++ * einzige Ausnahme: Ansteuerung mit Esp32(Uart, Bt, Wlan): SDCard(Spi) und LCDisplay(I2c) ===== Benutzung ===== ===== Entwicklung ===== ==== 211221 : CommandLineDispatcher (uP)==== * Hardware(Usb-Uart-Converter): Esp32-Uart1 : UartPC(entsprechend Uart/Bt/Wlan) mit Rx/TxCommands * Hardware(gekreuzte RX/TX-Leitung): Esp32-Uart2 : UartUP(SubProcessorC++) mit Rx/TxCommands * CP2102(Rx, Tx, Gnd, 5V0) an ESP32(Uart1, Rx25, Tx26, GND, 5V0) angeschlossen ==== 211220 : CommandLineDispatcher (uP)==== * Hardware(Usb-Uart-Converter): Esp32-Uart1 : UartPC(entsprechend Uart/Bt/Wlan) mit Rx/TxCommands * Hardware(gekreuzte RX/TX-Leitung): Esp32-Uart2 : UartUP(SubProcessorC++) mit Rx/TxCommands * CP2102(Rx, Tx, Gnd, 5V0) an ESP32(Uart1, Rx25, Tx26, GND, 5V0) angeschlossen * neues Modul: Esp32UartPCUC ==== 211219 : CommandLineDispatcher (uP)==== * Versuch, Uart0 (belegt unter VSCode mit WepRepl) als Daten-Rx/Tx-Schnittstelle zu gebrauchen, scheitert !!! * Eventuell Pin1/Pin3 mit Transistor abkoppeln und als zusätzliche Uart0 benutzen * PinSwitching: WebRepl disablen (wie auch immer) und Pin1/Pin3 -> PinA/PinB unter UART(0, ...) konfigurieren * Daher: * Esp32-Uart0 : WebRepl-Debug-Usb-PC-Kommunikation * Esp32-Uart1 : UartPC(entsprechend Uart/Bt/Wlan) mit Rx/TxCommands * Esp32-Uart2 : UartUP(SubProcessorC++) mit Rx/TxCommands ==== 211218 : Neues Module - Esp32Uart (uP)==== * [[:module:micropython:Esp32Uart:Esp32Uart | Esp32Uart]] mit CUart und CThread * Kapselung einer (der drei) Uarts des Esp32 ==== 211218 : Automatisierung (uP)==== * Hinzunahme von CThread zur automatischen Abarbeitung der Commands in CommandList * Erzeugung CUart ==== 211217 : Basis (uP) ==== * CCommand * CCommandList **Run-Ausgabe im Terminal:** MicroPython v1.17 on 2021-09-02; ESP32 module with ESP32 Type "help()" for more information. >>> Running c:\Downloads\python\CommandLineDispatcher\CheckCommandLineDispatcher.py >>> CheckCommandLineDispatcher: begin CommandList[4]: Command[MPA] Parameter[X] Parameter[1234] Command[WPR] Parameter[X] Command[MPR] Parameter[X] Parameter[-1234] Command[WPR] Parameter[X] @ MPA X 1234 . @ WPR X . @ MPR X -1234 . @ WPR X CommandList[0]: CheckCommandLineDispatcher: end >>> ===== Version ===== {{:module:micropython:CommandLineDispatcher:2112181004_CommandLineDispatcher_00V01.zip | 2112181004_CommandLineDispatcher_00V01.zip}} \\ ----- [[http://www.openhardsoftware.de/ | Open Hard- & Software]] [ [[http://www.openhardsoftware.de/dokuwiki | DokuWiki]] [[http://www.openhardsoftware.de/websites | WebSites]] [[http://www.openhardsoftware.de/mediawiki | MediaWiki]] [[http://www.openhardsoftware.de/nextcloud | NextCloud]] ]