NanoVHF / Meshtastic-DIY

83 stars 9 forks source link

E22-400M33S support #16

Open karfam opened 1 year ago

karfam commented 1 year ago

Congratulations on the project

Does the it support the new E22-400T33S due to increased consumption?

https://www.ebyte.com/en/product-view-news.html?id=454

osmanovv commented 1 year ago

Hi @karfam, as I could see from the name of a new module - it's an UART, not SPI (letter "T" in the name). At this point Meshtastic firmware supports only SPI radio modules with letter "M" in the name, like "E22-400M30S", "E22-400M22S", "E22-900M30S", "E22-900M22S".

karfam commented 1 year ago

Yes missed that. Just emailed ebyte to see if they plan a 2 watt SPI module.

@Update They just replied and there is E22-400M33S

karfam commented 1 year ago

According to manufacturer the Consumption of the module is : TX current(mA) 850 1000 1200 Instant power consumption 33dbm

TTGO T-Energy uses SY8089 step down regulator.

TTGO T-Energy Schematic

The SY8089 and SY8089A are high-efficiency, high frequency synchronous step-down DC-DC regulator IC capable of delivering up to 2A output current.

SY8089 Datasheet

Probably the 18650 battery will be fine with the 1.2Amp discharge for a few ms

ghost commented 1 year ago

You need 5V for max power output

image

3.3V is for some E32 board, like the 20dBm ones and others

kpbicka commented 6 months ago

У меня модуль E22-400M33S SX1268 433/470MHz 2W SPI Chip LoRa Module

в консоль пишет такое: WARN | 1 SX126xInterface(cs=18, irq=33, rst=23, busy=32) DEBUG | 1 SX126X_DIO3_TCXO_VOLTAGE defined, using DIO3 as TCXO reference voltage at 1.800000 V INFO | 1 Starting meshradio init... DEBUG | 1 (bw=125, sf=11, cr=4/8) packet symLen=16 ms, payloadSize=0, time 462 ms DEBUG | 1 (bw=125, sf=11, cr=4/8) packet symLen=16 ms, payloadSize=253, time 7835 ms INFO | 1 Radio freq=433.500, config.lora.frequency_offset=0.000 INFO | 1 Set radio: region=EU_433, name=LongMod, config=7, ch=-1, power=30 INFO | 1 Radio myRegion->freqStart -> myRegion->freqEnd: 433.000000 -> 434.000000 (1.000000 mhz) INFO | 1 Radio myRegion->numChannels: 8 x 125.000kHz INFO | 1 Radio channel_num: 0 INFO | 1 Radio frequency: 433.500000 INFO | 1 Slot time: 42 msec INFO | 1 Set radio: final power level=22 INFO | 1 SX126x init result 0 INFO | 1 Frequency set to 433.500000 INFO | 1 Bandwidth set to 125.000000 INFO | 1 Power output set to 22 DEBUG | 1 Current limit set to 140.000000 DEBUG | 1 Current limit set result 0 DEBUG | 1 Setting DIO2 as not RF switch DEBUG | 1 Using MCU pin -1 as RXEN and pin 13 as TXEN to control RF switching INFO | 1 Set RX gain to boosted mode; result: 0 INFO | 1 SX1268 Radio init succeeded, using SX1268 radio INFO | 1 Not using WIFI DEBUG | 1 (bw=125, sf=11, cr=4/8) packet symLen=16 ms, payloadSize=237, time 7376 ms DEBUG | 1 LoRA bitrate = 32.131237 bytes / sec

Работает - принимает/передаёт, но не понятно какой мощностью, судя по логу - всего 22dB После пересборки FW мощность 2 ватта стала. Пины были поправлены, всё работает.

osmanovv commented 5 months ago

@kpbicka could you please provide the changes you made in firmware for M33S to the community?

kpbicka commented 5 months ago

@kpbicka could you please provide the changes you made in firmware for M33S to the community?

Там надо всего лишь добавить

define SX126X_MAX_POWER 22

также должна присутствовать секция

ifdef EBYTE_E22

define SX126X_DIO3_TCXO_VOLTAGE 1.8

endif

до сих пор никто не знает как вообще всё это работает, но якобы SX1268 даёт 22dBm, а дальше усилитель разгоняет до 33.