Search found 55 matches

by jcsbanks
Fri Jul 13, 2018 1:11 pm
Forum: ESP32 IDF
Topic: ESP32 wifi scan not finding SSID [solved]
Replies: 6
Views: 194

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: 1
Views: 96

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: 112

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: 95

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: 158
Views: 48658

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.
by jcsbanks
Wed Jul 04, 2018 5:07 pm
Forum: ESP32 IDF
Topic: esp_timer: timer queue overflow
Replies: 0
Views: 72

esp_timer: timer queue overflow

Using the high resolution timer, all is good for periods above a few microseconds. If I use a period of 0, after a handful of callbacks, I get esp_timer: timer queue overflow Obviously it is a bit of a waste to setup a timer with a callback with a time of 0, but it is sometimes convenient to save a ...
by jcsbanks
Tue Jun 19, 2018 4:56 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 158
Views: 48658

Re: About the CAN controller.

This does work if heavy handed, but applicable to my application in particular. Maybe there is a way to get it just to defer CAN_isr. Was this what you mean about comparing to a value? I use TBS instead of TCS because it seems analogous to the TIE, the buffer is available even if the previous transm...
by jcsbanks
Tue Jun 19, 2018 3:16 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 158
Views: 48658

Re: About the CAN controller.

int CAN_write_frame(CAN_frame_t* p_frame) { int status = 0; MODULE_CAN->IER.B.TIE = 0; if (uxQueueMessagesWaiting(tx_queue)) status = xQueueSend( tx_queue, p_frame, 0 ); else if (MODULE_CAN->SR.B.TBS) CAN_Tx(p_frame); MODULE_CAN->IER.B.TIE = 1; return status; } Somehow this is missing 1% of transmi...
by jcsbanks
Tue Jun 19, 2018 10:43 am
Forum: Hardware
Topic: About the CAN controller.
Replies: 158
Views: 48658

Re: About the CAN controller.

To implement the CAN Tx queue using interrupt: int CAN_write_frame(CAN_frame_t* p_frame) { if (MODULE_CAN->SR.B.TBS && !uxQueueMessagesWaiting(tx_queue)) { CAN_Tx(p_frame); return 0; } return xQueueSend( tx_queue, p_frame, 10/portTICK_PERIOD_MS ); } Original CAN_write_frame is renamed to CAN...
by jcsbanks
Mon Jun 18, 2018 8:59 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 158
Views: 48658

Re: About the CAN controller.

That would be very nasty, it is going very fast now with 100% CAN bus loads over many millions of frames whilst running WiFI without errors. My peak load will be about 50% in actual use.