-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcmd.sh
58 lines (38 loc) · 1.3 KB
/
cmd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cd C:\Users\Nivu\Microchip\LoRaSuite\Applications\LoRaDevUtility
java -jar LoRaDevUtility.jar
cd E:\git\lora\Python
# start app 1 tx packets (kt lora mote)
python decode.py
# start gateway tx packets
python gwdecode.py
# mqtt capture gps packets
python gps_write.py
# capture gw packets
python loc_write.py
# capture app 2 packets (microchip motes)
python mcdecode.py
# contineous gps transmit code
cd LoRaWAN/GPS/TinyGPSUp/TInyGPSUp.ino
# location change dr and transmit 50 packets
cd LoRaWAN/LOC/LOC.ino
# device application mapping
# lora range mapping
0004a30b0020096f -> GPS -> gps_write.py -> gps_data.csv
# lora location pdr
0004A30B001FEBCF -> LOC -> loc_write.py -> loc_data.csv
# app 1 : KT motes packets
application/1 -> app1 pkts -> decode.py -> app1_data.csv
# app 2 : MC motes packets
application/2 -> app2 pkts -> mcdecode.py -> app2_data.csv
# All gateway packets
gateway/+/rx -> gw rx pkts -> gwdecode.py -> print cmd
change all device duty cycle to 9 -> 10%
backup all data before starting experiment
connect rst to 10th pin
loc program upload on each location
mosquitto_sub -h "192.168.43.158" -p "1883" -v -t "#"
mosquitto_sub -h "192.168.43.158" -p "1883" -v -t "application/1/device/0004a30b0020096f/rx"
mcd0
0x003b0e11
f6375f9a39c9f7ffa0f842c27032aaa0
e469b1b6e066ed7d4ecc2ce9057a2b20