BUG Community

Welcome! Log In

Forums Java SerialCommunication

Subscribe to SerialCommunication  6 posts, 4 voices

Log in to reply to this topic
 
Aug 17, 2011 2:13pm
User_img_not_found_02_med htambekar 4 posts

Hello EveryOne,

Please Help.

I am trying to do serial-communication of a device and BUG. For that purpose I added IVonHippelSerialPort.class.getName() in the array of services in Activator. For User Interface I used applet (JFrame). Now when I am trying to run my code I am getting an error as follows

08/17 19:04.07 ERROR  : Nested Exception: com/buglabs/bug/module/vonhippel/pub/IVonHippelSerialPort

java.lang.NoClassDefFoundError: com/buglabs/bug/module/vonhippel/pub/IVonHippelSerialPort

        at sample.Activator.<clinit>(Activator.java:25)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

 

 

Somebdoy Please Help….........

Aug 18, 2011 7:04pm
Medium Bug Labs team kgilmer 215 posts

Hi htambekar,

  Are you seeing this error when running in the BUG Simulator or when running in a BUG?  What SDK and BUG versions are you using?

thx

ken

Aug 19, 2011 2:09pm
Medium Bug Labs team jconnolly 285 posts

Hi htambekar, sorry for the confusion.  The Serial API has been reworked quite a bit.  Long story short, the old implementation uses serial libraries only provided by our legacy java virtual machine.  We’ve since moved to RXTX to provide the same functionality.  The IVonHippelSerialPort code should be deprecated, and will be deleted from the SDK side of things soon.  I’ve put up an example of how to use it against version R2.1.0 of our software here:

http://www.buglabs.net/applications/rxtx_example_20

If you’re using R2.0.1 or R2.0.2, (check by doing cat /etc/buildinfo on your BUG and pasting it here), there are older versions of that app that will work for you.  Let me know and I can provide instructions for you.  If you’re using R2.1.0, follow the instructions below…

Follow these steps to ensure that the app will run for you:

1) Download http://www.buglabs.net/applications/com.buglabs.emulator.rxtx to your workspace

2) Download http://www.buglabs.net/applications/rxtx_example_20 to your workspace

3) Send rxtx_example_20 to your BUG and verify that it runs (it assumes VonHippel in slot 0, next to the video slot).  Do NOT send the emulator.rxtx bundle to BUG, the rxtx libraries with the native libraries to run on BUG are already there for you.

 

 

 

Aug 23, 2011 8:53am
User_img_not_found_02_med htambekar 4 posts

Hey Thank you guys.

I got my result. There was problems with drivers of cable. Thank You anyways…

Oct 24, 2012 1:53am
User_img_not_found_01_med qazqazqaz 469 posts

As a perfect combination of classic and modern fashion,