Compare commits

...
5 Commits
Author SHA1 Message Date
jlehmann 384d262905 update README with new version 2022-09-30 13:52:11 +02:00
jlehmann cc14992ba0 new Heltec Library, FW-Version 20220930 2022-09-30 11:14:57 +02:00
jlehmann 2add3ddf9f new Heltec Library, FW-Version 20220128 2022-01-28 17:07:01 +01:00
jlehmann 82ffafa6c7 add module 2021-12-29 17:01:40 +01:00
jlehmann 2850593631 adopt for MacOS, new SW version of Board and Libraries 2021-12-28 19:50:00 +01:00
5 changed files with 47 additions and 17 deletions
+2
View File
@@ -1,3 +1,5 @@
mini-beieli-provision-cubecell mini-beieli-provision-cubecell
appkey appkey
calibrate calibrate
MiniBeieliNodeSketch/build
cyacd
@@ -12,7 +12,7 @@ BME280 bme280;
/******************************************************************************/ /******************************************************************************/
/* Firmware Version */ /* Firmware Version */
/******************************************************************************/ /******************************************************************************/
static const int32_t fwVersion = 20210511; static const int32_t fwVersion = 20220930;
/******************************************************************************/ /******************************************************************************/
/* LoraWAN Settings */ /* LoraWAN Settings */
+33 -16
View File
@@ -22,9 +22,9 @@ Das sind die verwendeten Libraries [1]:
| URL | Branch | Commit | Commit Date | | URL | Branch | Commit | Commit Date |
| --- | ------ | ----- | ----------- | | --- | ------ | ----- | ----------- |
| https://github.com/HelTecAutomation/CubeCell-Arduino.git | 0582aca | Sun, 9 May 2021 16:29:35 +0800 | | https://github.com/HelTecAutomation/ASR650x-Arduino.git | 538fac1 | Wed, 28 Sep 2022 16:13:13 +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_Qwiic_Scale_NAU7802_Arduino_Library.git | 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/sparkfun/SparkFun_BME280_Arduino_Library.git | 56e7ff4 | Mon, 9 May 2022 08:15:59 -0600 |
` `
[1]: echo "| $(git remote -v |grep fetch |awk '{print $2}' |tr '\n' ' ') | $(git log --pretty=format:'%h | %cD ' -n 1) |" [1]: echo "| $(git remote -v |grep fetch |awk '{print $2}' |tr '\n' ' ') | $(git log --pretty=format:'%h | %cD ' -n 1) |"
@@ -34,32 +34,49 @@ Das sind die verwendeten Libraries [1]:
Installation: 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 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 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 Install Libraries (from Git...):
$ arduino-cli core list
$ 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: 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" $ 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: Compile:
$ arduino-cli compile --clean --fqbn ${FQBN} MiniBeieliNodeSketch $ arduino-cli compile --export-binaries --clean --fqbn ${FQBN} MiniBeieliNodeSketch
Upload: Upload:
$ arduino-cli upload --fqbn ${FQBN} -p /dev/ttyUSB0 MiniBeieliNodeSketch $ arduino-cli upload --verbose --fqbn ${FQBN} -p /dev/tty.usbserial-0001 MiniBeieliNodeSketch
Output ist in /tmp/arduino-sketch-XXXXXXXXXXXXXXXXXXXXXXXXX und kann kopiert werden: *.cyacd-File kann kopiert werden nach cyacd-Directory:
$ mkdir ~/arduino-builds-saved/20210511/ Beispiel:
$ cp /tmp/arduino-sketch-0870BAA82DFEB3C4E076C8FBBDEB25B4/CubeCell_Board_REGION_EU868_RGB_0.cyacd ~/arduino-builds-saved/20210511/
Upload Variante 2: joerg@z240 mini-beieli-node-cubecell % arduino-cli upload --verbose --fqbn ${FQBN} -p /dev/tty.usbserial-0001 MiniBeieliNodeSketch
/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 "/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/20220930/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
` `
+7
View File
@@ -0,0 +1,7 @@
module gitlab.com/mini-beieli-node-cubecell/v2
go 1.17
require github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07
require golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
+4
View File
@@ -0,0 +1,4 @@
github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07 h1:UyzmZLoiDWMRywV4DUYb9Fbt8uiOSooupjTq10vpvnU=
github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA=
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM=
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=