bg | 3 Jul 15:26 2007
Picon
Picon

contiki-2.x/core/lib rand.h,1.1,1.2

Update of /cvsroot/contiki/contiki-2.x/core/lib
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv20095

Modified Files:
	rand.h 
Log Message:
* Use 16x16 bit ==> 32 bit multiplications. This gives a speedup of 5 on
  the MSP430.

Index: rand.h
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/core/lib/rand.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** rand.h	17 Jun 2006 22:41:18 -0000	1.1
--- rand.h	3 Jul 2007 13:26:15 -0000	1.2
***************
*** 51,55 ****
   */

! extern unsigned long rand_state;

  int rand(void);
--- 51,55 ----
   */

! extern int32_t rand_state;

  int rand(void);
(Continue reading)

bg | 3 Jul 15:26 2007
Picon
Picon

contiki-2.x/core/lib rand.c,1.6,1.7

Update of /cvsroot/contiki/contiki-2.x/core/lib
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv19743

Modified Files:
	rand.c 
Log Message:
* Use 16x16 bit ==> 32 bit multiplications. This gives a speedup of 5 on
  the MSP430.

Index: rand.c
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/core/lib/rand.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** rand.c	5 Jun 2007 10:02:53 -0000	1.6
--- rand.c	3 Jul 2007 13:26:00 -0000	1.7
***************
*** 62,75 ****
   */
  #ifdef __GNUC__
! unsigned long rand_state __attribute__((section(".noinit")));
  #else
! unsigned long rand_state = 123459876ul;
  #endif

  int
! rand()
  {
!   rand_state = (16807*rand_state) % 2147483647ul;
(Continue reading)

Fredrik Österlind | 4 Jul 09:44 2007
Picon
Picon

contiki-2.x/tools/cooja/java/se/sics/cooja Simulation.java, 1.13, 1.14

Update of /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5273/tools/cooja/java/se/sics/cooja

Modified Files:
	Simulation.java 
Log Message:
nulll constructor arguments

Index: Simulation.java
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja/Simulation.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Simulation.java	19 Jun 2007 09:58:43 -0000	1.13
--- Simulation.java	4 Jul 2007 07:44:13 -0000	1.14
***************
*** 445,449 ****
              element.getText().trim());

!         Mote mote = moteClass.getConstructor((Class[]) null).newInstance();
          if (mote.setConfigXML(this, element.getChildren(), visAvailable)) {
            addMote(mote);
--- 445,449 ----
              element.getText().trim());

