Click here to Skip to main content
15,902,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RbuttonDown and OnCommand Pin
David Crow13-May-04 9:26
David Crow13-May-04 9:26 
GeneralRe: RbuttonDown and OnCommand Pin
doctorpi13-May-04 9:34
doctorpi13-May-04 9:34 
GeneralRe: RbuttonDown and OnCommand Pin
vividtang13-May-04 23:01
vividtang13-May-04 23:01 
GeneralNT drive mapping. Pin
RobJones13-May-04 4:21
RobJones13-May-04 4:21 
GeneralRe: NT drive mapping. Pin
Antony M Kancidrowski13-May-04 4:54
Antony M Kancidrowski13-May-04 4:54 
GeneralRe: NT drive mapping. Pin
Antony M Kancidrowski13-May-04 4:56
Antony M Kancidrowski13-May-04 4:56 
GeneralUSB Pin
Jeff Bogan13-May-04 3:58
Jeff Bogan13-May-04 3:58 
GeneralRe: USB Pin
Antti Keskinen13-May-04 6:13
Antti Keskinen13-May-04 6:13 
Short answer: No, it is not similar.

Longer answer: the Universal Serial Bus has basically very little to do with 'serial transfer', despite it's name. There is no concept of ports: the USB is a hub-based network of devices, much like the Ethernet of today.

Programming the USB is just as difficult: in order to send data from a computer to a device, the device must implement an USB endpoint. Usually this is achieved through a USB-compatible electronics chip. Using this chip requires a driver that the operating system loads in order to communicate with the device. You can then ask the OS to enumerate through available endpoints, open a serial connection to an endpoint and send/receive data. The OS will then worry about correctly delivering the data to the recipent connected to the bus.

Naturally, you could re-write the USB base device driver so that it would work as a serial-only device. In such a case, you could manually enumerate the ports, but you'd also lose all the benefits of the USB specification. In english, you'd be using the USB in a way it was not designed to be used. All other USB devices on the system would fail to function with the serial-only USB device. I believe such drivers are available for testing purposes, however.

For more information on how the USB works, I recommend visiting this page
I also recommend the 'USB Complete' book by Jan Axelson, ISBN# 0-9650819-5-8.
For some nice, detailed USB-programming information, visit this page.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: USB Pin
Jeff Bogan13-May-04 7:56
Jeff Bogan13-May-04 7:56 
GeneralEdit Boc Scrolling Pin
sweep12313-May-04 3:13
sweep12313-May-04 3:13 
QuestionA funny thing happened to me. Who can explain? Pin
nguyenvhn13-May-04 1:40
nguyenvhn13-May-04 1:40 
AnswerRe: A funny thing happened to me. Who can explain? Pin
V.13-May-04 2:11
professionalV.13-May-04 2:11 
AnswerRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 2:22
toxcct13-May-04 2:22 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Cedric Moonen13-May-04 2:27
Cedric Moonen13-May-04 2:27 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 2:41
toxcct13-May-04 2:41 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Cedric Moonen13-May-04 2:56
Cedric Moonen13-May-04 2:56 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 3:02
toxcct13-May-04 3:02 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Anonymous13-May-04 3:02
Anonymous13-May-04 3:02 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 3:04
toxcct13-May-04 3:04 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Anonymous13-May-04 3:05
Anonymous13-May-04 3:05 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 3:09
toxcct13-May-04 3:09 
GeneralRe: A funny thing happened to me. Who can explain? Pin
V.13-May-04 2:43
professionalV.13-May-04 2:43 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 2:52
toxcct13-May-04 2:52 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Antony M Kancidrowski13-May-04 2:53
Antony M Kancidrowski13-May-04 2:53 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Cedric Moonen13-May-04 2:54
Cedric Moonen13-May-04 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.