|
|
|
@@ -22,9 +22,9 @@ Das sind die verwendeten Libraries [1]:
|
|
|
|
|
|
|
|
|
|
| URL | Branch | Commit | Commit Date |
|
|
|
|
|
| --- | ------ | ----- | ----------- |
|
|
|
|
|
| https://github.com/HelTecAutomation/CubeCell-Arduino.git | 3333024 | Wed, 28 Apr 2021 18:15:24 +0800 |
|
|
|
|
|
| https://github.com/sparkfun/SparkFun_Qwiic_Scale_NAU7802_Arduino_Library.git | master | 688f255 | Fri, 3 Jan 2020 12:35:22 -0700 |
|
|
|
|
|
| https://github.com/sparkfun/SparkFun_BME280_Arduino_Library.git | master | 0b5eabf | Wed, 30 Dec 2020 20:44:27 -0700 |
|
|
|
|
|
| https://github.com/HelTecAutomation/ASR650x-Arduino.git | e23d349 | Thu, 27 Jan 2022 16:55:35 +0800 |
|
|
|
|
|
| https://github.com/sparkfun/SparkFun_Qwiic_Scale_NAU7802_Arduino_Library.git | 688f255 | Fri, 3 Jan 2020 12:35:22 -0700 |
|
|
|
|
|
| https://github.com/sparkfun/SparkFun_BME280_Arduino_Library.git | 0b5eabf | Wed, 30 Dec 2020 20:44:27 -0700 |
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
[1]: echo "| $(git remote -v |grep fetch |awk '{print $2}' |tr '\n' ' ') | $(git log --pretty=format:'%h | %cD ' -n 1) |"
|
|
|
|
@@ -34,37 +34,49 @@ Das sind die verwendeten Libraries [1]:
|
|
|
|
|
|
|
|
|
|
Installation:
|
|
|
|
|
`
|
|
|
|
|
$ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/bin sh
|
|
|
|
|
$ brew install arduino-cli
|
|
|
|
|
$ arduino-cli version
|
|
|
|
|
arduino-cli alpha Version: 0.18.1 Commit: b3cf8e19 Date: 2021-04-13T13:08:30Z
|
|
|
|
|
arduino-cli Version: 0.20.2 Commit: 13783819 Date: 2021-12-07T16:41:50Z
|
|
|
|
|
|
|
|
|
|
$ arduino-cli sketch new MiniBeieliNodeSketch
|
|
|
|
|
|
|
|
|
|
$ arduino-cli core update-index
|
|
|
|
|
Install Board aus Git
|
|
|
|
|
|
|
|
|
|
$ arduino-cli board listall
|
|
|
|
|
mkdir -p ~/Documents/Arduino/hardware/CubeCell
|
|
|
|
|
cd ~/Documents/Arduino/hardware/CubeCell
|
|
|
|
|
git clone https://github.com/HelTecAutomation/ASR650x-Arduino.git CubeCell
|
|
|
|
|
cd CubeCell/tools
|
|
|
|
|
python get.py
|
|
|
|
|
|
|
|
|
|
$ arduino-cli core install CubeCell:CubeCell
|
|
|
|
|
$ arduino-cli core list
|
|
|
|
|
Install Libraries (from Git...):
|
|
|
|
|
|
|
|
|
|
$ cd ~/Documents/Arduino/libraries
|
|
|
|
|
$ git clone https://github.com/sparkfun/SparkFun_Qwiic_Scale_NAU7802_Arduino_Library.git
|
|
|
|
|
$ git clone https://github.com/sparkfun/SparkFun_BME280_Arduino_Library.git
|
|
|
|
|
|
|
|
|
|
Set FQBN:
|
|
|
|
|
$ FQBN="CubeCell:CubeCell:CubeCell-Board:LORAWAN_REGION=6,LORAWAN_CLASS=0,LORAWAN_DEVEUI=0,LORAWAN_NETMODE=0,LORAWAN_ADR=0,LORAWAN_UPLINKMODE=1,LORAWAN_Net_Reserve=0,LORAWAN_AT_SUPPORT=0,LORAWAN_RGB=0,LORAWAN_DebugLevel=0"
|
|
|
|
|
|
|
|
|
|
Compile:
|
|
|
|
|
$ arduino-cli compile --fqbn CubeCell:CubeCell:CubeCell-Board \
|
|
|
|
|
--build-property "build.band=REGION_EU868" \
|
|
|
|
|
--build-property "build.LORAWAN_CLASS=CLASS_A" \
|
|
|
|
|
--build-property "build.LORAWAN_DEVEUI_AUTO=0" \
|
|
|
|
|
--build-property "build.LORAWAN_NETMODE=true" \
|
|
|
|
|
--build-property "build.LORAWAN_ADR=true" \
|
|
|
|
|
--build-property "build.LORAWAN_UPLINKMODE=false" \
|
|
|
|
|
--build-property "build.LORAWAN_Net_Reserve=false" \
|
|
|
|
|
--build-property "build.LORAWAN_AT_SUPPORT=1" \
|
|
|
|
|
--build-property "build.RGB=0" \
|
|
|
|
|
--build-property "build.LORAWAN_DebugLevel=0" \
|
|
|
|
|
MiniBeieliNodeSketch
|
|
|
|
|
|
|
|
|
|
Output ist in /tmp/arduino-sketch-XXXXXXXXXXXXXXXXXXXXXXXXX und kann kopiert werden:
|
|
|
|
|
$ mkdir ~/arduino-builds-saved/20210501/
|
|
|
|
|
$ cp /tmp/arduino-sketch-0870BAA82DFEB3C4E076C8FBBDEB25B4/CubeCell_Board_REGION_EU868_RGB_0.cyacd ~/arduino-builds-saved/20210501/
|
|
|
|
|
$ arduino-cli compile --export-binaries --clean --fqbn ${FQBN} MiniBeieliNodeSketch
|
|
|
|
|
|
|
|
|
|
Upload:
|
|
|
|
|
/home/joerg/Arduino/hardware/CubeCell/CubeCell/tools/CubeCellflash/CubeCellflash -serial /dev/ttyUSB0 /home/joerg/arduino-builds-saved/latest/CubeCell_Board_REGION_EU868_RGB_0.cyacd
|
|
|
|
|
$ arduino-cli upload --verbose --fqbn ${FQBN} -p /dev/tty.usbserial-0001 MiniBeieliNodeSketch
|
|
|
|
|
|
|
|
|
|
*.cyacd-File kann kopiert werden nach cyacd-Directory:
|
|
|
|
|
Beispiel:
|
|
|
|
|
|
|
|
|
|
joerg@z240 mini-beieli-node-cubecell % arduino-cli upload --verbose --fqbn ${FQBN} -p /dev/tty.usbserial-0001 MiniBeieliNodeSketch
|
|
|
|
|
"/Users/joerg/Documents/Arduino/hardware/CubeCell/CubeCell/tools/CubeCellflash/CubeCellflash" -serial "/dev/tty.usbserial-0001" "/private/var/folders/n6/jjw6yp4s2dz0sd76rz3k7mzm0000gn/T/arduino-sketch-97CDDDDD36F10A320334F076837B4C34/CubeCell_Board_REGION_EU868_RGB_0.cyacd"
|
|
|
|
|
|
|
|
|
|
$ mkdir -p cyacd/20211228
|
|
|
|
|
$ cp /private/var/folders/n6/jjw6yp4s2dz0sd76rz3k7mzm0000gn/T/arduino-sketch-97CDDDDD36F10A320334F076837B4C34/CubeCell_Board_REGION_EU868_RGB_0.cyacd cyacd/20211228
|
|
|
|
|
|
|
|
|
|
Alternative zum Upload der Firmware:
|
|
|
|
|
$ /Users/joerg/Documents/Arduino/hardware/CubeCell/CubeCell/tools/CubeCellflash/CubeCellflash -serial /dev/tty.usbserial-0001 cyacd/20220128/CubeCell_Board_REGION_EU868_RGB_0.cyacd
|
|
|
|
|
|
|
|
|
|
USB-Device kann am einfachsten wie folgt bestimmt werden:
|
|
|
|
|
|
|
|
|
|
joerg@mbp mini-beieli-node-cubecell % ls -l /dev/tty.usbserial*
|
|
|
|
|
crw-rw-rw- 1 root wheel 0x9000004 28 Dez 19:38 /dev/tty.usbserial-0001
|
|
|
|
|
`
|
|
|
|
|