Hi there

i had installed tinyos 1.1.0 with that jdk 1.4.1 was installed too... prior to that there was no jdk installed on the system... the comm libraries worked fine then....

later i needed to install jsapi; my system failed to read any valid JVM on the machine... so i installed jdk 1.4.1 available on sun's site... after that the jsapi works fine... but there is an error whenever i want to use Listen

Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
        at net.tinyos.packet.BuildSource.makeSerial(BuildSource.java:364)
        at net.tinyos.packet.BuildSource.makeArgsSerial(BuildSource.java:353)
        at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:145)
        at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:118)
        at net.tinyos.tools.Listen.main(Listen.java:47)

i dunno what to do...


plz help
thanks

prashant
On 5/16/06, Michael Schippling <[EMAIL PROTECTED]> wrote:
You should be able to set xmit power dymanically using:

        // set Xmit strength
        //       mica2 916 Mhz  -20          0x02 --   2
        //                      -10          0x09 --   9
        //                        0 (1mw)    0x80 -- 128
        //                        5          0xFF -- 255
        call CC1000Control.SetRFPower( value );

There is a similar i'face for the micaz as well, but I don't have
an example right at hand.

Also if you compile under the contrib/xbow tree you get the MakeXbowLocal
file that has a compile time define for xmit power. In fact, I was not
completely successful at getting the mica2 radio to work without the xbow
code. I know that tree is usable with 1.1.7 and above, so you don't need
to go all the way to .15.

MS

Aditya Bhave wrote:
> If you are using the MICA2 motes with tinyos-1.1.10 you should edit the
> CC1000Const.h file in /tos/platform/mica2.
> Scroll down to CC1K_Params[5][31] in the file. Depending on the freq of
> the motes you are using, you should change the contents of PA_POW at the
> appropriate place. The default value is 0xff. If you change it to 0x00
> you can get a range of 3 feet or around that much.
>
> If you are using tinyos-1.1.15 you should edit the MakeXbowLocal file.
> Check the manual that comes on the CD to see what and where to change.
>
> I perosnally did the above in my project. If you figure out how the same
> thing can be done using the Pots interface in the program itself, please
> let me know. Thanx
>
> On 5/15/06, *Prashant Kr. Gupta* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     I have been trying to reduce the radio range by using Pot interface...
>     but it seems that it doesn't helps much... what can i do
>
>     thanks
>     prashant
>
>     _______________________________________________
>     Tinyos-help mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>     <https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
>
>
>
>
>
> --
> regards,
> Aditya Bhave
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to