radio-controlled sockets HX2262 PT2262

Code tips and tricks for beginners
User avatar
cicciocb
Site Admin
Posts: 3258
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 650 times
Been thanked: 2291 times
Contact:

Re: radio-controlled sockets HX2262 PT2262

Post by cicciocb »

Have you tried with WiFi.power ?
User avatar
Oli
Posts: 116
Joined: Tue Feb 09, 2021 10:07 am
Location: Germany, Meissen
Has thanked: 34 times
Been thanked: 66 times
Contact:

Re: radio-controlled sockets HX2262 PT2262

Post by Oli »

I have investigated the matter further,
WiFi.power is an important role.
By the way, the ESP32S2 reacts exactly the same as the photo, ESP32C3 supermini
The circuit diagram also deviates from reality.
VDD3P3 Pin2 was not supplied with power, but is apparently connected to Pin3 within the IC. UC8 and UC9 do not exist, UR9 is not a resistor but a capacitor with 8pF, but that is even better,
I have written a program which slowly increases the transmission power. from 2.5dB there is a good connection.
there are holes around 4.2dB and 10.4dB and 14.2 in between, with dropouts. above 16dB to 20.5dB there is never a connection!

what does that mean ? i have some ideas,
- the IC were sorted out because of a defective output stage, and are still sold at Ali with board.
- the HF and standing wave are not correct, and so there is an overload emergency shutdown voltage breakdown due to overload at higher powers
- the set values arrive differently in the registers, perhaps it is different from the ESP32, but I don't believe it, even good values send almost nothing,

I have also built a super antenna, with 3 radials, the reception is super good, some 100m, I can't imagine that it only manages 6m when transmitting.
I have also written a program that lowers,outside the holes, the power and connects wifi, this is in autostart, that helps a bit
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 3258
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 650 times
Been thanked: 2291 times
Contact:

Re: radio-controlled sockets HX2262 PT2262

Post by cicciocb »

These modules are very probably defective, maybe you should try to supply the module with an external 3.3v, the voltage regulator could be also bad on the board.
User avatar
PeterN
Posts: 808
Joined: Mon Feb 08, 2021 7:56 pm
Location: Krefeld, Germany
Has thanked: 388 times
Been thanked: 449 times
Contact:

Re: radio-controlled sockets HX2262 PT2262

Post by PeterN »

The stated issues are probably a combination of the poor antenna design of some modules and a memory leak issue of certain Annex versions > V1.70.2 running on the ESP32-C3’s single-core processor.
[Local Link Removed for Guests]
User avatar
Oli
Posts: 116
Joined: Tue Feb 09, 2021 10:07 am
Location: Germany, Meissen
Has thanked: 34 times
Been thanked: 66 times
Contact:

ESP32C3 supermini

Post by Oli »

I'll come back to the ESP32C3 supermini modules.
I bought a lot of them, it's a shame not to use them at all, and also to motivate Francesco to do something news :-)

the big advantage is the low price, and the excellent BLE function, better than ESP32 e.g. and the small size

now I have also seen in many other forums, with other software, that the WIFI function is faulty.
the IC gets very hot and breaks down. there is a high probability that the RAM problems also come from overheating.
nevertheless, i find the resetting of the RAM in cycles interesting, and there are more things to it

Interestingly, the BLE works via the same RF path, but it works very well.

Solution:
please change the antenna, there were ideas from Peter, but I think mine from the photo are simple, from top to bottom:

- exactly 3cm wire (30mm+1mm solderpoint) = usable reception

- unsolder the original antenna and turn it 90 degrees, away from any ground,
it can be like on the photo or 90 degrees upwards = reception

- original condition = HF short circuit, against ground

the chip will never achieve a super range !
only before it was so bad that 50cm to the router did not work, or only for a short time, now it at least reaches through the apartment

and now the most important thing:
the ESP must execute the command as quickly as possible after booting:

Code: [Local Link Removed for Guests]

WIFI.POWER 3
make an autostart program for it, or in your program first ueile when it starts alone, only so the module stays cold ! (or you switch off the wifi function)

the different transmission power react very illogically, even with different modules,
some work at 12db but not at 5 and at 3 again. but WIFI.POWER 3 is the value where all have worked so far.

Code: [Local Link Removed for Guests]

wlog WIFI.POWER
WIFI.POWER 3
wlog "WIFI Power Set"
wlog WIFI.POWER
wlog " "
You do not have the required permissions to view the files attached to this post.
Post Reply