kopia lustrzana https://github.com/helium/longfi-arduino
881a4e781a | ||
---|---|---|
.. | ||
README.md | ||
longfi-us915.ino |
README.md
Heltec WiFi LoRa 32 V2
This example demonstrates sending a simple data packet using a Heltec Wifi LoRa 32 V2 development board. Please follow every instruction step below from top to bottom.
Heltec LoRa 32 V2 Product Page
Heltec LoRa 32 V2 Docs
Installing the Heltec ESP32 Library
From the Arduino IDE, open the Library Manager (Sketch->Include Library->Manage Libraries). In the search box, type Heltec ESP32 and look for Heltec ESP32 Dev-Boards
. Select the latest version and install.
Install Serial Driver
Find Directions here.
Install Arduino-ESP32 Board Support
Find Directions here
Select Board
Arduino IDE:
- Select Tools -> Board: -> WiFi LoRa 32(V2)
Select Region
Arduino IDE:
- Select Tools -> LoRaWAN Region: -> REGION_US915
Obtain Heltec License Key
Upload GetChipID
example
Arduino IDE:
- Select File -> Examples -> ESP32 -> ChipID -> GetChipID
- Select Tools -> Port: "COM# or ttyACM#"
- Select Sketch -> Upload
- Wait for Done uploading message
- Select Tools -> Serial Monitor Serial Monitor Window
- Select 115200 baud from bottom right dropdown.
- You should see something that looks like this every second
ESP32 Chip ID = ############
- Save this Chip ID
Obtain License Key with Chip ID
1.Go to resource.heltec.cn/search
2. Enter ChipID
3. Save license field, will look like 0x########,0x#########,0x########,0x########
Upload OTAA_OLED
example
Arduino IDE:
- Select File -> Examples -> ESP32_LoRaWAN -> OTAA_LED
- Enter License Key at line 32
uint32_t license[4] = {`0x########,0x#########,0x########,0x########};
- Enter DevEUI(msb), AppEUI(msb), and AppKey(msb) from Helium Console, at lines 34,35,36.
uint8_t DevEui[] = { FILL_ME_IN };
uint8_t AppEui[] = { FILL_ME_IN };
uint8_t AppKey[] = { FILL_ME_IN };
- Select Sketch -> Upload.
- Wait for Done uploading message
- Select Tools -> Serial Monitor Serial Monitor Window
- Select 115200 baud from bottom right dropdown.
- Wait for device to successfully join, may take 1-3 min, and show several failures. Do not be alarmed by the failures, it is expected.