libretiny-eu / libretiny

PlatformIO development platform for IoT modules
http://docs.libretiny.eu/
MIT License
382 stars 55 forks source link

RTL8711AM - possible to support? #213

Open szupi-ipuzs opened 7 months ago

szupi-ipuzs commented 7 months ago

I've found this chip in the wifi adapter of my air conditioner (HiSense) and, judging by it's name, it should be of the same group as the other, already supported Realtek chips. Do you think there is a chance it can be supported by LibreTiny as well? I've found its datasheet and there is an sdk on github that references this chip.

The board (wifi adapter) itself looks like this and is called AEH-W4E1. It communicates with the air conditioner via a 4 pin cable, which I believe is an UART (the pins are marked as RX/TX/VCC/GND). The protocol used is unknown so far, (could be TuyaMCU?)... The module is connected to the air conditioner only via this cable, so it is also powered by it. I know it would probably be best to get a flashdump from this thing, but I doubt i will be able to solder cable to the chip itself, its pins are extremely tiny. There are however some pads on both sides of the board, but I have no clue what they are for...

So all I can do for now is to take some detailed pictures and attach them here.

Btw. I've got the air conditioner to run locally via this great HA integration, however I was not able to cut it from the cloud completely, as it starts to exhibit strange behaviors (going zombie state), typical for many Tuya devices in such scenario. This is why I wanted to investigate if there's a possibility to flash it with esphome.

kuba2k2 commented 7 months ago

See here: https://docs.libretiny.eu/docs/platform/realtek-amb/ RTL87xxA is Ameba1 series - it's different than AmebaZ and AmebaZ2, which are currently (more or less) supported in LT.

The SDK used for AmebaZ is the same as for Ameba1, so adding support would be possible. However, it's not a plan for the near future, as these chips are very rarely found these days.

Taking pictures would help for future reference.

szupi-ipuzs commented 7 months ago

20231127_123828 20231127_123830 20231127_123907

20231127_123909(0) 20231127_123909 20231130_155949 20231130_160015 20231130_160032 20231130_160058 20231130_160115 20231130_160127 20231130_160133

Here are the pictures, I have done some (minor, I hope) damage while removing the shielding (?), as I did not expect it would be glued.

kuba2k2 commented 7 months ago

It wasn't glued, it was soldered - and solder is a pretty good glue 😆 Thanks anyway, I hope you didn't damage your device.

szupi-ipuzs commented 7 months ago

Haha, that explains a lot :) Don't worry, this was my spare part.

danielg4 commented 2 weeks ago

I came to this page simply by Googling "RTL8711AM" after seeing it mentioned here: https://fcc.report/FCC-ID/BEJ-LCW007/3962072.pdf That is the Wi-Fi module inside practically every LG appliance, e.g. refrigerators, clothes washers, etc. I just thought you should know.