Sa818 - Sa818 UHF/VHF walkie talkie module control library for golang

SA818 golang library for serial control

This library written in Go programming language to control a rf sa818 walkie talkie module

image

Compatibility

Tested on Raspberry PI 3 (model B+)

Golang usage

package main

import (
	"log"

	"github.com/talkkonnect/sa818"
)

var DMOSetupGroup sa818.DMOSetupGroupStruct
var DMOSetupFilter sa818.DMOSetupFilterStruct
var volume int = 5

func main() {

	DMOSetupGroup.Band = 0
	DMOSetupGroup.Rxfreq = 168.7750
	DMOSetupGroup.Txfreq = 168.7750
	DMOSetupGroup.Ctsstone = 0
	DMOSetupGroup.Squelch = 0
	DMOSetupGroup.Dcstone = 0

	DMOSetupFilter.Predeemph = 0
	DMOSetupFilter.Highpass = 0
	DMOSetupFilter.Lowpass = 0

	log.Println(DMOSetupGroup)
	log.Println(DMOSetupFilter)
	log.Println(volume)

	//log.Println(sa818.InitComm())
	//log.Println(sa818.CheckVersion())
	log.Println(sa818.SetFrequency(DMOSetupGroup))
	//log.Println(sa818.SetFilter(DMOSetupFilter))
	log.Println(sa818.SetVolume(volume))
	//log.Println(sa818.SetCloseTailTone(1))
	//log.Println(sa818.CheckRSSI())

}

Installation

$ go get -u github.com/talkkonnect/sa818

Credits

This project is inspired by sa818 python program available at https://pypi.org/project/sa818/

Contact

Please use Github issue tracker for filing bugs or feature requests.

License

sa818 is licensed under MIT License.

Owner
Suvir Kumar
Engineer, Geek, Husband & Father
Suvir Kumar
Similar Resources

A go module for "friendly" IDs

go-eyed A go module for "friendly" IDs. THIS MODULE IS INCOMPLETE AND NOT CURRENTLY BEING MAINTAINED. THEREFORE, IT SHOULD NOT BE USED Contribution If

Dec 17, 2021

ProtonMail module for waybar/polybar/yabar/i3blocks

protoncheck  lightweight, fast waybar/polybar/yabar/i3blocks module to check the amount of unread emails in a ProtonMail inbox. Installation You may

Sep 27, 2022

Flesch-go - Go-based implementation of the Flesch reading ease readability formula module.

flesch-go Go-based implementation of the Flesch reading ease readability formula module. Thanks for the flesch-index project. Installation Run the fol

Nov 9, 2022

Go-poolsuite - Poolsuite FM player as Go module

go-poolsuite Poolsuite FM (formerly Poolside FM) player as a Go module. Example

May 4, 2022

Gosfdc module - a collection of packages containing the data structures from the various Salesforce APIs and Tools

Gosfdc module - a collection of packages containing the data structures from the various Salesforce APIs and Tools

Jan 21, 2022

An interactive menu for Magisk's module installer with tools to alter Android

JD's Toolbox I'll update this with some details later, just getting the source code out for now... LICENSE The source code for JD's Toolbox is release

Jan 24, 2022

Unik is a Go module for running Go programs as unikernels, without an underlying operating system

Unik is a Go module for running Go programs as unikernels, without an underlying operating system. The included demo is a functional Gio GUI prog

Oct 21, 2022

modver - a Go package and command that helps you obey semantic versioning rules in your Go module.

Modver This is modver, a Go package and command that helps you obey semantic versioning rules in your Go module. It can read and compare two different

Dec 12, 2022

Go module that provides primitive functional programming utilities.

Functional Functional provides a small set of pure functions that are common in functional programming languages, such as Reduce, Map, Filter, etc. Wi

Jun 12, 2022
Related tags
Golang-module-references - A reference for how to setup a Golang project with modules - Task Management + Math Examples

Golang Module Project The purpose of this project is to act as a reference for setting up future Golang projects using modules. This project has a mat

Jan 2, 2022
gonewire: one wire library that uses the w1 kernel module

gonewire one wire library that uses the w1 kernel module. current support: DS18(S)20

Jan 25, 2022
Sensirion SCD30 CO2 sensor i2c driver module for Golang

Sensirion SCD30 CO2 sensor i2c driver module for Golang Overview With this module Sensirion SCD30 CO2 sensor can be accessed throug i2c bus. Implement

Oct 9, 2022
Control external Fan to cool down your raspi cluster
Control external Fan to cool down your raspi cluster

Fan control for Raspberry Pi This is a small project that I build in order to cool down my raspi home cluster The case I use have some external fans t

Dec 11, 2021
Configuration agent for BFE control plane

conf-agent conf-agent 说明 conf-agent 从 api-server 获取最新的配置并触发bfe热加载。 获取方式 获取 conf-agent 工具。获取 conf-agent 有多种方式: 在 releases 页面下载对应平台的可执行文件 通过 go get 工具本地

Oct 28, 2022
Joy2Mouse is a program that allows you to control your computer mouse with a joystick.
Joy2Mouse is a program that allows you to control your computer mouse with a joystick.

Joy2Mouse Joy2Mouse is a program that allows you to control your computer mouse with a joystick. Features Control your mouse with a joystick Mouse dow

Dec 26, 2021
Control QEMU like magic!
Control QEMU like magic!

Qemantra Qemantra is a command-line tool for creating and managing QEMU Virtual Machines. QEMU is better and sometimes faster than VirtualBox , but do

Dec 26, 2022
Elytrium Billing: Module-based billing platform made with Go

In development Elling - Elytrium Billing Module-based billing platform made with Go The main idea of this product - make a stable billing platform for

Jun 4, 2022
A simple project/module generated tool written in go

A module generator written in go This is a project/module generator written in go. It is intended to generate standard project/module layouts in the t

Oct 17, 2022
Module to ease interaction with Pact's development server & ScalableBFT

go-pact Module to ease interaction with Pact's development server & ScalableBFT Install go install github.com/jfamousket/go-pact@latest Functions H

Dec 9, 2021