Search found 15 matches

by DanCurram
Tue Feb 04, 2020 3:30 pm
Forum: ESP-IDF
Topic: Uart RX losing data when recieving data at high baud rates
Replies: 1
Views: 3219

Re: Uart RX losing data when recieving data at high baud rates

After Carrying out more testing Anything faster than 38400bps results in the default uart isr loosing bytes when more than 120 chars are sent consecutively and with no gaps between chars. eg A server cert file with 2086 bytes can loose up to 10 bytes. But occasionally this code also fails at 38400bp...
by DanCurram
Mon Feb 03, 2020 6:03 pm
Forum: ESP-IDF
Topic: Uart RX losing data when recieving data at high baud rates
Replies: 1
Views: 3219

Uart RX losing data when recieving data at high baud rates

Summary the rx isr looses data when the receiving consecutive data over the uart fifo full threshold (120 bytes @115200 bps) The default uart ISR is very long and has while loops in it processing the TX of data. ( up to 300 lines of code) So has anyone a working minimal uart isr that only deals with...
by DanCurram
Mon Feb 03, 2020 5:51 pm
Forum: Hardware
Topic: Uart RX losing data when recieving data at high baud rates
Replies: 7
Views: 12976

Re: Uart RX losing data when recieving data at high baud rates

Changing the FIFO full threshold did not cure the problem, it still loses data on the FIFO full threshold. Tried setting it to 96 , 64 and it just moved the issue. This is perhaps in the wrong topic area and should be in the IDF area as it is a driver in the IDF There is apart of the isr code that h...
by DanCurram
Mon Feb 03, 2020 10:01 am
Forum: Hardware
Topic: Uart RX losing data when recieving data at high baud rates
Replies: 7
Views: 12976

Re: Uart RX losing data when recieving data at high baud rates

@WiFive I will drop the FIFO buffer threshold and see how I get on. I have looked at the uart.c file and the function static void uart_rx_intr_handler_default(void *param) If this is an ISR routine at 300 odd lines covering all the uart isr events (uart_event_type_t) is this why it misses chars bein...
by DanCurram
Fri Jan 31, 2020 5:42 pm
Forum: Hardware
Topic: Uart RX losing data when recieving data at high baud rates
Replies: 7
Views: 12976

Re: Uart RX losing data when recieving data at high baud rates

I have based the uart RX side of the code, on this example. https://github.com/espressif/esp-idf/blob/600d542f53ab6540d277fca4716824d168244c8c/examples/peripherals/uart/uart_events/main/uart_events_example_main.c The test file I am sending currently sending 632 bytes. ( cut and paste of abcdefghijkl...
by DanCurram
Fri Jan 31, 2020 3:09 pm
Forum: Hardware
Topic: Uart RX losing data when recieving data at high baud rates
Replies: 7
Views: 12976

Re: Uart RX losing data when recieving data at high baud rates

viewtopic.php?f=19&t=13312&p=52666&hilit=UART+RX#p52666

viewtopic.php?f=2&t=6130&p=51693&hilit=UART+RX#p51693

So swagging it looks like I have to change how deal with the data from the event handler or the priorites around the uart task
by DanCurram
Fri Jan 31, 2020 2:21 pm
Forum: Hardware
Topic: Uart RX losing data when recieving data at high baud rates
Replies: 7
Views: 12976

Uart RX losing data when recieving data at high baud rates

So set up a serial port to work at 115200bps. Once I have the rest of my code stable I want to go up to 460800 bps to reduce data transfer times. The CPU frequency is set to 240Mhz I process the data in the event handler set up for that RX. I look for a terminating character eg \r of \n. when I find...
by DanCurram
Thu Dec 05, 2019 11:38 am
Forum: General Discussion
Topic: How to migrate from tcpip_adapter_* to esp_netif_`*
Replies: 7
Views: 21357

Re: How to migrate from tcpip_adapter_* to esp_netif_`*

So looking at using a TCP client socket and following the examples it uses esp_netif.h but the IDE cant find it so esp_netif_init(); also fails

using the version 4 release - so has anyone come across this ?

TIA Danny
by DanCurram
Thu Mar 07, 2019 10:05 am
Forum: General Discussion
Topic: Classic BT SPP Security
Replies: 0
Views: 2579

Classic BT SPP Security

So I appear to have the Esp32 behaving as a classic SPP device with a PIN code ( eg pairing with a Bluegiga WT12B module) But now have com across a different security issue I am now connecting to the Esp32 with a Broadcom BCM20702 Bluetooth 4.0 USB device that is connected to a Linux based platform....
by DanCurram
Wed Feb 27, 2019 4:07 pm
Forum: General Discussion
Topic: Blue tooth - Classic PIN protection for pairings
Replies: 0
Views: 2570

Blue tooth - Classic PIN protection for pairings

I have written code for an esp32 to emulate the Bluegiga wt12B module. The Bluegiga device is becoming hard to get and expensive and we are still making 1000s of the product that uses it so plan to replace it with an esp32 device I can get the esp32 to do almost i need but still have a problem with ...