Skip to content

Issue #2668 [Fix] Heltec t096 RTC option#2669

Open
dl1rf wants to merge 1 commit into
meshcore-dev:devfrom
dl1rf:fix_T096_RTC_option
Open

Issue #2668 [Fix] Heltec t096 RTC option#2669
dl1rf wants to merge 1 commit into
meshcore-dev:devfrom
dl1rf:fix_T096_RTC_option

Conversation

@dl1rf
Copy link
Copy Markdown

@dl1rf dl1rf commented Jun 2, 2026

Fixes to support RTC PCF8563 option with Heltec T096 board.
Only 1 I2C bus enabled to reduce unused resources.

@dl1rf dl1rf changed the title Issue #2668 Issue #2668 Heltec t096 RTC option Jun 2, 2026
@dl1rf dl1rf changed the title Issue #2668 Heltec t096 RTC option Issue #2668 [Fix] Heltec t096 RTC option Jun 3, 2026
@Aliasmk
Copy link
Copy Markdown

Aliasmk commented Jun 4, 2026

Wouldn't this break systems that use I2C devices on pin 7 & 8?

@dl1rf
Copy link
Copy Markdown
Author

dl1rf commented Jun 4, 2026

The fix only target Heltec T096 device. No other devices.
The Heltec T096 has no I2C devices connected to pin 7 & 8. (Reference: schematics of Heltec T096).
External user connected I2C devices have to switch to RTC_SDA (header P2 pin 18) and RTC_SCL (header P2 pin 17) lines.
These lines are documented in the Heltec T096 documentation (schematics).

@dl1rf
Copy link
Copy Markdown
Author

dl1rf commented Jun 4, 2026

Benefit of the provided fix is that the already fully supported RTC PCF8563 can be placed to the yellow marked space at the T096 board.
IMG_4775

@IoTThinks
Copy link
Copy Markdown
Contributor

@dl1rf The yellow space is for GPIO 17 and 18?

@dl1rf
Copy link
Copy Markdown
Author

dl1rf commented Jun 5, 2026

@dl1rf The yellow space is for GPIO 17 and 18?

I don't understand the question. What is it aiming at?

@IoTThinks
Copy link
Copy Markdown
Contributor

I have a T096 too.
I would like to know what is the yellow area about.

Thanks a lot.

@dl1rf
Copy link
Copy Markdown
Author

dl1rf commented Jun 5, 2026

As described with the foto it is the place to solder an optional Real Time Clock chip with the crystal, tuning capacitors, a supercap capacitor and an isolation diode.
I solder the RTC option to some T096 boards used as repeaters.
And after changing the I2C lines as offered here this work perfect.

Regards

Martin

@Aliasmk
Copy link
Copy Markdown

Aliasmk commented Jun 5, 2026

Understood now - the i2c pins you propose are both connected on the header AND internally on the RTC pads. So you are proposing the code changes to use the latter. Users that want to have external sensors can still attach them to the header, and if anyone wants to solder the RTC directly to the board, it would work right away.

My only issue is that this will break currently deployed projects that use pins 7 & 8. For instance, I have a solar node with an INA219 and an AHT20, soldered to pin 7 and 8. If I were to update Meshcore, those now no longer work.

I'm not familiar enough with the project yet to comment on how things like this should be resolved, I'm just pointing out a potential breaking issue.

@dl1rf
Copy link
Copy Markdown
Author

dl1rf commented Jun 5, 2026

I see. Yes this will be a problem and shall be avoided.
How is it to change the I2C pins of the second enabled I2C bus 1 ?
Is this bus used by actual firmware and hardware with T096 board?
I did not see any use yet.
I think it will be possible to change the RTC code with conditional compile so that the RTC code use second I2C bus 1 instead of I2C bus 0 with T096 board. And only with this board.
This may overcome the actual problem and I2C bus 0 pins will stay at 7 & 8.

Any concerns or suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants