This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
BigSHinyToys's profile picture

Rednet distance testing

Started by BigSHinyToys, 08 October 2012 - 06:28 PM
BigSHinyToys #1
Posted 08 October 2012 - 08:28 PM
I have run a program to record all rednet signal distances at every hight during good weather

Here is the RAW data from the turtle
Spoiler

------ Start Loging ------
Hight = 1 | Dist = 64 | Lst 64
Hight = 2 | Dist = 64 | Lst 64
Hight = 3 | Dist = 64 | Lst 64
Hight = 4 | Dist = 64 | Lst 64
Hight = 5 | Dist = 64 | Lst 64
Hight = 6 | Dist = 64 | Lst 64
Hight = 7 | Dist = 64 | Lst 64
Hight = 8 | Dist = 64 | Lst 64
Hight = 9 | Dist = 64 | Lst 64
Hight = 10 | Dist = 64 | Lst 64
Hight = 11 | Dist = 64 | Lst 64
Hight = 12 | Dist = 64 | Lst 64
Hight = 13 | Dist = 64 | Lst 64
Hight = 14 | Dist = 64 | Lst 64
Hight = 15 | Dist = 64 | Lst 64
Hight = 16 | Dist = 64 | Lst 64
Hight = 17 | Dist = 64 | Lst 64
Hight = 18 | Dist = 64 | Lst 64
Hight = 19 | Dist = 64 | Lst 64
Hight = 20 | Dist = 64 | Lst 64
Hight = 21 | Dist = 64 | Lst 64
Hight = 22 | Dist = 64 | Lst 64
Hight = 23 | Dist = 64 | Lst 64
Hight = 24 | Dist = 64 | Lst 64
Hight = 25 | Dist = 64 | Lst 64
Hight = 26 | Dist = 64 | Lst 64
Hight = 27 | Dist = 64 | Lst 64
Hight = 28 | Dist = 64 | Lst 64
Hight = 29 | Dist = 64 | Lst 64
Hight = 30 | Dist = 64 | Lst 64
Hight = 31 | Dist = 64 | Lst 64
Hight = 32 | Dist = 64 | Lst 64
Hight = 33 | Dist = 64 | Lst 64
Hight = 34 | Dist = 64 | Lst 64
Hight = 35 | Dist = 64 | Lst 64
Hight = 36 | Dist = 64 | Lst 64
Hight = 37 | Dist = 64 | Lst 64
Hight = 38 | Dist = 64 | Lst 64
Hight = 39 | Dist = 64 | Lst 64
Hight = 40 | Dist = 64 | Lst 64
Hight = 41 | Dist = 64 | Lst 64
Hight = 42 | Dist = 64 | Lst 64
Hight = 43 | Dist = 64 | Lst 64
Hight = 44 | Dist = 64 | Lst 64
Hight = 45 | Dist = 64 | Lst 64
Hight = 46 | Dist = 64 | Lst 64
Hight = 47 | Dist = 64 | Lst 64
Hight = 48 | Dist = 64 | Lst 64
Hight = 49 | Dist = 64 | Lst 64
Hight = 50 | Dist = 64 | Lst 64
Hight = 51 | Dist = 64 | Lst 64
Hight = 52 | Dist = 64 | Lst 64
Hight = 53 | Dist = 64 | Lst 64
Hight = 54 | Dist = 64 | Lst 64
Hight = 55 | Dist = 64 | Lst 64
Hight = 56 | Dist = 64 | Lst 64
Hight = 57 | Dist = 64 | Lst 64
Hight = 58 | Dist = 64 | Lst 64
Hight = 59 | Dist = 64 | Lst 64
Hight = 60 | Dist = 64 | Lst 64
Hight = 61 | Dist = 64 | Lst 64
Hight = 62 | Dist = 64 | Lst 64
Hight = 63 | Dist = 64 | Lst 64
Hight = 64 | Dist = 64 | Lst 64
Hight = 65 | Dist = 64 | Lst 64
Hight = 66 | Dist = 64 | Lst 64
Hight = 67 | Dist = 64 | Lst 64
Hight = 68 | Dist = 64 | Lst 64
Hight = 69 | Dist = 64 | Lst 64
Hight = 70 | Dist = 64 | Lst 64
Hight = 71 | Dist = 64 | Lst 64
Hight = 72 | Dist = 64 | Lst 64
Hight = 73 | Dist = 64 | Lst 64
Hight = 74 | Dist = 64 | Lst 64
Hight = 75 | Dist = 64 | Lst 64
Hight = 76 | Dist = 64 | Lst 64
Hight = 77 | Dist = 64 | Lst 64
Hight = 78 | Dist = 64 | Lst 64
Hight = 79 | Dist = 64 | Lst 64
Hight = 80 | Dist = 64 | Lst 64
Hight = 81 | Dist = 64 | Lst 64
Hight = 82 | Dist = 64 | Lst 64
Hight = 83 | Dist = 64 | Lst 64
Hight = 84 | Dist = 64 | Lst 64
Hight = 85 | Dist = 64 | Lst 64
Hight = 86 | Dist = 64 | Lst 64
Hight = 87 | Dist = 64 | Lst 64
Hight = 88 | Dist = 64 | Lst 64
Hight = 89 | Dist = 64 | Lst 64
Hight = 90 | Dist = 64 | Lst 64
Hight = 91 | Dist = 64 | Lst 64
Hight = 92 | Dist = 64 | Lst 64
Hight = 93 | Dist = 64 | Lst 64
Hight = 94 | Dist = 64 | Lst 64
Hight = 95 | Dist = 64 | Lst 64
Hight = 96 | Dist = 64 | Lst 64
Hight = 97 | Dist = 66 | Lst 66
Hight = 98 | Dist = 68 | Lst 68
Hight = 99 | Dist = 70 | Lst 70
Hight = 100 | Dist = 72 | Lst 72
Hight = 101 | Dist = 74 | Lst 74
Hight = 102 | Dist = 76 | Lst 76
Hight = 103 | Dist = 78 | Lst 78
Hight = 104 | Dist = 80 | Lst 80
Hight = 105 | Dist = 82 | Lst 82
Hight = 106 | Dist = 84 | Lst 84
Hight = 107 | Dist = 86 | Lst 86
Hight = 108 | Dist = 88 | Lst 88
Hight = 109 | Dist = 90 | Lst 90
Hight = 110 | Dist = 92 | Lst 92
Hight = 111 | Dist = 94 | Lst 94
Hight = 112 | Dist = 96 | Lst 96
Hight = 113 | Dist = 98 | Lst 98
Hight = 114 | Dist = 100 | Lst 100
Hight = 115 | Dist = 102 | Lst 102
Hight = 116 | Dist = 104 | Lst 104
Hight = 117 | Dist = 106 | Lst 106
Hight = 118 | Dist = 108 | Lst 108
Hight = 119 | Dist = 110 | Lst 110
Hight = 120 | Dist = 112 | Lst 112
Hight = 121 | Dist = 114 | Lst 114
Hight = 122 | Dist = 116 | Lst 116
Hight = 123 | Dist = 118 | Lst 118
Hight = 124 | Dist = 120 | Lst 120
Hight = 125 | Dist = 122 | Lst 122
Hight = 126 | Dist = 124 | Lst 124
Hight = 127 | Dist = 126 | Lst 126
Hight = 128 | Dist = 128 | Lst 128
Hight = 129 | Dist = 130 | Lst 130
Hight = 130 | Dist = 132 | Lst 132
Hight = 131 | Dist = 134 | Lst 134
Hight = 132 | Dist = 136 | Lst 136
Hight = 133 | Dist = 138 | Lst 138
Hight = 134 | Dist = 140 | Lst 140
Hight = 135 | Dist = 142 | Lst 142
Hight = 136 | Dist = 145 | Lst 145
Hight = 137 | Dist = 147 | Lst 147
Hight = 138 | Dist = 149 | Lst 149
Hight = 139 | Dist = 151 | Lst 151
Hight = 140 | Dist = 153 | Lst 153
Hight = 141 | Dist = 155 | Lst 155
Hight = 142 | Dist = 157 | Lst 157
Hight = 143 | Dist = 159 | Lst 159
Hight = 144 | Dist = 161 | Lst 161
Hight = 145 | Dist = 163 | Lst 163
Hight = 146 | Dist = 165 | Lst 165
Hight = 147 | Dist = 167 | Lst 167
Hight = 148 | Dist = 169 | Lst 169
Hight = 149 | Dist = 171 | Lst 171
Hight = 150 | Dist = 173 | Lst 173
Hight = 151 | Dist = 175 | Lst 175
Hight = 152 | Dist = 177 | Lst 177
Hight = 153 | Dist = 179 | Lst 179
Hight = 154 | Dist = 181 | Lst 181
Hight = 155 | Dist = 183 | Lst 183
Hight = 156 | Dist = 185 | Lst 185
Hight = 157 | Dist = 187 | Lst 187
Hight = 158 | Dist = 189 | Lst 189
Hight = 159 | Dist = 191 | Lst 191
Hight = 160 | Dist = 193 | Lst 193
Hight = 161 | Dist = 195 | Lst 195
Hight = 162 | Dist = 197 | Lst 197
Hight = 163 | Dist = 199 | Lst 199
Hight = 164 | Dist = 201 | Lst 201
Hight = 165 | Dist = 203 | Lst 203
Hight = 166 | Dist = 205 | Lst 205
Hight = 167 | Dist = 207 | Lst 207
Hight = 168 | Dist = 209 | Lst 209
Hight = 169 | Dist = 211 | Lst 211
Hight = 170 | Dist = 213 | Lst 213
Hight = 171 | Dist = 215 | Lst 215
Hight = 172 | Dist = 217 | Lst 217
Hight = 173 | Dist = 219 | Lst 219
Hight = 174 | Dist = 221 | Lst 221
Hight = 175 | Dist = 224 | Lst 224
Hight = 176 | Dist = 226 | Lst 226
Hight = 177 | Dist = 228 | Lst 228
Hight = 178 | Dist = 230 | Lst 230
Hight = 179 | Dist = 232 | Lst 232
Hight = 180 | Dist = 234 | Lst 234
Hight = 181 | Dist = 236 | Lst 236
Hight = 182 | Dist = 238 | Lst 238
Hight = 183 | Dist = 240 | Lst 240
Hight = 184 | Dist = 242 | Lst 242
Hight = 185 | Dist = 244 | Lst 244
Hight = 186 | Dist = 246 | Lst 246
Hight = 187 | Dist = 248 | Lst 248
Hight = 188 | Dist = 250 | Lst 250
Hight = 189 | Dist = 252 | Lst 252
Hight = 190 | Dist = 254 | Lst 254
Hight = 191 | Dist = 256 | Lst 256
Hight = 192 | Dist = 258 | Lst 258
Hight = 193 | Dist = 260 | Lst 260
Hight = 194 | Dist = 262 | Lst 262
Hight = 195 | Dist = 264 | Lst 264
Hight = 196 | Dist = 266 | Lst 266
Hight = 197 | Dist = 268 | Lst 268
Hight = 198 | Dist = 270 | Lst 270
Hight = 199 | Dist = 272 | Lst 272
Hight = 200 | Dist = 274 | Lst 274
Hight = 201 | Dist = 276 | Lst 276
Hight = 202 | Dist = 278 | Lst 278
Hight = 203 | Dist = 280 | Lst 280
Hight = 204 | Dist = 282 | Lst 282
Hight = 205 | Dist = 284 | Lst 284
Hight = 206 | Dist = 286 | Lst 286
Hight = 207 | Dist = 288 | Lst 288
Hight = 208 | Dist = 290 | Lst 290
Hight = 209 | Dist = 292 | Lst 292
Hight = 210 | Dist = 294 | Lst 294
Hight = 211 | Dist = 296 | Lst 296
Hight = 212 | Dist = 298 | Lst 298
Hight = 213 | Dist = 300 | Lst 300
Hight = 214 | Dist = 302 | Lst 302
Hight = 215 | Dist = 305 | Lst 305
Hight = 216 | Dist = 307 | Lst 307
Hight = 217 | Dist = 309 | Lst 309
Hight = 218 | Dist = 311 | Lst 311
Hight = 219 | Dist = 313 | Lst 313
Hight = 220 | Dist = 315 | Lst 315
Hight = 221 | Dist = 317 | Lst 317
Hight = 222 | Dist = 319 | Lst 319
Hight = 223 | Dist = 321 | Lst 321
Hight = 224 | Dist = 323 | Lst 323
Hight = 225 | Dist = 325 | Lst 325
Hight = 226 | Dist = 327 | Lst 327
Hight = 227 | Dist = 329 | Lst 329
Hight = 228 | Dist = 331 | Lst 331
Hight = 229 | Dist = 333 | Lst 333
Hight = 230 | Dist = 335 | Lst 335
Hight = 231 | Dist = 337 | Lst 337
Hight = 232 | Dist = 339 | Lst 339
Hight = 233 | Dist = 341 | Lst 341
Hight = 234 | Dist = 343 | Lst 343
Hight = 235 | Dist = 345 | Lst 345
Hight = 236 | Dist = 347 | Lst 347
Hight = 237 | Dist = 349 | Lst 349
Hight = 238 | Dist = 351 | Lst 351
Hight = 239 | Dist = 353 | Lst 353
Hight = 240 | Dist = 355 | Lst 355
Hight = 241 | Dist = 357 | Lst 357
Hight = 242 | Dist = 359 | Lst 359
Hight = 243 | Dist = 361 | Lst 361
Hight = 244 | Dist = 363 | Lst 363
Hight = 245 | Dist = 365 | Lst 365
Hight = 246 | Dist = 367 | Lst 367
Hight = 247 | Dist = 369 | Lst 369
Hight = 248 | Dist = 371 | Lst 371
Hight = 249 | Dist = 373 | Lst 373
Hight = 250 | Dist = 375 | Lst 375
Hight = 251 | Dist = 377 | Lst 377
Hight = 252 | Dist = 379 | Lst 379
Hight = 253 | Dist = 381 | Lst 381
Hight = 254 | Dist = 384 | Lst 384
hight 1 is on top of bedrock in a flatmap so it is actually starting at position 2
254 is the top of the world witch is actualy 255
Lst is a rednet send test returning the distance as a double check to the in build position tracking

