[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/shockfish/tools/java_tc65/src/com/shockfish/tinyos/packet CldcNetworkByteSource.java, 1.1, 1.2 CldcPacketizer.java, 1.1, 1.2

rogmeier rogmeier at users.sourceforge.net
Mon Sep 11 06:40:07 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/contrib/shockfish/tools/java_tc65/src/com/shockfish/tinyos/packet
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv28926/src/com/shockfish/tinyos/packet

Modified Files:
	CldcNetworkByteSource.java CldcPacketizer.java 
Log Message:
TC65/TinyNode foundations.


Index: CldcPacketizer.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/shockfish/tools/java_tc65/src/com/shockfish/tinyos/packet/CldcPacketizer.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CldcPacketizer.java	25 May 2006 19:04:53 -0000	1.1
--- CldcPacketizer.java	11 Sep 2006 13:40:03 -0000	1.2
***************
*** 78,82 ****
  	 * dropped.
  	 */
! 	final static int DEBUG_LEVEL = 9;
  
  	final static int DEBUG_DEBUG = 8;
--- 78,82 ----
  	 * dropped.
  	 */
! 	final static int DEBUG_LEVEL = 0;
  
  	final static int DEBUG_DEBUG = 8;
***************
*** 137,141 ****
  	synchronized public void open(Messenger messages) throws IOException {
  		super.open(messages);
! 		reader.start();
  	}
  
--- 137,142 ----
  	synchronized public void open(Messenger messages) throws IOException {
  		super.open(messages);
! 		if (!reader.isAlive())
! 			reader.start();	
  	}
  
***************
*** 205,210 ****
  		if (inPackets != null) {
  			synchronized (inPackets) {
! 				if (DEBUG_LEVEL >= DEBUG_DEBUG)
! 					inPackets.addElement(packet);
  				inPackets.notify();
  			}
--- 206,210 ----
  		if (inPackets != null) {
  			synchronized (inPackets) {
! 				inPackets.addElement(packet);
  				inPackets.notify();
  			}
***************
*** 264,269 ****
  				int packetType = packet[0] & 0xff;
  				int pdataOffset = 1;
! 				System.out
! 						.println(name + " received packet type " + packetType);
  				if (packetType == P_PACKET_ACK) {
  					// send ack
--- 264,269 ----
  				int packetType = packet[0] & 0xff;
  				int pdataOffset = 1;
! 				//System.out
! 				//		.println(name + " received packet type " + packetType);
  				if (packetType == P_PACKET_ACK) {
  					// send ack
***************
*** 283,287 ****
  			}
  		} catch (IOException e) {
! 			System.out.println("--- IOE");
  			e.printStackTrace();
  		}
--- 283,287 ----
  			}
  		} catch (IOException e) {
! 			//System.out.println("--- IOE");
  			e.printStackTrace();
  		}



More information about the Tinyos-contrib-commits mailing list