Search found 12 matches

by guillermop
Sat Apr 07, 2018 5:17 am
Forum: ESP-IDF
Topic: [SOLVED] get timestamp in milliseconds
Replies: 4
Views: 46373

Re: get timestamp in milliseconds

Thanks vonnieda, it works!
by guillermop
Fri Apr 06, 2018 2:24 pm
Forum: ESP-IDF
Topic: [SOLVED] get timestamp in milliseconds
Replies: 4
Views: 46373

Re: get timestamp in milliseconds

Thanks kolban, The problem is xTaskGetTickCount and getTimeSinceStart will return the time passed since the device was turned on, but I'm looking for the date time output. I think it's possible to make something with time and getTimeSinceStart but I suppose I'll lose some precision, if there is not ...
by guillermop
Fri Apr 06, 2018 1:49 am
Forum: ESP-IDF
Topic: [SOLVED] get timestamp in milliseconds
Replies: 4
Views: 46373

[SOLVED] get timestamp in milliseconds

Hi, I'm following the sntp example to get the unix timestamp but

Code: Select all

time(&now);
return the timestamp in seconds and I'd like to get it in milliseconds, I haven't found a function to do that, there is currently any way to achive that?
by guillermop
Fri Jan 12, 2018 5:14 pm
Forum: General Discussion
Topic: ESP-WROOM-32 with USB TTL
Replies: 2
Views: 10445

Re: ESP-WROOM-32 with USB TTL

The problem seems to be solved adding a 100uf capacitor between the 3V3 and GND
by guillermop
Thu Jan 11, 2018 6:46 pm
Forum: General Discussion
Topic: ESP-WROOM-32 with USB TTL
Replies: 2
Views: 10445

Re: ESP-WROOM-32 with USB TTL

Without external power supply the device crash, just after print the last line in this log: load:0x3ffc0000,len:0 load:0x3ffc0000,len:2304 load:0x40078000,len:3788 ho 0 tail 12 room 4 load:0x40098000,len:532 entry 0x4009813c [1;36m [0m[1;36m************************************** [0m[1;36m* hello esp...
by guillermop
Wed Jan 10, 2018 10:18 pm
Forum: General Discussion
Topic: ESP-WROOM-32 with USB TTL
Replies: 2
Views: 10445

ESP-WROOM-32 with USB TTL

Hi, I need a little help. I'm connecting the ESP-WROOM-32 module with a USB to TTL dongle (based in CP2102 chip) The idea is to make a PCB with necessary components to connect 4 only wires between the PCB and the USB TTL, at this moment I have this wiring: TTL ____ WROOM-32 3V3 ------- 3V3 GND -----...
by guillermop
Sun Jul 09, 2017 9:12 pm
Forum: General Discussion
Topic: [SOLVED] Change level wake after first wake up
Replies: 8
Views: 11593

Re: Change level wake after first wake up

sorry if what I'm doing is nonsense You're forgiven :P Hahaha Thanks after re-think about my problem I concluded that my approach was wrong, I was making a mountain out of a molehill. So I solved first, storing the wake up level in the RTC memory. I've assigned the value of -1 to know if the device...
by guillermop
Sat Jul 08, 2017 9:54 am
Forum: General Discussion
Topic: [SOLVED] Change level wake after first wake up
Replies: 8
Views: 11593

Re: Change level wake after first wake up

As I'm new with ESP, there some things I'm not familiar with, so as I understand now: #define PULSE_CNT_IS_HIGH() \ ((REG_GET_FIELD(RTC_GPIO_IN_REG, RTC_GPIO_IN_NEXT) \ & BIT(GPIO_NUM_33)) == 1) PULSE_CNT_IS_HIGH (I've renamed) will check if the pin is still in high, which make the device wakes up. ...
by guillermop
Fri Jul 07, 2017 5:12 am
Forum: General Discussion
Topic: [SOLVED] Change level wake after first wake up
Replies: 8
Views: 11593

Re: Change level wake after first wake up

Thank you both for your answers I've tried with: static void RTC_IRAM_ATTR wake_stub() { ets_printf(alive_prnt); SET_PERI_REG_BITS(RTC_CNTL_EXT_WAKEUP_CONF_REG, 0x1, 1, RTC_CNTL_EXT_WAKEUP0_LV_S); } the ets_printf is to know the function is executed. But it keeps having the same behavior, the esp go...
by guillermop
Thu Jul 06, 2017 10:37 pm
Forum: General Discussion
Topic: [SOLVED] Change level wake after first wake up
Replies: 8
Views: 11593

[SOLVED] Change level wake after first wake up

I'm doing this to sleep my device: esp_deep_sleep_enable_ext0_wakeup (GPIO_NUM_33, 0); As my external pulse will remain LOW for a long time, I'd like to change the trigger level to the oposite. I understand this can be done with a stub, but I'm not sure if it's really possible. Is it possible, can a...