Table of Contents

SCD-ScriptingCommandDispatcher: Tiny

Open Hard- & Software [ DokuWiki WebSites MediaWiki NextCloud ]

Entwicklungsschritte SCD-Tiny

220123 : Esp32 - MicroPython in TinyVersion

220123 : Esp32 - KEINE SDCard / KEIN Lan in MicroPython

220122 : Einschub: EspSDCard CFS <-> MFS

220122 : Kompromiss-Erweiterung: Einbau EspExecuteFile in Esp32SCD

220122 : Kompromiss-Erweiterung: Esp32ExecuteFile (Locals)

Ausgabe 2201221134_Esp32ExecuteFile_01V03 : Locals & Globals

>>>
*** Esp32ExecuteFile: begin
########################################
--- Locals -------------------------------
{'Handler': <CHandler object at 3ffe5880>, 'HAN': <module 'Handler' from 'Handler.py'>, 'gc': <module 'gc'>, 'GInteger': 13004, 'GCalculator': <CCalculator object at 3ffe5140>, 'CAL': <module 'Calculator' from 'Calculator.py'>, 'bdev': <Partition type=1, subtype=129, address=2097152, size=2097152, label=vfs, encrypted=0>, 'TIM': <module 'utime'>, 'I': 2, '__name__': '__main__', 'Execute': <function Execute at 0x3ffea3d0>, 'time': <module 'utime'>, 'uos': <module 'uos'>}
--- Globals ------------------------------
{'Handler': <CHandler object at 3ffe5880>, 'HAN': <module 'Handler' from 'Handler.py'>, 'gc': <module 'gc'>, 'GInteger': 13004, 'GCalculator': <CCalculator object at 3ffe5140>, 'CAL': <module 'Calculator' from 'Calculator.py'>, 'bdev': <Partition type=1, subtype=129, address=2097152, size=2097152, label=vfs, encrypted=0>, 'TIM': <module 'utime'>, 'I': 2, '__name__': '__main__', 'Execute': <function Execute at 0x3ffea3d0>, 'time': <module 'utime'>, 'uos': <module 'uos'>}
------------------------------------------
--- Begin --------------------------------
GInteger[13000]
GCalculator[321]
--- Main --------------------------------
GInteger[13000]
GCalculator[321]
Execute:begin
--- blinky:begin
--- 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 -------------------------------
{'Handler': <CHandler object at 3ffeb7e0>, 'HAN': <module 'Handler' from 'Handler.py'>, 'gc': <module 'gc'>, 'GInteger': 13001, 'GCalculator': <CCalculator object at 3ffea3e0>, 'CAL': <module 'Calculator' from 'Calculator.py'>, 'bdev': <Partition type=1, subtype=129, address=2097152, size=2097152, label=vfs, encrypted=0>, 'TIM': <module 'utime'>, 'I': 0, '__name__': '__main__', 'Execute': <function Execute at 0x3ffea3d0>, 'time': <module 'utime'>, 'uos': <module 'uos'>}
--- Globals ------------------------------
{'Handler': <CHandler object at 3ffeb7e0>, 'HAN': <module 'Handler' from 'Handler.py'>, 'gc': <module 'gc'>, 'GInteger': 13001, 'GCalculator': <CCalculator object at 3ffea3e0>, 'CAL': <module 'Calculator' from 'Calculator.py'>, 'bdev': <Partition type=1, subtype=129, address=2097152, size=2097152, label=vfs, encrypted=0>, 'TIM': <module 'utime'>, 'I': 0, '__name__': '__main__', 'Execute': <function Execute at 0x3ffea3d0>, 'time': <module 'utime'>, 'uos': <module 'uos'>}
------------------------------------------
Handler[4321]
--- Handler --------------------------------
Handler[4321]
Handler-Execute:begin
--- blinky:begin
--- blinky: LLL[13001]
--- blinky: Calculator[10321]
--- blinky: [13002]
--- blinky: Calculator[20321]
--- blinky:end
Handler-Execute:end
Handler[8642]
--- Handler --------------------------------
Handler[8642]
Handler-Execute:begin
--- blinky:begin
--- blinky: LLL[13002]
--- blinky: Calculator[20321]
--- blinky: [13003]
--- blinky: Calculator[30321]
--- blinky:end
Handler-Execute:end
Handler[17284]
--- Handler --------------------------------
Handler[17284]
Handler-Execute:begin
--- blinky:begin
--- blinky: LLL[13003]
--- blinky: Calculator[30321]
--- blinky: [13004]
--- blinky: Calculator[40321]
--- blinky:end
Handler-Execute:end
Handler[34568]
--- End --------------------------------
GInteger[13004]
GCalculator[40321]
Handler[34568]
########################################
*** Esp32ExecuteFile: end
♦♦>

