Search found 305 matches
- Fri Jul 13, 2018 1:11 pm
- Forum: ESP-IDF
- Topic: ESP32 wifi scan not finding SSID [solved]
- Replies: 7
- Views: 14608
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...
- Wed Jul 11, 2018 1:05 pm
- Forum: ESP-IDF
- Topic: Can driver usage.
- Replies: 2
- Views: 4295
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.
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.
- Mon Jul 09, 2018 9:51 am
- Forum: Hardware
- Topic: FTDI USB Converter + ESP32 Dev. Kit DOIT
- Replies: 1
- Views: 4558
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...
- Mon Jul 09, 2018 7:23 am
- Forum: ESP-IDF
- Topic: UDP socket non-blocking
- Replies: 3
- Views: 5692
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.
- Thu Jul 05, 2018 1:27 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 308882
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.
- Wed Jul 04, 2018 5:07 pm
- Forum: ESP-IDF
- Topic: esp_timer: timer queue overflow
- Replies: 11
- Views: 14972
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 ...
- Tue Jun 19, 2018 4:56 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 308882
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...
- Tue Jun 19, 2018 3:16 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 308882
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...
- Tue Jun 19, 2018 10:43 am
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 308882
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_Tx. In ...
- Mon Jun 18, 2018 8:59 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 308882
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.