firebug-cvs Mailing List for FireBug: wireless wildfire monitoring (Page 21)
Brought to you by:
doolin
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(36) |
Jun
(45) |
Jul
(108) |
Aug
(31) |
Sep
(2) |
Oct
(4) |
Nov
(113) |
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(63) |
Feb
(37) |
Mar
(24) |
Apr
(6) |
May
(5) |
Jun
(5) |
Jul
(71) |
Aug
(42) |
Sep
(7) |
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(64) |
Jun
(71) |
Jul
(51) |
Aug
(89) |
Sep
(24) |
Oct
(1) |
Nov
(1) |
Dec
(2) |
2006 |
Jan
|
Feb
|
Mar
(3) |
Apr
(2) |
May
|
Jun
|
Jul
(21) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: <do...@us...> - 2004-02-18 15:40:52
|
Update of /cvsroot/firebug/firebug/project/java/src/org/firebug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29797/src/org/firebug Added Files: GGAMsg.java Log Message: Cleaning gps handling code. --- NEW FILE: GGAMsg.java --- /** * This class is automatically generated by mig. DO NOT EDIT THIS FILE. * This class implements a Java interface to the 'GGAMsg' * message type. */ package org.firebug; public class GGAMsg extends net.tinyos.message.Message { /** The default size of this message type in bytes. */ public static final int DEFAULT_MESSAGE_SIZE = 18; /** The Active Message type associated with this message. */ public static final int AM_TYPE = 129; /** Create a new GGAMsg of size 18. */ public GGAMsg() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new GGAMsg of the given data_length. */ public GGAMsg(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new GGAMsg with the given data_length * and base offset. */ public GGAMsg(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new GGAMsg using the given byte array * as backing store. */ public GGAMsg(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new GGAMsg using the given byte array * as backing store, with the given base offset. */ public GGAMsg(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new GGAMsg using the given byte array * as backing store, with the given base offset and data length. */ public GGAMsg(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new GGAMsg embedded in the given message * at the given base offset. */ public GGAMsg(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new GGAMsg embedded in the given message * at the given base offset and length. */ public GGAMsg(net.tinyos.message.Message msg, int base_offset, int data_length) { super(msg, base_offset, data_length); amTypeSet(AM_TYPE); } /** /* Return a String representation of this message. Includes the * message type name and the non-indexed field values. */ public String toString() { String s = "Message <GGAMsg> \n"; try { s += " [hours=0x"+Long.toHexString(get_hours())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [minutes=0x"+Long.toHexString(get_minutes())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [dec_sec="+Float.toString(get_dec_sec())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [Lat_deg=0x"+Long.toHexString(get_Lat_deg())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [Lat_dec_min="+Float.toString(get_Lat_dec_min())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [Long_deg=0x"+Long.toHexString(get_Long_deg())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [Long_dec_min="+Float.toString(get_Long_dec_min())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [NSEWind=0x"+Long.toHexString(get_NSEWind())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [num_sats=0x"+Long.toHexString(get_num_sats())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } return s; } // Message-type-specific access methods appear below. ///////////////////////////////////////////////////////// // Accessor methods for field: hours // Field type: short, unsigned // Offset (bits): 0 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'hours' is signed (false). */ public static boolean isSigned_hours() { return false; } /** * Return whether the field 'hours' is an array (false). */ public static boolean isArray_hours() { return false; } /** * Return the offset (in bytes) of the field 'hours' */ public static int offset_hours() { return (0 / 8); } /** * Return the offset (in bits) of the field 'hours' */ public static int offsetBits_hours() { return 0; } /** * Return the value (as a short) of the field 'hours' */ public short get_hours() { return (short)getUIntElement(offsetBits_hours(), 8); } /** * Set the value of the field 'hours' */ public void set_hours(short value) { setUIntElement(offsetBits_hours(), 8, value); } /** * Return the size, in bytes, of the field 'hours' */ public static int size_hours() { return (8 / 8); } /** * Return the size, in bits, of the field 'hours' */ public static int sizeBits_hours() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: minutes // Field type: short, unsigned // Offset (bits): 8 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'minutes' is signed (false). */ public static boolean isSigned_minutes() { return false; } /** * Return whether the field 'minutes' is an array (false). */ public static boolean isArray_minutes() { return false; } /** * Return the offset (in bytes) of the field 'minutes' */ public static int offset_minutes() { return (8 / 8); } /** * Return the offset (in bits) of the field 'minutes' */ public static int offsetBits_minutes() { return 8; } /** * Return the value (as a short) of the field 'minutes' */ public short get_minutes() { return (short)getUIntElement(offsetBits_minutes(), 8); } /** * Set the value of the field 'minutes' */ public void set_minutes(short value) { setUIntElement(offsetBits_minutes(), 8, value); } /** * Return the size, in bytes, of the field 'minutes' */ public static int size_minutes() { return (8 / 8); } /** * Return the size, in bits, of the field 'minutes' */ public static int sizeBits_minutes() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: dec_sec // Field type: float, unsigned // Offset (bits): 16 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'dec_sec' is signed (false). */ public static boolean isSigned_dec_sec() { return false; } /** * Return whether the field 'dec_sec' is an array (false). */ public static boolean isArray_dec_sec() { return false; } /** * Return the offset (in bytes) of the field 'dec_sec' */ public static int offset_dec_sec() { return (16 / 8); } /** * Return the offset (in bits) of the field 'dec_sec' */ public static int offsetBits_dec_sec() { return 16; } /** * Return the value (as a float) of the field 'dec_sec' */ public float get_dec_sec() { return (float)getFloatElement(offsetBits_dec_sec(), 32); } /** * Set the value of the field 'dec_sec' */ public void set_dec_sec(float value) { setFloatElement(offsetBits_dec_sec(), 32, value); } /** * Return the size, in bytes, of the field 'dec_sec' */ public static int size_dec_sec() { return (32 / 8); } /** * Return the size, in bits, of the field 'dec_sec' */ public static int sizeBits_dec_sec() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: Lat_deg // Field type: short, unsigned // Offset (bits): 48 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'Lat_deg' is signed (false). */ public static boolean isSigned_Lat_deg() { return false; } /** * Return whether the field 'Lat_deg' is an array (false). */ public static boolean isArray_Lat_deg() { return false; } /** * Return the offset (in bytes) of the field 'Lat_deg' */ public static int offset_Lat_deg() { return (48 / 8); } /** * Return the offset (in bits) of the field 'Lat_deg' */ public static int offsetBits_Lat_deg() { return 48; } /** * Return the value (as a short) of the field 'Lat_deg' */ public short get_Lat_deg() { return (short)getUIntElement(offsetBits_Lat_deg(), 8); } /** * Set the value of the field 'Lat_deg' */ public void set_Lat_deg(short value) { setUIntElement(offsetBits_Lat_deg(), 8, value); } /** * Return the size, in bytes, of the field 'Lat_deg' */ public static int size_Lat_deg() { return (8 / 8); } /** * Return the size, in bits, of the field 'Lat_deg' */ public static int sizeBits_Lat_deg() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: Lat_dec_min // Field type: float, unsigned // Offset (bits): 56 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'Lat_dec_min' is signed (false). */ public static boolean isSigned_Lat_dec_min() { return false; } /** * Return whether the field 'Lat_dec_min' is an array (false). */ public static boolean isArray_Lat_dec_min() { return false; } /** * Return the offset (in bytes) of the field 'Lat_dec_min' */ public static int offset_Lat_dec_min() { return (56 / 8); } /** * Return the offset (in bits) of the field 'Lat_dec_min' */ public static int offsetBits_Lat_dec_min() { return 56; } /** * Return the value (as a float) of the field 'Lat_dec_min' */ public float get_Lat_dec_min() { return (float)getFloatElement(offsetBits_Lat_dec_min(), 32); } /** * Set the value of the field 'Lat_dec_min' */ public void set_Lat_dec_min(float value) { setFloatElement(offsetBits_Lat_dec_min(), 32, value); } /** * Return the size, in bytes, of the field 'Lat_dec_min' */ public static int size_Lat_dec_min() { return (32 / 8); } /** * Return the size, in bits, of the field 'Lat_dec_min' */ public static int sizeBits_Lat_dec_min() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: Long_deg // Field type: short, unsigned // Offset (bits): 88 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'Long_deg' is signed (false). */ public static boolean isSigned_Long_deg() { return false; } /** * Return whether the field 'Long_deg' is an array (false). */ public static boolean isArray_Long_deg() { return false; } /** * Return the offset (in bytes) of the field 'Long_deg' */ public static int offset_Long_deg() { return (88 / 8); } /** * Return the offset (in bits) of the field 'Long_deg' */ public static int offsetBits_Long_deg() { return 88; } /** * Return the value (as a short) of the field 'Long_deg' */ public short get_Long_deg() { return (short)getUIntElement(offsetBits_Long_deg(), 8); } /** * Set the value of the field 'Long_deg' */ public void set_Long_deg(short value) { setUIntElement(offsetBits_Long_deg(), 8, value); } /** * Return the size, in bytes, of the field 'Long_deg' */ public static int size_Long_deg() { return (8 / 8); } /** * Return the size, in bits, of the field 'Long_deg' */ public static int sizeBits_Long_deg() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: Long_dec_min // Field type: float, unsigned // Offset (bits): 96 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'Long_dec_min' is signed (false). */ public static boolean isSigned_Long_dec_min() { return false; } /** * Return whether the field 'Long_dec_min' is an array (false). */ public static boolean isArray_Long_dec_min() { return false; } /** * Return the offset (in bytes) of the field 'Long_dec_min' */ public static int offset_Long_dec_min() { return (96 / 8); } /** * Return the offset (in bits) of the field 'Long_dec_min' */ public static int offsetBits_Long_dec_min() { return 96; } /** * Return the value (as a float) of the field 'Long_dec_min' */ public float get_Long_dec_min() { return (float)getFloatElement(offsetBits_Long_dec_min(), 32); } /** * Set the value of the field 'Long_dec_min' */ public void set_Long_dec_min(float value) { setFloatElement(offsetBits_Long_dec_min(), 32, value); } /** * Return the size, in bytes, of the field 'Long_dec_min' */ public static int size_Long_dec_min() { return (32 / 8); } /** * Return the size, in bits, of the field 'Long_dec_min' */ public static int sizeBits_Long_dec_min() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: NSEWind // Field type: short, unsigned // Offset (bits): 128 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'NSEWind' is signed (false). */ public static boolean isSigned_NSEWind() { return false; } /** * Return whether the field 'NSEWind' is an array (false). */ public static boolean isArray_NSEWind() { return false; } /** * Return the offset (in bytes) of the field 'NSEWind' */ public static int offset_NSEWind() { return (128 / 8); } /** * Return the offset (in bits) of the field 'NSEWind' */ public static int offsetBits_NSEWind() { return 128; } /** * Return the value (as a short) of the field 'NSEWind' */ public short get_NSEWind() { return (short)getUIntElement(offsetBits_NSEWind(), 8); } /** * Set the value of the field 'NSEWind' */ public void set_NSEWind(short value) { setUIntElement(offsetBits_NSEWind(), 8, value); } /** * Return the size, in bytes, of the field 'NSEWind' */ public static int size_NSEWind() { return (8 / 8); } /** * Return the size, in bits, of the field 'NSEWind' */ public static int sizeBits_NSEWind() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: num_sats // Field type: short, unsigned // Offset (bits): 136 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'num_sats' is signed (false). */ public static boolean isSigned_num_sats() { return false; } /** * Return whether the field 'num_sats' is an array (false). */ public static boolean isArray_num_sats() { return false; } /** * Return the offset (in bytes) of the field 'num_sats' */ public static int offset_num_sats() { return (136 / 8); } /** * Return the offset (in bits) of the field 'num_sats' */ public static int offsetBits_num_sats() { return 136; } /** * Return the value (as a short) of the field 'num_sats' */ public short get_num_sats() { return (short)getUIntElement(offsetBits_num_sats(), 8); } /** * Set the value of the field 'num_sats' */ public void set_num_sats(short value) { setUIntElement(offsetBits_num_sats(), 8, value); } /** * Return the size, in bytes, of the field 'num_sats' */ public static int size_num_sats() { return (8 / 8); } /** * Return the size, in bits, of the field 'num_sats' */ public static int sizeBits_num_sats() { return 8; } } |
From: <do...@us...> - 2004-02-18 01:27:46
|
Update of /cvsroot/firebug/firebug/project/java/src/org/firebug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10187/src/org/firebug Added Files: FireMsg.java Log Message: Updated firebug java tools to work with new stuff. --- NEW FILE: FireMsg.java --- /** * This class is automatically generated by mig. DO NOT EDIT THIS FILE. * This class implements a Java interface to the 'FireMsg' * message type. */ package org.firebug; public class FireMsg extends net.tinyos.message.Message { /** The default size of this message type in bytes. */ public static final int DEFAULT_MESSAGE_SIZE = 20; /** The Active Message type associated with this message. */ public static final int AM_TYPE = 128; /** Create a new FireMsg of size 20. */ public FireMsg() { super(DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** Create a new FireMsg of the given data_length. */ public FireMsg(int data_length) { super(data_length); amTypeSet(AM_TYPE); } /** * Create a new FireMsg with the given data_length * and base offset. */ public FireMsg(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); } /** * Create a new FireMsg using the given byte array * as backing store. */ public FireMsg(byte[] data) { super(data); amTypeSet(AM_TYPE); } /** * Create a new FireMsg using the given byte array * as backing store, with the given base offset. */ public FireMsg(byte[] data, int base_offset) { super(data, base_offset); amTypeSet(AM_TYPE); } /** * Create a new FireMsg using the given byte array * as backing store, with the given base offset and data length. */ public FireMsg(byte[] data, int base_offset, int data_length) { super(data, base_offset, data_length); amTypeSet(AM_TYPE); } /** * Create a new FireMsg embedded in the given message * at the given base offset. */ public FireMsg(net.tinyos.message.Message msg, int base_offset) { super(msg, base_offset, DEFAULT_MESSAGE_SIZE); amTypeSet(AM_TYPE); } /** * Create a new FireMsg embedded in the given message * at the given base offset and length. */ public FireMsg(net.tinyos.message.Message msg, int base_offset, int data_length) { super(msg, base_offset, data_length); amTypeSet(AM_TYPE); } /** /* Return a String representation of this message. Includes the * message type name and the non-indexed field values. */ public String toString() { String s = "Message <FireMsg> \n"; try { s += " [addr=0x"+Long.toHexString(get_addr())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [cnt=0x"+Long.toHexString(get_cnt())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [temp="+Float.toString(get_temp())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [rel_hum="+Float.toString(get_rel_hum())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [baro_pres="+Float.toString(get_baro_pres())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } try { s += " [lux="+Float.toString(get_lux())+"]\n"; } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ } return s; } // Message-type-specific access methods appear below. ///////////////////////////////////////////////////////// // Accessor methods for field: addr // Field type: int // Offset (bits): 0 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'addr' is signed (true). */ public static boolean isSigned_addr() { return true; } /** * Return whether the field 'addr' is an array (false). */ public static boolean isArray_addr() { return false; } /** * Return the offset (in bytes) of the field 'addr' */ public static int offset_addr() { return (0 / 8); } /** * Return the offset (in bits) of the field 'addr' */ public static int offsetBits_addr() { return 0; } /** * Return the value (as a int) of the field 'addr' */ public int get_addr() { return (int)getUIntElement(offsetBits_addr(), 16); } /** * Set the value of the field 'addr' */ public void set_addr(int value) { setUIntElement(offsetBits_addr(), 16, value); } /** * Return the size, in bytes, of the field 'addr' */ public static int size_addr() { return (16 / 8); } /** * Return the size, in bits, of the field 'addr' */ public static int sizeBits_addr() { return 16; } ///////////////////////////////////////////////////////// // Accessor methods for field: cnt // Field type: int // Offset (bits): 16 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'cnt' is signed (true). */ public static boolean isSigned_cnt() { return true; } /** * Return whether the field 'cnt' is an array (false). */ public static boolean isArray_cnt() { return false; } /** * Return the offset (in bytes) of the field 'cnt' */ public static int offset_cnt() { return (16 / 8); } /** * Return the offset (in bits) of the field 'cnt' */ public static int offsetBits_cnt() { return 16; } /** * Return the value (as a int) of the field 'cnt' */ public int get_cnt() { return (int)getUIntElement(offsetBits_cnt(), 16); } /** * Set the value of the field 'cnt' */ public void set_cnt(int value) { setUIntElement(offsetBits_cnt(), 16, value); } /** * Return the size, in bytes, of the field 'cnt' */ public static int size_cnt() { return (16 / 8); } /** * Return the size, in bits, of the field 'cnt' */ public static int sizeBits_cnt() { return 16; } ///////////////////////////////////////////////////////// // Accessor methods for field: temp // Field type: float // Offset (bits): 32 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'temp' is signed (true). */ public static boolean isSigned_temp() { return true; } /** * Return whether the field 'temp' is an array (false). */ public static boolean isArray_temp() { return false; } /** * Return the offset (in bytes) of the field 'temp' */ public static int offset_temp() { return (32 / 8); } /** * Return the offset (in bits) of the field 'temp' */ public static int offsetBits_temp() { return 32; } /** * Return the value (as a float) of the field 'temp' */ public float get_temp() { return (float)getFloatElement(offsetBits_temp(), 32); } /** * Set the value of the field 'temp' */ public void set_temp(float value) { setFloatElement(offsetBits_temp(), 32, value); } /** * Return the size, in bytes, of the field 'temp' */ public static int size_temp() { return (32 / 8); } /** * Return the size, in bits, of the field 'temp' */ public static int sizeBits_temp() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: rel_hum // Field type: float // Offset (bits): 64 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'rel_hum' is signed (true). */ public static boolean isSigned_rel_hum() { return true; } /** * Return whether the field 'rel_hum' is an array (false). */ public static boolean isArray_rel_hum() { return false; } /** * Return the offset (in bytes) of the field 'rel_hum' */ public static int offset_rel_hum() { return (64 / 8); } /** * Return the offset (in bits) of the field 'rel_hum' */ public static int offsetBits_rel_hum() { return 64; } /** * Return the value (as a float) of the field 'rel_hum' */ public float get_rel_hum() { return (float)getFloatElement(offsetBits_rel_hum(), 32); } /** * Set the value of the field 'rel_hum' */ public void set_rel_hum(float value) { setFloatElement(offsetBits_rel_hum(), 32, value); } /** * Return the size, in bytes, of the field 'rel_hum' */ public static int size_rel_hum() { return (32 / 8); } /** * Return the size, in bits, of the field 'rel_hum' */ public static int sizeBits_rel_hum() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: baro_pres // Field type: float // Offset (bits): 96 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'baro_pres' is signed (true). */ public static boolean isSigned_baro_pres() { return true; } /** * Return whether the field 'baro_pres' is an array (false). */ public static boolean isArray_baro_pres() { return false; } /** * Return the offset (in bytes) of the field 'baro_pres' */ public static int offset_baro_pres() { return (96 / 8); } /** * Return the offset (in bits) of the field 'baro_pres' */ public static int offsetBits_baro_pres() { return 96; } /** * Return the value (as a float) of the field 'baro_pres' */ public float get_baro_pres() { return (float)getFloatElement(offsetBits_baro_pres(), 32); } /** * Set the value of the field 'baro_pres' */ public void set_baro_pres(float value) { setFloatElement(offsetBits_baro_pres(), 32, value); } /** * Return the size, in bytes, of the field 'baro_pres' */ public static int size_baro_pres() { return (32 / 8); } /** * Return the size, in bits, of the field 'baro_pres' */ public static int sizeBits_baro_pres() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: lux // Field type: float // Offset (bits): 128 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'lux' is signed (true). */ public static boolean isSigned_lux() { return true; } /** * Return whether the field 'lux' is an array (false). */ public static boolean isArray_lux() { return false; } /** * Return the offset (in bytes) of the field 'lux' */ public static int offset_lux() { return (128 / 8); } /** * Return the offset (in bits) of the field 'lux' */ public static int offsetBits_lux() { return 128; } /** * Return the value (as a float) of the field 'lux' */ public float get_lux() { return (float)getFloatElement(offsetBits_lux(), 32); } /** * Set the value of the field 'lux' */ public void set_lux(float value) { setFloatElement(offsetBits_lux(), 32, value); } /** * Return the size, in bytes, of the field 'lux' */ public static int size_lux() { return (32 / 8); } /** * Return the size, in bits, of the field 'lux' */ public static int sizeBits_lux() { return 32; } } |
From: <do...@us...> - 2004-02-18 01:27:45
|
Update of /cvsroot/firebug/firebug/project/java In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10187 Added Files: firelogtest.sh Log Message: Updated firebug java tools to work with new stuff. --- NEW FILE: firelogtest.sh --- #!/usr/bin/sh if [ $HOSTNAME = MAX ]; then export MSGPATH=C:\\tinyos\\cygwin\\opt\\tinyos-1.x\\tools\\java elif [ $HOSTNAME = firemobile ]; then echo $HOSTNAME export MSGPATH=C:\\cygwin\\opt\\tinyos-1.x\\tools\\java else echo Set MSGPATH to point to tinyos-1.x/tools/java fi java -cp ".\\dist\\firebug.jar;c:\\jdk1.3.1_01\\lib\\comm.jar;.\\jar\\mm.mysql-2.0.4-bin.jar;$MSGPATH" \ org.firebug.FireLogger |
From: <do...@us...> - 2004-02-18 01:26:23
|
Update of /cvsroot/firebug/firebug/project/java/src/org/firebug/database In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9898/src/org/firebug/database Modified Files: MysqlDBHandler.java Log Message: Updated firebug java tools to work with new stuff. Index: MysqlDBHandler.java =================================================================== RCS file: /cvsroot/firebug/firebug/project/java/src/org/firebug/database/MysqlDBHandler.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** MysqlDBHandler.java 3 Jan 2004 13:38:52 -0000 1.9 --- MysqlDBHandler.java 18 Feb 2004 01:17:07 -0000 1.10 *************** *** 105,111 **** private void initializeCQueue(int num_cons) { ! if (debug) System.out.println("Initializing connection queue: "); ! try { --- 105,111 ---- private void initializeCQueue(int num_cons) { ! if (debug) { System.out.println("Initializing connection queue: "); ! } try { *************** *** 245,251 **** e.printStackTrace(); } ! //catch (ConnectException e) { ! // e.printStackTrace(); ! //} return connection; --- 245,251 ---- e.printStackTrace(); } ! catch (Exception e) { ! e.printStackTrace(); ! } return connection; |
From: <do...@us...> - 2004-02-18 01:26:22
|
Update of /cvsroot/firebug/firebug/project/java/src/org/firebug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9898/src/org/firebug Modified Files: DBLogger.java ListenFB.java RawPacket.java Added Files: FireLogger.java Log Message: Updated firebug java tools to work with new stuff. --- NEW FILE: FireLogger.java --- package org.firebug; import org.firebug.database.MysqlDBHandler; import java.io.*; import java.sql.*; import java.util.Random; import net.tinyos.message.*; public class FireLogger implements ListenFB.PacketPrinter { private MysqlDBHandler dbh; // Move this into some test code later. private Random rand = new Random(); public FireLogger (String dbname) { dbh = new MysqlDBHandler("localhost","3306","root","",dbname,true); } public void print(InputStream in) { } private int get_packet_type(byte [] packet) { return (int)packet[2]; } public void print_packet_raw(byte [] packet) { for (int i = 0; i < packet.length; i++) { String val = Integer.toHexString((int)packet[i]); if (val.length() == 1) { val = "0" + val; } System.out.print(val + " "); } System.out.println("\n"); } /** Put everything in print for now. */ public void print(byte [] packet) { // Given a packet, we need to get a TOS // message. System.out.println("FireLogger.print(byte [] packet)\n"); FireMsg fmsg = new FireMsg(packet,5); Connection conn = dbh.getConnection(); // Ugh what a kludge. The GPS date/time format // is not compatible with java. The date/time // should probably be stored as a string in the // database, then converted whenever it needs to // be displayed. int time = (int)System.currentTimeMillis(); int mote_id = fmsg.get_addr(); int cnt = fmsg.get_cnt(); float temp = fmsg.get_temp(); float rel_hum = fmsg.get_rel_hum(); float baro_pres = fmsg.get_baro_pres(); System.out.println("mote_id: " + mote_id); System.out.println("cnt: " + cnt); System.out.println("temp: " + temp); /* if (get_packet_type(packet) != 1){ dbh.return_connection(conn); return; } */ print_packet_raw(packet); // This needs to throw an exception. /* if ( get_packet_type(packet) == 1 && packet[7] == -1) { dbh.return_connection(conn); return; } */ //base station ID is 1; if (mote_id == 1) { dbh.return_connection(conn); return; } /** FIXME: Ugly flow control using exception logic to * to track down a bbad statement, needs to be cleaned up. */ try { ResultSet rs; Statement stmt = conn.createStatement(); String updatequery = "UPDATE current " + "SET " //+ "time=" + time + ", " + "cnt=" + cnt + "," + "rel_hum=" + rel_hum + ", " + "baro_pres=" + baro_pres + ", " + "temp=" + temp + " WHERE mote_id=" + mote_id; String insertquery = "INSERT INTO cumulative VALUES (" + mote_id + ", " + "NULL," // NULL lets timestamp do its thing. //time + ", " + temp + ", " + rel_hum + ", " + baro_pres + ", " + cnt + ")"; try { rs = stmt.executeQuery(insertquery); } catch (SQLException sqle) { System.out.println("Problem with insert statement: " + insertquery); sqle.printStackTrace(); } try { rs = stmt.executeQuery(updatequery); } catch (SQLException sqle) { System.out.println("Problem with update statement: " + updatequery); sqle.printStackTrace(); } stmt.close(); } catch (SQLException sqle) { System.out.println("Problem with statement"); sqle.printStackTrace(); } dbh.return_connection(conn); /* FIXME: Need to be able to return a url as well as a * description. */ //return result; } private static void test() { String database_name = "test"; FireLogger fl = new FireLogger(database_name); while (true) { TestFireLogger.test(fl); try { Thread.sleep(3000); } catch (Exception e) { System.out.println(e); } } // Unreachable /* if (TestDBLogger.test(dbl)) { System.out.println("Passed DBLogger test"); } else { System.out.println("Failed DBLogger test"); } */ } public static void main(String [] args) { test(); } } /** The TestDBLogger class exists only to construct * example packets to be fed into the DBLogger class. */ class TestFireLogger { /** "test" is the _only_public_method_ in this * class. */ public static boolean test(FireLogger fl) { byte mote_id = (byte)0xff; FireMsg fmsg = new FireMsg(); fmsg.set_addr(getRandomID(1)); fmsg.set_cnt(15); fmsg.set_temp(getRandomTemp((float)27.0)); fmsg.set_rel_hum(getRandomRelHum((float)55.0)); fmsg.set_baro_pres(getRandomBaroPres((float)1000)); fmsg.set_lux(14); fl.print(fmsg.dataGet()); //fl.print_packet_raw(fmsg.dataGet()); return false; } /** All of the following methods are private * for a reason: they are only to be used in this * class. */ private static int getRandomID(int baseID) { int id = baseID + Math.abs(rand.nextInt())%5; return id; } private static float getRandomTemp(float basetemp) { float temp = (float)(basetemp + (3*rand.nextGaussian())); return temp; } private static float getRandomRelHum(float baserelhum) { float relhum = (float)(baserelhum + (3*rand.nextGaussian())); return relhum; } private static float getRandomBaroPres(float basebaropres) { float baropres = (float)(basebaropres + (3*rand.nextGaussian())); return baropres; } private static Random rand = new Random(); } Index: DBLogger.java =================================================================== RCS file: /cvsroot/firebug/firebug/project/java/src/org/firebug/DBLogger.java,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** DBLogger.java 22 Nov 2003 02:15:56 -0000 1.24 --- DBLogger.java 18 Feb 2004 01:17:07 -0000 1.25 *************** *** 42,50 **** } ! private void print_packet_raw(byte [] packet) { ! ! //int size = packet.size; ! for (int i = 0; i < 15; i++) { System.out.print(packet[i] + " "); } --- 42,48 ---- } ! public void print_packet_raw(byte [] packet) { ! for (int i = 0; i < packet.length; i++) { System.out.print(packet[i] + " "); } *************** *** 59,64 **** // Given a packet, we need to get a TOS // message. ! System.out.println("dblogger.print\n"); ! SensorMsg msg = new SensorMsg(packet,5,19); --- 57,70 ---- // Given a packet, we need to get a TOS // message. ! System.out.println("dblogger.print(byte [] packet)\n"); ! ! ! // The following line gets an ArrayOutOfBounds exception: ! //SensorMsg msg = new SensorMsg(packet,5,19); ! ! SensorMsg msg = new SensorMsg(); ! //SensorMsg msg = new SensorMsg(packet,5,12); ! ! FireMsg fmsg = new FireMsg(); *************** *** 190,195 **** private static void test() { ! DBLogger dbl = new DBLogger("test"); while (true) { --- 196,203 ---- private static void test() { + + String database_name = "test"; ! DBLogger dbl = new DBLogger(database_name); while (true) { *************** *** 232,240 **** byte mote_id = (byte)0xff; byte [] packet = {0x7e, //header 0x0, //header 0x0a, //packet type ! 0x7d, //header ! 0x1a, //header 0x01, //routing 0x01, //routing --- 240,265 ---- byte mote_id = (byte)0xff; + FireMsg fmsg = new FireMsg(); + + /* + uint16_t addr; + uint16_t cnt; + float temp; + float rel_hum; + float baro_pres; + */ + + fmsg.set_addr(1); + fmsg.set_cnt(15); + fmsg.set_temp(11); + fmsg.set_rel_hum(12); + fmsg.set_baro_pres(13); + fmsg.set_lux(14); + byte [] packet = {0x7e, //header 0x0, //header 0x0a, //packet type ! 0x7d, //group id ! 0x1a, //payload length 0x01, //routing 0x01, //routing *************** *** 251,254 **** --- 276,281 ---- dbl.print(packet); + dbl.print_packet_raw(fmsg.dataGet()); + return false; } Index: ListenFB.java =================================================================== RCS file: /cvsroot/firebug/firebug/project/java/src/org/firebug/ListenFB.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** ListenFB.java 3 Jan 2004 13:38:51 -0000 1.15 --- ListenFB.java 18 Feb 2004 01:17:07 -0000 1.16 *************** *** 266,273 **** ListenFB reader = new ListenFB(port); //SensorPacket print = new SensorPacket(); ! DBLogger dblogger = new DBLogger(dbname); //printers.add(print); ! printers.add(dblogger); try { --- 266,276 ---- ListenFB reader = new ListenFB(port); //SensorPacket print = new SensorPacket(); ! //DBLogger dblogger = new DBLogger(dbname); ! RawPacket rawpacket = new RawPacket(); ! FireLogger firelogger = new FireLogger(dbname); //printers.add(print); ! //printers.add(dblogger); ! printers.add(firelogger); try { Index: RawPacket.java =================================================================== RCS file: /cvsroot/firebug/firebug/project/java/src/org/firebug/RawPacket.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RawPacket.java 14 May 2003 01:25:12 -0000 1.2 --- RawPacket.java 18 Feb 2004 01:17:07 -0000 1.3 *************** *** 48,51 **** --- 48,58 ---- public void print(byte [] packet) { + + for (int i = 0; i < packet.length; i++) { + + System.out.print(Integer.toHexString((int)packet[i]) + " "); + } + System.out.println("\n"); + } |
From: <do...@us...> - 2004-02-18 01:26:22
|
Update of /cvsroot/firebug/firebug/project/java In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9898 Modified Files: dblogtest.sh mhrun.sh Log Message: Updated firebug java tools to work with new stuff. Index: dblogtest.sh =================================================================== RCS file: /cvsroot/firebug/firebug/project/java/dblogtest.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** dblogtest.sh 9 May 2003 00:29:50 -0000 1.1 --- dblogtest.sh 18 Feb 2004 01:17:06 -0000 1.2 *************** *** 2,5 **** ! java -cp ".\\dist\\firebug.jar;c:\\jdk1.3.1_01\\lib\\comm.jar;.\\jar\\mm.mysql-2.0.4-bin.jar" \ org.firebug.DBLogger --- 2,15 ---- ! if [ $HOSTNAME = MAX ]; then ! export MSGPATH=C:\\tinyos\\cygwin\\opt\\tinyos-1.x\\tools\\java ! elif [ $HOSTNAME = firemobile ]; then ! echo $HOSTNAME ! export MSGPATH=C:\\cygwin\\opt\\tinyos-1.x\\tools\\java ! else ! echo Set MSGPATH to point to tinyos-1.x/tools/java ! fi ! ! ! java -cp ".\\dist\\firebug.jar;c:\\jdk1.3.1_01\\lib\\comm.jar;.\\jar\\mm.mysql-2.0.4-bin.jar;$MSGPATH" \ org.firebug.DBLogger Index: mhrun.sh =================================================================== RCS file: /cvsroot/firebug/firebug/project/java/mhrun.sh,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** mhrun.sh 3 Jan 2004 13:38:51 -0000 1.8 --- mhrun.sh 18 Feb 2004 01:17:06 -0000 1.9 *************** *** 32,35 **** --- 32,36 ---- fi + echo ".\\dist\\firebug.jar;$COMMJAR;$MYSQLJAR;$MSGPATH" java -cp ".\\dist\\firebug.jar;$COMMJAR;$MYSQLJAR;$MSGPATH" \ |
From: <do...@us...> - 2004-02-17 19:19:33
|
Update of /cvsroot/firebug/firebug/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26707 Modified Files: fbmsg.html Log Message: . Index: fbmsg.html =================================================================== RCS file: /cvsroot/firebug/firebug/web/fbmsg.html,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** fbmsg.html 16 Feb 2004 02:09:57 -0000 1.6 --- fbmsg.html 17 Feb 2004 19:10:30 -0000 1.7 *************** *** 58,63 **** <tr class="msg_header"> ! <td colspan="4" rowspan="2"><b>TOS HEADER</b></td> ! <td colspan="8"><b>PAYLOAD</b></td> </tr> --- 58,63 ---- <tr class="msg_header"> ! <td colspan="4" rowspan="2"><b>AM HEADER</b></td> ! <td colspan="8"><b>AM PAYLOAD</b></td> </tr> *************** *** 67,74 **** --> <td colspan="2"><b>ROUTING HEADER</b></td> ! <td colspan="6"><b>FIREBUG DATA</b></td> </tr> ! <tr bgcolor="#D0D0D0"> <td><b>Destination Address</b></td> <td><b>Handler ID</b></td> --- 67,74 ---- --> <td colspan="2"><b>ROUTING HEADER</b></td> ! <td colspan="6"><b>ROUTING PAYLOAD/FIREBUG DATA</b></td> </tr> ! <tr align="center" bgcolor="#D0D0D0"> <td><b>Destination Address</b></td> <td><b>Handler ID</b></td> *************** *** 81,85 **** </tr> ! <tr> <td bgcolor="#D0D0FF" rowspan="2">0x7E 0x00</td> <td bgcolor="#D0D0FF" rowspan="2">0x0A</td> --- 81,85 ---- </tr> ! <tr align="center"> <td bgcolor="#D0D0FF" rowspan="2">0x7E 0x00</td> <td bgcolor="#D0D0FF" rowspan="2">0x0A</td> |
From: <do...@us...> - 2004-02-16 02:17:41
|
Update of /cvsroot/firebug/firebug/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17403 Modified Files: fbmsg.html Log Message: Added a bit more information to the fbmsg page. Index: fbmsg.html =================================================================== RCS file: /cvsroot/firebug/firebug/web/fbmsg.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fbmsg.html 16 Feb 2004 02:03:16 -0000 1.5 --- fbmsg.html 16 Feb 2004 02:09:57 -0000 1.6 *************** *** 38,43 **** </ul> <p> ! So we can interpret the data packet as follows: </p> --- 38,56 ---- </ul> + <p> + Here is the payload struct definition for the fire data: + <pre class="code"> + typedef struct _firedata { + uint16_t addr; + uint16_t cnt; + float temp; + float rel_hum; + float baro_pres; + float lux; + } Firedata_msg;</pre> + </p> + <p> ! The data packet is laid out as follows: </p> *************** *** 53,57 **** <td colspan="4"><b>TOS HEADER</b></td> --> ! <td colspan="2"><b>BLAST ROUTING INFO</b></td> <td colspan="6"><b>FIREBUG DATA</b></td> </tr> --- 66,70 ---- <td colspan="4"><b>TOS HEADER</b></td> --> ! <td colspan="2"><b>ROUTING HEADER</b></td> <td colspan="6"><b>FIREBUG DATA</b></td> </tr> |
From: <do...@us...> - 2004-02-16 02:11:00
|
Update of /cvsroot/firebug/firebug/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16032 Modified Files: admin.html fbmsg.html firebug.css Log Message: Added some cool table breakdowns for messages. Index: admin.html =================================================================== RCS file: /cvsroot/firebug/firebug/web/admin.html,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** admin.html 19 Dec 2003 23:46:30 -0000 1.12 --- admin.html 16 Feb 2004 02:03:06 -0000 1.13 *************** *** 1,182 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> ! <head> ! <link type="text/css" rel="stylesheet" href="firebug.css"> ! <link rel="SHORTCUT ICON" href="./images/favicon.ico"> ! <title>FireBug administration page</title> ! </head> ! <body> ! <h1>FireBug administration page</h1> ! <p> The information technology infrastructure of Firebug is composed of ! many components, including web servers, database servers and scripting ! languages. For our initial implementation, we have chosen freely ! available (usually open source) and ubiquituous products. Our toolchain ! is constructed by defining interfaces largely independent of the tools ! themselves, and independent of choice of operating systems. This allows ! replacing individual components on a case-by-case basis. </p> ! <p> For example, we are using PHP for client database access. The PHP ! scripts are designed such that the embedded SQL commands may be used ! independently of PHP, allowing different implementations to use Perl, ! Python or other scripting languages facilitating web-based interaction. ! </p> ! <h2>MySQL</h2> ! <p> Installing and setting up mysql is pretty easy. We can mostly use ! the defaults for the FireBug project, with exceptions for where things ! are locally installed on various different machines. If the server ! (mysqld) does not start automatically, there may be problems with the ! my.ini file, which is located in the Windows system root directory. Do ! a <a ! href="http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=mysql+startup+windows+2000&btnG=Google+Search">google ! search</a> to get some help on mysql startup on Windows. Remember to ! check the Windows Services manager to set mysql for automatically ! starting the server on bootup. </p> ! <p> Here is an example <code>my.ini</code> for a MySQL server ! installed on MS Windows 2000: </p> ! <pre> [mysqld]<br> basedir=D:/mysql<br> datadir=D:/mysql/data<br> [WinMySQLAdmin]<br> Server=D:/mysql/bin/mysqld-nt.exe<br> </pre> ! Different servers may have slightly different drive and paths, but <code>mysqld</code> ! must be able to find this information in order to start. ! <p> Some useful MySQL commands: </p> ! <ul> ! <li> <code>mysql -u username -p</code> opens a command line client ! connection to a MySQL server running on localhost for a given username, ! and prompts for a password. </li> ! <li>mysql -u firebug --database=firebug --host=mysql -p is the ! current login command for mysql on sourceforge. </li> ! <li> Loading tables from files can be performed using either the <code>mysqlimport</code> ! command (section 4.8.7 of the mysql manual), or the <code>LOAD DATA ! INFILE</code> (sections 3.3.3, 6.4.9 of the mysql manual). </li> ! <li>Deleting a database is performed by using the DROP sql command: <code>drop ! database <db-name></code>. </li> ! </ul> ! <p> Stuff we need to know how to do: </p> ! <ul> ! <li> How to extract databases/tables in databases from native format ! to flat ascii text files for backups and exports. </li> ! <li> There needs to be an environment variable or a property file for ! php to read to set the hostname or IP address of the mysql database. ! Having hosts hardwired into scripts results in lots of superfluous cvs ! commits as everyone changes just the host in a script. </li> ! </ul> ! <h3>MySQL tables for mote data</h3> ! <p> We use several different tables for mote data collection. Since ! FireBug motes are not mobile, location data is recorded only once. ! Sensor data is recorded into two tables. The first table accumulates ! times histories of the data by recording the data from each packet ! received. The second table keeps a record of the most recent data ! received from each mote, which saves querying the first table for real ! time updates. </p> ! <center> ! <h4>Sensor data table</h4> ! <table class="db_schema"> ! <tbody> ! <tr> ! <td>mote_id</td> ! <td>time</td> ! <td>temp</td> ! <td>rel_hum</td> ! <td>baro_pres</td> ! <td>cnt</td> ! </tr> ! <tr> ! <td>INTEGER</td> ! <td>TIMESTAMP</td> ! <td>FLOAT</td> ! <td>FLOAT</td> ! <td>FLOAT</td> ! <td>INTEGER</td> ! <td><br> ! </td> ! </tr> ! </tbody> ! </table> ! </center> ! <p> </p> ! <center> ! <h4>Sensor location table</h4> ! <table class="db_schema"> ! <tbody> ! <tr> ! <td>mote_id</td> ! <td>longitude</td> ! <td>latitude</td> ! </tr> ! <tr> ! <td>INTEGER</td> ! <td>FLOAT</td> ! <td>FLOAT</td> ! <td><br> ! </td> ! </tr> ! </tbody> ! </table> ! </center> ! <h3>Creating the tables</h3> ! <p> First create the "firebug"" database: </p> ! <pre> CREATE DATABASE firebug;<br> </pre> ! Next switch to the firebug database: ! <pre> USE DATABASE firebug;<br> </pre> ! Then create the "example" table: ! <pre> CREATE TABLE example (mote_id INTEGER,<br> time TIMESTAMP,<br> temp FLOAT,<br> rel_hum FLOAT,<br> baro_pres FLOAT,<br> cnt INTEGER);<br> </pre> ! Load the example.txt file using: ! <pre> LOAD DATA INFILE 'example.txt' INTO TABLE example;<br> </pre> ! The example.txt file must be located in the <code>$mysqlroot/data/firebug</code> ! directory for <code>LOAD DATA</code> command. The example data should ! now be displayed on its own <a href="./example.php">web page</a>. ! <p> For testing the jdbc interface, two more tables need to be created: ! <code>example_current</code> and <code>example_cumulative</code>. The ! mysql client supports cut and paste, use the following: </p> ! <pre> CREATE TABLE example_current (mote_id INTEGER,<br> time TIMESTAMP,<br> temp FLOAT,<br> rel_hum FLOAT,<br> _baropres FLOAT,<br> cnt INTEGER);<br> </pre> ! <pre> CREATE TABLE example_cumulative (mote_id INTEGER,<br> time TIMESTAMP,<br> temp FLOAT,<br> rel_hum FLOAT,<br> baro_pres FLOAT,<br> cnt INTEGER);<br> </pre> ! <p> </p> ! <h3>MySQL users and security</h3> ! <p> Since FireBug does not make extensive use of all of the MySQL ! database server capabilities, the number of users and the privileges ! for those users can be highly restricted. Following administrative ! guidelines result in a MySQL server that is reasonably secure, but ! flexible enough to handle data insertion and display for the FireBug ! project. </p> ! <h3>MySQL problems</h3> ! MySQL errors listed by error numbers: ! <ul> ! <li> <code>Warning: MySQL Connection Failed: Can't connect to MySQL ! server on 'localhost' (10061)</code>: CHeck to make sure the server is ! running. It should appear in the Windows Task Manager, or in <code>top</code> ! or <code>ps aux</code> in unix. If it isn't running, in Windows the ! server can be started using the services dialog box. In unix, run the ! script <code>safe_mysql</code>. </li> ! </ul> ! <h2>PHP</h2> ! <ul> ! <li>Go to php web page <a href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a> ! to download the php installation file.</li> ! <li>Run the installation file. </li> ! <li> After that, go to "C:\winnt\php.ini", open the file. </li> ! <li>Search the keyword "error_reporting" in the script, and change ! the value like:<br> ! error_reporting = E_All^E_Notice; </li> ! <li>if necessary, make sure the "envrionment variable" -"PATH" ! include the path to PHP. e.g. C:\PHP\bin;</li> ! <li> Fire a Cygwin, type: $mysql, you will get the mysql running.</li> ! </ul> ! <h2>Apache</h2> ! <ul> ! <li>go to apach web page <a ! href="http://httpd.apache.org/download.cgi">http://httpd.apache.org/download.cgi</a> ! to download the .exe installation file, and install it.</li> ! <li>After run the installation, go to C:\Program Files\Apache ! Group\Apache2\conf, open the file "httpd.conf". </li> ! <li> insert the folllowing text to the very end of the file.</li> ! <p>ScriptAlias /php/ "c:/php/" <br> ! AddType application/x-httpd-php .php <br> ! Action application/x-httpd-php "/php/php.exe"<br> ! </p> ! <li>if necessary, make sure the "envrionment variable" -"PATH" ! include the path to Apache. e.g. C:\Program ! Files\apache-ant-1.5.3-1\bin;</li> ! <li>restart Apache</li> ! </ul> ! <hr> ! <p> Last Updated: $Date$ by $Author: doolin ! $. </p> ! </body> </html> --- 1,189 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + + <html> ! <head> ! <link type="text/css" rel="stylesheet" href="firebug.css"> ! <link rel="SHORTCUT ICON" href="./images/favicon.ico"> ! <title>FireBug administration page</title> ! </head> ! <body> ! <h1>FireBug administration page</h1> ! <p> The information technology infrastructure of Firebug is composed of ! many components, including web servers, database servers and scripting ! languages. For our initial implementation, we have chosen freely ! available (usually open source) and ubiquituous products. Our toolchain ! is constructed by defining interfaces largely independent of the tools ! themselves, and independent of choice of operating systems. This allows ! replacing individual components on a case-by-case basis. </p> ! <p> For example, we are using PHP for client database access. The PHP ! scripts are designed such that the embedded SQL commands may be used ! independently of PHP, allowing different implementations to use Perl, ! Python or other scripting languages facilitating web-based interaction. ! </p> ! <h2>MySQL</h2> ! <p> Installing and setting up mysql is pretty easy. We can mostly use ! the defaults for the FireBug project, with exceptions for where things ! are locally installed on various different machines. If the server ! (mysqld) does not start automatically, there may be problems with the ! my.ini file, which is located in the Windows system root directory. Do ! a <a ! href="http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=mysql+startup+windows+2000&btnG=Google+Search">google ! search</a> to get some help on mysql startup on Windows. Remember to ! check the Windows Services manager to set mysql for automatically ! starting the server on bootup. </p> ! <p> Here is an example <code>my.ini</code> for a MySQL server ! installed on MS Windows 2000: </p> ! <pre> [mysqld]<br> basedir=D:/mysql<br> datadir=D:/mysql/data<br> [WinMySQLAdmin]<br> Server=D:/mysql/bin/mysqld-nt.exe<br> </pre> ! Different servers may have slightly different drive and paths, but <code>mysqld</code> ! must be able to find this information in order to start. ! <p> Some useful MySQL commands: </p> ! <ul> ! <li> <code>mysql -u username -p</code> opens a command line client ! connection to a MySQL server running on localhost for a given username, ! and prompts for a password. </li> ! <li>mysql -u firebug --database=firebug --host=mysql -p is the ! current login command for mysql on sourceforge. </li> ! <li> Loading tables from files can be performed using either the <code>mysqlimport</code> ! command (section 4.8.7 of the mysql manual), or the <code>LOAD DATA ! INFILE</code> (sections 3.3.3, 6.4.9 of the mysql manual). </li> ! <li>Deleting a database is performed by using the DROP sql command: <code>drop ! database <db-name></code>. </li> ! </ul> ! <p> Stuff we need to know how to do: </p> ! <ul> ! <li> How to extract databases/tables in databases from native format ! to flat ascii text files for backups and exports. </li> ! <li> There needs to be an environment variable or a property file for ! php to read to set the hostname or IP address of the mysql database. ! Having hosts hardwired into scripts results in lots of superfluous cvs ! commits as everyone changes just the host in a script. </li> ! </ul> ! <h3>MySQL tables for mote data</h3> ! <p> We use several different tables for mote data collection. Since ! FireBug motes are not mobile, location data is recorded only once. ! Sensor data is recorded into two tables. The first table accumulates ! times histories of the data by recording the data from each packet ! received. The second table keeps a record of the most recent data ! received from each mote, which saves querying the first table for real ! time updates. </p> ! <center> ! <h4>Sensor data table</h4> ! <table class="db_schema"> ! <tbody> ! <tr> ! <td>mote_id</td> ! <td>time</td> ! <td>temp</td> ! <td>rel_hum</td> ! <td>baro_pres</td> ! <td>cnt</td> ! </tr> ! <tr> ! <td>INTEGER</td> ! <td>TIMESTAMP</td> ! <td>FLOAT</td> ! <td>FLOAT</td> ! <td>FLOAT</td> ! <td>INTEGER</td> ! <td><br> ! </td> ! </tr> ! </tbody> ! </table> ! </center> ! <p> </p> ! <center> ! <h4>Sensor location table</h4> ! <table class="db_schema"> ! <tbody> ! <tr> ! <td>mote_id</td> ! <td>longitude</td> ! <td>latitude</td> ! </tr> ! <tr> ! <td>INTEGER</td> ! <td>FLOAT</td> ! <td>FLOAT</td> ! <td><br> ! </td> ! </tr> ! </tbody> ! </table> ! </center> ! ! <h3>Creating the tables</h3> ! ! ! <p> First create the "firebug"" database: </p> ! <pre> CREATE DATABASE firebug;<br> </pre> ! Next switch to the firebug database: ! <pre> USE DATABASE firebug;<br> </pre> ! Then create the tables: ! <pre> CREATE TABLE current (mote_id INTEGER,<br> time TIMESTAMP,<br> temp FLOAT,<br> rel_hum FLOAT,<br> baro_pres FLOAT,<br> cnt INTEGER);<br> </pre> ! <pre> CREATE TABLE cumulative (mote_id INTEGER,<br> time TIMESTAMP,<br> temp FLOAT,<br> rel_hum FLOAT,<br> baro_pres FLOAT,<br> cnt INTEGER);<br> </pre> ! ! Load the example.txt file using: ! <pre> LOAD DATA INFILE 'example.txt' INTO TABLE example;<br> </pre> ! The example.txt file must be located in the <code>$mysqlroot/data/firebug</code> ! directory for <code>LOAD DATA</code> command. The example data should ! now be displayed on its own <a href="./example.php">web page</a>. ! <p> For testing the jdbc interface, two more tables need to be created: ! <code>example_current</code> and <code>example_cumulative</code>. The ! mysql client supports cut and paste, use the following: </p> ! <pre> CREATE TABLE example_current (mote_id INTEGER,<br> time TIMESTAMP,<br> temp FLOAT,<br> rel_hum FLOAT,<br> _baropres FLOAT,<br> cnt INTEGER);<br> </pre> ! <pre> CREATE TABLE example_cumulative (mote_id INTEGER,<br> time TIMESTAMP,<br> temp FLOAT,<br> rel_hum FLOAT,<br> baro_pres FLOAT,<br> cnt INTEGER);<br> </pre> ! <p> </p> ! <h3>MySQL users and security</h3> ! <p> Since FireBug does not make extensive use of all of the MySQL ! database server capabilities, the number of users and the privileges ! for those users can be highly restricted. Following administrative ! guidelines result in a MySQL server that is reasonably secure, but ! flexible enough to handle data insertion and display for the FireBug ! project. </p> ! <h3>MySQL problems</h3> ! MySQL errors listed by error numbers: ! <ul> ! <li> <code>Warning: MySQL Connection Failed: Can't connect to MySQL ! server on 'localhost' (10061)</code>: CHeck to make sure the server is ! running. It should appear in the Windows Task Manager, or in <code>top</code> ! or <code>ps aux</code> in unix. If it isn't running, in Windows the ! server can be started using the services dialog box. In unix, run the ! script <code>safe_mysql</code>. </li> ! </ul> ! <h2>PHP</h2> ! <ul> ! <li>Go to php web page <a href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a> ! to download the php installation file.</li> ! <li>Run the installation file. </li> ! <li> After that, go to "C:\winnt\php.ini", open the file. </li> ! <li>Search the keyword "error_reporting" in the script, and change ! the value like:<br> ! error_reporting = E_All^E_Notice; </li> ! <li>if necessary, make sure the "envrionment variable" -"PATH" ! include the path to PHP. e.g. C:\PHP\bin;</li> ! <li> Fire a Cygwin, type: $mysql, you will get the mysql running.</li> ! </ul> ! <h2>Apache</h2> ! <ul> ! <li>go to apach web page <a ! href="http://httpd.apache.org/download.cgi">http://httpd.apache.org/download.cgi</a> ! to download the .exe installation file, and install it.</li> ! <li>After run the installation, go to C:\Program Files\Apache ! Group\Apache2\conf, open the file "httpd.conf". </li> ! <li> insert the folllowing text to the very end of the file.</li> ! <p>ScriptAlias /php/ "c:/php/" <br> ! AddType application/x-httpd-php .php <br> ! Action application/x-httpd-php "/php/php.exe"<br> ! </p> ! <li>if necessary, make sure the "envrionment variable" -"PATH" ! include the path to Apache. e.g. C:\Program ! Files\apache-ant-1.5.3-1\bin;</li> ! <li>restart Apache</li> ! </ul> ! <hr> ! <p> Last Updated: $Date$ by $Author: doolin ! $. </p> ! </body> </html> Index: fbmsg.html =================================================================== RCS file: /cvsroot/firebug/firebug/web/fbmsg.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fbmsg.html 10 Jul 2003 21:08:13 -0000 1.4 --- fbmsg.html 16 Feb 2004 02:03:16 -0000 1.5 *************** *** 1,63 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - <html> <head> ! <link type="text/css" rel="stylesheet" href="firebug.css"> ! <link rel="SHORTCUT ICON" href="./images/favicon.ico"> ! <title>FireBug Active Message definition</title> </head> - <body> - <h1>FireBug Active Message definition</h1> ! <p> ! <ul> ! <li> <b>Destination address</b> (2 bytes)</li> ! <li> <b>Active Message handler ID</b> (1 byte)</li> ! <li> <b>Group ID</b> (1 byte)</li> ! <li> <b>Message length</b> (1 byte)</li> ! <li> <b>Payload</b> (up to 29 bytes):</li> <ul> ! <li> <b>VirtualComm Header</b> (2 bytes)</li> ! <li> <b>Mhsender Header</b> (3 bytes)</li> ! <li> <b>Sensor data readings</b> (10 readings of 2 bytes each)</li> </ul> ! </ul> ! <p> ! So we can interpret the data packet as follows: ! <p> ! <table cellspacing=10 cellpadding=0 border=0 hspace=0> ! <tr class="msg_header"> ! <td colspan=4><b>TOS HEADER</b></td> ! <td colspan=2><b>BLAST INFO</b></td> ! <td colspan=1><b>FIREBUG DATA</b></td> ! </tr> ! <tr bgcolor="#d0d0d0"> ! <td><b>dest addr</b></td> ! <td><b>handlerID</b></td> ! <td><b>groupID</b></td> ! <td><b>msg len</b></td> ! <td><b>VirtualComm Header</b></td> ! <td><b>Mhsender Header</b></td> ! <td><b>readings</b><td> ! </tr> ! <tr> ! <td bgcolor="#d0d0ff">7e 00</td> ! <td bgcolor="#d0d0ff">0a</td> ! <td bgcolor="#d0d0ff">7d</td> ! <td bgcolor="#d0d0ff">1a</td> ! <td bgcolor="#d0ffd0">01 00</td> ! <td bgcolor="#d0ffd0">14 00 01</td> ! <td bgcolor="#ffd0d0">96 03 97 03 97 03 98 03 97 03 96 03 97 03 96 03 96 03 96 03</td> ! </tr> ! </table> ! </body> </html> --- 1,104 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> <head> ! <meta name="generator" content= ! "HTML Tidy for Cygwin (vers 1st September 2003), see www.w3.org" /> ! <link type="text/css" rel="stylesheet" href="firebug.css" /> ! <link rel="SHORTCUT ICON" href="./images/favicon.ico" /> ! <title>FireBug Active Message definition</title> </head> <body> <h1>FireBug Active Message definition</h1> + <ul> + <li><b>Destination address</b> (2 bytes) defined in <code>AM.h</code>. + Indicates to the transport layer where to send an Active Message, + i.e., send the TOS_Msg to the Radio (TOS_BCAST_ADDR) or to the + UART (TOS_UART_ADDR):<br /> + <pre class="code"> + enum { + TOS_BCAST_ADDR = 0xffff, + TOS_UART_ADDR = 0x007e, + };</pre> ! </li> ! <li><b>Active Message handler ID</b> (1 byte)</li> ! <li><b>Group ID</b> (1 byte) The default is 0x7D, or 125 decimal.</li> ! <li><b>Payload length</b> (1 byte)</li> ! <li><b>Payload</b> (up to 29 bytes):</li> ! <li style="list-style: none"> <ul> ! <li><b>VirtualComm Header</b> (2 bytes)</li> ! <li><b>Mhsender Header</b> (3 bytes)</li> ! <li><b>Sensor data readings</b> (10 readings of 2 bytes each)</li> </ul> ! </li> ! </ul> ! <p> ! So we can interpret the data packet as follows: ! </p> ! <table cellspacing="10" cellpadding="0" border="0" hspace="0"> + <tr class="msg_header"> + <td colspan="4" rowspan="2"><b>TOS HEADER</b></td> + <td colspan="8"><b>PAYLOAD</b></td> + </tr> ! <tr class="msg_header"> ! <!-- ! <td colspan="4"><b>TOS HEADER</b></td> ! --> ! <td colspan="2"><b>BLAST ROUTING INFO</b></td> ! <td colspan="6"><b>FIREBUG DATA</b></td> ! </tr> + <tr bgcolor="#D0D0D0"> + <td><b>Destination Address</b></td> + <td><b>Handler ID</b></td> + <td><b>Group ID</b></td> + <td><b>Payload Length</b></td> + <td><b>VirtualComm Header</b></td> + <td><b>Mhsender Header</b></td> + <td colspan="6"><b>Sensor Readings</b></td> + <td></td> + </tr> + + <tr> + <td bgcolor="#D0D0FF" rowspan="2">0x7E 0x00</td> + <td bgcolor="#D0D0FF" rowspan="2">0x0A</td> + <td bgcolor="#D0D0FF" rowspan="2">0x7D</td> + <td bgcolor="#D0D0FF" rowspan="2">0x19</td> + <td bgcolor="#D0FFD0" rowspan="2">01 00</td> + <td bgcolor="#D0FFD0" rowspan="2">14 00 01</td> + <td bgcolor="#D0D0D0">addr</td> + <td bgcolor="#D0D0D0">cnt</td> + <td bgcolor="#D0D0D0">temp</td> + <td bgcolor="#D0D0D0">rel_hum</td> + <td bgcolor="#D0D0D0">baro_pres</td> + <td bgcolor="#D0D0D0">lux</td> + + + </tr> + <tr> + <td bgcolor="#FFD0D0">96 03</td> + <td bgcolor="#FFD0D0">97</td> + <td bgcolor="#FFD0D0">97 03 98 03</td> + <td bgcolor="#FFD0D0">97 03 96 03</td> + <td bgcolor="#FFD0D0">97 03 96 03</td> + <td bgcolor="#FFD0D0">96 03 96 03</td> + </tr> + </table> + + <p> + Note that the data is sent by the mote in little-endian format; + so, for example, the two bytes 96 03 could represent a single + sensor reading with most-significant-byte 0x03 + and least-significant-byte 0x96. That is, 0x0396 or 918 decimal. + </p> + + </body> </html> Index: firebug.css =================================================================== RCS file: /cvsroot/firebug/firebug/web/firebug.css,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** firebug.css 11 Jun 2003 17:02:19 -0000 1.11 --- firebug.css 16 Feb 2004 02:03:16 -0000 1.12 *************** *** 55,58 **** --- 55,61 ---- } + pre.code { + background-color:#ffff66; + } code.progname { |
From: <do...@us...> - 2004-02-16 02:10:59
|
Update of /cvsroot/firebug/firebug/web/demo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16032/demo Added Files: index.html Log Message: Added some cool table breakdowns for messages. --- NEW FILE: index.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Sensor Demo</title> </head> <body> <h1>Sensor Demo</h1> <p>Running the demo on Apache Win32</p> <ul> <li>Insure that gnuplot is in a location where Apache can find it, and that the path is Win32 compatible. If the Apache version is cygwin distributed, the file paths may be unix compatible.</li> <li>Make sure that all the file permissions allow writing the image file.</li> <li>Check to make sure that the database permissions are ok.</li> </ul> <hr> <address><a href="mailto:"></a></address> <!-- Created: Sun Feb 15 08:22:46 Pacific Standard Time 2004 --> <!-- hhmts start --> Last modified: Sun Feb 15 08:28:18 Pacific Standard Time 2004 <!-- hhmts end --> </body> </html> |
From: <do...@us...> - 2004-02-15 15:28:50
|
Update of /cvsroot/firebug/firebug/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18423 Removed Files: results.php test.gnu test2.dat Log Message: Moved demo files to demo directory. --- results.php DELETED --- --- test.gnu DELETED --- --- test2.dat DELETED --- |
From: <do...@us...> - 2004-02-15 15:23:37
|
Update of /cvsroot/firebug/firebug/web/demo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17451 Added Files: results.php test.gnu test2.dat testdata.dat Log Message: Demo getting moved to it's own location. --- NEW FILE: results.php --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Results demo script</title> <link rel="SHORTCUT ICON" href="../images/favicon.ico"> <link type="text/css" rel="stylesheet" href="../firebug.css"> </head> <body> <h1>Demonstration monitoring</h1> <?php /* if (!file_exists("/tmp/tempdata")) { echo "Creating /tmp/tempdata...<p>"; mkdir ("/tmp/tempdata",0755); } */ // This stuff doesn't work yet, but would be // be a better way to do this. $command = "echo -e 'set term png\n"; $command .= "set size 0.4\n"; $command .= "plot \"test2.dat\"\n'"; $command .= "| C:/gp373w32/pgnuplot.exe > test.png"; //echo $command; // System call `"C:/gp373w32/pgnuplot.exe < ./test.gnu"`; // This would be preferable, but doesn't seem to work. //passthru($command); echo "<img src=\"test.png\">"; ?> <hr /> <p> Last Updated: $Date: 2004/02/15 15:16:14 $ by $Author: doolin $. </p> </body> </html> --- NEW FILE: test.gnu --- set term png set size 0.4 set output "test.png" plot "testdata.dat" using 2 with line 1 --- NEW FILE: test2.dat --- 0 0 1 1 2 3 3 0 4 1 5 5 --- NEW FILE: testdata.dat --- 3 559 3 560 3 562 3 563 3 564 3 565 3 566 3 567 3 568 3 569 3 570 3 571 3 572 3 573 3 574 3 575 3 576 3 577 3 578 3 579 3 580 3 581 3 582 3 583 3 584 3 585 3 586 3 587 3 588 3 589 3 590 3 591 3 592 3 593 3 594 3 595 3 596 3 597 3 598 3 599 3 600 3 601 3 602 3 603 3 604 3 605 3 607 3 608 3 609 3 610 3 611 3 612 3 613 3 614 3 615 3 617 3 618 3 619 3 620 3 621 3 622 3 623 3 624 3 625 3 626 3 627 3 628 3 629 3 630 3 631 3 632 3 633 3 634 3 635 3 636 3 637 3 638 3 639 3 640 3 641 3 642 3 643 3 644 3 645 3 646 3 647 3 648 3 649 3 650 3 651 3 652 3 653 3 654 3 655 3 656 3 657 3 658 3 659 3 660 3 661 3 662 3 663 3 664 3 665 3 666 3 667 3 668 3 669 3 670 3 671 3 672 3 673 3 674 3 675 3 676 3 677 3 678 3 679 3 680 3 681 3 682 3 683 3 684 3 685 3 686 3 687 3 688 3 689 2 839 2 840 2 841 2 842 2 843 2 844 2 845 2 846 2 847 2 848 2 849 2 850 2 851 2 852 2 853 2 854 2 855 2 856 2 857 2 858 2 859 2 860 2 862 2 863 2 864 2 865 2 866 2 867 2 868 2 869 2 870 2 871 2 872 2 873 2 874 2 875 2 876 2 877 2 878 2 880 2 881 2 882 2 883 2 884 2 885 2 886 2 887 2 888 2 889 2 890 2 891 2 892 2 893 2 894 2 895 3 187 2 896 3 188 2 897 3 189 2 898 3 190 2 899 3 191 2 900 3 192 2 901 3 193 2 902 3 194 2 903 3 195 2 904 3 196 2 905 3 197 2 906 3 198 2 907 3 199 2 908 3 200 2 909 3 201 2 910 3 202 2 911 3 203 3 204 2 913 3 205 3 206 3 207 3 208 3 209 3 210 3 211 3 212 3 213 3 214 3 215 3 216 3 217 3 218 3 219 3 220 3 221 3 222 3 223 3 224 3 225 3 226 3 227 3 228 3 229 3 230 3 231 3 232 3 233 3 234 |
From: <do...@us...> - 2004-02-15 15:13:03
|
Update of /cvsroot/firebug/firebug/web/demo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15495/demo Log Message: Directory /cvsroot/firebug/firebug/web/demo added to the repository |
From: <do...@us...> - 2004-02-11 00:09:08
|
Update of /cvsroot/firebug/firebug/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32302 Modified Files: db_table_select.php results.php test.gnu Added Files: db_write_file.php Log Message: php - mysql - plot connection working. --- NEW FILE: db_write_file.php --- <?php> session_start(); session_register("dbname"); session_register("tblname"); ?> <html> <head> <title>FireBug Client</title> <META HTTP-EQUIV="Refresh" CONTENT="30;URL=http://localhost/firebug/db_write_file.php"> <link rel="SHORTCUT ICON" href="./images/favicon.ico"> <link type="text/css" rel="stylesheet" href="firebug.css"> </head> <body> <?php include("nav_footer.php"); ?> <hr /> <p> Sensor data last updated: <?php echo date ("l dS F Y h:i:s A"); ?> </p> <?php //if (!isset($HTTP_SESSION_VARS["tblname"])) { if ($HTTP_POST_VARS["tbl1"]!=Null){ $HTTP_SESSION_VARS["tblname"] = $HTTP_POST_VARS["tbl1"]; $HTTP_SESSION_VARS["dbname"] = $HTTP_POST_VARS["db1"]; } $dbname = $HTTP_SESSION_VARS["dbname"]; $tblname = $HTTP_SESSION_VARS["tblname"]; print("<h1>Mote activity: Database $dbname, table $tblname</h1>"); ?> <center> <table class="db_schema"> <tr> <td>Mote ID</td> <td>Time</td> <td>Hours</td> <td>Minutes</td> <td>Dec_sec</td> <td>Lat_deg</td> <td>Lat_dec_min</td> <td>Long_deg</td> <td>Long_dec_min</td> <td>NSEWind</td> <td>Temp</td> <td>Cnt </td> </tr> <?php if (!$inside_fp=fopen("testdata.data","w")) { echo "Couldn't open testdata.dat for writing!\n"; } mysql_connect("localhost","root","") or die("Error: ".mysql_error()." in mysql_connect."); mysql_select_db("$dbname") or die("Error: ".mysql_error()." in mysql_select_db."); if ($mote_id == "") { $mote_id = "%"; } if ($time == "") { $time = "%"; } if ($cnt == "") { $cnt = "%"; } if ($hours == "") { $hours = "%"; } if ($minutes == "") { $minutes = "%"; } if ($dec_sec == "") { $dec_sec = "%"; } if ($Lat_deg == "") { $Lat_deg = "%"; } if ($Lat_dec_min == "") { $Lat_dec_min = "%"; } if ($Long_deg == "") { $Long_deg = "%"; } if ($Long_dec_min == "") { $Long_dec_min = "%"; } if ($NSEWind == "") { $NSEWind = "%"; } if ($temp == "") { $temp = "%"; } $result = mysql_query("select * from $tblname where mote_id like '$mote_id%' and time like '$time%' and cnt like '$cnt%' and hours like '$hours%' and minutes like '$minutes%' and dec_sec like '$dec_sec%' and Lat_deg like '$Lat_deg%' and Lat_dec_min like '$Lat_dec_min%' and Long_deg like '$Long_deg%' and Long_dec_min like '$Long_dec_min%' and NSEWind like '$NSEWind%' and temp like '$temp%'") //and rel_hum like '$rel_hum%' //and baro_pres like '$baro_pres%'" or die("Error: ".mysql_error()." in query."); //fputs($inside_fp,"1,3\n"); if ($row = mysql_fetch_array($result)) { do { fputs($inside_fp,$row["mote_id"]." "); /* print $row["time"]; print $row["hours"]; */ fputs($inside_fp,$row["minutes"]."\n"); /* print $row["dec_sec"]; print $row["Lat_deg"]; print $row["Lat_dec_min"]; print $row["Long_deg"]; print $row["Long_dec_min"]; print $row["NSEWind"]; print $row["temp"]; print $row["cnt"]; */ } while ($row = mysql_fetch_array($result)); } fclose($inside_fp); // System call `"C:/gp373w32/pgnuplot.exe < ./test.gnu"`; echo "<img src=\"test.png\">"; $result = mysql_query("select * from $tblname where mote_id like '$mote_id%' and time like '$time%' and cnt like '$cnt%' and hours like '$hours%' and minutes like '$minutes%' and dec_sec like '$dec_sec%' and Lat_deg like '$Lat_deg%' and Lat_dec_min like '$Lat_dec_min%' and Long_deg like '$Long_deg%' and Long_dec_min like '$Long_dec_min%' and NSEWind like '$NSEWind%' and temp like '$temp%'") //and rel_hum like '$rel_hum%' //and baro_pres like '$baro_pres%'" or die("Error: ".mysql_error()." in query."); if ($row = mysql_fetch_array($result)) { do { print ("<tr>"); print ("<td>"); print $row["mote_id"]; print ("</td>"); print ("<td>"); print $row["time"]; print ("</td>"); print ("<td>"); print $row["hours"]; print ("</td>"); print ("<td>"); print $row["minutes"]; print ("</td>"); print ("<td>"); print $row["dec_sec"]; print ("</td>"); print ("<td>"); print $row["Lat_deg"]; print ("</td>"); print ("<td>"); print $row["Lat_dec_min"]; print ("</td>"); print ("<td>"); print $row["Long_deg"]; print ("</td>"); print ("<td>"); print $row["Long_dec_min"]; print ("</td>"); print ("<td>"); print $row["NSEWind"]; print ("</td>"); print ("<td>"); print $row["temp"]; print ("</td>"); print ("<td>"); print $row["cnt"]; print ("</td>"); print ("</tr>"); } while ($row = mysql_fetch_array($result)); } ?> </table> </center> <hr /> <?php include("nav_footer.php"); ?> <hr /> <p> Sensor data last updated: <?php echo date ("l dS F Y h:i:s A"); ?> </p> </body> </html> Index: db_table_select.php =================================================================== RCS file: /cvsroot/firebug/firebug/web/db_table_select.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_table_select.php 19 Dec 2003 01:06:02 -0000 1.3 --- db_table_select.php 11 Feb 2004 00:05:24 -0000 1.4 *************** *** 64,67 **** --- 64,70 ---- <?php + + + mysql_connect("localhost","root","") or die("Error: ".mysql_error()." in mysql_connect."); *************** *** 196,199 **** --- 199,204 ---- } + + ?> Index: results.php =================================================================== RCS file: /cvsroot/firebug/firebug/web/results.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** results.php 10 Feb 2004 15:26:27 -0000 1.1 --- results.php 11 Feb 2004 00:05:24 -0000 1.2 *************** *** 14,25 **** <?php - // The following is a system call. - `D:\cygwin\bin\gnuplot.exe < test.gnu`; ?> ! <img src="../imagetest/test.png"> --- 14,45 ---- <?php + /* + if (!file_exists("/tmp/tempdata")) { + echo "Creating /tmp/tempdata...<p>"; + mkdir ("/tmp/tempdata",0755); + } + */ + // This stuff doesn't work yet, but would be + // be a better way to do this. + $command = "echo -e 'set term png\n"; + $command .= "set size 0.4\n"; + $command .= "plot \"test2.dat\"\n'"; + $command .= "| C:/gp373w32/pgnuplot.exe > test.png"; + + //echo $command; + // System call + `"C:/gp373w32/pgnuplot.exe < ./test.gnu"`; + + // This would be preferable, but doesn't seem to work. + //passthru($command); + + + echo "<img src=\"test.png\">"; ?> ! Index: test.gnu =================================================================== RCS file: /cvsroot/firebug/firebug/web/test.gnu,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** test.gnu 10 Feb 2004 15:26:54 -0000 1.1 --- test.gnu 11 Feb 2004 00:05:24 -0000 1.2 *************** *** 1,12 **** set term png - set size 0.4 ! ! set output "../imagetest/test.png" ! ! #set xrange [0:2*pi] ! ! #plot sin(x) ! ! plot "test2.dat" \ No newline at end of file --- 1,5 ---- set term png set size 0.4 ! set output "test.png" ! plot "testdata.data" using 2 with line 1 \ No newline at end of file |
From: <do...@us...> - 2004-02-10 15:30:19
|
Update of /cvsroot/firebug/firebug/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7609 Added Files: test.gnu test2.dat Log Message: . --- NEW FILE: test.gnu --- set term png set size 0.4 set output "../imagetest/test.png" #set xrange [0:2*pi] #plot sin(x) plot "test2.dat" --- NEW FILE: test2.dat --- 0 0 1 1 2 3 3 0 4 1 5 5 |
From: <do...@us...> - 2004-02-10 15:29:54
|
Update of /cvsroot/firebug/firebug/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7422 Modified Files: db_admin.php Added Files: results.php Log Message: . --- NEW FILE: results.php --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Results demo script</title> <link rel="SHORTCUT ICON" href="./images/favicon.ico"> <link type="text/css" rel="stylesheet" href="firebug.css"> </head> <body> <h1>Demonstration monitoring</h1> <?php // The following is a system call. `D:\cygwin\bin\gnuplot.exe < test.gnu`; ?> <img src="../imagetest/test.png"> <hr /> <p> Last Updated: $Date: 2004/02/10 15:26:27 $ by $Author: doolin $. </p> </body> </html> Index: db_admin.php =================================================================== RCS file: /cvsroot/firebug/firebug/web/db_admin.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** db_admin.php 21 May 2003 21:58:15 -0000 1.4 --- db_admin.php 10 Feb 2004 15:26:27 -0000 1.5 *************** *** 34,41 **** --- 34,49 ---- <hr /> + <?php + + + //$string = system("D:\cygwin\bin\gnuplot.exe < test.gnu"); + `D:\cygwin\bin\gnuplot.exe < test.gnu`; include("nav_footer.php"); ?> + <!-- --> + <img src="../imagetest/test.png"> + <!-- --> <hr /> |
From: <do...@us...> - 2004-02-04 01:42:30
|
Update of /cvsroot/firebug/fireboard/fireboard/sensorboards/xbow_mts420ca In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2105/xbow_mts420ca Modified Files: fireboardsensorM.nc Log Message: Changed output string to support leadtek monitor. Index: fireboardsensorM.nc =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/sensorboards/xbow_mts420ca/fireboardsensorM.nc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** fireboardsensorM.nc 28 Jan 2004 22:39:59 -0000 1.3 --- fireboardsensorM.nc 3 Feb 2004 19:12:34 -0000 1.4 *************** *** 177,181 **** //call Leds.greenToggle(); ! SODbg(DBG_USR2, "SHT11.dataReady: Humidity: Temp(adc): %i Humidity(adc): %i Temp(degCx10): %i Humidity(%): %i \r\n",tempdata,rel_humdata,(int)temp, (int)rel_hum); atomic { --- 177,181 ---- //call Leds.greenToggle(); ! SODbg(DBG_USR2, "$SHT11.dataReady: Humidity: Temp(adc): %i Humidity(adc): %i Temp(degCx10): %i Humidity(%): %i \r\n",tempdata,rel_humdata,(int)temp, (int)rel_hum); atomic { *************** *** 215,219 **** baro_pres = msg->baro_pres; ! SODbg(DBG_USR2, "Pressure: Temp(adc): %i Press(adc): %i Temp(degCx10): %i Press(mbar): %i \r\n", tempdata,baro_presdata,(int)temp, (int)baro_pres); #endif --- 215,219 ---- baro_pres = msg->baro_pres; ! SODbg(DBG_USR2, "$Pressure: Temp(adc): %i Press(adc): %i Temp(degCx10): %i Press(mbar): %i \r\n", tempdata,baro_presdata,(int)temp, (int)baro_pres); #endif *************** *** 315,319 **** //call Leds.greenToggle(); ! SODbg(DBG_USR2, "Taos Ch%i data: %i Cord: %i Step: %i ADC Counts: %i Light(lux): %i \r\n", channel, taos_data,cord,step,adc,(int)lux); #endif --- 315,319 ---- //call Leds.greenToggle(); ! SODbg(DBG_USR2, "$Taos Ch%i data: %i Cord: %i Step: %i ADC Counts: %i Light(lux): %i \r\n", channel, taos_data,cord,step,adc,(int)lux); #endif |
From: <do...@us...> - 2004-02-04 01:41:54
|
Update of /cvsroot/firebug/fireboard/fireboard/apps/TestSensirion In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32331/TestSensirion Modified Files: Makefile Log Message: Rest of app makefiles changed. Index: Makefile =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestSensirion/Makefile,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Makefile 21 Jan 2004 20:42:06 -0000 1.3 --- Makefile 3 Feb 2004 19:09:54 -0000 1.4 *************** *** 1,4 **** ! COMPONENT=testsensirion ! SENSORBOARD=micawb include ../Makelocal include $(TOSROOT)/apps/Makerules --- 1,11 ---- ! ! include ../Makelocal + FIREBOARD_PATH += -I$(MTS420CA)/sensors/sensirion_sht11 + LOCAL_PATH += $(FIREBOARD_PATH) + + COMPONENT=testsensirion + + PFLAGS := $(LOCAL_PATH) $(LOCAL_DEFINES) $(PFLAGS) + include $(TOSROOT)/apps/Makerules |
From: <do...@us...> - 2004-02-04 01:41:50
|
Update of /cvsroot/firebug/fireboard/fireboard/apps/TestFireBoardSensor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32331/TestFireBoardSensor Modified Files: Makefile Log Message: Rest of app makefiles changed. Index: Makefile =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestFireBoardSensor/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Makefile 5 Jan 2004 21:03:27 -0000 1.1.1.1 --- Makefile 3 Feb 2004 19:09:54 -0000 1.2 *************** *** 1,5 **** - COMPONENT=fireboardsensortest - SENSORBOARD=leadtek9546 include ../Makelocal include $(TOSROOT)/apps/Makerules --- 1,16 ---- include ../Makelocal + + FIREBOARD_PATH += -I$(MTS420CA)/sensors/adxl202je + FIREBOARD_PATH += -I$(MTS420CA)/sensors/intersema5534ap + FIREBOARD_PATH += -I$(MTS420CA)/sensors/leadtek9546 + FIREBOARD_PATH += -I$(MTS420CA)/sensors/sensirion_sht11 + FIREBOARD_PATH += -I$(MTS420CA)/sensors/taos_tsl250rd + LOCAL_PATH += $(FIREBOARD_PATH) + + COMPONENT=fireboardsensortest + + + PFLAGS := $(LOCAL_PATH) $(LOCAL_DEFINES) $(PFLAGS) + include $(TOSROOT)/apps/Makerules |
From: <do...@us...> - 2004-02-04 01:41:37
|
Update of /cvsroot/firebug/fireboard/fireboard/apps/TestIntersema In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32331/TestIntersema Modified Files: Makefile testintersemaM.nc Log Message: Rest of app makefiles changed. Index: Makefile =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestIntersema/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile 14 Jan 2004 15:22:54 -0000 1.2 --- Makefile 3 Feb 2004 19:09:54 -0000 1.3 *************** *** 1,5 **** - COMPONENT=testintersema - SENSORBOARD=intersema5534ap include ../Makelocal include $(TOSROOT)/apps/Makerules --- 1,11 ---- include ../Makelocal + FIREBOARD_PATH += -I$(MTS420CA)/sensors/intersema5534ap + LOCAL_PATH += $(FIREBOARD_PATH) + + COMPONENT=testintersema + + PFLAGS := $(LOCAL_PATH) $(LOCAL_DEFINES) $(PFLAGS) + + include $(TOSROOT)/apps/Makerules Index: testintersemaM.nc =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestIntersema/testintersemaM.nc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** testintersemaM.nc 22 Jan 2004 00:40:06 -0000 1.2 --- testintersemaM.nc 3 Feb 2004 19:09:54 -0000 1.3 *************** *** 67,71 **** call Leds.greenToggle(); ! SODbg(DBG_USR2, "Pressure: Temp(adc): %i Press(adc): %i Temp(degCx10): %i Press(mbar): %i \r\n", tempdata,baro_presdata,(int)temp, (int)baro_pres); return SUCCESS; --- 67,71 ---- call Leds.greenToggle(); ! SODbg(DBG_USR2, "$Pressure: Temp(adc): %i Press(adc): %i Temp(degCx10): %i Press(mbar): %i \r\n", tempdata,baro_presdata,(int)temp, (int)baro_pres); return SUCCESS; |
From: <do...@us...> - 2004-02-04 01:40:37
|
Update of /cvsroot/firebug/fireboard/fireboard/apps/TestTaos In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32331/TestTaos Modified Files: Makefile testtaosM.nc Log Message: Rest of app makefiles changed. Index: Makefile =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestTaos/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile 14 Jan 2004 15:22:54 -0000 1.2 --- Makefile 3 Feb 2004 19:09:54 -0000 1.3 *************** *** 1,5 **** - COMPONENT=testtaos - SENSORBOARD=taos_tsl250rd include ../Makelocal include $(TOSROOT)/apps/Makerules --- 1,9 ---- include ../Makelocal + FIREBOARD_PATH += -I$(MTS420CA)/sensors/taos_tsl250rd + LOCAL_PATH += $(FIREBOARD_PATH) + + COMPONENT=testtaos + PFLAGS := $(LOCAL_PATH) $(LOCAL_DEFINES) $(PFLAGS) + include $(TOSROOT)/apps/Makerules Index: testtaosM.nc =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestTaos/testtaosM.nc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** testtaosM.nc 22 Jan 2004 21:53:40 -0000 1.2 --- testtaosM.nc 3 Feb 2004 19:09:54 -0000 1.3 *************** *** 74,78 **** call Leds.greenToggle(); ! SODbg(DBG_USR2, "Taos Ch%i data: %i Cord: %i Step: %i ADC Counts: %i Light(lux): %i \r\n", channel, taos_data,cord,step,adc,(int)lux); --- 74,78 ---- call Leds.greenToggle(); ! SODbg(DBG_USR2, "$Taos Ch%i data: %i Cord: %i Step: %i ADC Counts: %i Light(lux): %i \r\n", channel, taos_data,cord,step,adc,(int)lux); |
From: <do...@us...> - 2004-02-04 01:39:48
|
Update of /cvsroot/firebug/fireboard/fireboard/apps/TestGPS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32331/TestGPS Modified Files: Makefile Log Message: Rest of app makefiles changed. Index: Makefile =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestGPS/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Makefile 5 Jan 2004 21:03:27 -0000 1.1.1.1 --- Makefile 3 Feb 2004 19:09:54 -0000 1.2 *************** *** 1,5 **** ! COMPONENT=testgps ! SENSORBOARD=leadtek9546 include ../Makelocal include $(TOSROOT)/apps/Makerules --- 1,11 ---- ! include ../Makelocal + FIREBOARD_PATH += -I$(MTS420CA)/sensors/leadtek9546 + LOCAL_PATH += $(FIREBOARD_PATH) + + COMPONENT=testgps + + PFLAGS := $(LOCAL_PATH) $(LOCAL_DEFINES) $(PFLAGS) + include $(TOSROOT)/apps/Makerules |
From: <do...@us...> - 2004-02-04 01:38:54
|
Update of /cvsroot/firebug/fireboard/fireboard/apps/TestADXL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23099/TestADXL Modified Files: Makefile testadxlM.nc Log Message: Changed build to limit wiring to locally defined components. Index: Makefile =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestADXL/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Makefile 5 Jan 2004 21:03:27 -0000 1.1.1.1 --- Makefile 3 Feb 2004 18:58:06 -0000 1.2 *************** *** 1,5 **** - COMPONENT=testadxl - SENSORBOARD=adxl202je include ../Makelocal include $(TOSROOT)/apps/Makerules --- 1,10 ---- include ../Makelocal + FIREBOARD_PATH += -I$(MTS420CA)/sensors/adxl202je + LOCAL_PATH += $(FIREBOARD_PATH) + + COMPONENT=testadxl + + PFLAGS := $(LOCAL_PATH) $(LOCAL_DEFINES) $(PFLAGS) + include $(TOSROOT)/apps/Makerules Index: testadxlM.nc =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestADXL/testadxlM.nc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** testadxlM.nc 5 Jan 2004 21:03:27 -0000 1.1.1.1 --- testadxlM.nc 3 Feb 2004 18:58:06 -0000 1.2 *************** *** 56,60 **** ! SODbg(DBG_USR2, "ADXL x: %i, y: %i.\n",(int)(msg->xdata),(int)(msg->ydata)); call Leds.greenToggle(); return SUCCESS; --- 56,60 ---- ! SODbg(DBG_USR2, "$ADXL x: %i, y: %i.\r\n",(int)(msg->xdata),(int)(msg->ydata)); call Leds.greenToggle(); return SUCCESS; *************** *** 62,66 **** } ! event result_t ADXL202JE.error(uint16_t) { return SUCCESS; } --- 62,66 ---- } ! async event result_t ADXL202JE.error(uint16_t) { return SUCCESS; } |
From: <do...@us...> - 2004-02-04 01:38:53
|
Update of /cvsroot/firebug/fireboard/fireboard/apps/TestGPS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23099/TestGPS Modified Files: testgpsM.nc Log Message: Changed build to limit wiring to locally defined components. Index: testgpsM.nc =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestGPS/testgpsM.nc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** testgpsM.nc 28 Jan 2004 22:39:59 -0000 1.5 --- testgpsM.nc 3 Feb 2004 18:58:06 -0000 1.6 *************** *** 43,47 **** // Loading programs doesn't work yet. //call LeadTek.loadProgram((void*)gps_test); ! call LeadTek.loadProgram((void*)gps_syncmode_off); #if 0 --- 43,47 ---- // Loading programs doesn't work yet. //call LeadTek.loadProgram((void*)gps_test); ! call LeadTek.loadProgram((uint8_t*)gps_syncmode_off); #if 0 *************** *** 72,78 **** event result_t LeadTek.dataReady(void * userdata) { - int i; - #if RAW_DATA GPS_Msg * gps_data = (GPS_Msg*)userdata; --- 72,77 ---- event result_t LeadTek.dataReady(void * userdata) { #if RAW_DATA + int i; GPS_Msg * gps_data = (GPS_Msg*)userdata; |
From: <do...@us...> - 2004-02-04 01:38:38
|
Update of /cvsroot/firebug/fireboard/fireboard/apps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23099 Modified Files: Makelocal Log Message: Changed build to limit wiring to locally defined components. Index: Makelocal =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/apps/Makelocal,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Makelocal 20 Jan 2004 21:17:24 -0000 1.4 --- Makelocal 3 Feb 2004 18:58:05 -0000 1.5 *************** *** 1,31 **** ! #declare it locally ! #MTS420CA = $(HOME)/sf.net/firebug/fireboard/fireboard ! ! ifndef MTS420CA ! $(error Environment variable 'MTS420CA' not declared) ! endif ! ! ! LOCAL_PATH += -I$(MTS420CA)/sensors/$(SENSORBOARD) ! ! LOCAL_PATH += -I$(MTS420CA)/sensors/adg715 ! ! # This is a problem. ! LOCAL_PATH += -I$(MTS420CA)/sensors/sensirion_sht11 ! LOCAL_PATH += -I$(MTS420CA)/sensors/intersema5534ap ! LOCAL_PATH += -I$(MTS420CA)/sensors/taos_tsl250rd ! ! LOCAL_PATH += -I$(MTS420CA)/interfaces/ ! LOCAL_PATH += -I$(MTS420CA)/sensorboards/xbow_mts420ca ! ! ! #LOCAL_PATH += -I$(MTS420CA)/apps/TestFireBoardData ! ! #make sure tree outside can find BLAST ! ifndef BLASTROOT ! $(error Environment variable 'BLASTROOT' not declared) ! endif ROUTE_PATH += -I$(BLASTROOT)/Sender \ --- 1,8 ---- ! MTS420CA = $(HOME)/firebug/fireboard/tos ! FIREBOARD_PATH = -I$(MTS420CA)/interfaces/ ! FIREBOARD_PATH += -I$(MTS420CA)/sensorboards/xbow_mts420ca ! FIREBOARD_PATH += -I$(MTS420CA)/sensors/adg715 ROUTE_PATH += -I$(BLASTROOT)/Sender \ *************** *** 35,44 **** -I$(BLASTROOT)/ParentSelection - LOCAL_PATH += $(ROUTE_PATH) - TOPDIRS += $(MTS420CA)/apps - PFLAGS := $(LOCAL_PATH) $(LOCAL_DEFINES) $(PFLAGS) CFLAGS = -DCC1K_DEFAULT_FREQ=CC1K_433_002_MHZ --- 12,19 ---- -I$(BLASTROOT)/ParentSelection + #LOCAL_PATH += $(ROUTE_PATH) CFLAGS = -DCC1K_DEFAULT_FREQ=CC1K_433_002_MHZ |