No more wifi this is 40

No more wifi after platform io update

After getting some problem with Plateform IO
and automatic software update .. to ESP32 2.6 !
i get Many problems with OneWire !!
so i go bak to ESP32 2.3
Now OneWire isagain OK
but i can’t anymore get WWifi connection , with all my previous applications
…there all were OK before .
i recompile this , using classic Arduino IDE 1.8.16
and esptool.py v3.3
no external data , Html is included in the code.
Compile is OK
Terminal display values are OK
….. until programm try to connect to my wifi lan.
(SSID and PWD are OK)
i don’t see other Wifi client on my WIFI Lan (ON_Air2022)
when using the tool Languard Network scanner…
it is like NO WIFI firmware exist on my ESP32 !
(tested also without Norton firewall -> no succes)
some idea ?
27/01/2023
recompil
ESP32_Bleu_I2C_DHT11_MCP23017_DS18B20_Led_Cpt_2022-07
ESP32 Wrover module DIO
modif:
// your network credentials
//const char* ssid =”ON_AIR2022″;
//const char* password = “cG…………………………………………………..v4”;
remplacé par
#include “D:\_ESP32_2023_2022\ESP32_Secret_datas.h”

Got answer! Communication with MCU established.
AutoDetect firmware…
Can’t autodetect firmware, because proper answer not received (may be unknown firmware).
Please, reset module or continue.
_r
ESP32_Bleu_I2C_DHT11_MCP23017_DS18B20_Led_Cpt_2022-07.ino version : 27/01/2023
ESP32 Vroom 32 DevkitV1 (Bleu) sur COM 57
Led Rouge sur D19 , Led Verte sur D18 ,Led bleue sur D15
DHT11-AM2302 sur D5
Sonde temper.OWS DS18B20 sur D4
I2C Bus sur D21 (SDA) et D22 (SCL)
I2C adresses 7 bits devices

I2C device found at address 0x20 MCP23017 2×8 Bits I/O
I2C device found at address 0x3C OLED SSD1306
I2C device found at address 0x77 BMP 085 Pression
Trouve 3 devices sur le Bus I2C
.. Fin de test I2C bus
BMP085 OK
Scan devices on OWS BUS
i= 0
ROM = 0x28, 0xAA, 0x56, 0xC1, 0x38, 0x14, 0x01, 0x40
Chip = DS18B20
DS18B20 = 14.50
MCP23017 at @0x20 Active le PORT A du MCP , en sorties
Active le PORT B du MCP , en entrees
Connecting to ON_AIR2022
no more dialogue with Esplorer terminal !
no wifi connection …
but programme restart ! Why?
..because i can see again, 3 leds blinkings
…in setup:
for (i=0;i<4;i++)
digitalWrite(LED_I, HIGH);
digitalWrite(LedVerte, HIGH);
digitalWrite(LedRouge, HIGH);
digitalWrite(LedBleue, LOW);
delay(500);
digitalWrite(LED_I, LOW);
digitalWrite(LedVerte, LOW);
digitalWrite(LedRouge, LOW);
digitalWrite(LedBleue, HIGH);
delay(500);
>

/*********
Rui Santos
Complete project details at https://randomnerdtutorials.com
*********/
// deconnecter D2 ) pour charger le programme !
#define VERSION “27/01/2023”
// modif affectation des pins pour eviter l’usage de D2
//#define VERSION “04/07/2022”
// ESP32 Bleu Serial port COM57

// your network credentials
//const char* ssid =”ON_AIR2021″;
//const char* password = “cGT>1_@?LOdBqD6kd%s@v|.b5x^4PD|?s>uu*j4o)Uqpa|r1jftH+H>8_oG6>v4”;
#include “D:\_ESP32_2023_2022\ESP32_Secret_datas.h”
// Address OWS sensor #3
DeviceAddress sensor1 = < 0x28,0xFF, 0xAA, 0x56, 0xC1, 0x38, 0x14, 0x01>; // ma sonde DS18B20 repérée #3 (CRC= 0x40 )

