Access A Port In Program?
Apr 8, 2011How do i access a port in Visual Basic?
View 3 RepliesHow do i access a port in Visual Basic?
View 3 RepliesIm having problem with the Serial Port. When i run my program, "Access to the port 'COM1' is denied". What does that mean? Im not sure whats happening because theres no error in my code. Someone suggest me to use 'COM2'. Which is also the same result. I have a microcontroller, programmed and run it. And i need to capture the data onto my vb, which is on a multiline textbox. How to i do that?Just to double check my code?
[code]...
I have very limited knowledge of any programming and am desperately trying to learn. I am attempting to use Visual Basic to create a simple program to operate our church's projector from the computer. I am able to control the projector using hyperterminal and accessing the serial port. I am wondering how I would code a button to send the correct signal to the correct port? I have a simple setup w/ my church logo in background with three buttons. There is an On, Off and Freeze button. I am simply needing to know how to program the buttons to access the serial ports. I hope I am being clear.
View 2 RepliesI want to find the coordinates of a speeding vehicle by accessing the position of the vehicle through GPS(from a server system). how to access GPS port and retreive the data.
View 4 RepliesI am currently doing a program to control some device via usb port but i don't know how to interface the usb port using vb.net. anybody can help me with this problem as which namespace I should use?
View 10 RepliesI am currently doing a program to control some device via usb port but i don't know how to interface the usb port using vb.net. i want to send data on a device to make it act like parallel port..
View 10 Replieshave gps constantly sending data but can read it from the com port
View 5 Replies[Code]...
m really not sure in here because this code is for vb .net 2003.. are they the same?
I have used a third party component to download a file from my FTP server. One user has advised that their antivirus software (ESET) is blocking it. How can I determine which port it's using so that they can exempt it?
View 2 Repliesi want to access com port of my remote pc. this pc is connected through LAN.how can i access com port of remote pc?
View 1 RepliesI have a serious dilemma! I have a com port COM3 and i USB device attached to it ! now when i use Hyper terminal and i can read and write to it using AT commands. for example when i type in "ATI" in hyper terminal it will return me a bunch of data how can i so the same using a VB program ? is there a way to emulate the functionality of Hyperterminal? I tried using System.IO.Ports and a SerialPort class but no success.
View 6 RepliesI'm confused , in the old days if I wanted to access a parallel or serial port I would simply set up the appropriate registers and read/write to I/O Registers. but USB is a whole different animal. Lets assume I plug device X into a usb port How do I find where the pc, or manufacturer has placed it? If it's a ddl then what is my fetch? if it's a virtual port where do I find the virtual irq and read/write port? What if it's a dongle, where do I find it's read registers? what if it's an external piano, where do I find it's sound out read regs etc.
View 4 Repliesi actually wanted to know how to program my USB port in Vb.net . I want the USB port of laptop to work as a serial port and for that i have an USB to Serial port converter ... But since laptop does not have any COM ports how do i know the to which USB port is my Adapter connected... ?
View 2 RepliesIn my project I'm trying to send data to Serial port. I have added the serial port control to the form. Now if I try to send data to serial port using Serialport1.write method in a button click event, I'm able to send the data successfully to the serial port. Otherwise if I try to send the data using the same "Write" method from another thread other than the one in which the serial port component was created, I'm getting an exception saying serial port busy.
View 1 RepliesI am looking to write a VB.NET windows app or service to do simple HTTP port forwarding. This is normally done within my router, but I have more forwards to do than the router can support (10) so I would like to do it programatically.
Quite simply, an HTTP request would come in on a port where the application/service is running, and it would automatically forward the conversation to another IP address and port. That way, my router could forward a range of ports to one machine (where the application/service would be running) and the application/service would dole the requests out to the various IP/Port combinations it was listening for.
Is there way, using .Net, to see what program/service that is using a given port?
For instance, Vuze is using port 15510, but how can i find that with code?
Currently I'm doing a project on Torque test sensor. i already have a OUSB board which can get a Analog signal and convert into Digital send through the USB port. I am using VB.net and i can pass the commands into the board through the USB port. since i have the driver to and I know all the command to communicate with the board. I can send and get values through the CMD window. Also i can send the values through Shell command in VB.net. But I can't grab the incoming values through the usb port when I am uisng VB.net[code]...
View 3 RepliesI want to print the current port address of the usb stick which is connected to the computer ? By using Visual Basic 2010
View 1 RepliesI am using Scanpal2 to read data and as per its documentation as follows
View 8 RepliesI'm working on a project that involves sending information through a GSM module, this module is connected to the system through a USB port. the information to be sent is gathered from a database using VB, now I need to send the information from my VB program to the USB port for onward delivery to the GSM module.
View 2 RepliesI have conquered the problem of the database however what i need is the serial port data sent to a database and outputted on screen however i keep getting cross thread errors ..
Imports System.Data.OleDb
Imports System
Imports System.ComponentModel
Imports System.Threading
[code]....
I have an order entry system which was developed using vb.net it uses an ms access database.I think I might be able to use mono?I'll need an IDE if possible.
Can someone tell me what I'll to download and what problems I might face, also any suggestions.
I have a VB.Net 2008 app that I have converted from VB6 which reads data from a weight scale connected to a serial port. I am able to read the received data and display it on the screen, but when I go to Stop the reading and attempt to close the serial port, the app hangs.
Private Delegate Sub ShowWeight(ByVal tWeight As String)
Private Sub comScale_DataReceived(ByVal sender As Object, ByVal e
As System.IO.Ports.SerialDataReceivedEventArgs) Handles
[Code]....
i want to know how can grip messages come by serial port and create data base to this message ,,,i mean to drop this message to . record to store it and i can use in my program
View 3 Repliesi have the following code which runs ok, but it hogs upto 95% of the CPU.program outline: a timer tick event = 1000ms scans through 30 readlines of data on the comport for a specific line of hex, and then extracts information from the next line and converts it to decimal for viewing on the screen.i've only included the main part of the code to try and keep it simple.
Public Class Form1
Private WithEvents serial As New IO.Ports.SerialPort
Public grab As String
Public cardIndex As Integer
[code]....
I'm trying to make a Client that will automatically run a .DLL that I have created and send information over port 80 to my Server program that will take that data and import it into a database for me. Problem is, I don't know where to start as I have never done this before. I want to do this in VB .NET as this is the programming language that I know. What are methods of doing this? Is there sample code out there for something like this? My google searches are failing me.
A better layout of what I'm trying to do:1. Client Runs .DLL, retrieving information from an Excel file.2. Client takes these properties with the data it contains and sends it to a program outside of the local network through port 80, my boss refuses to let me use any other port.3. Server accepts the data and builds its own properties to be imported into my Access Database.4. Repeat over, and over, and over, and over.
I plan for the server application to be a console application, and the client to be a windows form.
I want to write a program that can control port communication in a PC by blocking certain port based on the admins request and also monitor incoming and outgoing network traffic. Can i achieve this using vb.net winsock?
View 1 RepliesHow do you record sound from the normal microphone port onto your program?
View 9 RepliesI am supposed to make a software for data logging via serial port but the hardware is expected to be delayed and iam required to continue with the programming of the software. What i need is that by some mechanism i want to send data on serial port (COM port) and after delay of some mili seconds i want to detect that data. I actually want to do this because i want to create environment like my software i intercepting COM port and on receiving data it captures the data values on port and record them to database. I have done most the work, the only thing left which i want is as above how i will send data on COM port (this was to actually to be done by hardware) and detect it in my program (same program from which data was sent). Please guide from where should i start.
View 3 Repliesi have downloaded TCP program and try
[Code]...
what is the right IP or Port must i used? between client and server