meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
2.99k stars 715 forks source link

Request for new definition to support Ebyte E22 modules[Board]: #3973

Open NancyDeville opened 1 month ago

NancyDeville commented 1 month ago

Discussed in https://github.com/meshtastic/firmware/discussions/3948

Originally posted by **NancyDeville** May 21, 2024 ### SOC ESP32 ### Lora IC Ebyte E22-900M30S / Ebyte E22-900M33S ### Product Link Aliexpress ### Description I've been trying to achieve full transmit power with these Ebyte modules for around a year and so far none of my builds have performed to give full power output, they all top out at 22db representing the standard SX126x, I have tried everything at this point in terms of wiring options of TX_EN/DIO2 also tried all sorts of regulators and capacitors in power supply, people on discord have sent variant.h files trying different things and nothing has worked, I'm building firmware DIY hydra, V1 /V1.1, After hours of online research I think the issue is with the settings in radio lib that in particular the register codes, txco settings, regulator mode, PA_ CONFIG and PA_Ramptime, Reading other projects online we also need to change max power settings in TX_PARMS from 22 to 30 for the E22-900M30S, note that also the E22-900M33S has different requirements and only needs 9db drive, and seems to have some different things in setup, I think again registers are different, Myself I'm more into hardware and I'm not really knowledgeable when it comes to writing code so I'm hoping someone can have a look at this and fill in the blanks, from what I can see it looks like we need a setup specifically for the ebyte modules that include PA and LNA, treating them totally as a standard SX1262x is not running them to their full potential as legal limits and power restrictions are written into the meshtastic radiolib
NancyDeville commented 1 month ago

Ok so ebyte got back to me, they don't know meshtastic and can't offer any support, I've done a hell of alot of reading on this issue and the more I read up on the ebyte E22 full power output issue the more it seems to now be a meshtastic issue, Other projects that have had this issue have overcome the problem now buy changing things in the code,

I have managed to find the bits in the code I was looking for regarding power limits and regions and max tx power and pa ramp time etc, and I've spent about 40 hours now trying different things with no luck,

Me being into hardware and not doing much code I really wanted the team here to have another look into this issue and maybe write a profile specifically for the E23 modules, I say modules plural as we now have the E22-900M33S which has different setup requirements than the E22-900M30S ( 33 only needs 9db drive) ( this need to be at radio_begin otherwise we are potentially going to damage modules during channel changes as I've noted this also updates output power as part of the ch settings)

I have noted EBYTE_E22 in the code but I don't know just how much work has been done to fully support it let alone the issue I mentioned with the latest module so that would need it's own definition

I don't feel moving this from and issue as I reported it to a discussion helps, there has been endless discussion and there is obviously an issue here

Anyway I'm hoping we can resolve this issue and get on with using these modules to their full potential