Connect To A Device Through A USB Port
Nov 5, 2009How do I connect to a device through a USB port. Saying I know what the device ID is. I want to open up serialized communication between me and the device.
View 3 RepliesHow do I connect to a device through a USB port. Saying I know what the device ID is. I want to open up serialized communication between me and the device.
View 3 RepliesI am working on a way to send commands to an Arduino board from a web site. The Arduino board is connected to the computer via a USB port (a COM port).
I have managed to connect and control the board using a VB.NET program. I also wrote a VB.NET class that can instantiate a COM connection and send and receive messages.
My next step is to basically create a program that will act as a proxy between my web server (IIS 7 running on Windows Vista) and the Arduino board. When a user gets to my ASP.NET page, the page will then send a command to the proxy to open the COM connection. When the connection is open and ready then I can send commands to the proxy. In turn, the proxy will send these commands to the board and listen for the responses it receives from the board. The proxy will then pass these messages back to the ASP.NET page.
The main issue I see occurring is that if a second user opens the web page and tries to open the COM port, there will be an error. Will this cause the first connection to fail? I guess I can first check if the port is already in use and give the second user a message. Are there any other potential challenges I am missing or not seeing?
I'm trying to connect to an external device using a serial port. I found a couple of tutorials with demo code and tried these. Unfortunately they all return the same gibberish unreadible result.[code]I'm sure my port settings are correct (I have the communication protocol of the device.)
View 20 RepliesI have a Windows form.in windows form have a combo box that give me a list of available port serial with it code (Dim ports As String() =SerialPort.GetPortNames())for example( Com1,Com8,Com15,...).but I want to give me fullname of serial port in device manager for example in dvice manager is these (Comunication Port(COM1) - Printer Port(LPT1) And USB Serial Port(COM8)).how to Get it?
View 2 RepliesI am communicating to a device using a USB to serial port (VCP). I am having a problem with the usb failing. When the usb fails my app will lock up and the com port is lost. I have seen a post about this but cannot find it.
View 3 RepliesMy current program can read in a continuous stream of data when initialized and I can send a command to retrieve the devices stored data, I also have within the same program code that will read an XML file and populate from controls.
I have two separate idea's right now that I'm trying to merge into one
I want to read in XML and populate my controls. I'm aware of delegate and Invoke but I'm having a hard time working them into my XML portion or the opposite "working my XML into my serial port class".
I have been doing some research into accessing devices on a USB port and it's kind of helped, but not really. From what I understand, I can use the IO.Port namespace to access a device on a USB port (usually). Let me know if this is incorrect.
First, I made a simple program that looped through the ports available. I get COM1 and COM3, but I have 4 USB ports. Where are the others?
My
Dim comm As New List(Of IO.Ports.SerialPort) 'list of comm ports
For Each PNstr As String In IO.Ports.SerialPort.GetPortNames() 'get a list of Com Port Names
[Code].....
I am currently having an issue finding information on how to develop a simple application that a user can run to find out which COM port ie. COM1, COM2, ect is assined to the Belkin USB to Serial Adapters we use in the company.
To anyones knowledge is this possible and how would I implement it in a Windows Form Application.
I have a windows form in vb.net. in my form have a combobox. I want in combo box show only all com ports that exist and available in device manager. How to do it?
View 5 RepliesI'm trying to read information from a device through COM Port.. Sometimes I receive information like:
[Code]...
how I can change that? or detect it so whenever the program receives that type of info it ignores it?
i'm kind of new to this. I'm using VB2008 and i need to write a code for recognizing a usb's details. like port number and letter and serial number if they have one. if i need to be more specific, then i have to say its for a machine that records data and i need to transfer that data over to my laptop through a gpib to usb cable. the cable has a specific "id" and i need to find that out and type it into the program interface that i'll make when i know how to detect that "id" so it can connect.i've read a few forum posts by others and they are really informative but not what i could use or i could not make it work.(yet)[URL]..and the other links posted there.for reading and helping. thats the clearest way i can explain. if anyone needs a more specific detail, just ask because i dont know if i left out anything else.
View 5 RepliesThere seems to be a lot of discussion around about handling exeptions when a USB serial port device gets unplugged. What I want to know is how can one re-attach to it once it is plugged back in. The problem is that if you unplug a USB serial port device the app doesn't know it has gone and remains convinced it is still open. I have to close the app completely before I can re-attach to the device. I need a way to force it to close/go away.
View 2 RepliesI'd try programming in vb.net with a usb to parallel printer but it doesn't appear as LPT Port Device. It show as a USB Printer Support in USB Controller. Just to receive and send a bit in different pin to be in servo controller/driver.
View 4 RepliesI am writing a VB.NET app that has a piece which needs to send a small command to comm port 2 and get the return result. The problem is .NET doesnt have any support for serial communication seems like.
I just need to send the command "headtype" and get the result.
How can i connect a scanning device to a computer using .net? Code 128.
View 4 RepliesI have 1problem...i want to connect device and then the device can display the output in mysystem design.the system is for display value output in decimal.so,how to create code for the projek?and than the device use port usb...how to connect device with my system?
View 4 RepliesOur company has setup several remote devices that link to a switch Whenever there are problems on the device, some technicans will replace it using a new one We have a vb program that can automatically update the device setup in our server when technicans replace devices. So we do not need to login and update the setting manually However, our program cannot handle the case that there are more than 1 device that need replacement Therefore, our idea is to retrieve the ip and port of the router/switch that links to remote device using VB.net.
View 2 RepliesI know how to open a communications port and read data from a wired usb device.
How can I open a communications port to read data from a wireless bluetooth device?
how to connect barcode reader device into visual studio 2005? My device model is acanlogic cs-2030?
View 6 RepliesI am developing a software that will monitor/poll serveral Modbus/TCP devices on a network.
I have managed to connect to one device using VB.Does anyone know of a driver or perhaps a 3rd party software I could use that will enable me to connect to more than one Modbus/TCP device?
Currently, i am trying to connect the EPP (Encrypted Pin Pad ) device to my computer by using mscomm control. May i know what are the possibility problems may cause the DSRHolding does not return to "True"?
View 3 RepliesI am writing a small app that is retrieving data from a device connected to a virtual com-port. I connect without problems to the device using the settings 9600-8-N-1.
I need to send the command <esc>MS , the device then sends back the data to a computer. I have tried this using Hyperterminal with success. I also did this with Excel and VBA. I used the MSComm32 Active X control:
MSComm1.Output = Chr$(27) + "M" + "S" + Chr$(13)
Msgbox(MSComm1.Input)
This made the data from the device pop up in a messagebox. I am writing a winforms app in vb.net, using VS2005. I have a form, on which I have a Placed a SerialPort control, named sp. My sample code is as follows:
Private Sub Form1_Load(ByVal
sender As System.Object,
ByVal e
[CODE]...
This returns the error message "Error: expecting a command". I have done som tests in HyperTerminal, and have concluded with:
-If I dont send <esc>, I get error "Expecting a command"
-If I send wrong command (ie MD instead of MS) i get error "Bad command"
Based on this, I suspect that I don't pass the escape character correctly to my device. So I wonder how to do this?
how to connect barcode reader device into visual studio 2005? My device model is acanlogic cs-2030?
View 2 RepliesThe link below has code to connect to a modem thru the serial port but it is for an earlier version of VB. when I convert the code, it does not fully convert and has 4 errors that prevent building the project. can someone tell me what needs to be changed or added?
[URL]
Note: the error: not CLS-Compliant
I am developing an application which can connect to an ip address to transfer/receive data to the handheld device via gprs network.
View 2 Replieshas to be able to retrieve an ip address from a list in a text document and send 3 commands to the IP address over port 23 and get the response back for the last command and type it into a text file and after that move on the next ip in the list
View 5 RepliesI'm doing a project with vb.net (smart device) on visual studio 2008 and I need to connect to a database on the device itself (I do not have a physical device to test, only emulation). How should I go about doing it? I would like the database to be in the device on start up.
View 1 RepliesI have a program that connect to 2 printers at the same time. Ribbon Printer and Label printer.
I have set the ribbon printer to be the default printer of the server so that normal document printing can be printed using it. This is very simple and i already finsih the code for it.
However i have a Parallel printer at Port LPT1 which i wish to use it to print label. I have search online but find no solution on how to open connection to LPT1 and print the document in coding.What i can find i only send a window command to the port LPT
I want to connect to serial port and get the data from that using vb.net how to do this.........
i have found one sample and i tried that but in that datareceived event is not firing
I am developing a program that read the message from database and send sms to the user through phone.I am using a developed dll found online to do
this.The flow of my program is like this:
(a).Connect to the port
(b).Send sms if available.
(c).Repeat (b) every 5 minutes.If the Port is not connected in the half way, will try to connect to the port.