473,729 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Comm Ports and USB ports

Where do I find information on how to address and pass
data to and from the serial ports and USB ports in VB.

VB6 supports the serial ports easily but I see no
reference to using the USB ports.

VB.net literature does not provide any coverage on either
the serial ports or the USB ports.
Nov 20 '05 #1
3 9328
Hello,

"andyI" <aa**@hotmail.c om> schrieb:
Where do I find information on how to address and pass
data to and from the serial ports and USB ports in VB.

VB6 supports the serial ports easily but I see no
reference to using the USB ports.
Thomas Scheidegger's (aka NETMaster) Serial Port FAQ:

http://makeashorterlink.com/?M2FE42E83
VB.net literature does not provide any coverage on either
the serial ports or the USB ports.


USB is a _bus_, not a _port_.

http://makeashorterlink.com/?D2EA62B14

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
Hi,

USB ports normally use whatever API is appropriate for the connected device.
There is no generic support for USB (it is a bus, just like PCI or ISA). If
you want to write code for a specialized device, I suggest that you get a
copy of Jan Axelson's book, USB Complete 2nd Edition (see the Books link on
my homepage).

Serial communications may use any one of several techniques. You can
download NETComm.ocx from my homepage (free ActiveX), or you can use any one
of several .NET classes for this. I have one in my book, with source code
(see below). I also have other examples for .NET. Sax Comm Objects
(www.saxsoft.net) now has .NET support, if you need heavy duty "stuff" like
TAPI support and error-corrected file transfers.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Nov 20 '05 #3
Thanks for all the great posts!

Steven Bras, MCSD
Microsoft Developer Support/Data Access Technologies

This posting is provided "AS IS" with no warranties, and confers no rights.

Microsoft Security Announcement: Have you installed the patch for Microsoft
Security Bulletin MS03-026?* If not Microsoft strongly advises you to
review the information at the following link regarding Microsoft Security
Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2148
by: Greg Pedder | last post by:
Hello. I have an application that uses the Java Communications API to use a modem. At startup, the application checks to see what serial devices are connected. For each serial device, the app tries to write some "AT" commands to make sure it gets back "OK" from the modem. At this point all the ports are closed and the application goes into a serversocket accept blocking call and waits for any connections.
1
1936
by: Ky Nguyen | last post by:
Hi all, I would like to obtain a piece of codes (a full version or just an example) dealing with asynchronous communication via COM: serial port. I dont mind whether it is window-based or console-based. If someone knows a good source that documents how to establish, send, and receive via serial port, please direct me there. Thanks in advance.
3
1531
by: Steve | last post by:
Hi All and seasons greetings. Is there an easy way of getting a list of current Comm ports on a machine? I suspect that most machines these days have 1 and 2, but there could be others and I would like to get a list of them to offer the end user. Many thanks, Steve.
1
1671
by: James L | last post by:
Is there any code to get the number of comm ports detected by the pc? Cheers.
7
3698
by: Padu | last post by:
Hi Everybody, I'm a newcomer from the Delphi world and I'm going to start developing my new project (a robot control app) in C#. One of the requirements is to communicate using RS232 (well, RS485, but the app doesn't care really). I was googling a bit and I saw a couple of good articles using P/Invoke, and I'll probably do that, unless I find something like Turbopower's Async (find them on sourceforge.net). It is a very powerful...
0
1432
by: joaquimfpinto | last post by:
Hi All, I've an application that write and read from different serial ports. I made a class with an object from Charon Communications. On the main form I create several instances of that class, depending on the number of serial ports I want to handle, and control any input data with a timer that is checking the machine attached to the serial port and whenever there is information the data available is triggered.
2
1911
by: Hank | last post by:
Hello, I would like to get some opinions on using the Comm Port with Access 2000. We have a few jobs coming in that require us to interface with a PLC via the Comm Port. My partner feels we should use a Visual Basic Front End and the VB component as opposed to Access. Has anyone had good luck interfacing to a Comm Port using Access?
0
1098
by: alvatar | last post by:
I am doing a project on microcontrollers and want to be able to send and receive data via RS232 serial cable. Right now, my PIC microcontroller code is able to send string data to the computer and HyperTerminal will output the strings. However, in order to manipulate such data I found out that Visual Basic is needed. So I tried creating a basic Visual Basic window application using VB Express 2008 just to read bytes sent from serial, using...
9
6474
by: rajujrk | last post by:
hi, currently i am doing the project to send the sms from PC to Mobile and vice versa using GSM modem. I successfully done this process in Hyperterminal. First i connect the GSM modem in COM1 port then set the baud rate to 9600 and execute the AT commands in hyperterminal and its works fine.. But my problem is that to do the similar process in java..
0
8763
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9202
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8151
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4528
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.