Giter VIP home page Giter VIP logo

go-e32-lora's Introduction

go-E32-lora: A E32-TTL-100 Lora Toolkit

This project makes the cheap E32-TTL-100 lora chips accessible through an easy library and some command line tools. A dialog based gui is provided to generate hex configs for the E32 chip.

Animated gif showing a e32config session

Installation

go get ./...
./build-native.sh

For cross compilation to raspi

./build-pi.sh

Binaries are build to ./out/<platform>

Direct Pi Hookup

GPIO pins 17 and 27 (BCM Numbering) must be connected to M0 and M1 on E32. VCC and GND should be connected to 3.3V and GND on Pi as well as RX and TX to the corresponding serial pins on the Pi. Aux is left dangling.

Serial Port Selection

Default serial device is /dev/ttyS0 as this is the internal serial port on a raspberry pi.

This can be overwritten by the LORAPORT environment variable.

On mac for example:

user@mymac$ LORAPORT=/dev/tty.SLAB_USBtoUART ./bcaster 15

Or linux with an attached usb serial converter:

user@mymac$ LORAPORT=/dev/ttyUSB0 ./bcaster 15

Included tools

e32config

Quick tool for decoding e32config strings, generating new ones using a dialog gui and changing modes and configs on properly configured devices.

Execute e32config help for more information. Beware some feature work only on E32 chips directly connected to a pi.

bcaster

A simple program to broadcast the hostname and current date-time via lora. Useful for range checks.

Usage: bcaster [sleeptimeinseconds]

monitor

Receives announces from bcaster and displays them on the console and in case of an i2c display connected to a pi also outputs to the display.

WARNING This code is currently tighlty coupled to the presence of the lcd display, some cleanup needed!

go-e32-lora's People

Contributors

derjohn avatar gh0st42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

go-e32-lora's Issues

Failed to install

any hints?

➜  go-e32-lora git:(master) go get ./...
package go-e32-lora/lora: unrecognized import path "go-e32-lora/lora" (import path does not begin with hostname)
➜  go-e32-lora git:(master) ./build-native.sh
Building bcaster
cmds/bcaster/bcaster.go:6:2: cannot find package "go-e32-lora/lora" in any of:
	/usr/local/opt/go/libexec/src/go-e32-lora/lora (from $GOROOT)
	/Users/max/.go/src/go-e32-lora/lora (from $GOPATH)
Building monitor
cmds/monitor/monitor.go:6:2: cannot find package "go-e32-lora/lora" in any of:
	/usr/local/opt/go/libexec/src/go-e32-lora/lora (from $GOROOT)
	/Users/max/.go/src/go-e32-lora/lora (from $GOPATH)
Building e32config
cmds/e32config/e32config.go:7:2: cannot find package "go-e32-lora/lora" in any of:
	/usr/local/opt/go/libexec/src/go-e32-lora/lora (from $GOROOT)
	/Users/max/.go/src/go-e32-lora/lora (from $GOPATH)
Building pktdump
cmds/pktdump/pktdump.go:6:2: cannot find package "go-e32-lora/lora" in any of:
	/usr/local/opt/go/libexec/src/go-e32-lora/lora (from $GOROOT)
	/Users/max/.go/src/go-e32-lora/lora (from $GOPATH)
Building pktsend
cmds/pktsend/pktsend.go:4:2: cannot find package "go-e32-lora/lora" in any of:
	/usr/local/opt/go/libexec/src/go-e32-lora/lora (from $GOROOT)
	/Users/max/.go/src/go-e32-lora/lora (from $GOPATH)
Building pktrecv
cmds/pktrecv/pktrecv.go:5:2: cannot find package "go-e32-lora/lora" in any of:
	/usr/local/opt/go/libexec/src/go-e32-lora/lora (from $GOROOT)
	/Users/max/.go/src/go-e32-lora/lora (from $GOPATH)
➜  go-e32-lora git:(master) go build -ldflags="-s -w"  -o $OUTPATH/e32config cmds/e32config/e32config.go
cmds/e32config/e32config.go:7:2: cannot find package "go-e32-lora/lora" in any of:
	/usr/local/opt/go/libexec/src/go-e32-lora/lora (from $GOROOT)
	/Users/max/.go/src/go-e32-lora/lora (from $GOPATH)
➜  go-e32-lora git:(master) go get ./...
package go-e32-lora/lora: unrecognized import path "go-e32-lora/lora" (import path does not begin with hostname)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.