software architecture questions

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

software architecture questions

Postby snahmad75 » Wed May 30, 2018 11:52 pm

Hi,

My requirement is to have web server running to ESP32.
I can run basic JavaScript or advance angular web application.

I can configure my Wifi access point with DHCP IP address enabled either via blue tooth or some other method.

My esp32 can server web pages from SD card as well.
I have external ram also available.
How can i serve web pages from external ram. FATFS mount on external ram?
FATFS seems slow for random access file. Do we better File system libray for fast data access to serve web pages for web server.

I have another ARM STM32 device.

esp32 can communicate via serial or Can bus to ARM STM32 device which contains c++ firmware to communication.
UDP socket is also running to receive Can packet from ARM STM32 device and send over UDP over wifi.

I can configure UDP or TCP port and destination address for esp32 as sender socket.

Is there any built in board and library for rapid application development, I can avoid writing myself low level c/c++ code HttpServer/WebServer.

I can able to update esp32 firmware over the air and ARM STM32 firmware as well.

Can some one share experience of using CAN bus on STM32 and Esp32 and comparison.

1- does below software libraries meet my requirements above?
which suite best?

http://www.espruino.com/ESP32
2-

https://github.com/nkolban/duktape-esp32

3-
ESP32 Arduino HTTP Server: Serving HTML and JavaScript

4-
Node JS server on esp32 ?
5-
https://mongoose-os.com/

6-
C/c++
https://github.com/espressif/esp-idf

so far i have experience with esp-idf which is powerful and low-level and more control. but need to implement all stack/libraries such as HTTP(SSL) and transfer file over the air for update firmware and update web files.

Kindly do reply with your thoughts. I am sure many people have some experience to share in these areas.



Thanks,
Naeem

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: software architecture questions

Postby snahmad75 » Thu May 31, 2018 11:53 am

Do reply with your thoughts on these topics based on your experience.

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: software architecture questions

Postby Deouss » Thu May 31, 2018 12:26 pm

If you want higher level you need more memory - I suggest Wrover chip or consider raspbery pi maybe?
How high power efficient that device must be...? Server work consumes quite good energy.
If I was designing some serious server I'd use SPI-to-SPI communication and not serial or CAN.
I tried once to do server stuff with stm32 but comparing what esp can do - stm32/arm is much more expensive.

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: software architecture questions

Postby snahmad75 » Thu May 31, 2018 2:27 pm

If you want higher level you need more memory - I suggest Wrover chip
You mean external RAM.

Who is online

Users browsing this forum: No registered users and 82 guests