Re: [Tinyos-help] How to Tunnel CTP Header Over Serial

2012-09-19 Thread kevin doran
I solved the problem. The code should have been: event message_t* Receive.receive(message_t* msg, void* payload, uint8_t len) { // ctp_data_header_t* in = (ctp_data_header_t*) payload; // Wrong: payload is the CTP payload ctp_data_header_t* in = (ctp_data_header_t*) msg-data; // msg is the AM

Re: [Tinyos-help] How to Tunnel CTP Header Over Serial

2012-09-11 Thread Omprakash Gnawali
Can you check if you are receiving the proper bytes corresponding to the message on the PC side using seriallisten or serialforwarder and sflisten? If you are receiving proper bytes, the problem is in your Java code. Otherwise, the problem might be on the mote side. - om_p On Sat, Sep 1, 2012 at

[Tinyos-help] How to Tunnel CTP Header Over Serial

2012-09-10 Thread kevin doran
Hi, I have been struggling for days trying to tunnel a CTP header over serial and receive the header in Java. I have just modified the MultihopOscilloscope program. Here is my code: The base node of a CTP network receives packets and forwards them on serial as follows: event message_t*