-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File interactions over WiFi not working #80
Comments
Hi and thanks for detailed report. The It's actually the device failing to reply to a request for another chunk of data. It, however, seems to react to the initial message of the protocol, otherwise it would assert here. You could always double-check the values there using PyCharm's debugger. It could also be an issue with the specific micropython implementation, but if webrepl can transfer files, this is unlikely. I'm more worried that there might have been breaking change in the protocol (noted here "At this point, this protocol is in early research/design/proof-of-concept phase. The only available specification of it is the reference code implementation, and the protocol is subject to frequent and incompatible changes."). Indeed, it looks like a different value is passed in Last thing you could try is being connected also to UART while doing wifi transfer. Sometimes errors and exceptions gets spilled there. |
Oh my god changing from b"\1" to b"\0" worked hahahaha, anyway just out of curiosity what is the "True" right after it for? Here is what I could see through UART using Putty:
I also went back in the serial log and found some weird command entanglement in one for the previous crashes, but I can't recall if it's because of something extra I did other than just loading the file
|
Nice! The Regarding the output, this part is sent by me to get file size for progress bar:
The rest is result of the websocket protocol I believe, but I have no idea what's happening there. |
I didn't see many reports of this issue so I'm not sure if changing the value for everyone is good idea, or it needs to be based on micropython version (or maybe other factors). I can't promise, but I'll try to look into this in near future and make adjustments. |
Anytime i double click a file in the right part of the main panel or try to download one by clicking Transfer the program hangs with 0% in the File Transfer popup window.
File list and terminal seem to work properly, trying to transfer a file from local to board doesn't seem to have any effect.
I'm connecting to an ESP32-CAM board over WiFi.
I get the problem in both .exe version and main.py ran from Pycharm IDE imported project, in pycharm I can also read an exception sometime after the program freezes:
Exception in thread Thread-2: Traceback (most recent call last): File "C:\Users\Maurizio\anaconda3\envs\pythonProject\lib\threading.py", line 932, in _bootstrap_inner self.run() File "C:\Users\Maurizio\anaconda3\envs\pythonProject\lib\threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "C:\Users\Maurizio\Documents\Arduino\uPyLoader\src\connection\wifi_connection.py", line 187, in _read_file_job (sz,) = struct.unpack("<H", self.ws.read(2)) File "C:\Users\Maurizio\Documents\Arduino\uPyLoader\src\connection\websocket.py", line 63, in read hdr = self.recvexactly(2) File "C:\Users\Maurizio\Documents\Arduino\uPyLoader\src\connection\websocket.py", line 52, in recvexactly raise TimeoutError() TimeoutError
I would like to congratulate for your job anyway, I'm pretty new to Micropython on a microcontroller and after working with webrepl for sometime I was about to implement a GUI for file browsing myself, but after a quick search I found this project that seems really promising!
P.S.
I also noticed that your program's terminal is way faster than Webrepl's one which is a big bonus
The text was updated successfully, but these errors were encountered: