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

Commit

Permalink
Merge branch 'release/v1.5.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Feb 2, 2023
2 parents 7b23d50 + d9dbd89 commit 2922574
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 2 deletions.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,36 @@ board = ...

# Configuration

Please navigate to [documentation](https://docs.platformio.org/page/platforms/asrmicro650x.html).
## LoRaWAN

LoRaWAN protocol can be configured in https://docs.platformio.org/en/latest/projectconf/index.html using the following syntax
``board_build.arduino.lorawan.*`` where ``*`` is an option from the following list:

| Option | Description | Possible values | Default |
| ----------- | ----------- | --------------- | ------- |
| ``region`` | Region definition | ``AS923_AS1``, ``AS923_AS2``, ``AU915``, ``CN470``, ``CN779``, ``EU433``, ``EU868``, ``KR920``, ``IN865``, ``US915``, ``US915_HYBRID`` | ``US915`` |
| ``class`` | Device class | ``CLASS_A``, ``CLASS_C`` | ``CLASS_A`` |
| ``netmode`` | Activation method | ``OTAA``, ``ABP`` | ``OTAA`` |
| ``adr`` | Adaptive Data Rate | ``ON``, ``OFF`` | ``ON`` |
| ``uplinkmode`` | Uplink confirmed/unconfirmed messages | ``CONFIRMED``, ``UNCONFIRMED`` | ``CONFIRMED`` |
| ``net_reserve`` | Don't rejoin after reset | ``ON``, ``OFF`` | ``OFF`` |
| ``at_support`` | AT commands support | ``ON``, ``OFF`` | ``ON`` |
| ``rgb`` | RGB light for LoRaWAN status | ``ACTIVE``, ``DEACTIVE`` | ``ACTIVE`` |
| ``preamble_length`` | Preamble length | ``8``, ``16`` (For M00 and M00L) | ``8`` |
| ``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`` |


**Example**

```ini
[env:cubecell_board]
platform = asrmicro650x
framework = arduino
board = cubecell_board
board_build.arduino.lorawan.region = EU433
board_build.arduino.lorawan.adr = OFF
board_build.arduino.lorawan.debug_level = FREQ_AND_DIO
```

More information about LoRaWAN configuration can be found in
[the official CubeCell documentation](https://heltec-automation-docs.readthedocs.io/en/latest/cubecell/index.html).
22 changes: 22 additions & 0 deletions boards/cubecell_board_v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"build": {
"core": "asr650x",
"cpu": "cortex-m0plus",
"extra_flags": "-DCubeCell_Board_V2",
"f_cpu": "48000000L",
"mcu": "asr6501",
"variant": "CubeCell-Board-V2"
},
"frameworks": [
"arduino"
],
"name": "Heltec CubeCell-Board-V2(HTCC-AB01-V2)",
"upload": {
"maximum_ram_size": 16384,
"maximum_size": 131072,
"protocol": "serial",
"require_upload_port": true
},
"url": "https://heltec.org/project/htcc-ab01-v2/",
"vendor": "Heltec"
}
10 changes: 10 additions & 0 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@
DefaultEnvironment,
)

print("""
Warning! This development platform is deprecated and won't receive any further updates.
Please use the `heltec-cubecell` development platform as the drop-in replacement:
[env:yourenv]
platform = heltec-cubecell
framework = arduino
board = your_board_id
""")

env = DefaultEnvironment()
platform = env.PioPlatform()
Expand Down
2 changes: 1 addition & 1 deletion platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"type": "git",
"url": "https://github.com/HelTecAutomation/platform-asrmicro650x.git"
},
"version": "1.5.0",
"version": "1.5.1",
"frameworks": {
"arduino": {
"package": "framework-arduinoasrmicro",
Expand Down

0 comments on commit 2922574

Please sign in to comment.