module:micropython:esp32uartpcuc:esp32uartpcuc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
module:micropython:esp32uartpcuc:esp32uartpcuc [2021/12/21 10:13] – [MicroPython: Esp32Uart] omdevelop | module:micropython:esp32uartpcuc:esp32uartpcuc [2022/09/13 11:58] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
] | ] | ||
- | ===== Übersicht ===== | + | ===== Übersicht ===== |
+ | |||
+ | ==== IT01 ==== | ||
+ | * **1** **2** **3** **4** | ||
+ | * **5** **6** **7** **8** | ||
+ | * **9** **A** **B** **C** | ||
+ | * **0** **S** **T** **N** | ||
+ | |||
+ | ==== Neues Modul: 4x4 KeyPad (entsprechend IT01-FrontKeys) ==== | ||
+ | * 8x IOPin: 4x Input(34, 35, 36, 39) und 4x Output(12, 13, 14, 27) | ||
+ | |||
+ | |||
+ | |||
+ | ==== LocalSystem ==== | ||
+ | |||
+ | * Kapselung aller System-Variablen (CpuTemperature, | ||
+ | * Collector für Commands/ | ||
+ | * LedSystem | ||
+ | * LedQuad(Uart1, | ||
+ | * LCDisplayI2C(PCF8574, | ||
+ | * Temperature / Humidity(DHT22: | ||
+ | * 4x4 KeyPad (entsprechend IT01-FrontKeys) | ||
+ | * Pressure/ | ||
+ | * GetChipID (Examples-Esp32-GetChipID) | ||
+ | |||
+ | |||
+ | ==== UCSystem ==== | ||
+ | * LCDisplayI2C((PCF8574, | ||
+ | * Quertz-Keyboard(PS/ | ||
+ | * Paul Stoffregen Arduino-Library **PS2Keyboard** | ||
+ | * {{https:// | ||
+ | |||
+ | ==== CommandReceiver(relative to Esp32) ==== | ||
+ | * PC-[Uart1]: Command< | ||
+ | * PC/ | ||
+ | * PC/ | ||
+ | * Extension later: PC-[Lan]: Command< | ||
+ | |||
+ | ==== Dispatcher(relative to Esp32) ==== | ||
+ | * LocalSystemDispatcher[Spi, | ||
+ | * ExternalControllerDispatcher[Uart2]: | ||
+ | ==== Dataflow ==== | ||
+ | |||
+ | < | ||
+ | | ||
+ | while (MainLoop): | ||
+ | # | ||
+ | # Esp32< | ||
+ | # | ||
+ | # From PC: receive command -> Pass to Local or UC as command | ||
+ | CommandLine = UartPC.ReadLine() # RxLines-Fifo | ||
+ | AnalyseCommandLine(CommandLine) # -> ChildUC | ||
+ | # # | ||
+ | # # Esp32< | ||
+ | # # | ||
+ | # CommandLine = BtPC.ReadLine() # RxLines-Fifo | ||
+ | # AnalyseCommandLine(CommandLine) # -> ChildUC | ||
+ | # # | ||
+ | # # Esp32< | ||
+ | # # | ||
+ | # CommandLine = WlanPC.ReadLine() # RxLines-Fifo | ||
+ | # AnalyseCommandLine(CommandLine) # -> ChildUC | ||
+ | # # # | ||
+ | # # # Esp32< | ||
+ | # # # | ||
+ | # # CommandLine = LanPC.ReadLine() # RxLines-Fifo | ||
+ | # # AnalyseCommandLine(CommandLine) # -> ChildUC | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # PC< | ||
+ | # | ||
+ | ResponseLine = LocalSystem.ReadLine() # RxLines-Fifo | ||
+ | UartPC.TransmitResponse(ResponseLine) | ||
+ | BtPC.TransmitResponse(ResponseLine) | ||
+ | WlanPC.TransmitResponse(ResponseLine) | ||
+ | LanPC.TransmitResponse(ResponseLine) | ||
+ | # | ||
+ | # Esp32< | ||
+ | # | ||
+ | ResponseLine = UartUC.ReadLine() # RxLines-Fifo | ||
+ | UartPC.TransmitResponse(ResponseLine) | ||
+ | BtPC.TransmitResponse(ResponseLine) | ||
+ | WlanPC.TransmitResponse(ResponseLine) | ||
+ | LanPC.TransmitResponse(ResponseLine) | ||
+ | # | ||
+ | </ | ||
+ | |||
==== Links ==== | ==== Links ==== |
module/micropython/esp32uartpcuc/esp32uartpcuc.1640077982.txt.gz · Last modified: 2021/12/21 11:13 (external edit)