!         Mote mote = moteClass.getConstructor((Class[]) null).newInstance((Object[]) null);
          if (mote.setConfigXML(this, element.getChildren(), visAvailable)) {
            addMote(mote);

(Continue reading)

Fredrik Österlind | 4 Jul 18:13 2007
Picon
Picon

contiki-2.x/tools/cooja/java/se/sics/cooja Simulation.java, 1.14, 1.15

Update of /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5067/tools/cooja/java/se/sics/cooja

Modified Files:
	Simulation.java 
Log Message:
saving random seed with simconfig

Index: Simulation.java
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja/Simulation.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** Simulation.java	4 Jul 2007 07:44:13 -0000	1.14
--- Simulation.java	4 Jul 2007 16:13:17 -0000	1.15
***************
*** 305,308 ****
--- 305,313 ----
      config.add(element);

+     // Random seed
+     element = new Element("randomseed");
+     element.setText(Long.toString(randomSeed));
+     config.add(element);
+ 
      // Radio Medium
      element = new Element("radiomedium");
***************
*** 373,376 ****
(Continue reading)

Nicolas Tsiftes | 5 Jul 10:35 2007
Picon
Picon

contiki-2.x/platform/msb430 msb430-slip-arch.c, 1.1, 1.2

Update of /cvsroot/contiki/contiki-2.x/platform/msb430
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv10812

Modified Files:
	msb430-slip-arch.c 
Log Message:
Improvement batch.

Index: msb430-slip-arch.c
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/platform/msb430/msb430-slip-arch.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** msb430-slip-arch.c	28 Jun 2007 12:49:57 -0000	1.1
--- msb430-slip-arch.c	5 Jul 2007 08:35:13 -0000	1.2
***************
*** 8,12 ****
  slip_arch_writeb(unsigned char c)
  {
! 	rs232_send(c);
  }
  /*---------------------------------------------------------------------------*/
--- 8,12 ----
  slip_arch_writeb(unsigned char c)
  {
!   rs232_send(c);
  }
  /*---------------------------------------------------------------------------*/
***************
(Continue reading)

Nicolas Tsiftes | 5 Jul 10:35 2007
Picon
Picon

contiki-2.x/platform/msb430/dev cc1020-internal.h, 1.1, 1.2 cc1020.c, 1.2, 1.3 cc1020.h, 1.1, 1.2 dma.c, 1.3, 1.4 dma.h, 1.2, 1.3

Update of /cvsroot/contiki/contiki-2.x/platform/msb430/dev
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv10812/dev

Modified Files:
	cc1020-internal.h cc1020.c cc1020.h dma.c dma.h 
Log Message:
Improvement batch.

Index: cc1020.h
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/platform/msb430/dev/cc1020.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** cc1020.h	28 Jun 2007 12:52:41 -0000	1.1
--- cc1020.h	5 Jul 2007 08:35:13 -0000	1.2
***************
*** 61,73 ****
  void cc1020_init(const u8_t* config);

! int cc1020_on();

! void cc1020_set_rx();

! void cc1020_set_tx();

! void cc1020_off();

! void cc1020_set_receiver(void (* recv)(void));

(Continue reading)

Fredrik Österlind | 10 Jul 14:43 2007
Picon
Picon

contiki-2.x/tools/cooja/java/se/sics/cooja/radiomediums UDGM.java, 1.4, 1.5

Update of /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja/radiomediums
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv31815/tools/cooja/java/se/sics/cooja/radiomediums

Modified Files:
	UDGM.java 
Log Message:
added udgm random transmission support.

random mode can currently only be activated via simulation configs (.csc)
udgm uses the same random seed as the simulation

Index: UDGM.java
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja/radiomediums/UDGM.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** UDGM.java	18 May 2007 15:17:11 -0000	1.4
--- UDGM.java	10 Jul 2007 12:43:24 -0000	1.5
***************
*** 84,87 ****
--- 84,101 ----
    public static final double SS_OK_WORST = -30;

+   public static final double PACKET_SUCCESS_RATIO = 0.95;
+ 
+   // Maximum ranges (SS indicator 100)
+   private static double TRANSMITTING_RANGE = 50;
+ 
+   private static double INTERFERENCE_RANGE = 100;
(Continue reading)

Fredrik Österlind | 10 Jul 14:43 2007
Picon
Picon

contiki-2.x/tools/cooja/java/se/sics/cooja Simulation.java, 1.15, 1.16

Update of /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv31815/tools/cooja/java/se/sics/cooja

Modified Files:
	Simulation.java 
Log Message:
added udgm random transmission support.

random mode can currently only be activated via simulation configs (.csc)
udgm uses the same random seed as the simulation

Index: Simulation.java
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja/Simulation.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** Simulation.java	4 Jul 2007 16:13:17 -0000	1.15
--- Simulation.java	10 Jul 2007 12:43:23 -0000	1.16
***************
*** 280,283 ****
--- 280,290 ----

    /**
+    *  <at> return Current simulation random seed
+    */
+   public long getRandomSeed() {
+     return randomSeed;
+   }
+   
(Continue reading)

Fredrik Österlind | 11 Jul 17:22 2007
Picon
Picon

contiki-2.x/tools/cooja/java/se/sics/cooja/contikimote ContikiMoteType.java, 1.16, 1.17

Update of /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja/contikimote
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13195/tools/cooja/java/se/sics/cooja/contikimote

Modified Files:
	ContikiMoteType.java 
Log Message:
uip uaodv using crc

Index: ContikiMoteType.java
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** ContikiMoteType.java	8 Jun 2007 12:25:54 -0000	1.16
--- ContikiMoteType.java	11 Jul 2007 15:22:22 -0000	1.17
***************
*** 111,115 ****
          return " cooja-radio.c radio-uip.c init-net-uip.c";
        if (this == UIP_UAODV)
!         return " cooja-radio.c radio-uip-uaodv.c init-net-uip-uaodv.c";
        if (this == RIME)
          return " cooja-radio.c init-net-rime.c";
--- 111,115 ----
          return " cooja-radio.c radio-uip.c init-net-uip.c";
        if (this == UIP_UAODV)
!         return " cooja-radio.c radio-uip-uaodv.c init-net-uip-uaodv.c crc16.c";
        if (this == RIME)
          return " cooja-radio.c init-net-rime.c";

(Continue reading)

Fredrik Österlind | 11 Jul 17:23 2007
Picon
Picon

contiki-2.x/platform/cooja/net radio-uip-uaodv.c, 1.1, 1.2

Update of /cvsroot/contiki/contiki-2.x/platform/cooja/net
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13561/platform/cooja/net

Modified Files:
	radio-uip-uaodv.c 
Log Message:
unicast packets being acknowledged

Index: radio-uip-uaodv.c
===================================================================
RCS file: /cvsroot/contiki/contiki-2.x/platform/cooja/net/radio-uip-uaodv.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** radio-uip-uaodv.c	19 May 2007 14:25:43 -0000	1.1
--- radio-uip-uaodv.c	11 Jul 2007 15:23:42 -0000	1.2
***************
*** 41,56 ****
  #include <stdio.h>

! static const struct radio_driver *radio;

  #define uip_udp_sender() (&((struct uip_udpip_hdr *)&uip_buf[UIP_LLH_LEN])->srcipaddr)

! #define HEADER_ID_LENGTH strlen(uniqueID)
  #define HEADER_NEXT_FWD HEADER_ID_LENGTH
  #define HEADER_LENGTH HEADER_NEXT_FWD + 4
- static char* uniqueID = "fWd:";

  static struct uaodv_rt_entry *route;
(Continue reading)


Gmane