🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10551

Communication through USB port, How?

#10551
From: Ramy
Date: Sun, 04 Apr 2004 15:15
42 lines
1772 bytes
Hello all,

I want to write 2 very small and simple applications 
which run on two different computers and talk with each other
through the USB port of the PC, the first application will be the
Master and can send any one of the 3 following commands through 
the USB port -

(in Hex)

A5 1 5A (option 1)

A5 2 5A (option 2)

A5 3 5A (option 3)

If the application on the other PC (which is the Slave) get 
command 1 it will (for example) display "1" on the screen and
send back (through the USB) the following respond - 

A5 11 5A 

at the same way for command 2 it will display "2" on the screen 
and send back the reply -

A5 22 5A 


and for command 3 it will display "3" on the screen 
and send back the reply -

A5 33 5A 

I'm using Builder C++ 4, what do i need for start doing 
something simple as that? also, how do i tell the PC which one 
of it's (several) USB ports to use?

One small code example will help also,

Thanks very much,
Ramy
Technical Details
Message-ID: <40701872$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f3f2b844bc468597,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-04 07:39:19 PST
From: "Ramy" <Ramy@NoMail.com>
Sender: "Ramy" <Ramy@NoMail.com>
Reply-To: "Ramy" <Ramy@NoMail.com>
Subject: Communication through USB port, How?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.0.27.152     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40701872$1@newsgroups.borland.com>
Date: 4 Apr 2004 07:15:14 -0800
X-Trace: newsgroups.borland.com 1081088114 207.105.83.66 (4 Apr 2004 07:15:14 -0800)
Lines: 43
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail