pulkin / micropython

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

Updated to last Micropython version (1.12.889), use newest csdk and other changes #55

Closed arlucio closed 4 years ago

arlucio commented 4 years ago

Up to date with Micropython main repository (some files remain different) Now using the new version of GPRS-C-SDK-LIB (2131) and not doing patchs anymore Added uasyncio module Deleted st7735 and blink module

pulkin commented 4 years ago

So, the newer SDK is free of APN and other issues? Or it is just that we need to patch that as well?

arlucio commented 4 years ago

Seems like it's free of these issues, I'm able to connect GPRS normally, use sockets and get sockets errors. Doing everything I was doing before but now without applying the patchs. Would be great if you could check and see if everything is also working for you.

arlucio commented 4 years ago

Btw, I've deleted the st7735 module, but I believe would be nice to keep hw libs relative to this port in some other folder.

pulkin commented 4 years ago

There is a little bit too much for this PR. I updated master by removing st7735 and updating the binary blob and accompanying submodules. Unfortunately, I hard pushed GPRS_C_SDK so nobody will be able to build a range of commits prior to this point :(.

2129 bugs are still there: you likely forgot to flash the bigger lod to observe them.

arlucio commented 4 years ago

So, seems like the patches are still necessary, right? As you updated the file with new addresses. I don't really know much about that or the issues, I just tested my code without the patch and it worked.

So, I gonna close this, I think would be better for me to open some specific PRs, right? Or if you want to make the changes, there is not much, just some changes that are necessary to be able to push the upstream version and build the firmware successfully. Also, some changes I made were not really ideal, like reverting changes in py/stream.c file from upstream, maybe you have a better solution to that.

Right now I'm working on implementing interruptions on machine_pin, hope to be able to make a PR for that soon.

pulkin commented 4 years ago

I think I will be able to merge this. Interrupts sound interesting, good luck with that!