When make measurements on an ad-hoc network connecting two
wireless machines. Both machines booted in Linux can switch to ad-hos mode
even when access points are available.
Laptops:
Wireless cards:
PCI adaptor to measure V,I:
Oscilliscope:
The measurements are made from UDP traffic between the two laptops.
One device is connected to the adaptor from which the voltage and current
consumption of the wireless-card is measured.
Experimental code. We should work on automating the power calculation
as much as possible in the program that communicates with the oscilloscope.
For example, the program can select the part of waveform where packets
are sent or received. Those points will be distinguishable from the ideal
times when the current is above a threshold (around 180 mA for receive
and 280 mA for send).
Code
-
udp -- Send and receive packets
-
DSATalk -- Program communicates through network with
oscilloscope.
-
power_format -- Format DSATalks into
format read into Excel.
-
e_power -- Excel spreadsheets that loads
and plots the formatted files in a batch process. Some parts are hardcoded.