Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 2922574

Browse files
committed
Merge branch 'release/v1.5.1'
2 parents 7b23d50 + d9dbd89 commit 2922574

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,36 @@ board = ...
3232

3333
# Configuration
3434

35-
Please navigate to [documentation](https://docs.platformio.org/page/platforms/asrmicro650x.html).
35+
## LoRaWAN
36+
37+
LoRaWAN protocol can be configured in https://docs.platformio.org/en/latest/projectconf/index.html using the following syntax
38+
``board_build.arduino.lorawan.*`` where ``*`` is an option from the following list:
39+
40+
| Option | Description | Possible values | Default |
41+
| ----------- | ----------- | --------------- | ------- |
42+
| ``region`` | Region definition | ``AS923_AS1``, ``AS923_AS2``, ``AU915``, ``CN470``, ``CN779``, ``EU433``, ``EU868``, ``KR920``, ``IN865``, ``US915``, ``US915_HYBRID`` | ``US915`` |
43+
| ``class`` | Device class | ``CLASS_A``, ``CLASS_C`` | ``CLASS_A`` |
44+
| ``netmode`` | Activation method | ``OTAA``, ``ABP`` | ``OTAA`` |
45+
| ``adr`` | Adaptive Data Rate | ``ON``, ``OFF`` | ``ON`` |
46+
| ``uplinkmode`` | Uplink confirmed/unconfirmed messages | ``CONFIRMED``, ``UNCONFIRMED`` | ``CONFIRMED`` |
47+
| ``net_reserve`` | Don't rejoin after reset | ``ON``, ``OFF`` | ``OFF`` |
48+
| ``at_support`` | AT commands support | ``ON``, ``OFF`` | ``ON`` |
49+
| ``rgb`` | RGB light for LoRaWAN status | ``ACTIVE``, ``DEACTIVE`` | ``ACTIVE`` |
50+
| ``preamble_length`` | Preamble length | ``8``, ``16`` (For M00 and M00L) | ``8`` |
51+
| ``debug_level`` | Print LoRaWAN relevant messages print to serial port | ``NONE``, ``FREQ`` (Sending/receiving frequency), ``FREQ_AND_DIO`` (Sending/receiving frequency and DIO pin interrupt information) | ``NONE`` |
52+
53+
54+
**Example**
55+
56+
```ini
57+
[env:cubecell_board]
58+
platform = asrmicro650x
59+
framework = arduino
60+
board = cubecell_board
61+
board_build.arduino.lorawan.region = EU433
62+
board_build.arduino.lorawan.adr = OFF
63+
board_build.arduino.lorawan.debug_level = FREQ_AND_DIO
64+
```
65+
66+
More information about LoRaWAN configuration can be found in
67+
[the official CubeCell documentation](https://heltec-automation-docs.readthedocs.io/en/latest/cubecell/index.html).

boards/cubecell_board_v2.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"build": {
3+
"core": "asr650x",
4+
"cpu": "cortex-m0plus",
5+
"extra_flags": "-DCubeCell_Board_V2",
6+
"f_cpu": "48000000L",
7+
"mcu": "asr6501",
8+
"variant": "CubeCell-Board-V2"
9+
},
10+
"frameworks": [
11+
"arduino"
12+
],
13+
"name": "Heltec CubeCell-Board-V2(HTCC-AB01-V2)",
14+
"upload": {
15+
"maximum_ram_size": 16384,
16+
"maximum_size": 131072,
17+
"protocol": "serial",
18+
"require_upload_port": true
19+
},
20+
"url": "https://heltec.org/project/htcc-ab01-v2/",
21+
"vendor": "Heltec"
22+
}

builder/main.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@
2222
DefaultEnvironment,
2323
)
2424

25+
print("""
26+
Warning! This development platform is deprecated and won't receive any further updates.
27+
Please use the `heltec-cubecell` development platform as the drop-in replacement:
28+
29+
[env:yourenv]
30+
platform = heltec-cubecell
31+
framework = arduino
32+
board = your_board_id
33+
34+
""")
2535

2636
env = DefaultEnvironment()
2737
platform = env.PioPlatform()

platform.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"type": "git",
2323
"url": "https://github.com/HelTecAutomation/platform-asrmicro650x.git"
2424
},
25-
"version": "1.5.0",
25+
"version": "1.5.1",
2626
"frameworks": {
2727
"arduino": {
2828
"package": "framework-arduinoasrmicro",

0 commit comments

Comments
 (0)