pulkin / micropython

MicroPython implementation on Ai-Thinker GPRS module A9 (RDA8955)
https://micropython.org
MIT License
103 stars 30 forks source link

Thonny IDE compatibility #44

Closed iemmeti closed 4 years ago

iemmeti commented 4 years ago

Hi, thanks a lot for your work! I tried Thonny IDE with your firmware. REPL works flawlessly, but file upload/download is impossible, returning a lot of errors/exceptions. If you are interested about fixing this behaviour, I'll be happy to test, if needed (I m afraid I couldn't do much more than that, because I'm a real newbie in python). Thanks in advance.

pulkin commented 4 years ago

That's #34. You could at least dump your exceptions here.

pulkin commented 4 years ago

Ok, I tried this script:

import cellular
print(cellular.get_imei())

And it works perfectly. I strongly suggest to try opening raw REPL first and checking whether you actually connected to UART1 and can issue python statements directly.

iemmeti commented 4 years ago

Hi, I discovered my fault: a bad usb-serial module I used until yesterday. This morning I tried another module (mainly because it was already on my desk) and everything went ok. Thonny integrated REPL (shell) works with both modules, while file upload/download only with the new one. Probably the issue is related with bad serial timings/levels or noisy signals. Another change was pudding powering: with the previous module, power was given via a separate USB supply; with the new one, power is from the usb-serial module. EDIT: an interesting thing is that firmware update went always ok with previous usb-serial module. After a day of tests, I had only very few problems with file upload (save), mainly after a keyboard interrupt or a script error. In these cases I had to reset the board to restart without issues. Thank you again!

pulkin commented 4 years ago

Feel free to reopen.