Can the relevant functions of the micropython file system be called in a uart Receive thread. #17589
Unanswered
rookie-yuan
asked this question in
ESP32
Replies: 1 comment
-
It is unclear what you really want to do. If you just want to copy a binary file from a PC to an ESP32 board then you can use mpremote, please see the example below.
If you want the ESP32 to run a script and wait for binary data from your PC or another board, you can use UART1.
The ESP32 has three UARTs.
I don't understand why you need to use UART0 which is used by the REPL. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello, currently we have a requirement to directly use binary to transfer files. It seems that REPL cannot directly use binary for file transfer; it can only use base64 or direct string transfer files, such as [0x00, 0x01]. Therefore, we want to implement a function for file download and file operation using the serial port by ourselves. However, currently we have encountered the problem that we cannot directly call the file system api of micropython in uart Receive thread. May I ask if there is a way to call the micropython file system api in a uart Receive thread? Or is there a better way to implement the api for direct binary file transfer.
Beta Was this translation helpful? Give feedback.
All reactions