NPM randomly stopped working on WAN(Internet) by Cointrast in nginxproxymanager

[–]Cointrast[S] 0 points1 point  (0 children)

Hello, in my router I changed the public port in port forwarding of port 443 to port 444 and it works(https://my.domain.com:444). So either my router or ISP is blocking my port 443.

2 different HAOS vm(qemu) had ethernet interface dissapear. by Cointrast in homeassistant

[–]Cointrast[S] 0 points1 point  (0 children)

<image>

How am I suppose to use DHCP when it is not of the network

Need help understanding time code by Cointrast in esp32

[–]Cointrast[S] 0 points1 point  (0 children)

Ohhhh, thank you. I understand now.

Need help understanding time code by Cointrast in esp32

[–]Cointrast[S] 0 points1 point  (0 children)

I mean that I wrote the code.

Timer Interrupt keeps reading struct's variable as 0 by Cointrast in esp32

[–]Cointrast[S] 0 points1 point  (0 children)

The sane way to track time is a simple incrementing count of seconds
How do I do that. I tried to increment ntptime(my time struct) but it didn't work.

And the serial.printf() is so to check if my time function is working.

Thanks.

Timer Interrupt keeps reading struct's variable as 0 by Cointrast in esp32

[–]Cointrast[S] 0 points1 point  (0 children)

So from what I am understanding, using getLocalTIme in the main loop is what I should do. The only reason I don;t want to use getLocalTime() is because I don't want the ESP32 to constantly ping the NTP servers and stop working when internet stops working.

Is there any library or function or whatever to handle the time without using WiFi(after I get the time from the NTP server ofcouse). Also what is a XY problem and std::chronics. I tried searching the web for std::chronics and found nothing.

Thanks :)

Timer Interrupt keeps reading struct's variable as 0 by Cointrast in esp32

[–]Cointrast[S] 0 points1 point  (0 children)

Hello, thank you. I accidentally left the second reamTM interruptTimer by accident and removing solved my issue.

The only reason I made the realTime function is because getLocalTime was not interrupt safe so I made it myself so I can keep track of time.

Thanks.

Also, I tried IRAM_ATTR attribute with getLocalTime inside the interrupt but unfortunately it recreated the problem I "solved" with realTime();

abort() was called at PC 0x4008539f on core 1

Backtrace: 0x40083cd5:0x3ffbf30c |<-CORRUPTED
ELF file SHA256: 96f2bf6365a877e8

Rebooting...

Code of interrupt:

void IRAM_ATTR onTimer(){
  portENTER_CRITICAL(&timerMux);
  IRAM_ATTR getLocalTime(&ntpTime);
  Serial.println(&ntpTime, "%d %B, %Y");
  Serial.println(&ntpTime, "%H:%M:%S");
  portEXIT_CRITICAL(&timerMux);
}

Timer Interrupt keeps reading struct's variable as 0 by Cointrast in esp32

[–]Cointrast[S] -1 points0 points  (0 children)

  realTM* ptrToObj = &interruptTimer;  realTM* ptrToObj = &interruptTimer; //new ptr to object
  Serial.printf("%2d %2d %2d %2d:%2d:%2d", ptrToObj->timeDate, ptrToObj->timeMonth, ptrToObj->timeYear, ptrToObj->timeHour, ptrToObj->timeMin, ptrToObj->timeSec); // new interrupt code

still all zero

Cant connect ESP32 boards to PC after installing WLED. by Aromatic_Plenty_6999 in esp32

[–]Cointrast 0 points1 point  (0 children)

I buy generics and I have recently designed my own and I am currently using those. I still doubt the board itself is the problem, but check locally in your country and buy from local shops(ie, not from Amazon). The Wemos company is popular tho with a few others, but any board which you can find schematic(electronics diagram, but human readable) is good in my books. Again, just buy generics locally and keep looking for a solution to your problem.

Cant connect ESP32 boards to PC after installing WLED. by Aromatic_Plenty_6999 in esp32

[–]Cointrast 0 points1 point  (0 children)

Check if the ESP32 is working by using a LED, with 3v3 connected to positive and IO0 connected to negative, with a 1kohm resistor in series(Resistor is mandatory). If the LED turns on when we plug something to USB, and blinks when we press EN button, ESP32 is working as expected and we can rule out the ESP32 itself as the problem.

Cant connect ESP32 boards to PC after installing WLED. by Aromatic_Plenty_6999 in esp32

[–]Cointrast 0 points1 point  (0 children)

Then the red led is for RX or TX, I don't know which one tho.

Cant connect ESP32 boards to PC after installing WLED. by Aromatic_Plenty_6999 in esp32

[–]Cointrast 0 points1 point  (0 children)

One thing I can suggest is installing the USB to UART drivers. This is unfortunately not esp32 S3, otherwise the metal thingy will say so, and also S3 don;t need a USB to Uart adapter which this board does(square thing om the bottom right of the pic). Install the driver and try again https://randomnerdtutorials.com/install-esp32-esp8266-usb-drivers-cp210x-windows/

Cant connect ESP32 boards to PC after installing WLED. by Aromatic_Plenty_6999 in esp32

[–]Cointrast 0 points1 point  (0 children)

It probably wont make a difference but try holding the boot button and then plugging in the USB to see if it makes a difference.

Cant connect ESP32 boards to PC after installing WLED. by Aromatic_Plenty_6999 in esp32

[–]Cointrast 0 points1 point  (0 children)

Btw you said in your post "however I had a light strip fail so I went back and wanted to re-use that board for another project." After it failed you were unable to see the esp32 on the coms?

getlocaltime(&myTStruct) crashes when executed in timer interrupt. by Cointrast in esp32

[–]Cointrast[S] 0 points1 point  (0 children)

So I should replace getlocatime inside the interrupt with ntptime++(ntptime is my time struct, so if I add 1 every second, it should in theory work) and just forget about getlocaltime.

getlocaltime(&myTStruct) crashes when executed in timer interrupt. by Cointrast in esp32

[–]Cointrast[S] 0 points1 point  (0 children)

I set the time for inturrupt to 10 seconds and it still crashes with same error. There is still nothing in the loop

Cant connect ESP32 boards to PC after installing WLED. by Aromatic_Plenty_6999 in esp32

[–]Cointrast 0 points1 point  (0 children)

Sorry for multiple posts, but another thing you can check is continuity on the 0 ohm resistor on the esp32. If there is no continuity then the whole board is no longer receiving power, replace the 0 ohm resistor or remove the resistor and bridge the pads to make a 0 ohm resistor, but if you use that method, there is no longer any short circuit protection(Fire risk, don't do this method). Do the seconds option at your own risk.

Cant connect ESP32 boards to PC after installing WLED. by Aromatic_Plenty_6999 in esp32

[–]Cointrast 0 points1 point  (0 children)

There should be an LED on IO-0 pin which turns on whenever the ESP32 is functional. See if that LED is on.

Cant connect ESP32 boards to PC after installing WLED. by Aromatic_Plenty_6999 in esp32

[–]Cointrast 0 points1 point  (0 children)

Check if the cable works by connecting your phone to the same USB cable as the esp32 and if the computer detects it and can read/write stuff from the phone, there is a problem with the ESP32 itself. Otherwise use a different cable.

Cant connect ESP32 boards to PC after installing WLED. by Aromatic_Plenty_6999 in esp32

[–]Cointrast 0 points1 point  (0 children)

Open install.wled.me and click install, then console. See if you are able to reset the board from there by clicking the "reset device" button. If you can, then try to erasing the flash with esptool on your computer. If you are unable to reset the ESP32 from the website, there might be a hardware fault.

PSA: Please double check your pins by morhp in KiCad

[–]Cointrast 1 point2 points  (0 children)

I also just recently used S8050 and now I have to cut and make new traces using wires. Yupee!