Читайте также:  Виртуальная вай фай карта

//TX2 17
//RX2 16
#define SCL 22 //ESP32 jaune –> SCL BMP085
#define SDA 21 //ESP32 fil vert –> SDA BMP085
// set pin numbers
const int LedRouge = 19; // number of the LED Rouge pin
const int LedBleue = 15;
const int LedVerte = 18;
const int LED_I = 2; // inbuilt Led
#define DS3231_ADDR 0x68 // 7 bits adresse , sinon 0xD0 sur 8 bits
#define OLED_ADDR 0x3C
#define MCP23017_ADDR 0x20
MCP23017 mcp = MCP23017(MCP23017_ADDR);
char MCP_Readchar[10];
byte mcp_PA=0;
byte mcp_PB=0;
unsigned int mcp_PAB=0;
// Création Object AM2302-DHT22
DHTesp dht;
#define DHTTYPE DHT22 ; // DHT type (DHT11, DHT22)
int DHTPIN = 5 ; // GPIO D4 // GPIO where the DS18B20 is connected to
const int oneWireBus = 4;
OneWire ds(oneWireBus);// Setup a oneWire instance to communicate with OneWire devices (DS18B20)
DallasTemperature sensors(&ds);// Pass our oneWire reference to Dallas Temperature sensor

#define SEALEVELPRESSURE_HPA (1013.25)
byte nDevices = 0;
byte error=0;
byte address=0;
int i,j,k;
byte addr[8];
byte type_s;
char Tempchar [10];
char Humidchar[10];
char Presschar [10];
char Ana0char[10];
char temp[64];
char BMPOK=0;
unsigned int Compteur;
float temperatureC;
float p = 0.0;
float t = 0.0 ;
float h = 0.0 ;

// Variable to store the HTTP request
String header;
unsigned long currentTime = millis();
unsigned long previousTime = 0;
const long timeoutTime = 2000; // time in milliseconds (example: 2000ms = 2s)
bool status;
IPAddress local_IP(192, 168, 0, 108);
// Set your Gateway IP address
IPAddress gateway(192, 168, 0, 254);
IPAddress subnet(255, 255, 255, 0);
IPAddress primaryDNS(212,27,40,241); //optional
IPAddress secondaryDNS(212,27,40,240); //optional
Adafruit_BMP085 bmp;

\”no

String getMyLogo()
String MyLogo= “
rajout (mylogo_32x32.ico) image en format base64

”;
MyLogo +=””;
MyLogo +=”

”;
return MyLogo;
>

// Set web server port number to 80
WiFiServer server(80);

void check_if_exist_I2C()
nDevices = 0;
Serial.println(” “);
for (address = 1; address < 127; address++ )
// The i2c_scanner uses the return value of
// the Write.endTransmisstion to see if
// a device did acknowledge to the address.
Wire.beginTransmission(address);
error = Wire.endTransmission();
if (error == 0)
Serial.print(“I2C device found at address 0x”);
if (address < 16) Serial.print(“0”);
Serial.print(address, HEX);
switch (address)
case 0x20:
Serial.println(” MCP23017 2×8 Bits I/O”); // de base + 7 autres
break;
case 0x27:
case 0x28:
case 0x29:
case 0x2A:
// case etc ..
Serial.println(” PCF8574 8bits I/O”); // de base + 7 autres
break;
case 0x37:
Serial.println(” LCD 2119 2x16cars”); // de base + 7 autres
break;
case 0x38:
case 0x39:
case 0x3A:
case 0x3B:
// case etc ..
Serial.println(” PCF8574A 8bits I/O”); // de base + 7 autres
break;
case 0x3C:
Serial.println( ” OLED SSD1306″);
break;
case 0x53:
Serial.println(” ADXL345 board”);
break;
case 0x57:
Serial.println(” EEPROM 512bytes”);
break;
case 0x68:
Serial.println(” RTC DS3231″);
break;
case 0x77:
Serial.println(” BMP 085 Pression”);
break;
default:
Serial.println(” non reconnue”);
break;
> //switch
nDevices++;
>
delay(10);
> //for loop
if (nDevices == 0)
Serial.println(“No I2C devices found”);
else
Serial.printf(“Trouve %3d devices sur le Bus I2C\r\n”,nDevices);
delay(200);
>