Here is data set with corrections
Spoiler

1 64
2 64
3 64
4 64
5 64
6 64
7 64
8 64
9 64
10 64
11 64
12 64
13 64
14 64
15 64
16 64
17 64
18 64
19 64
20 64
21 64
22 64
23 64
24 64
25 64
26 64
27 64
28 64
29 64
30 64
31 64
32 64
33 64
34 64
35 64
36 64
37 64
38 64
39 64
40 64
41 64
42 64
43 64
44 64
45 64
46 64
47 64
48 64
49 64
50 64
51 64
52 64
53 64
54 64
55 64
56 64
57 64
58 64
59 64
60 64
61 64
62 64
63 64
64 64
65 64
66 64
67 64
68 64
69 64
70 64
71 64
72 64
73 64
74 64
75 64
76 64
77 64
78 64
79 64
80 64
81 64
82 64
83 64
84 64
85 64
86 64
87 64
88 64
89 64
90 64
91 64
92 64
93 64
94 64
95 64
96 64
97 64
98 66
99 68
100 70
101 72
102 74
103 76
104 78
105 80
106 82
107 84
108 86
109 88
110 90
111 92
112 94
113 96
114 98
115 100
116 102
117 104
118 106
119 108
120 110
121 112
122 114
123 116
124 118
125 120
126 122
127 124
128 126
129 128
130 130
131 132
132 134
133 136
134 138
135 140
136 142
137 145
138 147
139 149
140 151
141 153
142 155
143 157
144 159
145 161
146 163
147 165
148 167
149 169
150 171
151 173
152 175
153 177
154 179
155 181
156 183
157 185
158 187
159 189
160 191
161 193
162 195
163 197
164 199
165 201
166 203
167 205
168 207
169 209
170 211
171 213
172 215
173 217
174 219
175 221
176 224
177 226
178 228
179 230
180 232
181 234
182 236
183 238
184 240
185 242
186 244
187 246
188 248
189 250
190 252
191 254
192 256
193 258
194 260
195 262
196 264
197 266
198 268
199 270
200 272
201 274
202 276
203 278
204 280
205 282
206 284
207 286
208 288
209 290
210 292
211 294
212 296
213 298
214 300
215 302
216 305
217 307
218 309
219 311
220 313
221 315
222 317
223 319
224 321
225 323
226 325
227 327
228 329
229 331
230 333
231 335
232 337
233 339
234 341
235 343
236 345
237 347
238 349
239 351
240 353
241 355
242 357
243 359
244 361
245 363
246 365
247 367
248 369
249 371
250 373
251 375
252 377
253 379
254 381
255 384

