{"id":22039582,"url":"https://github.com/ionutmindrescu/woodbeacon-client","last_synced_at":"2026-04-30T17:32:12.636Z","repository":{"id":124497085,"uuid":"305480518","full_name":"IonutMindrescu/woodbeacon-client","owner":"IonutMindrescu","description":"Wood Beacon - Illegal Deforestation | Client made with Raspberry Pi \u0026 LoRaWAN.","archived":false,"fork":false,"pushed_at":"2020-10-19T18:41:17.000Z","size":438,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T19:17:59.122Z","etag":null,"topics":["deforestation","dragino","illegal","lorawan","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IonutMindrescu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-10-19T18:39:15.000Z","updated_at":"2020-10-19T18:45:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"b63e8c57-857f-4e78-a721-908d9ac90fb7","html_url":"https://github.com/IonutMindrescu/woodbeacon-client","commit_stats":{"total_commits":9,"total_committers":3,"mean_commits":3.0,"dds":0.4444444444444444,"last_synced_commit":"a3818828dbeade81fc859e45f836be6df0b7e117"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonutMindrescu%2Fwoodbeacon-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonutMindrescu%2Fwoodbeacon-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonutMindrescu%2Fwoodbeacon-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonutMindrescu%2Fwoodbeacon-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IonutMindrescu","download_url":"https://codeload.github.com/IonutMindrescu/woodbeacon-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245104530,"owners_count":20561380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deforestation","dragino","illegal","lorawan","raspberry-pi"],"created_at":"2024-11-30T11:11:17.915Z","updated_at":"2026-04-30T17:32:12.593Z","avatar_url":"https://github.com/IonutMindrescu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoRaWAN\nThis is a LoRaWAN v1.0 implementation in python for the Dragino LoRa/GPS HAT, it is currently being used to connect to the things network https://thethingsnetwork.org.  It is based on work at https://github.com/jeroennijhof/LoRaWAN\n\nIt uses https://github.com/mayeranalytics/pySX127x.\n\nSee: https://www.lora-alliance.org/portals/0/specs/LoRaWAN%20Specification%201R0.pdf\n\n## Hardware Needed\n* Raspberry Pi\n* SD card\n* LoRa/GPS HAT\n\n## Installation\n1. Install Raspbian on the Raspberry Pi\n2. Enable SPI using raspi-config\n3. Enable Serial using raspi-config (no login shell)\n4. Install the required packages `sudo apt install device-tree-compiler git python3-crypto python3-nmea2 python3-rpi.gpio python3-serial python3-spidev python3-configobj`\n5. Download the git repo `git clone https://github.com/computenodes/LoRaWAN.git`\n6. Enable additional CS lines (See section below for explanation)\n    1. Change into the overlay directory `cd dragino/overlay`\n    2. Compile the overlay `dtc -@ -I dts -O dtb -o spi-gpio-cs.dtbo spi-gpio-cs-overlay.dts`.  This might generate a couple of warnings, but seems to work ok\n    3. Copy the output file to the required folder `sudo cp spi-gpio-cs.dtbo /boot/overlays/`\n    4. Enable the overlay at next reboot `echo \"dtoverlay=spi-gpio-cs\" | sudo tee -a /boot/config.txt`\n    5. Reboot the Pi `sudo reboot`\n    6. Check that the new cs lines are enabled `ls /dev/spidev0.*` should output `/dev/spidev0.0  /dev/spidev0.1  /dev/spidev0.2`.  In which case the required SPI CS line now exists\n7. Create a new device in The Things Network console and copy the details into the config file\n8. Run the test programm `./test.py` and the device should transmit on the things network using OTAA authentication\n\n## Additional Chip Select Details\nFor some reason the Dragino board does not use one of the standard chip select lines for the SPI communication.  This can be overcome by using a device tree overlay to configure addtional SPI CS lines.  I am not a device tree expert so I adapted the example given at https://www.raspberrypi.org/forums/viewtopic.php?f=63\u0026t=157994 to provide the code needed for this to work.  \n\n\n## TODO\n* Make code more readable and easier to use (From upstream)\n* Add GPS code into dragino class\n* Use .ini files for config not .py\n* investigate device tree compilation warnings\n* Test recieving of messages\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionutmindrescu%2Fwoodbeacon-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionutmindrescu%2Fwoodbeacon-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionutmindrescu%2Fwoodbeacon-client/lists"}