Search found 75 matches

by PM-TPI
Tue Jun 28, 2022 9:12 pm
Forum: Programs, Libraries and Tools
Topic: Initialize watchdog timer from function
Replies: 14
Views: 9238

Initialize watchdog timer from function

As title states...
Need to start wdt after all other settings are complete.

I tried this, no go

Code: Select all

def start_up():
	global wdt
	other stuff....
	
	wdt = WDT(timeout=120_000) # 2min

wdt.feed() got... NameError: name 'wdt' isn't defined
by PM-TPI
Fri Jun 24, 2022 4:49 pm
Forum: Programs, Libraries and Tools
Topic: mpremote... interrupt to copy files
Replies: 3
Views: 1756

Re: mpremote... interrupt to copy files

mpremote is just not stoping loop ... PS C:\Users\rlsap\OneDrive - thermcoproducts.com\SmartLOG\CODE\dist> mpremote connect COM13 ls b'SmartLOG Start\r\npower latched...\r\ntft backlight set...\r\nInitialize WiFi\r\nWiFi... Activated\r\nInitialize BLE\r\nBluetooth... Activated\r\nAmbient Sensor... A...
by PM-TPI
Thu Jun 23, 2022 7:04 pm
Forum: Programs, Libraries and Tools
Topic: mpremote... interrupt to copy files
Replies: 3
Views: 1756

Re: mpremote... interrupt to copy files

I have a buzzer that beep at beginning of script. With ESP32 running loop, I start mpremot, hear beep (soft boot)... unit boots and enters loop. A soft reset with my code cause a... (spi_master: spi_master_deinit_driver(270): not all CSses freed) error then an abort() and Rebooting... It's not an is...
by PM-TPI
Wed Jun 22, 2022 8:28 pm
Forum: Programs, Libraries and Tools
Topic: mpremote... interrupt to copy files
Replies: 3
Views: 1756

mpremote... interrupt to copy files

I have code that is running an async IO loop.
I want a script to halt program, then upload new files.
Can mpremote send a ctrl-c prior to uploading files?
Or any other ideas are welcome !!
by PM-TPI
Wed Jun 08, 2022 2:52 pm
Forum: Programs, Libraries and Tools
Topic: ESPtool not releasing serial port
Replies: 0
Views: 9701

ESPtool not releasing serial port

Flash with ESPtool no problem but mpremote won't run... if I comment out ESPtool then mpremote runs fine. ESPtool hangs on to COM Port , how to release ? import esptool, subprocess print('mimic Flash') arg1 = ['--port', 'COM13', 'flash_id'] esptool.main(arg1) print('copy files') arg2 = 'mpremote con...
by PM-TPI
Tue Jun 07, 2022 1:02 pm
Forum: Programs, Libraries and Tools
Topic: PC python script to run mpremote commands
Replies: 6
Views: 28257

Re: PC python script to run mpremote commands

IMHO mpremote is not intended to be called as a module https://www.youtube.com/watch?v=EVJA01W9ArI 219 views Oct 26, 2021 Damien George instructs us on how to use mpremote look at 1min 28 sec Damien didn't go into any detail in using it as a module. Thank you jahr... subprocess, learn something new...
by PM-TPI
Tue Jun 07, 2022 9:53 am
Forum: Programs, Libraries and Tools
Topic: PC python script to run mpremote commands
Replies: 6
Views: 28257

Re: PC python script to run mpremote commands

jahr

Can't we make calls to mpremote directly
without needing to go back out to OS
by PM-TPI
Mon Jun 06, 2022 9:01 pm
Forum: Programs, Libraries and Tools
Topic: PC python script to run mpremote commands
Replies: 6
Views: 28257

PC python script to run mpremote commands

So....

Code: Select all

from mpremote import main
main.main()
returns...
Connected to MicroPython at COM12
Use Ctrl-] to exit this shell


But how do I run say... the 'mpremoyte ls' command ?
main() takes 0 positional arguments... so how do I pass 'ls' ?

I don't want to use bash scripts.
by PM-TPI
Wed Apr 20, 2022 6:28 pm
Forum: General Discussion and Questions
Topic: Tools problem
Replies: 4
Views: 5390

Re: Tools problem

Has anyone installed mpremote on Raspberry Pi with any success ???
I was going to move my production programming to a Raspberry Pi.
Any and all information would be great!!!
by PM-TPI
Wed Apr 20, 2022 1:58 pm
Forum: Programs, Libraries and Tools
Topic: How to Production Progam and upload system files
Replies: 5
Views: 2947

Re: How to Production Progam and upload system files

So mpremote worked perfect !! Thank YOU Dave !! mpremote connect COM13 fs cp boot.py main.py dash.html.gz 2021.svg.gz : But I'm still having an issue with my Powershell script (.ps1)... esptool.py --chip esp32 --port COM13 erase_flash esptool.py --chip esp32 --port COM13 --baud 921600 write_flash -z...