Search found 121 matches

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: 12
Views: 15782

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: 12
Views: 15782

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: 12
Views: 15782

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: 12
Views: 15782

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: 12
Views: 15782

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: 12
Views: 15782

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: 22
Views: 55718

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 ...
by newsettler_AI
Sun Dec 17, 2017 9:31 pm
Forum: General Discussion
Topic: Project organization in eclipse and github
Replies: 2
Views: 4762

Re: Project organization in eclipse and github

For example, you can create fithub repository which will be in BASE folder, then in this folder you can have as many as you wish subfolders and each subfolder will be separate project, like in esp-idf/example folder. Then you will import every single project to eclipse and work with it. When you ar...
by newsettler_AI
Sun Nov 19, 2017 5:23 pm
Forum: General Discussion
Topic: Project organization in eclipse and github
Replies: 2
Views: 4762

Project organization in eclipse and github

Hi! I'm not so familiar with github and eclipse IDE, so I would like to ask some help. Some of questions may be pretty obvious, but I have tried to solve them by myself and didn't succeed. 1) how can I create global folder for projects in Eclipse Project Explorer? For examle, I want to make next tre...
by newsettler_AI
Sun Nov 19, 2017 1:02 pm
Forum: General Discussion
Topic: Mass Production with ESP32
Replies: 8
Views: 15604

Re: Mass Production with ESP32

1. How to read flash chip through spi interface. 2. How prevent others to copy my flash in the way as in the question 1 mentioned. :lol: Gfast2 1. Use mingw from framework: python E:/ESP32/esp-idf/components/esptool_py/esptool/esptool.py --port COM5 --baud 230400 read_flash 0 0x400000 original_cont...