I wrote a 1-Wire library for the ESP32 and testing it using a BQ2022A (1kb eeprom) and a DS19B20 (digital temperature sensor).
Alone each works fine. I can query id's, CRC checks out, etc... If I put a single BQ2022A along with the DS19B20 on the line this also works. I can use the 'rom search' to successfully query both id's. If I put two BQ2022A's on the bus though things don't work. For some reason the reset command fails, with the bus being held low indefinitely after the reset, and at which point it never returns high until one of the BQ2022A's is disconnected.
I'm unsure at this point if its a problem with the BQ2022A, or on my end. I don't see anywhere in the datasheet where it says multiple BQ2022A's cannot share a line. The search rom command works (provided only one is on the line) which is the command specifically used for enumerating multiple devices on a single line. I would assume that if multiple devices was not supported that the search rom command would fail.
Any ideas? Anyone worked with the BQ2022A before?
Alone each works fine. I can query id's, CRC checks out, etc... If I put a single BQ2022A along with the DS19B20 on the line this also works. I can use the 'rom search' to successfully query both id's. If I put two BQ2022A's on the bus though things don't work. For some reason the reset command fails, with the bus being held low indefinitely after the reset, and at which point it never returns high until one of the BQ2022A's is disconnected.
I'm unsure at this point if its a problem with the BQ2022A, or on my end. I don't see anywhere in the datasheet where it says multiple BQ2022A's cannot share a line. The search rom command works (provided only one is on the line) which is the command specifically used for enumerating multiple devices on a single line. I would assume that if multiple devices was not supported that the search rom command would fail.
Any ideas? Anyone worked with the BQ2022A before?