Hello, Could you post the piece of nesc code that sends the message? 2010/2/15 Sam Azarro <[email protected]>: > Hello, > > i work on tinyos 2.x . i could send and a sequence of numbers and display it > on my pc but when i want to send an array > that i defined in testSerialC like this: > uint8_t tab[] = > {55,96,88,44,33,99,11,66,15,34,72,42,75,26,18,57,19,4,7,3,1,9,66,74,41,39,11,33}; > > i get the following error: > > $ java TestSerial -comm ser...@com6:telos > Sending packet 0 > ser...@com6:115200: resynchronising > receive error for TestSerialMsg (AM type 137): invalid length message > received (too short) > Sending packet 1 > Sending packet 2 > receive error for TestSerialMsg (AM type 137): invalid length message > received (too short) > Sending packet 3 > Sending packet 4 > receive error for TestSerialMsg (AM type 137): invalid length message > received (too short) > > not that i also changed code on the TestSerial.java and i defined my tab in > TestSerial.h > > #ifndef TEST_SERIAL_H > #define TEST_SERIAL_H > > typedef nx_struct test_serial_msg { > nx_uint16_t counter; > nx_uint8_t tab[]; > } test_serial_msg_t; > enum { > AM_TEST_SERIAL_MSG = 0x89, > }; > > #endif > > Can someone help me to resolve this please??? > Regards, > Sam > > > ________________________________ > Hotmail : une messagerie fiable avec la protection anti-spam performante de > Microsoft Inscrivez-vous > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
-- Jordi Soucheiron Software Engineer DEXMA Parc Tecnològic la Salle Sant Joan de la Salle, 42 08022 Barcelona t/f: [+34] 93 181 01 95 www.dexmatech.com [email protected] _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
