Difference between revisions of "WdKA RIoT Arduino Shield"

From Interaction Station Wiki
Jump to navigation Jump to search
m
m
Line 27: Line 27:
  
 
got: ok ( 6F:6B)
 
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)
+
[...] other channels removed for brevity [/...]
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
 
writing: mac set rx2 0 869525000
  
Line 164: Line 56:
 
[simon@aldeberan WdKA_RiOT]$  
 
[simon@aldeberan WdKA_RiOT]$  
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
 +
0004A30B001B64F5 18-4-2017 12:33:05 868.500 SF7 BW125 4/5 -106 5.8 33 188 2509003499990533
  
 
== Resources ==
 
== Resources ==

Revision as of 11:36, 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:

[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)

[...] other channels removed for brevity [/...]

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]$


0004A30B001B64F5	18-4-2017 12:33:05	868.500	SF7 BW125 4/5	-106	5.8	33	188	2509003499990533

Resources

Notes & References