Search found 10 matches
- Fri Sep 07, 2018 8:06 pm
- Forum: General Discussion
- Topic: I2C not reading properly
- Replies: 0
- Views: 2856
I2C not reading properly
I'm trying to communicate with a Si8901 I2C ADC IC. From the documentation, this is the I2C protocol: Screen Shot 2018-09-07 at 1.05.25 PM.png Here is my code: #include <stdio.h> #include "driver/i2c.h" #include "driver/periph_ctrl.h" #define ACK_CHECK_EN 0x1 #define ACK_CHECK_DIS 0x0 /*!< I2C maste...
- Thu May 17, 2018 7:39 pm
- Forum: General Discussion
- Topic: BLE not broadcasting after WIFI connects
- Replies: 2
- Views: 4396
BLE not broadcasting after WIFI connects
I have a button that enables BLE, and allows my app to connect to the ESP32 over BLE. The ESP32 also connects automatically to a wifi network. What I've found is if the ESP32 connects to the wifi network and I push the button to enable BLE, the ESP32 doesn't actually start BLE. If push the button to...
- Thu Dec 21, 2017 10:06 pm
- Forum: General Discussion
- Topic: Compressing OTA Image
- Replies: 4
- Views: 8756
Re: Compressing OTA Image
ESP_Angus, I currently have in place a way to transfer the image over the air from my secure server. Everything works great. My image is over 1M so I want compress it so I don't have to alter the standard OTA partition table. Do I have to decompress it once I've saved it to the OTA_1/OTA_2 memory lo...
- Thu Dec 21, 2017 8:25 pm
- Forum: General Discussion
- Topic: Compressing OTA Image
- Replies: 4
- Views: 8756
Compressing OTA Image
I have noticed when I run make flash, the output shows the image was compressed. Is there anyway to access the compressed image for OTA?
- Fri Oct 20, 2017 2:51 pm
- Forum: General Discussion
- Topic: LCD with I2C Driver
- Replies: 0
- Views: 2671
LCD with I2C Driver
Is there a library I can use to drive a 4X20 LCD over I2C like this one from Adafruit?
- Fri Jun 16, 2017 9:35 pm
- Forum: General Discussion
- Topic: Set MAC Address
- Replies: 6
- Views: 18957
Set MAC Address
My application requires me to set the mac address and then report that address when I connect to a websocket. I found this from read the docs. Right now I use esp_wifi_get_mac() to get the mac address of the wifi module, and that's what I'm reporting to the server. I now need to set that mac address...
- Wed May 24, 2017 10:10 pm
- Forum: General Discussion
- Topic: OTA and base64 decoding
- Replies: 2
- Views: 5634
Re: OTA and base64 decoding
Got it working. Below I have the code for the base64 decode. static const char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; static const int BASE64_INPUT_SIZE = 57; char isbase64(char c) { return c && strchr(table, c) != NULL; } inline char value(char c) { const char...
- Tue May 23, 2017 9:30 pm
- Forum: General Discussion
- Topic: OTA and base64 decoding
- Replies: 2
- Views: 5634
OTA and base64 decoding
I'm working on a custom OTA solution that encodes the .bin file using base64 and sends it to the esp32 in 1024 chunks using JSON. The server is working. Right now I get the entire image from the server, but I don't know how to decode the base64 code and save it to the OTA image. The encoding table i...
- Wed May 10, 2017 1:20 pm
- Forum: General Discussion
- Topic: DS1339 RTC
- Replies: 2
- Views: 6607
Re: DS1339 RTC
Mr, Kolban. Thanks! I read that line on the data sheet as well, and I wondered if that was my problem. I also read it on the DS1307 data sheet, and that's why I didn't explore it more. I'm not sure why it works on the DS1307 without the NAck bit sent on the last read, but I have it working now on th...
- Tue May 09, 2017 7:14 pm
- Forum: General Discussion
- Topic: DS1339 RTC
- Replies: 2
- Views: 6607
DS1339 RTC
I am working with the DS1339 RTC, and I am having a few issues. I watched Kolbans video on the DS1307 . Both the DS1339 and DS1307 are from the same manufacture. I'm using the DS1339 because I needed a SMT component. Below I have my code. It is very similar to Kolbans example . I only added the app_...