and here is a nice chart

looks like it is a liner function

for anyone interested this is the program i used to create this list it is not very polished but did the job
Spoiler

print("test in progress plseae do not inter fear")
print("I am "..tostring(os.getComputerID()))
rednet.open("right")
local lastCHK
local function chek()
rednet.broadcast("ping")
local sender,message,distance = rednet.receive(3)
if message == "pong" then
  lastCHK = distance
  return true
else
  return false
end
end
local logFile = "log.txt"
local function dataLog(...)
file = fs.open(logFile,"a")
file.write(...)
file.close()
end
local tArgs = {...}
local hight = 0
local distance = 1
if #tArgs > 0 then
local event,sender,message,distance
while true do
  event,sender,message,distance = os.pullEvent()
  if message == "goUp" then
   turtle.up()
   hight = hight+1
  elseif message == "ping" then
   rednet.broadcast("pong")
  end
end
else
dataLog("n")
dataLog("------ Start Loging ------n")
for i = 1,255 do
  while chek() do
   turtle.forward()
   distance = distance + 1
  end
  turtle.back()
  rednet.broadcast("goUp")
  turtle.up()
  hight = hight + 1
  distance = distance - 1
  dataLog("Hight = "..tostring(hight).." | Dist = "..tostring(distance).." | Lst "..tostring(lastCHK).."n")
