"Port Device not working" -
in my code for telephone dialer, when the form loads
visual basic code:
Private Sub Form_Load()
MSComm1.CommPort = 3
MSComm1.Settings = "9600,N,8,1"
MSComm1.PortOpen = True
End Sub
gives an error
Code:
Run time error '8012':
"The device is not open"
please help
Regards
Mohit
Name of USB Device -
I basically need to know how to get the name of the device attatched to each usb port. Like when you plug something in and windows pops up and knows exactaly what it is (sometimes lol).
I can view all of the properties such as IRQs and junk , but I want to be able to say usb port o
Find Comm port problem -
hi.
I have a device connected via comm - usb adaptor to computer.
(comm in device and usb in computer)
When i connect the device, Windows recognizes it as COM6.(it may be any other port name, but for examples i'll take com6)
Then i run my code for finding the device by going fr
Newbie needs help with registry issues -
I am working with a third party device that works like a little scanner and is connected via serial port to the PC. It came with an ActiveX control that communicates with the device and gives me useful properties describing the image (e.g. size, fileinfo). The control stores its comm
How to do communication through Parallel Port -
Can anyone tell How can I make the device to communicate with the parallel port.
Actually i want to attach a external device with parallel port(printer port) and want the device to receive and send data using visual basic or C.
Can Any1 Help ME?
USB Port searching -
I'm writing user software which configures the firmware for an electronic device.
It computer is linked to the device via USB.
How do you find which number port to write for?
I can set up a search to find used ports, but if the user has a device using port 4 for example, how
Serial port.. How to use it -
Hi,
I am working on a project that requires my computer to communicate with the device through the serial port.
I have never done it before. All I basically need is to upload a HEX file into a device through the serial port.
Are there any components (libraries) in the VB that
CD/DVD-ROM device name -
Hi,
help me please with read CD/DVD-ROM device name and device-letter (E:\).
Combo1.Clear
For i = 0 To 2
For c = 0 To 1
If getstring(HKEY_LOCAL_MACHINE, "hardware\devicemap\scsi\Scsi Port " & i & "\Scsi Bus 0\Target Id " & c & &q
[2005] Failed to close/dispose System.IO.Ports.SerialPort -
Dear experts,
I am building an application to operate a USB modem, I am currently using VB.NET Studio 2005 and .NET runtime version 2.0.
The working:
Use a WMI query "SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA ""Win32_PnPEntity&quo
Input device -
I want to use my COM Port as in input device. Actually i have weighing machine connected to COM Port. I can read data from COm Port in VB using MSComm but actually the data(weight of object in weighing machine) is required to input in Oracle form. So I want to establish the functional
Programming the serial port -
Hello everybody!
I'm programming in VB6, but now I have a problem with programming the serial port... To tell you the truth, this is my first time using some COM port in my project, so I'll be very happy and thankful if you help me... well, here is the situation:
I have a device, w
[2005] Serial Port To Usb Adapter -
I have a device to which I communicate via a serial port. If I were to use a serial port to USB adapter, how would I achieve this without having to recode? For example, is there some way of setting up a virtual serial port? That is, although my device is connected to a USB port, I want
Find/Display full device names -
How do you retrieve full device names, as displayed in Device Manager. i.e. "Bluetooth Communications Port(COM4)","PCI Serial Port(COM1)" ?
I want to get these names, presumably from the registry, and put in combo control for user to select.
Can find full names of
"Port Device not working" -
in my code for telephone dialer, when the form loads
visual basic code:
Private Sub Form_Load()
MSComm1.CommPort = 3
MSComm1.Settings = "9600,N,8,1"
MSComm1.PortOpen = True
End Sub
gives an error
Code:
Run time error '8012':
"The device is
input Com port device -
I am looking to build a simple input device using the com port..or any other port that would be easy, but all i found was this website on building a 9 pin com port device:http://www.swen.uwaterloo.ca/~drayside/altinput/
I understand what pins do what, but I am not sure how to actual
Reading off the USB port -
I have a program whcih accesses a GPS unit. Typically these come with a serial cable that attaches to a standard serial port on the computer and the program works fine to locate the device on a COM port and communicate with it. The problem arrizes when a user does not have a standard s
2nd Parallel Port Problem with Win XP.... -
I've made a simple vb program that turns on relays for a length of time through the Lpt1 port. It works great, but because the system already has a receipt printer that must use Lpt1, I have to use a PCI 2nd Lpt card. That's where the trouble starts.
Windows XP recognizes the card o
Reading in Data from Comm port 1 -
Hi
I have a problem. I want to know how i can read in data from a communications port. Thing is, the device attached to the communications port has an RS-232 pin. Can i just read it by doing the following or do i have to change it?
MSCOMM1.SETTINGS = "9600,O,7,2,RS232&qu
Commands over a network -
Using Visual Basic 6; I have been talking to a device through an RS232 port. Sending it text commands, and get a response back.
Now they have given this device an IP address and put it on the network. I see people talking to the device over telnet. They type in an IP address in tel
Read Remote Port -
Hello Everyone, I have been playing with a socketserverlib.server control and basically I just open a port on my pc and then from any pc can connect through hyperterm and watch communication.
However, Now I need to be able to watch a different device by the ip/port. This is not a pc
Speeding up interaction with the com port -
Hi,
I am working on a project that gets data from a device connected to the com port. I Use VB ver6.0.
I used MSComm ctl to talk through the comport. To get the new status of the device i used a timer control.
When the interval for the timer is 1000ms it works just fine. But w
USB To Serial -
Is there anyway to make a USB port act as a Serial (COM port) on your pc without a physical adapter?
I'm trying to read some information from a GPS device in VB 6, but my GPS device is connected through USB. A control kit I found to read GPS devices only allows reading on COM ports
TcpClient Question -
I have a serial to ethernet device that transmits and receives data on a TCP port. I have a GPS device connected to the S-to-E device. The GPS is constantly spitting out data in NMEA string format. I need to be able to connect to the port and listen for the data coming in. I have a bas
waiting for reply before firing next command -
connecting to serial device through vb6 like hyper terminal
I need to start with the basics
for example using hyper terminal, I connect to my device via hyper terminal (com 4, 9600 8 data bits, no parity 1 stop bit, and line end)
once connected the device sends me the version &q
VB to the PC's parallel port -
Hi. Need some help interfacing devices via VB to the parallel port.
With my project, im also designing a sort of alarm system, where a PIR device will activate the software that follows - face recognition.
I need to know if anyone can help with using this device with the port. I
Comm Control 6.0 and Serial Printer -
Hi,
I have a situtation where I have two programs using the same serial port. Usually COM1. We have a hardware device that handles which device receives the communication.
The two things are: 1) Serial printer 2) My VB Program. Neither of these can change.
The issue: It
Detect whether the external device is connected to com port 1 or 2 -
Hi,
I have connected an external device to commport1 and I have written Mscomm1.Commport=1 in VB 6.0 and I was able to pass the data to the device and receive acknowledgement.
In case if I connect the device to commport 2 I have to change my code to Mscomm1.Commport=2
Device manager, port description -
Hi
I want to see where my COM3: port (USB -> serial port) is connected to.
In the devicemanager it says "Serial port on USB (COM3"
How can I retrieve this same text into my application so I can notify a user where to hook it up once the COM3: is selected?
Thanx a
port connection -
hi
how can i find which device is connected to each port. if so how can i get the value input by the device
Remote Port Reader (TCPIP) (Program needed ASAP) -
Hello Everyone,
I was wondering if anyone knows of a program that I can try and am willing to buy if it can read a remote IP address and a port number via tcpip. Basically it can be a vb control or an application. However, what is going on I have a device that basically sends commun
How to 'disconnect' and 'reconnect' an USB device using a VB program -
Hi,
I am using a USB to Serial converter. The converter works OK for most of the time, but sometimes the converter stops working, the COM port assigned to it is removed from the registery by the Windows OS.
To re-establish the connection the converter needs to be un plugged and t
VB6, MSComm and port detection -
Does anybody know how to detect which Comm ports are on there computer.
I used this code
'Port_Select is a combo box
Dim Ports As String
Dim x As Long 'Comm Port number
For x = 1 To 4
MSComm1.CommPort = x
On Error Resume Next
MSComm1.PortOpen = True
i dont think that this can be done - although im willing to be proven wrong ;) -
right,
is there anyway of seeing what a process sends to a COM port but not actually use it? I dont think that MSComm will work, because as soon as you open the port (MyComm.PortOpen = True) the other processes cant use the port until u close it and u cant do anythin with the port..
Does anybody know how to program GPIB -
I'm having trouble communicating with my power analuzer via the GPIB port. I don't think the connection for the device is bad. Here's some of my code:
Code:
Private Sub Command1_Click()
POWER$ = "DEV5"
Call ibfind(POWER$, ud5%)
If ud5% < 0 Then
MsgBox &
[2005] Interfacing With Serial Port -
I am trying to interface with a Sylvac Gage over the Serial Port, but I can not get read any information sent by the gage.
I am using the IO.Ports.SerialPort Object (called serialPort), and I can successfully write to the device. I can tell it to turn off by:
serialPort.Write(&qu
send and recieve siganl from USB! -
Hi, I would like to know how can I send signal to USB port. I want to connect my device to USB port that device will send a character to USB port and I would like the program to read that character and send a character back to the same USB port. I am currently learning VB so plz if you
HARDWARE INTERRUPT -
I've been making an electronic device (in a protoboard -to test it-) to simulate a remote Control for the DVD.
I input the codification of the keys through the parallel port. So, my "driver", checks periodically the port to see
if any key was pressed. Everything works great
Interrupts w/Bi-Directional Parallel Port -
Hello,
I am writing a program for a Win98 target that needs to use the parallel port as an interrupt driven bi-directional device.
What I know is how to initialize the port using CreateFile, how to use ReadFile to read a stream of data and how to close the port.
If I want to
Can I use the Parallel printer port as an alternative to the COM ports via MSCOMM -
I use VB6 Learning edition and thus have no MSCOMM control.
If i used an adaptor cable to switch the LPT port to a 9-pin serial lead, could i reliably send ascii data to a serial compatible device?
for example if i had a geiger-counter device that is able to be controlled by a RS-2
How to open COM Port Advanced Settings -
I would like to programmatically bring up the Advanced Settings window under the Device Manager for the serial port. I can get to the COM Port Properties window by using:
shell("rundll32.exe devmgr.dll,DeviceProperties_RunDLL /DeviceID acpi\pnp0501\1"
But I still have
MSCOMM Control - Weird Problem -
On my old P200(MMX) win95 box, I am trying to write a custom interface between a VB6 app and a device connected by the serial port.
The obvious choice is the MSCOMM control.
Weird thing is that I cannot seem to open or close Com1 port. Whenever i run
MSComm1.PortOpen = True