Hi Davide, Thanks for replying. I have tried your suggestion but still my program not responding using MIG tool.
Actually, My BlinkToRadio application should sends the radio packets over the radio to the BaseStation. Here BlinkToRadio is powered by AA batteries and BaseStation is serially attached to the PC at COM0. The whole application is working with Listen tool and MOTECOM tool. But when I am using the MIG tool, I need to type "Java.net.tinyos.tools.MsgReader BlinkToRadioMsg" at BlinkToRadio directory (as shown in tinyos 2.x tutorial chapter 4 (mote-to-pc communication)). When i typed this java command at BlinkToRadio directory, it gives me below error. ###################################################################### pudn@BaseUbuntu:~/workspace/BlinkToRadio/src$ java net.tinyos.tools.MsgReader BlinkToRadioMsg sf@localhost:9002 died - exiting (java.net.ConnectException: Connection refused ##################################################################### I hope you got my point what i am asking...... Thanks in advance.... -JAX On Fri, Oct 11, 2013 at 6:33 PM, Davide Molteni <[email protected]> wrote: > Hi, > the error you report in your mail is not abaut MIG but about the > connection between the pc and node. > > command you run don't specify how the program have to connect to the ote > so by deafult use a serialForwarder on same machine and port 9002 > (sf@localhost:9002). > > If the your telosb is connect to your pc you have to use a serial > connection using something like serial@/dev/ttyUSBx:telosb (where ttyUSBx > must taken by motelist command). > > try something like: > java net.tinyos.tools.MsgReader BlinkToRadioMsg -comm serial@ > /dev/ttyUSB0:telosb > > Davide > > > On 11/10/2013 10:04, pudn jax wrote: > > Dear all, > > I am very new fly to this tinyos-world. > Since last couple of days i am totally struck on MIG-based BlinkToRadio > application. I want to see the BlinkToRadio packets using MIG tool. I have > followed the all steps from Chapter-4 tinyos 2.x tutorial. My program is > compiling without any errors, as the output is shown below: > > ################################################################################## > pudn@BaseUbuntu:~/workspace/BlinkToRadio/src$ make telosb install.1 > bsl,/dev/ttyUSB1 > mkdir -p build/telosb > compiling BlinkToRadioAppC to a telosb binary > ncc -o build/telosb/main.exe -Os -fnesc-separator=__ -Wall -Wshadow > -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= > -DDEFINED_TOS_AM_GROUP=0x22 -I/opt/tinyos-2.1.2/tos/lib/T2Hack > -DIDENT_APPNAME=\"BlinkToRadioApp\" -DIDENT_USERNAME=\"pradeep\" > -DIDENT_HOSTNAME=\"BaseUbuntu\" -DIDENT_USERHASH=0xf6644d2cL > -DIDENT_TIMESTAMP=0x5257ae01L -DIDENT_UIDHASH=0x83dd5596L > BlinkToRadioAppC.nc -lm > /opt/tinyos-2.1.2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: > #warning "*** LOW POWER COMMUNICATIONS DISABLED ***" > compiled BlinkToRadioAppC to build/telosb/main.exe > 11300 bytes in ROM > 358 bytes in RAM > msp430-objcopy --output-target=ihex build/telosb/main.exe > build/telosb/main.ihex > writing TOS image > tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump --target > ihex build/telosb/main.ihex build/telosb/main.ihex.out-1 TOS_NODE_ID=1 > ActiveMessageAddressC__addr=1 > installing telosb binary using bsl > tos-bsl --telosb -c /dev/ttyUSB1 -r -e -I -p build/telosb/main.ihex.out-1 > MSP430 Bootstrap Loader Version: 1.39-goodfet-8 > Mass Erase... > Transmit default password ... > Invoking BSL... > Transmit default password ... > Current bootstrap loader version: 1.61 (Device ID: f16c) > Changing baudrate to 38400 ... > Program ... > 11414 bytes programmed. > Reset device ... > rm -f build/telosb/main.exe.out-1 build/telosb/main.ihex.out-1 > > > ############################################################################### > > Whenever, i follow the next step from Tutorial 4 (i.e., > java.net.tinyos,tools.MsgReader BlinkToRadioMsg), it gives me below message: > > ###################################################################### > pudn@BaseUbuntu:~/workspace/BlinkToRadio/src$ java > net.tinyos.tools.MsgReader BlinkToRadioMsg > sf@localhost:9002 died - exiting (java.net.ConnectException: Connection > refused > ##################################################################### > > I would like request anyone who can help me out with this issue, so that > I can see BlinkToRadio results using MIG tool. > > Thanks in advance!!! > > -JAX > > > > > > _______________________________________________ > Tinyos-help mailing > [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
