Search found 114 matches

by newsettler_AI
Sat Nov 04, 2017 2:34 pm
Forum: General Discussion
Topic: Separating gap_callback and gatt_callback
Replies: 5
Views: 2063

Separating gap_callback and gatt_callback

Hi, I want to make ble scanner. I'm playing with gatt_client demo example: https://github.com/espressif/esp-idf/blob/master/examples/bluetooth/gatt_client/main/gattc_demo.c I have configured needed info output and now I want to "cut off" all GATT stuff (since I using only GAP feature - scan). But wh...
by newsettler_AI
Sat Nov 04, 2017 3:06 am
Forum: General Discussion
Topic: UART command line (using interrupts) freezes
Replies: 0
Views: 1108

UART command line (using interrupts) freezes

Hi, I'm trying to make command line over uart. About application in short: I want connect esp32 to uart-ttl converter, open terminal and send "command_1". Esp32 should answer "answer_1"; uart-ttl: "give_data", esp32:"data:xxxxxxxxxxxxxxxxxxxx (up to 100 bytes) " There are 2 commands it total, and es...
by newsettler_AI
Fri Nov 03, 2017 9:21 am
Forum: General Discussion
Topic: convert ADC readings
Replies: 2
Views: 3102

Re: convert ADC readings

how can I calculate adc voltage without using adc1_to_voltage function? Why would you want to? That function corrects for nonlinearity and should give the best result. At first, this function dont show 0 when I short adc pin to ground, its about 30-70 mV. So I need to set some rule for adc_raw = 0....
by newsettler_AI
Fri Nov 03, 2017 2:04 am
Forum: General Discussion
Topic: convert ADC readings
Replies: 2
Views: 3102

convert ADC readings

Hi, I'm trying to measure input voltage by adc1 in range 0 - 3,3 V. This is how I expected to convert raw values to voltage: adc_input_voltage = (Vref * adc_RAW ) / 4096 and here is part code & settings: float convert_adc_to_voltage(uint32_t adc_val) { float adc_volt = (3.3 * adc_val) / 4096; return...
by newsettler_AI
Thu Oct 12, 2017 9:10 am
Forum: General Discussion
Topic: Flashing ESP32 without buttons? (CTS RTS at uart dongle)
Replies: 6
Views: 6075

Re: Flashing ESP32 without buttons? (CTS RTS at uart dongle)

Hi, sorry for late delay with answer. Recently I got new esp core board and it flashing automaticaly without issues. :) But now I'm interesting, is it possible to flash automatically bare ESP-WROOM-32 module using only CTS and RTS pins? I have checked schematic of coreboard. https://dl.espressif.com...
by newsettler_AI
Mon Sep 18, 2017 3:14 pm
Forum: General Discussion
Topic: Flashing ESP32 without buttons? (CTS RTS at uart dongle)
Replies: 6
Views: 6075

Re: Flashing ESP32 without buttons? (CTS RTS at uart dongle)

Well, I'm dont have such capasitor onhand right now, I will try it later. Aslo, I noticed, that there is one more solution in topic - changing time.sleep() to 0.5 in line 352. I tried, by Eclipse says: File "D:/ESP32/esp-idf/components/esptool_py/esptool/esptool.py", line 352 time.sleep(0.5) ^ Inden...
by newsettler_AI
Mon Sep 18, 2017 12:29 pm
Forum: General Discussion
Topic: Flashing ESP32 without buttons? (CTS RTS at uart dongle)
Replies: 6
Views: 6075

Re: Flashing ESP32 without buttons? (CTS RTS at uart dongle)

Yes, this is my ESP32 board.

I'm using Eclipse and when I'm trying load projects, I need firstly hold BOOT and then restart module (press EN). ESP runs in boot-mode.
Overwise eslipse cant load firmware.

Should I edit esptool.py or change something in eclipse settings?
by newsettler_AI
Mon Sep 18, 2017 10:25 am
Forum: General Discussion
Topic: Flashing ESP32 without buttons? (CTS RTS at uart dongle)
Replies: 6
Views: 6075

Flashing ESP32 without buttons? (CTS RTS at uart dongle)

Hi, I have ESP32-Core-board-v2 kit and FTDI uart converter. http://www.mini-tech.com.ua/image/cache/data/programmers/ft232rl_red-550x550.jpg How can I use RTS and CTS pins to automatize a little flashing process? I want esp can enter in boot mode via remote access (let say, I leaved it in one place ...
by newsettler_AI
Thu Sep 07, 2017 8:21 am
Forum: ESP32 IDF
Topic: GPIO remapping issue (peripheral doesnt work on certain pins)
Replies: 1
Views: 1475

GPIO remapping issue (peripheral doesnt work on certain pins)

Hi, I have issue with GPIO pins remapping. I tried official idf example of i2c peripheral on ESP32 DevKit: https://github.com/espressif/esp-idf/tree/master/examples/peripherals/i2c It works fine, but when I tried to change to another GPIO pin (i.e: in this section #define I2C_EXAMPLE_MASTER_SCL_IO 1...
by newsettler_AI
Wed Jul 05, 2017 2:43 pm
Forum: Showcase
Topic: A very basic WebSocket Server
Replies: 12
Views: 19772

Re: A very basic WebSocket Server

Hi,

I have little issue with this example.
ws_err.jpg
ws_err.jpg (104.43 KiB) Viewed 2610 times
Am I correct that some includes missing?

UPD:

need to add
#include "lwip/API.h"

in WebSocket_Task.c :)

Go to advanced search