end
end
Doyle3694 #2
Posted 08 October 2012 - 08:39 PM
Helpfull!
Sebra #3
Posted 09 October 2012 - 08:02 PM
Quite strange behavior: In heights 64-130 meters there is a dead zone - signal cannot reach bottom. For example turtles in the same column in heights 5 and 70 meters will not connect while turtle from 250 can connect both.

To eliminate dead zone range should not increase faster than height. Or at least always be more than height. I do not want range to be decreased at upper heights so it not a suggestion. Just a thoughts.

It seems worst height for "GPS tower" is 96 m. Turtles will not be served at richest layers. At Direwolf20's video height is bad.
sdbaynham #4
Posted 10 October 2012 - 02:54 AM
It seems like you can get full internet coverage by placing towers in a grid with segments 24 chunks long: sqrt(384^2-254^2 = 287 blocks horizontal, which works out to a radius of a bit less than 18 chunks. That means the squares have to have diagonals of about 35 chunks to get full coverage- divide that by root-2, and you get sides of 24.5 chunks.
Sebra #5
Posted 10 October 2012 - 04:19 PM
You mean 406 m between repeaters. Which is 25 chunks in a row.
BigSHinyToys #6
Posted 12 October 2012 - 01:30 AM
I hadn't noticed the dead zone. It is quite odd.
Sebra #7
Posted 17 October 2012 - 07:52 PM
In the Thunderstorm ranges are 64/16 instead of 384/64. I think heights are the same.
This means almost no GPS in Thunderstorm :D/>/>
Even for reliable link on one vertical you need too many computers.
Cruor #8
Posted 18 October 2012 - 10:43 AM
Or if you are fancy and ask devs about source code :P/>/>

minRange + (position.yCoord - 96.0) * ((maxRange - minRange) / ((world.getHeight() - 1) - 96.0));
Is the formula gived that it returns higher than minRange

Have fun :3
Ninjawolf0007 #9
Posted 24 June 2013 - 01:10 PM
Is this preventable if dan200 edits his code slightly? How(if possible) can we work around this without editing the configuration files?