BUG Community

Welcome! Log In

Forums BUGmodules Rs232 Connectivity and Handylink

Subscribe to Rs232 Connectivity and Handylink  22 posts, 13 voices

Log in to reply to this topic
Dec 3, 2008 1:38am
Img_missing_medium sgargan 8 posts

I’m looking to use the BugBase to control an external board that has a standard Rs232 connector on it. I’m wondering, will i need to make one the handylink to serial connectors from the wiki to do this?

(sorry about the botched link, but the forum is taking exception to it
bugcommunity com/ wiki /index.php /Handylink_to_DB9)

After that, can i use the standard J2me Connector methods to read/write to the serial port?

e.g. Connection serialConnection = Connector.open("comm:0;baudrate=9000");




Dec 4, 2008 4:26pm
Medium Bug Labs team jconnolly 285 posts

Greetings Stephen,

As part of our upcoming R1.4 BUG software release, serial support will be included at the java layer. To answer your question, you will not have to build a handylink to DB9 custom cable. In fact, using /dev/ttymxc4, which is the port corresponding to the handylink serial port at the back of the bug, is discouraged as it is the BUG's debug serial port, though it can be configured to use a different device node.

Each BUG module slot has a serial device node corresponding to it, and the Von Hippel (breakout) module fans these connectors out and makes them easily accessible. I built a cable for myself that simply takes ports 2,3, and 5 from a DB9/RS232 cable and plugs into the corresponding Tx/Rx/Ground ports on the Von Hippel module.

Accessing the serial ports from java will be handled by our API, and the VonHippelModlet will actually implement the opening and closing of the device node. If you choose to use this API, the code will look something like

IVonHippelModuleControl vmc = getServices(com.buglabs.bug.module.vonhippel.pub.IVonHippelModuleControl.class);
OutputStream os = vmc.getRS232OutputStream();
String helloWorld = "hello world";
InputStream is = vmc.getRS232InputStream();

However, should you want to write a simple java program, outside of our OSGi framework, with the von Hippel module in slot 1, the code would look something like that below:
System.setProperty("microedition.commports", "/dev/ttymxc/1");
try {
CommConnection cc = (CommConnection) Connector
.open("comm:/dev/ttymxc/1;baudrate=9600;bitsperchar=8;stopbits=1;parity=none;autocts=off;autorts=off;blocking=off", Connector.READ_WRITE, true);
String message = "hello world\n";
OutputStream writer = cc.openOutputStream();
} catch (IOException e) {
// TODO Auto-generated catch block
Dec 10, 2008 10:55pm
Img_missing_medium sgargan 8 posts


Cheers for the Info sounds pretty straightforward. One more question if you don’t mind, How robust is the VonHippel Module? The application I’m writing (and the bug its going on) will be deployed to a working environment. This connection will need to be pretty stable, Would you recommend shrink wrapping the connection to protect it?

Thanks alot for your help,



Dec 13, 2008 10:00am
Medium Bug Labs team jconnolly 285 posts

Hi Stephen,

As you can see in the photo below, the vonHippel module's board and ports are exposed and the module is not impervious to environmental contamination (water, etc). I would suggest making a custom case for your needs.

Feb 26, 2009 2:28am
Img_missing_medium sgargan 8 posts


Just got my VonHipple and was trying the above code out. Seems I’ve been overcome by events, the getStreams methods of the IVonHippelModuleControl are nowhere to be found.

I had little luck with the CommConnection either. Though I import the javax.microedition.io package, i always get a class not found error.

java.lang.ClassNotFoundException: Unsatisfied import javax.microedition.io at ch.ethz.iks.concierge.framework.BundleClassLoader.resolveBundle(BundleClassLoader.java:403) at ch.ethz.iks.concierge.framework.BundleImpl.startBundle(BundleImpl.java:438) at ch.ethz.iks.concierge.framework.Framework$SystemBundle.setLevel(Framework.java:2468) at ch.ethz.iks.concierge.framework.Framework$SystemBundle.access$0(Framework.java:2428) at ch.ethz.iks.concierge.framework.Framework.startup(Framework.java:485) at ch.ethz.iks.concierge.framework.Framework.main(Framework.java:315)

What do you suggest as the best way for me to do this serial interaction. I guess you guys had good reasons for dropping the stream support, but in lieu of streams what is the preferred method?

Thanks for your help,



Feb 26, 2009 3:34pm
Medium Bug Labs team jconnolly 285 posts

What do you suggest as the best way for me to do this serial interaction. I guess you guys had good reasons for dropping the stream support, but in lieu of streams what is the preferred method?

Stephen, sounds to me like you're using R1.3 of the rootfs, which makes sense because that's what the BUG is shipped with. :wink:

However, the APIs you're trying to use don't exist on your BUG unless you're using R1.4. R1.4 is still in our QA process, but there are some release candidates you may like to play with if you're itching for bleeding-edge:


RC1.4.7 is the latest, but RC1.4.8 should be out today (02/26). Again, this has not passed our QA testing, and while using it you should keep this in mind. For the procedure on upgrading your root-filesystem and kernel, please see the following wiki's (and make sure you upgrade your kernel before your rootfs... we switched from 2.6.24 to 2.6.27, so unless the kernel and rootfs are in sync, you won't be able to boot):



