Skip to content
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

OTA for STM32 using GSM-GPRS module #1

Open
sankaramp opened this issue Oct 10, 2018 · 7 comments
Open

OTA for STM32 using GSM-GPRS module #1

sankaramp opened this issue Oct 10, 2018 · 7 comments

Comments

@sankaramp
Copy link

hello csnol,

your library driver is closely related to my requirement,first of all thanks for this.
my requirement is "i want to update the firmware using GSM-GPRS module instead of yours esp8266.

can you suggest me some tips?

thanq
Sankar

@csnol
Copy link
Owner

csnol commented Oct 12, 2018

Hi Sankaramp,

I don't know which module you used for. and I was only use AT command on Arduino Uno + SIM8xx series GSM-GPRS module.
I think it is difficult If you wanna only use ONE GSM-GPRS module to flash STM32 without a Ext-MCU.
you know, We need 4 GPIO pins at least and 100KB data space( to save STM32 bin file)

* 2 GPIOs for STM32's BOOT0 and RESET.
* 2 GPIOs as a  EVEN Serial port to communicate with STM32.

As far as I know, Only a GSM-GPRS module can't do it if not been hacked.

You have to add a MCU which it has 2 UARTs. one Serial control GSM-GPRS module to connect internet. other Serial to flash STM32.

Haha, only if you use it for WiFi-Less or long distance control, I really don't suggest it .

@sankaramp
Copy link
Author

hello csnol,
thanx for reply,

according to your suggestion i changed my application like this.
img_20181011_192440

in this, i just want to connect one GSM-GRPS module through UART2 of MCU1.
from GSM i want to read " example.bin " file through OTA and store that in external SPI-FLASH memory.

when expernal SPI FLASH got new ".bin file",it should load to MCU2 through UART1 of MCU1.

NOTE: here MCU1 and MCU2 both are STM32f1series controllers.

could you please give some suggestions.

thanq,
Sankar

@csnol
Copy link
Owner

csnol commented Oct 16, 2018

Yes, Maybe you need pull-up GPIO1 and GPIO2.

Sorry, I don't know how to code a HTTP server use AT commands.

Attention please, "double MCUs, half stabilities."

@sankaramp
Copy link
Author

Okay thanq

I just need one help in writing the code regarding "load the .bin file from spi flash to MCU2 through UART1".

Any suggestion will be helpful..

Regards,
Sankar

@csnol
Copy link
Owner

csnol commented Oct 17, 2018

You can try the LowPowerLab/SPIflash library

https://github.com/LowPowerLab/SPIFlash

or search Winbondflash in Github.

For flash STM32 MCUs, please reference STM32 DS file and my codes. some functions be included in stm32ota.h and stm32ota.cpp

@sankaramp
Copy link
Author

@ambujsaxena1
Copy link

HI csnol,

This is very good library, I want to use this library with STM32F303 Controller, But as you mention that this will work only on 32 pin controller but my controller 100 Pin controller. anyways I tried by whenever ESP send 7F command to init the communication it will reviced
0x00 in sbuf[0]

Could you tell help to resolve this issue. Should we have to code STM too ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants