Search found 37 matches

by Pcborges
Sun May 02, 2021 2:14 pm
Forum: General Discussion
Topic: ESP32 - ESPNOW: Peer interface is invalid
Replies: 0
Views: 3300

ESP32 - ESPNOW: Peer interface is invalid

Hi, I am trying to implement ESP NOW in a way that I only need to enter at my master the MAC address of the peer. Then I send the master’s MAC to the peer so the peer can register the master’s received MAC. I succeeded to send the Master’s MAC to the peer but so far I failed to have the peer registe...
by Pcborges
Sun May 02, 2021 1:35 am
Forum: ESP32 Arduino
Topic: ESP-NOW sscanf( fails to identify MAC address
Replies: 5
Views: 6179

Re: ESP-NOW sscanf( fails to identify MAC address

Some changes in the code: // Callback when data is received void OnDataRecv(const uint8_t * mac, const uint8_t *incomingData, int len) { memcpy(&incomingReadings, incomingData, sizeof(incomingReadings)); Serial.print("Bytes received: "); Serial.println(len); incomingTemp = incomingReadings.temp; inc...
by Pcborges
Sun May 02, 2021 12:52 am
Forum: ESP32 Arduino
Topic: ESP-NOW sscanf( fails to identify MAC address
Replies: 5
Views: 6179

Re: ESP-NOW sscanf( fails to identify MAC address

Just an update I just cannot explain... If I leave the sketch to run for a while it eventually prints a big broadcastAddress, please check at the end. What am I doing wrong? 21:48:45.243 -> ets Jun 8 2016 00:22:57 21:48:45.243 -> 21:48:45.243 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT...
by Pcborges
Sat May 01, 2021 11:11 pm
Forum: ESP32 Arduino
Topic: ESP-NOW sscanf( fails to identify MAC address
Replies: 5
Views: 6179

Re: ESP-NOW sscanf( fails to identify MAC address

"sizeof does not return the length of a string" OK, I was sure the size of a char array could be found with sizeof, will research, thanks. But my real problem is why this: sscanf( mac, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx",&broadcastAddress[0], &broadcastAddress[1], &broadcastAddress[2],&broadcastAddress[...
by Pcborges
Sat May 01, 2021 10:36 pm
Forum: ESP32 Arduino
Topic: ESP-NOW sscanf( fails to identify MAC address
Replies: 5
Views: 6179

ESP-NOW sscanf( fails to identify MAC address

Hi, I am trying to implement ESP NOW in a way that I only need to enter at my master the MAC address of the peer. Then I send the master's MAC to the peer so the peer can register the master's received MAC. I succeeded to send the Master's MAC to the peer but so far I failed to have the peer registe...
by Pcborges
Mon Apr 12, 2021 11:32 am
Forum: ESP32 Arduino
Topic: Why SSD1306 OLED display get scrambled text when printing messages from tasks pinned to Core0 in RTOS?
Replies: 1
Views: 3180

Why SSD1306 OLED display get scrambled text when printing messages from tasks pinned to Core0 in RTOS?

ESP32 with RTOS, test app with 2 independent tasks. Each prints a message to OLED display. Why text gets frequently scrambled? Mutex have been used to share display resource. I found that if I put Task01 to run on the same core as Task02 (core 1) it works perfectly. And if I put both to run on core ...
by Pcborges
Wed Apr 29, 2020 11:30 pm
Forum: ESP32 Arduino
Topic: ESP32 login to FTP server using GPRS does not work.
Replies: 0
Views: 3508

ESP32 login to FTP server using GPRS does not work.

Hi, I am trying to transfer a small image (5k) to an FTP server (http would also do) but so far no success. The line: client.connect(ftpServer,21) works and the FTP server returns its welcome text but nothing else works. I can connect with the same credentials using telnet (using Putty). In my case ...
by Pcborges
Thu Apr 09, 2020 1:01 am
Forum: General Discussion
Topic: ESP32 to ESP32 local communication
Replies: 5
Views: 11270

Re: ESP32 to ESP32 local communication

Hi, thanks all.
What I need is to connect a camera to a TTGO Call where most pins are already taken. relocating some functions may be a solution but I would prefer to have an ESP32-Cam sending captured pictures once every, say, 10 minutes. That would solve the problem.
Regards
by Pcborges
Wed Apr 08, 2020 8:54 pm
Forum: General Discussion
Topic: Assistance with Tranfer image from ESP32-Cam to ESP32 via serial
Replies: 0
Views: 4517

Assistance with Tranfer image from ESP32-Cam to ESP32 via serial

Hi, I have run out of GPIO pins on my ESP32 project but still need to capture a picture. For that I am trying to use an ESP32-Cam. Cameras need a lot of pins and I just do not have them available. The ESP-Cam takes the picture and sends to ESP32, I would like to get the image and send it to FTP but ...
by Pcborges
Thu Mar 05, 2020 7:31 pm
Forum: General Discussion
Topic: ESP32 to ESP32 local communication
Replies: 5
Views: 11270

ESP32 to ESP32 local communication

Hi, I have a project where I need more GPIO pins than freely available on the ESP32 and would like to have a second ESP32 managing some sensors and, when requested, send sensor reading to the main ESP32 to be uploaded to the internet via GPRS (no Wifi available). I would like to avoid using local Wi...