diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 2dc8c19..0000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This workflow will build a golang project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go - -name: Go - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Install dependencies - run: | - cd monitor && go get . - - - name: Set up Go - uses: actions/setup-go@v4 - with: - cache-dependency-path: monitor/go.sum - go-version: '1.21' - - - name: Build - run: cd monitor && go build -o ./monitor.out . diff --git a/README.md b/README.md index 4c621f3..0b839f8 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ ```shell git clone https://www.github.com/foglar/cobraV2.git cd cobraV2/serial_read + +go run . go build . ``` @@ -47,6 +49,8 @@ go build . ```shell git clone https://www.github.com/foglar/cobraV2.git cd cobraV2/monitor + +go run . go build . ``` @@ -57,7 +61,7 @@ go build . ### Sender and Reciever -Upload sender and reciever code on the 2 arduino's +Upload sender and reciever code on the 2 arduinos Required library for antenna: [RF24](https://nrf24.github.io/RF24) @@ -183,6 +187,7 @@ $GPGAA,HHMMSS.SS,llll.ll,a,yyyyy.yy,a,x,xx,x.x,x.x,M,x.x,M,x.x,xxxx ### Sender issues - [x] data stops being transmitted from sender after some short period time +- [ ] create a version which will send data via **IOT 433MHz LoRa LPWAN SX1278** ### Monitor app issues @@ -209,3 +214,5 @@ Datasheets, documentation and sources - [NRF24L01+ PA/LNA - Datasheet](doc/nrf24lo1-datasheet.pdf) - [NRF24L01+ PA/LNA - Demo code](https://img.gme.cz/files/eshop_data/eshop_data/10/775-034/prg.775-034.1.zip) - [Pixel2 (go gui library) - Github repository](https://github.com/gopxl/pixel) +- [LoraWAN Library](https://github.com/mcci-catena/arduino-lmic) +- All other reference materials are in the *doc/* directory diff --git a/doc/CRC_prirucka_2024.pdf b/doc/CRC_prirucka_2024.pdf new file mode 100644 index 0000000..f415b1f Binary files /dev/null and b/doc/CRC_prirucka_2024.pdf differ diff --git a/doc/ds_sx1276-7-8-9_w_app_v7.pdf b/doc/ds_sx1276-7-8-9_w_app_v7.pdf new file mode 100644 index 0000000..6d04c2c Binary files /dev/null and b/doc/ds_sx1276-7-8-9_w_app_v7.pdf differ diff --git a/doc/lora-device-developer-guide-orange.pdf b/doc/lora-device-developer-guide-orange.pdf new file mode 100644 index 0000000..64f54f5 Binary files /dev/null and b/doc/lora-device-developer-guide-orange.pdf differ diff --git a/monitor/go.mod b/monitor/go.mod index 54c14c4..9c7b079 100644 --- a/monitor/go.mod +++ b/monitor/go.mod @@ -1,6 +1,8 @@ module foglar/monitor -go 1.20 +go 1.21 + +toolchain go1.22.1 require ( github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 diff --git a/monitor/go.sum b/monitor/go.sum index 732adfd..4d9c67f 100644 --- a/monitor/go.sum +++ b/monitor/go.sum @@ -1,4 +1,5 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/faiface/glhf v0.0.0-20211013000516-57b20770c369 h1:gv4BgP50atccdK/1tZHDyP6rMwiiutR2HPreR/OyLzI= github.com/faiface/glhf v0.0.0-20211013000516-57b20770c369/go.mod h1:dDdUO+G9ZnJ9sc8nIUvhLkE45k8PEKW6+A3TdWsfpV0= github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3 h1:baVdMKlASEHrj19iqjARrPbaRisD7EuZEVJj6ZMLl1Q= @@ -19,7 +20,9 @@ github.com/gopxl/pixel v1.0.0/go.mod h1:kPUBG2He7/+alwmi5z0IwnpAc6pw2N7eA08cdBfo github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= 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/image v0.0.0-20190321063152-3fc05d484e9f/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= @@ -29,3 +32,4 @@ golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/testing-sender/test.ino b/testing-sender/testing-sender.ino similarity index 100% rename from testing-sender/test.ino rename to testing-sender/testing-sender.ino