Difference between revisions of "Lora/shield"

From Interaction Station Wiki
Jump to: navigation, search
m
m
Line 8: Line 8:
  
 
Example:<br>
 
Example:<br>
<syntaxhighlight lang="BashSession" enclose="div">
+
<syntaxhighlight lang="console" enclose="div">
 
[simon@aldeberan WdKA_RiOT]$ python2 init_riot_shield.py /dev/ttyUSB0 0125E1DF D8D87836076B304D757D13F5C9FD50BB C0908620ECD3C54498FAEFF34E467F5F
 
[simon@aldeberan WdKA_RiOT]$ python2 init_riot_shield.py /dev/ttyUSB0 0125E1DF D8D87836076B304D757D13F5C9FD50BB C0908620ECD3C54498FAEFF34E467F5F
 
writing: sys reset
 
writing: sys reset

Revision as of 11:28, 18 April 2017

WdKA RIoT Arduino Shield

WdKA RIoT Arduino Shield

The WDKA Riot Shield is a simple Arduino shield with a Microchip RN2483 LoRa transceiver module. The shield has inputs for 2 analog resistance based sensors like an RTDs (PTC/NTC) or LDRs sensors and the output of a LittleBit module(s). In order to activate one or more sensor readings switch the appropriate switch to the ON status.


python2 init_riot_shield.py /dev/ttyUSB0 DevAddr NwkSKey AppsKey

Example:

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, arduino, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, j, java, java5, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, octave, oobas, oorexx, oracle11, oracle8, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, processing, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, rails, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, spark, sparql, sql, stonescript, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic


[simon@aldeberan WdKA_RiOT]$ python2 init_riot_shield.py /dev/ttyUSB0 0125E1DF D8D87836076B304D757D13F5C9FD50BB C0908620ECD3C54498FAEFF34E467F5F
writing: sys reset

got: RN2483 1.0.1 Dec 15 2015 09:38:09 ( 52:4E:32:34:38:33:20:31:2E:30:2E:31:20:44:65:63:20:31:35:20:32:30:31:35:20:30:39:3A:33:38:3A:30:39)
writing: mac get deveui

got: 0004A30B001B64F5 ( 30:30:30:34:41:33:30:42:30:30:31:42:36:34:46:35)
DEVEUI: 0004A30B001B64F5
setting channel: {'dcycle': 302, 'status': 'on', 'drrange': (0, 5), 'ch': 0, 'f': 0}
writing: mac set ch dcycle 0 302

got: ok ( 6F:6B)
writing: mac set ch drrange 0 0 5

got: ok ( 6F:6B)
writing: mac set ch status 0 on

got: ok ( 6F:6B)
setting channel: {'dcycle': 302, 'status': 'on', 'drrange': (0, 5), 'ch': 1, 'f': 0}
writing: mac set ch dcycle 1 302

got: ok ( 6F:6B)
writing: mac set ch drrange 1 0 5

got: ok ( 6F:6B)
writing: mac set ch status 1 on

got: ok ( 6F:6B)
setting channel: {'dcycle': 302, 'status': 'on', 'drrange': (0, 5), 'ch': 2, 'f': 0}
writing: mac set ch dcycle 2 302

got: ok ( 6F:6B)
writing: mac set ch drrange 2 0 5

got: ok ( 6F:6B)
writing: mac set ch status 2 on

got: ok ( 6F:6B)
setting channel: {'dcycle': 0, 'status': 'on', 'drrange': (0, 5), 'ch': 3, 'f': 867100000}
writing: mac set ch freq 3 867100000

got: ok ( 6F:6B)
writing: mac set ch dcycle 3 0

got: ok ( 6F:6B)
writing: mac set ch drrange 3 0 5

got: ok ( 6F:6B)
writing: mac set ch status 3 on

got: ok ( 6F:6B)
setting channel: {'dcycle': 0, 'status': 'on', 'drrange': (0, 5), 'ch': 4, 'f': 867300000}
writing: mac set ch freq 4 867300000

got: ok ( 6F:6B)
writing: mac set ch dcycle 4 0

got: ok ( 6F:6B)
writing: mac set ch drrange 4 0 5

got: ok ( 6F:6B)
writing: mac set ch status 4 on

got: ok ( 6F:6B)
setting channel: {'dcycle': 0, 'status': 'on', 'drrange': (0, 5), 'ch': 5, 'f': 867500000}
writing: mac set ch freq 5 867500000

got: ok ( 6F:6B)
writing: mac set ch dcycle 5 0

got: ok ( 6F:6B)
writing: mac set ch drrange 5 0 5

got: ok ( 6F:6B)
writing: mac set ch status 5 on

got: ok ( 6F:6B)
setting channel: {'dcycle': 0, 'status': 'on', 'drrange': (0, 5), 'ch': 6, 'f': 867700000}
writing: mac set ch freq 6 867700000

got: ok ( 6F:6B)
writing: mac set ch dcycle 6 0

got: ok ( 6F:6B)
writing: mac set ch drrange 6 0 5

got: ok ( 6F:6B)
writing: mac set ch status 6 on

got: ok ( 6F:6B)
setting channel: {'dcycle': 0, 'status': 'on', 'drrange': (0, 5), 'ch': 7, 'f': 867900000}
writing: mac set ch freq 7 867900000

got: ok ( 6F:6B)
writing: mac set ch dcycle 7 0

got: ok ( 6F:6B)
writing: mac set ch drrange 7 0 5

got: ok ( 6F:6B)
writing: mac set ch status 7 on

got: ok ( 6F:6B)
setting channel: {'dcycle': 0, 'status': 'on', 'drrange': (6, 6), 'ch': 8, 'f': 868300000}
writing: mac set ch freq 8 868300000

got: ok ( 6F:6B)
writing: mac set ch dcycle 8 0

got: ok ( 6F:6B)
writing: mac set ch drrange 8 6 6

got: ok ( 6F:6B)
writing: mac set ch status 8 on

got: ok ( 6F:6B)
setting channel: {'dcycle': 0, 'status': 'on', 'drrange': (7, 7), 'ch': 9, 'f': 868800000}
writing: mac set ch freq 9 868800000

got: ok ( 6F:6B)
writing: mac set ch dcycle 9 0

got: ok ( 6F:6B)
writing: mac set ch drrange 9 7 7

got: ok ( 6F:6B)
writing: mac set ch status 9 on

got: ok ( 6F:6B)
writing: mac set rx2 0 869525000

got: ok ( 6F:6B)
writing: mac set rxdelay1 1000

got: ok ( 6F:6B)
writing: mac set retx 3

got: ok ( 6F:6B)
writing: mac set dr 6

got: ok ( 6F:6B)
writing: mac set devaddr 0125E1DF

got: ok ( 6F:6B)
writing: mac set nwkskey D8D87836076B304D757D13F5C9FD50BB

got: ok ( 6F:6B)
writing: mac set appskey C0908620ECD3C54498FAEFF34E467F5F

got: ok ( 6F:6B)
writing: mac save

got: ok ( 6F:6B)
[simon@aldeberan WdKA_RiOT]$

Resources

Notes & References