khoih-prog / ESP_AT_Lib

WizFi360/ESP8266/ESP32 wrapper library for Arduino providing an easy-to-use way to manipulate ESP8266/ESP32-AT shields.
MIT License
22 stars 10 forks source link

Bootloader usage #1

Closed TinManAkshay closed 3 years ago

TinManAkshay commented 3 years ago

Hi,

I looked at your library and its pretty to understand. I'd like to test the examples on my custom board having SAMD51 MCU and Ublox NINA W152 chip (has an ESP32 core integrated).

I've been meaning to inquire regarding a bootloader being used in your examples. I've a custom board around Adafruit feather M4 express. What bootloader (.bin file) do I have to flash from the folder "AT firmware" into the wifi chip before I use one of you examples?

NOTE: - I have an UART interface capability on the wifi chip including TX, RX, CTS, RTS, DTS and DTR pins.

Thanks, Akshay

khoih-prog commented 3 years ago

Hi @tcpipchip,

As you're an expert in Ublox chip, could you please help here.

Thanks and Best Regards,

khoih-prog commented 3 years ago

Just a suggestion, why don't you use much better WiFiNINA, instead of te worse AT-command Firmware?

Check this u-blox nina b #1

TinManAkshay commented 3 years ago

Hi @khoih-prog ,

Thank you so much for the quick response. Appreciate it.

I believe WiFiNINA uses SPI interface to talk to the Ublox WiFi chip, correct? However, in our custom board, we only have UART interface to communicate with Ublox W152 chip.

So far, according to the datasheet, I am able to send AT commands to the chip and receive the responses back accordingly, using Arduino IDE. For an instance, I can connect to the Wifi network and set-up an UDP address and port number. However, I could not figure out how to send/receive the udp packets using UART interface.

On top of that, I am having an issue like as follows:

  1. I am using "Espressif esptool.py" tool and "s-center" (which is an Ublox software) to establish a contact with a device. But I cannot able to do that. Eventually, I couldn't flash a bootloader (.bin files) so that I could use existing Arduino libraries made for UART interface with AT commands like your library.

I really need a right direction to move to. I'd appreciate any sort of advice and suggestion here.

Thanks, Akshay

khoih-prog commented 3 years ago
  1. For UDP/WebServer, you can use my other ESP8266_AT_WebServer library. Have a look at UdpSendReceive example

I believe WiFiNINA uses SPI interface

Correct. Too bad you have to use Serial and AT-command. It's much better to change the HW/SW design in order to use better SPI / WiFiNINA, if possible.

  1. Sorry, you have to do more research yourself, or post on the Arduino / Adafruit for help. There is many and very easy way to load AT-command FW onto ESP32-based boards.

The working FW for ESP32 is here

AT_version_2.1.0.0_dev.zip

or

AT_version_2.1.0.0_dev

and Instructions to load FW


I don't have time now to help you further as this is not a bug or have nothing to do with this library

Good Luck,

khoih-prog commented 3 years ago

Have a look at SAMD51 Itsy-Bitsy M4 using ESP8266 AT-command shield. Working OK, only worse performance than ESP32 alone.

image

tcpipchip commented 3 years ago

Hi Ublox W152 chip has protect code, if you erase it, you cant more recover, i guess! It can be used with SPI too, but now enough info about

tcpipchip commented 3 years ago

But, i dont know if this compatible with WIFININA software

TinManAkshay commented 3 years ago

Hi @tcpipchip ,

What do you recommend whether I should make changes to the current design and introduce SPI interface to the Ublox wifi chip? Then, use WifiNINA?

Can't I use this library with UART interface? To use this library, I've got to erase the current bootloader in the chip and flash the new one which this library requires, correct? I'm having issues to establish contact with a device while flashing the AT firmware which this library requires.

Could you please help me with more information here. I'd highly appreciate that.

Thanks, Akshay

TinManAkshay commented 3 years ago

Hi @khoih-prog ,

As per your last comments, could you please share what dev board or wifi chip you used to get your examples up and running?

You must have first flashed AT firmware onto the wifi chip using Espressif esptool.py before you uploaded the example.ino sketch, correct?

tcpipchip commented 3 years ago

@TinManAkshay You will find here https://learn.adafruit.com/adding-a-wifi-co-processor-to-circuitpython-esp8266-esp32/firmware-files

TinManAkshay commented 3 years ago

Hi @khoih-prog ,

Wanted to follow-up since my last comment. Please let me know what ESP32 dev board you used for your libraries?

khoih-prog commented 3 years ago

Just a dirt-cheap ESP8266-01 AT-command ESP8266-01