Search found 3 matches

by frosticles
Sun Jul 16, 2017 2:33 pm
Forum: ESP-IDF
Topic: [UART] Printing to console while using UART 1
Replies: 1
Views: 6071

[UART] Printing to console while using UART 1

Hi, I'm reading data from UART 1, doing some processing on it, then logging the result to console which is on the default UART 0. The program is extremely unstable when I'm printing to console using either printf() or ESP_LOGI(), but is completely stable when these lines are commented out. The error...
by frosticles
Sat Jul 01, 2017 12:36 pm
Forum: ESP-IDF
Topic: UART: Unable to transmit data
Replies: 3
Views: 6883

Re: UART: Unable to transmit data

Thanks for the reply, I misread the documents so I've changed it to: uint8_t *writeBuf = (uint8_t *)"$PMTK220,10000*2F\r\n"; uart_write_bytes(UART_NUM_1, (const char *)writeBuf, 128); This didn't work at first, but when I moved the uart_write_bytes() call further down the program after I'd read a fe...
by frosticles
Fri Jun 30, 2017 4:56 pm
Forum: ESP-IDF
Topic: UART: Unable to transmit data
Replies: 3
Views: 6883

UART: Unable to transmit data

I'm using an MTK3339 GPS module with UART1 in pins 16 (RX) & 17 (TX). I can read data coming from the GPS module with uart_read_bytes() on UART1, but I can't get uart_write_bytes() working to send commands to the module (see: https://cdn-shop.adafruit.com/datasheets/PMTK_A11.pdf ). I've tried sendin...