You'll want to change the URLs in that tutorial to the one above (r1.4). The wikis are written for users with R1.2 who would like to upgrade to R1.3. They'll change once R1.4 is released from QA. I hope this helps, and please feel free to drop into our IRC channel if you need some help.
Mar 5, 2009 11:16pm
Img_missing_medium sgargan 8 posts


This all went like clockwork! Major props to you indeed! Thanks kindly for all your help


Mar 6, 2009 12:07pm
Medium Bug Labs team jconnolly 285 posts

This all went like clockwork!

Glad it went well. ;D

You've already noticed that VonHippelModuleControl.getRS232OutputStream() is deprecated. The API has been refactored since the early release candidates of R1.4, and IVonHippelSerialPort has replaced the functionality. The benefit is that users may configure they various parameters of j2me's Comm string, such as:

baudrate (9600 default)
bitsperchar (8 default)
stopbits (1)
parity (none)
autocts (off)
autorts (off)
and blocking (off).

Example code (writing out):
vhsp = (IVonHippelSerialPort) getService(IVonHippelSerialPort.class);
try {
vhos = vhsp.getSerialOutputStream();
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(vhos));
int count = 0;
while (count < 100) {
bw.write("printing "+ count);
} catch (IOException e) {
May 8, 2009 10:23am
Medium authenticfake 1 post


I need to connect von hippel module to my device via RS232 data cable (RS232 terminal with 9 pins). Where can I find a schema to realize connection from von hippel to rs232 data cable.


May 8, 2009 2:55pm
Medium Bug Labs team jconnolly 285 posts


I need to connect von hippel module to my device via RS232 data cable (RS232 terminal with 9 pins). Where can I find a schema to realize connection from von hippel to rs232 data cable.



Tx/Rx/CTS/RTS/GND are exposed in Von Hippel.  Standard male headers can be used to plug into the VonHippel.

Jun 20, 2012 1:59am
User_img_not_found_03_med eileen886 11 posts

Well received by professional celebrity’s popular brand of cheap oakley sunglasses have long been regarded as one the courage to challenge the
characterization of a unique personality, a full range of functionality
to win the respect of numerous celebrities around the world.Discount oakley sunglassesathlete’s culture and view of life, deeply moved by inspiration from him, and
will itself into a very full range of brands given the quality of
leisure. In order to meet the different needs of consumers, Whether past or in the future, oakley sunglasses cheap will be critical spirit, inherited the trend of a consistent type cool
style, creative expansion of the sporting goods market is not difficult
to find around the world have a lot of discount oakley sunglasses lovers, and become the local fashion advocate persons; as an industry
pioneer, as long as you pay close attention, it is not difficult to find oakley sunglasses discount unparalleled material and application of new technologies, leaving
Oakley became the star of the eye circles.Whether it is functional
jacket, down jacket clothes pants and is hard to find this sports oakley glasses even unconsciously their commercial tentacles toward the trend of industry, and the world’s top trends of the media behind

Jun 28, 2012 2:25am
User_img_not_found_03_med louis 38 posts

http://www.louisvuittonusauks.co.uk/ louis vuitton bags

http://www.louisvuittonpurses-outlets.net/ louis vuitton Handbags Outlet

http://www.greatlouisvuittonbags.com/ louis vuitton purses

http://www.louisvuittonpursebags.net/ Louis Vuitton Purses

http://www.louisvuittononlineshops.org/ Cheap Louis Vuitton

http://www.officiallouisvuittonzone.net/ louis vuitton outlet

http://www.hermesoutletus.org/ hermes Purses

http://www.cheap-suprashoes.org/ cheap supra shoes

Aug 14, 2012 2:02am
User_img_not_found_06_med rubing 103 posts

Isn’t it funny how we www.coachfactorystoreec.com/ Coach Factory Store always want what we can’t have? The girl with the round and pert backside wishes that her rear were 5 times smaller. Meanwhile, the girl with the non existent posterior wishes to achieve a larger butt. Well, if the grass is greener on the other side, just water yours! If you’ve got a small behind, you can create the illusion of a larger one with butt enhancing jeans. Here’s how to do it. Look for light weight denim – This material is very stiff and heavy. If you try to stuff a flat butt into denim jeans, it will only create a flatter looking behind. A little stretch goes a long way – Your butt enhancing jeans should additionally contain some stretch. A mixture of 98 percent cotton and 2 percent lycra is best. This combination of lycra and cotton, especially when it’s in a nice tight-weave fabric that’s fitted through the hip and thigh area will help lift your buttocks. Too much lycra and your jeans may start to ripple like a pair of leggings. If there’s not enough cotton content, there won’t be enough structure to hold you up. It’s all in the pockets – The most effective trick for creating the illusion of a bigger butt is to choose jeans with flap pockets. The added bulk of the flap will enhance and add dimension to your tiny tush. True Religion is notoriously famous for their flap pocket designs. You can also try Hudson, Rock & Republic, Frankie B and Paige for addition flap pocket styles. Pocket placement – If you’re not a fan of flap pockets, or if you’ve already bought too many of them, you can also try denim with regular pockets. Be sure to aim for a pair with smaller pockets that sit higher and this will help make your rear look lifted. Cut is also important – Look for jeans with a slight tapering at www.coachfactoryonliness.com/ Coach Factory Online the knee, such as a straight leg or skinny style. This cut will make your bum look a bit larger in comparison to the rest of your body. Great styles to try are True Religion Billy, Julie or Stella, Siwy Harmah or Rose, and Hudson Emily or Paige. How low can you go – Actually, you don’t want to go too low when it comes to the jean rise. The goal is to project more, not less. A pair of low rise denim will only reduce the size of your rear. Instead, opt for a pair with a medium rise. Color me right – Since dark colors minimize, dark denim and indigo will create a slimming effect. You do not want this kind of effect on your barely there behind! Try to find light colored or medium blue denim. Grey is very flattering and will also work. Like a great bra, butt enhancing jeans can also lift and www.coachfactoryoutletusa.com/ Coach Factory Outlet separate what little you have. So it wasn’t in your genes to have a nice, round bottom. Big deal. Be happy with what you’ve got and just improvise!

Sep 28, 2012 4:25am
User_img_not_found_02_med syang121 8 posts

North Face Outlet http://www.northfaceoutletberkeleysale.com/
North Face Outlet berkeley http://www.northfaceoutletberkeleysale.com/
canada goose outlet http://www.canadagoosemall.com/
canada goose jacket http://www.canadagoosemall.com/
supreme clothing http://www.supremeclothingonline.net/
supreme hats http://www.supremeclothingonline.net/

Oct 3, 2012 2:40am
User_img_not_found_02_med wunai 103 posts

Thanks to the answers was possible to Tods shoes evaluate the intensity of use and the question of the distinction in purchasing. Women need a bag to carry their belongings, that’s for sure. Leather bags, women nowTods UK  have the flexibility and class beyond what I ever thought. The serious fashion lovers will love the leather bags thanks to its versatility, high quality and elegant style. With brands like Tod tods women shoes, Cole Haan,Tods Outlet   Rebecca Minkoff, among many others, is nothing but leather bags and upscale beyond amazing. Hogan shoes outlet The design is based on a conceptLouis Vuitton UK of minimal interference between your feet and the floor.

Oct 9, 2012 1:02pm
User_img_not_found_06_med metbis 23 posts


Oct 16, 2012 4:04am
User_img_not_found_05_med octobershi... 11 posts

Moncler Outlet http://www.moncler-outlet2012.net/
cheap moncler jackets http://www.moncler-outlet2012.net/
North Face Outlet Locations http://www.thenorthfaceoutletlocations.net/
North Face Outlet http://www.thenorthfaceoutletlocations.net/
Coach Outlet http://www.coachoutlet-online2012.com/
Coach Outlet Store http://www.coachoutlet-online2012.com/
Moncler Outlet http://www.monclerjackets2012.com/
Moncler Jackets Sale http://www.monclerjackets2012.com/

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

As a perfect combination of classic and modern fashion,Coach Outlet Online Julia Bags can show the customers'unique personality.Tiffany UK grabbed the globe, stands out as the celeb on their favorite stars luxury type, granted an innovative simple move the pavement luxury, complete with luxury.In terms of the quality and superior design that make more and more customers are satisfied to Coach Factory Online.Welcome!hat experts claim Coach Outlet Online shopping is in the changes they are available in.As long as you open our Coach Factory Outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.On the date when the Louis Vuitton UK on sale, all people will pour into the stores. At this time, it on the booths will be wiped out, and only one or two days the seller will declare that there is no stock anymore.

Oct 24, 2012 4:16am
User_img_not_found_01_med qazqazqaz 469 posts

Remember that the right accessories can enhance your alluring look with your Canada Goose Parkas Outlet.Baggy, ovoid shaped Canada Goose Jackets Outlet that are rounded around the shoulders look fabulous and can be a perfect match for you.This excellent conviction so that you class gets to amateur Canada Goose Outlet In a number of Parka, for example Young Canada Goose affordable Cardigan.Luxury has always been synonymous with fur and leather and this year a faux fur Canada Goose Jackets Outlet will surely be the key piece of your wardrobe.

Nov 1, 2012 3:20am
User_img_not_found_04_med wangly 62 posts


prosthetics and go visit them to encourage them.”Buck, 49, has the past six
weeks at Walter Reed with Mills and and

moncler down

and his family and has been amazed by his resilience.”Just
spirit, he lifts everyone up around him even though he’s he’s cheap replica designer handbags he’s had
such devastating injuries,” Buck said. “Of course there’s times, which is to be
expected, where he’s not feeling feeling designer replica handbags feeling so
chipper, but 90 percent of the time he’s motivated and just works so hard at
getting better.”Mills has has

fake designer handbags

prosthetics for both legs and both arms. He uses wheelchair sometimes, but is
already walking on his prosthetics. He He

replica designer handbags

hopes to be completely out of the wheelchair by using it only occasionally.”It
would be ways if I wanted wanted

moncler outlet

Nov 2, 2012 1:48am
User_img_not_found_03_med shanggu 469 posts

Canada Goose Outlet http://www.canadagoosecanadaoutlet.com/
Canada Goose Jackets Sale http://www.canadagoosecanadaoutlet.com/
Canada Goose Jackets http://www.canadagoosecanadaoutlet.com/
Canada Goose Jackets http://www.canada-goosejackets2012.com/
Canada Goose Jacket sale http://www.canada-goosejackets2012.com/
Canada Goose Outlet http://www.canada-goosejackets2012.com/
North Face Outlet http://www.northfaceoutletlocationssale.com/
North Face Outlet Locations http://www.northfaceoutletlocationssale.com/

Nov 2, 2012 8:16pm
User_img_not_found_03_med shanggu 469 posts

http://www.canadagoosecanadaoutlet.com/ Canada Goose Outlet

http://www.canada-goosejackets2012.com/ Canada Goose Jackets

http://www.northfaceoutletlocationssale.com/ North Face Outlet Locations

Log in to reply to this topic
Forums BUGmodules Rs232 Connectivity and Handylink

Powered by Community Engine