The problem is that you only have 4Kb of RAM on a real device and the length field you can specify in a message is 8bits long... MS
avinash chaurasia wrote: > sorry i got the answer it should be like > env CFLAGS="-DTOSH_DATA_LENGTH=1000" make micaz sim > > and it works > but when i increase message length in the code to 300 it shows > segmentation fault and works well when it is 250. Is it the problem with > code or tossim doesnt support length of 300? > > Thanks > Avinash Kumar Chaurasia > Department of Computer Science > IIT Kanpur, India > > > On Thu, May 13, 2010 at 9:53 PM, avinash chaurasia > <[email protected] <mailto:[email protected]>> wrote: > > hello arik thanx for your reply as you said i did used follwoing command > env CFLAGS+="-DTOSH_DATA_LENGTH=1000" make micaz sim > now call Packet.getPayload(&packet,sizeof(com_packet_t) returns NULL > > > Thanks > Avinash Kumar Chaurasia > Department of Computer Science > IIT Kanpur, India > > > On Wed, Apr 14, 2010 at 6:57 AM, Arik Sapojnik <[email protected] > <mailto:[email protected]>> wrote: > > Yes. > > CFLAGS += -DTOSH_DATA_LENGTH=<your desired size> > > Arik > > On Wed, Apr 14, 2010 at 09:36, avinash chaurasia > <[email protected] > <mailto:[email protected]>> wrote: > > Hello all, > I am sending using AMSend.send(). the length message that > can be exchanged is 29 fixed. Is there any way that I can > increase this length. > > Thanks > Avinash Kumar Chaurasia > Department of Computer Science > IIT Kanpur, India > > _______________________________________________ > Tinyos-help mailing list > [email protected] > <mailto:[email protected]> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > -- > Best Regards, > Arik Sapojnik > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
