Closed
Description
Hardware:
Board: ESP32 Wroom
Core Installation/update date: 1.0.0_rc3
IDE name: Arduino ide 1.8.5 and visual micro
Flash Frequency: 80Mhz
Upload Speed: 115200
Description:
Sensor VEML770 data not change after commit a59eafb before, data is updated correctly and sensor work, I've tried to go back with git but too many error with esptool, it's not possibile create a special realese before 27 June ?, too many big commit to find error .
Sensor VEML770 use wire, i2c;
Debug Messages:
none
Metadata
Metadata
Assignees
Labels
No labels
Activity
stickbreaker commentedon Jul 19, 2018
@asetyde there was one significant change to
Wire()
with this last update, AWire()
transaction with SENDSTOP=FALSE is queued until a transaction with SENDSTOP=TRUE is send. This is necessitated because the ESP32 i2c hardware will go into a lockedup state if the transaction is not completed with a STOP within 13.1 ms.So, this queuing is necessary, the
Wire()
library reports the queued status by returning a ERROR=7 (continue) for all calls that use a ReSTART operation, for example:Chuck.
asetyde commentedon Jul 19, 2018
as you can see , light sensor (Sensore Luce) report always same value, there are no debug wire print about strange events.
SHT21 sensor hasn't this issue but code is more recent, I'm not expert of i2c, I not see particular point to change in sensor library
https://github.com/Ribster/arduino-VEML7700
asetyde commentedon Jul 19, 2018
( Also I've tried to restore to 27 June i2c.h/c and wire.cpp/wire.h but came many strange errors on WIFI generic and WIFISTA files .. on complier )
At now I can't ve idea to correct it
stickbreaker commentedon Jul 19, 2018
@asetyde I'll look through that library and see if I can find any problem.
Chuck.
asetyde commentedon Jul 19, 2018
Many many thanks @stickbreaker !
stickbreaker commentedon Jul 19, 2018
@asetyde found one Wire.endTransmission(false), I'll keep looking through the code.
Chuck.
stickbreaker commentedon Jul 19, 2018
@asetyde change this code in the VELM7700.cpp from:
to:
Chuck.
asetyde commentedon Jul 19, 2018
Seems worked !!!
asetyde commentedon Jul 19, 2018
many many thanks chuck !
asetyde commentedon Jul 30, 2018
Sorry but with last 1.0.0 sensor FAIL @stickbreaker
stickbreaker commentedon Jul 31, 2018
@asetyde I think I found another problem in i2c.
I posted an updated esp32-hal-i2c.c in #1694. Try it. I think both of these are the same problem.
Chuck.
asetyde commentedon Jul 31, 2018
it's fixed for me @stickbreaker !! do you fix on library ?
20 remaining items