• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Thonny and command like %lsdevice

Q&A Forum › Category: ESP32 › Thonny and command like %lsdevice
0 Vote Up Vote Down
Bent Egebart asked 6 years ago

Hi Rui,
I’m working on Micropython and Thonny.
I have followed you instructions and it is working,
just when I say %lsdevice or %cat

> %cat
Unknown command: cat
>>> %lsdevice
Unknown command: lsdevice

 

the command are unknown, can you help me?

I’m on Windows 10

thanks in advance
Bent

7 Answers
0 Vote Up Vote Down
Bent Egebart answered 6 years ago

I should say I’m using windows 10

0 Vote Up Vote Down
Bent Egebart answered 6 years ago

The question is still open, I just added some information

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi Bent.
That’s weird.
Where are you typing those commands? On the Shell, right?
And is the Thonny IDE finding the ESP32?
If you go to Device > Show device’s boot script, does it respond to that command?
I’m sorry for the delay in my response.
Regards,
Sara

0 Vote Up Vote Down
Bent Egebart answered 6 years ago

Hi Sara,
Great you’re trying.
As you can see in my screen cut (in my first intervention), I’m typing it in the Shell just after the 3 >>>
My first concern was to see which files were uploaded to the ESP32.
I can upload and the program (just the intern led blinking) and it is working, and if I unplug the ESP32 and just add power the program is running.
But the Thonny I downloaded is quite different from the one you describe and I found out there is a windows showing files uploaded and files on my PC.
The device option do not have any function, they have been distributed…..
Now to the boot.py file,  yes it exist (I don’t know where it came from and the is some lines all starting with a # so it must be a comment not to take care about.
Maybe this courses the problems, but I have not been able to find information about how the boot.py should look like.
It just pops up in the book without any explanation or description of the content.
regards
Bent

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi Bent.
If your Thonny IDE has a tab for the files, it should also include a folder that shows the files uploaded to the ESP32, right? It should be a new version of Thonny IDE.
The boot.py is automatically loaded into your ESP board when you flash MicroPython firmware and those lines are included in there by default. Those lines should be “uncommented” if you intend to use Web REPL with the ESP32/ESP8266.
I hope this is clear.
Let me know if you have more doubts.
Regards,
Sara
 
 

0 Vote Up Vote Down
Bent Egebart answered 6 years ago

Thanks a lot.
Yes, the new Thonny has not a tab, I’ll call it a window showing the files uploaded.
I now understand, the boot.py is generated automatically with comment sign for each line. Those lines should be uncommented for Web REPL.
I’m moving on in my training;-)

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Great!
I’ll close this question.
If you need further help, you just need to open a new question.
Regards,
Sara 😀

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.