GithubHelp home page GithubHelp logo

simon-xisystems / ubloxsara5kotlin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xi-systems-ltd/rockblock-sbd

0.0 0.0 0.0 184 KB

Library for uBlox Sara GSM/GPS chip

License: Apache License 2.0

Java 33.28% Kotlin 66.72%

ubloxsara5kotlin's Introduction

RockBlock-SBD - In Alpha, testing underway to ensure operability.

Background

Libaray forked from (https://github.com/slipperyseal/B9) in order to extract classes used to communicate to a RockBLOCK Iridium Short-Burst Data (SBD) modem (https://www.groundcontrol.com/product/rockblock-9603-compact-plug-play-satellite-transmitter/).

Code has been refactored to use JSerialComm library as oppsed to the Pi4J library, primarilly to make the code more portable.

Use

Quite simply, establish a Desktop Serial Port and pass that to a RockBlock instatiation.

val serialPort = DesktopSerialPort("COM22")
val rockBlock = RockBlock(serialPort)
rockBlock.initialize()

We can now use the RockBLOCK to send and receive;

println("Signal Level = ${rockBlock.getSignalLevel()}, has Reception? = ${rockBlock.hasReception(2)}")
println("Status = ${rockBlock.status}")

We also have a helper function to wait for signal and then to send data, used like this;

 rockBlock.sendTestMessage("HEllO WORLD, DOES THIS SEND?")
 rockBlock.waitForReception(1000, 2) //wait for signal
 rockBlock.sendAndReceive() //tell rockblock to complete a tx/rx cycle

ubloxsara5kotlin's People

Contributors

simon-xisystems avatar simon2ic avatar

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.