Article View: borland.public.cppbuilder.nativeapi
Article #10339Re: Communication through USB port, How?
From: Norm Jaffe
Date: Thu, 15 Apr 2004 15:25
Date: Thu, 15 Apr 2004 15:25
41 lines
2650 bytes
2650 bytes
There is another factor, which is quite significant, aside from the software issues. In a PC, the USB interface is a 'Host Controller'; the USB 1.x standard prohibits two Host Controllers on the same bus - which is what you are attempting. There is a new provision in USB 2.0 for 'on-the-go' connections, which is meant for PDA-PC connections. In any case, whenever I've needed a computer-computer connection, I've found that conventional mechanisms (TCP/IP, UDP or serial) are by far the simplest to implement, physically and programmatically. Norm "Graham Reeds" <grahamr@omnieng.co.uk> wrote in message news:407e8f82@newsgroups.borland.com... > > Hi, but can't i use the builder as it is to write a code that > > for example send the character 0xA2 throught the USB? or can't > > i write a code that read byte from the USB? must i use > > additional components beside what i already have in the builder > > right now? > > Not without a lot of programming, no. I looked into USB and decided against > it. You have to weigh the cost of the component versus the cost of your > time writing/debugging and the time it holds the project up. > > > Also, what is the advantage in the speed when using USB and not > > RS-232 communication? is there a big different between this two > > types? > > Like I said, our app never required huge amounts of data, and we already had > written a fairly effective RS-232 component which I just tightened up a > little (a 2 second timeout for realtime comms - no way!). > > G. > >
Technical Details
Message-ID:
<407ea959$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<407e373f$1@newsgroups.borland.com> <407e573d$1@newsgroups.borland.com> <407e8b00$1@newsgroups.borland.com> <407e8f82@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3c852a76f82acce1 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-15 08:31:39 PST From: "Norm Jaffe" <mail@aurelsystems.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <407e373f$1@newsgroups.borland.com> <407e573d$1@newsgroups.borland.com> <407e8b00$1@newsgroups.borland.com> <407e8f82@newsgroups.borland.com> Subject: Re: Communication through USB port, How? Date: Thu, 15 Apr 2004 08:25:33 -0700 Lines: 43 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: 206.116.16.134 Message-ID: <407ea959$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1082042713 206.116.16.134 (15 Apr 2004 08:25:13 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail