🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Communication through USB port, How?

#10300
From: Gustavo
Date: Thu, 22 Apr 2004 23:48
51 lines
2037 bytes
Look at ...
http://www.beyondlogic.org/
http://www.lvr.com/
http://www.logix4u.net/

Ty ;)

"Ramy" <Ramy@NoMail.com> escreveu na mensagem
news:40701872$1@newsgroups.borland.com...

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: <408859e0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40701872$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f3f2b844bc468597
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-22 17:10:43 PST
From: "Gustavo" <pglac3@terra.com.br>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40701872$1@newsgroups.borland.com>
Subject: Re: Communication through USB port, How?
Date: Thu, 22 Apr 2004 20:48:48 -0300
Lines: 53
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 200.167.43.178
Message-ID: <408859e0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1082677728 200.167.43.178 (22 Apr 2004 16:48:48 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail