Please send questions to the help list not me directly. I'm cc'ing this back to the list.
I'm not sure what you mean by "can't receive them in the base". What exactly happens? A quick&dirty way would be to cast your int32 array to char* and just copy it into the message data buffer. That's fundamentally what happens when any message payload structure is written into the data area. Purist programmers will be aghast, so keep those cards and letters coming... Then on the other side you have to figure out what byte-ordering you get. All the TOS platforms I know are little-endian. I've only used int16s but I think you can just read bytes "right to left" starting from the low order byte. That can be easily tested by sending some known values. Or as I said, read-up on the MIG message generator. MS [EMAIL PROTECTED] wrote: > Hi again and thank you too mush for the info, > My project is about an encryption algorithm (tiny encryption algorithm). The > network consists of 2 clients which are sensing - enrypting and sending the > message to a base station. The problem is that the fuction of the encryption > splits the encrypted values in 2 32bits integers. Thats why i have to sent an > uint32_t array. > In my work so far i just took teh Osilloscope application and the TosBase and > i > modify them in order to send the values encrypted. > When i am running the application the base and the 2 clients are initialized. > Although the messages are sent by the clients I( cant receive them in the > base. > I could send you the code i have done so far if you willing for further help. > thanks again > > GN -- Platform: WinXP/Cygwin TinyOS version: 1.x, Boomerang Programmer: MIB510 Device(s): Mica2, MicaZ, Tmote Sensor board: homebrew _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
