We're finally making some progress on the Hasivo PoE solution in OpenWRT, and should have something workable shortly (weeks/months).
As part of this, we're digging a bit into the STC8 chip that is found on at least the s1100wp-8gt-se and likely on a number of other Hasivo switches.
The s1100wp-8gt-se appears to have a mounting hole for a TO92 device close to the RTL93XX IC, which I suspect is for a temperature sensor.
There are also two FAN headers and a FET footprint (not populated) which I suspect is for case/CPU fan control.
We'd like to bring in all of the functionality on these STC8 chips, but this would require a bit of information from people with switches that actually use this functionality.
What we'd like is to confirm that the STC8 is located at the same address as we see (0x4d) on the I2C bus. And we'd also like to get some dumps of what the register contents of the STC is (to see if we can identify temperatures or similar from it).
This post has a DTS excerpt that should expose the I2C bus with the STC8 on it (for RTL930X chips anyway, RTL931X chips would have SDA=?, SCL=? instead [will populate tonight])
Items we'd like for you to:
Confirm that STC8 is available on I2C at 0x4d
Get a dump of I2C register values from the STC8 using the i2c_dump_16x16.sh script in that post.
If you have a little TO92 chip mounted next to the main RTL93XX IC, if you could advise of the part number on it.
If you have fans and a little FET on the board next to the fan header, if you could advise of the part number on the FET, and part numbers / current/voltage of the fans.
For visual context, it's these two items that I'm interested in
I have both an S1100WP-8XGT-SE (PoE) and an S1100W-8XGT-SE (non-PoE). I use the same OpenWrt build on both right now, since the fans and PoE “work” independently.
The S1100W has two fan headers with a suspected temperature sensor next to the RTL9303 and the FET next to the header reads MY. I don’t currently have the means to take it out and make measurements on it and I’m working off pictures I took a while ago. The suspected temperature sensor does not appear to have any markings on it, but QT2 is on the silkscreen. It is located between the RTL9303 and the RTL8264 PHYs. I don’t see a QT1 like I’d expect (Q? Temperature 1..X), BUT, the PoE version has an additional two fan headers by the power supply. Unfortunately, I don’t have a picture of that side of the board.
Do you know what board model (e.g. 9300022) that board is?
From the firmware that I've got theres two options for the I2C (both software).
SDA/SCL = 22/23; or
SDA/SCL = 4/3
which would then be:
If you've got the actual firmware and your board model then you could use Ghidra to find the SDA/SCL references in the code. We should probably start trying to build up a Ghidra library of data types etc from the Realtek SDK. It can really help analyse the firmware.
If you get similar devices on the i2c bus, that'd be good info.
My current belief is that the temperature sensor is a DS18b20 (or very low cost Chinese clone). And that the MOSFET is an N-FET, with 30+V Vds, logic-level gate drive, and about a 1.5A Ids continuous.
I'm confident enough that I'll get a few to install on my unpopulated board to test out.
Would still be good to get register dumps (and confirmation on part IDs) from those with fans installed (and working)...
That's perfect. Looks like an exact match for the 8GT version. I assume it was 22/23 for the GPIO on this switch also. I think our board layouts are probably almost identical, just with 10GbE PHYs on your board whilst ours have the 2.5GbE RTL8226/RTL8221b (with the more troublesome SGMII/2500baseX serdes changes).