Search found 114 matches

by newsettler_AI
Wed May 02, 2018 11:34 am
Forum: General Discussion
Topic: Robust method to receive data from UART?
Replies: 8
Views: 4354

Robust method to receive data from UART?

Hi! I have connected ESP32 to other controller(STM32)and I need to send/receive data by UART, something like command-answer (esp32 sends command and stm32 sends responce). Also there is TCP server on ESP32 side, but I thinks its not the issue here. I'm sendting 10..50 bytes from esp32 and expecting ...
by newsettler_AI
Wed May 02, 2018 10:51 am
Forum: General Discussion
Topic: Example of simple TCP server?
Replies: 3
Views: 6687

Re: Example of simple TCP server?

Are there some examples of this api in esp idf?
by newsettler_AI
Fri Apr 27, 2018 5:11 pm
Forum: General Discussion
Topic: Example of simple TCP server?
Replies: 3
Views: 6687

Example of simple TCP server?

Hi, I'm looking for examples of TCP server. I need to read-write data over tcp: esp32 starts as wifi softap, then I connect from android phone and start some android tcp client. Then I can exchanging data. I have done wifi section and make some tcp connection. Problem is that tcp server droping conn...
by newsettler_AI
Thu Apr 26, 2018 2:11 pm
Forum: General Discussion
Topic: UART to SPP bridge: how to send data from UART to SPP?
Replies: 9
Views: 3619

Re: UART to SPP bridge: how to send data from UART to SPP?

I have managed this route UART -> SPP! :P As Markus said, I'm keeping handle for connection and then transferring it to my functions. And as chegewara noted about unions, I have remake my function for transferring handle, len&buffers (I'm pretty sure there was some mistake). Thanks you both! :)
by newsettler_AI
Thu Apr 26, 2018 12:20 pm
Forum: General Discussion
Topic: UART to SPP bridge: how to send data from UART to SPP?
Replies: 9
Views: 3619

Re: UART to SPP bridge: how to send data from UART to SPP?

param is type of union esp_spp_cb_param_t: https://github.com/espressif/esp-idf/blob/ff726b4c79194e6815d2e8567ec17f106425dc44/components/bt/bluedroid/api/include/esp_spp_api.h#L168 For this particular event it will be this structure: https://github.com/espressif/esp-idf/blob/ff726b4c79194e6815d2e85...
by newsettler_AI
Thu Apr 26, 2018 11:53 am
Forum: General Discussion
Topic: UART to SPP bridge: how to send data from UART to SPP?
Replies: 9
Views: 3619

Re: UART to SPP bridge: how to send data from UART to SPP?

Why? It should be int type, not int*: https://github.com/espressif/esp-idf/blob/ff726b4c79194e6815d2e8567ec17f106425dc44/components/bt/bluedroid/api/esp_spp_api.c#L153 Yes and it is uint32, but in debugger I'm looking at param which comes as address. In debug log (under CASE in cb section) this loo...
by newsettler_AI
Thu Apr 26, 2018 11:25 am
Forum: General Discussion
Topic: UART to SPP bridge: how to send data from UART to SPP?
Replies: 9
Views: 3619

Re: UART to SPP bridge: how to send data from UART to SPP?

handle is uint32_t type: https://github.com/espressif/esp-idf/blob/ff726b4c79194e6815d2e8567ec17f106425dc44/components/bt/bluedroid/api/include/esp_spp_api.h#L95-L99 but what is interesting its the len value, i dont think it should be as high, it looks more like address or wrong value. Yes, this is...
by newsettler_AI
Thu Apr 26, 2018 10:38 am
Forum: General Discussion
Topic: UART to SPP bridge: how to send data from UART to SPP?
Replies: 9
Views: 3619

Re: UART to SPP bridge: how to send data from UART to SPP?

Thanks for advice Markus! I will controll connection status. But still I'm not sure how param handle should to looks like? void SPP_to_UART_write(esp_spp_cb_param_t param) { esp_spp_write(param.write.handle, MyData.UART_len, MyData.UART_buffer); } void app_main() { ... // maybe like this? esp_spp_cb...
by newsettler_AI
Wed Apr 25, 2018 7:44 am
Forum: General Discussion
Topic: UART to SPP bridge: how to send data from UART to SPP?
Replies: 9
Views: 3619

UART to SPP bridge: how to send data from UART to SPP?

Hi, I need to exchange data from PC (by UART) to smartphone over SPP. Data from UARTmust be send to SPP and SSP data to UART. Rout SPP-> UART works fine (thanks to loboris for assist ;) ), but I have trouble with handling esp_spp_write function in route UART -> SPP. Here is prototype: /** * @brief T...
by newsettler_AI
Fri Apr 06, 2018 10:40 am
Forum: General Discussion
Topic: ESP32 Bluetooth SPP with bidirectional communication (send and receive)
Replies: 21
Views: 19698

ESP32 Bluetooth SPP with bidirectional communication (send and receive)

Hi, I need that ESP can send and receive data over SPP while connected to Android smartphone (let say, using any spp terminal I need to receive and send commands). In IDF examples there are 2 examples for acceptor and initiator. I have checked acceptor and it works fine. Only one thing - it working ...

Go to advanced search