libretiny-eu / libretiny

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

RTL8711AM - possible to support? #213

Open szupi-ipuzs opened 11 months ago

szupi-ipuzs commented 11 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 11 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 11 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 11 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 11 months ago

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

danielg4 commented 4 months 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.

RneeJ commented 1 month ago

bump. I opend up a brandnew bought wifi/zigbee router and found a WRG1. According to Tuya it consists of a RTL8711AM for Wifi

Technical details here : https://developer.tuya.com/en/docs/iot/wrg1-datasheet?id=K97rig6mscj8e

This board is inside : 20240908-202917

20240908-203403

RneeJ commented 1 month ago

It seems this wifi board rtl8711-am is also used in this development board https://www.iot-store.com.au/products/creator-pro-rtl8711am-wiscreator-473ma-realtek-ameba-wifi-module?srsltid=AfmBOorW3UNn2KWqMBD5JSWJi5IhUdkmbKfAC0DPW77Kr-ddgRB1g5nU

Github : https://github.com/RAKWireless/CREATOR-Arduino-SDK

mihsu81 commented 1 month ago

@RneeJ There's a project for the Tuya GW018-DM which has a RTL8721CSM, if you want a custom firmware to use in conjunction with Z2MQTT. https://github.com/jasperw1996/ambd_sdk_GW018-DM

RneeJ commented 1 month ago

@mihsu81 thank you! That looks very promising, i will try that.