ESP32 Development Board


Bert Kruger
 

Hi Howard and other members.

I've been trying to load the OCS onto an ESP32 Wroom board with 38 pins that I have previously used for Onstep - so I know the board is working and I've also tested a simple wifi sketch to verify that it is working.

I've configured it with no sensors or relays connected - basically just the wifi settings of my home wifi to which it should connect.
I've also created the small file system and uploaded the file from the ..\OCS\Data directory successfully.

However I just can't seem to get it going and I am probably doing something wrong.   

- :IP# on the serial monitor gives no response.  All I am getting on the serial monitor is a repeat of the following (not sure what it means):

ets Jun  8 2016 00:22:57
rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1324
ho 0 tail 12 room 4
load:0x40078000,len:13508
load:0x40080400,len:3604
entry 0x400805f0

- I can't see the OCS on my wifi in station or access mode
- obviously I can't acces the OCS web server

I am using the following config settings:
  #define PINMAP                        OCS4E
  #define TIME_LOCATION_SOURCE          NTP 
  The rest of the settings ar OFF or unchanged.

In the Extended Config file I've just specified my Wifi settings to enable station mode.

The Arduino settings selected are as follow:


I am using ESP32 Arduino V2.02 although I have read in one of the posts that V1.04 should be used.  I've tried V1.04 but it is not working.

Sketch uses 719261 bytes (68%) of program storage space. Maximum is 1048576 bytes.
Global variables use 42340 bytes (12%) of dynamic memory, leaving 285340 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.1
Serial port COM3
Connecting.....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ec:94:cb:4b:56:70
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x000c1fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 524.6 kbit/s)...
Hash of data verified.
Compressed 18528 bytes to 12721...
Writing at 0x00001000... (100 %)
Wrote 18528 bytes (12721 compressed) at 0x00001000 in 0.5 seconds (effective 306.0 kbit/s)...
Hash of data verified.
Compressed 725040 bytes to 464344...
Writing at 0x00010000... (3 %)
Writing at 0x0001c0f3... (6 %)
Writing at 0x00028654... (10 %)
Writing at 0x000321c1... (13 %)
Writing at 0x00037b6a... (17 %)
Writing at 0x0003d78e... (20 %)
Writing at 0x00043347... (24 %)
Writing at 0x00048a08... (27 %)
Writing at 0x0004e19e... (31 %)
Writing at 0x00053232... (34 %)
Writing at 0x000584c0... (37 %)
Writing at 0x0005d874... (41 %)
Writing at 0x00062b6f... (44 %)
Writing at 0x00067c4b... (48 %)
Writing at 0x0006d298... (51 %)
Writing at 0x00072790... (55 %)
Writing at 0x00077962... (58 %)
Writing at 0x0007ccca... (62 %)
Writing at 0x00082144... (65 %)
Writing at 0x00087724... (68 %)
Writing at 0x0008d07c... (72 %)
Writing at 0x00092e76... (75 %)
Writing at 0x00098740... (79 %)
Writing at 0x000a103d... (82 %)
Writing at 0x000a9411... (86 %)
Writing at 0x000ae47d... (89 %)
Writing at 0x000b4075... (93 %)
Writing at 0x000b98e3... (96 %)
Writing at 0x000bf04c... (100 %)
Wrote 725040 bytes (464344 compressed) at 0x00010000 in 7.9 seconds (effective 737.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 117...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (117 compressed) at 0x00008000 in 0.1 seconds (effective 393.2 kbit/s)...
Hash of data verified.
 
Leaving...
Hard resetting via RTS pin...
 
After compiling the sketch Arduino gives the following to show that compiling and uploading was successful:

I understand that the ESP32 development is maybe lagging behind the Mega and Teensy boards but I am still hopeful that I can use the board as it is fairly powerful for the price.  I've already ordered an ESP32 S2 Soala as well.

Any suggestions or advice will be appreciated as I am just going in circles now?

Thanks
Bert Kruger 


Howard Dutton
 
Edited

On Mon, Sep 5, 2022 at 12:07 PM, Bert Kruger wrote:
I am using the following config settings:
  #define PINMAP                        OCS4E
  #define TIME_LOCATION_SOURCE          NTP 
  The rest of the settings ar OFF or unchanged.
Sorry for the delay but thought I'd post to clear up any doubt that this does indeed work.  Just that pinmap OCS4E (now renamed OCSES2) requires an ESP32-S2 so the trouble here was due to an incorrect configuration.

Anyway I gave things a once over again (so the default Config.h will compile successfully) and tested on an plain ESP32S (WROOM) after creating a pinmap for it which is now included in the latest.  Nothing fancy just set the OCSE pinmap, enable the Status panel, set Access Point mode (default is station) and set an address that doesn't collide with my Windows machine home network (no date/time source in this example)....



P.S. I used ESP32 libraries 2.0.0 for this test.