User Tools

Site Tools


content:meshextender:prototyping_on_mp2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
content:meshextender:prototyping_on_mp2 [16/02/2013 22:57]
Paul Gardner-Stephen [/etc/serval/servald.conf]
content:meshextender:prototyping_on_mp2 [14/05/2013 23:18]
127.0.0.1 external edit
Line 204: Line 204:
 </file> </file>
  
-==== /etc/rc.d/S41servald ====+==== /etc/rc.d/S94servald ====
  
 Don't forget to chmod 755 this file once you have installed it Don't forget to chmod 755 this file once you have installed it
Line 218: Line 218:
   export SERVALINSTANCE_PATH=/etc/serval   export SERVALINSTANCE_PATH=/etc/serval
   mkdir -p $SERVALINSTANCE_PATH   mkdir -p $SERVALINSTANCE_PATH
-  servald start+  /serval/runservald &
 } }
  
Line 227: Line 227:
 </file> </file>
  
 +==== /serval/runservald ====
 +
 +Don't forget to chmod 755 this and the other scripts.
 +
 +<file>
 +#!/bin/sh
 +while [ 1 ]
 +do
 +/serval/servald start foreground
 +done
 +</file>
 ==== /etc/serval/servald.conf ==== ==== /etc/serval/servald.conf ====
  
Line 232: Line 243:
  
 The small max_internal_blob_size is to get around the VERY slow performance of sqlite on the USB memory on the WR703N, which could take several minutes to prepare an empty blob, before even beginning to put any data into it. The small max_internal_blob_size is to get around the VERY slow performance of sqlite on the USB memory on the WR703N, which could take several minutes to prepare an empty blob, before even beginning to put any data into it.
 +
 +The long timeout (30seconds) is so that we don't easily drop transfers, especially while the previously mentioned problems persist.
  
 <file> <file>
-rhizome.datastore_path=/serval 
-rhizome.max_internal_blob_size=16384 
-rhizome.rhizome_mdp_block_size=100 
-interfaces.1.type=catear 
-interfaces.1.file=/dev/ttyUSB0 
 interfaces.1.encapsulation=single interfaces.1.encapsulation=single
 +interfaces.1.file=/dev/ttyUSB0   
 interfaces.1.socket_type=stream interfaces.1.socket_type=stream
-interfaces.2.match=eth0+interfaces.1.type=catear        
 +interfaces.2.match=eth0 
 interfaces.2.type=ethernet interfaces.2.type=ethernet
-interfaces.3.type=wifi +interfaces.3.match=wlan0   
-interfaces.3.match=wlan0 +interfaces.3.type=wifi  
-interfaces.4.type=wifi+
 interfaces.4.match=wlan0-1 interfaces.4.match=wlan0-1
 +interfaces.4.type=wifi    
 +rhizome.datastore_path=/serval
 +rhizome.idle_timeout=30000    
 +rhizome.rhizome_mdp_block_size=100
 +rhizome.max_internal_blob_size=16384
 </file> </file>
 ==== /etc/config/dhcp ==== ==== /etc/config/dhcp ====
Line 366: Line 380:
 ====== Configuring RFD900 Radios for use ====== ====== Configuring RFD900 Radios for use ======
  
-Connect as described above and set air speed to 250kbit, and serial speed to 57600, and TX power to +24dBm with a command sequence like:+Connect as described above and set air speed to 128kbit, and serial speed to 57600, and TX power to +24dBm with a command sequence like:
  
 <file> <file>
 ATS1=57 ATS1=57
-ATS2=250+ATS2=128
 ATS4=24 ATS4=24
 ATI5 ATI5
Line 376: Line 390:
 </file> </file>
  
-(We could use 115200, but that would require a recompile of servald, which currently assumes radios at 57600, and the gain would be small, because 250k/2=115kbit total bandwidth, shared among both ends gives 57600 for each end.)+We could use 115200 for the serial speed, but that would require a recompile of servald, which currently assumes radios at 57600, and the gain would be small, because 128k/2=64kbit total bandwidth, shared among both ends gives 32000 for each end, and so it is unlikely that the bandwidth will be depleted. 
 + 
 +128kbit is the fastest effective radio speed until we get some better forward error correction.  250kbit should work, but proved to be quite unreliable, with desynchronisation and high levels of packet loss.
content/meshextender/prototyping_on_mp2.txt · Last modified: 14/07/2015 01:01 by Nathan Fowler