Hi,

I do not know the encryption-functionality, but regarding the serial
communication, have you tried to check what the Java program is
transmitting? Try to connect it to  serial terminal in another
computer. Also, you may try to implement a minimal serial-to-serial
communication program so everything that the Java writes is gets to the
mote, and this transmit it back to the computer.

Good luck!
Sergio


On Thu, Feb 2, 2012 at 10:42 PM, amira Mnif <[email protected]> wrote:

> Hello,
> I have a PC connected to a telosb node through the usb port.
> I have also a java program that runs on this PC,this program as soon as
> it receives a message M1 from the node telosb connected to the USB port it
> will respond with another message M2.
> So in the code of NESC of the node telosb connected to the PC it was an
> event Receive M2:
> event message_t* ReceiveM2.receive(message_t* msg, void* payload, uint8_t
> len):
>  at this event there are instructions, I add the function encrypt from
> tinyecc library to these instructions
>   “C_len = call ECIES.encrypt(C, 2*KEYDIGITS*NN_DIGIT_LEN + 1 + MAX_M_LEN
> + HMAC_LEN, AKu, 20, &Ygw);”
> so the event Receive is running successively 5 times despite the java
> program sends the message M2 only once.
> My question is why the event receive is executed repeatedly more than one
> time despite the message is received really once?
>
> _______________________________________________
> 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

Reply via email to