🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Communication through USB port, How?

#10524
From: Ramy
Date: Thu, 15 Apr 2004 07:18
42 lines
1867 bytes
Hello all, i sent this question about 2 weeks ago and did not get any replys, i'm trying again, thanks.

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: <407e373f$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,3c852a76f82acce1,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-15 00:39:34 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: <407e373f$1@newsgroups.borland.com>
Date: 15 Apr 2004 00:18:23 -0700
X-Trace: newsgroups.borland.com 1082013503 207.105.83.66 (15 Apr 2004 00:18:23 -0700)
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