Search found 47 matches

by kbaud1
Tue Mar 13, 2018 4:36 pm
Forum: General Discussion
Topic: listening server
Replies: 20
Views: 4386

Re: listening server

Of course I am using android :roll: Downloaded the tcp tools (nice app) and it connected fine while esp was in client mode (softAP). error in server mode is "connection error:control port or ip address".
by kbaud1
Tue Mar 13, 2018 3:40 pm
Forum: General Discussion
Topic: listening server
Replies: 20
Views: 4386

Re: listening server

when is it a softAP, the esp32 has a 192.168.4.1 address and the first connecting station is 4.2 when in station mode, the esp32 has a 192.168.0.34 address and the remote is at 0.52 here's the full code: #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos...
by kbaud1
Tue Mar 13, 2018 3:06 pm
Forum: General Discussion
Topic: listening server
Replies: 20
Views: 4386

Re: listening server

oh, another thing, the port is fine when in client mode (station and softAP modes). It is just this listening mode that is not working.
by kbaud1
Tue Mar 13, 2018 2:29 pm
Forum: General Discussion
Topic: listening server
Replies: 20
Views: 4386

Re: listening server

Thank you again Kolban for looking at this. I have tried everything I can think of. Bumped stack sizes to 4096. Tried it again this time in softAP mode (bypassing my router). Same thing, "connection actively refused". Verified that windows has that port open. I have a log message right before the ac...
by kbaud1
Mon Mar 12, 2018 10:16 pm
Forum: General Discussion
Topic: using pulse counter to read optical (quadrature) decoder?
Replies: 4
Views: 3279

using pulse counter to read optical (quadrature) decoder?

Does anyone know an example of using the pulse counter peripheral as a quadrature decoder?

http://esp-idf.readthedocs.io/en/v3.0-r ... /pcnt.html
by kbaud1
Mon Mar 12, 2018 9:10 pm
Forum: General Discussion
Topic: listening server
Replies: 20
Views: 4386

Re: listening server

#include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_system.h" #include "esp_wifi.h" #include "esp_event_loop.h" #include "esp_log.h" #include "nvs_flash.h" #include "lwip/err.h" #include "lwip/sockets.h" #include "lwip/sys.h...
by kbaud1
Mon Mar 12, 2018 8:23 pm
Forum: General Discussion
Topic: listening server
Replies: 20
Views: 4386

Re: listening server

thank you Kolban for your rapid reply. Enjoying your book! I replaced the following line: int sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); with: sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); this cleared up the accept error but portqry says the port is not listening. Attempts to connect wit...
by kbaud1
Mon Mar 12, 2018 6:26 pm
Forum: General Discussion
Topic: listening server
Replies: 20
Views: 4386

listening server

I bought Kolban's book and am using his code example (I added more logging after I ran into problems) for a listening server. int s, r, sock; char recv_buf[64]; struct sockaddr_in clientAddress; struct sockaddr_in serverAddress; static void startServer(void) { /* Wait for the callback to set the CON...
by kbaud1
Sat Mar 10, 2018 1:30 pm
Forum: General Discussion
Topic: ULP access timer peripherals?
Replies: 6
Views: 1527

Re: ULP access timer peripherals?

The only clock we have been able to access in the ULP is the RTC slow clock (150khz).

I have not found a way to read the FRC1 from within the ULP. Any ideas?
by kbaud1
Fri Mar 09, 2018 2:31 am
Forum: General Discussion
Topic: using the SPI flash pins for other things
Replies: 7
Views: 2546

Re: using the SPI flash pins for other things

thank you, I have been looking at the EFM8 actually. already have a dev kit.