Hello, I've installed RadioCountToLeds in a z1 mote to test cc2420 security but when I try to get the message value with baseStation installed in other mote, I only get the plain text I'm sending, not encrypted. The code is the same it's on
https://github.com/tinyos/tinyos-main/tree/master/apps/tests/cc2420/TestSecurity/RadioCountToLeds1 but using call CC2420Security.setCcm(&packet, 1, 0, 16); instead call CC2420Security.setCtr(&packet, 0, 0); I use msp430-gcc 4.6.3, and to display BaseStation results I use the serial port listener typing: java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:115200 If I test setCtr(&packet,1,0) and setCbcMac(&packet,1,0,16) results are plain text instead cipher text or plain text without mac calculation. I've also tested the same program (RadioCountToLeds) over cooja simulator and for telosb motes the result is the same. Do you know what could be the problem? Do I have to modify the Makefile? Cheers, Ester ________________________________ Este correo electr?nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci?n de car?cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilizaci?n, divulgaci?n y/o copia sin autorizaci?n est? prohibida en virtud de la legislaci?n vigente. En el caso de haber recibido este correo electr?nico por error, se ruega notificar inmediatamente esta circunstancia mediante reenv?o a la direcci?n electr?nica del remitente. Evite imprimir este mensaje si no es estrictamente necesario. This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address. Avoid printing this message if it is not absolutely necessary.
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
