Hi, The following code doesnt work for injecting packets.
from RadioCountData import * msg = RadioCountData() msg.set_type(1); msg.set_data(55); pkt = t.newPacket(); pkt.setData(msg.data); pkt.setType(msg.get_amType()) pkt.setDestination(3); pkt.setSource(6); my struct in .h file is: typedef nx_struct radio_count_data { nx_uint16_t type; //has NDP,DATA,PROVE nx_uint16_t data; } radio_count_data_t; Makefile : BUILD_EXTRA_DEPS = RadioCountData.py RadioCountData.class #added by me RadioCountData.py: RadioCountToLeds.h mig python -target=$(PLATFORM) $(CFLAGS) -python-classname=RadioCountData RadioCountToLeds.h radio_count_data -o $@ RadioCountData.class: RadioCountData.java javac RadioCountData.java RadioCountData.java: RadioCountToLeds.h mig java -target=$(PLATFORM) $(CFLAGS) -java-classname=RadioCountData RadioCountToLeds.h radio_count_data -o $@ include $(MAKERULES) The same works for radio_count_msg as given in packet.py. Any help please ? Please let me know if I am doing something wrong. regards, Vijayant.
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help