Читайте также:  Точки доступа антены wifi

void OneWireScanner()if ( !ds.search(addr))
Serial.println(” No more addresses.”);
Serial.println();
ds.reset_search();
return;
>
Serial.print(” ROM = “);
for( i = 0; i < 8; i++)
Serial.write(‘ ‘);
Serial.print(“0x”);
if (addr[i] < 0x10) Serial.write(‘0’);
Serial.print(addr[i], HEX);
if ( i != 7 ) Serial.print(“, “);
>
>

if (OneWire::crc8(addr, 7) != addr[7]) Serial.println(“CRC is not valid!”);
return;
>
Serial.println();

// the first ROM byte indicates which chip
switch (addr[0]) case 0x10:
Serial.println(” Chip = DS18S20″); // or old DS1820
type_s = 1;
break;
case 0x28:
Serial.println(” Chip = DS18B20″);
type_s = 0;
break;
case 0x22:
Serial.println(” Chip = DS1822″);
type_s = 0;
break;
default:
Serial.println(” Device is not a DS18x20 family device.”);
return;
>
Serial.println();
>

void setup() delay(1000);
Serial.begin(115200);
delay(200);
// pinMode(buttonPin, INPUT);
pinMode(LedVerte, OUTPUT); // initialize the LED pin as an output
pinMode(LedRouge, OUTPUT); // initialize the LED pin as an output
pinMode(LedBleue, OUTPUT); // initialize the LED pin as an output
pinMode(LED_I, OUTPUT);
for (i=0;i<4;i++)
digitalWrite(LED_I, HIGH);
digitalWrite(LedVerte, HIGH);
digitalWrite(LedRouge, HIGH);
digitalWrite(LedBleue, LOW);
delay(500);
digitalWrite(LED_I, LOW);
digitalWrite(LedVerte, LOW);
digitalWrite(LedRouge, LOW);
digitalWrite(LedBleue, HIGH);
delay(500);
>

Serial.println(“\r\n_r\n”);
Serial.print(” ESP32_Bleu_I2C_DHT11_MCP23017_DS18B20_Led_Cpt_2022-07.ino”);
Serial.print(” version : “); Serial.println(VERSION);
Serial.println(” ESP32 Vroom 32 DevkitV1 (Bleu) sur COM 57 “);
Serial.println(” Led Rouge sur D19 , Led Verte sur D18 ,Led bleue sur D15 “);
Serial.println(” DHT11-AM2302 sur D5 “);
Serial.println(” Sonde temper.OWS DS18B20 sur D4 “);
Serial.println(” I2C Bus sur D21 (SDA) et D22 (SCL) “);
delay (500);
Serial.println(” I2C adresses 7 bits devices “);
delay(2000);
Wire.begin(SDA,SCL); // pin on ESP32
check_if_exist_I2C();
Serial.println(“\r\n .. Fin de test I2C bus \r\n”);

