Search found 300 matches

by jcsbanks
Wed Jul 25, 2018 3:50 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 174
Views: 111713

Re: About the CAN controller.

Mine was a faulty transceiver, but you've tried another one. Your other CAN bus participants should ACK the CAN transmit you are doing. I have one problem recently with dropped CAN frames when the ESP32 was busy with lots of other tasks. That turned out to be inadequate ESP32 power supply from a lap...
by jcsbanks
Tue Jul 24, 2018 12:18 pm
Forum: ESP32 IDF
Topic: How to use TCP_NODELAY with netconn to disable Nagle?
Replies: 5
Views: 3201

Re: How to use TCP_NODELAY with netconn to disable Nagle?

ESP_Angus, thanks so much, your example was useful to learn how to do a minimal example with TCP sending. With ESP32 as AP, using iperf config settings... netconn_write "OHAI!\n" at 1000Hz: Nagle disabled: 1000 TCP sent packets per second with every other one being ACK'd by Windows very fast (so 500...
by jcsbanks
Mon Jul 23, 2018 9:14 pm
Forum: ESP32 IDF
Topic: How to use TCP_NODELAY with netconn to disable Nagle?
Replies: 5
Views: 3201

Re: How to use TCP_NODELAY with netconn to disable Nagle?

Thanks! Lots of great points there I will work on. I am getting multiple websockets added to one TCP frame yes. I think I am having this problem due to Windows delayed ACK but need to prove this. If this is so, I need to think of ways around that since changing it on Windows in an application when I...
by jcsbanks
Sun Jul 22, 2018 12:57 am
Forum: ESP32 IDF
Topic: How to use TCP_NODELAY with netconn to disable Nagle?
Replies: 5
Views: 3201

Re: How to use TCP_NODELAY with netconn to disable Nagle?

tcp_nagle_disable(conn->pcb.tcp) does change tcp_nagle_disabled(conn->pcb.tcp) from 0 to 1, but sending lots of small packets still sees them bundled together over 40ms whereas in some cases I'd like to see less latency at the expense of throughput.
by jcsbanks
Sun Jul 22, 2018 12:10 am
Forum: ESP32 IDF
Topic: How to use TCP_NODELAY with netconn to disable Nagle?
Replies: 5
Views: 3201

How to use TCP_NODELAY with netconn to disable Nagle?

I want to try disabling Nagle's algorithm in lwip.

I have tried tcp_nagle_disable(conn) but it doesn't seem to disable the bundling together of small netconn_write(conn, p_data, length, NETCONN_COPY).
by jcsbanks
Fri Jul 13, 2018 1:11 pm
Forum: ESP32 IDF
Topic: ESP32 wifi scan not finding SSID [solved]
Replies: 7
Views: 3702

Re: ESP32 wifi scan not finding SSID [solved]

One problem I'm having is that if I have multiple access points with the same SSID, password and security (as my network does with 4 access points because stone walls), is that the ESP32 unless I specify a channel will connect to one of the weaker ones with a lower channel number, and if I specify t...
by jcsbanks
Wed Jul 11, 2018 1:05 pm
Forum: ESP32 IDF
Topic: Can driver usage.
Replies: 2
Views: 1462

Re: Can driver usage.

viewtopic.php?f=12&t=380

I have tested 8000 frames per second with no errors once the driver is optimised (otherwise you get multi millisecond delays on receive and lost frames on sending). It still manages that with multiple other tasks and CPU speed reduced to 80MHz.
by jcsbanks
Mon Jul 09, 2018 9:51 am
Forum: Hardware
Topic: FTDI USB Converter + ESP32 Dev. Kit DOIT
Replies: 1
Views: 1657

Re: FTDI USB Converter + ESP32 Dev. Kit DOIT

I am about to do this soon, but haven't yet. There are two strapping pins involved in going into programming mode. https://github.com/espressif/esptool/wiki/ESP32-Boot-Mode-Selection Have you connected FTDI at 115200 and just see if there is the normal info on it during power up. That proves your FT...
by jcsbanks
Mon Jul 09, 2018 7:23 am
Forum: ESP32 IDF
Topic: UDP socket non-blocking
Replies: 2
Views: 1343

Re: UDP socket non-blocking

Long shot from quick look on phone, but if \r and \n end up as two bytes in your string you might not be copying the null termination with length of 30? Might not matter of course.
by jcsbanks
Thu Jul 05, 2018 1:27 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 174
Views: 111713

Re: About the CAN controller.

The changes I am using are in my post in page 15. This way it handles a full CAN bus for hours on end with no dropped frames, with SN65HVD230. I have not measured CPU load but not had any problems.

Go to advanced search