Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using LILYGO Lora T3_V1.6.1 #112

Open
palsbo opened this issue Mar 21, 2024 · 0 comments
Open

Using LILYGO Lora T3_V1.6.1 #112

palsbo opened this issue Mar 21, 2024 · 0 comments

Comments

@palsbo
Copy link

palsbo commented Mar 21, 2024

I try to get this working wilt the LILYGO Lora board, but without success.
The board uses SX1276 on following pins:

MOSI    27
SCLK     5
CS      18
DIO     26
RST     23
MISO    19

I added the board profile to platformio.ini as such:

[env:ttgo-lora32-v21]
extends = env:genericESP32
board = ttgo-lora32-v21
build_flags =
    -D RFLink_default_Radio_HardwareType=HardwareType::HW_SX1276_t
    -D RFLINK_WIFI_ENABLED

The result when loading looks like this:

Loading persistent filesystem... OK. File system usage: 12/320KB.
Now opening JSON config file '/config.json'
JSON file mem usage: 1790 / 4096
Now dumping JSON file content:
{"wifi":{"client_enabled":true,"client_dhcp_enabled":true,"client_ssid":"palsbo","client_password":"xxxxx","client_ip":"192.168.0.200","client_mask":"255.255.255.0","client_gateway":"192.168.0.1","client_dns":"192.168.0.1","client_hostname":"RFLink32","ap_enabled":true,"ap_ssid":"RFLink-AP","ap_password":"","ap_ip":"192.168.4.1","ap_network":"192.168.4.0","ap_mask":"255.255.255.0"},"mqtt":{"enabled":true,"server":"192.168.1.2","port":1883,"id":"RFLink32","user":"","password":"","topic_in":"ESP00/cmd","topic_out":"ESP00/msg","lwt_enabled":true,"topic_lwt":"ESP00/lwt","ssl_enabled":false,"ssl_insecure":true,"ca_cert":""},"serial2net":{"enabled":false,"port":1900},"portal":{"enabled":true,"auth_enabled":true,"auth_user":"rflink32","auth_password":"433mhz"},"signal":{"async_mode_enabled":true,"sample_rate":1,"min_raw_pulses":24,"seek_timeout":25,"min_preamble":100,"min_pulse_len":90,"signal_end_timeout":5000,"signal_repeat_time":250,"scan_high_time":50},"radio":{"hardware":"SX1276","rx_data":26,"rx_vcc":-1,"rx_nmos":-1,"rx_pmos":-1,"rx_gnd":-1,"rx_na":-1,"rx_reset":23,"rx_cs":18,"tx_data":2,"tx_vcc":-1,"tx_nmos":-1,"tx_pmos":-1,"tx_gnd":-1}}
Now trying to initialize hardware 'SX1276'
Initialized SX1276(freq=433.92Mhz,br=9.600kbps,rxbw=250.0khz)=0
SX1276 setOOK=0
SX1276 set encoding result=0
SX1276 set data shaping result=0
SX1276 setOokThresholdType(2)=0
SX1276 setOokFixedThreshold(0x0C)=0
SX1276 setOokPeakThresholdDecrement() result=0
SX1276 disableBitSync() result=0
SX1276 setGain() result=0
Hardware initialization was successful!
Applied slicer 'Legacy'
Signal parameters have changed.
* WIFI AP starting with SSID 'RFLink-AP' and band=10... OK
Trying to connect WIFI SSID palsbo. A status will be given whenever it occurs.
Radio pin RF_RX_DATA :  26
Radio pin RF_RX_CS :    18
Radio pin RF_RX_RESET : 23
Radio pin RF_TX_DATA :  2
Connected to AP SSID:palsbo  BSSID: BC:DF:58:F1:EF:9B  Channel: 1  Auth mode: 3
Starting WebServer... OK
WiFi Client has received a new IP: 192.168.1.20
MQTT parameters have changed, first disconnecting...
MQTT parameters have changed, now applying...
Trying to connect to MQTT Server '192.168.1.2' ... Established
MQTT ID :               RFLink32
MQTT Username :
NTP synchronized: 2024-03-21 06:30:04

I also cannot get the oled display to work. Tried to add it to the platformio.ini like this:

[env:ttgo-lora32-v21]
extends = env:genericESP32
board = ttgo-lora32-v21
build_flags =
    -D RFLink_default_Radio_HardwareType=HardwareType::HW_SX1276_t
    -D RFLINK_WIFI_ENABLED
    -D OLED_ENABLED

but no luck!
The board has OLED on the following pins:

SDA   21
SCL   22

Any advice is apreciated.
Regards
Erik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant