On Sat, Oct 12, 2013 at 3:07 PM, pudn jax <[email protected]> wrote: > Hi Davide, > > Thanks for replying. I have tried your suggestion but still my program not > responding using MIG tool. >
why do you keep talking about MIG. It isn't involved in the error you've described. The person who replied said you need to start the SerialForwarder because the java tool is by default trying to connect to the SerialForwarder on port 9002. typing "Java.net.tinyos.tools.MsgReader BlinkToRadioMsg" doesn't run the MIG tool. It does use the output of MIG in that MIG was used earlier in the build process to build message interfaces (MIG = message interface generator). So yes MIG has something to do with how all this stuff works, but it really doesn't have anything to do with what you are complainingg about. The previous replier has indeed told you what is wrong but you don't get it. I don't see how you could have tried their suggestion and then still complain about your program is not responding using the MIG tool. The thing is, it doesn't work that way. What you are saying doesn't make any sense because MIG really isn't involved at the point you are talking about. It isn't involved. You should go back to lesson 4 and actually try to understand all of it. In the first part of lesson 4, it talks about the MOTECOM environment variable (no MOTECOM is NOT a tool, it is an environment variable). The MOTECOM environment variable points at what serial point you want to connect to (or to the serial forwarder port). > > 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 > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
