-
Notifications
You must be signed in to change notification settings - Fork 4
/
Radio_Settings_quick_reference.txt
75 lines (47 loc) · 2.43 KB
/
Radio_Settings_quick_reference.txt
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
59
60
61
62
63
64
65
66
67
68
69
70
71
Current Radio Settings and cheat sheet
#Lowest power settings
cat /sys/class/dnt900/ttyAMA0/0x000506/TxPower
echo 0x00 > /sys/class/dnt900/ttyAMA0/0x000506/TxPower && echo "0x01" > /sys/class/dnt900/ttyAMA0/0x000506/MemorySave
echo 0x00 > /sys/class/dnt900/ttyAMA0/0x001308/TxPower && echo "0x01" > /sys/class/dnt900/ttyAMA0/0x001308/MemorySave
# Highest
cat /sys/class/dnt900/ttyAMA0/0x001308/TxPower
echo 0x05 > /sys/class/dnt900/ttyAMA0/0x000506/TxPower && echo "0x01" > /sys/class/dnt900/ttyAMA0/0x000506/MemorySave
echo 0x05 > /sys/class/dnt900/ttyAMA0/0x001308/TxPower && echo "0x01" > /sys/class/dnt900/ttyAMA0/0x001308/MemorySave
#2 = 1152 Baud Rate
#0x01 = 200 kb/s
#0x00 = 500
echo "0x00" > /sys/class/dnt900/ttyAMA0/0x000506/RF_DataRate
echo "0x00" > /sys/class/dnt900/ttyAMA0/0x001308/RF_DataRate
echo "0x01" > /sys/class/dnt900/ttyAMA0/0x000506/ProtocolMode
#trying 0 on base, dont think that works...
echo 0x00 > /sys/class/dnt900/ttyAMA0/0x001308/ProtocolMode done
#protocal
echo 0x00 > /sys/class/dnt900/ttyAMA0/0x000506/AccessMode
echo 0x00 > /sys/class/dnt900/ttyAMA0/0x001308/AccessMode done
#tdma default "good for point to point"
echo 0x02 > /sys/class/dnt900/ttyAMA0/0x000506/AccessMode
echo 0x02 > /sys/class/dnt900/ttyAMA0/0x001308/AccessMode
#115200
echo 0x0004 > /sys/class/dnt900/ttyAMA0/0x000506/SerialRate
echo 0x0004 > /sys/class/dnt900/ttyAMA0/0x001308/SerialRate
#point to point (not multi-point)
echo 0x01 > /sys/class/dnt900/ttyAMA0/0x000506/TransPtToPtMode
echo 0x01 > /sys/class/dnt900/ttyAMA0/0x001308/TransPtToPtMode
#115200, but should not matter
echo "0x0004" > /sys/class/dnt900/ttyAMA0/0x000506/DiagSerialRate
echo "0x0004" > /sys/class/dnt900/ttyAMA0/0x001308/DiagSerialRate
#attempt to set hop duration
echo "0x00C8" > /sys/class/dnt900/ttyAMA0/0x000506/HopDuration
echo "0x00C8" > /sys/class/dnt900/ttyAMA0/0x001308/HopDuration
echo "0x01" > /sys/class/dnt900/ttyAMA0/0x000506/MemorySave
echo "0x01" > /sys/class/dnt900/ttyAMA0/0x001308/MemorySave
MemorySave
cat /sys/class/dnt900/ttyAMA0/0x000506/TxPower
echo 0x01 > /sys/class/dnt900/ttyAMA0/0x000506/TxPower
cat /sys/class/dnt900/ttyAMA0/0x001308/TxPower
echo 0x01 > /sys/class/dnt900/ttyAMA0/0x001308/TxPower
echo 0x02 > /sys/class/dnt900/ttyAMA0/0x000506/RF_DataRate
echo 0x02 > /sys/class/dnt900/ttyAMA0/0x001308/RF_DataRate
echo 0x02 > /sys/class/dnt900/ttyAMA0/0x000506/MemorySave
echo 0x02 > /sys/class/dnt900/ttyAMA0/0x001308/MemorySave
MemorySave