Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Posts: 5
Registered: ‎02-04-2009
My Device: Not Specified

Can I ping my BB from my Laptop over USB?

Hi there.  I've seen some discussion about using your local Wifi router rather than your mobile carrier.  Apparently, you can ping your wireless router if you set it up.  But what I really want is to be able to ping my BB from my laptop when it's plugged in with a USB cable.  Alternatively, maybe sockets? 

 

Anyone?

 

Thanks! Paul

New Developer
Posts: 5
Registered: ‎02-04-2009
My Device: Not Specified

Re: Can I ping my BB from my Laptop over USB?

Ok, here's quite a bit of discussion on http://  connections and sockets. Not quite what I want, since it deals with acquiring a web connection. I'm trying to treat my BB (pearl) as a computer on my LAN.  

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=29105#M29105

 

I have a program on my laptop that is designed for tethering over ppp.  It has a command option called "use threaded socket router."  Now I need help to find a hook that I can use for my BB app to reference that socket connection and trigger an action.

 

Anyone?

New Developer
Posts: 5
Registered: ‎02-04-2009
My Device: Not Specified

Re: Can I ping my BB from my Laptop over USB?

Ok, I think I now understand that what I want to do is use the USB demo in the JDE to talk between my BB and my desktop.  The demo uses the COM interface.  What if I want to talk to a different client using a different interface.  I think the relevant line is

 

  _sc = (StreamConnection)Connector.open("comm:USB;channel=" + CHANNEL); 

 

Where CHANNEL = JDE_USBClient

 

Pls forgive me.  I don't do a lot of java. So what if I want to connect to say, a java applet running a desktop?  Better yet, how about Ruby?  I came across 'Ruby-serialport' and still digesting this one: http://hazy.stupor.org/blog/archives/category/ruby