220122 : Kompromiss-Erweiterung: ExecuteFile (Globals)


















220121 : Kompromiss-Erweiterung: ExecuteFile

Ausgabe von 2201211901_Esp32ExecuteFile_01V02

 2201211901_Esp32ExecuteFile_01V02.png

MicroPython-Main-Program: Esp32ExecuteFile.py

#
class CCalculator():
    def __init__(self):
        self.Result = 123
        return
    def Add(self, a, b):
        self.Result = a + b
        return self.Result
#
def Execute():
    print('Execute:begin')
    L = 4321
    exec(open('blinky.py').read(), globals(), locals())
    print('Execute:end')
    return    
#
print('*** Esp32ExecuteFile: begin')
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('*** Esp32ExecuteFile: end')

MicroPython-Execute-Program: blinky.py

import time as TIM
#
print('blinky:begin')
# NC !!! global C
print('Local L[{}]'.format(L))
#
for I in range(10, 13):
    #
    C.Add(1, I)
    print('.' + str(C.Result) + '.')
    TIM.sleep(0.5)
print('blinky:end')

Program-Output: Esp32ExecuteFile.py -> blinky.py

 2201211909_Esp32ExecuteFileOutput.png

















220120 : Kompromiss-Erweiterung RPi

 2201202001_RPi3UartRemote.jpg  2201202002_RPi3UartHardware.jpg























220119 : Kompromiss-Erweiterung

220119 : Kompromiss

220118 : Esp32ThreadCountMaximum

2201181249_Esp32ThreadCountMaximumRamCollect.jpg

 2201181153_Esp32ThreadCountMaximumError.jpg

 2201181153_Esp32ThreadCountMaximumMainLoop.jpg






















220118 : MPY-Files

220113 : System-Time

220113 : Autostart

220113 : Reaktivierung Commands

220113 : Zeit-Prozess-Optimierung

220112 : Hardware/Software-Erweiterung

220112 : geplante(!) Software-Erweiterung

Entwicklungsschritte: ToDo

Erweiterung

220101 : Zusammenführung

2112XX - Esp32UnoBoard MicroPython : InterfaceCommandDispatcher

211215 - Esp32UnoBoard MicroPython : CommandLineDispatcher

211214 - MultiProcessExecution

Esp32: lokale Datenerfassung

Entwicklungsschritte: Done

220112 : Dispatcher

220111 : Zusammenführung Uart/Bt/Wlan

220111 : Bluetooth-Version

220110 : Bluetooth-Version

220109 : Optimierte Einzelversionen

bis 220108 : Einstiegsversuche

220101 : SCD - ScriptingCommandDispatcher

220101 : Zusammenführung

211231 : PC/Esp32WlanUdpThread

211228 : Heute ausschliesslich: Wlan-Udp-Communication

211227 : Bt-Dongles

211227 : GANZ WICHTIG: MicroPython-Example entsprechend C++ Esp32BluetoothSerial finden !!!

211227 : Esp32BtThread

211225 - Esp32DisplayKey

211214 - Esp32: Module: MultiProcessExecution

211213 - Test PC <-> (Udp) <-> Esp32

211212 - Esp32: Senden und Empfangen von UDP-Datenpaketen

211210 - PC: ESP32


Open Hard- & Software [ DokuWiki WebSites MediaWiki NextCloud ]