sensors.begin();
//—- Pressure sensor BMP085 —————-
// Initialisation
if ( !bmp.begin() )
Serial.println(” BMP085 BAD!”);
delay(2000);
BMPOK=0;
> else
Serial.println(” BMP085 OK”);
BMPOK=1;
>
Serial.println(” Scan devices on OWS BUS “);
for (i=0;i<4;i++)
Serial.printf(” i= %5d \r\n”,i);
OneWireScanner();
Serial.println();
delay(1000);
>
sensors.requestTemperatures();
delay(100);
temperatureC = sensors.getTempCByIndex(0);
if (temperatureC < -10.0) temperatureC= -10.0;
Serial.printf(” DS18B20 =% 3.2f\r\n”,temperatureC);
// — MCP23017 ———————-
// https://github.com/blemasle/arduino-mcp23017
Serial.print(” MCP23017 at @0x20 “);
mcp.init();
Serial.println(” Active le PORT A du MCP , en sorties”);
// setGPIOAMode(0);
mcp.portMode(MCP23017Port::A, 0);
Serial.println(” Active le PORT B du MCP , en entrees”);
mcp.portMode(MCP23017Port::B, 0b11111111); //Port B as input
mcp.writeRegister(MCP23017Register::GPIO_A, 0x00); //Reset port A
mcp.writeRegister(MCP23017Register::GPIO_B, 0x00); //Reset port B
// GPIO_B reflects the reverse logic as the input pins state
// (press a button to lit a led)
mcp.writeRegister(MCP23017Register::IPOL_B, 0xFF);

Hello,
All my previous ESP32 application can’t get a Wifi link anymore !
since a plateformIo automatic update … i don’t know what change has been made ?
If i load Wifiscan application in my ESP32.. it’s works fine
i can discover the Wifi Lan around me ;
scan start
scan done
3 networks found
1: DIRECT-SP-BRAVIA (-66)*
2: ON_AIR2022 (-67)*
3: Chambre Milhan.b (-93)
so it seems RF ESP32 Hardware is OK .. What could be the problem ?
Is there a wifi Firmware installed in the ESP32 , or Wifi is installed by the application upload ?
I have also an ESP8266 wich can connect to my WIFI Lan .. so i think probleme is on ESP32 side ..
Do i have to remove all ARDUINO + VSC + PlateformIo and re install all …to sove this problem ?
Working with ESP32 is now very complicated .. to much softwares and versions problems ..
Programmed Obsolescence for old ESP32 ?

Читайте также:  General climate wifi модуль

Hi.
I’m sorry for taking so long to get back to you.
For some reason, I wasn’t notified of your question.

I don’t think it is a problem with VS Code.
I recommend erasing the ESP32 flash. Then, try to upload a code using ARduino IDE. See if it can connect to your network. Then, try again with VS Code. Tell me if you get any errors.

To erase the flash, you can take a look at this discussion:

Let me know your results.
Regards,
Sara

hello Sara,
after added path for eptool.exe …..
C:\Users\Paul\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.2.1\esptool.exe
i was able to launch the command
my ESP32 is connected trough USB connection to virtual COM57
C:\>esptool –chip esp32 com57 erase_flash
esptools error invalide chois com57
C:\>esptool –chip auto –port com57 erase_flash
gives:

espotoll.py V4.21
Serial port com57
connecting
detecting chip type ..unsuported detection protocol, switching and trying again
connecting….
detecting chip type ..EP32
chip is ESP32-S0WQD6 (revision 1)
Features Wifi,BT,Dual Core,240Mhz,Vref Calibration in efuse,Coding Schem nono
Crystal is 40MHz
uploading stub….
Running stub ….

…….. and STAY alwways in this situation .
i can’t stop the program .. by CTRL C , or CTRL Z or ESC
so i closed Invite_Msdos windows

Microsoft Windows [version 10.0.18362.1256]
(c) 2019 Microsoft Corporation. Tous droits réservés.

C:\>esptool —chip esp32 -port COM57 erase_flash —trace
‘esptool’ n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

Modification du PATH pour rajout Esptool
C:\>PATH C:\Users\Paul\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.2.1;%PATH%

C:\>esptool —chip esp32 —port COM57 erase_flash
esptool.py v4.2.1
Serial port COM57
Connecting.
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 08:3a:f2:8d:c9:94
Uploading stub.
Running stub.
Stub running.
Erasing flash (this may take a while).
Chip erase completed successfully in 14.9s
Hard resetting via RTS pin.

so Erasing seems OK,
and i will test again if my application can connect to wifi
… to follow

Источник

Оцените статью
Adblock
detector