BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-25-2005, 11:12 AM   #1
Keyboardcowboy
New Member
 
Join Date: Nov 2005
Model: 7510
Posts: 3
Smile USB - Serial Port Communication

Please Login to Remove!

Hi, I have been searching all over the internet on how to communicate with the black berry through the USB cable. I want to write a Client application for the blackbery to send text messages to another device, how can I accomplish this? What java library will allow the black berry to perform general usb-serial communication through the usb cable?

Thanks for any help.
Offline  
Old 11-25-2005, 11:51 AM   #2
arconsulting
Thumbs Must Hurt
 
Join Date: Aug 2004
Location: Metro NYC
Posts: 175
Default

This can be done via the Connector class. There is a USB sample called "UsbDemo" provided with the JDE.

At a high level:

private static final String CHANNEL = "RIM_USBClient";
_sc = (StreamConnection)Connector.open("comm:USB;channel =" + CHANNEL);

_dis = _sc.openDataInputStream();
_dos = _sc.openDataOutputStream();
__________________
-- Aric Rosenbaum
BlackBerry consulting, BlackBerry development
www.arconsultinginc.com
BlackBerry consulting and development (RIM SI Partner)
Offline  
Old 11-25-2005, 09:29 PM   #3
Keyboardcowboy
New Member
 
Join Date: Nov 2005
Model: 7510
Posts: 3
Default Cell Phone Commincation Protocol Standards

Do all java enabled cell phones have serial or usb communication via a serial cable? Or what is the standard physical communication protocol that all cell phones use, for example BB uses usb cable.
Offline  
Old 11-26-2005, 06:58 PM   #4
arconsulting
Thumbs Must Hurt
 
Join Date: Aug 2004
Location: Metro NYC
Posts: 175
Default

I believe http is the only communication method required for J2ME. IOW, I wouldn't count on a J2ME phone having serial or USB support.
__________________
-- Aric Rosenbaum
BlackBerry consulting, BlackBerry development
www.arconsultinginc.com
BlackBerry consulting and development (RIM SI Partner)
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


MS-VMA1620-0 JOHNSON CONTROLS METASYS  Control W Manual Override  NEW Open BOX picture

MS-VMA1620-0 JOHNSON CONTROLS METASYS Control W Manual Override NEW Open BOX

$250.00



Johnson Controls DX-9100-8454 METASYS Controller (used) picture

Johnson Controls DX-9100-8454 METASYS Controller (used)

$10.00



Johnson Controls Metasys IOM2711 Expansion Module MS-IOM2711-0 2 UI 2 RO 2 CO picture

Johnson Controls Metasys IOM2711 Expansion Module MS-IOM2711-0 2 UI 2 RO 2 CO

$70.00



🔥JOHNSON CONTROLS METASYS IOM3721 EXPANSION INPUT OUTPUT MODULE 24V picture

🔥JOHNSON CONTROLS METASYS IOM3721 EXPANSION INPUT OUTPUT MODULE 24V

$99.00



Johnson Controls Metasys MS-VMA 1610-0 Variable Air Volume Controller / WARRANTY picture

Johnson Controls Metasys MS-VMA 1610-0 Variable Air Volume Controller / WARRANTY

$200.00



JC METASYS XP9102 picture

JC METASYS XP9102

$200.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.